/* ============================================================
   Forum Trait de Côte — site web (direction « institution affirmée »)
   Palette : bleu pétrole #00426C + accent ambre #F4A52C
   Typo : Public Sans (titres 800–900) + IBM Plex Mono (eyebrows/labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ===== Typographies officielles de l'État (DSFR) : Marianne + Spectral, auto-hébergées ===== */
@font-face { font-family:'Marianne'; src:url('assets/fonts/Marianne-Light.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Marianne'; src:url('assets/fonts/Marianne-Light_Italic.woff2') format('woff2'); font-weight:300; font-style:italic; font-display:swap; }
@font-face { font-family:'Marianne'; src:url('assets/fonts/Marianne-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Marianne'; src:url('assets/fonts/Marianne-Regular_Italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Marianne'; src:url('assets/fonts/Marianne-Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Marianne'; src:url('assets/fonts/Marianne-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Marianne'; src:url('assets/fonts/Marianne-Bold_Italic.woff2') format('woff2'); font-weight:700; font-style:italic; font-display:swap; }
@font-face { font-family:'Spectral'; src:url('assets/fonts/Spectral-Italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }

/* V4 : bascule sur la typographie de l'État (Marianne partout).
   Substitution officielle : Arial pour Marianne. */
.dsfr-fonts {
  --font-sans: 'Marianne', Arial, sans-serif;
  --font-mono: 'Marianne', Arial, sans-serif;

  /* PALETTE FIGÉE — 100% tokens DSFR (système de design de l'État), thème clair, sans opacité.
     Bleu : illustrative « Écume » — blue-ecume-sun-247 #2F4077 (foncé) + blue-ecume-main-400 #465F9D (surfaces sur bleu).
     Accent : ORANGE D'ORIGINE DU PROJET (ambre) #F4A52C (+ survol #FFB53E, clair #FBE7C2) — hors palette DSFR stricte, choix user (à réévaluer).
     Neutres : grey-975 #F6F6F6 (fond), grey-900 #DDDDDD (bordure), grey-50 #161616 (noir titre/institutionnel),
               grey-200 #3A3A3A (texte), grey-425 #666666 (secondaire). */
  --ink:        #2F4077;
  --ink-700:    #465F9D;
  --ink-600:    #465F9D;
  --amber:      #F4A52C;
  --amber-700:  #A96809;
  --amber-soft: #FBE7C2;
  --gray-50:    #F6F6F6;
  --gray-100:   #F6F6F6;
  --gray-200:   #DDDDDD;
  --gray-300:   #DDDDDD;
  --text-body:  #3A3A3A;
  --text-muted: #666666;
  --text-subtle:#666666;
  --on-ink:     #FFFFFF;
  --on-ink-mut: #DDDDDD;
  --border:     #DDDDDD;
}
.dsfr-fonts .btn-primary:hover { background: #FFB53E; }
.dsfr-fonts .hero-sub { color: #FFFFFF; }
/* Cartes Ressources : voile blanc translucide léger (verre dépoli) ; icônes blanches */
.dsfr-fonts .res-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.dsfr-fonts .res-card .ic { background: rgba(255,255,255,.12); }
.dsfr-fonts .res-card .ic svg { stroke: #FFFFFF; }
.dsfr-fonts .res-card .badge { border-color: #F4A52C; }
/* Footer V4 : bande blanche pleine largeur en bas (logos partenaires + URL) */
.dsfr-fonts .footer { padding-bottom: 0; }
.dsfr-fonts .footer-top { border-bottom: none; padding-bottom: 0; }
.dsfr-fonts .footer-white { background: #FFFFFF; margin-top: 30px; }
.dsfr-fonts .footer-white-inner { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.dsfr-fonts .footer-white .partners-logos { display: flex; align-items: center; flex-wrap: nowrap; gap: 30px; margin: 0; min-width: 0; }
.dsfr-fonts .footer-white .plogo { background: transparent; padding: 0; height: auto; flex: 0 1 auto; min-width: 0; display: block; }
.dsfr-fonts .footer-white .plogo img { max-height: 42px; max-width: 100%; width: auto; height: auto; display: block; }
.dsfr-fonts .footer-white .dom { color: var(--ink); font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.dsfr-fonts .footer-white .dom:hover { color: var(--amber-700); text-decoration: underline; }

:root {
  --ink:        #00426C;   /* bleu pétrole (fonds sombres, titres, libellés, liens) */
  --ink-700:    #0C5183;   /* surface surélevée sur bleu (cartes) */
  --ink-600:    #2A6A95;   /* filets sur bleu */
  --amber:      #F4A52C;   /* accent unique (terre) — vif, partout */
  --amber-700:  #F4A52C;   /* alias volontaire vers l'ambre vif */
  --amber-soft: #FBE7C2;
  --white:      #FFFFFF;
  --gray-50:    #EDF0F2;   /* gris clair — surfaces / fonds de section */
  --gray-100:   #EDF0F2;   /* gris clair — encadrés / placeholders */
  --gray-200:   #E0E4E8;   /* gris clair — filets / quadrillage */
  --gray-300:   #E0E4E8;   /* gris clair — bordures marquées */
  --text-body:  #20272C;   /* noir doux (texte courant) */
  --text-muted: #5F6B72;   /* gris moyen (texte secondaire) */
  --text-subtle:#8A949B;   /* gris clair (labels, légendes) */
  --on-ink:     #EDF0F2;   /* texte clair sur fond bleu */
  --on-ink-mut: #9FB0B9;   /* texte atténué sur fond bleu */
  --border:     #E0E4E8;   /* filet par défaut */

  --maxw: 1200px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(0,66,108,.06), 0 1px 1px rgba(0,66,108,.04);
  --shadow-md: 0 6px 24px rgba(0,66,108,.10);
  --font-sans: 'Public Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---- Lien d'évitement (accès rapide au contenu, RGAA 12.6/12.7) ---- */
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 12px 20px;
  border-radius: var(--radius); font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Eyebrow (capitales espacées + trait ambre) ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber-700);
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber-700); display: block; }
.on-ink .eyebrow { color: var(--amber); }

/* ---- Section heads ---- */
.section { padding: 96px 0; }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-gray { background: var(--gray-50); }
.h2 {
  font-weight: 900; font-size: clamp(32px, 4vw, 48px); line-height: 1.02;
  letter-spacing: -.03em; color: var(--ink); margin: 0 0 18px; text-wrap: balance;
}
.on-ink .h2 { color: var(--white); }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-muted); max-width: 640px; margin: 0; }
.on-ink .lead { color: var(--on-ink-mut); }
.accent { color: var(--amber); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffb53e; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.on-ink .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); }
.on-ink .btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-ghost { padding: 0; font-weight: 700; color: var(--ink); gap: 7px; }
.btn-ghost svg { transition: transform .15s ease; }
.btn-ghost:hover svg { transform: translateX(4px); }
.on-ink .btn-ghost { color: var(--amber); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; line-height: 1; }
/* --- V3 : entête une ligne + barre sticky compacte au défilement --- */
.nav-v3 { z-index: 200; }
.nav-brand-row { display: flex; align-items: center; gap: 20px; min-height: 92px; padding-top: 14px; padding-bottom: 14px; }
.nav-brand-row .brand-logo { height: 46px; width: auto; flex: none; }
.nav-brand-row .nav-cta { margin-left: auto; }
/* bloc titre-date-lieu agrandi à la hauteur du logo */
.nav-v3 .brand-l1 { font-size: 25px; }
.nav-v3 .brand-l2 { font-size: 12px; letter-spacing: .13em; margin-top: 7px; }
/* essai : ligne date-lieu placée au-dessus du titre */
.brand-datetop { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.brand-datetop .brand-l2 { margin-top: 0; }

.subnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%); transition: transform .25s ease;
}
.subnav.is-visible { transform: translateY(0); }
.subnav-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 8px 0; }
.subnav .brand-logo { height: 34px; width: auto; flex: none; }
.subnav .brand-l1 { font-size: 17px; }
.subnav .brand-l2 { font-size: 10px; margin-top: 4px; }
.subnav .nav-menu { margin-left: auto; gap: 28px; }
.subnav-cta { padding: 9px 18px; flex: none; }
@media (max-width: 720px) { .subnav { display: none; } }
.brand-l1 { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.brand-l1 .accent { color: var(--amber-700); }
.brand-l2 {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle);
  margin-top: 5px; display: flex; gap: 8px;
}
.brand-l2 .accent { color: var(--amber-700); }
.brand-l2 .dot { color: var(--gray-300); }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-weight: 600; font-size: 15px; color: var(--ink-700); transition: color .15s; }
.nav-menu a:hover { color: var(--amber-700); }
.nav-cta-mobile-item { display: none; }
.nav .btn { padding: 11px 20px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; margin: 0; flex: none;
  background: transparent; border: none; border-radius: var(--radius); cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle:focus-visible { outline: 2px solid var(--amber-700); outline-offset: 2px; }

/* ============================================================
   HÉRO
   ============================================================ */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; background: url('assets/littoral.jpg') 50% 30% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,66,108,.35) 0%, rgba(0,66,108,.25) 30%, rgba(0,66,108,.7) 78%, rgba(0,66,108,.95) 100%); }
.hero-inner { position: relative; padding: 92px 0 64px; max-width: 760px; }
.hero h1 {
  font-weight: 900; font-size: clamp(40px, 6vw, 76px); line-height: .94;
  letter-spacing: -.035em; margin: 0; color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-sub { font-size: clamp(20px, 2.4vw, 27px); font-weight: 500; margin: 18px 0 0; color: #eef2f4; }
.hero-sub .accent { color: var(--amber); font-weight: 800; }
.hero-pitch { font-size: 18px; line-height: 1.5; color: #dbe3e6; max-width: 600px; margin: 18px 0 0; }

.hero-info { display: flex; gap: 16px; margin: 36px 0 0; flex-wrap: wrap; }
.info-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); padding: 16px 22px; backdrop-filter: blur(4px);
}
.info-card svg { width: 26px; height: 26px; stroke: var(--amber); flex: none; }
.info-card .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-mut); }
.info-card .v { font-weight: 800; font-size: 17px; color: var(--white); margin-top: 3px; }
.info-card-link { text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.info-card-link:hover { background: rgba(255,255,255,.14); border-color: var(--amber); transform: translateY(-2px); }

.hero-cta { display: flex; align-items: center; gap: 14px; margin: 36px 0 0; flex-wrap: wrap; }
.hero-note {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--on-ink-mut); margin: 18px 0 0; display: flex; align-items: center; gap: 9px;
}
.hero-note .pin { width: 7px; height: 7px; background: var(--amber); border-radius: 50%; flex: none; }

/* ============================================================
   FORUM EN BREF — enjeux + stats
   ============================================================ */
.brief-head { max-width: 900px; margin-bottom: 56px; }
.brief-head .brief-lead-row { display: flex; align-items: flex-start; gap: 24px; }
.brief-head .brief-lead-row .brief-logo { flex: 0 0 auto; height: 72px; width: auto; }
.brief-head .brief-lead-row .lead { margin: 0; }
@media (max-width: 600px) { .brief-head .brief-lead-row { flex-direction: column; gap: 16px; } }
.brief-partners-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 56px 0 20px; }
.brief-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 48px; }
.brief-partners .plogo { background: var(--white); border-radius: 6px; padding: 12px 18px; height: 56px; display: grid; place-items: center; box-sizing: border-box; }
.brief-partners .plogo img { max-height: 32px; max-width: 150px; width: auto; display: block; }
.brief-head .punch { font-weight: 900; font-size: clamp(26px,3vw,36px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
.brief-head .punch .accent { color: var(--amber-700); }

.enjeux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.enjeu { border-top: 2px solid var(--ink); padding-top: 20px; }
.enjeu .n { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--amber-700); letter-spacing: .1em; }
.enjeu h3 { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin: 10px 0 8px; }
.enjeu p { font-size: 15.5px; line-height: 1.5; color: var(--text-muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; border-top: 1px solid var(--border); padding-top: 48px; }
.stat .num { font-weight: 900; font-size: clamp(40px,5vw,56px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.stat .num .u { color: var(--amber-700); }
.stat .lab { font-size: 16px; color: var(--text-muted); margin-top: 10px; max-width: 260px; }
.stat .cap { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); margin-top: 6px; }

/* ============================================================
   PROGRAMME — timeline
   ============================================================ */
.prog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.timeline { display: flex; flex-direction: column; }
.slot {
  display: grid; grid-template-columns: 110px 150px 1fr; gap: 28px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--border);
}
.slot:last-child { border-bottom: 1px solid var(--border); }
.slot .time { font-family: var(--font-mono); font-weight: 600; font-size: 18px; color: var(--ink); }
.slot .kind {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-subtle);
}
.slot .titlecol h3 { font-weight: 700; font-size: 19px; color: var(--ink); margin: 0 0 4px; letter-spacing: -.01em; }
.slot .titlecol p { font-size: 15px; color: var(--text-muted); margin: 0; }
/* tag enjeu — étiquette mono, marqueur ambre (signal unique) */
.tag {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-700); background: var(--gray-100); border-radius: 999px; padding: 5px 12px;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.slot.is-pause .time, .slot.is-pause .titlecol h3 { color: var(--text-subtle); font-weight: 600; }

/* ============================================================
   INTERVENANTS
   ============================================================ */
.speakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.speaker .ph {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); background: var(--gray-100);
  border: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: center;
  position: relative; overflow: hidden;
}
.speaker .ph .ini { font-weight: 900; font-size: 44px; color: var(--gray-300); position: absolute; inset: 0; display: grid; place-items: center; letter-spacing: -.03em; }
.speaker .ph .marker { position: absolute; left: 14px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.speaker h3 { font-weight: 800; font-size: 17px; color: var(--ink); margin: 16px 0 2px; }
.speaker .role { font-size: 14.5px; color: var(--text-muted); }
.speaker .org { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); margin-top: 3px; }

/* ============================================================
   RESSOURCES (sur encre)
   ============================================================ */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.res-card {
  background: var(--ink-700); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: 28px 24px; display: flex; flex-direction: column; min-height: 210px;
}
.res-card .ic { width: 40px; height: 40px; border-radius: 9px; background: rgba(244,165,44,.14); display: grid; place-items: center; margin-bottom: 18px; }
.res-card .ic svg { width: 22px; height: 22px; stroke: var(--amber); }
.res-card h3 { font-weight: 800; font-size: 18px; color: var(--white); margin: 0 0 8px; }
.res-card p { font-size: 14.5px; color: var(--on-ink-mut); margin: 0 0 18px; line-height: 1.45; }
.res-card .badge {
  margin-top: auto; align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--amber); border: 1px solid rgba(244,165,44,.4); border-radius: 999px; padding: 5px 10px;
}

