/* ==========================================================================
   Ville de Kribi – Communauté urbaine · feuille de style
   Charte tirée du logo : bleu océan de l'écusson, vert des lauriers,
   or du sable, rouge du phare, bleu ciel du ruban.
   ========================================================================== */

/* ---------- 1. Jetons de design ---------- */
:root {
  --navy: #0B2A4A;          /* bleu nuit (bandeaux, pied de page) */
  --blue: #17558F;          /* bleu océan de l'écusson : couleur principale */
  --blue-600: #124676;
  --sky: #A8C3DC;           /* ruban */
  --sky-50: #EEF4FA;
  --green: #1C6B38;         /* lauriers */
  --green-50: #E8F3EC;
  --gold: #F2C200;          /* sable / soleil */
  --gold-ink: #7A5B00;      /* or lisible sur fond clair */
  --red: #C8102E;           /* phare, alertes */
  --red-50: #FDECEE;

  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --text: #0F1B2A;
  --muted: #4A5A6E;
  --border: #D9E1EA;
  --link: #17558F;
  --focus: #F2C200;
  --shadow: 0 1px 2px rgb(11 42 74 / .05), 0 4px 12px -2px rgb(11 42 74 / .06), 0 16px 32px -12px rgb(11 42 74 / .10);
  --shadow-lg: 0 2px 4px rgb(11 42 74 / .04), 0 24px 56px -16px rgb(11 42 74 / .28);
  /* Verre (en-tête, menus) */
  --glass: rgb(255 255 255 / .78);
  --glass-strong: rgb(255 255 255 / .965);
  --glass-border: rgb(255 255 255 / .65);
  --grid-line: rgb(23 85 143 / .06);
  /* Mouvement (emil-design-eng : ease-out marqué, < 300 ms) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --dur: 180ms;

  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-brand: "Cinzel", Georgia, serif;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --fs: 1;                   /* facteur de taille du texte (boutons A− / A+) */
  --header-h: 76px;
}
:root[data-theme="dark"] {
  --bg: #0A1420;
  --surface: #0F1D2E;
  --surface-2: #142538;
  --text: #E6EDF5;
  --muted: #A6B4C4;
  --border: #22374E;
  --link: #8CC0F0;
  --sky-50: #13283E;
  --green-50: #10291B;
  --red-50: #33141A;
  --gold-ink: #F2C200;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 28px -12px rgb(0 0 0 / .5);
  --shadow-lg: 0 24px 56px -16px rgb(0 0 0 / .7);
  --glass: rgb(10 20 32 / .78);
  --glass-strong: rgb(15 29 46 / .97);
  --glass-border: rgb(140 192 240 / .14);
  --grid-line: rgb(140 192 240 / .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]):not([data-theme="ocean"]) {
    --bg: #0A1420; --surface: #0F1D2E; --surface-2: #142538; --text: #E6EDF5; --muted: #A6B4C4;
    --border: #22374E; --link: #8CC0F0; --sky-50: #13283E; --green-50: #10291B; --red-50: #33141A; --gold-ink: #F2C200;
    --glass: rgb(10 20 32 / .78); --glass-strong: rgb(15 29 46 / .97); --glass-border: rgb(140 192 240 / .14); --grid-line: rgb(140 192 240 / .07);
  }
}

/* ---------- 1 bis. Thème « Océan » (bleu ciel) ----------
   Troisième thème au choix du visiteur (bouton vagues de la barre du haut) ou imposé par défaut dans l'admin.
   Bleu ciel et lagon : fond clair en dégradé (ciel → eau), reflets de soleil, fines lignes de houle en motif,
   et deux rouleaux de vagues fixés en bas de l'écran qui dérivent lentement (coupés si l'animation est réduite).
   Texte bleu nuit sur fonds clairs : contrastes AAA pour le texte courant. */
