/* Top Exo — charte graphique commune a toutes les pages du site vitrine.
   Source de verite du design system : tokens, base typographique, en-tete, pied de page
   et composants de contenu (documents legaux, cartes, tableaux, FAQ, formulaires, bandeau CTA).

   A charger APRES css/site.css (qui fournit Poppins, Font Awesome et le reste de Tailwind)
   et AVANT le <style> inline propre a la page, qui doit pouvoir surcharger la charte.

   Les styles specifiques a l'accueil (hero, matieres, atelier, niveaux) restent dans index.html. */

/* ---------------------------------------------------------------- Polices */
/* Bricolage Grotesque, police d'affichage. Fichier variable auto-heberge (500 a 800),
   comme Poppins : pas d'appel a fonts.gstatic.com depuis les pages. */
/* latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-latin.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;
}

/* ----------------------------------------------------------------- Tokens */
:root {
    color-scheme: light;
    --ink: #222126;
    --blue: #2949e7;
    --red: #ef4b36;
    --yellow: #f5eb64;
    --paper: #fff;
    --muted: #64636b;
    --line: #e1e1e7;
    --mist: #f2f4fc;
    --display: 'Bricolage Grotesque', 'Poppins', sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Poppins', sans-serif; font-size: 14px; line-height: 1.8; letter-spacing: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; text-wrap: balance; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
::selection { color: var(--ink); background: var(--yellow); }

.shell { width: min(1240px, calc(100% - 100px)); margin-inline: auto; }
.shell-narrow { width: min(880px, calc(100% - 100px)); margin-inline: auto; }
.section { padding-block: 104px; }
.section-tight { padding-block: 68px; }
.section-mist { background: var(--mist); border-top: 1px solid #e0e5f6; border-bottom: 1px solid #e0e5f6; }

.kicker { display: flex; align-items: center; gap: 12px; font-size: 10px; line-height: 1.6; font-weight: 600; text-transform: uppercase; }
.kicker::before { content: ''; display: block; flex: 0 0 23px; width: 23px; height: 2px; background: currentColor; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 23px; min-height: 53px; padding: 14px 24px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.6; text-align: center; transition: background .2s ease, box-shadow .2s ease; }
.button-blue { color: white; background: var(--blue); }
.button-blue:hover { background: #203bc2; box-shadow: 4px 4px 0 #dbe1ff; }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button-yellow:hover { background: #fff585; box-shadow: 4px 4px 0 rgba(255, 255, 255, .3); }
.button-ink { color: white; background: var(--ink); }
.button-ink:hover { background: #403c4b; }
.button-ghost { border-color: var(--line); background: white; color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--mist); }
.button:disabled, .button[aria-disabled="true"] { color: #8b8f9e; background: #edf0f7; box-shadow: none; cursor: not-allowed; }
.button .fas, .text-link .fas { flex-shrink: 0; font-size: 12px; transition: transform .25s var(--ease); }

.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 12px; font-weight: 600; }
.text-link span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.skip-link { position: fixed; z-index: 100; left: 12px; top: 12px; transform: translateY(-160%); padding: 10px 18px; background: var(--yellow); }
.skip-link:focus { transform: none; }

/* ---------------------------------------------------------------- En-tete */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .98); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; height: 83px; }
.wordmark { display: inline-flex; align-items: center; gap: 7px; font: 800 31px/1 var(--display); white-space: nowrap; }
.wordmark-dot { width: 9px; height: 9px; background: var(--red); border-radius: 50%; align-self: flex-end; margin-bottom: 4px; }
.desktop-nav { display: flex; align-items: center; gap: 31px; }
.desktop-nav a { position: relative; font-size: 11px; font-weight: 600; padding-block: 13px; white-space: nowrap; }
.desktop-nav a::after { content: ''; position: absolute; inset: auto 0 7px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 23px; }
.login { font-size: 11px; font-weight: 600; }
.login:hover { color: var(--blue); }
.header-actions .button { min-height: 43px; padding: 10px 17px; font-size: 11px; gap: 16px; white-space: nowrap; }
.mobile-menu { display: none; }

/* ------------------------------------------------------------ Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); }
.crumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.crumbs li { list-style: none; display: flex; align-items: center; gap: 9px; }
.crumbs li + li::before { content: '/'; color: #b6b6c2; }
.crumbs ol, .crumbs ul { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; padding: 0; }

/* ----------------------------------------------- En-tete de page interieure */
.page-head { background: var(--mist); border-bottom: 1px solid #e0e5f6; padding-block: 46px 52px; }
.page-head .crumbs { margin-bottom: 28px; }
.page-head .kicker { color: var(--blue); margin-bottom: 19px; }
.page-head h1 { max-width: 900px; font-size: 55px; line-height: 1.06; }
.page-head h1 span { color: var(--blue); }
.page-head .page-lead { max-width: 620px; margin-top: 21px; color: #505568; font-size: 13px; }
.page-head .page-lead strong { color: var(--ink); font-weight: 600; }
.page-head-meta { display: flex; flex-wrap: wrap; gap: 9px 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #cdd4ee; font-size: 10px; color: var(--muted); }
.page-head-meta strong { color: var(--ink); font-weight: 600; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Variante sombre, pour les pages a fort impact (404, sondage). */
.page-head-ink { background: var(--ink); border-bottom-color: var(--ink); color: white; }
.page-head-ink .crumbs { color: #b9b8c4; }
.page-head-ink .crumbs span[aria-current] { color: white; }
.page-head-ink .kicker { color: var(--yellow); }
.page-head-ink h1 span { color: var(--yellow); }
.page-head-ink .page-lead { color: #e4e3ea; }
.page-head-ink .page-lead strong { color: #fff; }
.page-head-ink .page-head-meta { border-top-color: rgba(255, 255, 255, .25); color: #cfced9; }
.page-head-ink .page-head-meta strong { color: white; }
.page-head-ink a:focus-visible { outline-color: var(--yellow); }

/* ------------------------------------------------------ Document / prose */
.doc { width: min(1240px, calc(100% - 100px)); margin-inline: auto; padding-block: 72px 96px; }
.doc-narrow > * { max-width: 900px; }

/* Mise en page a deux colonnes : sommaire colle a gauche, contenu a droite. */
.doc-split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 62px; align-items: start; }
.doc-toc { position: sticky; top: 112px; }
.doc-toc h2 { font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 600; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.doc-toc ol, .doc-toc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.doc-toc a { display: block; padding-block: 6px; font-size: 11px; color: var(--muted); }
.doc-toc a:hover { color: var(--blue); }

.doc-card { padding: 34px 38px; margin-bottom: 20px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.doc-card:last-child { margin-bottom: 0; }
.doc-card-accent { border-color: #cdd4ee; background: var(--mist); }

/* Typographie de contenu long. Applique aux elements bruts : le contenu reste du HTML semantique. */
.prose { font-size: 13px; color: #3f3e48; }
.prose p, .prose dl, .prose blockquote, .prose figure, .prose .callout, .prose .table-scroll, .prose .stat-row, .prose .checklist, .prose .steps { margin-bottom: 14px; }
.prose > :last-child, .prose .doc-card > :last-child, .prose .callout > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 27px; line-height: 1.15; margin-top: 46px; margin-bottom: 17px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 span { color: var(--blue); }
.prose h3 { font-size: 18px; line-height: 1.25; margin-top: 30px; margin-bottom: 11px; scroll-margin-top: 110px; }
.prose h4 { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; margin-top: 22px; margin-bottom: 7px; }
.prose h2 .fas, .prose h3 .fas, .prose h4 .fas { margin-right: 11px; color: var(--blue); font-size: .82em; }
.prose p { max-width: 74ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.button):not(.text-link) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { max-width: 74ch; margin-block: 13px 14px; padding-left: 21px; }
.prose li { margin-bottom: 8px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 21px; }
.prose ul > li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 7px; height: 1px; background: var(--blue); }
.prose ol { list-style: none; counter-reset: prose-item; padding-left: 0; }
.prose ol > li { position: relative; padding-left: 30px; }
.prose ol > li::before { counter-increment: prose-item; content: counter(prose-item, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--blue); font: 600 12px/1.85 var(--display); }
.prose blockquote { margin: 20px 0; padding: 3px 0 3px 20px; border-left: 2px solid var(--blue); color: var(--muted); }
.prose hr { margin-block: 34px; border: 0; border-top: 1px solid var(--line); }
.prose small, .prose .fine { display: block; font-size: 10px; line-height: 1.9; color: var(--muted); }
.prose code { padding: 2px 6px; background: var(--mist); border: 1px solid #e0e5f6; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; color: #3a3f52; overflow-wrap: anywhere; }
.prose em { font-style: italic; }
.prose dl { margin: 0; }

/* Couples libelle / valeur (identite de l'editeur, references legales). */
.doc-meta { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0; margin: 0; }
.doc-meta dt { padding-block: 11px; border-top: 1px solid var(--line); font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.doc-meta dd { padding-block: 11px; margin: 0; border-top: 1px solid var(--line); font-size: 12px; }
.doc-meta dt:first-of-type, .doc-meta dt:first-of-type + dd { border-top: 0; }
.doc-meta a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Cartes */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

/* Carte « filet » : un trait en haut, pas de boite. Le motif de l'accueil. */
.card { padding-top: 24px; border-top: 1px solid var(--ink); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.card-number { color: var(--blue); font: 600 16px/1 var(--display); }
.card-top .fas, .card > .fas { color: var(--blue); font-size: 19px; }
.card h3 { font-size: 23px; line-height: 1.15; margin-bottom: 14px; }
.card p { font-size: 12px; color: var(--muted); }
.card p + p { margin-top: 11px; }

/* Carte « boite » : bordure complete et ombre portee dure. Pour les grilles cliquables. */
.tile { display: block; padding: 26px 26px 28px; background: white; border: 1px solid var(--line); border-radius: 6px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
a.tile:hover, a.tile:focus-visible { border-color: var(--blue); box-shadow: 6px 6px 0 #dbe1ff; transform: translateY(-2px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.tile-top h3 { margin-bottom: 0; }
.tile .fas { color: var(--blue); font-size: 17px; }
.tile h3 { font-size: 20px; line-height: 1.2; margin-bottom: 9px; }
.tile p { font-size: 11px; color: var(--muted); }
.tile-accent { background: var(--mist); border-color: #cdd4ee; }

/* ------------------------------------------------------------- Statistiques */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: clip; }
.stat { padding: 24px 26px; background: white; }
.stat strong { display: block; color: var(--blue); font: 700 42px/1 var(--display); }
.stat span { display: block; margin-top: 9px; font-size: 10px; line-height: 1.7; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------- Encadres */
.callout { padding: 22px 26px; border: 1px solid #cdd4ee; border-left-width: 3px; border-left-color: var(--blue); border-radius: 4px; background: var(--mist); font-size: 12px; line-height: 1.85; color: #4a4f63; }
.callout > * + * { margin-top: 10px; }
.callout h3 { display: flex; align-items: center; gap: 11px; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; color: var(--ink); }
.callout h3 .fas { color: var(--blue); font-size: 13px; }
.callout a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.callout > p > .fas:first-child, .callout li > .fas:first-child { margin-right: 10px; }
.prose li > .fas:first-child { margin-right: 8px; color: var(--blue); }
.callout-yellow { border-color: #e4d98e; border-left-color: #b9a613; background: #fdfbe6; color: #55511f; }
.callout-yellow h3 .fas { color: #9c8c10; }
.callout-red { border-color: #f4c9c2; border-left-color: var(--red); background: #fdf1ef; color: #6d3129; }
.callout-red h3 .fas { color: var(--red); }
.callout-neutral { border-color: var(--line); border-left-color: var(--ink); background: #fafafb; color: #4a4a53; }
.callout-neutral h3 .fas { color: var(--ink); }

/* Mention discrete de bas de bloc (avertissement IA, quota, RGPD). */
.notice { padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.9; color: var(--muted); }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; font-weight: 600; line-height: 1.6; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.badge-blue { border-color: #c3cdfa; background: #eef1ff; color: var(--blue); }
.badge-yellow { border-color: #e4d98e; background: #fdfbe6; color: #7b6f0d; }
.badge-red { border-color: #f4c9c2; background: #fdf1ef; color: #c33a26; }
.badge-ink { border-color: var(--ink); background: var(--ink); color: white; }

/* -------------------------------------------------------------- Tableaux */
.table-scroll { overflow-x: auto; margin-block: 20px; border: 1px solid var(--line); border-radius: 6px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table caption { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.data-table th, .data-table td { padding: 13px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--mist); font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { font-weight: 600; color: var(--ink); }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- Etapes 01, 02 */
.steps { padding: 0; margin: 0; list-style: none; counter-reset: charte-step; }
.steps li { display: flex; align-items: start; gap: 13px; margin-bottom: 17px; font-size: 12px; color: #505568; }
.steps li::before { counter-increment: charte-step; content: '0' counter(charte-step); flex-shrink: 0; color: var(--blue); font: 600 13px/1.8 var(--display); }
.steps strong { color: var(--ink); font-weight: 600; }

/* Liste a coches, pour les arguments courts. */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 13px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 12px; }
.checklist .fas { flex-shrink: 0; color: var(--blue); font-size: 10px; }

/* ------------------------------------------------------------------- FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 95px; }
.faq-intro .kicker { color: var(--blue); margin-bottom: 20px; }
.faq-intro h2 { font-size: 46px; line-height: 1.08; }
.faq-intro > p:not(.kicker) { max-width: 260px; color: var(--muted); margin-top: 21px; font-size: 12px; }
.faq-intro .text-link { margin-top: 17px; font-size: 11px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: 24px; min-height: 74px; font-size: 12px; font-weight: 600; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.faq-item summary .fas { flex-shrink: 0; color: var(--blue); font-size: 10px; transition: transform .25s ease; }
.faq-item[open] summary .fas { transform: rotate(180deg); }
.faq-answer { padding: 0 28px 24px 0; font-size: 11px; color: var(--muted); line-height: 1.9; }
.faq-answer > * + * { margin-top: 11px; }
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; color: var(--blue); }

/* ------------------------------------------------------- Bandeau d'appel */
.invitation { position: relative; isolation: isolate; overflow: clip; background: var(--blue); color: white; }
.invitation::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .12; background-image: repeating-linear-gradient(0deg, transparent, transparent 55px, #fff 55px, #fff 56px); }
.invitation-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 95px; align-items: center; }
.invitation .kicker { color: #dfe6ff; margin-bottom: 21px; }
.invitation h2 { font-size: 57px; line-height: 1.05; }
.invitation h2 span { color: var(--yellow); }
.invitation-copy > p:not(.kicker) { max-width: 350px; margin-top: 25px; color: #e3e8ff; font-size: 13px; }
.offer { border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 65px; }
.offer-amount { display: flex; align-items: center; gap: 18px; }
.offer-amount strong { color: var(--yellow); font: 700 106px/1 var(--display); }
.offer-amount span { font-size: 13px; line-height: 1.7; }
.offer > p { margin-block: 16px 26px; max-width: 310px; font-size: 11px; color: #e3e8ff; }
.offer .button { width: 100%; justify-content: space-between; }
.offer-note { margin-top: 13px; font-size: 9px; text-align: center; }
.invitation a:focus-visible { outline-color: var(--yellow); }

/* ------------------------------------------------------------ Formulaires */
.form-card { padding: 34px 38px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.fieldset { border: 0; padding: 0; margin: 0 0 38px; }
.fieldset:last-of-type { margin-bottom: 0; }
.fieldset > legend { padding: 0; margin-bottom: 7px; font: 700 25px/1.15 var(--display); }
.fieldset > .fieldset-help { margin-bottom: 24px; font-size: 11px; color: var(--muted); }
.field { margin-bottom: 20px; }
.field > label, .field-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; }
.field-help { margin-top: 7px; font-size: 10px; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
    width: 100%; padding: 13px 15px; min-height: 50px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; line-height: 1.7; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #dbe1ff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field-error { margin-top: 7px; font-size: 10px; font-weight: 600; color: #c33a26; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* Choix presentes comme des cartes cliquables (radio / checkbox). */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.choice { position: relative; display: flex; align-items: center; gap: 13px; padding: 14px 17px; min-height: 54px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice .choice-box { flex-shrink: 0; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #b9bac6; background: white; transition: border-color .2s ease, background .2s ease; }
.choice input[type="radio"] ~ .choice-box { border-radius: 50%; }
.choice .choice-box::after { content: ''; width: 9px; height: 9px; background: white; transform: scale(0); transition: transform .2s var(--ease); }
.choice input[type="radio"] ~ .choice-box::after { border-radius: 50%; }
.choice:hover { border-color: #b9bac6; background: #fafafb; }
.choice:has(input:checked) { border-color: var(--blue); background: #eef1ff; }
.choice:has(input:checked) .choice-box { border-color: var(--blue); background: var(--blue); }
.choice:has(input:checked) .choice-box::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-status { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------ Pied de page */
.site-footer { background: var(--mist); border-top: 1px solid #e0e5f6; padding-block: 53px 0; }
.footer-main { display: flex; align-items: start; justify-content: space-between; gap: 48px; padding-bottom: 43px; }
.footer-signature .wordmark { font-size: 46px; }
.footer-signature p { margin-top: 15px; font-size: 11px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px 62px; }
.footer-links div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-links h2 { font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 600; margin-bottom: 9px; }
.footer-links a { font-size: 11px; color: var(--muted); min-height: 26px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 30px; border-top: 1px solid #d3d8ea; padding-block: 19px; font-size: 9px; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 7px 22px; }
.footer-bottom a { min-height: 28px; display: inline-flex; align-items: center; }

/* ------------------------------------------------------------- Animations */
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .arrived { animation: arrive .65s var(--ease) backwards; }
    .card.arrived:nth-child(2), .tile.arrived:nth-child(2) { animation-delay: .08s; }
    .card.arrived:nth-child(3), .tile.arrived:nth-child(3) { animation-delay: .16s; }
    .card.arrived:nth-child(4), .tile.arrived:nth-child(4) { animation-delay: .24s; }
    .arrived:focus-within { animation: none; }
    .mobile-menu[open] nav { animation: arrive .25s var(--ease); }
}
@media (hover: hover) and (pointer: fine) {
    .button:hover .fas, .text-link:hover .fas { transform: translateX(3px); }
}
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .faq-item::details-content { interpolate-size: allow-keywords; block-size: 0; opacity: 0; overflow: clip; transition: block-size .3s var(--ease), opacity .2s ease, content-visibility .3s allow-discrete; }
    .faq-item[open]::details-content { block-size: auto; opacity: 1; }
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1280px) {
    .desktop-nav { gap: 22px; }
    .header-actions { gap: 16px; }
}

/* En dessous de 1100px, les cinq entrees de navigation ne tiennent plus sur une
   ligne : on passe au menu mobile. Le media query de closeMenuOnDesktop()
   (min-width: 1101px) doit rester aligne sur cette valeur. */
@media (max-width: 1100px) {
    .shell, .shell-narrow, .doc { width: calc(100% - 64px); }
    .desktop-nav, .login { display: none; }
    .header-row { height: 74px; gap: 17px; }
    .header-actions { margin-left: auto; }
    .mobile-menu { display: block; }
    .mobile-menu summary { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 4px; list-style: none; cursor: pointer; }
    .mobile-menu .menu-close, .mobile-menu[open] .menu-open { display: none; }
    .mobile-menu[open] .menu-close { display: block; }
    .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 4px; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 18px 32px 25px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 12px 15px rgba(34, 33, 38, .06); }
    .mobile-menu nav > a:not(.button) { padding-block: 12px; font-size: 13px; }
    .mobile-menu nav .button { margin-top: 9px; }

    .doc-split { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
    .page-head h1 { font-size: 47px; }
    .card-grid { gap: 30px; }
    .card h3 { font-size: 21px; }
    .invitation-grid, .faq-grid { gap: 55px; }
    .offer { padding-left: 35px; }
    .invitation h2 { font-size: 47px; }
    .offer-amount strong { font-size: 91px; }
    .footer-links { gap: 28px 42px; }
}

@media (max-width: 920px) {
    .section { padding-block: 78px; }
    .section-tight { padding-block: 54px; }
    .page-head { padding-block: 36px 42px; }
    .page-head h1 { font-size: 41px; }
    .doc { padding-block: 54px 74px; }
    .doc-split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .doc-toc { position: static; }
    .doc-toc ol, .doc-toc ul { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
    .doc-card { padding: 28px 28px; }
    .card-grid, .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
    .card h3 { font-size: 20px; }
    .card p { font-size: 11px; }
    .doc-meta { grid-template-columns: 165px minmax(0, 1fr); }
    .prose h2 { font-size: 24px; }
    .invitation-grid { gap: 40px; }
    .invitation h2 { font-size: 40px; }
    .offer { padding-left: 25px; }
    .offer-amount { gap: 12px; }
    .offer-amount strong { font-size: 78px; }
    .offer-amount span { font-size: 11px; }
    .offer .button { padding-inline: 17px; font-size: 11px; gap: 15px; }
    .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 35px; }
    .faq-intro h2 { font-size: 37px; }
    .footer-links { gap: 26px 38px; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 86px; }
    .shell, .shell-narrow, .doc { width: calc(100% - 40px); }
    .section { padding-block: 59px; }
    .section-tight { padding-block: 42px; }
    .header-row { height: 68px; gap: 12px; }
    .wordmark { font-size: 27px; gap: 5px; }
    .wordmark-dot { width: 7px; height: 7px; margin-bottom: 3px; }
    .header-actions .button { font-size: 10px; padding: 9px 12px; min-height: 39px; gap: 12px; }
    .mobile-menu summary { width: 38px; height: 38px; font-size: 13px; }
    .mobile-menu nav { padding-inline: 20px; }
    .page-head { padding-block: 28px 36px; }
    .page-head .crumbs { margin-bottom: 21px; font-size: 9px; }
    .page-head .kicker { font-size: 9px; margin-bottom: 17px; }
    .page-head h1 { font-size: 35px; line-height: 1.12; }
    .page-head .page-lead { margin-top: 17px; font-size: 12px; }
    .page-head-meta { gap: 6px 20px; font-size: 9px; }
    .doc { padding-block: 40px 56px; }
    .doc-card { padding: 22px 20px; margin-bottom: 14px; }
    .prose { font-size: 12px; }
    .prose h2 { font-size: 22px; margin-top: 34px; }
    .prose h3 { font-size: 16px; margin-top: 24px; }
    .doc-meta { display: block; }
    .doc-meta dt { padding-bottom: 0; border-top: 1px solid var(--line); }
    .doc-meta dd { padding-top: 2px; border-top: 0; }
    .doc-meta dt:first-of-type { border-top: 0; }
    .card-grid, .card-grid-2, .card-grid-4 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .card { padding-top: 19px; }
    .card-top { margin-bottom: 17px; }
    .card h3 { font-size: 25px; margin-bottom: 11px; }
    .card p { max-width: 450px; font-size: 12px; }
    .tile { padding: 20px 20px 22px; }
    .stat strong { font-size: 34px; }
    .callout { padding: 18px 19px; font-size: 11px; }
    .table-scroll { margin-block: 16px; }
    .data-table { font-size: 11px; }
    .data-table th, .data-table td { padding: 11px 14px; }
    .field-row, .choice-grid { grid-template-columns: minmax(0, 1fr); }
    .form-card { padding: 22px 20px; }
    .fieldset > legend { font-size: 21px; }
    .invitation-grid { grid-template-columns: 1fr; gap: 31px; }
    .invitation .kicker { font-size: 9px; margin-bottom: 19px; }
    .invitation h2 { font-size: 45px; }
    .invitation-copy > p:not(.kicker) { font-size: 12px; margin-top: 19px; }
    .offer { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .3); padding: 26px 0 0; }
    .offer-amount { gap: 23px; }
    .offer-amount strong { font-size: 97px; }
    .offer-amount span { font-size: 13px; }
    .offer > p { margin-block: 15px 23px; }
    .offer .button { font-size: 12px; }
    .faq-grid { grid-template-columns: 1fr; gap: 29px; }
    .faq-intro .kicker { font-size: 9px; margin-bottom: 18px; }
    .faq-intro h2 { font-size: 39px; }
    .faq-intro > p:not(.kicker) { max-width: 360px; margin-top: 17px; }
    .faq-intro .text-link { margin-top: 10px; }
    .faq-item summary { min-height: 70px; font-size: 11px; padding-block: 21px; gap: 18px; }
    .site-footer { padding-top: 40px; }
    .footer-main { flex-direction: column; gap: 32px; padding-bottom: 28px; }
    .footer-signature .wordmark { font-size: 42px; }
    .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 23px; }
    .footer-links div { gap: 5px; }
    .footer-links a { min-height: 33px; font-size: 10px; }
    .footer-bottom { font-size: 8px; gap: 7px; }
    .footer-bottom nav { gap: 5px 15px; }
}

@media (max-width: 380px) {
    .header-row { gap: 9px; }
    .wordmark { font-size: 24px; }
    .header-actions .button { font-size: 9px; padding-inline: 9px; gap: 8px; }
    .header-actions .button .fas { display: none; }
    .page-head h1 { font-size: 31px; }
    .prose h2 { font-size: 20px; }
    .faq-intro h2 { font-size: 35px; }
    .invitation h2 { font-size: 39px; }
    .footer-links { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .faq-item::details-content { transition: none; }
}