/* ============================================================
   INFOS PRATIQUES
   ============================================================ */
.infos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: stretch; }
.map-ph {
  border-radius: var(--radius-lg); background: var(--gray-100); border: 1px solid var(--border);
  min-height: 360px; display: grid; place-items: center; color: var(--text-subtle);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 40px 40px;
}
.infos-list { display: flex; flex-direction: column; gap: 4px; }
.infos-row { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); }
.infos-row:last-child { border-bottom: 1px solid var(--border); }
.infos-row svg { width: 24px; height: 24px; stroke: var(--amber); flex: none; margin-top: 2px; }
.infos-row .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.infos-row .v { font-weight: 600; color: var(--ink); margin-top: 4px; }
.infos-row .v span { display: block; font-weight: 400; color: var(--text-muted); font-size: 15px; }

/* ============================================================
   BANDEAU INSCRIPTION
   ============================================================ */
.cta-band { background: var(--amber); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap; }
.cta-band h2 { font-weight: 900; font-size: clamp(28px,3.4vw,42px); letter-spacing: -.03em; color: var(--ink); margin: 0; max-width: 640px; text-wrap: balance; }
.cta-band .btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cta-band .btn-dark:hover { background: var(--ink-700); transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--on-ink-mut); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr auto auto; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand-l1 { color: var(--white); }
.footer .brand-l1 .accent { color: var(--amber); }
.footer .brand-l2 .accent { color: var(--amber); }
.footer .brand-l2 { color: var(--on-ink-mut); }
.footer .brand-l2 .dot { color: var(--ink-600); }
.footer .intro { font-size: 15px; line-height: 1.55; max-width: 360px; margin: 20px 0 24px; }
.footer .logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer .logos .slot {
  height: 46px; min-width: 88px; padding: 0 14px; display: grid; place-items: center; border: 0;
  background: var(--white); border-radius: 6px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); text-align: center; grid-template-columns: none;
}
.footer .logos img { max-height: 30px; width: auto; }
.footer-partners { padding: 36px 0 4px; }
.footer-partners .partners-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 20px; }
.footer-partners .partners-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-partners .plogo { background: var(--white); border-radius: 6px; padding: 12px 18px; height: 56px; display: grid; place-items: center; box-sizing: border-box; }
.footer-partners .plogo img { max-height: 32px; max-width: 150px; width: auto; display: block; }
.footer col-title, .footer .col h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin: 0 0 16px; font-weight: 600; }
.footer .col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer .col a { font-size: 15px; color: var(--on-ink-mut); transition: color .15s; }
.footer .col a:hover { color: var(--amber); }
.footer-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 28px; flex-wrap: wrap; }
.footer-bottom .dom { font-family: var(--font-mono); font-weight: 600; color: var(--white); letter-spacing: .02em; text-decoration: none; }
.footer-bottom .dom:hover { color: var(--amber); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .enjeux, .speakers, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .infos { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .col-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  /* Garde-fou anti-débordement horizontal. 'clip' (et non 'hidden') pour ne pas
     créer de conteneur de défilement qui casserait le header collant (sticky). */
  html, body { overflow-x: clip; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-service-row { flex-wrap: wrap; }
  /* Sur mobile, le bouton Préinscription cède sa place au bouton menu ;
     l'inscription reste accessible, mise en avant, dans le menu déplié. */
  .subnav-cta { display: none; }
  /* Menu déplié : liste compacte à filets fins, animation d'ouverture
     (hauteur + fondu) pour qu'on sente le déploiement. Préinscription
     ressort en bouton plein — c'est l'action prioritaire du menu. */
  .nav-menu {
    flex-basis: 100%; order: 3; flex-direction: column; gap: 0;
    max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
    transition: max-height .3s ease, opacity .2s ease, margin-top .3s ease;
  }
  .nav-menu.is-open { max-height: 70vh; opacity: 1; margin-top: 14px; }
  .nav-menu li { border-top: 1px solid var(--border); }
  .nav-menu li:first-child { border-top-color: var(--ink); }
  .nav-menu a {
    display: block; padding: 9px 2px; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--ink);
  }
  .nav-cta-mobile-item { display: block; border-top: none; margin-top: 10px; padding-bottom: 4px; }
  .nav-menu .nav-cta-mobile {
    display: block; text-align: center; padding: 13px 16px;
    background: var(--amber); color: var(--ink) !important;
    font-weight: 800 !important; border-radius: var(--radius);
  }
  .nav-toggle { display: inline-flex; }
  /* V4 mobile : header COLLANT (suit le défilement, comme sur desktop).
     Bloc-marque + intitulé DIRM RESTENT côte à côte (comme l'invitation) :
     filet vertical conservé, centrage vertical, et rétrécissement proportionnel
     (logo + texte) pour garder le ratio. */
  .nav-v3 { position: sticky; top: 0; }
  .nav-v3 .nav-brand-row { flex-direction: row; align-items: center; gap: clamp(6px, 3vw, 14px); padding-top: 8px; padding-bottom: 8px; }
  .nav-v3 .nav-sep { display: block; align-self: stretch; flex: none; }
  .nav-v3 .fr-header__logo { min-width: 0; flex: 0 1 auto; }
  .nav-v3 .nav-brand-row .fr-logo { font-size: clamp(8px, 2.6vw, 13px); }
  /* min-width:0 + coupure : l'intitulé peut rétrécir/s'enrouler sur navigateur très étroit (pas de débordement) */
  .nav-v3 .nav-operator { align-self: center; white-space: normal; overflow-wrap: break-word; min-width: 0; flex: 1 1 0; font-size: clamp(8px, 2.4vw, 13px); line-height: 1.25; }
  /* Logos partenaires : rétrécis, mais toujours sur une seule ligne */
  .dsfr-fonts .footer-white .partners-logos { gap: 14px; width: 100%; }
  .dsfr-fonts .footer-white .plogo img { max-height: 34px; }
  .enjeux, .speakers, .res-grid { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 88px 1fr; }
  .slot .kind { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   HEADER : rétrécissement fluide (pas de retour à la ligne)
   - items de menu jamais coupés
   - jusqu'à ~1240px, logo d'État + barre déployée au défilement (titre, menu,
     bouton) se réduisent pour tenir sur UNE ligne (le plein format ne rentre
     qu'au-delà). Le titre scale en douceur (clamp) et ne se coupe jamais.
   ============================================================ */
.nav-menu a { white-space: nowrap; }
.nav-v3 .brand-l1 { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1240px) {
  /* Logo de l'État + intitulé DIRM : réduits pour rester sur une ligne */
  .nav-brand-row .fr-logo { font-size: 12px; }
  .nav-v3.is-scrolled .nav-brand-row .fr-logo { font-size: 8px; }
  .nav-operator { font-size: clamp(11px, 1.05vw, 13px); }
  /* Barre déployée au défilement : titre + menu + bouton rétrécis */
  .nav-service-row { gap: 14px; }
  .nav-service-row .nav-menu { gap: clamp(14px, 1.6vw, 24px); }
  .nav-menu a { font-size: clamp(13px, 1.15vw, 15px); }
  .nav-v3 .brand-l1 { font-size: clamp(18px, 1.8vw, 25px); }
  .nav-v3 .brand-l2 { font-size: 10px; letter-spacing: .10em; }
  .nav .btn { padding: 10px clamp(13px, 1.3vw, 20px); font-size: clamp(14px, 1.1vw, 15px); }
}
/* Barre au défilement trop étroite pour le menu complet (721–980px) :
   on garde le titre + le bouton Préinscription (le menu resterait coupé sinon,
   comme le site masque déjà le menu sous 720px). */
@media (min-width: 721px) and (max-width: 980px) {
  .nav-v3.is-scrolled .nav-service-row .nav-menu { display: none; }
}

/* ============================================================
   PAGES INTERNES — état actif nav
   ============================================================ */
.nav-menu a.is-active { color: var(--amber-700); }
.nav-menu a.is-active::after { content: ""; display: block; height: 2px; background: var(--amber-700); margin-top: 5px; }

/* ---- En-tête de page (titre de page interne) ---- */
.page-head { padding: 76px 0 56px; border-bottom: 1px solid var(--border); }
.page-head h1 {
  font-weight: 900; font-size: clamp(36px, 5vw, 60px); line-height: 1.0;
  letter-spacing: -.03em; color: var(--ink); margin: 0 0 18px; text-wrap: balance;
}
.page-head .lead { font-size: 20px; }
.page-head .meta-row {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px;
}
.page-head .meta-row .chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em;
  color: var(--text-muted); background: var(--gray-50); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px;
}
.page-head .meta-row .chip svg { width: 16px; height: 16px; stroke: var(--amber); flex: none; }

/* ---- En-tête de section générique (sans bloc lead large) ---- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }

/* ============================================================
   CARTES GÉNÉRIQUES (ateliers, blocs info)
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px;
  background: var(--white); display: flex; flex-direction: column;
}
.card .n { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--amber-700); letter-spacing: .1em; }
.card h3 { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); margin: 10px 0 8px; }
.card p { font-size: 15.5px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.card .ic { width: 40px; height: 40px; border-radius: 9px; background: rgba(244,165,44,.14); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--amber); }

/* ---- Détail intervenant·e dans la timeline ---- */
.slot .titlecol .who {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--amber-700);
  margin-top: 8px; display: block;
}

/* ============================================================
   FORMULAIRE — inscription
   ============================================================ */
.form-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.field label .req { color: var(--amber-700); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--text-body);
  background: var(--white); border: 1.5px solid var(--gray-300); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-700); box-shadow: 0 0 0 3px rgba(169,104,9,.3);
}
.field .err { font-size: 13px; color: #b3261e; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: #b3261e; }
.field.invalid .err { display: block; }

/* Choix déjeuner (radios stylés en pills) */
.choice { display: flex; gap: 12px; flex-wrap: wrap; }
.choice label {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius); padding: 12px 18px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink);
  text-transform: none; letter-spacing: 0; margin: 0; transition: border-color .15s, background .15s;
}
.choice input { accent-color: var(--amber); width: 18px; height: 18px; }
.choice label:hover { border-color: var(--ink); }

