/* ==========================================================================
   Alflight — site de présentation (alflight.fr)
   Feuille de style unique du site. Toutes les valeurs de la charte (couleurs, graisses,
   tailles de texte, rayons, durées, courbes) viennent du fichier de jetons partagé avec
   l'application : alflight-tokens.css, copie À L'IDENTIQUE de la source de l'application
   (src/styles/alflight-tokens.css, recopiée par scripts/charte/sync-tokens.mjs). Ne jamais
   écrire une couleur ou une taille de la charte ici : tools/verifier-charte.py le refuse.
   Aucune ressource tierce : la police Jost est servie par le site.
   ========================================================================== */
@import url("alflight-tokens.css?v=2b11afa4");

/* --- Police Jost 400 et 600, auto-hébergée (licence OFL) ------------------ */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-latin-600-normal.woff2") format("woff2");
}

/* --- Réglages propres au site (mise en page, pas des valeurs de charte) ----- */
:root {
  /* EMBLÈME : le seul endroit à modifier quand le SVG officiel remplacera le PNG. */
  /* Emblème texturé du graphiste (04/11/2026). Les images restent 30 jours en cache (.htaccess) :
     augmenter ?v= quand le fichier change. */
  --af-emblem: url("../img/emblem_ivoire.png?v=2");
  --af-emblem-ratio: 782 / 520;
}

/* --- Base ------------------------------------------------------------------ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-white-soft);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: var(--fw-regular);
  font-style: normal;
}
[hidden] { display: none !important; }
a { color: var(--color-orange-primary); }
a:hover { color: var(--color-orange-bright); }
b, strong { font-weight: var(--fw-semibold); }
em, i, cite, address { font-style: normal; }
input, select, button { font-family: inherit; }
input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--color-orange-primary);
  outline-offset: 2px;
}

.af-page { min-height: 100vh; position: relative; isolation: isolate; }
.af-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

/* Texte réservé aux lecteurs d'écran */
.af-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Image de fond (choix de César du 08/10/2026) : le « mur noir lisse » de l'application, à 50 %
   d'opacité sous toute la page (contrastes mesurés : voir tools/generer-fond.py). */
.af-page::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/fond-mur-noir.webp") center / cover no-repeat;
  opacity: 0.5;
}

/* --- Grilles --------------------------------------------------------------- */
.af-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.af-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.af-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.af-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
/* Les six captures tiennent dans une seule grille : deux rangées de trois sur grand écran. */
.af-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.af-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }

/* --- Animations ------------------------------------------------------------ */
@keyframes afUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* Reflet du mot ALFLIGHT : le même que dans l'application (arbitrage 4 de la charte, 28/10/2026). Une bande
   orange étroite (60 % de la largeur du mot, inclinée à 100°) traverse le mot de gauche à droite pendant
   35 % du cycle (2,1 s), puis attend hors du mot (3,9 s) ; cycle --duration-sweep (6 s), courbe
   --ease-standard. */
@keyframes alf-wordmark-sweep {
  0% { background-position: -150% 0, 0 0; }
  35%, 100% { background-position: 250% 0, 0 0; }
}

.af-in { animation: afUp var(--duration-reveal) var(--ease-reveal) both; }
.af-d1 { animation-delay: var(--delay-reveal-1); }
.af-d2 { animation-delay: var(--delay-reveal-2); }
.af-d3 { animation-delay: var(--delay-reveal-3); }
.af-d4 { animation-delay: var(--delay-reveal-4); }

/* L'emblème ne bouge plus de lui-même : le halo orange et le flottement de la maquette sont
   retirés (demande de César, 03/10/2026). Seul le reflet du mot ALFLIGHT est gardé. */

/* Reflet du mot ALFLIGHT (voir @keyframes alf-wordmark-sweep). Le mot est peint par son fond : une couche
   unie ivoire, et par-dessus la bande orange. Sans découpe du fond par le texte, le mot reste ivoire. */
