/* Feuille de style commune du site Turne (accueil, guides, 404).
   Couleurs : celles de Theme.swift (papier, encre, ambre).
   Polices : Crimson Pro (titres) + Atkinson Hyperlegible (texte), servies depuis /polices. */

@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url('/polices/atkinson-hyperlegible-italic-400.woff2') 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; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/polices/atkinson-hyperlegible-normal-400.woff2') 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; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/polices/atkinson-hyperlegible-normal-700.woff2') 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; }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/polices/crimson-pro-variable.woff2') 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; }

:root {
  color-scheme: light dark;
  --fond: #F7F3EB;          /* papier */
  --fond-2: #EFE8DA;        /* papier un ton plus sombre, pour alterner les sections */
  --surface: #FFFFFF;
  --texte: #10172C;         /* encre */
  --doux: #4F566B;
  --trait: #E1D8C6;
  --ambre: #EE9E49;         /* accent de l'app */
  --ambre-texte: #9A5B12;   /* ambre assombri : lisible en texte sur le papier (contraste 4,9:1) */
  --ambre-voile: #FBE6CB;
  --sur-ambre: #10172C;
  --ombre: 0 1px 2px rgba(16,23,44,.06), 0 8px 24px rgba(16,23,44,.08);
  --ombre-forte: 0 2px 4px rgba(16,23,44,.08), 0 24px 48px rgba(16,23,44,.16);
  --rayon: 18px;
  --titre: "Crimson Pro", "New York", "Iowan Old Style", Georgia, serif;
  --corps: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --rapide: 180ms cubic-bezier(.2,.7,.3,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #10172C;        /* encre */
    --fond-2: #141C34;
    --surface: #1C2742;     /* encre claire */
    --texte: #F7F3EB;
    --doux: #B3BACB;
    --trait: #2C3858;
    --ambre-texte: #EE9E49;
    --ambre-voile: #2E2A2A;
    --ombre: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --ombre-forte: 0 2px 4px rgba(0,0,0,.35), 0 24px 48px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 17px/1.6 var(--corps); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, .serif { font-family: var(--titre); font-weight: 600; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ambre); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 6px; }
.page { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barre du haut, collante ---------- */
header.barre {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; margin: 0 -20px;
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--rapide);
}
header.barre.defile { border-bottom-color: var(--trait); }
.marque { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 24px; text-decoration: none; min-height: 44px; }
.marque img { width: 34px; height: 34px; border-radius: 9px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--doux); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 10px; transition: color var(--rapide), background var(--rapide); }
nav a:hover { color: var(--texte); background: var(--fond-2); }
nav a.bouton { color: var(--fond); margin-left: 8px; padding: 10px 16px; min-height: 44px; }
nav a.bouton:hover { color: var(--fond); background: var(--texte); }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font: 700 16px/1.2 var(--corps); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--rapide), box-shadow var(--rapide), background var(--rapide), border-color var(--rapide);
}
.bouton:hover { transform: translateY(-1px); box-shadow: var(--ombre); }
.bouton:active { transform: translateY(0); box-shadow: none; }
.bouton.plein { background: var(--texte); color: var(--fond); }
.bouton.contour { background: var(--surface); border-color: var(--trait); color: var(--texte); }
.bouton.contour:hover { border-color: var(--ambre); }
.bouton.ambre { background: var(--ambre); color: var(--sur-ambre); }
.bouton svg { width: 20px; height: 20px; flex: 0 0 auto; }
.bouton.store { padding: 10px 20px 10px 16px; text-align: left; }
.bouton.store small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }
.bouton.store span { display: block; font-size: 18px; line-height: 1.15; }
.bouton.store svg { width: 26px; height: 26px; }
.bouton[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Héros ---------- */
.heros {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: 48px 0 72px; overflow-x: clip;
}
.surtitre {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  color: var(--ambre-texte); background: var(--ambre-voile);
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; margin: 0 0 20px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--ambre-texte); }
.chapo { font-size: clamp(18px, 2vw, 20px); color: var(--doux); margin: 0 0 30px; max-width: 34em; }
.confiance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: 14.5px; color: var(--doux); }
.confiance .avis { display: inline-flex; align-items: center; gap: 8px; color: var(--doux); text-decoration: none; min-height: 44px; }
.confiance .avis:hover strong { text-decoration: underline; }
.etoiles { display: inline-flex; gap: 2px; color: var(--ambre); }
.etoiles svg { width: 16px; height: 16px; }
.avis strong { color: var(--texte); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--trait); }