/* Consentement RGPD */
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.consent input { margin-top: 4px; accent-color: var(--amber); width: 18px; height: 18px; flex: none; }
.consent label { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.5; color: var(--text-muted); text-transform: none; letter-spacing: 0; margin: 0; }
.consent a { color: var(--ink); text-decoration: underline; }
.consent-more { margin: 6px 0 0 30px; font-size: 14.5px; }
.consent-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent-more a:hover { color: var(--amber-700); }

.form .btn-primary { margin-top: 28px; width: 100%; justify-content: center; }
.form-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-subtle); margin: 16px 0 0; text-align: center; }

/* Récapitulatif latéral */
.form-aside { position: sticky; top: 100px; }
.form-aside .recap { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: 32px; }
.form-aside .recap h2 { color: var(--white); font-weight: 800; font-size: 20px; margin: 0 0 18px; letter-spacing: -.02em; }
.form-aside .recap .row { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.form-aside .recap .row:first-of-type { border-top: 0; }
.form-aside .recap svg { width: 22px; height: 22px; stroke: var(--amber); flex: none; margin-top: 1px; }
.form-aside .recap .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-mut); }
.form-aside .recap .v { font-weight: 700; color: var(--white); margin-top: 2px; }

/* État de succès */
.form-success {
  display: none; background: var(--amber-soft); border: 1px solid var(--amber);
  border-radius: var(--radius-lg); padding: 36px; text-align: center;
}
.form-success.show { display: block; }
.form-success.show ~ .form { display: none; }
.form-success svg { width: 48px; height: 48px; stroke: var(--amber); margin: 0 auto 16px; }
.form-success h2 { font-weight: 900; font-size: 26px; color: var(--ink); margin: 0 0 10px; letter-spacing: -.02em; }
.form-success p { color: var(--text-body); margin: 0 auto; max-width: 460px; }

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .form-aside { position: static; }
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AJUSTEMENTS CONTENU (bouton héro, intro, encarts, carte)
   ============================================================ */
