/* ============================================================
   Site CRA, direction « Registre » (1b)
   Feuille de style unique, sans framework.
   Convention : BEM léger, préfixe c- pour les composants.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Papier & structure */
  --paper:        #F1F3F3;  /* fond de page */
  --card:         #FAFBFB;  /* fond des encarts */
  --band:         #E7EBEB;  /* bandes alternées (méthode, CTA) */
  --border:       #D2D8D8;  /* bord des grands blocs */
  --rule:         #C2CACB;  /* filets de titres de section */
  --hairline:     #E0E5E5;  /* filets internes d'encart */
  --hairline-2:   #E5EAEA;  /* filets de listes */
  --numeral:      #C6CDCE;  /* gros chiffres décoratifs 01..04 */

  /* Encre */
  --ink:          #161B22;  /* titres, bande sombre */
  --text:         #414A4C;  /* corps de texte */
  --muted:        #767F80;  /* labels mono, méta */
  --dim:          #848C8C;  /* texte désactivé */

  /* Accent bleu nuit */
  --accent:       #245C89;
  --accent-soft:  #8FB3CE;  /* filets sur fond accent, cercle pointillé */
  --accent-pale:  #A7C2D8;  /* labels sur fond accent */
  --accent-line:  #4A7CA3;  /* séparateurs sur fond accent */
  --accent-text:  #BFD3E3;  /* texte secondaire sur fond accent */
  --accent-body:  #CCDCE9;  /* corps de texte sur fond accent */
  --on-accent:    #EAEFF5;  /* texte principal sur fond accent */
  --accent-mark:  #3F6690;  /* petits détails (hash du sceau) */

  /* Bande sombre « engagements » */
  --dark:         #161B22;
  --dark-text:    #E4E8EC;
  --dark-body:    #AEB7C2;
  --dark-rule:    #2B333D;
  --dark-muted:   #8A93A0;

  /* Sémantique */
  --warn:         #9A5B12;  /* pièce à relire, vulnérabilité à traiter */

  /* Typographie */
  --font-sans:    Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Archivo Narrow", Archivo, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Rythme */
  --gutter:       40px;   /* padding horizontal des sections */
  --section-y:    74px;   /* padding vertical haut de section */
  --section-y-b:  66px;   /* padding vertical bas de section */
  --max:          1240px; /* largeur maximale du contenu */
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: the header and footer keep their own height, whatever
     sits between them grows to fill the rest, so a short page (the
     anonymous support form) still puts the footer at the bottom of the
     viewport instead of right under a couple of short paragraphs. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
/* In the base layer, like the Tailwind reset it completes and loaded after
   it: an unlayered rule would beat the utilities, so the margins given by a
   template (mt-4 on a paragraph) were ignored in the workspace */
@layer base {
  h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
  p { margin: 0; }
}
/* Réservé au site vitrine : dans l'espace connecté, les liens-boutons sont
   habillés par Tailwind, dont les utilitaires vivent dans @layer et
   perdraient contre une règle « a » non layerée (texte sombre sur fond
   sombre). Le marqueur .is-site est posé sur le body de la vitrine.
   .c-btn est exclu : sinon ce même reset écrase la couleur (blanche,
   sur fond --ink) des boutons c-btn--primary/--ghost/--onaccent, qui
   sont eux-mêmes des <a>, et les rend illisibles. */