.af-word { color: var(--color-white-soft); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .af-word {
    background-image:
      linear-gradient(100deg, transparent 20%, var(--color-orange-primary) 50%, transparent 80%),
      linear-gradient(var(--color-white-soft), var(--color-white-soft));
    background-size: 60% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 250% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: alf-wordmark-sweep var(--duration-sweep) var(--ease-standard) infinite;
  }
}

/* Les cartes et les captures ne mènent nulle part : aucun effet au survol ni au toucher,
   pour ne pas laisser croire qu'elles se cliquent (retour de César, 03/10/2026). */

/* « Aspiration » du bloc logo (demande de César, 03/10/2026) : quand on fait défiler vers le bas,
   le logo fuit vers son centre et s'enfonce, sans tourner. L'avancement (--af-depth, de 0 à 1) est
   posé par assets/js/site.js d'après le défilement : même effet sur tous les navigateurs, et le
   logo revient quand on remonte. Sans script ou sous « Réduire les animations », il reste immobile. */
.af-suck {
  --af-depth: 0;
  transform-origin: 50% 42%;
  transform: translateY(calc(var(--af-depth) * 34%)) scale(calc(1 - var(--af-depth) * 0.88));
  opacity: calc(1 - var(--af-depth) * 1.15);
  filter: blur(calc(var(--af-depth) * 8px));
  will-change: transform, opacity;
}

/* Apparition des blocs au défilement */
@supports (animation-timeline: view()) {
  .af-rev { animation: afUp linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

/* --- En-tête --------------------------------------------------------------- */
.af-header { border-bottom: 1px solid var(--color-black-surface); }
.af-header-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.af-brand,
.af-brand:hover { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-white-soft); }
.af-brand-word { font-size: var(--fs-ed-wordmark-header); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wordmark-header); }
.af-nav { display: flex; align-items: center; gap: 28px; }
.af-nav-link,
.af-nav-link:hover {
  color: var(--color-white-muted); text-decoration: none; text-transform: uppercase; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); font-size: var(--fs-ed-small);
}
.af-nav-btn,
.af-nav-btn:hover {
  color: var(--color-white-soft); text-decoration: none; border: 1px solid var(--color-graphite); padding: 10px 16px;
  border-radius: var(--radius-sm); min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center;
  text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-ed-small); font-weight: var(--fw-semibold);
}

/* --- Bloc logo ------------------------------------------------------------- */
.af-logo { padding: 48px 0 24px; overflow: hidden; }
.af-logo-wrap { display: flex; justify-content: center; }
.af-logo-stack { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; width: 100%; }
.af-emblem-img--lg { max-width: 540px; }
.af-emblem-img--sm { max-width: 280px; }
.af-emblem-img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: var(--af-emblem-ratio);
  background-image: var(--af-emblem);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.af-logo-word {
  margin: 8px 0 0; font-size: var(--fs-ed-wordmark); line-height: 1; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wordmark); padding-left: var(--ls-wordmark);
}
.af-logo-tag {
  margin: 0; font-size: var(--fs-ed-motto); font-weight: var(--fw-regular);
  letter-spacing: var(--ls-motto); padding-left: var(--ls-motto); color: var(--color-white-muted);
}

/* --- Hero ------------------------------------------------------------------ */
.af-hero-sec { padding: 56px 0 104px; }
.af-hero-col { display: flex; flex-direction: column; gap: 24px; }
/* Surtitre : orange, 600, +0,08 em (arbitrage 6 de la charte, 28/10/2026) — plus de variante grise. */
.af-eyebrow {
  margin: 0; font-size: var(--fs-ed-small); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--color-orange-primary);
}
/* Tous les titres en capitales (audit de design du 03/10/2026) */
.af-h1 {
  margin: 0; font-size: var(--fs-ed-display); line-height: 1.06; font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--ls-title);
}
.af-lead { margin: 0; font-size: var(--fs-ed-text); line-height: 1.55; color: var(--color-white-muted); max-width: 600px; }
.af-hero-shot { display: flex; justify-content: flex-end; position: relative; }
/* Captures de l'application : sombres sur fond sombre, un halo ivoire translucide les détache du
   fond (réglage de César du 02/10/2026). Toutes au même format (03/10/2026) : 780 × 1596. */