/* Bouton contour lisible sur le héro sombre */
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.6); }
.hero .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* Paragraphes d'introduction sous l'accroche (plus larges pour mieux respirer) */
.brief-head .brief-p { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 860px; margin: 16px 0 0; }
.brief-head .lead { max-width: 860px; }
/* Mises en avant (identiques au save-the-date) */
.brief-head .lead strong,
.brief-head .brief-p strong { color: var(--ink); font-weight: 700; }
/* Paragraphe valorisé « Pensé comme… » : filet ambre + texte bleu semi-gras */
.brief-head .brief-quote { border-left: 3px solid var(--amber); padding-left: 18px; color: var(--ink); font-weight: 600; }

/* Encart "en préparation" (programme / intervenants à venir) */
.notice { border: 1px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; background: var(--white); color: var(--text-muted); }
.notice strong { display: block; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.notice p { margin: 0 auto; max-width: 520px; }
.section-gray .notice { background: var(--white); }

/* Badge sur carte claire */
.card .badge { margin-top: 16px; align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-700); border: 1px solid rgba(244,165,44,.55); border-radius: 999px; padding: 5px 10px; }

/* Carte Google Maps intégrée */
.map-embed { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius-lg); display: block; }

/* Liste infos : plusieurs sous-lignes */
.infos-row .v span + span { margin-top: 2px; }