.scene { position: relative; justify-self: end; width: min(460px, 100%); display: flex; justify-content: flex-end; }
.telephone {
  position: relative; aspect-ratio: 478 / 1040; width: 272px; flex: 0 0 auto;
  border-radius: 44px; padding: 10px; background: #0B1022;
  box-shadow: var(--ombre-forte), inset 0 0 0 2px #2A3352;
}
.telephone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 35px; }
/* La mascotte, posée devant le téléphone, avec sa bulle */
.scene .mascotte { position: absolute; left: 0; bottom: 6%; width: 190px; margin: 0; z-index: 1; }
.scene .mascotte img { position: relative; display: block; width: 100%; height: auto; }
.scene .mascotte::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 4px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,23,44,.22), transparent); z-index: -1;
}
.bulle {
  position: absolute; left: 4px; bottom: calc(100% - 10px); width: 200px; margin: 0;
  background: var(--surface); color: var(--texte); border: 1px solid var(--trait);
  border-radius: 16px 16px 16px 4px; padding: 12px 14px; box-shadow: var(--ombre);
  font: 600 18px/1.3 var(--titre);
}
.scene .halo {
  position: absolute; inset: 10% -18% 6% -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ambre-voile), transparent);
}

/* ---------- Bande de chiffres ---------- */
.chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre); margin: 0 0 24px;
}
.chiffres div { padding: 22px 20px; text-align: center; border-left: 1px solid var(--trait); }
.chiffres div:first-child { border-left: 0; }
.chiffres strong { display: block; font-family: var(--titre); font-size: 34px; line-height: 1.1; }
.chiffres span { font-size: 14.5px; color: var(--doux); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alterne { background: var(--fond-2); box-shadow: 0 0 0 100vmax var(--fond-2); clip-path: inset(0 -100vmax); }
.entete { max-width: 44em; margin-bottom: 36px; }
.etiquette { color: var(--ambre-texte); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0 0 14px; }
.intro { color: var(--doux); font-size: 18px; margin: 0; }

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.carte {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px;
  transition: transform var(--rapide), box-shadow var(--rapide), border-color var(--rapide);
}
.carte h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.carte p { margin: 0; color: var(--doux); font-size: 16px; }
.icone {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--ambre-voile); color: var(--ambre-texte);
}
.icone svg { width: 22px; height: 22px; }
a.carte { display: block; text-decoration: none; }
a.carte:hover, .carte.vive:hover { transform: translateY(-2px); box-shadow: var(--ombre); border-color: var(--ambre); }
a.carte .lire { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--ambre-texte); }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ambre); margin-right: 10px; vertical-align: middle; }

.matieres { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.matieres li { background: var(--surface); border: 1px solid var(--trait); border-radius: 999px; padding: 8px 16px; font-size: 16px; }

/* Captures, défilement horizontal avec flèches */
.carrousel { position: relative; }
.ecrans {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px 20px 24px; margin: 0 -20px; scrollbar-width: none;
}
.ecrans::-webkit-scrollbar { display: none; }
.ecrans figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; scroll-margin-left: 20px; }
.ecrans img {
  display: block; width: 236px; height: auto; aspect-ratio: 478 / 1040;
  border-radius: 34px; border: 7px solid #0B1022; background: #0B1022; box-shadow: var(--ombre);
}
.ecrans figcaption { margin-top: 14px; font-weight: 700; font-size: 15.5px; max-width: 236px; }
.fleches { display: flex; gap: 8px; justify-content: flex-end; margin-top: -8px; }
.fleche {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--trait); background: var(--surface); color: var(--texte);
  transition: border-color var(--rapide), transform var(--rapide);
}
.fleche:hover { border-color: var(--ambre); }
.fleche:active { transform: scale(.96); }
.fleche[disabled] { opacity: .35; cursor: default; }
.fleche svg { width: 22px; height: 22px; }

/* Carnet de colles */
.duo { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.duo .visuel { position: relative; justify-self: center; width: min(260px, 100%); }
.duo .visuel img {
  display: block; width: 100%; height: auto; aspect-ratio: 478 / 640; object-fit: cover; object-position: top;
  border-radius: 34px 34px 0 0; border: 7px solid #0B1022; border-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points li svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--ambre-texte); margin-top: 2px; }
.citation {
  margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ambre);
  font-family: var(--titre); font-size: clamp(22px, 2.6vw, 27px); line-height: 1.3;
}

/* Formulaire Formspree */
.rejoindre { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
form { background: var(--surface); border: 1px solid var(--trait); border-radius: 22px; padding: 28px; box-shadow: var(--ombre); }
label { display: block; font-weight: 700; font-size: 15.5px; margin: 0 0 8px; }
.champ { margin-bottom: 18px; }
.aide { font-weight: 400; color: var(--doux); }
input[type=text], input[type=email], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--trait);
  background: var(--fond); color: var(--texte); font: inherit; font-size: 16px;
  transition: border-color var(--rapide), box-shadow var(--rapide);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ambre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ambre) 35%, transparent); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; font-size: 15.5px; margin-bottom: 8px; padding: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label {
  font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer;
  border: 1px solid var(--trait); border-radius: 12px; padding: 10px 14px; min-height: 44px;
  transition: border-color var(--rapide), background var(--rapide);
}
.choix label:has(input:checked) { border-color: var(--ambre); background: var(--ambre-voile); }
.choix input, .consentement input { accent-color: var(--ambre); width: 18px; height: 18px; }
.consentement { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--doux); cursor: pointer; }
.consentement input { margin-top: 2px; flex: 0 0 auto; }
.piege { position: absolute; left: -9999px; }
form .bouton { width: 100%; margin-top: 6px; }
.etat { margin: 14px 0 0; font-size: 15.5px; min-height: 1.5em; }
.etat.ok { color: #2E7D4F; }
.etat.erreur { color: #B3412E; }
@media (prefers-color-scheme: dark) { .etat.ok { color: #7FD1A0; } .etat.erreur { color: #F19A88; } }
ul.avantages { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: var(--doux); }
ul.avantages li { display: flex; gap: 12px; }
ul.avantages svg { width: 22px; height: 22px; color: var(--ambre-texte); flex: 0 0 auto; margin-top: 2px; }

/* Questions fréquentes */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--trait); }
summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--titre); font-weight: 600; font-size: 21px; padding: 18px 0; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--ambre-texte); border-bottom: 2px solid var(--ambre-texte);
  transform: rotate(45deg); transition: transform var(--rapide);
}
details[open] summary::after { transform: rotate(-135deg); }
details p { color: var(--doux); margin: 0 0 20px; max-width: 46em; }