:root[data-theme="ocean"] {
  --navy: #0B3D66;
  --bg: #E4F3FD;
  --surface: #FFFFFF;
  --surface-2: #EAF6FE;
  --text: #0B2340;
  --muted: #34506C;
  --border: #B9DAF1;
  --link: #0D5596;
  --sky-50: #D9EEFC;
  --green-50: #E3F4EA;
  --red-50: #FDECEE;
  --gold-ink: #6E5100;
  --shadow: 0 1px 2px rgb(13 85 150 / .06), 0 6px 16px -4px rgb(13 85 150 / .10), 0 18px 36px -14px rgb(13 85 150 / .16);
  --shadow-lg: 0 2px 4px rgb(13 85 150 / .05), 0 24px 56px -16px rgb(13 85 150 / .30);
  --glass: rgb(244 251 255 / .80);
  --glass-strong: rgb(250 253 255 / .97);
  --glass-border: rgb(255 255 255 / .75);
  --grid-line: rgb(13 85 150 / .07);
  --wave-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cg fill='none' stroke='%231E78C8' stroke-opacity='.09' stroke-width='1.4'%3E%3Cpath d='M0 12c30 0 30-8 60-8s30 8 60 8 30-8 60-8 30 8 60 8'/%3E%3Cpath d='M0 32c30 0 30 8 60 8s30-8 60-8 30 8 60 8 30-8 60-8'/%3E%3C/g%3E%3C/svg%3E");
  --wave-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='200' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 120C240 60 480 60 720 120S1200 180 1440 120V200H0Z' fill='%2364B8EC' fill-opacity='.30'/%3E%3Cpath d='M0 120C240 60 480 60 720 120S1200 180 1440 120' fill='none' stroke='%23FFFFFF' stroke-opacity='.9' stroke-width='2.5'/%3E%3C/svg%3E");
  --wave-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='200' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 150C120 120 240 120 360 150S600 180 720 150S960 120 1080 150S1320 180 1440 150V200H0Z' fill='%233A9BE0' fill-opacity='.28'/%3E%3Cpath d='M0 150C120 120 240 120 360 150S600 180 720 150S960 120 1080 150S1320 180 1440 150' fill='none' stroke='%23FFFFFF' stroke-opacity='.8' stroke-width='2'/%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="ocean"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgb(255 255 255 / .85), transparent 62%),
    radial-gradient(900px 600px at -12% 38%, rgb(150 220 245 / .35), transparent 60%),
    var(--wave-lines),
    linear-gradient(180deg, #F2FAFF 0%, #E2F3FD 35%, #CFEAFB 70%, #B9E0F8 100%);
  background-attachment: fixed;
}
:root[data-theme="ocean"] body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: clamp(140px, 24vh, 260px); z-index: -1; pointer-events: none;
  background: var(--wave-b) 0 100% / 1440px 72% repeat-x, var(--wave-a) 0 100% / 1440px 100% repeat-x;
  animation: kr-swell 48s linear infinite;
}
@keyframes kr-swell { to { background-position: -1440px 100%, 1440px 100%; } }
@media (prefers-reduced-motion: reduce) { :root[data-theme="ocean"] body::after { animation: none; } }
:root[data-theme="ocean"] .section--alt { background: rgb(255 255 255 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: var(--border); }
:root[data-theme="ocean"] .site-footer { position: relative; margin-top: 48px; }
:root[data-theme="ocean"] .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -46px; height: 48px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='48' viewBox='0 0 720 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C90 6 270 6 360 30S630 54 720 30V48H0Z' fill='%230B3D66'/%3E%3Cpath d='M0 30C90 6 270 6 360 30S630 54 720 30' fill='none' stroke='%237CC8F0' stroke-opacity='.8' stroke-width='2'/%3E%3C/svg%3E") 0 100% / 720px 100% repeat-x;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--fs)); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
a, button, [role="button"], summary, label { touch-action: manipulation; }
::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 30%, transparent); }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
kbd { font: 600 .78em var(--font-body); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }
mark { background: color-mix(in srgb, var(--gold) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 70ch; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; background: var(--sky-50); color: var(--link); }
.tag--green { background: var(--green-50); color: var(--green); }
.tag--red { background: var(--red-50); color: var(--red); }
.tag--gold { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-ink); }
:root[data-theme="dark"] .tag--green { color: #7FD69C; }
:root[data-theme="dark"] .tag--red { color: #FF8A9A; }
.todo { background: color-mix(in srgb, var(--gold) 25%, transparent); border-bottom: 2px dotted var(--gold-ink); padding: 0 3px; border-radius: 3px; }

/* ---------- 3. Boutons ---------- */
.btn { --b: var(--blue); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--b) 80%, #000); background: linear-gradient(180deg, color-mix(in srgb, var(--b) 88%, #fff), var(--b)); color: #fff; font: 600 1rem/1.1 var(--font-head); text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 1px 2px rgb(0 0 0 / .12); transition: transform 160ms var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 10px 24px -8px color-mix(in srgb, var(--b) 70%, transparent); } }
.btn:active { transform: scale(.97); }
.btn--gold { --b: var(--gold); color: #1A1400; }
.btn--green { --b: var(--green); }
.btn--red { --b: var(--red); }
.btn--ghost { background: transparent; color: var(--link); border-color: color-mix(in srgb, currentColor 45%, transparent); box-shadow: none; }
.btn--ghost:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.btn--light { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .7); color: #fff; backdrop-filter: blur(4px); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .94rem; }
.btn--block { width: 100%; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background-color var(--dur) var(--ease-out), transform 160ms var(--ease-out); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .i { transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- 4. Bandeau d'alerte et barre supérieure ---------- */
.alert-bar { background: var(--red); color: #fff; font-weight: 600; }
.alert-bar[data-level="info"] { background: var(--blue); }
.alert-bar[data-level="vigilance"] { background: var(--gold); color: #1A1400; }
.alert-bar .container { display: flex; align-items: center; gap: 12px; padding-block: 9px; }
.alert-bar p { margin: 0; flex: 1; }
.alert-bar a { color: inherit; }
.alert-bar button { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; display: grid; }

.topbar { background: var(--navy); color: #D7E3EF; font-size: .88rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar li { display: inline-flex; align-items: center; gap: 6px; }
.topbar .i { width: 1em; height: 1em; color: var(--gold); }
.a11y-tools { display: inline-flex; gap: 2px; border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: 2px; }
.a11y-tools button { background: none; border: 0; color: #fff; font: 700 .8rem var(--font-head); min-width: 32px; min-height: 30px; padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.a11y-tools button:disabled { opacity: .4; cursor: not-allowed; }
.a11y-tools button:hover, .a11y-tools button[aria-pressed="true"] { background: rgb(255 255 255 / .16); }
.lang-switch { display: inline-flex; border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: 2px; text-decoration: none !important; }
.lang-switch span { font: 700 .78rem var(--font-head); display: grid; place-items: center; min-width: 32px; min-height: 26px; padding: 3px 9px; border-radius: 999px; color: #D7E3EF; }
.lang-switch .is-current { background: var(--gold); color: #1A1400; }
.lang-switch:hover span:not(.is-current) { color: #fff; }
.theme-pick { display: inline-flex; gap: 2px; border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: 2px; }
.theme-pick button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 999px; background: none; color: #D7E3EF; cursor: pointer; transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.theme-pick button .i { width: 16px; height: 16px; }
.theme-pick button:hover { background: rgb(255 255 255 / .16); color: #fff; }
.theme-pick button[aria-pressed="true"] { background: var(--gold); color: #1A1400; }
.theme-pick button[data-theme-set="ocean"][aria-pressed="true"] { background: linear-gradient(135deg, #5CC8F0, #1E78C8); color: #fff; }
@media (max-width: 760px) { .topbar .hide-sm { display: none !important; } }
@media (max-width: 520px) { .topbar .hide-xs { display: none; } .topbar ul { gap: 10px; } }

/* ---------- 5. En-tête vitré et méga-menu (glassmorphism, refonte v3) ----------
   Barre collante translucide (flou 18 px), liseré aux quatre couleurs du logo, menu en « pilules »
   avec icônes, panneaux vitrés qui s'ouvrent depuis leur bouton (opacité + translation, 200 ms ease-out),
   tiroir latéral sur mobile. Tout reste utilisable au clavier et sans animation si demandé. */
.site-header { position: sticky; top: 0; z-index: 90; background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--glass-border); transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--gold) 50% 75%, var(--red) 75% 100%); opacity: .9; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgb(11 42 74 / .25); }
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); width: min(100% - 32px, 1440px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; border-radius: 12px; }
.brand img { width: 52px; height: auto; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover img { transform: rotate(-4deg) scale(1.04); } }
.brand__name { display: block; font: 700 1.2rem/1 var(--font-brand); letter-spacing: .04em; color: var(--navy); }
:root[data-theme="dark"] .brand__name { color: #fff; }
.brand__tag { display: block; font: 600 .66rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-top: 5px; }
:root[data-theme="dark"] .brand__tag { color: #FF8A9A; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-search { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font: 500 .95rem var(--font-body); cursor: pointer; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.header-search:hover { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent); }
.header-search kbd { margin-left: 4px; }
.header-search span, .header-search kbd { display: none; }
.header-search { width: 44px; padding: 0; justify-content: center; }
/* Libellé « Rechercher Ctrl K » seulement s'il reste de la place : sinon le menu déborde sous le bouton.
   main.js ajoute .is-tight à l'en-tête si le menu ne tient pas (texte agrandi, police de secours…). */
@media (min-width: 1600px) { .header-search { width: auto; padding: 0 10px 0 14px; } .header-search span, .header-search kbd { display: inline; } }
.site-header.is-tight .header-search { width: 44px; padding: 0; }
.site-header.is-tight .header-search span, .site-header.is-tight .header-search kbd { display: none; }
.site-header.is-tight .mainnav__btn .mainnav__ico { display: none; }
.site-header.is-tight .mainnav__btn { padding: 0 10px; }
/* Second niveau (texte agrandi sur un petit écran d'ordinateur) : logo seul, bouton Signaler en icône */
.site-header.is-compact .brand > span { display: none; }
.site-header.is-compact .header-cta { padding-inline: 12px; }
.site-header.is-compact .header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.site-header.is-compact .mainnav__btn { padding: 0 8px; gap: 4px; }
.header-cta .i { width: 1.1em; height: 1.1em; }
.menu-toggle { display: none; width: 44px; height: 44px; }
.nav-scrim { display: none; }

/* Liste du menu : pilules avec icônes */
.mainnav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.mainnav__head, .mainnav__foot { display: none; }
.mainnav__list { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.mainnav__item { position: static; }
.mainnav__btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 600 .93rem var(--font-head); cursor: pointer; white-space: nowrap; transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.mainnav__btn .mainnav__ico { width: 18px; height: 18px; color: var(--link); transition: transform var(--dur) var(--ease-out); }
.mainnav__chev { width: 14px; height: 14px; opacity: .6; transition: transform var(--dur) var(--ease-out); }
.mainnav__btn:hover { background: var(--surface); box-shadow: 0 1px 2px rgb(11 42 74 / .08), 0 0 0 1px var(--border); }
.mainnav__btn[aria-expanded="true"] { background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 40%, transparent), 0 6px 18px -6px color-mix(in srgb, var(--blue) 45%, transparent); }
.mainnav__btn[aria-expanded="true"] .mainnav__chev { transform: rotate(180deg); }
.mainnav__btn[aria-expanded="true"] .mainnav__ico { transform: scale(1.1); }
.mainnav__btn[aria-current="page"] { background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff; }
.mainnav__btn[aria-current="page"] .mainnav__ico { color: var(--gold); }
.mainnav__btn:active { transform: scale(.97); }

/* Panneau vitré */
.mega { position: absolute; left: 50%; top: calc(100% + 10px); width: min(100vw - 32px, 1180px); transform: translate(-50%, -8px); opacity: 0; visibility: hidden; pointer-events: none;
  border-radius: 24px; background: var(--glass-strong); -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
  border: 1px solid var(--glass-border); box-shadow: 0 30px 80px -20px rgb(6 22 42 / .45), inset 0 1px 0 rgb(255 255 255 / .5);
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out), visibility 0s linear 140ms; z-index: 95; }
.mega::before { content: ""; position: absolute; inset: 0 24px auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), var(--blue), transparent); }
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
.mega__inner { display: grid; grid-template-columns: 250px 1fr 270px; gap: 24px; padding: 24px; }
.mega__intro { padding: 18px; border-radius: 18px; background:
  radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 60%),
  linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 22px, var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.mega__kicker { margin: 0; font: 700 .72rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
.mega__title { margin: 0; font: 700 1.3rem/1.2 var(--font-head); color: var(--text); }
.mega__lead { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mega__all { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 .92rem var(--font-head); text-decoration: none; }
.mega__all .i { transition: transform var(--dur) var(--ease-out); }
.mega__all:hover .i { transform: translateX(3px); }
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; align-content: start; }
.mega__link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--text); transition: background-color var(--dur) var(--ease-out); }
.mega__link:hover, .mega__link:focus-visible { background: color-mix(in srgb, var(--blue) 9%, transparent); }
.mega__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--link); background: linear-gradient(145deg, var(--surface), var(--sky-50)); box-shadow: inset 0 0 0 1px var(--border); transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.mega__ico .i { width: 20px; height: 20px; }
.mega__link:hover .mega__ico { background: linear-gradient(145deg, var(--blue), var(--blue-600)); color: #fff; transform: translateY(-1px); }
.mega__txt b { display: block; font: 600 .96rem/1.25 var(--font-head); }
.mega__txt small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; margin-top: 2px; }
.mega__feature { position: relative; display: flex; align-items: flex-end; min-height: 230px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 600ms var(--ease-out); }
.mega__feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(6 22 42 / .92)); }
.mega__feature:hover img { transform: scale(1.06); }
.mega__feature-txt { padding: 18px; }
.mega__feature-txt b { display: block; font: 700 1.05rem/1.3 var(--font-head); }
.mega__feature-txt small { display: block; margin-top: 4px; font-size: .88rem; opacity: .9; }

@media (max-width: 1280px) {
  .mainnav__btn { padding: 0 12px; }
  .mega__inner { grid-template-columns: 220px 1fr; }
  .mega__feature { display: none; }
}
@media (max-width: 1360px) { .mainnav__btn .mainnav__ico { display: none; } }

/* Tiroir mobile (≤ 1080 px) */
@media (max-width: 1080px) {
  /* le flou de l'en-tête créerait un bloc conteneur pour le tiroir fixe : fond opaque à la place */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .menu-toggle { display: inline-grid; }
  .header-cta span { display: none; }
  .header-cta { width: 44px; padding: 0; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 98; background: rgb(5 15 30 / .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 240ms var(--ease-out); }
  .nav-scrim.is-open { opacity: 1; }
  .nav-scrim[hidden] { display: none; }
  .mainnav { position: fixed; z-index: 99; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; justify-content: flex-start;
    background: var(--glass-strong); -webkit-backdrop-filter: saturate(170%) blur(24px); backdrop-filter: saturate(170%) blur(24px); border-left: 1px solid var(--glass-border);
    box-shadow: -30px 0 60px -20px rgb(6 22 42 / .45); transform: translateX(100%); visibility: hidden; transition: transform 320ms var(--ease-drawer), visibility 0s linear 320ms; overflow-y: auto; overscroll-behavior: contain; }
  .mainnav.is-open { transform: none; visibility: visible; transition: transform 320ms var(--ease-drawer), visibility 0s; }
  .mainnav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; background: inherit; z-index: 2; border-bottom: 1px solid var(--border); }
  .mainnav__title { font: 700 .8rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .mainnav__list { flex-direction: column; gap: 6px; margin: 12px; padding: 0; border: 0; background: none; border-radius: 0; }
  .mainnav__btn { width: 100%; height: 56px; padding: 0 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 1.05rem; }
  .mainnav__btn .mainnav__ico { display: block; width: 22px; height: 22px; }
  .mainnav__chev { margin-left: auto; }
  .mainnav__btn[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: inset 4px 0 0 var(--blue), inset 0 0 0 1px var(--border); }
  .mainnav__btn[aria-current="page"] .mainnav__ico { color: var(--link); }
  .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; pointer-events: auto; display: none; margin: 6px 0 4px; border-radius: 16px; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }
  .mega::before { display: none; }
  .mega.is-open { display: block; transform: none; animation: drawerItem 220ms var(--ease-out); }
  @keyframes drawerItem { from { opacity: 0; transform: translateY(-4px); } }
  .mega__inner { display: block; padding: 0; }
  .mega__intro, .mega__feature { display: none; }
  .mega__links { grid-template-columns: 1fr; gap: 2px; padding-left: 8px; }
  .mega__link { padding: 10px; min-height: 52px; align-items: center; }
  .mega__ico { width: 36px; height: 36px; }
  .mainnav__foot { display: grid; gap: 10px; margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }
  .mainnav__foot .btn .i { width: 1.1em; height: 1.1em; }
  .mainnav__lang { text-align: center; font-weight: 600; padding: 10px; }
}
@media (max-width: 520px) {
  .brand img { width: 44px; }
  .brand__name { font-size: 1.02rem; }
  .brand__tag { font-size: .6rem; letter-spacing: .1em; }
  .site-header__bar { gap: 10px; }
}
.mobile-only { display: none; }
[hidden] { display: none !important; }

/* ---------- 6. Recherche (boîte de dialogue) ---------- */
.search { width: min(100% - 24px, 720px); max-height: min(80vh, 680px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.search::backdrop { background: rgb(5 15 30 / .6); backdrop-filter: blur(3px); }
.search__box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.search__input { flex: 1; border: 0; background: none; color: inherit; font: 500 1.15rem var(--font-body); outline: none; min-width: 0; }
.search__close { background: none; border: 0; cursor: pointer; color: var(--muted); }
.search__results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: 52vh; }
.search__results a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search__results [aria-selected="true"] a, .search__results a:hover { background: var(--sky-50); }
.r-page { display: block; font: 600 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--link); }
.r-title { display: block; font: 600 1.02rem var(--font-head); margin: 2px 0; }
.r-text { display: block; font-size: .92rem; color: var(--muted); }
.search__status { margin: 0; padding: 10px 18px 14px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--border); }
.search__suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.search__suggest button { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: .88rem; }

/* ---------- 7. Héros d'accueil (diaporama) ---------- */
.hero { position: relative; min-height: clamp(520px, 78vh, 760px); display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transform: scale(1.06); }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(6 22 42 / .88) 0%, rgb(6 22 42 / .6) 45%, rgb(6 22 42 / .15) 100%), linear-gradient(0deg, rgb(6 22 42 / .65), transparent 40%); }
.hero__content { position: relative; z-index: 2; padding-block: 60px 120px; max-width: 760px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .85rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero__eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.2rem; max-width: 58ch; color: #E3ECF5; }
.hero__search { display: flex; gap: 8px; margin-top: 26px; padding: 8px; background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgb(255 255 255 / .7); border-radius: 999px; max-width: 640px; box-shadow: 0 20px 50px -12px rgb(0 0 0 / .45); transition: box-shadow var(--dur) var(--ease-out); }
.hero__search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 55%, transparent), 0 20px 50px -12px rgb(0 0 0 / .45); }
.hero__search input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; font: 500 1.08rem var(--font-body); color: #0F1B2A; outline: none; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero__chips a { color: #fff; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; transition: background-color var(--dur) var(--ease-out); border: 1px solid rgb(255 255 255 / .45); border-radius: 999px; background: rgb(255 255 255 / .08); backdrop-filter: blur(4px); }
.hero__chips a:hover { background: rgb(255 255 255 / .2); }
.hero__controls { position: absolute; z-index: 3; right: max(16px, calc((100vw - var(--container)) / 2)); bottom: 120px; display: flex; align-items: center; gap: 8px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots button { position: relative; width: 36px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }
.hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 4px; background: rgb(255 255 255 / .4); transition: background-color var(--dur) var(--ease-out); }
.hero__dots button[aria-current="true"]::before { background: var(--gold); }
.hero__pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); background: rgb(0 0 0 / .25); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__caption { position: absolute; z-index: 3; left: max(16px, calc((100vw - var(--container)) / 2)); bottom: 92px; font-size: .78rem; color: rgb(255 255 255 / .75); }
@media (max-width: 1100px) { .hero__caption { display: none; } .hero__content { padding-bottom: 150px; } }
@media (max-width: 700px) { .hero__controls { bottom: 96px; } }

/* ---------- 8. Accès rapides « En un clic » ---------- */
.quick { position: relative; z-index: 5; margin-top: -78px; }
.quick__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; background: var(--glass-strong); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--glass-border); }
.quick__item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 22px 10px 20px; text-align: center; text-decoration: none; color: var(--text); font: 600 .92rem/1.25 var(--font-head); border-right: 1px solid var(--border); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.quick__item:last-child { border-right: 0; }
.quick__item:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); color: var(--link); }
.quick__item:active .quick__icon { transform: scale(.94); }
.quick__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, var(--surface), var(--sky-50)); box-shadow: inset 0 0 0 1px var(--border); color: var(--blue); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform 160ms var(--ease-out), box-shadow var(--dur) var(--ease-out); }
:root[data-theme="dark"] .quick__icon { color: #8CC0F0; }
.quick__item:hover .quick__icon { background: linear-gradient(145deg, var(--blue), var(--blue-600)); color: #fff; box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--blue) 70%, transparent); transform: translateY(-2px); }
.quick__icon .i { width: 28px; height: 28px; }
@media (max-width: 1080px) { .quick__grid { grid-template-columns: repeat(4, 1fr); } .quick__item:nth-child(4n) { border-right: 0; } .quick__item:nth-child(-n+4) { border-bottom: 1px solid var(--border); } }
@media (max-width: 560px) { .quick__grid { grid-template-columns: repeat(2, 1fr); } .quick__item { border-bottom: 1px solid var(--border); } .quick__item:nth-child(2n) { border-right: 0; } }

/* ---------- 9. Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section--sky { background: linear-gradient(180deg, var(--sky-50), var(--bg)); }
.section--navy { background: var(--navy); color: #E6EDF5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .74rem var(--font-head); text-transform: uppercase; letter-spacing: .16em; color: var(--green); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
:root[data-theme="dark"] .eyebrow { color: #7FD69C; }
.section--navy .eyebrow { color: var(--gold); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 10. Cartes ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--blue) 30%, var(--border)); } }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.15rem; }
.card__body h3 a { color: var(--text); text-decoration: none; }
.card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.card__body h3 a:hover { color: var(--link); }
.card__body p { margin: 0; color: var(--muted); }
.card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.card--feature { grid-column: span 2; flex-direction: row; }
.card--feature .card__media { aspect-ratio: auto; flex: 1.2; }
.card--feature .card__body { flex: 1; justify-content: center; padding: 30px; }
.card--feature h3 { font-size: 1.5rem; }
@media (max-width: 980px) { .card--feature { grid-column: auto; flex-direction: column; } .card--feature .card__media { aspect-ratio: 16/10; } }
.card--plain { padding: 24px; gap: 10px; }
.card--plain .card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--surface), var(--sky-50)); box-shadow: inset 0 0 0 1px var(--border); color: var(--blue); }
:root[data-theme="dark"] .card--plain .card__icon { color: #8CC0F0; }
.card--plain .card__icon .i { width: 26px; height: 26px; }
.card--plain h3 { margin: 6px 0 0; }
.card--plain p { margin: 0; color: var(--muted); }

/* ---------- 11. Mot du Maire / bloc texte + image ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.split__media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.mayor-card { position: absolute; left: 18px; bottom: 18px; right: 18px; padding: 16px 18px; border-radius: 14px; background: rgb(255 255 255 / .94); color: #0F1B2A; display: flex; gap: 14px; align-items: center; }
.mayor-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: #fff; }
.mayor-card strong { display: block; font-family: var(--font-head); }
.quote { position: relative; font: 500 1.2rem/1.6 var(--font-body); padding-left: 24px; border-left: 4px solid var(--gold); margin: 0 0 20px; }
.signature { font: 700 1rem var(--font-head); }
.signature span { display: block; font: 400 .92rem var(--font-body); color: var(--muted); }

/* ---------- 12. Événements (agenda) ---------- */
.events { display: grid; gap: 14px; }
.event { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color var(--dur) var(--ease-out), transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .event:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); transform: translateY(-2px); } }
.event__date { display: grid; place-items: center; text-align: center; height: 78px; border-radius: 16px; background: linear-gradient(150deg, var(--blue), var(--navy)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); color: #fff; font-family: var(--font-head); line-height: 1; }
.event__date b { font-size: 1.9rem; }
.event__date span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: -10px; }
.event h3 { margin: 0 0 4px; font-size: 1.08rem; }
.event p { margin: 0; color: var(--muted); font-size: .94rem; }
.event__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-top: 6px; }
.event__meta span { display: inline-flex; align-items: center; gap: 5px; }
.event__meta .i { width: 1em; height: 1em; }
@media (max-width: 640px) { .event { grid-template-columns: 64px 1fr; gap: 14px; } .event__date { height: 64px; align-self: start; } .event__date b { font-size: 1.5rem; } }