/* Ancres internes : décalage sous la barre de navigation collante */
section[id], span[id].anchor { scroll-margin-top: 92px; }
span.anchor { display: block; }

/* Piège anti-robot (honeypot) : invisible pour les humains */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Message d'erreur du formulaire */
.form-error {
  display: none; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius);
  background: #fbeae8; border: 1px solid #e6b3ac; color: #b3261e; font-size: 14.5px; line-height: 1.45;
}

/* ============================================================
   Bloc-marque officiel de l'Etat (composant DSFR .fr-logo),
   reproduit en autonome : drapeau tricolore + Marianne en CSS.
   ============================================================ */
.fr-logo {
  display: inline-block; margin: 0; color: #161616;
  font-family: 'Marianne', arial, sans-serif; font-weight: 700;
  font-size: 14px; line-height: 1.0317460317em; letter-spacing: -.01em;
  text-transform: uppercase; text-indent: -.1em; vertical-align: middle;
}
.fr-logo::before {
  content: ""; display: block; forced-color-adjust: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpath fill='%23fff' d='M11.3 10.2c-.9.6-1.7 1.3-2.3 2.1v-.1c.4-.5.7-1 1-1.5.4-.2.7-.5 1-.8.5-.5 1-1 1.7-1.3.3-.1.5-.1.8 0-.1.1-.2.1-.4.2H13v-.1c-.3.3-.7.5-1 .9-.1.2-.2.6-.7.6 0 .1.1 0 0 0zm1.6 4.6c0-.1-.1 0-.2 0l-.1.1-.1.1-.2.2s.1.1.2 0l.1-.1c.1 0 .2-.1.2-.2.1 0 .1 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ient(90deg,#000091,#000091 50%,#e1000f 0,#e1000f);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 -.0595em, 0 0;
  background-size: 2.619em 1.0714em, 2.619em .9524em;
  width: 2.619em; height: .9524em; margin-bottom: .3175em;
}
/* Devise officielle (Liberté Égalité Fraternité) — vecteur DSFR, comme les sites de l'État */
.fr-logo::after {
  content: ""; display: block; background-repeat: no-repeat; forced-color-adjust: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 252 180' fill='%23161616'%3E%3Cdefs%3E%3Csymbol id='a' viewBox='0 0 11 15.5'%3E%3Cpath d='M10.4 5.3C11.9 1.5 10.1 0 7.9 0 4.2 0 0 6.5 0 11.7c0 2.5 1.2 3.8 3 3.8 2.1 0 4.3-2 6.2-5.5h-1c-1.2 1.5-2.6 2.6-3.9 2.6-1.3 0-2-.8-2-2.6a10.7 10.7 0 01.3-2.2zm-4-3.1c1.1 0 2 .8 1.5 2.6L3.1 6.1c.8-2.2 2.2-4 3.4-4z'/%3E%3C/symbol%3E%3Csymbol id='b' viewBox='0 0 12.4 21.8'%3E%3Cuse width='11' height='15.5' y='6.4' href='%23a'/%3E%3Cpath d='M7.9 4.7L12.4.6V0h-3L6.7 4.7H8z'/%3E%3C/symbol%3E%3Csymbol id='c' viewBox='0 0 11.5 19'%3E%3Cpath d='M1.7 5.7h2.6L.1 17.1a1.3 1.3 0 001.2 2c3 0 6.4-2.6 7.8-6.2h-.7a9.4 9.4 0 01-5.1 3.5L7 5.7H11l.5-1.6H7.7L9 0H7.6L4.9 4.1l-3.2.4v1.2z'/%3E%3C/symbol%3E%3Csymbol id='d' viewBox='0 0 9.8 21.9'%3E%3Cpath d='M7.6 8c.3-1-.4-1.6-1-1.6-2.2 0-5 2.1-6 5h.7A5.6 5.6 0 014.4 9L.1 20.3a1.1 1.1 0 001 1.6c2.2 0 4.7-2 5.8-5H6A5.6 5.6 0 013 19.5zM8 3.7a1.8 1.8 0 001.8-1.8A1.8 1.8 0 008 0a1.8 1.8 0 00-1.8 1.8A1.8 1.8 0 008 3.6'/%3E%3C/symbol%3E%3Csymbol id='e' viewBox='0 0 14.8 15.5'%3E%3Cpath d='M3.3 3.1c.7 0 1 1 0 3.4l-3 6.8c-.7 1.3 0 2.2 1.2 2.2a1.3 1.3 0 001.5-1l3-8C7.4 4.8 10 3 11 3s.8.6.3 1.6l-4.6 9a1.3 1.3 0 001.1 1.9c2.3 0 5-2 6-5h-.6A5.6 5.6 0 0110 13l4-8a6.1 6.1 0 00.8-2.8A2 2 0 0012.6 0c-2 0-3.6 2.2-6 5V2.8C6.6 1.4 6.1 0 4.8 0 3.2 0 1.8 2.5.7 4.9h.7c.7-1.1 1.3-1.8 2-1.8'/%3E%3C/symbol%3E%3Csymbol id='f' viewBox='0 0 12 15.5'%3E%3Cpath d='M11.8 3.5c.5-1.9.2-3.5-1.2-3.5-1.8 0-2.3 1.2-4 5V2.8C6.5 1.3 6 0 4.6 0 3.1 0 1.7 2.5.5 5h.8C2 3.7 2.8 3 3.3 3c.7 0 1 1 0 3.4l-3 6.8c-.7 1.3 0 2.1 1.2 2.1a1.3 1.3 0 001.5-1l3-8a50.3 50.3 0 012.6-3h3.2z'/%3E%3C/symbol%3E%3Csymbol id='g' viewBox='0 0 14.7 16.2'%3E%3Cpath d='M10.5 13.1c-.6 0-1-1 0-3.4L14.6.1 13.4 0l-1.3 1.3h-.3C6.1 1.3 0 8.6 0 14.2a2 2 0 002.1 2.1c1.7 0 3.3-2.4 5.2-5l-.1 1c-.3 2.6.6 4 2 4 1.5 0 3-2.4 4-4.9h-.7c-.7 1.1-1.5 1.8-2 1.8zM7.9 9.8c-1.3 1.6-3.4 3.5-4.3 3.5-.5 0-.9-.5-.9-1.6 0-3.5 4-8.2 6-8.2a4.2 4.2 0 011.4.2z'/%3E%3C/symbol%3E%3Csymbol id='h' viewBox='0 0 21.9 19.8'%3E%3Cpath d='M11.2 19.8l.3-.9c-3.8-.7-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3 .7 3 3.5h1l.9-4.7H7.3l-.3.9c3 .6 3.3.9 2 4.8l-3.2 8.4c-1.5 3.9-2 4.2-5.6 4.8l-.2 1h17.4l3.2-5h-1.2c-2 2-4 3.8-8 3.8-4.7 0-4.3-.3-2.7-4.6l1.4-3.8h4.2zm2.3-11.8L21 .6V0h-3l-2.6 3.9h1.2v-.1z'/%3E%3C/symbol%3E%3Csymbol id='l' viewBox='0 0 13.6 21.8'%3E%3Cpath d='M11.4 6.4c-2 0-4 2.2-5.8 4.8L9.6.3 9.4 0l-5 .6V1l1 .8c.9.7.6 1.3-.2 3.4L.8 16.8A13.9 13.9 0 000 19c0 1.4 1.8 2.7 3.5 2.7 3.8 0 10-6.9 10-12.2 0-2.3-.5-3.2-2.1-3.2zM4.8 19.5c-.8 0-1.9-.7-1.9-1.3a15.5 15.5 0 01.8-2.2L5 12.7C6.3 11 8.4 9.3 9.6 9.3c.7 0 1.2.4 1.2 1.5 0 3.1-2.9 8.7-6 8.7z'/%3E%3C/symbol%3E%3Csymbol id='m' viewBox='0 0 19.2 19.9'%3E%3Cpath d='M17.6 0H7.3L7 .9c3 .6 3.3.9 2 4.8l-3.2 8.5c-1.5 3.9-2 4.2-5.5 4.8L0 20h15.7l3.5-6H18c-2 2-4.2 4.8-7.7 4.8-2.7 0-3-.5-1.6-4.5l3.1-8.5c1.4-3.9 2-4.2 5.5-4.8z'/%3E%3C/symbol%3E%3Csymbol id='n' viewBox='0 0 126 90'%3E%3Cuse width='12.4' height='21.8' x='112.7' y='66.1' href='%23b'/%3E%3Cuse width='11.5' height='19' x='102.2' y='69' href='%23c'/%3E%3Cuse width='9.8' height='21.9' x='93.6' y='66.1' href='%23d'/%3E%3Cuse width='14.8' height='15.5' x='77.2' y='72.5' href='%23e'/%3E%3Cuse width='12' height='15.5' x='65.7' y='72.5' href='%23f'/%3E%3Cuse width='11' height='15.5' x='54.3' y='72.5' href='%23a'/%3E%3Cuse width='11.5' height='19' x='43.7' y='69' href='%23c'/%3E%3Cuse width='14.7' height='16.2' x='28.9' y='71.8' href='%23g'/%3E%3Cuse width='12' height='15.5' x='19.6' y='72.5' href='%23f'/%3E%3Cuse width='21.9' height='19.8' y='67.6' href='%23h'/%3E%3Cuse width='12.4' height='21.8' x='77.3' y='33.1' href='%23b'/%3E%3Cuse width='11.5' height='19' x='66.8' y='36' href='%23c'/%3E%3Cuse width='9.8' height='21.9' x='58.2' y='33' href='%23d'/%3E%3Cuse width='10.1' height='21.9' x='49.4' y='33.1' href='%23i'/%3E%3Cuse width='14.7' height='16.2' x='34.9' y='38.8' href='%23g'/%3E%3Cuse width='18' height='22' x='18.6' y='39.4' href='%23j'/%3E%3Cuse width='23' height='25.1' y='29.3' href='%23k'/%3E%3Cuse width='12.4' height='21.8' x='76.8' y='.1' href='%23b'/%3E%3Cuse width='11.5' height='19' x='66.2' y='2.9' href='%23c'/%3E%3Cuse width='12' height='15.5' x='54.8' y='6.5' href='%23f'/%3E%3Cuse width='11' height='15.5' x='43.4' y='6.4' href='%23a'/%3E%3Cuse width='13.6' height='21.8' x='29.4' y='.1' href='%23l'/%3E%3Cuse width='9.8' height='21.9' x='20.6' href='%23d'/%3E%3Cuse width='19.2' height='19.9' y='1.4' href='%23m'/%3E%3C/symbol%3E%3C/defs%3E%3Cuse fill='%23000' width='126' height='90' x='0' y='0' href='%23n'/%3E%3Cuse fill='%23fff' width='126' height='90' x='126' y='90' href='%23n'/%3E%3C/svg%3E");
  background-position: 0 calc(100% + 1.7857em);
  background-size: 5em 3.5714em;
  min-width: 2.5em; padding-top: 2.1032em;
}

