/* COHÉRENCE — feuille unique, sans framework ni dégradés.
   Modifier les couleurs ci-dessous pour appliquer la charte de My-Ngoc. */
:root {
  --green: #013611;
  --green-dark: #013611;
  --gold: #D5982D;
  --or: var(--gold);
  --primaire: var(--green);
  --primaire-dark: var(--green-dark);
  --primaire-bg: #f1f6f2;
  --primaire-mid: #c8dacf;
  --blanc: #ffffff;
  --creme: #f7f9f6;
  --texte: var(--ink);
  --discret: var(--muted);
  --bordure: var(--line);
  --font-titre: "Cormorant Garamond", Georgia, serif;
  --font-corps: "Montserrat", Arial, sans-serif;
  --gold-light: #F1C56C;
  --ink: #0F1234;
  --muted: #4D5360;
  --paper: #FBF8F6;
  --soft: #FEF1E1;
  --line: #D5BDA0;
  --width: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
a { color: var(--green); text-decoration-line: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .18s ease; }
a:hover { color: var(--gold); text-decoration-color: var(--gold); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(var(--width), calc(100% - 44px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 8px 12px; background: white; }
.skip:focus { left: 8px; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { font-size: 1.5rem; font-weight: 760; letter-spacing: .055em; text-decoration: none; color: var(--green-dark); white-space: nowrap; }
.brand-dot { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 22px; }
.nav a { font-size: .91rem; font-weight: 600; text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--gold); }
.nav a:hover { color: var(--gold); border-bottom-color: transparent; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: clamp(34px, 5vw, 66px); align-items: start; padding-top: 44px; padding-bottom: 68px; }
.content { min-width: 0; }
.intro { padding-bottom: 30px; }
.overline { color: var(--gold); font-size: 1rem; font-weight: 650; letter-spacing: .035em; text-transform: none; margin: 0 0 9px; }
h1, h2, h3 { line-height: 1.27; }
h1 { font-size: clamp(2rem, 3.3vw, 2.85rem); font-weight: 730; letter-spacing: -.035em; color: var(--green-dark); margin: 0 0 19px; }
h2 { color: var(--green-dark); font-size: 1.48rem; letter-spacing: -.02em; margin: 0 0 18px; }
h3 { color: var(--ink); font-size: 1.06rem; margin: 20px 0 5px; }
p { margin: 0 0 15px; }
.lead { font-size: 1.11rem; line-height: 1.65; }
.statement { border-left: 3px solid var(--gold); padding: 8px 0 8px 17px; color: var(--green-dark); font-weight: 700; font-size: 1.05rem; margin-top: 26px; }
.block { padding: 30px 0; border-top: 1px solid var(--line); }
.value { margin-bottom: 20px; }
.value h3 { color: var(--green); }
.resource { padding: 13px 0; border-bottom: 1px solid var(--line); }
.resource:last-child { border-bottom: 0; }
.resource h3 { margin: 0 0 6px; }
.resource h3 a { text-decoration-color: var(--gold); }
.sidebar { border-left: 1px solid var(--line); padding-left: 27px; font-size: .91rem; }
.side-section { padding: 0 0 22px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.side-section:last-child { border-bottom: 0; }
.side-section h2 { font-size: 1rem; margin: 0 0 9px; }
.side-label { font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.side-quote { font-size: 1.27rem; line-height: 1.35; color: var(--green-dark); font-weight: 750; }
.side-section p { margin-bottom: 9px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { margin: 0 0 7px; }
.side-links a { text-decoration-color: var(--gold); }
.side-contact { background: var(--soft); border: 1px solid var(--line); padding: 19px; border-radius: 8px; }
.button { display: inline-block; border: 1px solid var(--green); background: var(--green); color: #fff; text-decoration: none; padding: 9px 20px; border-radius: 7px; font-size: .9rem; font-weight: 700; }
.button:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.editorial-image, .side-image { margin: 20px 0; }
.editorial-image img, .side-image img { display: block; width: 100%; height: auto; border-radius: 8px; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: 7px; }
/* PIED DE PAGE : trois colonnes, liens or au survol */
.site-footer { border-top: 1px solid var(--line); background: var(--green-dark); color: #fff; font-size: .94rem; }
.footer-inner { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 38px; padding-top: 43px; padding-bottom: 34px; }
.footer-logo { font-size: 1.38rem; font-weight: 750; letter-spacing: .06em; }
.footer-brand p { margin-bottom: 11px; }
.footer-col h2 { font: 650 1rem/1.4 var(--font-corps); color: #fff; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 7px; }
.footer-col p { margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration-line: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold-light); text-decoration-color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid #547763; font-size: .85rem; }
@media (max-width: 850px) {
  .header-row { padding-block: 16px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .nav { gap: 2px 17px; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 30px; }
  .sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .side-section { margin: 0; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .sidebar { display: block; }
  .side-section { margin-bottom: 20px; }
  .nav { gap: 0 15px; }
  .nav a { font-size: .86rem; }
  .page-grid { padding-bottom: 35px; }
}


/* Navigation : seul le lien correspondant à la page ouverte est souligné en or. */
.nav a, .nav a:hover, .nav a:focus-visible {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"], .nav a[aria-current="page"]:hover {
  border-bottom-color: var(--gold);
}
/* Liens textuels : le trait reste or, y compris au survol. */
.content a:not(.button):hover, .sidebar a:not(.button):hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}
/* Bouton : surface unie, sans soulignement décoratif. */
.button, .button:hover { text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   MODULES ÉDITORIAUX RÉUTILISABLES — COHÉRENCE
   Inspirés de la structure de la feuille Royal Formation fournie.
   Les modules s'activent en ajoutant leur classe dans le HTML.
   Aucun dégradé, aucune dépendance JavaScript.
   ═══════════════════════════════════════════════════════════════ */

/* Fil d'Ariane */
.breadcrumb { background: var(--soft); border-bottom: 1px solid var(--line); padding: 9px 0; font-size: .94rem; }
.breadcrumb-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.breadcrumb span[aria-hidden="true"] { color: var(--muted); }

/* Hiérarchie éditoriale et séparateurs */
.page-label, .bloc-label, .ref-label { color: var(--green-dark); font-size: 1rem; font-weight: 650; letter-spacing: .035em; text-transform: none; }
.section-titre { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.sous-titre { color: var(--green); }
.gold-rule { width: 48px; height: 2px; background: var(--gold); margin: 0 0 24px; }
.section-rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.content-body p { margin-bottom: 16px; }
.content-body ul, .content-body ol { padding-left: 1.4rem; margin: 10px 0 18px; }
.content-body li { margin-bottom: 7px; }

/* Encadrés : synthèse, principe, vigilance */
.encadre, .encadre-or, .schema, .refs-block, .tarif-bloc {
  background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 17px 20px; margin: 18px 0; border-radius: 3px;
}
.alerte { background: var(--primaire-bg); border: 1px solid var(--primaire-mid); border-left: 3px solid var(--green); padding: 16px 20px; margin: 18px 0; }
.encadre p:last-child, .alerte p:last-child { margin-bottom: 0; }

/* Blocs structurés */
.bloc { margin: 0 0 32px; }
.bloc-titre { font-size: 1.3rem; color: var(--green-dark); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.bloc-corps { line-height: 1.75; }
.bloc-etape { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.etape-num { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); color: var(--green-dark); border-radius: 50%; font-weight: 650; }
.etape-group { border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 20px; margin: 18px 0; }
.bloc-parcours { border-left: 3px solid var(--gold); padding-left: 18px; margin-bottom: 22px; }

/* Sommaire et navigation entre chapitres */
.sommaire-section { margin: 18px 0; }
.sommaire-section h3 { font-size: 1.1rem; background: var(--soft); color: var(--green-dark); padding: 10px 14px; border-left: 3px solid var(--gold); }
.sommaire-list, .dossier-list, .nav-links, .info-list, .pub-list { list-style: none; margin: 0; padding: 0; }
.sommaire-list li, .dossier-list li, .nav-links li, .info-list li, .pub-list li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.sommaire-list a, .nav-links a { display: inline-block; }
.sommaire-list .sous { padding-left: 18px; }
.chapitre-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 34px; }
.plan-nav, .ressources { background: var(--soft); border: 1px solid var(--line); padding: 18px 20px; margin: 20px 0; }
.plan-nav ol, .ressources ul { padding-left: 22px; }

/* Jurisprudence et références officielles */
.jurisprudence, .ref-bloc { border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 15px 18px; margin: 14px 0; background: #fff; }
.jurisprudence .ref { display: block; font-size: .94rem; font-weight: 650; color: var(--green-dark); margin-bottom: 7px; }
.jurisprudence p:last-child, .ref-bloc p:last-child { margin-bottom: 0; }
.pdf-icon { display: inline-block; padding: 2px 5px; background: var(--green); color: #fff; font-size: .8rem; border-radius: 2px; }

/* Tableaux et comparaisons */
.table-scroll { max-width: 100%; overflow-x: auto; }
.content-body table, .tableau { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.content-body th, .tableau th { background: var(--green-dark); color: #fff; font-weight: 600; text-align: left; padding: 10px 12px; }
.content-body td, .tableau td { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.deux-colonnes, .expertise-grid, .situation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.col-bloc, .expertise-item { border: 1px solid var(--line); padding: 16px; background: var(--soft); }

/* Cartes, sidebar et médias */
.card { background: var(--soft); border: 1px solid var(--line); padding: 18px; border-radius: 4px; }
.card h3 { margin-top: 0; }
.sidebar .card + .card { margin-top: 16px; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
figure { max-width: 100%; }
figcaption { font-size: .9rem; }

/* Boutons secondaires */
.btn-secondaire { display: inline-block; padding: 9px 17px; background: #fff; border: 1px solid var(--gold); border-radius: 5px; color: var(--green-dark); text-decoration: none; font-weight: 600; }
.btn-secondaire:hover { color: var(--gold); border-color: var(--gold); }
.btn-principal { background: var(--green); border-color: var(--green); color: #fff; }
.btn-principal:hover { background: var(--green-dark); color: #fff; }

/* Accessibilité et adaptation mobile */
@media (max-width: 850px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-inner, .deux-colonnes, .expertise-grid, .situation-list { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-inner { gap: 20px; padding-top: 30px; }
  .bloc-etape { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   CHARTE COHERENCE - V3 : identite visuelle et typographie
   Couleurs unies ; aucune modification de la structure V3.
   ============================================================ */
:root {
  --green: #003611;
  --green-dark: #003611;
  --gold: #CC8F24;
  --or: #CC8F24;
  --gold-light: #E7BD60;
  --ink: #253047;
  --muted: #4A5168;
  --paper: #FFFFFF;
  --soft: #FEF1E2;
  --line: #D4BD9F;
  --primaire: #003611;
  --primaire-dark: #003611;
  --primaire-bg: #F2F5EF;
  --primaire-mid: #799968;
  --blanc: #FFFFFF;
  --creme: #FEF1E2;
  --texte: #253047;
  --discret: #4A5168;
  --bordure: #D4BD9F;
  --vert-sauge: #799968;
  --sable: #D4BD9F;
  --ivoire: #FEF1E2;
  --font-titre: 'Cormorant Garamond', Georgia, serif;
  --font-corps: 'Jost', Arial, sans-serif;
}
body { font-family: var(--font-corps); font-weight: 400; }
h1, h2, h3, .side-quote, .footer-logo { font-family: var(--font-titre); }
h1 { font-size: clamp(2.3rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.015em; }
h2 { font-size: 1.85rem; font-weight: 600; letter-spacing: 0; }
h3 { font-size: 1.4rem; font-weight: 600; }
.overline, .side-label { font-family: var(--font-corps); font-size: 1rem; text-transform: none; letter-spacing: .02em; }
.side-quote { font-size: 1.65rem; font-weight: 600; }
.side-section h2 { font-size: 1.45rem; }
.footer-col h2 { font-family: var(--font-corps); font-size: 1rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; width: 225px; max-width: 100%; height: auto; }
.site-header { border-bottom-color: var(--line); }
.nav a { font-family: var(--font-corps); }
.nav a[aria-current="page"], .nav a[aria-current="page"]:hover { border-bottom-color: var(--gold); }
/* Trait dore constant ; lettres dorees au survol. */
.content a:not(.button), .sidebar a:not(.button) { text-decoration-color: var(--gold); }
.content a:not(.button):hover, .sidebar a:not(.button):hover { color: var(--gold); text-decoration-color: var(--gold); }
.footer-logo { font-size: 1.8rem; font-weight: 600; }
@media (max-width: 540px) {
  .brand img { width: 205px; }
  h1 { font-size: 2.25rem; }
}

/* CHARTE COHERENCE - compléments communs */
body { font-family: var(--font-corps); }
h1,h2,h3,.side-quote,.footer-logo { font-family: var(--font-titre); font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem,4vw,3.35rem); }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
.brand { display:flex; align-items:center; font-family:var(--font-titre); font-size:2rem; font-weight:600; letter-spacing:0; text-transform:none; }
.brand img { max-height:62px; width:auto; max-width:230px; }
.coherence-name { font-family:var(--font-titre); font-weight:600; text-transform:none; letter-spacing:0; }
.coherence-name.gold { color:var(--gold); }
.overline,.side-label { font-size:1rem; text-transform:none; letter-spacing:0; font-weight:600; }
.site-tagline { font-family:var(--font-titre); font-size:1.5rem; font-style:italic; color:var(--ink); margin:0 0 12px; }
.site-footer { background:var(--green-dark); }
.footer-logo { font-size:1.8rem; }
.side-section,.block,.resource { border-color:var(--green-dark); }
.side-section { border-bottom-width:1px; }
.member-list { display:grid; gap:25px; }
.member-card { display:grid; grid-template-columns:148px minmax(0,1fr); gap:24px; padding:22px 0; border-top:1px solid var(--green-dark); }
.member-photo { display:flex; align-items:center; justify-content:center; width:148px; aspect-ratio:4/5; background:var(--soft); border:1px solid var(--line); color:var(--muted); font-size:.85rem; text-align:center; }
.member-photo img { width:100%; height:100%; object-fit:cover; }
.member-card h2 { margin:0 0 6px; }
.member-card p { margin:0 0 9px; }
.member-meta { color:var(--muted); font-size:.9rem; }
.topic { border-top:1px solid var(--green-dark); padding:25px 0; scroll-margin-top:30px; }
.topic h2 { margin-bottom:10px; }
.topic p { max-width:68ch; }
.topic-links { margin:15px 0 20px; padding-left:20px; }
.contact-panel { border-left:3px solid var(--gold); padding:18px 22px; background:var(--soft); margin:25px 0; }
.contact-panel p:last-child { margin-bottom:0; }
.note-editor { border:1px dashed var(--line); background:var(--soft); padding:12px 16px; }
@media(max-width:540px) { .member-card { grid-template-columns:100px minmax(0,1fr); gap:15px; } .member-photo { width:100px; } .brand img { max-width:190px; } }
