/* Français : feuille de style du site. Couleurs et composants du design system « Français ». Fichier construit par outils/construire.py */
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/BodoniModa-latin-opsz.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('/fonts/DMMono-latin-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('/fonts/DMMono-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --fond: #fcfcfa;
  --fond-champ: #ffffff;
  --fond-doux: #eeeeea;
  --encre: #15171c;
  --encre-2: #3f434a;
  --gris-texte: #5e636b;
  --trait: #15171c1f;
  --trait-fort: #15171c29;
  --bordure-champ: #858a91;
  --action: #15171c;
  --action-survol: #2e3139;
  --sur-action: #fcfcfa;
  --blanc-carte: #fcfcfa;
  --carte-encre: #15171c;
  --carte-gris: #5e636b;
  --blanc-metal: #f3f2ee;
  --acier-grave: #5f646b;
  --or-texte: #7a5a12;
  --bleu-lisere: #224bb2;
  --rouge-lisere: #c22826;
  --or-1: #fff4c2;
  --or-2: #f7dc8a;
  --or-3: #e8c25a;
  --or-4: #c08f2e;
  --or-5: #a8771c;
  --or-6: #8a6014;
  --or-contour: #5a400b;
  --espace-1: 4px;
  --espace-2: 8px;
  --espace-3: 12px;
  --espace-4: 16px;
  --espace-5: 20px;
  --espace-6: 24px;
  --espace-7: 28px;
  --espace-8: 32px;
  --espace-11: 44px;
  --espace-14: 56px;
  --espace-18: 72px;
  --espace-20: 80px;
  --espace-30: 120px;
  --rayon-champ: 10px;
  --rayon-bouton: 12px;
  --rayon-encart: 14px;
  --rayon-wallet: 16px;
  --rayon-carte: 32px;
  --ombre-carte: 0 24px 44px #15171c2e, 0 6px 14px #15171c1f;
  --bord-carte: inset 0 0 0 1px #15171c12;
  --anneau-focus: 0 0 0 2px #fcfcfa, 0 0 0 4px #15171c;
  --font-affichage: "Bodoni Moda", Didot, "Bodoni 72", "Times New Roman", serif;
  --font-mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* Français : les composants. S'appuie sur les variables de tokens.css (couleurs, espaces, rayons, polices). */

.fr-page { background: var(--fond); color: var(--encre); font-family: var(--font-mono); }
.libelle, .fr-libelle { text-transform: uppercase; }
.fr-libelle { font-family: var(--font-mono); font-size: 12px; line-height: 1; letter-spacing: 0.16em; color: var(--gris-texte); }
.fr-apercu { display: flex; flex-direction: column; gap: var(--espace-5); padding: var(--espace-5); max-width: 390px; box-sizing: border-box; }
.fr-apercu--large { max-width: none; }
.fr-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-3); }

/* Bouton : un seul bouton principal par écran. */
.fr-bouton { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 var(--espace-8); border: 0; border-radius: var(--rayon-bouton); background: var(--action); color: var(--sur-action); font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: 0.06em; line-height: 1; text-decoration: none; cursor: pointer; }
.fr-bouton:hover { background: var(--action-survol); color: var(--sur-action); }
.fr-bouton:focus-visible { outline: none; box-shadow: var(--anneau-focus); }
.fr-bouton--plein { display: flex; width: 100%; }
.fr-bouton--secondaire { min-height: 44px; padding: 0 var(--espace-4); border-radius: 8px; background: var(--fond-doux); color: var(--encre); font-size: 13px; letter-spacing: 0; }
.fr-bouton--secondaire:hover { background: var(--fond-doux); color: var(--encre); box-shadow: inset 0 0 0 1px var(--bordure-champ); }
.fr-bouton:disabled, .fr-bouton[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* Champ : libellé au-dessus, saisie de 52 px. */
.fr-champ { display: flex; flex-direction: column; gap: var(--espace-2); min-width: 0; }
.fr-saisie { box-sizing: border-box; width: 100%; height: 52px; padding: 0 var(--espace-4); border: 1px solid var(--bordure-champ); border-radius: var(--rayon-champ); background: var(--fond-champ); color: var(--encre); font-family: var(--font-mono); font-size: 16px; }
.fr-saisie::placeholder { color: var(--gris-texte); opacity: 1; }
.fr-saisie:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 1px var(--encre); }
.fr-saisie[aria-invalid="true"] { border: 2px solid var(--encre); padding: 0 15px; }
.fr-liste { position: relative; }
.fr-liste .fr-saisie { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.fr-liste::after { content: ""; position: absolute; right: 19px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--encre); border-bottom: 1.5px solid var(--encre); transform: rotate(45deg); pointer-events: none; }
.fr-aide { margin: 0; font-size: 12px; line-height: 1.5; color: var(--gris-texte); }
.fr-erreur { margin: 0; display: flex; align-items: flex-start; gap: var(--espace-2); font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--encre); }
.fr-erreur::before { content: "!"; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--encre); color: var(--fond); font-size: 12px; line-height: 18px; text-align: center; }