.af-phone {
  position: relative; width: 100%; max-width: 360px; height: auto;
  border-radius: var(--radius-device); border: 1px solid var(--color-graphite);
}
.af-phone, .af-fig-img {
  box-shadow: 10px 5px 10px rgba(var(--color-white-soft-rgb), 0.10);
  aspect-ratio: 780 / 1596; object-fit: cover; object-position: center top;
}
/* Vidéo de démonstration (demande de César du 08/10/2026) : l'enregistrement de son iPhone, monté
   par tools/monter-video-demo.py, remplit le cadre du téléphone. site.js pose dessus un bouton qui
   couvre tout le cadre : un toucher met en pause ou relance ; en pause, un signe de lecture au centre. */
.af-demo { overflow: hidden; background: var(--color-black); }
.af-demo-video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  border-radius: var(--radius-device-screen); object-fit: cover; object-position: center top;
}
.af-demo-btn {
  position: absolute; inset: 0; margin: 0; padding: 0; border: 0; border-radius: inherit;
  background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
/* Le cadre coupe ce qui dépasse : le contour de focus passe à l'intérieur. */
.af-demo-btn:focus-visible { outline-offset: -4px; }
/* Signe de lecture dessiné en CSS : la politique de sécurité du site refuse les images « data: ». */
.af-demo--pause .af-demo-btn::before,
.af-demo--pause .af-demo-btn::after { content: ""; position: absolute; top: 50%; left: 50%; }
.af-demo--pause .af-demo-btn::before {
  box-sizing: border-box; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: var(--radius-round);
  background: rgba(var(--color-black-rgb), 0.6); border: 1px solid rgba(var(--color-white-soft-rgb), 0.5);
}
.af-demo--pause .af-demo-btn::after {
  margin: -11px 0 0 -7px; border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent var(--color-white-soft);
}

/* --- Formulaires d'inscription --------------------------------------------- */
.af-signup { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; max-width: 600px; }
.af-field { display: flex; flex-direction: column; gap: 6px; }
.af-label { font-size: var(--fs-ed-small); color: var(--color-white-muted); }
.af-input,
.af-select {
  box-sizing: border-box; height: 52px; padding: 0 16px; font-size: var(--fs-input);
  background: var(--color-black-elevated); color: var(--color-white-soft); border: 1px solid var(--color-graphite);
  border-radius: var(--radius-sm);
}
.af-select { padding: 0 12px; }
.af-input::placeholder { color: var(--color-white-dim); opacity: 1; }
/* Champ invalide : contour rouge (arbitrage 10 de la charte, 28/10/2026), et il reste rouge quand le curseur y est
   (César, 03/11/2026) : le script remet le curseur dans le champ fautif, et l'anneau orange du focus, plus épais,
   couvrait le contour rouge. La case de consentement en erreur porte le même anneau rouge, curseur ou non. */
.af-input[aria-invalid="true"] { border-color: var(--color-red-critical); }
[aria-invalid="true"]:focus,
[aria-invalid="true"]:focus-visible { outline-color: var(--color-red-critical); }
.af-check[aria-invalid="true"] { outline: 2px solid var(--color-red-critical); outline-offset: 2px; }
.af-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-ed-small); line-height: 1.5; color: var(--color-white-muted); }
.af-check { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-orange-primary); }
/* « Bouton acquisition » de la charte (arbitrage 5, César, 28/10/2026) : orange plein #F26921, texte noir
   #0A0A0A, graisse 600, capitales, +0,08 em, rayon 8 px — site et communication (.af-btn, .af-btn-link).
   L'application a le « bouton produit » : verre, contour et texte orange, mêmes graisse, capitales,
   interlettrage et rayon. */
