/* ==========================================================================
   Valeur Enseignement Plus — feuille de style du site de développement
   Charte Valeurs'Immo : bleu nuit #0A1128, or #D4AF37, Outfit + Playfair Display.

   APPARENCE : celle du site en ligne (site/assets/css/style.css), reprise règle par règle le 02/10/2026,
   après l'abandon de la direction « L'Arche d'or » (arches, médaillons, voûtes, arcs d'or, mode sombre).
   Toujours clair : aucune règle de thème sombre.

   Ajouts du site de dev, conservés parce qu'ils ne changent pas l'apparence (ou presque) :
   - polices hébergées sur le site, avec polices de repli ajustées (aucune requête vers Google) ;
   - gris foncés d'un cran (contraste AA sur tous les fonds clairs), bas du pied de page éclairci d'un cran ;
   - focus clavier contrasté (anneau marine + halo or clair ; or sur fond marine) ;
   - cibles d'au moins 44 px de haut : zones de clic invisibles (pseudo-élément « ::before ») quand la mise en
     page ne doit pas bouger, hauteur minimale sinon ;
   - apparition au défilement en CSS seul : contenu visible sans JavaScript, sans CSS récent ou en mouvement
     réduit ; jamais sur le héros (voir 13) ;
   - composants propres au dev (bandeau de développement, fil d'Ariane, guides, aperçu des modules,
     « Pour aller plus loin ») habillés avec les briques du site en ligne ;
   - aucun attribut style dans les pages, sauf des propriétés personnalisées (--p, --cadrage…) : la politique de
     sécurité du contenu (inc/bootstrap.php) n'admet rien d'autre.

   Plan : 1. polices · 2. jetons · 3. base · 4. boutons et liens · 5. en-tête · 6. messages, sections, bandeaux,
          fil d'Ariane · 7. accueil · 8. grilles, cartes, modules, offres, FAQ, appel · 9. formation et module ·
          10. guides · 11. formulaires, forum, espace, administration · 12. pied de page ·
          13. apparition au défilement · 14. préférences, impression
   ========================================================================== */

/* ---------- 1. Polices ----------
   a) Polices du site, hébergées sur le serveur (assets/fonts/ ; auteurs et licence SIL OFL 1.1 : assets/fonts/LISEZMOI.txt).
      Mêmes familles que le site en ligne (qui les charge chez Google) ; graisses réellement employées, sous-ensemble latin.
      Noms versionnés et cache d'un an « immutable » (.htaccess) : un fichier n'est JAMAIS remplacé sous le même nom
      (nouvelle version = nouveau nom, à reporter ici et dans le préchargement de inc/gabarit.php). */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/outfit-v15-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; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("../fonts/playfair-display-v40-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; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("../fonts/playfair-display-v40-latin-italique.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; }
/* b) Polices de repli ajustées : pendant le chargement (font-display: swap), Georgia et Arial sont redimensionnées
   pour occuper la même place que Playfair Display et Outfit (mesures : captures/mesurer_polices_repli.py). */
@font-face { font-family: "Playfair repli"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 600 900; font-style: normal;
  size-adjust: 88.46%; ascent-override: 122.09%; descent-override: 28.26%; line-gap-override: 0%; }
@font-face { font-family: "Playfair repli"; src: local("Georgia Italic"), local("Georgia-Italic"); font-weight: 400 500; font-style: italic;
  size-adjust: 96.02%; ascent-override: 112.48%; descent-override: 26.04%; line-gap-override: 0%; }
@font-face { font-family: "Playfair repli"; src: local("Georgia Bold Italic"), local("Georgia-BoldItalic"); font-weight: 600 900; font-style: italic;
  size-adjust: 84.17%; ascent-override: 128.31%; descent-override: 29.70%; line-gap-override: 0%; }
@font-face { font-family: "Outfit repli"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; font-style: normal;
  size-adjust: 98.03%; ascent-override: 102.01%; descent-override: 26.52%; line-gap-override: 0%; }
@font-face { font-family: "Outfit repli"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; font-style: normal;
  size-adjust: 92.64%; ascent-override: 107.95%; descent-override: 28.07%; line-gap-override: 0%; }

/* ---------- 2. Jetons ----------
   Valeurs du site en ligne, sauf trois gris corrigés pour le contraste (WCAG 2.2 AA, calculs en commentaire). */