/* ---------- 13. Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { min-height: 44px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 18px; cursor: pointer; font: 600 .92rem var(--font-head); transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform 160ms var(--ease-out); }
.filters button:hover { border-color: var(--blue); }
.filters button:active { transform: scale(.97); }
.filters button[aria-pressed="true"] { background: linear-gradient(135deg, var(--blue), var(--blue-600)); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--blue) 70%, transparent); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .input { max-width: 340px; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); }

/* ---------- 14. Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; border-radius: 20px; overflow: hidden; }
.stat { padding: 30px 22px; background: rgb(255 255 255 / .06); text-align: center; }
.stat b { display: block; font: 700 clamp(2.1rem, 4vw, 3rem)/1 var(--font-head); color: var(--gold); }
.stat span { display: block; margin-top: 10px; color: #CFDBE8; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 15. Bannière photo ---------- */
.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.has-photo > .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); z-index: -2; }
.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(6 22 42 / .88), rgb(6 22 42 / .6) 55%, rgb(6 22 42 / .25)); }

/* ---------- 16. En-tête des pages internes ---------- */
.page-hero { color: #fff; padding-block: clamp(56px, 9vw, 110px) clamp(40px, 6vw, 70px); }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #DCE6F0; font-size: 1.15rem; max-width: 66ch; margin: 0; }
.breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 6px 14px; display: inline-flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.breadcrumb a { color: #fff; }
.breadcrumb [aria-current] { color: var(--gold); }

/* ---------- 17. Mise en page avec sommaire latéral ---------- */
.with-aside { display: grid; grid-template-columns: 270px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 70px); padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; border-left: 3px solid transparent; }
.toc a:hover { background: var(--surface-2); }
.toc a.is-active { background: var(--sky-50); border-left-color: var(--blue); color: var(--link); font-weight: 600; }
@media (max-width: 980px) {
  .with-aside { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; padding: 8px; border-radius: 0; margin-inline: -16px; border-inline: 0; }
  .toc h2 { display: none; }
  .toc ul { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .toc a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px; }
  .toc a.is-active { border-bottom-color: var(--blue); }
}
.block { padding-block: 10px 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.block:last-child { border-bottom: 0; }
.block__head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.block__head .card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue); color: #fff; flex: none; }
.block__head h2 { margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.info-grid > div { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.info-grid b { display: block; font: 600 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; min-height: 34px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1A1400; font: 700 .95rem var(--font-head); }

/* ---------- 18. Accordéons ---------- */
.accordion { display: grid; gap: 10px; margin: 16px 0; }
.accordion details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font: 600 1.02rem var(--font-head); position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-50); color: var(--link); font-size: 1.2rem; transition: transform .2s; }
.accordion details[open] summary::after { content: "−"; }
.accordion details > div { padding: 0 18px 18px; }

/* ---------- 19. Tableaux / listes de documents ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font: 600 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.doc__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.doc h3 { margin: 0 0 4px; font-size: 1.02rem; }
.doc p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .doc { grid-template-columns: auto 1fr; } .doc > :last-child { grid-column: 1 / -1; } }

/* ---------- 20. Formulaires ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label, .field legend { font: 600 .95rem var(--font-head); }
.field .req { color: var(--red); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 14px; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); background: var(--surface); color: var(--text); font: inherit; }
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); outline: 3px solid color-mix(in srgb, var(--blue) 25%, transparent); outline-offset: 0; }
.field .hint { font-size: .86rem; color: var(--muted); }
.field__error { display: none; align-items: center; gap: 6px; color: var(--red); font-size: .88rem; font-weight: 600; }
.has-error .field__error { display: flex; }
.has-error .input, .has-error .textarea, .has-error .select { border-color: var(--red); }
:root[data-theme="dark"] .field__error { color: #FF8A9A; }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.form-status { display: none; gap: 12px; padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; }
.form-status.is-visible { display: flex; }
.form-status--success { background: var(--green-50); border: 1px solid var(--green); }
.form-status--error { background: var(--red-50); border: 1px solid var(--red); }
.form-status ul { margin: 6px 0 0; padding-left: 18px; }
.form-status__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ref-code { display: inline-block; font: 700 1.1rem var(--font-head); letter-spacing: .06em; padding: 4px 10px; background: var(--surface); border: 1px dashed var(--green); border-radius: 8px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.radio-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.radio-tiles legend { margin-bottom: 8px; }
.radio-tiles label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; text-align: center; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font: 600 .9rem/1.25 var(--font-head); background: var(--surface); }
.radio-tiles input { position: absolute; opacity: 0; }
.radio-tiles label:has(input:checked) { border-color: var(--blue); background: var(--sky-50); color: var(--link); box-shadow: 0 0 0 2px var(--blue) inset; }
.radio-tiles label:has(input:focus-visible) { outline: 3px solid var(--focus); }
.radio-tiles .i { width: 26px; height: 26px; }

/* ---------- 21. Vidéos (chargées au clic) ---------- */
.video-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; color: #fff; display: grid; place-items: center; }
.yt button:hover + img, .yt:hover img { opacity: 1; }
.yt__play { width: 74px; height: 74px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 30px rgb(0 0 0 / .5); transition: transform .2s; }
.yt button:hover .yt__play { transform: scale(1.08); }
.yt__play .i { width: 30px; height: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.yt__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgb(0 0 0 / .85)); color: #fff; font: 600 1rem var(--font-head); text-align: left; pointer-events: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-list { display: grid; gap: 12px; align-content: start; }
.video-list button { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.video-list button[aria-current="true"] { border-color: var(--blue); background: var(--sky-50); }
.video-list img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.video-list b { display: block; font: 600 .95rem/1.3 var(--font-head); }
.video-list small { color: var(--muted); }
.video-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- 22. Galerie photo + visionneuse ---------- */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 12px; overflow: hidden; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgb(0 0 0 / .8)); color: #fff; font-size: .88rem; pointer-events: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / .9); }
.lightbox img { max-width: 96vw; max-height: 82vh; border-radius: 8px; margin: auto; }
.lightbox p { text-align: center; margin: 10px 0 0; font-size: .9rem; }
.lightbox__btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__btn:hover { background: rgb(255 255 255 / .3); }
.lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; transform: none; }