/* Appel final */
.final {
  text-align: center; padding: 56px 24px; border-radius: 28px;
  background: var(--texte); color: var(--fond);
}
.final h2 { margin-bottom: 10px; }
.final p { color: color-mix(in srgb, var(--fond) 78%, var(--texte)); margin: 0 auto 26px; max-width: 36em; font-size: 18px; }
.final img { width: 132px; height: 132px; margin: -12px 0 4px; }
.final .bouton.plein { background: var(--fond); color: var(--texte); }

/* Pied de page */
footer { border-top: 1px solid var(--trait); margin-top: 72px; padding: 32px 0 48px; color: var(--doux); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { flex-wrap: wrap; gap: 0; }
footer a { color: var(--doux); text-decoration: none; padding: 10px 12px 10px 0; margin-right: 8px; }
footer a:hover { color: var(--texte); text-decoration: underline; }

/* ---------- Guides ---------- */
.fil { font-size: 14.5px; color: var(--doux); margin: 8px 0 18px; }
.fil a { color: var(--doux); }
article.guide { max-width: 720px; padding: 24px 0 24px; }
article.guide h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; }
article.guide h2 { margin-top: 44px; font-size: clamp(26px, 3.2vw, 32px); }
article.guide h3 { margin-top: 28px; font-size: 22px; }
article.guide p, article.guide li { font-size: 18px; line-height: 1.7; }
article.guide li { margin-bottom: 8px; }
article.guide li::marker { color: var(--ambre-texte); font-weight: 700; }
.encadre {
  background: var(--surface); border: 1px solid var(--trait); border-left: 4px solid var(--ambre);
  border-radius: 14px; padding: 18px 22px; margin: 26px 0;
}
.encadre p { margin: 0; }
.appel {
  margin-top: 48px; background: var(--surface); border: 1px solid var(--trait); border-radius: 22px;
  padding: 26px; display: flex; gap: 22px; align-items: center; box-shadow: var(--ombre);
}
.appel img { width: 104px; height: 104px; flex: 0 0 auto; }
.appel h2 { margin: 0 0 6px !important; font-size: 26px !important; }
.appel p { margin: 0 0 16px; color: var(--doux); font-size: 16.5px !important; }
.liste-guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.liste-guides .carte h3 { font-size: 21px; }

/* ---------- Apparition douce au défilement (sans JS, tout reste visible) ---------- */
.js .revele { opacity: 0; transform: translateY(12px); transition: opacity 380ms ease-out, transform 380ms ease-out; }
.js .revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revele { opacity: 1; transform: none; transition: none; }
  .bouton, .carte, .fleche { transition: none; }
}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 960px) {
  .grille { grid-template-columns: repeat(2, 1fr); }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .chiffres div:nth-child(3) { border-left: 0; }
  .chiffres div:nth-child(n+3) { border-top: 1px solid var(--trait); }
}
@media (max-width: 820px) {
  nav a:not(.bouton) { display: none; }
  .heros { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 56px; }
  .scene { justify-self: center; width: min(360px, 100%); }
  .scene .halo { inset: 10% 0 6% 0; }
  .telephone { width: 210px; border-radius: 36px; padding: 8px; }
  .telephone img { border-radius: 29px; }
  .scene .mascotte { width: 140px; bottom: 4%; }
  .bulle { width: 160px; font-size: 15.5px; padding: 10px 12px; }
  .duo, .rejoindre { grid-template-columns: 1fr; gap: 32px; }
  .duo .visuel { order: 2; width: min(220px, 70%); }
  .duo .visuel img { aspect-ratio: 478 / 520; }
  .liste-guides { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .grille { grid-template-columns: 1fr; }
  .actions .bouton { width: 100%; }
  .ecrans img { width: 210px; }
  .ecrans figcaption { max-width: 210px; }
  .appel { flex-direction: column; text-align: center; }
  form { padding: 20px; }
  .final { padding: 44px 20px; }
  .fleches { display: none; }
  .confiance .sep { display: none; }
}