.is-site a:not(.c-btn) { color: inherit; text-decoration: none; }
.is-site a:not(.c-btn):hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Utilitaires ---------- */
.wrap        { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section     { padding-block: var(--section-y) var(--section-y-b); }
/* Sticky footer helper: on the single-section pages (legal pages, the
   anonymous support form), this section is body's only flex child besides
   the header and footer, so it grows to push the footer to the bottom. */
.grow { flex: 1; }
.section--band   { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark   { background: var(--dark); color: var(--dark-text); }
.section--accent { background: var(--accent); color: var(--on-accent); }

.mono        { font-family: var(--font-mono); }
.label       { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.lead        { font-size: 18px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.body        { font-size: 14.5px; line-height: 1.6; color: var(--text); }
.body--sm    { font-size: 14px; line-height: 1.6; color: var(--text); }
.stack       { display: flex; flex-direction: column; }
.grid        { display: grid; }

/* Titre de section : titre à gauche, numéro romain à droite, filet dessous */
.c-sechead {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 40px;
}
.c-sechead__title { font-size: 38px; line-height: 1.1; }
.section--dark .c-sechead { border-bottom-color: var(--dark-rule); }
.section--dark .c-sechead__num { color: var(--dark-muted); }

/* ---------- Boutons ---------- */
.c-btn {
  display: inline-block; font: 600 15px/1 var(--font-sans);
  padding: 17px 25px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.c-btn:hover { text-decoration: none; }
.c-btn--primary { background: var(--accent); color: #FFF; }
.c-btn--primary:hover { background: #1D4C74; color: #FFF; }
.c-btn--ghost   { background: transparent; color: var(--ink); border-color: var(--ink); }
.c-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.c-btn--onaccent { background: var(--on-accent); color: var(--accent); }
.c-btn--onaccent:hover { background: #FFF; }
.c-btn--sm { font-size: 13px; padding: 12px 17px; }
.c-btn--block { display: block; text-align: center; padding: 13px; font-size: 14px; }

/* ---------- En-tête ---------- */
.c-header { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--border); }
/* The header stays in flow (sticky, not fixed), so no body padding is
   needed: only anchor targets must land below it, not underneath it. */
:target, [id] { scroll-margin-top: 92px; }
.c-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.c-brand { display: flex; align-items: center; gap: 13px; }
.c-brand__mark { display: flex; flex: none; color: var(--accent); }
.c-brand__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0.06em; }
.c-brand__sub  { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted); }
.c-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--text); }
.c-nav__login { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; }

/* ---------- Hero ---------- */
.c-hero { display: grid; grid-template-columns: 1fr 380px; gap: 60px; padding-block: var(--section-y) var(--section-y-b); border-bottom: 1px solid var(--border); }
.c-hero__col { display: flex; flex-direction: column; gap: 24px; }
.c-hero__reg {
  display: flex; justify-content: space-between; gap: 20px; max-width: 660px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 9px 0;
}
.c-hero__title { font-size: 70px; line-height: 1.0; letter-spacing: -0.02em; max-width: 700px; text-wrap: balance; }
.c-hero__lead  { max-width: 590px; }
.c-hero__cta   { display: flex; align-items: center; gap: 14px; padding-top: 10px; flex-wrap: wrap; }
.c-hero__proof { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Sceau d'attestation ---------- */
.c-seal-panel { display: flex; flex-direction: column; gap: 18px; }
.c-seal-card  { border: 1px solid var(--rule); background: var(--card); padding: 26px 24px; display: flex; flex-direction: column; gap: 20px; }
.c-seal-card__head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.c-seal-card__no   { color: var(--accent); }
.c-seal-wrap { display: flex; justify-content: center; padding: 10px 0 4px; }
.c-seal {
  width: 208px; height: 208px; border-radius: 50%; border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: border-color .2s;
}
.c-seal::before { content: ""; position: absolute; inset: 11px; border: 1px dashed var(--accent-soft); border-radius: 50%; }
/* Point de balayage au survol : un cercle pointillé uniforme qui tourne sur
   lui-même ne se voit pas (chaque tiret remplace le précédent). Un repère
   isolé qui parcourt le cercle, lui, se voit (comme un sceau qu'on vérifie).
   Demande de Stéphane, sur les deux variantes (signée et en attente). */
.c-seal::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  -webkit-mask: radial-gradient(circle at 50% 0, #000 0 3px, transparent 3px);
          mask: radial-gradient(circle at 50% 0, #000 0 3px, transparent 3px);
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s;
}
.c-seal--pending::after { background: var(--crit, #A33A2B); }
@media (prefers-reduced-motion: no-preference) {
  .c-seal-card:hover .c-seal::after { opacity: 1; animation: c-seal-spin 2.4s linear infinite; }
}
@keyframes c-seal-spin {
  to { transform: rotate(360deg); }
}
/* la largeur fixe empêche le texte de toucher le cercle pointillé ; elle
   suit la taille du sceau, elle-même agrandie pour que les libellés mono
   restent lisibles (le handoff les donnait à 7,5-8 px) */
.c-seal__inner { width: 148px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--accent); }
.c-seal__algo    { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; line-height: 1.2; }
.c-seal__version { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1; }
.c-seal__rule    { width: 44px; height: 1px; background: var(--accent-soft); }
.c-seal__date    { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; line-height: 1.2; }
.c-seal__hash    { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; color: var(--accent-mark); line-height: 1.2; }
.c-seal-note { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* Liste clé/valeur (statistiques du sceau, pièces du dossier) */
.c-kv { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--text); border-top: 1px solid var(--hairline); padding-top: 14px; }
.c-kv__row { display: flex; justify-content: space-between; gap: 16px; }
.c-kv__val { font-family: var(--font-mono); font-size: 13px; }
.c-kv__val--warn { color: var(--warn); }

/* Sceau réutilisé tel quel dans l'espace connecté (fiche produit, liste des
   produits) : mêmes classes que la vitrine, données réelles à la place des
   chiffres de démonstration. --embedded retire le cadre et le fond propres à
   la carte de la home, qui vit déjà dans une .a-card__body. */
.c-seal-card--embedded { border: 0; background: transparent; padding: 0; }

/* État « pas encore de version » : même gabarit que le sceau signé (cercle,
   liste), pour que les cartes restent alignées en grille, mais en rouge et
   pointillé pour marquer que rien n'est encore attesté. */
.c-seal--pending { border-color: var(--crit, #A33A2B); border-style: dashed; }
.c-seal--pending::before { border-color: var(--crit, #A33A2B); opacity: .4; }
.c-seal--pending .c-seal__inner { color: var(--crit, #A33A2B); }
.c-seal-card--pending .c-seal-card__no { color: var(--crit, #A33A2B); }

/* ---------- Bandeau d'échéance ---------- */
.c-deadline { background: var(--accent); color: var(--on-accent); }
.c-deadline__inner { display: flex; align-items: center; gap: 44px; padding-block: 32px; flex-wrap: wrap; }
.c-deadline__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent-pale); }
.c-deadline__count { display: flex; align-items: baseline; gap: 10px; }
.c-deadline__days  { font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1; }
.c-deadline__unit  { font-size: 15px; color: var(--accent-text); }
.c-deadline__sep   { width: 1px; height: 46px; background: var(--accent-line); }
.c-deadline__text  { font-size: 14.5px; line-height: 1.55; color: var(--accent-body); max-width: 640px; }

/* ---------- Piliers (4 registres) ---------- */
.c-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; }
.c-pillar  { display: flex; gap: 22px; }
.c-pillar__num  { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--numeral); line-height: .9; flex: none; }
.c-pillar__body { display: flex; flex-direction: column; gap: 10px; }
.c-pillar__title { font-size: 24px; }

/* ---------- Méthode (4 blocs) ---------- */
.c-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.c-step  { border: 1px solid var(--rule); background: var(--card); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.c-step__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--hairline); padding-bottom: 11px; }
.c-step__kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent); }
.c-step__meta   { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); }
.c-step__title  { font-size: 23px; }

/* ---------- Dossier de preuve ---------- */
.c-proof { display: grid; grid-template-columns: 1fr 470px; gap: 64px; align-items: start; }
.c-proof__col { display: flex; flex-direction: column; gap: 20px; }
.c-proof__title { font-size: 40px; line-height: 1.08; max-width: 520px; }
.c-proof__text  { font-size: 16.5px; line-height: 1.6; color: var(--text); max-width: 520px; text-wrap: pretty; }
.c-proof__list  { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--text); padding-top: 4px; }
.c-proof__list > li { list-style: none; border-top: 1px solid var(--hairline); padding-top: 10px; }
.c-proof__list { margin: 0; padding-left: 0; }

/* Avertissement « nous ne certifions pas » */
.c-disclaimer {
  font-size: 12.5px; line-height: 1.7; color: var(--muted); max-width: 500px;
  background: var(--band); border-left: 2px solid var(--warn); padding: 12px 14px; margin-top: 12px;
}

/* Encart dossier technique */
.c-dossier { border: 1px solid var(--rule); background: var(--card); }
.c-dossier__head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.c-dossier__title { font-size: 21px; }
.c-dossier__rev { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.c-dossier__body { padding: 6px 24px 20px; }
.c-dossier__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline-2); font-size: 14px; }
.c-dossier__row:last-child { border-bottom: 0; }
.c-dossier__row--todo { color: var(--dim); }
.c-dossier__state { font-family: var(--font-mono); font-size: 11px; color: var(--accent); white-space: nowrap; }
.c-dossier__state--warn { color: var(--warn); }
.c-dossier__foot {
  background: var(--accent); color: var(--on-accent); padding: 15px 24px;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
}

/* ---------- Engagements (bande sombre) ---------- */
.c-pledges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.c-pledge { display: flex; flex-direction: column; gap: 12px; }
.c-pledge__title { font-size: 23px; }
.c-pledge__text  { font-size: 14.5px; line-height: 1.6; color: var(--dark-body); }

/* ---------- Tarifs ---------- */
.c-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.c-plans__title { margin: 0 0 16px; font-size: 20px; }
.c-plans + .c-plans__title { margin-top: 40px; }
.c-plans--two { grid-template-columns: repeat(2, 1fr); }
.c-plan  { border: 1px solid var(--rule); background: var(--card); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.c-plan--feature { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.c-plan__flag {
  position: absolute; top: 0; right: 0; background: var(--on-accent); color: var(--accent);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; padding: 6px 10px;
}
.c-plan__kind  { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.c-plan--feature .c-plan__kind { color: var(--accent-pale); }
.c-plan__name  { font-size: 25px; }
.c-plan__price { display: flex; align-items: baseline; gap: 8px; }
.c-plan__amount{ font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1; }
.c-plan__per   { font-size: 13px; color: var(--muted); }
.c-plan--feature .c-plan__per { color: var(--accent-text); }
.c-plan__text  { font-size: 14px; line-height: 1.6; color: var(--text); }
.c-plan--feature .c-plan__text { color: var(--accent-body); }
.c-plan .c-btn { margin-top: auto; }

/* ---------- CTA final ---------- */
.c-cta { background: var(--band); border-top: 1px solid var(--border); }
.c-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 44px; padding-block: 60px; flex-wrap: wrap; }
.c-cta__col { display: flex; flex-direction: column; gap: 12px; max-width: 660px; }
.c-cta__title { font-size: 38px; line-height: 1.08; }
.c-cta__text  { font-size: 16.5px; line-height: 1.55; color: var(--text); }

/* ---------- Pied de page ---------- */
.c-footer { border-top: 1px solid var(--border); }
.c-footer__inner {
  display: flex; justify-content: space-between; gap: 24px; padding-block: 30px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
}
.c-footer__links { display: flex; gap: 24px; }

/* ---------- Adaptations ---------- */
@media (max-width: 1180px) {
  .c-hero { grid-template-columns: 1fr 340px; gap: 40px; }
  .c-hero__title { font-size: 58px; }
  .c-proof { grid-template-columns: 1fr 400px; gap: 40px; }
  .c-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --section-y: 52px; --section-y-b: 46px; }
  .c-header__inner { height: auto; padding-block: 16px; flex-wrap: wrap; gap: 16px; }
  .c-nav { gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
  .c-hero, .c-proof { grid-template-columns: 1fr; }
  .c-hero__title { font-size: 44px; }
  .c-hero__reg { flex-direction: column; gap: 6px; }
  .c-pillars, .c-plans, .c-pledges { grid-template-columns: 1fr; gap: 28px; }
  .c-steps { grid-template-columns: 1fr; }
  .c-deadline__sep { display: none; }
  .c-sechead { flex-direction: column; gap: 8px; }
  .c-sechead__title, .c-cta__title { font-size: 30px; }
  .c-proof__title { font-size: 32px; }
}

/* ---------- Impression ---------- */
@media print {
  .c-header, .c-cta, .c-footer { display: none; }
  body { background: #FFF; }
}

/* ============================================================
   Ajouts projet (hors handoff) : formulaires et documents
   Le kit couvre la landing ; ces composants servent les pages
   de connexion, d'inscription et les pages légales, avec les
   mêmes tokens et les mêmes règles : aucun rayon, aucune ombre.
   ============================================================ */

/* ---------- Panneaux de formulaire ---------- */
.panel { background: var(--card); border: 1px solid var(--rule); padding: 34px 32px; }
.panel h1 { font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -.01em; }
.panel .panel-sub { margin-top: 9px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.panel-narrow { max-width: 460px; margin: 0 auto; }
.panel-offer { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--band); font-size: 14px; line-height: 1.55; color: var(--ink); }
.panel-wide { max-width: 760px; margin: 0 auto; }

/* ---------- Champs ---------- */
.field { margin-top: 18px; }
.field:first-child { margin-top: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="date"], .field input[type="file"],
.field select, .field textarea {
  width: 100%; font: 400 15px/1.5 var(--font-sans); color: var(--ink);
  background: #FFF; border: 1px solid var(--rule); border-radius: 0; padding: 11px 13px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.field textarea { line-height: 1.6; resize: vertical; }
.field input[type="file"] { padding: 9px 11px; background: var(--band); }
.field-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 14px; color: var(--text); line-height: 1.5; }
.field-check input[type="checkbox"] { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); flex: 0 0 auto; }
.input-code { text-align: center; font-family: var(--font-mono) !important; font-size: 22px !important; letter-spacing: .3em; }

/* c-btn--block du kit centre le texte mais laisse la largeur au contenu :
   dans un formulaire, le bouton doit occuper toute la colonne. */
.field + .c-btn--block, form > .c-btn--block { width: 100%; margin-top: 20px; }
.form-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px; }
.form-links a { color: var(--accent); text-decoration: none; }
.form-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.panel-aside { margin-top: 26px; border-top: 1px solid var(--hairline); padding-top: 20px; }
.panel-aside .aside-title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.demo-grid button {
  width: 100%; font: 500 13px/1 var(--font-sans); color: var(--ink);
  background: var(--band); border: 1px solid var(--rule); border-radius: 0; padding: 11px 10px; cursor: pointer;
}
.demo-grid button:hover { background: var(--card); border-color: var(--accent); }

/* ---------- Messages ---------- */
.flash { margin-bottom: 18px; padding: 13px 16px; font-size: 14px; border: 1px solid; border-left-width: 3px; }
.flash-success { background: #F1F6F2; border-color: #1F6D3F; color: #1F6D3F; }
.flash-error   { background: #FBF2F0; border-color: #A33A2B; color: #A33A2B; }
.flash-warning { background: #FBF6EE; border-color: var(--warn); color: var(--warn); }

/* ---------- Documents légaux ---------- */
.doc { padding-block: var(--section-y) var(--section-y-b); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.doc .doc-meta { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.doc h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--rule); }
.doc h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 26px; }
.doc p { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.doc ul, .doc ol { margin-top: 14px; padding-left: 22px; color: var(--text); font-size: 15.5px; }
.doc li { margin: 8px 0; line-height: 1.65; }
.doc dl { margin-top: 18px; }
.doc dt { font-weight: 600; color: var(--ink); font-size: 14.5px; margin-top: 16px; }
.doc dd { margin: 4px 0 0; font-size: 14.5px; color: var(--text); }
.doc .todo { font-family: var(--font-mono); font-size: .9em; color: var(--warn); background: #FBF6EE; border: 1px solid var(--warn); padding: 1px 6px; white-space: nowrap; }
.doc .toc { margin-top: 28px; padding: 22px 24px; background: var(--band); border: 1px solid var(--rule); }
.doc .toc h2 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; padding: 0; border: 0; }
.doc .toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 20px; font-size: 14px; }
.doc .toc a { color: var(--text); text-decoration: none; }
.doc .toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }

/* ---------- Avertissement de document non finalisé ---------- */
.draft-warning { padding: 20px 24px; margin-bottom: 32px; background: #FBF2F0; border: 1px solid #A33A2B; border-left-width: 3px; }
.draft-warning h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; padding: 0; border: 0; color: #A33A2B; }
.draft-warning p { margin-top: 10px; font-size: 14px; color: #7A3226; }
.draft-warning ul { margin-top: 10px; font-size: 13.5px; color: #7A3226; }
.draft-warning code { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  background: var(--dark); color: var(--dark-text); border: 1px solid var(--dark-rule);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 820px) { .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 430px; } }
.cookie-banner p { font-size: 13.5px; line-height: 1.6; color: var(--dark-body); }
.cookie-banner a { color: var(--accent-soft); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Notes de section ---------- */
.c-plans__note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Définition du règlement ---------- */
.c-define { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.c-define__title { font-family: var(--font-display); font-size: 30px; line-height: 1.12; }
.c-define__text  { font-size: 16.5px; line-height: 1.65; color: var(--text); text-wrap: pretty; }

/* ---------- Tableau du calendrier ---------- */
/* Le tableau déborde horizontalement sur petit écran plutôt que d'écraser
   les colonnes : le conteneur défile, la page non. */
.c-tablewrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--card); }
.c-table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; }
.c-table__caption {
  caption-side: top; text-align: left; padding: 18px 22px 0;
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.c-table th, .c-table td {
  padding: 14px 22px; vertical-align: top;
  font-size: 14.5px; line-height: 1.6; color: var(--text);
  border-bottom: 1px solid var(--hairline);
}
.c-table thead th {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.c-table tbody th {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
  font-weight: 600; white-space: nowrap;
}
.c-table tbody tr:last-child th, .c-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Date de mise à jour ---------- */
.c-updated {
  padding: 22px 0 34px; text-align: center;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.06em; color: var(--muted);
}
.register-kind { border: 0; padding: 0; }
.register-kind legend { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.register-kind label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 4px; }