/* ---------- 23. Carte, horaires, contacts ---------- */
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.hours li:last-child { border: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .i { color: var(--blue); margin-top: 3px; }
:root[data-theme="dark"] .contact-list .i { color: #8CC0F0; }

/* ---------- 24. Personnes (exécutif, conseil) ---------- */
.person { text-align: center; padding: 26px 18px; }
.person__avatar { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font: 700 1.6rem var(--font-head); }
.person h3 { margin: 0; font-size: 1.05rem; }
.person p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.org { display: grid; gap: 14px; justify-items: center; }
.org__row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.org__box { padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-align: center; font: 600 .95rem var(--font-head); min-width: 180px; }
.org__box--top { background: var(--blue); color: #fff; border-color: var(--blue); }
.org__box small { display: block; font: 400 .82rem var(--font-body); color: var(--muted); }
.org__box--top small { color: #DCE6F0; }
.org__line { width: 2px; height: 18px; background: var(--border); }

/* ---------- 25. Infolettre / appel à l'action ---------- */
.cta-band { color: #fff; padding-block: clamp(50px, 7vw, 80px); }
.cta-band .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #DCE6F0; }
@media (max-width: 860px) { .cta-band .container { grid-template-columns: 1fr; } }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 220px; background: rgb(255 255 255 / .96); color: #0F1B2A; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips label { display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; color: #E6EDF5; }

/* ---------- 26. Partenaires / liens institutionnels ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.partners a { display: flex; align-items: center; justify-content: center; min-height: 74px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; text-align: center; font: 600 .92rem/1.3 var(--font-head); }
.partners a:hover { border-color: var(--blue); color: var(--link); }

/* ---------- 27. Pied de page ---------- */
.site-footer { background: var(--navy); color: #C9D6E3; padding-top: 64px; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: var(--gold); }
.site-footer .brand img { background: #fff; border-radius: 12px; padding: 4px; width: 66px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: #C9D6E3; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .i { color: var(--gold); margin-top: 3px; }
.social { display: flex !important; gap: 10px; margin-top: 18px !important; }
.social[hidden] { display: none !important; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: #fff !important; }
.social a:hover { background: var(--gold); color: #1A1400 !important; }
.footer-flag { height: 6px; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.footer-flag span:nth-child(1) { background: var(--blue); } .footer-flag span:nth-child(2) { background: var(--green); }
.footer-flag span:nth-child(3) { background: var(--gold); } .footer-flag span:nth-child(4) { background: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 26px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- 28. Retour en haut ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-border); background: linear-gradient(150deg, var(--blue), var(--navy)); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .progress { position: absolute; inset: -2px; width: 56px; height: 56px; transform: rotate(-90deg); }
.to-top .progress circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 164; stroke-dashoffset: calc(164 - 164 * var(--p, 0)); }

/* ---------- 29. Apparitions au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js [data-stagger].is-visible > * { opacity: 1; transform: none; }

/* ---------- 30. Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; }
}

/* ---------- 32. Annuaire des entreprises ---------- */
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; }
.hero-stats li { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 16px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-stats b { font: 700 1.5rem/1 var(--font-head); color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-stats span { color: #DCE6F0; font-size: .92rem; }
.directory { padding-top: 36px; }
.dir-toolbar { position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 10px; border-radius: 22px;
  background: var(--glass-strong); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.dir-search { position: relative; display: flex; align-items: center; }
.dir-search .i { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.dir-search input, .dir-select select { width: 100%; min-height: 50px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font: 500 1.02rem var(--font-body); transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.dir-search input { padding: 0 16px 0 46px; }
.dir-select select { padding: 0 38px 0 14px; cursor: pointer; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5A6E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.dir-search input:focus, .dir-select select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); }
.dir-chips { display: flex; gap: 8px; margin: 18px 0 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.dir-chips button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .92rem var(--font-head); cursor: pointer; transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform 160ms var(--ease-out); }
.dir-chips button span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.dir-chips button:hover { border-color: var(--blue); }
.dir-chips button:active { transform: scale(.97); }
.dir-chips button[aria-pressed="true"] { background: linear-gradient(135deg, var(--blue), var(--blue-600)); border-color: var(--blue); color: #fff; }
.dir-chips button[aria-pressed="true"] span { background: rgb(255 255 255 / .2); color: #fff; }
.dir-count { margin: 6px 0 18px; color: var(--muted); font-weight: 600; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.biz-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--blue) 35%, var(--border)); } .biz-card:hover .biz-card__media img { transform: scale(1.05); } .biz-card:hover .biz-card__more .i { transform: translateX(3px); } }
.biz-card:active { transform: scale(.99); }
.biz-card.is-featured { border-color: color-mix(in srgb, var(--gold) 60%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), var(--shadow); }
.biz-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.biz-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.biz-card__cat { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: rgb(6 22 42 / .72); color: #fff; font: 600 .76rem/1.2 var(--font-head); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.biz-card__star { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: #1A1400; font: 700 .74rem var(--font-head); }
.biz-card__star .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.biz-mono { display: grid; place-items: center; width: 100%; height: 100%; font: 700 clamp(2.2rem, 5vw, 3rem) var(--font-head); letter-spacing: .04em; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, hsl(var(--h) 55% 45%), transparent 60%), linear-gradient(135deg, var(--blue), var(--navy)); }
.biz-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 18px; flex: 1; }
.biz-card__body h3 { margin: 0; font-size: 1.12rem; }
.biz-open { all: unset; cursor: pointer; color: var(--text); font: inherit; border-radius: 6px; }
.biz-open::after { content: ""; position: absolute; inset: 0; }
.biz-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.biz-card__body p { margin: 0; color: var(--muted); font-size: .96rem; }
.biz-card__place { display: flex; align-items: center; gap: 6px; font-size: .9rem !important; }
.biz-card__place .i { width: 1em; height: 1em; color: var(--link); }
.biz-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--border); }
.biz-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font: 600 .92rem var(--font-head); }
.biz-card__more .i { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.biz-card__acts { position: relative; z-index: 2; display: flex; gap: 6px; }
.biz-act { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); color: var(--link); background: var(--surface); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform 160ms var(--ease-out); }
.biz-act:hover { background: var(--blue); color: #fff; }
.biz-act:active { transform: scale(.94); }
.biz-act .i { width: 18px; height: 18px; }
.biz-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; }
.biz-empty p { margin: 0; }

.biz-dialog { width: min(100% - 24px, 880px); max-height: min(92vh, 900px); padding: 0; border: 1px solid var(--glass-border); border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -20px rgb(0 0 0 / .55); overflow: auto; }
.biz-dialog::backdrop { background: rgb(5 15 30 / .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.biz-dialog[open] { animation: dialogIn 240ms var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.biz-dialog__inner { position: relative; }
.biz-dialog__close { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgb(255 255 255 / .9); color: #0F1B2A; border-color: transparent; box-shadow: var(--shadow); }
.biz-dialog__media { aspect-ratio: 21 / 9; background: var(--surface-2); overflow: hidden; }
.biz-dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.biz-dialog__body { padding: 24px clamp(20px, 4vw, 36px) 30px; }
.biz-dialog__body h2 { margin: 12px 0 18px; }
.biz-dialog__body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.biz-dialog__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.biz-dialog__cols .contact-list a { overflow-wrap: anywhere; }
.biz-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.biz-dialog__actions .btn .i { width: 1.1em; height: 1.1em; }
.biz-dialog__fix { margin-left: auto; font-size: .9rem; }
@media (max-width: 760px) {
  .dir-toolbar { grid-template-columns: 1fr 1fr; top: calc(var(--header-h) + 4px); }
  .dir-search { grid-column: 1 / -1; }
  .biz-dialog__cols { grid-template-columns: 1fr; gap: 10px; }
  .biz-dialog__media { aspect-ratio: 16 / 10; }
  .biz-dialog__fix { margin-left: 0; }
  .biz-dialog { max-height: 94vh; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .biz-dialog[open] { animation: none; } }

/* ---------- 33. Contenus rédigés dans l'administration (articles, nouvelles pages) ---------- */
.prose { max-width: 76ch; font-size: 1.08rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--muted); font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.2em 0; box-shadow: var(--shadow); }
.prose table { margin: 1.2em 0; }
.prose a { font-weight: 600; }
.article-dialog .biz-dialog__body { max-width: 760px; margin: 0 auto; }
.article-dialog .prose { max-width: none; }

/* ---------- 31. Impression ---------- */
@media print {
  .topbar, .site-header, .mainnav, .alert-bar, .to-top, .site-footer, .hero__controls, .toc, .filters, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { color: #000; padding: 0; } .page-hero::before, .page-hero .photo { display: none; }
  .page-hero h1, .page-hero p { color: #000; }
}

@media (max-width: 520px) { .hide-xs { display: none; } .hero__search .btn { padding: 10px 14px; } .hero__search input { padding: 0 10px; } .hero__eyebrow { letter-spacing: .08em; } }