.af-btn {
  height: 56px; border: 0; border-radius: var(--radius-sm); background: var(--color-orange-primary); color: var(--color-black);
  font-family: inherit; font-size: var(--fs-ed-small); font-weight: var(--fw-semibold); text-transform: uppercase;
  letter-spacing: var(--ls-caps); cursor: pointer;
}
.af-btn--pad { padding: 0 28px; }
.af-btn[disabled] { cursor: progress; opacity: 0.7; }
.af-note { margin: 0; font-size: var(--fs-ed-small); line-height: 1.5; color: var(--color-white-dim); }
/* Le compte à rebours du calendrier (S2, 04/11/2026) : « Lancement dans N jours », puis « Sortie complète dans N jours » ;
   posé par site.js, le texte d'un surtitre */
.af-countdown {
  margin: 0; font-size: var(--fs-ed-small); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--color-orange-primary);
}

/* Message d'erreur : texte ivoire, signal par le contour rouge (arbitrage 10, comme dans l'application) */
.af-form-msg {
  margin: 0; padding: 12px 16px; font-size: var(--fs-ed-message); line-height: 1.5; text-align: left;
  color: var(--color-white-soft); background: var(--color-black-elevated); border: 1px solid var(--color-red-critical);
  border-radius: var(--radius-sm);
}
.af-form-msg:empty { display: none; }

/* Champ piège anti-robots : hors écran, jamais vu ni atteint au clavier */
.af-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Message de succès (hero) */
.af-joined { max-width: 600px; padding: 24px; border: 1px solid var(--color-orange-primary); border-radius: var(--radius-md); background: var(--color-black-elevated); }
.af-joined-title { margin: 0 0 6px; font-size: var(--fs-ed-text-large); font-weight: var(--fw-semibold); }
.af-joined-text { margin: 0; font-size: var(--fs-ed-text-medium); line-height: 1.5; color: var(--color-white-muted); }
.af-insecable { white-space: nowrap; }

/* --- Sections -------------------------------------------------------------- */
.af-sec { padding: 80px 0; }
/* Bandes et cartes translucides : le fond de la page se voit aussi sous elles. */
.af-band {
  padding: 80px 0; background: rgba(var(--color-white-soft-rgb), 0.04);
  border-top: 1px solid var(--color-black-surface); border-bottom: 1px solid var(--color-black-surface);
}
.af-band--open { border-bottom: 0; }
.af-stack-16 { display: flex; flex-direction: column; gap: 16px; }
.af-stack-18 { display: flex; flex-direction: column; gap: 18px; }
.af-stack-32 { display: flex; flex-direction: column; gap: 32px; }
.af-stack-40 { display: flex; flex-direction: column; gap: 40px; }
.af-stack-48 { display: flex; flex-direction: column; gap: 48px; }
.af-sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-left: auto; margin-right: auto; }
.af-h2 {
  margin: 0; font-size: var(--fs-ed-title); line-height: 1.15; font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--ls-title);
}
.af-text-lg { margin: 0; font-size: var(--fs-ed-text); line-height: 1.6; color: var(--color-white-muted); }

/* Le problème, les données, le tarif */
.af-pb-card { padding: 24px; border: 1px solid var(--color-black-surface); border-radius: var(--radius-md); background: rgba(var(--color-black-rgb), 0.55); }
.af-card-title {
  margin: 0 0 8px; font-size: var(--fs-ed-small); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps);
}
.af-card-text { margin: 0; font-size: var(--fs-ed-text); line-height: 1.5; color: var(--color-white-muted); }

/* La solution */
.af-fn-card { padding: 28px; border: 1px solid var(--color-orange-primary); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 10px; }
.af-fn-num { margin: 0; font-size: var(--fs-ed-small); color: var(--color-orange-primary); font-weight: var(--fw-semibold); }
.af-fn-title {
  margin: 0; font-size: var(--fs-ed-small); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps);
}
.af-fn-text { margin: 0; font-size: var(--fs-ed-text); line-height: 1.55; color: var(--color-white-muted); }

/* Captures */
.af-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.af-fig--center { align-items: center; }
.af-fig--end { align-items: flex-end; }
.af-fig-img { width: 100%; max-width: 300px; height: auto; border-radius: var(--radius-device-shot); border: 1px solid var(--color-graphite); }
.af-fig-cap {
  width: 100%; max-width: 300px; text-align: center; font-size: var(--fs-ed-small); color: var(--color-white-dim);
  text-transform: uppercase; letter-spacing: var(--ls-caps); font-weight: var(--fw-semibold);
}