/* ---- Entête institutionnel V4 : bloc-marque | intitulé DIRM ---- */
.nav-brand-row { align-items: stretch; gap: 14px; min-height: 0; padding-top: 9px; padding-bottom: 9px; transition: padding .28s ease; }
.fr-header__logo { display: block; }
.nav-brand-row .fr-logo { font-size: 13px; transition: font-size .28s ease; }
.nav-sep {
  width: 1px; align-self: stretch; background: var(--border);
  flex: none;
}
.nav-operator {
  margin: 0; align-self: center; white-space: nowrap;
  font-family: 'Marianne', arial, sans-serif; font-weight: 600;
  font-size: 13px; line-height: 1.2; color: #161616;
}
/* Header fixe prolongé : le menu (titre du forum + liens + bouton) se déploie
   sous le bloc institutionnel au défilement, dans le MÊME header. */
.nav-service-row { display: none; align-items: center; gap: 24px; }
.nav-service-row .nav-menu { margin-left: auto; gap: 28px; }
.nav-v3.is-scrolled .nav-service-row {
  display: flex; padding-top: 9px; padding-bottom: 9px;
}
/* au défilement : bloc institutionnel légèrement réduit */
.nav-v3.is-scrolled .nav-brand-row { padding-top: 6px; padding-bottom: 6px; }
.nav-v3.is-scrolled .nav-brand-row .fr-logo { font-size: 9px; }