/* Choix Français / Française : un groupe de boutons radio. */
.fr-choix { margin: 0; padding: 0; border: 0; min-width: 0; }
.fr-choix > legend { padding: 0 0 var(--espace-2) 0; }
.fr-choix__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fr-choix__option { position: relative; display: block; }
.fr-choix__option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.fr-choix__option span { box-sizing: border-box; height: 52px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bordure-champ); border-radius: var(--rayon-champ); background: var(--fond-champ); color: var(--encre); font-family: var(--font-affichage); font-size: 17px; font-weight: 500; letter-spacing: 0.12em; cursor: pointer; }
.fr-choix__option input:checked + span { background: var(--action); border-color: var(--action); color: var(--sur-action); }
.fr-choix__option input:focus-visible + span { box-shadow: var(--anneau-focus); }

/* Case à cocher : la case, puis son texte. */
.fr-case { display: flex; align-items: flex-start; gap: var(--espace-3); }
.fr-case input { flex-shrink: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--action); cursor: pointer; }
.fr-case label { font-size: 13px; line-height: 1.55; color: var(--encre-2); cursor: pointer; }
.fr-case a { color: var(--encre); text-underline-offset: 3px; }

/* Carte : l'objet, à toute taille. La largeur vient de son cadre (container query), les tailles suivent. */
.fr-carte-cadre { container-type: inline-size; width: 100%; }
.fr-carte { position: relative; box-sizing: border-box; width: 100cqw; aspect-ratio: 856 / 540; overflow: hidden; border-radius: 3.738cqw; background: var(--blanc-carte); box-shadow: var(--bord-carte); color: var(--carte-encre); font-family: var(--font-mono); display: flex; flex-direction: column; justify-content: space-between; padding: 6.776cqw 7.477cqw 7.710cqw 7.477cqw; }
.fr-carte--posee { box-shadow: var(--bord-carte), var(--ombre-carte); }
.fr-carte__haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 2.804cqw; }
.fr-carte__mot { font-family: var(--font-affichage); font-size: 6.075cqw; font-weight: 500; letter-spacing: 0.14em; line-height: 1; }
.fr-carte__ligne { display: flex; justify-content: space-between; align-items: center; gap: 2.804cqw; }
.fr-carte__numero { font-family: var(--font-affichage); font-size: 6.776cqw; font-weight: 400; letter-spacing: 0.05em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.fr-carte__symbole { flex-shrink: 0; display: block; width: 24.07cqw; height: 18.46cqw; object-fit: contain; }
.fr-carte__bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.804cqw; }
.fr-carte__nom { font-size: 2.570cqw; letter-spacing: 0.14em; line-height: 1; text-transform: uppercase; }
.fr-carte__depuis { font-size: 1.636cqw; letter-spacing: 0.22em; line-height: 1; color: var(--carte-gris); }
.fr-carte .fr-lisere { position: absolute; left: 0; right: 0; bottom: 0; height: 1.168cqw; }
.fr-carte--fondateur { background-color: var(--blanc-metal); background-image: linear-gradient(118deg, #ffffff00 28%, #ffffff80 44%, #ffffff00 58%), repeating-linear-gradient(0deg, #15171c05 0, #15171c05 1px, #15171c00 1px, #15171c00 3px); box-shadow: inset 0 0 0 1px #15171c1f, inset 0 2px 0 #ffffffe6; color: var(--acier-grave); }
.fr-carte--fondateur.fr-carte--posee { box-shadow: inset 0 0 0 1px #15171c1f, inset 0 2px 0 #ffffffe6, var(--ombre-carte); }
.fr-carte--fondateur .fr-carte__mot, .fr-carte--fondateur .fr-carte__numero, .fr-carte--fondateur .fr-carte__bas, .fr-carte__mention { text-shadow: 0 1px 0 #fffffff2, 0 -1px 0 #15171c24; }
.fr-carte--fondateur .fr-carte__depuis { color: var(--acier-grave); }
.fr-carte--fondateur .fr-carte__symbole { width: 17.52cqw; height: 18.46cqw; filter: drop-shadow(0 0.234cqw 0.175cqw #46300659); }
.fr-carte__mention { padding-top: 0.935cqw; font-size: 1.636cqw; letter-spacing: 0.34em; line-height: 1; color: var(--or-texte); }

/* Liseré : trois tiers égaux, le bleu à gauche, le tiers blanc est le fond. */
.fr-lisere { display: flex; height: 6px; }
.fr-lisere > i { flex: 1 1 0; }
.fr-lisere > i:first-child { background: var(--bleu-lisere); }
.fr-lisere > i:last-child { background: var(--rouge-lisere); }

/* Chiffres : compteur et date, séparés par des filets. */
.fr-chiffres { display: flex; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.fr-chiffre { display: flex; flex-direction: column; gap: var(--espace-2); padding: 18px var(--espace-4) 18px 0; min-width: 0; }
.fr-chiffre + .fr-chiffre { flex-grow: 1; padding-left: var(--espace-5); border-left: 1px solid var(--trait); }
.fr-chiffre__valeur { font-family: var(--font-affichage); font-size: 28px; font-weight: 400; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.fr-chiffre__valeur sup { font-size: 0.55em; line-height: 0; }

/* Encart : une information à ne pas manquer, jamais une alerte. */
.fr-encart { display: flex; align-items: flex-start; gap: 14px; padding: var(--espace-4); border: 1px solid var(--trait-fort); border-radius: var(--rayon-encart); background: var(--fond-champ); }
.fr-encart__icone { flex-shrink: 0; width: 22px; height: 22px; display: block; color: var(--encre); }
.fr-encart__texte { display: flex; flex-direction: column; gap: 6px; }
.fr-encart__titre { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--encre); }
.fr-encart__corps { margin: 0; font-size: 13px; line-height: 1.55; color: var(--encre-2); }

/* Lien de parrainage : l'adresse, et le bouton Copier. */
.fr-lien { box-sizing: border-box; height: 56px; display: flex; align-items: center; gap: var(--espace-2); padding: 0 6px 0 var(--espace-4); border: 1px solid var(--bordure-champ); border-radius: var(--rayon-bouton); background: var(--fond-champ); }
.fr-lien__adresse { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Classement : rang, département, nombre d'inscrits. */
.fr-classement { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--trait); }
.fr-classement li { height: 52px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--trait); }
.fr-classement__rang { width: 28px; flex-shrink: 0; font-family: var(--font-affichage); font-size: 22px; line-height: 1; font-variant-numeric: lining-nums; }
.fr-classement__nom { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.3; }
.fr-classement__code { color: var(--gris-texte); }
.fr-classement__nombre { font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .fr-bouton, .fr-choix__option span { transition: background-color 0.15s ease, color 0.15s ease; }
}

/* Les pages du site : mise en page, mobile d'abord (ordinateur à partir de 1024 px). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--font-mono); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--encre); text-underline-offset: 3px; }
a:hover { color: var(--gris-texte); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--anneau-focus); border-radius: 4px; }
[hidden] { display: none !important; }
sup { font-size: 0.7em; line-height: 0; vertical-align: super; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 12px 16px; border-radius: 8px; background: var(--action); color: var(--sur-action); font-size: 14px; }
.lien-evitement:focus { top: 12px; color: var(--sur-action); }

.page { width: 100%; max-width: 640px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; gap: var(--espace-14); }

/* En-tête : sur ordinateur seulement ; les pages secondaires en ont une simple */
.entete { display: none; }
.entete__mot { font-family: var(--font-affichage); font-size: 20px; font-weight: 500; letter-spacing: 0.14em; line-height: 1; color: var(--encre); text-decoration: none; }
.entete__mot:hover { color: var(--encre); }
.entete-simple { display: flex; justify-content: space-between; align-items: center; gap: var(--espace-4); padding: 32px var(--espace-5) 0; }
.entete-simple a:not(.entete__mot) { font-size: 13px; }

/* Haut de la page d'accueil */
.haut { display: flex; flex-direction: column; gap: var(--espace-7); padding: 48px var(--espace-5) 0; }
.haut__texte { display: flex; flex-direction: column; gap: 14px; }
.titre-page { margin: 0; font-family: var(--font-affichage); font-size: 68px; font-weight: 500; line-height: 1; letter-spacing: -0.005em; }
.sous-titre { margin: 0; font-size: 15px; line-height: 1.5; color: var(--encre-2); }
.haut__objet { display: flex; flex-direction: column; gap: var(--espace-7); }
.scene { display: flex; justify-content: center; align-items: center; padding: 22px 0; }
.scene .fr-carte-cadre { width: min(330px, 100%); transform: rotate(-4deg); }
.scene--fondateur .fr-carte-cadre { transform: rotate(3deg); }
.fr-chiffre--compteur { width: 128px; flex-shrink: 0; }
.fr-chiffres--seul .fr-chiffre { padding-left: 0; border-left: 0; }

/* Le formulaire */
.reserver { display: flex; flex-direction: column; gap: var(--espace-7); margin-top: var(--espace-7); padding: 0; }
.bloc-titre { display: flex; flex-direction: column; gap: var(--espace-3); }
.titre-section { margin: 0; font-family: var(--font-affichage); font-size: 32px; font-weight: 500; line-height: 1.12; }
.texte-section { margin: 0; font-size: 14px; line-height: 1.55; color: var(--encre-2); }
/* L'invitation d'un membre (francais.app/r/CODE) : en tête de la page, encadrée (revue de lisibilité du 26/10/2026) */
.invitation { margin: 0; padding: 12px 16px; border: 1px solid var(--trait-fort); border-radius: var(--rayon-encart); background: var(--fond-champ); font-size: 13px; line-height: 1.55; color: var(--encre); }
.invitation strong { font-weight: 500; }
.texte-section--fort { color: var(--encre); font-weight: 500; }
.formulaire { display: flex; flex-direction: column; gap: 22px; }
.ligne-choix { display: flex; flex-direction: column; gap: 22px; }
.consentements { display: flex; flex-direction: column; gap: 14px; }
.envoi { display: flex; flex-direction: column; gap: var(--espace-3); }
.envoi .fr-bouton { width: 100%; }
.note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--gris-texte); text-align: center; }
.note--gauche { text-align: left; }
/* « C'est noté » après un réglage (24/10/2026) : le pendant de .fr-erreur, une coche dans la pastille au lieu du « ! ».
   Il reste affiché jusqu'au réglage suivant (public/js/moi.js). */
.note-ok { position: relative; margin: 0; display: flex; align-items: flex-start; gap: var(--espace-2); font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--encre); }
.note-ok::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--encre); }
.note-ok::after { content: ""; position: absolute; left: 6.5px; top: 5px; width: 5px; height: 9px; border: solid var(--fond); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.presque-fini { display: flex; flex-direction: column; gap: var(--espace-6); }
.presque-fini:focus { outline: none; }
.presque-fini { scroll-margin-top: var(--espace-6); }
/* La question sur la mesure de nos pubs, juste après l'inscription (27/10/2026) : sous l'encadré de l'email,
   seulement pour qui vient d'une pub ; « Refuser » et « Accepter » au même niveau */
.question-pub { display: flex; flex-direction: column; gap: 12px; padding: var(--espace-4); border: 1px solid var(--trait-fort); border-radius: var(--rayon-encart); background: var(--fond-champ); }
.question-pub__question { display: flex; flex-direction: column; gap: 6px; }
.question-pub__titre { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--encre); }
.question-pub__corps { margin: 0; font-size: 13px; line-height: 1.55; color: var(--encre-2); }
.question-pub__plus { padding: 0; border: 0; background: none; color: var(--encre); font-family: inherit; font-size: inherit; line-height: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.question-pub__plus:focus-visible { outline: none; box-shadow: var(--anneau-focus); }
.question-pub__detail { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; padding-left: var(--espace-3); border-left: 2px solid var(--trait-fort); }
.question-pub__detail p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--encre-2); }
.question-pub__detail a { color: var(--encre); text-underline-offset: 3px; }
.question-pub__boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.question-pub__boutons .fr-bouton { width: 100%; }
/* « Retrouver mon numéro » (27/10/2026), sous le formulaire */
.retrouver { display: flex; flex-direction: column; gap: 14px; }
.retrouver__bloc { display: flex; flex-direction: column; gap: 16px; padding: var(--espace-4); border: 1px solid var(--trait-fort); border-radius: var(--rayon-encart); background: var(--fond-champ); }
.retrouver__formulaire { display: flex; flex-direction: column; gap: 16px; }
.retrouver__formulaire .fr-bouton { width: 100%; }
/* Le titre qui reçoit le focus par script (lien invalide, « Presque fini ») : pas d'anneau au chargement */
.titre-moi:focus-visible, .presque-fini:focus-visible { box-shadow: none; }

