/* Le site de Kroiza. Les couleurs et la typographie viennent de l'identité de marque. */

/* Archivo, servie par le site lui-même : rien n'est demandé à un autre serveur. Licence dans fonts/OFL.txt. */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Expanded';
  src: url('/assets/fonts/ArchivoExpanded-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #2A1B5C;
  --mint: #2EE6A8;
  --sun: #FFD84D;
  --lilac: #C9B8FF;
  --lilac-soft: #EFEAFF;
  --paper: #F6F4FB;
  --white: #FFFFFF;
  --muted: #6A6290;
  --measure: 34rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--night);
  background: var(--paper);
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
main a:focus-visible { outline-color: var(--night); }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.display {
  font-family: 'Archivo Expanded', 'Archivo', system-ui, sans-serif;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0;
}

/* Le haut de page : la marque sur son violet nuit. */
.top { background: var(--night); color: var(--white); overflow: hidden; }
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo svg { width: 2.25rem; height: 2.25rem; }
.logo span { font-size: 1.35rem; }
.langs { display: flex; gap: 0.25rem; font-weight: 700; font-size: 0.9375rem; }
.langs a { padding: 0.3rem 0.7rem; border-radius: 999px; text-decoration: none; color: var(--lilac); }
.langs a[aria-current] { background: var(--white); color: var(--night); }

.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-top: 4rem; padding-bottom: 4.5rem; }
/* La taille tient compte du slogan anglais, plus long : « Cross paths. » reste sur une ligne. */
.slogan { font-size: clamp(2rem, 5.2vw, 4.2rem); }
.slogan span { display: block; white-space: nowrap; }
.lead { max-width: var(--measure); margin: 1.75rem 0 0; font-size: 1.25rem; line-height: 1.45; color: var(--white); }
.soon { display: inline-block; margin: 1.75rem 0 0; padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--lilac); color: var(--night); font-weight: 800; }
.elans { width: 100%; max-width: 26rem; justify-self: end; overflow: visible; }

/* Le seul mouvement du site : les deux élans arrivent chacun de son côté, et se croisent. */
@media (prefers-reduced-motion: no-preference) {
  .elan-top { animation: from-left 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; }
  .elan-bottom { animation: from-right 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; }
}
@keyframes from-left { from { transform: translateX(-46px); opacity: 0; } }
@keyframes from-right { from { transform: translateX(46px); opacity: 0; } }

/* Les trois temps du slogan. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.step .tile { width: 5.5rem; height: 5.5rem; border-radius: 1.4rem; background: var(--night); display: grid; place-items: center; margin-bottom: 1.4rem; }
.step .tile svg { width: 3.6rem; height: 3.6rem; }
.step .tile .hi { background: var(--mint); color: var(--night); font-weight: 800; font-size: 0.8125rem; padding: 0.4rem 0.65rem; border-radius: 999px; white-space: nowrap; }
.step h2 { font-size: 1.9rem; }
.step p { margin: 0.8rem 0 0; max-width: 21rem; }

/* Les cinq promesses, avec les mots de l'appli. */
.safety { background: var(--white); border-radius: 1.75rem; padding: 3rem; margin-bottom: 4.5rem; }
.safety h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.safety .intro { max-width: var(--measure); margin: 1rem 0 0; color: var(--muted); }
.promises { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 3rem; }
.promises li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.9rem; align-items: start; }
.promises .dot { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--mint); display: grid; place-items: center; }
.promises .dot svg { width: 1.2rem; height: 1.2rem; }
.promises strong { display: block; font-weight: 800; line-height: 1.3; }
.promises span { color: var(--muted); }
.more { display: inline-block; margin-top: 2.25rem; font-weight: 800; text-underline-offset: 0.2em; }

/* Une page de texte : la confidentialité, les mentions légales. */
.doc-top { padding-top: 3rem; padding-bottom: 3.25rem; }
.doc-top h1 { font-size: clamp(1.9rem, 5vw, 3.25rem); }
.doc-top .lead { margin-top: 1.1rem; font-size: 1.15rem; }
/* Le texte est aligné sur le titre, à gauche, et ne dépasse pas une largeur confortable à lire. */
.doc { padding-top: 3rem; padding-bottom: 4.5rem; }
.doc > * { max-width: 46rem; }
.doc h2 { font-size: 1.45rem; font-weight: 800; line-height: 1.25; margin: 2.75rem 0 0; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul, .doc dl { margin: 0.9rem 0 0; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-top: 0.45rem; }
.doc li::marker { color: var(--muted); }
.doc strong { font-weight: 800; }
.doc a { text-underline-offset: 0.2em; }
.doc .note { background: var(--lilac-soft); border-radius: 1rem; padding: 1.1rem 1.3rem; margin: 0 0 2.5rem; }
.doc .note p:first-child { margin-top: 0; }
.doc dl { display: grid; gap: 0.9rem; }
.doc dl > div { background: var(--white); border-radius: 1rem; padding: 1rem 1.2rem; }
.doc dt { font-weight: 800; }
.doc dd { margin: 0.2rem 0 0; }
.doc dd + dd { color: var(--muted); }
.doc .updated { color: var(--muted); margin-top: 2.75rem; }

/* Qui fait Kroiza, et le pied de page. */
.bottom { background: var(--night); color: var(--white); }
.who { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.who h2 { font-size: 1.5rem; }
.who p { margin: 0.9rem 0 0; max-width: 30rem; }
.who .mail { display: inline-block; margin-top: 0.4rem; font-weight: 800; font-size: 1.2rem; color: var(--mint); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.foot { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; border-top: 1px solid rgba(201, 184, 255, 0.3); padding-top: 1.5rem; padding-bottom: 2rem; color: var(--lilac); font-size: 0.9375rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.foot a { text-underline-offset: 0.2em; }

/* Un fait de la société qui manque encore : il se voit, et le vrai site ne se construit pas avec. */
.todo { background: var(--sun); color: var(--night); border-radius: 4px; padding: 0 0.3em; font-weight: 700; font-style: normal; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3.5rem; }
  .slogan { font-size: clamp(1.5rem, 8.2vw, 4.5rem); }
  .elans { max-width: 13rem; justify-self: start; order: -1; }
  .steps { grid-template-columns: 1fr; gap: 2.75rem; padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .safety { padding: 2rem 1.4rem; border-radius: 1.4rem; margin-bottom: 3.25rem; }
  .promises { grid-template-columns: 1fr; }
  .doc { padding-top: 2.25rem; padding-bottom: 3.25rem; }
  .who { grid-template-columns: 1fr; gap: 2rem; }
}