/* ------------------------------------------------------------
   MOBILE au défilement : comme sur desktop, le bloc ministère RESTE visible
   (juste un peu réduit) + barre compacte (intitulé + bouton Préinscription).
   Placé APRÈS les règles is-scrolled de base pour gagner la cascade.
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  /* Bloc ministère conservé au défilement, légèrement réduit */
  .nav-v3.is-scrolled .nav-brand-row { display: flex; padding-top: 5px; padding-bottom: 5px; }
  .nav-v3.is-scrolled .nav-brand-row .fr-logo { font-size: clamp(6px, 1.9vw, 9px); }
  .nav-v3.is-scrolled .nav-operator { font-size: clamp(7.5px, 2.2vw, 12px); }
  /* Barre compacte : intitulé du forum + bouton Préinscription */
  .nav-v3.is-scrolled .nav-service-row {
    display: flex; padding-top: 6px; padding-bottom: 8px; gap: 10px;
  }
  .nav-v3.is-scrolled .brand-datetop { min-width: 0; flex: 1 1 auto; }
  .nav-v3.is-scrolled .brand-l1 { font-size: clamp(14px, 3.4vw, 20px); white-space: normal; line-height: 1.05; }
  .nav-v3.is-scrolled .brand-l2 { font-size: clamp(8px, 1.8vw, 10px); }
  .nav-v3.is-scrolled .subnav-cta { flex: none; padding: 9px 14px; font-size: 13px; }
}