:root {
  color-scheme: light;
  --marine: #0A1128;
  --marine-2: #162650;
  --marine-3: #23366E;
  --or: #D4AF37;                /* décor, et texte sur fond marine seulement (2,1:1 sur blanc) */
  --or-fonce: #856A12;          /* texte or sur fond clair : 5,2:1 sur blanc, 4,8:1 sur --fond */
  --or-clair: #F3E5AB;
  --or-pale: #FBF7E8;
  --or-chiffre: #AC8C25;        /* grands numéros des cartes (modules, guides) : #D4AF37 en ligne (2,1:1) foncé au seuil des grands textes, 3,2:1 sur blanc, 3,0:1 sur or pâle */
  --texte: #1E293B;
  --gris: #5E6B80;              /* site en ligne #64748B (4,4:1 sur --fond) foncé d'un cran : 5,4:1 sur blanc, 5,0:1 sur --fond et or pâle */
  --gris-clair: #94A3B8;        /* décor seulement (jamais du texte sur fond clair) */
  --gris-pied: #7A8AA0;         /* bas du pied de page : site en ligne #64748B (3,9:1 sur marine) éclairci d'un cran : 5,3:1 */
  --bord-champ: #848FA2;        /* contour des champs : 3,1:1 sur blanc (le site en ligne, #D5DDE8, faisait 1,4:1) */
  --fond: #F4F6F9;
  --blanc: #FFFFFF;
  --bord: #E2E8F0;
  --vert: #15803D;
  --vert-pale: #ECFDF3;
  --rouge: #B42318;
  --rouge-pale: #FEF3F2;
  --bleu-pale: #EEF2FB;
  --rayon: 18px;
  --rayon-grand: 28px;
  --ombre: 0 18px 40px rgba(10, 17, 40, .07);
  --ombre-forte: 0 28px 60px rgba(10, 17, 40, .14);
  --courbe: cubic-bezier(.16, 1, .3, 1);
  --transition: all .45s var(--courbe);
  --largeur: 1200px;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --hauteur-entete: 78px;
  --cible: 2.75rem;             /* cible tactile : 44 px */
  --serif: "Playfair Display", "Playfair repli", Georgia, serif;
  --sans: "Outfit", "Outfit repli", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top : une ancre (#quiz, #accompagnement, #module-4…) ne passe jamais sous l'en-tête collant */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; background: var(--blanc); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
/* <picture> (photo(), WebP + JPEG) : transparent pour la mise en page, l'<img> se place comme sur le site en ligne */
picture { display: contents; }
a { color: var(--marine-3); text-decoration-color: rgba(35, 54, 110, .35); text-underline-offset: 3px; }
a:hover { color: var(--or-fonce); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--marine); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3.05rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.etroit { max-width: 820px; }
.centre { text-align: center; }
.muet { color: var(--gris); }
.petit { font-size: .9rem; }
.sans-marge { margin: 0; }
/* Référence numérique (art. 14-2-1…) ou identifiant gardé sur une ligne (sans_coupure_numeros(), carte_pro_affichee()) */
.sans-coupure { white-space: nowrap; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.aller-contenu { position: absolute; left: -999px; top: 8px; background: var(--or); color: var(--marine); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 600; }
.aller-contenu:focus { left: 8px; }
/* Focus clavier : anneau marine (11,5:1) doublé d'un halo or clair ; en or sur les fonds marine.
   (Le site en ligne posait un anneau or, 2,1:1 seulement sur fond blanc.) */
:focus-visible { outline: 3px solid var(--marine-3); outline-offset: 3px; box-shadow: 0 0 0 6px var(--or-clair); }
.section--marine :focus-visible, .bandeau :focus-visible, .pied :focus-visible, .article-tete :focus-visible,
.appel :focus-visible, .offre--vedette :focus-visible, .auth-grille__visuel :focus-visible, .recap :focus-visible,
.module-carte--appel:focus-visible {
  outline-color: var(--or); box-shadow: 0 0 0 6px var(--marine);
}

.surtitre {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--or-fonce);
  margin: 0 0 .5rem;
}
.surtitre--trait { display: inline-flex; align-items: center; gap: .75rem; }
.surtitre--trait::before { content: ""; width: 34px; height: 2px; background: var(--or); flex: none; }
.chapeau { font-size: 1.15rem; color: var(--gris); max-width: 680px; }
.centre .chapeau { margin-left: auto; margin-right: auto; }

/* Chiffres alignés (Playfair affiche par défaut des chiffres « elzéviriens ») */
.module-carte__num, .chiffre b, .offre__prix, .etape__num, .jauge__cercle span, .sujet__compteur b, h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* ---------- 4. Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .86rem; letter-spacing: .09em; text-transform: uppercase; text-align: center;
  padding: 1rem 1.9rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: var(--transition); line-height: 1.2;
}
.btn .ico { width: 1.1em; height: 1.1em; }
.btn--or { background: var(--or); color: var(--marine); box-shadow: 0 10px 24px rgba(212, 175, 55, .35); }
.btn--or:hover { background: #C9A22B; color: var(--marine); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212, 175, 55, .45); }
.btn--marine { background: var(--marine); color: #fff; }
.btn--marine:hover { background: var(--marine-2); color: #fff; transform: translateY(-2px); }
.btn--contour { border-color: var(--marine); color: var(--marine); background: transparent; }
.btn--contour:hover { background: var(--marine); color: #fff; }
.btn--clair { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
.btn--clair:hover { background: #fff; color: var(--marine); }
.btn--petit { padding: .7rem 1.25rem; font-size: .78rem; white-space: nowrap; min-height: var(--cible); }   /* 41 px sur le site en ligne */
.btn--bloc { width: 100%; }
.btn--danger { background: var(--rouge-pale); color: var(--rouge); border-color: #FECDCA; }
.btn--danger:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.lien-fleche { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--marine-3); text-decoration: none; }
.lien-fleche:hover { gap: .7rem; color: var(--or-fonce); }
.lien-discret { color: var(--marine); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .35rem; }
.lien-discret:hover { color: var(--or-fonce); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.actions--centre { justify-content: center; }
.actions--espace { margin-top: 1.5rem; }

/* Zones de clic invisibles : le lien garde exactement sa taille et sa place, mais son pseudo-élément ::before
   (transparent, en position absolue) porte la cible à 44 px de haut (et 44 px de large au moins) ;
   le pointeur sur cette zone atteint le lien. */
/* (Pseudo-élément ::before de ces éléments réservé à cet usage.) */
.lien-fleche, .lien-discret, .nav__liens a, .ariane a, .sommaire__titre, .sujet h3 a, a.badge, .plus-loin__lien, p.petit > a, small > a, .encart-repliable summary, .lien-piece { position: relative; }
.lien-fleche::before, .lien-discret::before, .nav__liens a::before, .ariane a::before, .sommaire__titre::before, .sujet h3 a::before,
a.badge::before, .plus-loin__lien::before, .coordonnees a::before, .statut-ligne > a:not(.btn)::before, .depliant summary::before,
p.petit > a::before, small > a::before, .encart-repliable summary::before, .lien-piece::before {
  content: ""; position: absolute;
  top: min(0px, calc(50% - var(--cible) / 2)); bottom: min(0px, calc(50% - var(--cible) / 2));
  left: min(-4px, calc(50% - var(--cible) / 2)); right: min(-4px, calc(50% - var(--cible) / 2));
}

/* ---------- 5. En-tête ---------- */
.bandeau-dev { background: var(--or-pale); color: var(--or-fonce); border-bottom: 1px solid var(--or-clair); text-align: center; font-size: .85rem; line-height: 1.4; padding: .35rem var(--gouttiere); }
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: var(--transition); }
.entete.defile { border-bottom-color: var(--bord); box-shadow: 0 8px 30px rgba(10, 17, 40, .06); }   /* classe posée par app.js */
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--hauteur-entete); }
/* Logo : le nom accessible du lien est son texte visible (« Valeur Enseignement+ par Valeurs'Immo »), l'emblème est en alt vide */
.logo { display: inline-flex; align-items: center; gap: .7rem; min-height: var(--cible); text-decoration: none; color: var(--marine); flex: none; }
.logo img { width: 72px; height: auto; }
.logo__texte { display: flex; flex-direction: column; line-height: 1.05; }
.logo__nom { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 1.28rem; letter-spacing: -.01em; }
.logo__nom b { color: var(--or); font-style: normal; font-weight: 700; margin-left: 2px; font-size: 1.15em; line-height: 1; }
.logo__sous { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gris); margin-top: 4px; }
.logo--clair { color: #fff; }
.logo--clair .logo__sous { color: var(--or-clair); }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav__liens { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__liens a { color: var(--texte); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4rem 0; position: relative; }
.nav__liens a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: 0 50%; transition: var(--transition); }
.nav__liens a:hover::after, .nav__liens a[aria-current]::after { transform: none; }
.nav__liens a[aria-current] { color: var(--marine); font-weight: 600; }
.nav__compte { display: flex; align-items: center; gap: 1rem; }
.burger { display: none; align-items: center; justify-content: center; width: var(--cible); height: var(--cible); background: none; border: 0; color: var(--marine); padding: 0; cursor: pointer; flex: none; }
.burger .ico { width: 28px; height: 28px; }
/* Menu complet au-delà de 1180 px : sept liens (« Guides » en plus du site en ligne) et deux boutons sur UNE ligne
   dans les 1120 px utiles ; les espacements sont resserrés en conséquence (24 px entre les liens sur le site en ligne,
   qui n'en avait que six). Entre 1181 et 1199 px, l'emblème réduit un peu. */
@media (min-width: 1181px) {
  .entete__barre { gap: 1rem; }
  .nav { gap: 1.25rem; }
  .nav__liens { gap: .95rem; }
  .nav__liens a, .nav__compte a { white-space: nowrap; }
  .nav__compte { gap: .85rem; }
}
@media (min-width: 1181px) and (max-width: 1199px) {
  .logo img { width: 60px; }
}
@media (max-width: 1180px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem var(--gouttiere) 1.5rem; border-bottom: 1px solid var(--bord); box-shadow: var(--ombre);
    display: none; max-height: calc(100vh - var(--hauteur-entete)); overflow-y: auto;
  }
  .nav.ouvert { display: flex; }
  .nav__liens { flex-direction: column; gap: 0; }
  .nav__liens a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--bord); }
  .nav__liens a::after { display: none; }
  .nav__compte { padding-top: 1rem; justify-content: space-between; flex-wrap: wrap; }
}
/* Téléphones de moins de 390 px : le logo du site en ligne (286 px) et le bouton du menu ne tiennent plus côte à côte
   (le bouton sortait de l'écran) ; l'emblème et les espacements se resserrent, le nom ne descend jamais sous 18 px. */
@media (max-width: 389px) {
  .entete__barre { gap: .75rem; }
  .logo { gap: .5rem; }
  .logo img { width: 58px; }
}
@media (max-width: 360px) {
  .entete__barre { gap: .5rem; }
  .logo { gap: .45rem; }
  .logo img { width: 46px; }
  .logo__nom { font-size: 1.15rem; }
  .burger { margin-right: -.5rem; }
}

/* ---------- 6. Messages, sections, bandeaux, fil d'Ariane ---------- */
.flashs { padding-top: 1.2rem; display: grid; gap: .6rem; }
.flash { display: flex; gap: .7rem; align-items: flex-start; padding: .95rem 1.2rem; border-radius: 14px; background: var(--bleu-pale); color: var(--marine-2); border: 1px solid #D7E0F5; }
.flash--succes { background: var(--vert-pale); color: #0B5D2A; border-color: #BBF2CF; }
.flash--erreur { background: var(--rouge-pale); color: var(--rouge); border-color: #FECDCA; }
.flash .ico { margin-top: .2rem; }
.carte > .flash, .conteneur > .flash, .auth-grille__form .flash, form + .flash { margin: 0 0 1.2rem; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--serree { padding-top: 2.5rem; }
.section--sans-haut { padding-top: 0; }
.section--fond { background: var(--fond); }
.section--pale { background: linear-gradient(180deg, var(--or-pale), #fff); }
.section--marine { background: var(--marine); color: #CBD5E1; position: relative; overflow: hidden; }
.section--marine h2, .section--marine h3, .section--marine strong { color: #fff; }
.section--marine .surtitre { color: var(--or); }
.section--marine .chapeau, .section--marine .muet { color: #AAB6CB; }
.section__tete { margin-bottom: 3rem; }
.section__tete.centre { max-width: 760px; margin-left: auto; margin-right: auto; }
/* Tête de section en ligne : titre à gauche, lien à droite (accueil) */
.section__tete--ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.section__tete--ligne h2 { margin: 0; }

/* Bandeau des pages intérieures : marine uni, halo doré (sans photo : voir bandeau(), inc/gabarit.php) */
.bandeau { background: radial-gradient(900px 400px at 90% 0%, rgba(212, 175, 55, .18), transparent 60%), var(--marine); color: #CBD5E1; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.bandeau--compact { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.bandeau__contenu { position: relative; z-index: 1; }
.bandeau h1 { color: #fff; max-width: 860px; }
.bandeau .surtitre { color: var(--or); }
.bandeau__texte { font-size: 1.15rem; max-width: 720px; color: #C3CCDB; margin: 0; }

/* Fil d'Ariane : nav.ariane > ol (fil_ariane(), inc/seo.php), à l'image du petit fil du site en ligne (.fil).
   Séparateur « › » posé APRÈS chaque élément (jamais en tête de ligne), lu comme vide par les lecteurs d'écran. */
.ariane { font-size: .88rem; margin-bottom: 1rem; color: var(--gris); }
.ariane a { color: var(--marine-3); }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: .3em; }
.ariane li:not(:last-child) { white-space: nowrap; }
.ariane li:not(:last-child)::after { content: "›"; content: "›" / ""; margin-left: .3em; }
.bandeau .ariane, .article-tete .ariane { color: #94A3B8; }
.bandeau .ariane a, .article-tete .ariane a { color: #CBD5E1; }

/* ---------- 7. Accueil ---------- */
.heros { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden;
  background: radial-gradient(1100px 520px at 88% -10%, rgba(212, 175, 55, .16), transparent 60%),
              radial-gradient(900px 600px at -10% 110%, rgba(22, 38, 80, .08), transparent 60%), var(--fond); }
.heros__grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.heros h1 { margin-bottom: 1.2rem; }
.heros h1 em { font-style: italic; color: var(--or-fonce); }
/* Sur-titre intégré au H1 (la requête « formation des syndics bénévoles » figure dans le titre) : même aspect que le
   sur-titre posé au-dessus du titre sur le site en ligne */
h1 > .surtitre { display: block; font-size: 1.15rem; line-height: 1.65; letter-spacing: normal; margin: 0 0 .5rem; }
h1 > .surtitre--trait { display: flex; width: fit-content; }
.heros__texte { font-size: 1.18rem; color: #475569; max-width: 560px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.2rem; }
.heros__confiance { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 0; color: var(--marine-2); font-weight: 500; font-size: .95rem; }
.heros__confiance li { display: inline-flex; gap: .45rem; align-items: center; }
.heros__confiance .ico { color: var(--or-fonce); }
.heros__visuel { position: relative; isolation: isolate; }
.heros__photo { position: relative; border-radius: var(--rayon-grand); overflow: hidden; box-shadow: var(--ombre-forte); aspect-ratio: 16 / 11; background: linear-gradient(135deg, var(--marine-2), var(--marine-3)); }
.heros__photo img { width: 100%; height: 100%; object-fit: cover; }
.heros__visuel::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--or); border-radius: var(--rayon-grand); z-index: -1; }
.pastille {
  position: absolute; display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 16px;
  padding: .85rem 1.1rem; box-shadow: var(--ombre-forte); font-size: .92rem; line-height: 1.3; color: var(--marine);
}
.pastille strong { display: block; font-size: 1.02rem; }
.pastille span.muet { font-size: .82rem; }
.pastille__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--or-pale); color: var(--or-fonce); flex: none; }
.pastille__ico .ico { width: 22px; height: 22px; }
.pastille--haut { top: 8%; left: -8%; }
.pastille--bas { bottom: -6%; right: 6%; }
@media (max-width: 960px) {
  .heros__grille { grid-template-columns: minmax(0, 1fr); }
  .heros__visuel { max-width: 620px; margin: 0 auto; width: 100%; }
  .pastille--haut { left: 4%; top: -5%; }
}
@media (max-width: 520px) {
  .pastille { font-size: .82rem; padding: .6rem .8rem; }
  .pastille__ico { width: 36px; height: 36px; }
  .heros__visuel::before { inset: 14px -10px -14px 12px; }
}

/* Chiffres : quatre cartes posées à cheval sur le bas du héros (accueil, .chiffres--heros), ou simple rangée (admin) */
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; position: relative; z-index: 2; }
.chiffres--heros { margin-top: -2.8rem; }
.chiffre { background: #fff; border-radius: var(--rayon); padding: 1.4rem 1.2rem; box-shadow: var(--ombre); text-align: center; border: 1px solid var(--bord); }
.chiffre b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--marine); line-height: 1.1; }
.chiffre b small { font-size: .9rem; }
.chiffre span { color: var(--gris); font-size: .92rem; }
@media (max-width: 760px) { .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pour qui */
.profil { display: flex; gap: 1rem; align-items: flex-start; }
.profil .rond-ico { margin: 0; flex: none; }
.profil h3 { margin-bottom: .3rem; font-size: 1.12rem; }
.profil p { color: var(--gris); font-size: .98rem; }

/* Étapes (liste numérotée : <ol class="etapes">) */
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: etape; position: relative; list-style: none; margin: 0; padding: 0; }
.etape { position: relative; text-align: center; padding: 0 1rem; }
.etape__num { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; background: var(--marine); color: var(--or); box-shadow: 0 0 0 8px rgba(212, 175, 55, .15); position: relative; z-index: 1; }
.etapes::before { content: ""; position: absolute; top: 32px; left: 16%; right: 16%; border-top: 2px dashed var(--or-clair); }
.etape p { color: var(--gris); }
@media (max-width: 760px) { .etapes { grid-template-columns: minmax(0, 1fr); } .etapes::before { display: none; } }

/* Dernières questions du forum (accueil) */
.carte-question { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.carte-question:hover { color: inherit; }
.carte-question .badge { align-self: flex-start; margin-bottom: .9rem; }
.carte-question h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; }
.carte-question p { flex: 1; color: var(--gris); font-size: .9rem; }
.carte-question__pied { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px dashed var(--bord); padding-top: .8rem; color: var(--gris); font-size: .9rem; }

/* ---------- 8. Grilles, cartes, modules, offres, FAQ, appel ---------- */
.grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }   /* une colonne par défaut, jamais plus large que son conteneur */
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grille--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grille--2, .grille--3, .grille--4 { grid-template-columns: minmax(0, 1fr); } }

.carte { background: #fff; border-radius: var(--rayon); padding: 1.8rem; box-shadow: var(--ombre); border: 1px solid var(--bord); transition: var(--transition); overflow-wrap: break-word; }
.carte--survol:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
a.carte { text-decoration: none; color: inherit; }   /* carte entièrement cliquable (administration) */
.carte h3 { font-size: 1.22rem; }
.carte p:last-child { margin-bottom: 0; }
.rond-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--or-pale); color: var(--or-fonce); margin-bottom: 1.1rem; }
.rond-ico .ico { width: 26px; height: 26px; }
.rond-ico--centre { margin: 0 auto 1rem; }
.section--marine .carte { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section--marine .carte p { color: #AAB6CB; }
.section--marine .rond-ico { background: rgba(212, 175, 55, .14); color: var(--or); }

/* Cartes des modules. Le numéro est décoratif (aria-hidden) : le titre porte « Module N : » pour les lecteurs d'écran. */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.4rem; }
.module-carte { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--rayon); padding: 1.6rem 1.5rem 1.3rem; border: 1px solid var(--bord); box-shadow: var(--ombre); text-decoration: none; color: var(--texte); transition: var(--transition); overflow: hidden; }
.module-carte::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--or); transform: scaleX(0); transform-origin: 0 50%; transition: var(--transition); }
.module-carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); color: var(--texte); }
.module-carte:hover::after { transform: none; }
.module-carte__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.module-carte__num { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--or-chiffre); line-height: 1; }
.module-carte .rond-ico { margin: 0; width: 46px; height: 46px; border-radius: 13px; }
.module-carte h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.module-carte p { font-size: .95rem; color: var(--gris); flex: 1; }
.module-carte__pied { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--gris); border-top: 1px dashed var(--bord); padding-top: .9rem; margin-top: .4rem; }
.module-carte__pied span { display: inline-flex; align-items: center; gap: .35rem; }
.module-carte--fait { border-color: #BBF2CF; }
.module-carte--appel { background: linear-gradient(135deg, var(--marine), var(--marine-3)); border-color: var(--marine); color: #CBD5E1; }
.module-carte--appel:hover { color: #CBD5E1; }
.module-carte--appel h3 { color: #fff; }
.module-carte--appel p { color: #AAB6CB; }
.module-carte--appel .module-carte__num .ico { width: 42px; height: 42px; color: var(--or); }
.module-carte--appel .module-carte__pied { color: var(--or); border-top-color: rgba(255, 255, 255, .15); font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; background: var(--bleu-pale); color: var(--marine-3); white-space: nowrap; text-decoration: none; }
.badge .ico { width: 1em; height: 1em; }
.badge--or, .badge--offert { background: var(--or-pale); color: var(--or-fonce); border: 1px solid var(--or-clair); }
.badge--expert { background: var(--marine); color: var(--or-clair); }
.badge--abonne { background: #FFF4E5; color: #9A5B00; }
.badge--vert, .badge--fait { background: var(--vert-pale); color: var(--vert); }
.badge--rouge { background: var(--rouge-pale); color: var(--rouge); }
.badge--gris { background: #F1F5F9; color: var(--gris); }

/* Bloc image + texte */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.duo--inverse .duo__image { order: 2; }
.duo__image { position: relative; isolation: isolate; }
.duo__image img { border-radius: var(--rayon-grand); box-shadow: var(--ombre-forte); width: 100%; aspect-ratio: 7 / 5; object-fit: cover; background: var(--fond); }
.duo__image--carre img { aspect-ratio: 1 / 1; }
.duo__image::after { content: ""; position: absolute; width: 38%; height: 38%; border-radius: var(--rayon-grand); background: repeating-linear-gradient(45deg, var(--or-clair) 0 2px, transparent 2px 12px); z-index: -1; right: -18px; bottom: -18px; }
.duo--inverse .duo__image::after { right: auto; left: -18px; }
/* Liste à coches. Chaque ligne est un bloc de texte, la coche en position absolue : une ligne qui contient un <strong>
   ou une référence insécable se lit d'un seul tenant (le site en ligne, en flex, la coupait en colonnes). Les lignes
   restent serrées en haut de la liste quand celle-ci est étirée (offres : align-content: start). */
.liste-coche { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .75rem; align-content: start; }
.liste-coche li { position: relative; padding-left: calc(24px + .7rem); }
.liste-coche li::before { content: ""; position: absolute; left: 0; top: .1rem; width: 24px; height: 24px; border-radius: 50%; background: var(--or-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856A12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; border: 1px solid var(--or-clair); }
.section--marine .liste-coche li::before { background-color: rgba(212, 175, 55, .15); border-color: rgba(212, 175, 55, .3); }
/* Liste en deux colonnes (boîte à outils de /formation) */
.liste-coche--deux { display: block; columns: 2; column-gap: 2rem; font-size: .96rem; }
.liste-coche--deux li { break-inside: avoid; margin-bottom: .6rem; }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo--inverse .duo__image { order: 0; } .duo__image::after { right: -8px; bottom: -8px; } .duo--inverse .duo__image::after { left: -8px; } }

/* Offres */
.offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.offre { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: 2.2rem 1.9rem; box-shadow: var(--ombre); }
.offre h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.offre__pour { color: var(--gris); font-size: .95rem; min-height: 3em; }
.offre__prix { margin: 1.2rem 0 .2rem; font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--marine); line-height: 1; }
.offre__prix small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--gris); }
.offre__ttc { font-size: .88rem; color: var(--gris); margin-bottom: 1.2rem; }
.offre ul { flex: 1; }
.offre .liste-coche { margin: 1rem 0 1.8rem; font-size: .97rem; }
.offre__fort { color: var(--or-fonce); }
/* Offre vedette : au même niveau que les deux autres. (La feuille du site en ligne la remontait de 12 px, mais son
   apparition au défilement, qui remettait transform à zéro, l'annulait : elle n'a jamais été vue remontée.) */
.offre--vedette { background: var(--marine); border: 2px solid var(--or); color: #CBD5E1; box-shadow: 0 30px 70px rgba(10, 17, 40, .3); }
.offre--vedette h3, .offre--vedette .offre__prix { color: #fff; }
.offre--vedette .offre__pour, .offre--vedette .offre__ttc, .offre--vedette .offre__prix small { color: #AAB6CB; }
.offre--vedette .offre__fort { color: var(--or); }
.offre--vedette .liste-coche li::before { background-color: rgba(212, 175, 55, .15); border-color: rgba(212, 175, 55, .35); }
.offre__ruban { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--or); color: var(--marine); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .4rem 1rem; border-radius: 999px; white-space: nowrap; }
.offres__note { margin-top: 2.2rem; }
@media (max-width: 980px) { .offres { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }

/* Témoignage d'expertise / citation */
.citation { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.45; color: #fff; margin: 0 0 1.5rem; }
.citation::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--or); margin-bottom: .6rem; }
.signature-bloc { display: flex; align-items: center; gap: 1rem; }
.signature-bloc img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--or); }
.signature-bloc strong { color: #fff; display: block; }
.decor-maison { position: absolute; right: -60px; bottom: -40px; width: 380px; opacity: .06; pointer-events: none; }

/* Questions fréquentes (<details> : le texte reste dans la page) */
.faq { display: grid; gap: .9rem; }
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 0 1.4rem; transition: var(--transition); }
.faq details[open] { box-shadow: var(--ombre); border-color: var(--or-clair); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2rem 1.2rem 0; font-weight: 600; color: var(--marine); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--or-pale); color: var(--or-fonce); display: grid; place-items: center; font-size: 1.3rem; font-weight: 400; transition: var(--transition); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 1.3rem; color: #475569; }

/* Appel à l'action */
.appel { position: relative; overflow: hidden; border-radius: var(--rayon-grand); padding: clamp(2.5rem, 5vw, 4rem); background: linear-gradient(120deg, var(--marine) 0%, var(--marine-2) 60%, var(--marine-3) 100%); color: #CBD5E1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.appel h2 { color: #fff; margin-bottom: .5rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.appel p { margin: 0; }
.appel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, .35), transparent 65%); pointer-events: none; }
.appel__actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; z-index: 1; }
/* Fin du module offert */
.appel--module { margin-top: 3rem; max-width: 780px; }
/* Téléphone : la page du module garde ses gouttières (le site en ligne les perdait) ; l'appel rend ces 32 px sur son
   marge intérieure, pour que « Débloquer la formation » tienne sur une ligne comme en ligne */
@media (max-width: 520px) { .appel--module { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (max-width: 820px) { .appel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 9. Formation et module ---------- */

/* Programme détaillé (/formation) */
.formation-reperes { margin-bottom: 3.5rem; }
.module-detail { margin-bottom: 1.4rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.module-detail__num { font-family: var(--serif); font-size: 2.8rem; font-weight: 600; color: var(--or-chiffre); line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.module-detail__repere .rond-ico { margin: .8rem auto 0; }
.module-detail__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.module-detail h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.module-detail__colonnes { gap: 1.2rem 2rem; }
.module-detail .etiquette { margin-bottom: .3rem; }
.module-detail .liste-coche { margin: .3rem 0; font-size: .96rem; }
.module-detail__plan { margin: .3rem 0; padding-left: 1.2rem; font-size: .96rem; color: #475569; }
.module-detail__lien { margin: 1rem 0 0; }
.module-detail--outils { background: var(--or-pale); border-color: var(--or-clair); }
.module-detail--outils .rond-ico { background: #fff; }
.module-detail--outils .badge { margin-bottom: .6rem; }
@media (max-width: 640px) {
  .module-detail { grid-template-columns: minmax(0, 1fr); }
  .module-detail > div:first-child { display: flex; align-items: center; gap: 1rem; }
  .module-detail > div:first-child .rond-ico { margin: 0; }
}

/* Page d'un module : l'article précède le sommaire dans le code (titre et contenu d'abord) ; la grille affiche le
   sommaire à gauche sur grand écran, comme le site en ligne. Gouttières : nulles quand la marge de la page suffit
   (1 280 px et plus, comme le site en ligne), conservées sur téléphone (le site en ligne collait le texte aux bords). */
.lecture {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: "sommaire article";
  gap: 3rem; align-items: start; padding-top: 2.5rem; padding-bottom: 5rem;
  padding-inline: max(0px, calc(var(--gouttiere) - max(0px, (100vw - var(--largeur)) / 2)));
}
.lecture__article { grid-area: article; min-width: 0; }
.lecture > .sommaire { grid-area: sommaire; }
.sommaire { position: sticky; top: 100px; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.2rem; max-height: calc(100vh - 120px); overflow: auto; }
/* Titre du sommaire : <summary> du <details> (replié sous 1000 px par app.js), avec l'aspect du titre du site en ligne */
.sommaire__titre { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin: .3rem .4rem .8rem; line-height: 1.2; cursor: pointer; list-style: none; }
.sommaire__titre::-webkit-details-marker { display: none; }
.sommaire__replier:not([open]) > .sommaire__titre { margin-bottom: .3rem; }
.sommaire ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.sommaire a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: .5rem; align-items: center; min-height: var(--cible); padding: .55rem .5rem; border-radius: 10px; text-decoration: none; color: var(--texte); font-size: .92rem; line-height: 1.3; }
.sommaire a:hover { background: var(--fond); }
.sommaire a.actif { background: var(--marine); color: #fff; }
.sommaire__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--fond); color: var(--marine); }
.sommaire a.actif .sommaire__n { background: var(--or); color: var(--marine); }
.sommaire__etat .ico { width: 16px; height: 16px; }
.sommaire__etat--fait { color: var(--vert); }
.sommaire a.actif .sommaire__etat--fait { color: #86E0A8; }
.sommaire__etat--verrou { color: var(--gris); }
.sommaire a.actif .sommaire__etat--verrou { color: #CBD5E1; }
.sommaire__outils { margin: 1rem .4rem 0; }
.progression { height: 8px; border-radius: 99px; background: var(--fond); overflow: hidden; margin: .4rem .4rem 1rem; }
.progression span { display: block; width: var(--p, 0%); height: 100%; background: linear-gradient(90deg, var(--or), #E8C75A); border-radius: 99px; }
/* Parties du module en cours */
.sommaire__parties { list-style: none; margin: .2rem 0 .6rem 1.3rem; padding: 0 0 0 .5rem; display: grid; gap: .05rem; border-left: 2px solid var(--or-clair); }
.sommaire .sommaire__parties a { display: flex; align-items: center; padding: .35rem .6rem; font-size: .84rem; color: var(--gris); border-radius: 8px; }
.sommaire .sommaire__parties a:hover { color: var(--marine); background: var(--fond); }
.sommaire .sommaire__parties a.partie-active { color: var(--or-fonce); font-weight: 600; background: var(--or-pale); }
@media (max-width: 1000px) {
  .lecture { grid-template-columns: minmax(0, 1fr); grid-template-areas: "article" "sommaire"; }
  .sommaire { position: static; max-height: none; }
  /* Sommaire replié : un « + » cerclé (comme les questions fréquentes) signale qu'il s'ouvre */
  .sommaire__titre { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
  .sommaire__titre::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--or-pale); color: var(--or-fonce); display: grid; place-items: center; font-size: 1.15rem; font-weight: 400; letter-spacing: 0; transition: var(--transition); }
  .sommaire__replier[open] > .sommaire__titre::after { transform: rotate(45deg); }
}

.article-tete { background: linear-gradient(120deg, var(--marine), var(--marine-2)); color: #CBD5E1; border-radius: var(--rayon-grand); padding: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 2.5rem; position: relative; overflow: hidden; }
.article-tete::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, .3), transparent 65%); pointer-events: none; }
.article-tete > * { position: relative; z-index: 1; }
.article-tete h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.article-tete .surtitre { color: var(--or); }
.article-tete__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .92rem; margin-bottom: 1.4rem; }
.article-tete__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-tete__meta + .article-tete__signature { margin-top: -.6rem; }
.article-tete__signature { font-size: .88rem; color: #AAB6CB; margin: 0 0 1.4rem; }
.article-tete__chapeau { font-size: 1.1rem; color: #AAB6CB; max-width: 720px; margin: 0 0 1.2rem; }
.objectifs { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 1.1rem 1.3rem; position: relative; z-index: 1; }
.objectifs h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--or); margin: 0 0 .6rem; }
.objectifs ul { margin: 0; padding-left: 1.2rem; }
.objectifs li { margin: .2rem 0; }

.prose { max-width: 780px; font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 2.6rem 0 1rem; padding-top: .4rem; position: relative; }
.prose h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--or); margin-bottom: .9rem; border-radius: 2px; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--or-fonce); }
.prose strong { color: var(--marine); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4rem 0; font-size: .95rem; border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; }
.prose th { background: var(--marine); color: #fff; text-align: left; font-weight: 600; padding: .75rem .9rem; }
.prose td { padding: .7rem .9rem; border-top: 1px solid var(--bord); vertical-align: top; }
.prose tr:nth-child(even) td { background: #FAFBFD; }
.prose > :first-child { margin-top: 0; }
/* Tableau large : la zone défile (role="region" + aria-label côté serveur ; tabindex="0" posé par app.js
   seulement si le tableau déborde, pour le défilement au clavier) */
.tableau-defile { overflow-x: auto; }
.tableau-defile:focus-visible { border-radius: 14px; }
.encadre { border-radius: 16px; padding: 1.2rem 1.4rem 1.2rem 3.6rem; margin: 1.6rem 0; position: relative; background: var(--bleu-pale); border: 1px solid #D7E0F5; }
.encadre::before { content: ""; position: absolute; left: 1.1rem; top: 1.25rem; width: 26px; height: 26px; background: center / contain no-repeat; }
.encadre > :last-child { margin-bottom: 0; }
.encadre__titre { display: block; font-weight: 700; color: var(--marine); margin-bottom: .35rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.encadre--retenir { background: var(--or-pale); border-color: var(--or-clair); }
.encadre--retenir::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.3h6c0-1 .4-1.8 1-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.encadre--piege { background: var(--rouge-pale); border-color: #FECDCA; }
.encadre--piege .encadre__titre { color: var(--rouge); }
.encadre--piege::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.7 18-8-14a2 2 0 0 0-3.5 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.encadre--conseil { background: #fff; border: 1px solid var(--bord); border-left: 4px solid var(--marine); }
.encadre--conseil::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1128' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.5 12.9 17 22l-5-3-5 3 1.5-9.1'/%3E%3C/svg%3E"); }
.encadre--exemple { background: #F8FAFC; border-style: dashed; }
.encadre--exemple::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323366E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M8 6h8M8 10h8M8 14h5'/%3E%3C/svg%3E"); }
.encadre--modele { background: #fff; border: 1px solid var(--bord); padding: 1.3rem 1.4rem; }
.encadre--modele::before { display: none; }
.encadre--modele pre { white-space: pre-wrap; font-family: var(--sans); font-size: .95rem; background: var(--fond); border-radius: 10px; padding: 1rem; margin: .6rem 0 0; }
.encadre--modele h2 { font-size: 1.3rem; margin: 0; }
.encadre--modele + .encadre--modele { margin-top: 1.4rem; }
.encadre__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
.check { list-style: none; padding-left: 0 !important; }
.check li { position: relative; padding-left: 2rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--or); }
.sources { font-size: .88rem; color: var(--gris); border-top: 1px solid var(--bord); margin-top: 2.5rem; padding-top: 1rem; }

/* Aperçu public d'un module verrouillé : le début réel du module, annoncé par une étiquette */
.apercu { margin: 0 0 2.5rem; }
.apercu__etiquette { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--or-fonce); margin: 0 0 1rem; }

.verrou { text-align: center; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--ombre); }
.verrou .rond-ico { margin: 0 auto 1rem; width: 64px; height: 64px; }
.plan { text-align: left; max-width: 520px; margin: 1.5rem auto 2rem; padding: 0; list-style: none; counter-reset: plan; }
.plan li { counter-increment: plan; padding: .6rem 0 .6rem 2.6rem; border-bottom: 1px dashed var(--bord); position: relative; color: var(--marine); }
.plan li::before { content: counter(plan); position: absolute; left: 0; top: .5rem; width: 28px; height: 28px; border-radius: 50%; background: var(--or-pale); color: var(--or-fonce); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* Quiz */
.quiz { margin-top: 3rem; background: var(--fond); border-radius: var(--rayon-grand); padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 780px; }
.quiz h2 { display: flex; align-items: center; gap: .7rem; }
.question-quiz { background: #fff; border-radius: 16px; padding: 1.3rem 1.4rem; margin-top: 1.1rem; border: 1px solid var(--bord); }
.question-quiz legend { font-weight: 600; color: var(--marine); padding: 0; margin-bottom: .8rem; }
.question-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.option { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; border: 1.5px solid var(--bord); border-radius: 12px; margin-top: .5rem; cursor: pointer; transition: border-color .2s, background .2s; }
.option:hover { border-color: var(--or-clair); background: var(--or-pale); }
.option input { margin-top: .3rem; accent-color: var(--marine); flex: none; }
.option--bonne { border-color: #86E0A8; background: var(--vert-pale); }
.option--fausse { border-color: #FDA29B; background: var(--rouge-pale); }
.explication { margin-top: .8rem; font-size: .93rem; color: #475569; background: var(--bleu-pale); border-radius: 10px; padding: .7rem .9rem; }
.resultat { display: flex; gap: 1rem; align-items: center; border-radius: 16px; padding: 1.1rem 1.3rem; margin: 1.2rem 0; }
.resultat--ok { background: var(--vert-pale); color: #0B5D2A; }
.resultat--ko { background: #FFF4E5; color: #8A4B00; }
.resultat .ico { width: 30px; height: 30px; flex: none; }
.quiz__envoi { margin-top: 1.4rem; }
.nav-modules { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; max-width: 780px; }

/* « Pour aller plus loin » (fin de module) : forum, guides et offres, sur un fond clair du site en ligne */
.liens-lies { max-width: 780px; margin: 3rem 0 0; padding: 1.5rem 1.6rem; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); }
.liens-lies h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.liens-lies ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0; }
.liens-lies li::marker { color: var(--or-fonce); }
.liens-lies a { display: inline-flex; align-items: center; min-height: var(--cible); padding-block: .2rem; line-height: 1.4; }

/* ---------- 10. Guides pratiques ----------
   Liste /guides, accueil, fin de guide et maillage : cartes du même dessin que les cartes des modules (numéro en or,
   filet d'or au survol). Le lien du titre couvre toute la carte (pseudo-élément) ; le numéro est décoratif. */
.guides-intro { max-width: 680px; }
.guides-intro .chapeau { margin: 0; }
.guides-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.guide-carte {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; overflow: hidden;
  background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.6rem 1.5rem 1.3rem; box-shadow: var(--ombre); color: var(--texte); transition: var(--transition);
}
.guide-carte::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--or); transform: scaleX(0); transform-origin: 0 50%; transition: var(--transition); }
.guide-carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.guide-carte:hover::after { transform: none; }
.guide-carte__num { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--or-chiffre); line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.guide-carte__corps { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.guide-carte__titre { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .45rem; }
.guide-carte__lien { color: var(--marine); text-decoration: none; }
.guide-carte__lien::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }   /* toute la carte est cliquable */
.guide-carte:hover .guide-carte__lien { color: var(--marine); }
.guide-carte__texte { flex: 1; color: var(--gris); font-size: .95rem; margin: 0 0 1rem; }
.guide-carte__pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; margin: 0; padding-top: .9rem; border-top: 1px dashed var(--bord); color: var(--gris); font-size: .85rem; }
.guide-carte__pied > span { display: inline-flex; align-items: center; gap: .35rem; }
.guide-carte__suite { color: var(--marine-3); font-weight: 600; }
/* Focus : l'anneau entoure toute la carte (le lien la couvre) ; sans :has(), il reste sur le titre */
@supports selector(:has(a)) {
  .guide-carte:has(.guide-carte__lien:focus-visible) { outline: 3px solid var(--marine-3); outline-offset: 3px; box-shadow: 0 0 0 6px var(--or-clair); }
  .guide-carte__lien:focus-visible { outline: 0; box-shadow: none; }
}
@media (max-width: 30rem) { .guide-carte { grid-template-columns: minmax(0, 1fr); gap: .8rem; } }
.guides-liste--compacte { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.guides-liste--compacte .guide-carte { padding: 1.25rem 1.3rem 1.1rem; box-shadow: none; }
.guides-liste--compacte .guide-carte__num { font-size: 1.8rem; }

/* Page d'un guide : mise en page d'une page de module (en-tête marine, sommaire, prose). L'en-tête et le sommaire
   précèdent le texte dans le code ; sur grand écran, le sommaire occupe la colonne collante de gauche. */
.lecture--guide { grid-template-areas: "sommaire tete" "sommaire article"; grid-template-rows: auto 1fr; row-gap: 0; }
.lecture--guide > .article-tete { grid-area: tete; min-width: 0; }
.lecture--guide > .sommaire { grid-area: sommaire; align-self: start; }
.sommaire--guide .sommaire__parties { margin: .2rem .2rem .4rem .5rem; }
@media (max-width: 1000px) {
  .lecture--guide { grid-template-areas: "tete" "sommaire" "article"; grid-template-rows: none; }
  .lecture--guide > .sommaire { margin-bottom: 2.5rem; }
}
/* Section « Continuer » en fin de guide : titre de prose, cartes « profil », cartes des guides, bloc d'appel */
.plus-loin { max-width: 780px; margin: 3.5rem 0 0; padding-top: 2.5rem; border-top: 1px solid var(--bord); }
.plus-loin > h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 0 0 1.25rem; }
.plus-loin > h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--or); margin-bottom: .9rem; border-radius: 2px; }
.plus-loin__liens { list-style: none; margin: 0 0 2.25rem; padding: 0; }
.plus-loin__liens .etiquette { display: block; color: var(--or-fonce); margin: 0 0 .2rem; }
.plus-loin__lien { color: var(--marine); text-decoration: none; }
.plus-loin__lien:hover { color: var(--or-fonce); text-decoration: underline; }
.plus-loin__sous-titre { font-size: 1.3rem; margin: 0 0 1rem; }
.plus-loin .appel { margin-top: 2.25rem; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }

/* ---------- 11. Formulaires, forum, espace membre, administration ----------
   Mêmes règles que le site en ligne ; ses attributs style y sont devenus des classes (même rendu). */
.formulaire { display: grid; gap: 1.1rem; }
.formulaire--espace { margin-top: 1rem; }
.champ { display: grid; gap: .4rem; }
.champ label, .etiquette { font-weight: 600; color: var(--marine); font-size: .95rem; }
.champ small { color: var(--gris); font-size: .84rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=file], select, textarea {
  width: 100%; min-height: var(--cible); font: inherit; font-size: 1rem; color: var(--texte); background: #fff; border: 1.5px solid var(--bord-champ); border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }
/* Au clavier, l'anneau du champ reste net (contraste 3:1 au moins), sans perdre le halo doré du site en ligne */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--marine-3); outline-offset: 1px; border-color: var(--marine-3); box-shadow: 0 0 0 5px rgba(212, 175, 55, .25); }
::placeholder { color: #6B7789; opacity: 1; }
.champs-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 600px) { .champs-2 { grid-template-columns: minmax(0, 1fr); } }
.case { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: #475569; }
.case input { margin-top: .3rem; accent-color: var(--marine); width: 18px; height: 18px; flex: none; }
.pot-de-miel { position: absolute; left: -5000px; }
.recherche { display: flex; gap: .5rem; max-width: 460px; margin-bottom: 1rem; }
.recherche input { flex: 1; }

/* Messages dans une carte ou un formulaire */
.carte .flash, .auth-grille__form .flash { margin: 1rem 0; }
.conteneur > .flash { margin: 0 0 1rem; }
.flash--marge { margin-bottom: 2rem !important; }

/* Cartes des pages intérieures (contact, commande, espace, accompagnement, administration) */
.carte h2 { font-size: 1.3rem; }
.carte .carte__titre { font-size: 1.22rem; }                 /* encarts : titre de la taille d'un h3 de carte */
.carte--ample { padding: 2.5rem; }
.carte--large { padding: clamp(1.6rem, 4vw, 2.6rem); }
.carte--or { background: var(--or-pale); border-color: var(--or-clair); }
.carte--or .liste-coche { font-size: .95rem; }
.carte--alerte { border-color: #FECDCA; }
.carte--tableau { padding: 0; }
.carte__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.carte__tete h2 { margin: 0; }
.pile { display: grid; gap: 1.2rem; align-content: start; }
.note-haut { margin: .8rem 0 0; }
.note-bas { margin: 1rem 0 0; }
.bloc-espace { margin-top: 1.5rem; }
.bloc-cartes { margin-top: 1rem; }
.titre-page { font-size: 2rem; }
.titre-page--grand { font-size: 2.2rem; }
.titre-liste { font-size: 1.5rem; margin: 3rem 0 1rem; }
.titre-demande { font-size: 1.4rem; }
.conteneur--moyen { max-width: 980px; }
.conteneur--texte { max-width: 720px; }
.section--tres-serree { padding-top: 2rem; }
/* Formulaire et encart côte à côte (poser une question ; variantes contact et commande, comme en ligne) */
.grille-formulaire { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.grille-formulaire--contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; }
.grille-formulaire--commande { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .grille-formulaire { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) and (min-width: 821px) { .grille-formulaire--commande { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
/* Coordonnées du cabinet (contact) : la liste du pied de page, dans une carte */
.coordonnees { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.coordonnees li { display: flex; gap: .6rem; align-items: flex-start; }
.coordonnees .ico { color: var(--or); margin-top: .25rem; }
.coordonnees a { position: relative; overflow-wrap: anywhere; }
/* Récapitulatif de commande (carte marine bordée d'or) */
.recap { background: var(--marine); color: #CBD5E1; border: 2px solid var(--or); }
.recap .etiquette { color: var(--or); }
.recap h2 { color: #fff; font-size: 1.4rem; }
.recap .statut-ligne { border-color: rgba(255, 255, 255, .12); }
.recap strong { color: #fff; }
.recap .recap__total { color: var(--or); font-size: 1.4rem; }
.recap .recap__inclus { color: #86E0A8; }
.recap .petit { margin: .8rem 0 0; }

.boite-auth { max-width: 520px; margin: 0 auto; }
.boite-auth .carte { padding: clamp(1.6rem, 4vw, 2.6rem); }
.boite-auth h1 { font-size: 1.8rem; }
.auth-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 78px); }
.auth-grille__visuel { position: relative; background: var(--marine) center / cover no-repeat; }
/* Photo du panneau (connexion, inscription) : elle couvre le panneau, comme l'image de fond du site en ligne */
.auth-grille__photo { position: absolute; inset: 0; }
.auth-grille__photo img { width: 100%; height: 100%; object-fit: cover; }
.auth-grille__visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 17, 40, .1), rgba(10, 17, 40, .85)); }
.auth-grille__legende { position: absolute; z-index: 1; left: 2.5rem; right: 2.5rem; bottom: 2.5rem; color: #fff; }
.auth-grille__legende p { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; }
.auth-grille__form { display: flex; align-items: center; padding: 3rem var(--gouttiere); background: var(--fond); }
.auth-grille__form > div { width: 100%; max-width: 480px; margin: 0 auto; }
.auth-grille__form h1 { font-size: 2rem; }
.auth-grille__form .formulaire { margin-top: 1.2rem; }
@media (max-width: 900px) { .auth-grille { grid-template-columns: minmax(0, 1fr); } .auth-grille__visuel { min-height: 220px; } .auth-grille__legende p { font-size: 1.15rem; } }

/* Forum */
.forum-grille { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; align-items: start; }
.forum-cotes { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.forum-cats { list-style: none; margin: 0; padding: .6rem; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); }
.forum-cats a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: var(--cible); padding: .6rem .8rem; border-radius: 10px; color: var(--texte); text-decoration: none; font-size: .95rem; }
.forum-cats a span:first-child { display: inline-flex; align-items: center; gap: .55rem; }
.forum-cats a .ico { color: var(--or-fonce); }
.forum-cats a:hover { background: var(--fond); }
.forum-cats a.actif { background: var(--marine); color: #fff; }
.forum-cats a.actif .ico { color: var(--or); }
.forum-cats small { color: inherit; }
.forum-outils { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.forum-outils form { display: flex; gap: .5rem; flex: 1; min-width: min(100%, 16rem); max-width: 420px; }
.onglets { display: inline-flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 4px; }
.onglets a { display: inline-flex; align-items: center; min-height: var(--cible); padding: .45rem 1rem; border-radius: 999px; text-decoration: none; color: var(--gris); font-size: .9rem; font-weight: 500; }
.onglets a.actif { background: var(--marine); color: #fff; }
.pagination { margin-top: 1.5rem; }
.sujets { display: grid; gap: .8rem; }
.sujet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.3rem; transition: var(--transition); }
.sujet:hover { border-color: var(--or-clair); box-shadow: var(--ombre); }
.sujet h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 0 0 .25rem; }
.sujet h3 a { color: var(--marine); text-decoration: none; }
.sujet h3 a:hover { color: var(--or-fonce); }
.sujet__epingle { color: var(--or-fonce); }
.sujet__meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; font-size: .84rem; color: var(--gris); }
.sujet__compteur { text-align: center; min-width: 74px; padding: .5rem; border-radius: 12px; background: var(--fond); font-size: .78rem; color: var(--gris); line-height: 1.2; }
.sujet__compteur b { display: block; font-size: 1.25rem; color: var(--marine); font-family: var(--serif); }
.sujet__compteur--resolu { background: var(--vert-pale); color: var(--vert); }
.sujet__compteur--resolu b { color: var(--vert); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: #E6ECF7; color: var(--marine-3); font-weight: 700; font-size: .9rem; flex: none; }
.avatar--expert { background: var(--marine); color: var(--or); box-shadow: 0 0 0 3px var(--or-clair); }
.message { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.5rem 1.6rem; }
.message + .message { margin-top: 1rem; }
.message__tete { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.message__tete strong { color: var(--marine); }
.message__date { margin-left: auto; }
.message__etiquettes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.message__titre { font-size: clamp(1.5rem, 3vw, 2rem); }
.message__corps { overflow-wrap: anywhere; }
.message__corps ul, .message__corps ol { padding-left: 1.3rem; }
.message__corps p:last-child { margin-bottom: 0; }
.message--question { border-top: 4px solid var(--marine); }
.message--expert { border-color: var(--or-clair); background: linear-gradient(180deg, var(--or-pale), #fff 120px); }
.message--retenue { border: 2px solid #86E0A8; }
/* Message traité (administration) : estompé comme en ligne, mais par le fond et non par l'opacité (le texte garde son contraste) */
.message--traite { background: #FAFBFD; border-style: dashed; }
.message__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--bord); }
.message__actions form { display: inline; }
.message__actions:not(:has(*)) { display: none; }
/* Type de demande (administration) : badge sur plusieurs lignes au besoin (une ligne débordait de l'écran à 390 px) */
.message p > .badge { white-space: normal; }
.message__reponse { border-top: 1px dashed var(--or-clair); margin-top: 1rem; padding-top: 1rem; }
.message__reponse > p:first-child { margin-bottom: .5rem; }
.reponses-titre { font-size: 1.35rem; margin: 2rem 0 1rem; }
.repondre { margin-top: 2rem; }
.bouton-texte { background: none; border: 0; padding: .3rem .1rem; font: inherit; font-size: .88rem; color: var(--gris); cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; min-height: var(--cible); text-decoration: none; }
.bouton-texte:hover { color: var(--marine); }
.bouton-texte.actif { color: var(--or-fonce); font-weight: 600; }
.retenue-etiquette { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; color: var(--vert); font-weight: 600; font-size: .88rem; }
.signaler { display: inline-block; }
.signaler summary { list-style: none; cursor: pointer; }
.signaler summary::-webkit-details-marker { display: none; }
.signaler[open] { display: block; width: 100%; }
.signaler__form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.signaler__form select, .signaler__form input { width: auto; flex: 1; min-width: 180px; padding: .5rem .7rem; font-size: .9rem; }
/* Encarts de la colonne du forum (« Dans la formation », règles de la maison) : la petite carte du site en ligne */
.carte--encart { padding: 1.3rem; }
.carte--encart h2 { font-size: 1.05rem; }
.carte--encart ul { padding-left: 1.1rem; margin: 0; display: grid; gap: .35rem; font-size: .9rem; color: #475569; }
.carte--encart .etiquette { display: block; margin-bottom: .4rem; }
.carte--encart .encart__sous-titre { margin-top: 1rem; }
.carte--encart .liens-guides, .carte--encart .liens-formation { list-style: none; padding: 0; gap: 0; }
.liens-guides a, .liens-formation a { display: flex; align-items: center; min-height: var(--cible); padding: .3rem 0; line-height: 1.35; }
/* Règles de la maison : <details>, replié sous 900 px par app.js (un « + » cerclé signale alors qu'il s'ouvre) */
.encart-repliable summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; cursor: pointer; list-style: none; }
.encart-repliable summary::-webkit-details-marker { display: none; }
.encart-repliable summary h2 { margin: 0 0 .6em; }
@media (max-width: 900px) {
  .encart-repliable summary { min-height: var(--cible); }
  .encart-repliable summary h2 { margin: 0; }
  .encart-repliable summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--or-pale); color: var(--or-fonce); transition: var(--transition); }
  .encart-repliable[open] summary { margin-bottom: .6rem; }
  .encart-repliable[open] summary::after { transform: rotate(45deg); }
  .forum-grille { grid-template-columns: minmax(0, 1fr); }
  .forum-grille--question > .forum-cotes { order: 2; }   /* sur téléphone, la question d'abord, les liens ensuite */
  .forum-cotes { position: static; }
  .forum-cats { display: flex; overflow-x: auto; gap: .3rem; }
  .forum-cats a { white-space: nowrap; }
  .forum-cats small { display: none; }
}
@media (max-width: 560px) { .sujet { grid-template-columns: minmax(0, 1fr); } .sujet .avatar { display: none; } .sujet__compteur { display: inline-block; justify-self: start; } }

/* Espace membre */
.bandeau--membre { padding: 2.8rem 0; }
.bandeau--compact { padding: 2.5rem 0; }
.bandeau--compact h1 { margin: 0; }
.tableau-bord { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .tableau-bord { grid-template-columns: minmax(0, 1fr); } }
.accueil-membre { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.accueil-membre .avatar { width: 64px; height: 64px; font-size: 1.2rem; }
.accueil-membre .surtitre { margin: 0; }
.accueil-membre h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.accueil-membre .bandeau__texte { font-size: 1rem; }
.accueil-membre .form-deconnexion { margin-left: auto; }
.jauge { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; }
.jauge h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.jauge p { margin: 0; }
.jauge .btn { margin-top: .8rem; }
.jauge__cercle { --p: 0; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--or) calc(var(--p) * 1%), var(--fond) 0); }
.jauge__cercle span { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--marine); }
.liste-modules { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.liste-modules a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .8rem; align-items: center; min-height: var(--cible); padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--bord); text-decoration: none; color: var(--texte); transition: var(--transition); }
.liste-modules a:hover { border-color: var(--or-clair); background: var(--or-pale); }
.liste-modules .sommaire__n { width: 30px; height: 30px; }
.liste-modules .sommaire__n--fait { background: var(--vert-pale); color: var(--vert); }
.liste-modules strong { color: var(--marine); font-weight: 600; }
.liste-modules--attestation { text-align: left; margin: 1.5rem 0; }
.statut-ligne { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed var(--bord); }
.statut-ligne:last-child { border-bottom: 0; }
.statut-ligne > a:not(.btn) { position: relative; text-decoration: none; font-weight: 500; }
/* Cartes du tableau de bord de l'administration : une adresse e-mail longue ou un identifiant Stripe (sub_…) se coupe au
   besoin, la date passe dessous ; sans cela la ligne débordait de la carte et de l'écran (390 px) */
.carte--alerte .statut-ligne, .carte--echeances .statut-ligne { flex-wrap: wrap; row-gap: .2rem; }
.carte--alerte .statut-ligne > span:first-child, .carte--echeances .statut-ligne > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.depliant { margin-top: 1.2rem; }
.depliant summary { position: relative; cursor: pointer; font-weight: 600; color: var(--marine); }
.lien-bloc { margin: 1.2rem 0 0; }

/* Tableaux (administration, tarifs) */
.tableau { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; }
.tableau th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); padding: .7rem .8rem; border-bottom: 2px solid var(--bord); white-space: nowrap; }
.tableau td { padding: .75rem .8rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau tr:hover td { background: #FAFBFD; }
.tableau form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.tableau input, .tableau select { padding: .4rem .6rem; font-size: .88rem; border-radius: 8px; width: auto; min-height: 0; }
.tableau input[name=reference] { width: 8rem; }
.tableau .bouton-texte { min-width: var(--cible); justify-content: center; }   /* bouton-icône (supprimer) : 44 px de large */
.tableau--marge { margin: 1.4rem 0; }
.admin-onglets { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.admin-onglets a { min-height: var(--cible); padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--bord); text-decoration: none; color: var(--texte); font-weight: 500; font-size: .92rem; display: inline-flex; gap: .45rem; align-items: center; }
.admin-onglets a.actif { background: var(--marine); color: #fff; border-color: var(--marine); }
.compteur-rouge { background: var(--rouge); color: #fff; font-size: .72rem; border-radius: 99px; padding: .05rem .45rem; font-weight: 700; }
.ligne-outils { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ligne-outils select { width: auto; }
/* Boîte à outils : modèles */
.encadre__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
.encadre--modele h2 .badge { vertical-align: middle; }

/* Pages de texte (mentions, CGV) */
.texte-legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Attestation */
.attestation { max-width: 900px; margin: 2rem auto; background: #fff; border: 1px solid var(--bord); padding: 3.5rem; position: relative; text-align: center; box-shadow: var(--ombre); }
.attestation::before { content: ""; position: absolute; inset: 14px; border: 2px solid var(--or); pointer-events: none; }
.attestation h1 { font-size: 2.4rem; margin: 1rem 0 .4rem; }
.attestation__embleme { width: 90px; margin: 0 auto; }
.attestation__nom { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--or-fonce); margin: 1.5rem 0; }
.attestation__intro { margin-top: 2rem; }
.surtitre.attestation__intro { margin-top: 1rem; }
.attestation__liste { max-width: 640px; margin: 1.5rem auto 0; }
.attestation__mention { margin-top: 2rem; }
.attestation__pied { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 3rem; text-align: left; font-size: .92rem; }
.attestation__pied > div:last-child { text-align: right; }
@media (max-width: 640px) {        /* téléphone : le cadre reste lisible (le site en ligne gardait 3,5rem de marge et 2,4rem de titre) */
  .attestation { padding: 2.5rem 1.6rem; }
  .attestation h1 { font-size: 1.8rem; }
  .attestation__nom { font-size: 1.8rem; }
  .attestation__pied { flex-wrap: wrap; gap: 1.5rem; }
}

/* ---------- 12. Pied de page ----------
   Titres de colonne en <h2 class="pied__titre"> (le site en ligne posait des h3 sans h2) ; liens de 44 px de haut. */
.pied { background: var(--marine); color: #94A3B8; padding: 4.5rem 0 0; font-size: .95rem; }
.pied__grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.pied__titre { font-family: var(--sans); font-size: .78rem; font-weight: 600; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--or); margin: 0 0 .5rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.pied a { display: inline-flex; align-items: center; min-height: var(--cible); color: #CBD5E1; text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied .logo { min-height: var(--cible); }
.pied__marque p { margin-top: 1.2rem; max-width: 340px; }
.pied__reseaux { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.pied__reseaux a { gap: .35rem; }
.pied__contact li { display: flex; gap: .6rem; align-items: center; min-height: var(--cible); }
.pied__contact li:first-child { align-items: flex-start; padding: .55rem 0; }
.pied__contact .ico { color: var(--or); }
.pied__contact li:first-child .ico { margin-top: .25rem; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.4rem var(--gouttiere); font-size: .82rem; color: var(--gris-pied); }
.pied__bas p { margin: 0; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__grille { grid-template-columns: 1fr; } }
/* Adresse e-mail : jamais coupée sur son trait d'union, seule coupure permise après l'arobase (courriel_affiche()) */
.courriel { display: inline; }

/* ---------- 13. Apparition au défilement ----------
   Même effet que le site en ligne (fondu et montée de 24 px à l'entrée dans l'écran), mais en CSS seul, piloté par
   le défilement (animation-timeline: view()). Le contenu est VISIBLE par défaut : sans JavaScript, sans prise en
   charge de animation-timeline (Firefox, anciens navigateurs) ou en mouvement réduit, rien n'est masqué ni retardé.
   Les blocs .apparait ne sont jamais posés sur le héros, sur la première rangée visible d'une page ni sur le dernier
   bloc avant le pied de page. L'animation agit sur opacity et translate, jamais sur transform (réservé au survol). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .apparait {
      animation: apparition var(--courbe) both;
      animation-timeline: view();            /* toujours APRÈS le raccourci animation */
      animation-range: entry 0% entry 12rem;
    }
  }
}
@keyframes apparition { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* ---------- 14. Préférences d'affichage, impression ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Contraste renforcé demandé par le système : les gris foncent encore */
@media (prefers-contrast: more) {
  :root { --gris: #3B4556; --bord: #8A96A8; --bord-champ: #5B6679; --gris-pied: #CBD5E1; }
  .chapeau, .heros__texte, .faq details > div { color: var(--texte); }
}
/* Couleurs forcées (contraste élevé de Windows) */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
  .btn { border: 2px solid ButtonText; }
  .nav__liens a[aria-current] { text-decoration: underline; }
  .progression, .jauge__cercle { border: 1px solid CanvasText; }
}
@media print {
  .entete, .pied, .flashs, .no-print, .bandeau-dev, .aller-contenu, .sommaire, .nav-modules, .liens-lies, .plus-loin, .appel, .quiz form .btn, .signaler, .message__actions { display: none !important; }
  body { background: #fff; }
  .bandeau, .section--marine, .article-tete { background: none !important; color: #000; }
  .bandeau h1, .section--marine h2, .section--marine h3, .article-tete h1, .article-tete .surtitre, .bandeau .surtitre, .bandeau__texte, .article-tete__signature, .article-tete__meta { color: #000; }
  .article-tete::after, .ariane { display: none; }
  .lecture { display: block; padding: 0; }
  .attestation { box-shadow: none; border: 0; margin: 0; }
}