/* Le principe */
.af-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.af-step {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; border: 1px solid var(--color-black-surface);
  border-radius: var(--radius-md); background: rgba(var(--color-black-rgb), 0.55);
}
.af-step-num { font-size: var(--fs-ed-title); font-weight: var(--fw-semibold); color: var(--color-orange-primary); line-height: 1; }
.af-step-text { font-size: var(--fs-ed-text); line-height: 1.5; }

/* L'histoire : le récit seul, à la largeur des autres blocs (« il faut que tout soit au même bloc », 08/10/2026) */
.af-claim { margin: 0; font-size: var(--fs-ed-small); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); }

/* Aéroclubs */
.af-clubs-sec { padding: 0 0 80px; }
.af-clubs {
  padding: 40px; border: 1px solid var(--color-graphite); border-radius: var(--radius-lg);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.af-clubs-txt { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.af-clubs-p { margin: 0; font-size: var(--fs-ed-text); line-height: 1.55; color: var(--color-white-muted); }
/* Encadré des aéroclubs : titre calé à gauche, comme son texte. */
.af-clubs .af-h2 { text-align: left; }
.af-btn-ghost,
.af-btn-ghost:hover {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--color-orange-primary); border-radius: var(--radius-sm); color: var(--color-white-soft); text-decoration: none;
  font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-ed-small);
}

/* FAQ : un « + » orange à droite, qui devient « – » à l'ouverture. */
.af-faq { display: flex; flex-direction: column; }
.af-faq-item { border-top: 1px solid var(--color-graphite); padding: 20px 0; }
.af-faq-item:last-child { border-bottom: 1px solid var(--color-graphite); }
.af-faq-q {
  cursor: pointer; font-size: var(--fs-ed-text); font-weight: var(--fw-semibold);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; list-style: none;
}
.af-faq-q::-webkit-details-marker { display: none; }
.af-faq-q::after { content: "+"; flex: none; color: var(--color-orange-primary); font-weight: var(--fw-regular); font-size: var(--fs-ed-sign); line-height: 1; }
.af-faq-item[open] > .af-faq-q::after { content: "\2013"; }
.af-faq-a { margin: 12px 0 0; font-size: var(--fs-ed-text); line-height: 1.6; color: var(--color-white-muted); }

/* Appel final */
.af-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.af-cta-p { margin: 0; font-size: var(--fs-ed-text); color: var(--color-white-muted); }
.af-cta-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; position: relative; }
.af-cta-input { flex-grow: 1; min-width: 240px; height: 56px; }
.af-cta-form .af-consent,
.af-cta-form .af-form-msg { flex-basis: 100%; text-align: left; }
.af-cta-form .af-form-msg { box-sizing: border-box; }
.af-cta-done { margin: 0; font-size: var(--fs-ed-text); color: var(--color-white-soft); }

/* Points du carrousel des captures : seulement quand il défile (téléphone et tablette). */
.af-dots { display: none; justify-content: center; gap: 8px; }
.af-dot { width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--color-graphite); }
.af-dot--on { background: var(--color-orange-primary); }