/* Accueil sur téléphone (revue de lisibilité du 26/10/2026, décidé le 26/10) : le titre du formulaire, « Gratuit et
   sans engagement » et le champ email dans le premier écran ; la carte reste l'objet principal. */
@media (max-width: 1023px) {
  .haut { padding-top: 24px; gap: 20px; }
  .haut__texte { gap: 10px; }
  .haut .titre-page { font-size: 56px; }
  .haut__objet { gap: 12px; }
  .haut__objet .scene { padding: 8px 0; }
  .haut__objet .fr-carte-cadre { width: min(280px, 84%); }
  .haut__objet .fr-chiffre { padding-top: 12px; padding-bottom: 12px; }
  .reserver { margin-top: 0; gap: 20px; }
}

/* Sections */
.section { display: flex; flex-direction: column; gap: var(--espace-7); margin: 0 var(--espace-5); padding-top: var(--espace-11); border-top: 1px solid var(--trait); }
.etapes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 26px; }
.etape { display: flex; align-items: flex-start; gap: 18px; }
.etape__numero { width: 24px; flex-shrink: 0; font-family: var(--font-affichage); font-size: 34px; font-weight: 400; line-height: 0.9; }
.etape__texte { display: flex; flex-direction: column; gap: 6px; }
.etape__titre { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.etape__corps { margin: 0; font-size: 13px; line-height: 1.55; color: var(--encre-2); }
.surtitre-or { margin: 0; font-size: 12px; letter-spacing: 0.22em; line-height: 1; color: var(--or-texte); }
.fr-classement .en-plus { display: none; }
.lien-discret { align-self: flex-start; font-size: 13px; line-height: 1.4; text-underline-offset: 4px; }
.vide { margin: 0; font-size: 13px; line-height: 1.55; color: var(--gris-texte); }

/* L'idée et les questions (accueil) */
.idee { display: flex; flex-direction: column; gap: var(--espace-4); }
.idee__accroche { margin: 0; font-size: 16px; line-height: 1.55; color: var(--encre); }
.questions { border-top: 1px solid var(--trait); }
.question { border-bottom: 1px solid var(--trait); }
.question summary { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-size: 15px; font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none; }
.question summary::-webkit-details-marker { display: none; }
.question summary:focus-visible { outline: none; box-shadow: var(--anneau-focus); border-radius: 4px; }
.question__signe { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.question__signe::before, .question__signe::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--encre); transition: transform 0.2s ease; }
.question__signe::after { transform: rotate(90deg); }
.question[open] .question__signe::after { transform: rotate(0deg); }
.question p { margin: 0; padding: 0 0 18px; max-width: 62ch; font-size: 14px; line-height: 1.6; color: var(--encre-2); }
@media (prefers-reduced-motion: reduce) { .question__signe::before, .question__signe::after { transition: none; } }