/* ============================================================
   PAGES LÉGALES (mentions, confidentialité, cookies, accessibilité)
   ============================================================ */
.legal { max-width: 760px; }
.legal h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 48px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--amber-700); }
.legal strong { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--gray-50); font-weight: 700; color: var(--ink); }
.legal .legal-note { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; font-size: 15px; color: var(--text-muted); margin: 0 0 16px; }
.legal .legal-updated { font-size: 14px; color: var(--text-subtle); margin-top: 40px; }
.legal .toc { list-style: none; margin: 0 0 32px; padding: 20px 24px; background: var(--gray-50); border-radius: var(--radius); }
.legal .toc li { margin-bottom: 4px; }
.legal mark.todo {
  background: var(--amber-soft); color: var(--ink); border: 1px solid var(--amber-700);
  border-radius: 4px; padding: 1px 6px; font-weight: 600; font-size: .95em;
}

/* ---- Footer : ligne de liens légaux (bande blanche, tout en bas de page) ---- */
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
}
.footer-legal a, .footer-legal button {
  font-family: var(--font-sans); font-size: 14px; color: var(--text-muted);
  background: none; border: none; padding: 0; margin: 0; cursor: pointer; font-weight: 500;
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--amber-700); text-decoration: underline; }
.dsfr-fonts .footer-white .footer-legal { margin-top: 20px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--border); }

/* ============================================================
   COOKIES — bannière et panneau maison (assets/cookie-consent.js)
   100% maison, sans dépendance tierce.
   ============================================================ */

.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--white); border-top: 1px solid var(--border); box-shadow: var(--shadow-md);
  padding: 18px 24px;
}
.cookie-bar-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
}
.cookie-bar p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-body); max-width: 620px; }
.cookie-bar a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar a:hover { color: var(--amber-700); }
.cookie-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.cookie-bar .btn { padding: 10px 18px; font-size: 14.5px; }

.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20,26,31,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cookie-bar[hidden], .cookie-modal-overlay[hidden] { display: none !important; }
.cookie-modal {
  position: relative; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  max-width: 540px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 32px; box-sizing: border-box;
}
.cookie-modal h2 { font-weight: 900; font-size: 23px; color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }
.cookie-modal .lead { font-size: 14.5px; line-height: 1.5; color: var(--text-muted); margin: 0 0 8px; }
.cookie-modal-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--border);
}
.cookie-modal-row h3 { font-weight: 800; font-size: 15.5px; color: var(--ink); margin: 0 0 4px; }
.cookie-modal-row p { font-size: 13.5px; line-height: 1.4; color: var(--text-muted); margin: 0; }
.cookie-modal-row .mandatory-badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-subtle); flex: none;
}
.cookie-modal-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.cookie-modal-policy-link {
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px;
}
.cookie-modal-policy-link:hover { color: var(--amber-700); }
.cookie-modal-actions-buttons { display: flex; gap: 10px; }
.cookie-modal-close {
  position: absolute; top: 18px; right: 18px; background: none; border: none;
  color: var(--text-muted); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 10px;
  border-radius: var(--radius);
}
.cookie-modal-close:hover { color: var(--amber-700); }

.cookie-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.cookie-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cookie-toggle .track { position: absolute; inset: 0; background: var(--gray-300); border-radius: 999px; transition: background .15s ease; }
.cookie-toggle .track::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: var(--white); border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .15s ease;
}
.cookie-toggle input:checked + .track { background: var(--amber-700); }
.cookie-toggle input:checked + .track::before { transform: translateX(18px); }
.cookie-toggle input:focus-visible + .track { outline: 2px solid var(--amber-700); outline-offset: 2px; }

@media (max-width: 600px) {
  .cookie-bar-inner { flex-direction: column; align-items: stretch; }
  .cookie-bar-actions { flex-direction: column; }
  .cookie-bar .btn { width: 100%; justify-content: center; }
  .cookie-modal { padding: 24px; max-height: 90vh; }
}