/* Tarif */
.af-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
.af-price { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.af-price--hl { border-color: var(--color-orange-primary); }
.af-price-num { margin: 0 0 8px; font-size: var(--fs-ed-title); line-height: 1.1; font-weight: var(--fw-semibold); text-align: center; }
.af-price .af-card-title { margin: 0; }
.af-price-note { text-align: center; }

/* Compteur des inscrits (nombre lu par /api/compteur.php, affiché par site.js) */
.af-count { margin: 0; font-size: var(--fs-ed-text); text-align: center; color: var(--color-white-muted); }
.af-count-num { font-weight: var(--fw-semibold); color: var(--color-orange-primary); }

/* --- Pied de page ---------------------------------------------------------- */
.af-footer { border-top: 1px solid var(--color-black-surface); padding: 40px 0; }
.af-footer-in { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; font-size: var(--fs-ed-small); color: var(--color-white-dim); }
.af-footer-nav { display: flex; gap: 12px 20px; flex-wrap: wrap; justify-content: center; }
.af-footer-link,
.af-footer-link:hover { color: var(--color-white-muted); text-decoration: none; }
.af-copy { margin: 0; }

/* --- Pages légales --------------------------------------------------------- */
.af-doc-sec { padding: 72px 0 104px; }
.af-doc { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.af-doc-h1 { margin: 0 0 16px; font-size: var(--fs-ed-doc-title); line-height: 1.1; font-weight: var(--fw-semibold); }
.af-doc-h2 {
  margin: 24px 0 0; font-size: var(--fs-ed-doc-subtitle); line-height: 1.2; font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--ls-title);
}
.af-doc-p { margin: 0; font-size: var(--fs-ed-text); line-height: 1.6; color: var(--color-white-muted); }
.af-doc-p strong { color: var(--color-white-soft); }
.af-doc-table-wrap { overflow-x: auto; }
.af-doc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-ed-text-medium); line-height: 1.5; color: var(--color-white-muted); }
.af-doc-table th,
.af-doc-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-black-surface); }
.af-doc-table thead th {
  font-size: var(--fs-ed-caption); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--color-white-dim); border-bottom-color: var(--color-graphite);
}
.af-doc-table tbody th { font-weight: var(--fw-semibold); color: var(--color-white-soft); }
.af-doc-back { margin: 24px 0 0; font-size: var(--fs-ed-message); }
/* Pages fabriquées depuis le Drive (tools/generer-pages-legales.py) : liens entre les textes,
   date de mise à jour, listes et sous-titres. Une adresse trop longue passe à la ligne
   plutôt que de faire défiler la page de côté. */
.af-doc-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: var(--fs-ed-small); }
.af-doc-nav-link,
.af-doc-nav-link:hover { color: var(--color-white-dim); text-decoration: none; }
.af-doc-nav-link[aria-current="page"] { color: var(--color-white-soft); font-weight: var(--fw-semibold); }
.af-doc-meta { margin: -12px 0 8px; font-size: var(--fs-ed-small); color: var(--color-white-dim); text-align: center; }
.af-doc-h3 { margin: 8px 0 0; font-size: var(--fs-ed-text); line-height: 1.4; font-weight: var(--fw-semibold); }
.af-doc-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-ed-text); line-height: 1.6; color: var(--color-white-muted); }
.af-doc-list li::marker { color: var(--color-white-dim); }
.af-doc-p, .af-doc-list { overflow-wrap: break-word; }

/* --- Page d'erreur et messages du serveur ---------------------------------- */
.af-err-sec { padding: 72px 0 104px; }
.af-err { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.af-err-h1 { margin: 0; font-size: var(--fs-ed-doc-title); line-height: 1.1; font-weight: var(--fw-semibold); }
.af-err-p { margin: 0; font-size: var(--fs-ed-text-large); line-height: 1.6; color: var(--color-white-muted); max-width: 620px; }
.af-err-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.af-err-actions .af-btn-ghost { min-height: 56px; box-sizing: border-box; }
.af-btn-link,
.af-btn-link:hover {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; box-sizing: border-box;
  border-radius: var(--radius-sm); background: var(--color-orange-primary); color: var(--color-black); text-decoration: none;
  font-size: var(--fs-ed-small); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps);
}

/* --- Alignement (demandes de César, 02/10/2026) ---------------------------- */
/* Titres centrés, textes courants justifiés. La césure automatique (langue de la page : français)
   évite les grands blancs entre les mots dans les colonnes étroites et sur téléphone. Les
   formulaires, la FAQ (questions), les tableaux et le pied de page gardent leur alignement. */
.af-eyebrow, .af-h1, .af-h2,
.af-card-title, .af-fn-num, .af-fn-title, .af-claim,
.af-joined-title, .af-doc-h1, .af-doc-h2 { text-align: center; }
.af-clubs .af-h2 { text-align: left; }
/* Blocs courts (problèmes, fonctions, données, tarif) : texte centré. Justifié, il laissait de
   grands blancs entre les mots sur téléphone (audit du 03/10/2026). */