/* Pied de page */
.pied { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: 18px; padding: 40px var(--espace-5) 50px; border-top: 1px solid var(--trait); }
.pied__marque { display: flex; flex-direction: column; gap: 18px; }
.pied__mot { font-family: var(--font-affichage); font-size: 20px; font-weight: 500; letter-spacing: 0.14em; line-height: 1; }
.pied__avertissement { margin: 0; font-size: 12px; line-height: 1.6; color: var(--gris-texte); }
.pied__liens { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.pied__liens a { font-size: 12px; line-height: 1.5; }
.pied .fr-lisere { position: absolute; left: 0; right: 0; bottom: 0; }

/* Page personnelle (après la confirmation) */
.moi { display: flex; flex-direction: column; gap: var(--espace-8); padding: 0 var(--espace-5); }
.etat { display: flex; flex-direction: column; gap: var(--espace-8); }
.titre-moi { margin: 0; font-family: var(--font-affichage); font-size: 40px; font-weight: 500; line-height: 1.08; }
.titre-moi:focus { outline: none; }
.etat--serre { gap: var(--espace-6); }
/* Pages personnelles sur téléphone : moins d'espace sous l'en-tête, le bouton de confirmation remonte (26/10/2026) */
.page--perso { gap: var(--espace-8); }
.recap { margin: 0; border-top: 1px solid var(--trait); }
.recap > div { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: 14px; line-height: 1.4; }
.recap dt { flex-shrink: 0; color: var(--encre-2); }
.recap dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.rang { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.rang__numero { margin: 0; font-family: var(--font-affichage); font-size: 48px; font-weight: 400; letter-spacing: 0.04em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.places { display: flex; flex-direction: column; gap: 20px; }
.places .titre-section { font-size: 30px; }
.projections { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--trait); }
.projections li { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--trait); font-size: 14px; line-height: 1.3; }
.projections li span:first-child { color: var(--encre-2); }
.projections li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.interet-fondateur { display: flex; flex-direction: column; gap: 14px; padding-top: var(--espace-6); border-top: 1px solid var(--trait); }
.interet-fondateur h2 { margin: 0; font-weight: 400; }
/* La carte Fondateur au-dessus de la case d'intérêt (24/10/2026) : la même que sur l'accueil, en plus petit ; le mot suit le choix */
.interet-fondateur__carte { display: flex; justify-content: center; padding: 10px 0 16px; }
.interet-fondateur__carte .fr-carte-cadre { width: min(280px, 82%); transform: rotate(3deg); }
.reglages { display: flex; flex-direction: column; gap: 14px; padding-top: var(--espace-6); border-top: 1px solid var(--trait); }
.reglages h2 { margin: 0; font-weight: 400; }
.bouton-texte { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--encre); font-family: var(--font-mono); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.zone-suppression { display: flex; flex-direction: column; gap: 14px; padding: var(--espace-4); border: 1px solid var(--trait-fort); border-radius: var(--rayon-encart); background: var(--fond-champ); }

/* Classement complet */
.fr-classement__nombre--peu { font-size: 12px; color: var(--gris-texte); white-space: nowrap; }
.classement-complet { margin: 0 var(--espace-5); display: flex; flex-direction: column; gap: var(--espace-6); }

/* Textes longs : confidentialité, mentions légales */
.texte-long { margin: 0 var(--espace-5); max-width: 68ch; display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.65; color: var(--encre-2); }
.texte-long h1 { margin: 0 0 8px 0; font-family: var(--font-affichage); font-size: 44px; font-weight: 500; line-height: 1.08; color: var(--encre); }
.texte-long h2 { margin: 22px 0 0 0; font-family: var(--font-affichage); font-size: 26px; font-weight: 500; line-height: 1.2; color: var(--encre); }
.texte-long h3 { margin: 10px 0 0 0; font-size: 14px; font-weight: 500; color: var(--encre); }
.texte-long p, .texte-long ul { margin: 0; }
.texte-long ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.texte-long strong { color: var(--encre); font-weight: 500; }
.texte-long .maj { font-size: 12px; color: var(--gris-texte); }
.texte-long .a-completer { background: #FFF4C2; color: var(--encre); padding: 0 4px; border-radius: 3px; }
.tableau { width: 100%; overflow-x: auto; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.tableau th, .tableau td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.tableau th { font-weight: 500; color: var(--encre); }

/* La page « L'histoire » (24/10/2026) : les sections de l'accueil, une partie par symbole ou par détail de la carte */
.histoire { display: flex; flex-direction: column; gap: var(--espace-11); }
.histoire__haut { display: flex; flex-direction: column; gap: 14px; padding: 0 var(--espace-5); }
.histoire__texte { display: flex; flex-direction: column; gap: var(--espace-4); }
.histoire__symbole { width: 150px; height: auto; margin-top: var(--espace-2); }
.histoire__fin { padding: 0 var(--espace-5); }
.histoire__fin .fr-bouton { width: 100%; }
/* Le bouton après les questions de l'accueil (revue de lisibilité du 26/10/2026) */
.accueil__fin { padding: 0 var(--espace-5); }
.accueil__fin .fr-bouton { width: 100%; }

/* Ordinateur */
@media (min-width: 1024px) {
  .histoire { gap: 72px; }
  .histoire__haut { padding: 0 var(--espace-20); gap: 22px; }
  .histoire__symbole { width: 190px; }
  .histoire__fin { padding: 0 var(--espace-20); }
  .histoire__fin .fr-bouton { width: auto; }
  .accueil__fin { padding: 0 var(--espace-20); }
  .accueil__fin .fr-bouton { width: auto; }
  .invitation { max-width: 520px; }
  .retrouver__formulaire .fr-bouton { width: auto; align-self: flex-start; }
  .page { max-width: 1440px; gap: var(--espace-30); }
  .entete { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px var(--espace-20) 0; }
  .entete nav { display: flex; align-items: center; gap: 36px; }
  .entete nav a { font-size: 13px; letter-spacing: 0.04em; line-height: 1; text-decoration: none; }
  .entete nav a:hover { text-decoration: underline; color: var(--encre); }
  .page--accueil { gap: 72px; }
  .page--accueil > .section:first-of-type { margin-top: 48px; }
  .haut { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 96px; row-gap: 44px; align-items: start; padding: 0 var(--espace-20); }
  .haut__texte { grid-column: 1; grid-row: 1; gap: 22px; }
  .titre-page { font-size: 124px; line-height: 0.92; letter-spacing: -0.01em; }
  .sous-titre { font-size: 18px; }
  .haut__objet { grid-column: 2; grid-row: 1 / span 2; gap: 48px; padding-top: 24px; }
  .scene { padding: 37px 0; }
  .scene .fr-carte-cadre { width: min(580px, 100%); }
  .fr-chiffre--compteur { width: 220px; }
  .fr-chiffre__valeur { font-size: 40px; }
  .fr-chiffre + .fr-chiffre { padding-left: 32px; }
  .reserver { grid-column: 1; grid-row: 2; max-width: 520px; margin-top: 0; padding: 0; gap: 20px; }
  .reserver .titre-section { font-size: 30px; line-height: 1.15; }
  .formulaire { gap: 20px; }
  .ligne-choix { flex-direction: row; align-items: flex-start; gap: 16px; }
  .ligne-choix .fr-choix { flex-grow: 1; }
  .ligne-choix .fr-choix__option span { font-size: 16px; }
  .champ-departement { width: 196px; flex-shrink: 0; }
  .consentements { gap: 12px; }
  .envoi { flex-direction: row; align-items: center; gap: 24px; }
  .envoi .fr-bouton { width: auto; flex-shrink: 0; }
  .envoi .note { text-align: left; }
  .section { margin: 0 var(--espace-20); padding-top: 72px; gap: 48px; }
  .titre-section { font-size: 48px; line-height: 1.1; }
  .etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
  .etape { flex-direction: column; gap: 14px; }
  .etape__numero { width: auto; font-size: 64px; line-height: 1; }
  .etape__titre { font-size: 17px; }
  .etape__corps { font-size: 14px; line-height: 1.6; }
  .deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 96px; align-items: center; }
  .deux-colonnes--haut { align-items: start; }
  .deux-colonnes .texte-section { font-size: 16px; line-height: 1.6; max-width: 460px; }
  .idee { max-width: 540px; gap: var(--espace-5); }
  .idee__accroche { font-size: 20px; line-height: 1.5; }
  .question summary { min-height: 64px; font-size: 16px; }
  .question p { font-size: 15px; }
  .scene--fondateur { padding: 40px 0; }
  .scene--fondateur .fr-carte-cadre { width: min(540px, 100%); }
  .fr-classement--deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 40px; }
  .fr-classement .en-plus { display: flex; }
  .fr-classement li { height: 56px; }
  .pied { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 56px var(--espace-20) 64px; }
  .pied__marque { gap: 16px; }
  .pied__mot { font-size: 22px; }
  .pied__avertissement { font-size: 13px; }
  .pied__liens { gap: 32px; }
  .pied__liens a { font-size: 13px; }
  .entete-simple { padding: 36px var(--espace-20) 0; }
  .moi { width: 100%; max-width: 560px; margin: 0 auto; padding: 0; }
  .classement-complet { margin: 0 var(--espace-20); max-width: 720px; }
  .texte-long { margin: 0 var(--espace-20); }
}
