:root {
  --encre: #0F1B2D;
  --encre-clair: #182A44;
  --grille: #1E3352;
  --creme: #FFF6E5;
  --ardoise: #8DA2BF;
  --ambre: #FFC23D;
  --orange: #FF6B35;
  --ciel: #4CC9F0;
  --menthe: #2EC4B6;
}

/* Savoir Actif — feuille de style du site.
   Les variables de couleur (:root) sont générées depuis brand/theme.ts au démarrage. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter.woff2?v=3100e775e8") format("woff2-variations"), url("/assets/inter.woff2?v=3100e775e8") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--encre);
  /* grille « plan technique », comme sur la bannière */
  background-image: linear-gradient(var(--grille) 1px, transparent 1px),
    linear-gradient(90deg, var(--grille) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  color: var(--creme);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--ambre);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--creme);
}
:focus-visible {
  outline: 3px solid var(--ciel);
  outline-offset: 3px;
  border-radius: 4px;
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

/* En-tête */
.top {
  padding: 28px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--creme);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.marque em {
  font-style: normal;
  color: var(--ambre);
}
.symbole {
  width: 30px;
  height: auto;
}

/* Sélecteur de langue FR / EN */
.langues {
  display: flex;
  gap: 4px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}
.langues a,
.langues span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
}
.langues a {
  color: var(--ardoise);
  text-decoration: none;
}
.langues a:hover {
  color: var(--creme);
  background: var(--encre-clair);
}
.langues span {
  color: var(--ambre);
}

/* Accueil */
.hero {
  padding: 48px 0 40px;
}
.etiquette {
  margin: 0 0 12px;
  color: var(--ardoise);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 9vw, 3.75rem);
  color: var(--ambre);
}
.chapo {
  margin: 0 0 32px;
  font-size: 1.1875rem;
  max-width: 36rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.bouton:hover {
  transform: translateY(-1px);
}
.bouton-principal {
  background: var(--orange);
  color: var(--encre);
}
.bouton-principal:hover {
  background: var(--ambre);
  color: var(--encre);
}
.bouton-secondaire {
  border: 2px solid var(--creme);
  color: var(--creme);
}
.bouton-secondaire:hover {
  background: var(--creme);
  color: var(--encre);
}
@media (max-width: 480px) {
  .bouton {
    flex: 1 1 100%;
  }
}

/* Le format en 3 étapes (couleurs de schemaPalette : ambre, ciel, menthe) */
.format,
.question {
  padding: 32px 0;
}
.format h2,
.question h2 {
  font-size: 1.5rem;
  margin: 0 0 20px;
}
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .etapes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.etape {
  --accent: var(--ambre);
  background: var(--encre-clair);
  box-shadow: inset 0 4px 0 var(--accent);
  border-radius: 16px;
  padding: 20px;
}
.etape-2 {
  --accent: var(--ciel);
}
.etape-3 {
  --accent: var(--menthe);
}
.numero {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}
.etape h3 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}
.etape p {
  margin: 0;
  color: var(--ardoise);
}
.question p {
  margin: 0;
}

/* Pages de texte (mentions légales) */
.texte {
  padding: 40px 0;
}
.texte h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  color: var(--ambre);
  margin: 0 0 8px;
}
.texte h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
}
.texte .maj {
  color: var(--ardoise);
  margin: 0;
}
.texte dl {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: 6px 20px;
  margin: 0;
  background: var(--encre-clair);
  border-radius: 16px;
  padding: 20px;
}
.texte dt {
  color: var(--ardoise);
}
.texte dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .texte dl {
    grid-template-columns: 1fr;
  }
  .texte dd {
    margin-bottom: 8px;
  }
}
.texte ul {
  padding-left: 1.25rem;
}
.texte li + li {
  margin-top: 6px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--encre-clair);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Pied de page */
.pied {
  border-top: 1px solid var(--grille);
  padding: 24px 0 32px;
  margin-top: 32px;
  color: var(--ardoise);
  font-size: 0.875rem;
}
.pied p {
  margin: 0 0 8px;
}
.pied nav {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}
.pied a {
  color: var(--creme);
}

@media (prefers-reduced-motion: reduce) {
  .bouton {
    transition: none;
  }
  .bouton:hover {
    transform: none;
  }
}