.af-card-text, .af-fn-text, .af-joined-text { text-align: center; text-wrap: balance; }
.af-lead, .af-text-lg, .af-step-text,
.af-clubs-p, .af-faq-a, .af-note, .af-doc-p, .af-doc-list li {
  text-align: justify; -webkit-hyphens: auto; hyphens: auto; text-wrap: pretty;
}

/* --- Mouvement réduit : toutes les animations sont coupées ----------------- */
@media (prefers-reduced-motion: reduce) {
  .af-suck, .af-in, .af-word, .af-rev { animation: none !important; }
  .af-suck { transform: none; opacity: 1; filter: none; }
}

/* --- Tablette et téléphone (900 px et moins) ------------------------------- */
@media (max-width: 900px) {
  .af-hero, .af-g2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .af-g3, .af-g4, .af-shots { grid-template-columns: minmax(0, 1fr); }
  .af-form { grid-template-columns: minmax(0, 1fr); }
  .af-wrap { padding: 0 16px; }
  .af-h1 { font-size: var(--fs-ed-display-tablet); }
  .af-clubs .af-h2 { text-align: center; }
  .af-dots { display: flex; }
  .af-nav { gap: 16px; }
  .af-h2, .af-step-num { font-size: var(--fs-ed-title-tablet); }
  .af-hide-m { display: none !important; }
  /* Plus aucun lien dans l'en-tête à cette largeur : le nom se centre. */
  .af-header-in { justify-content: center; }

  /* Ajustements pour qu'aucun texte ne déborde d'un téléphone */
  .af-logo-word { font-size: var(--fs-ed-wordmark-tablet); }
  .af-logo-tag { font-size: var(--fs-ed-motto-tablet); }
  .af-fig, .af-fig--center, .af-fig--end { align-items: center; }
  .af-hero-shot { justify-content: center; }

  /* Captures sur téléphone (demande de César, 03/10/2026) : elles défilent de côté, la suivante
     dépasse pour montrer qu'il y a une suite ; la page, elle, ne défile toujours pas de côté. */
  .af-phone { max-width: 250px; }
  .af-shots {
    display: flex; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 4px 16px 16px; scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .af-shots::-webkit-scrollbar { display: none; }
  .af-shots > .af-fig { flex: 0 0 62%; max-width: 250px; scroll-snap-align: center; }
  .af-shots .af-rev { animation: none; }
  .af-doc-h1, .af-err-h1 { font-size: var(--fs-ed-doc-title-tablet); }
}

/* --- Téléphone (600 px et moins) : une page plus légère (audit du 03/10/2026) -
   Quatre tailles de texte seulement : 24 (grand titre), 20 (titres), 15 (textes), 13 (petits
   libellés, boutons). Exceptions : le logo, et les champs de saisie à 16 px (en dessous, l'iPhone
   zoome sur le champ). */
@media (max-width: 600px) {
  /* En-tête et bloc logo */
  .af-header-in { height: 60px; }
  .af-brand-word { font-size: var(--fs-ed-wordmark-header-phone); }
  .af-nav-btn, .af-nav-btn:hover { padding: 8px 12px; font-size: var(--fs-ed-small-phone); }
  .af-logo { padding: 28px 0 8px; }
  .af-logo-stack { gap: 10px; }
  .af-emblem-img { max-width: 168px; }
  .af-emblem-img--lg { max-width: 168px; }
  .af-logo-word { margin-top: 4px; font-size: var(--fs-ed-wordmark-phone); }
  .af-logo-tag { font-size: var(--fs-ed-motto-phone); letter-spacing: var(--ls-motto-phone); padding-left: var(--ls-motto-phone); }

  /* Hero */
  .af-hero-sec { padding: 28px 0 52px; }
  .af-hero, .af-g2 { gap: 28px; }
  .af-hero-col { gap: 16px; }
  .af-h1 { font-size: var(--fs-ed-display-phone); line-height: 1.2; }
  .af-lead { line-height: 1.5; }
  .af-phone { max-width: 210px; }
  .af-input, .af-select { height: 48px; }
  /* Les boutons prennent toute la largeur de leur bloc, comme les champs. */
  .af-btn { height: 50px; width: 100%; padding: 0 12px; }
  .af-cta-input { flex-basis: 100%; min-width: 0; height: 50px; }

  /* Sections */
  .af-sec { padding: 52px 0; }
  .af-band { padding: 52px 0; }
  .af-clubs-sec { padding: 0 0 52px; }
  .af-stack-48, .af-stack-40 { gap: 24px; }
  .af-stack-32 { gap: 20px; }
  .af-stack-18, .af-stack-16 { gap: 12px; }
  .af-sec-head { gap: 8px; }
  .af-h2 { line-height: 1.2; }
  .af-text-lg { line-height: 1.55; }

  /* Cartes */
  .af-g3, .af-g4 { gap: 12px; }
  .af-pb-card { padding: 16px 18px; }
  .af-fn-card { padding: 18px; gap: 6px; }
  .af-card-title { margin-bottom: 6px; }
  .af-card-text, .af-fn-text { line-height: 1.5; }

  /* Captures : un peu plus étroites, deux visibles et demie */
  .af-shots > .af-fig { flex-basis: 52%; max-width: 210px; }

  /* Principe, histoire, clubs */
  .af-steps { gap: 10px; }
  .af-step { padding: 14px 16px; gap: 14px; }
  .af-clubs { padding: 22px 18px; gap: 16px; }
  .af-btn-ghost, .af-btn-ghost:hover { min-height: 46px; padding: 0 20px; width: 100%; box-sizing: border-box; justify-content: center; }
  .af-btn-link, .af-btn-link:hover { width: 100%; justify-content: center; }

  /* FAQ, appel final, pied de page */
  .af-faq-item { padding: 14px 0; }
  .af-faq-a { margin-top: 8px; line-height: 1.55; }
  .af-cta { gap: 16px; }
  .af-footer { padding: 28px 0; }
  .af-footer-in { gap: 16px; }

  /* Pages légales et page d'erreur */
  .af-doc-sec, .af-err-sec { padding: 36px 0 60px; }
  .af-doc-h1, .af-err-h1 { margin-bottom: 8px; font-size: var(--fs-ed-doc-title-phone); }
  .af-doc-h2 { margin-top: 16px; font-size: var(--fs-ed-doc-subtitle-phone); }
  .af-doc-p, .af-err-p { font-size: var(--fs-ed-text-phone); line-height: 1.55; }
  .af-doc-list { padding-left: 18px; font-size: var(--fs-ed-text-phone); line-height: 1.55; }
  .af-doc-h3 { font-size: var(--fs-ed-text-phone); }
  .af-doc-nav, .af-doc-meta { font-size: var(--fs-ed-small-phone); }
  .af-doc-meta { margin-top: -4px; }
  .af-doc-table { font-size: var(--fs-ed-small); }

  /* L'échelle des quatre tailles */
  .af-prices { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .af-price-num { font-size: var(--fs-ed-title-phone); margin-bottom: 4px; }
  .af-faq-q::after { font-size: var(--fs-ed-sign-phone); }
  .af-nav { gap: 12px; }
  .af-h2, .af-step-num { font-size: var(--fs-ed-title-phone); }
  .af-lead, .af-text-lg, .af-card-text, .af-fn-text, .af-step-text, .af-clubs-p,
  .af-faq-q, .af-faq-a, .af-cta-p, .af-cta-done, .af-count { font-size: var(--fs-ed-text-phone); }
  .af-eyebrow, .af-card-title, .af-fn-num, .af-fn-title, .af-claim, .af-fig-cap, .af-label, .af-note,
  .af-btn, .af-btn-ghost, .af-btn-ghost:hover, .af-btn-link, .af-btn-link:hover,
  .af-nav-btn, .af-nav-btn:hover, .af-footer-in, .af-consent { font-size: var(--fs-ed-small-phone); }
}
