/* =========================================================
   IVPCI — Institut Virtuel Privé de Côte d'Ivoire
   Feuille de style principale
   ========================================================= */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px; --radius-xl: 22px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;

  /* Palette — clair */
  --color-bg: #F7F5F0;
  --color-surface: #FFFFFF;
  --color-surface-2: #EFEBE2;
  --color-text: #13213A;
  --color-text-muted: #56607A;
  --color-border: rgba(19, 33, 58, 0.12);
  --color-navy: #0A2552;
  --color-navy-2: #0B3D91;
  --color-primary: #0B3D91;
  --color-primary-hover: #082E6E;
  --color-gold: #A87A12;           /* or lisible sur fond clair */
  --color-gold-bright: #F4B400;    /* jaune marque, sur fond sombre */
  --color-on-dark: #F7F5F0;
  --color-on-dark-muted: rgba(247, 245, 240, 0.74);
  --shadow-sm: 0 1px 2px rgba(10, 37, 82, .06), 0 2px 8px rgba(10, 37, 82, .05);
  --shadow-md: 0 8px 30px rgba(10, 37, 82, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 82, .18);

  --container: 1240px;
  --header-h: 76px;
}

[data-theme='dark'] {
  --color-bg: #0B1426;
  --color-surface: #111D35;
  --color-surface-2: #16264A;
  --color-text: #E9ECF3;
  --color-text-muted: #A3AEC6;
  --color-border: rgba(233, 236, 243, 0.12);
  --color-primary: #8FB3FF;
  --color-primary-hover: #B6CDFF;
  --color-gold: #F4C542;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.45);
}

html { scroll-padding-top: calc(var(--header-h) + 24px); }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.container { width: min(100% - 2 * clamp(1.25rem, 4vw, 3rem), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--color-navy); color: #fff; padding: var(--space-3) var(--space-4); }
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Typo ---------- */
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-gold); display: inline-flex; align-items: center; gap: var(--space-3); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--color-gold-bright); }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; }
h1, h2, h3 { color: inherit; }
.h-hero { font-family: var(--font-display); font-weight: 500; font-size: var(--text-3xl); line-height: 1.03; letter-spacing: -0.02em; }
.h-page { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); line-height: 1.08; letter-spacing: -0.015em; }
.h-section { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.01em; }
.h-sub { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--color-text-muted); max-width: 60ch; font-weight: 400; }
.on-dark .lead { color: var(--color-on-dark-muted); }
.muted { color: var(--color-text-muted); }
.prose p + p { margin-top: var(--space-4); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ul { padding-left: 1.1em; display: grid; gap: var(--space-2); }
.serif-italic { font-family: var(--font-display); font-style: italic; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: 999px; font-size: var(--text-sm); font-weight: 600; letter-spacing: .01em; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--color-navy-2); color: #fff; }
.btn-primary:hover { background: var(--color-navy); }
[data-theme='dark'] .btn-primary { background: var(--color-gold-bright); color: #0A2552; }
[data-theme='dark'] .btn-primary:hover { background: #FFC933; }
.btn-gold { background: var(--color-gold-bright); color: #0A2552; }
.btn-gold:hover { background: #FFC933; }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn-ghost:hover { border-color: var(--color-text); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn:active { transform: translateY(1px); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--text-sm); color: var(--color-primary); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--transition-interactive); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--color-gold-bright); }

/* ---------- Barre utilitaire ---------- */
.topbar { background: var(--color-navy); color: var(--color-on-dark-muted); font-size: var(--text-xs); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: var(--space-4); }
.topbar nav { display: flex; gap: var(--space-5); align-items: center; }
.topbar a:hover { color: #fff; }
.topbar .tb-flag { display: inline-flex; width: 18px; height: 11px; margin-right: var(--space-2); vertical-align: -1px; border-radius: 1px; overflow: hidden; }
.topbar .tb-flag i { flex: 1; } .tb-flag i:nth-child(1){background:#F77F00} .tb-flag i:nth-child(2){background:#fff} .tb-flag i:nth-child(3){background:#009E60}
@media (max-width: 720px) { .topbar .tb-left { display: none; } .topbar .container { justify-content: center; } }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--color-bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border); transition: box-shadow .3s var(--ease-out); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand svg { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-body); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; color: var(--color-navy-2); }
[data-theme='dark'] .brand-name { color: #fff; }
.brand-sub { font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 4px; font-weight: 500; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; gap: var(--space-1); align-items: center; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: var(--space-2) var(--space-3); min-height: 44px; font-size: var(--text-sm); font-weight: 500; border-radius: var(--radius-md); color: var(--color-text); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition-interactive); opacity: .7; }
.nav-link:hover, .nav-item.is-open > .nav-link, .nav-link[aria-current='page'] { color: var(--color-primary); }
.nav-link[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--color-gold-bright); border-radius: 0; }
.nav-item.is-open > .nav-link svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); min-width: 560px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-6); opacity: 0; visibility: hidden; transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility .22s; }
.dropdown::before { content: ''; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: var(--space-3); border-radius: var(--radius-md); }
.dropdown a:hover { background: var(--color-surface-2); }
.dropdown a strong { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.dropdown a span { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; line-height: 1.45; }
.dropdown .dd-feature { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--color-border); margin-top: var(--space-2); padding-top: var(--space-4); font-size: var(--text-sm); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--color-text); }
.icon-btn:hover { background: var(--color-surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; }
@media (max-width: 1340px) {
  .burger { display: inline-grid; }
  .header-actions .btn-apply { display: none; }
  .main-nav { position: fixed; inset: calc(var(--header-h) + 38px) 0 0 0; background: var(--color-bg); overflow-y: auto; padding: var(--space-4) clamp(1.25rem, 4vw, 3rem) var(--space-16); transform: translateX(100%); transition: transform .35s var(--ease-out); margin: 0; }
  body.nav-open .main-nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--color-border); }
  .nav-link { width: 100%; justify-content: space-between; font-size: var(--text-base); padding: var(--space-4) 0; }
  .nav-link[aria-current='page'] { box-shadow: none; }
  .dropdown { position: static; transform: none; min-width: 0; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 var(--space-4); grid-template-columns: 1fr; display: none; background: transparent; }
  .nav-item.is-open > .dropdown { display: grid; transform: none; }
  .mobile-cta { display: grid !important; gap: var(--space-3); margin-top: var(--space-6); }
}
.mobile-cta { display: none !important; }

/* ---------- Héros accueil ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: var(--color-on-dark); overflow: hidden; isolation: isolate; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 22, 50, .94) 0%, rgba(7, 22, 50, .78) 38%, rgba(7, 22, 50, .15) 75%), linear-gradient(0deg, rgba(7, 22, 50, .7) 0%, transparent 40%); }
.hero .container { padding-block: clamp(var(--space-16), 12vh, var(--space-32)) clamp(var(--space-12), 8vh, var(--space-20)); }
.hero-content { max-width: 720px; }
.hero h1 { margin: var(--space-5) 0 var(--space-6); }
.hero h1 em { font-style: italic; color: var(--color-gold-bright); }
.hero .lead { color: rgba(247,245,240,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-search { margin-top: var(--space-10); display: flex; max-width: 560px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px; backdrop-filter: blur(10px); }
.hero-search input { flex: 1; background: transparent; border: 0; color: #fff; padding: 0 var(--space-5); font-size: var(--text-sm); min-width: 0; }
.hero-search input::placeholder { color: rgba(255,255,255,.7); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { border-color: var(--color-gold-bright); }

/* ---------- Bandeau chiffres ---------- */
.facts { background: var(--color-navy); color: var(--color-on-dark); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: var(--space-8) var(--space-6); border-left: 1px solid rgba(255,255,255,.1); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: var(--color-gold-bright); line-height: 1.1; }
.fact span { display: block; font-size: var(--text-sm); color: var(--color-on-dark-muted); margin-top: var(--space-2); }
@media (max-width: 860px) { .facts-grid { grid-template-columns: 1fr 1fr; } .fact { padding: var(--space-6) var(--space-4); } .fact:nth-child(3) { border-left: 0; padding-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section-alt { background: var(--color-surface-2); }
.section-dark { background: var(--color-navy); color: var(--color-on-dark); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); margin-bottom: clamp(var(--space-8), 5vw, var(--space-16)); flex-wrap: wrap; }
.section-head .h-section, .section-head .h-page { margin-top: var(--space-4); max-width: 22ch; }
.section-head .lead { max-width: 52ch; }

/* ---------- Domaines (grille asymétrique) ---------- */
.domains { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: var(--space-6); }
.domain-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.domain-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease-out); }
.domain-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,22,50,.92) 0%, rgba(7,22,50,.35) 55%, rgba(7,22,50,.05) 100%); }
.domain-card:hover img { transform: scale(1.04); }
.domain-card .dc-body { padding: var(--space-8); }
.domain-card .dc-tag { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-gold-bright); font-weight: 600; }
.domain-card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); margin: var(--space-2) 0 var(--space-3); line-height: 1.1; }
.domain-card p { font-size: var(--text-sm); color: rgba(255,255,255,.8); max-width: 46ch; }
.domain-card.big { grid-row: span 2; min-height: 620px; }
@media (max-width: 860px) { .domains { grid-template-columns: 1fr; } .domain-card.big { grid-row: auto; min-height: 420px; } }

/* ---------- Cartes programmes ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--space-5); }
.prog-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); min-height: 250px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s; }
.prog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.prog-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; font-size: var(--text-xs); font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text); }
.badge-gold { background: rgba(244,180,0,.16); color: var(--color-gold); }
.prog-card h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.prog-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.prog-card .pc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-4); border-top: 1px solid var(--color-border); font-size: var(--text-xs); color: var(--color-text-muted); }
.prog-card .pc-foot .link-arrow { font-size: var(--text-xs); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); counter-reset: step; }
.step { position: relative; padding-top: var(--space-8); border-top: 1px solid var(--color-border); }
.on-dark .step, .section-dark .step { border-color: rgba(255,255,255,.18); }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; top: calc(-1 * var(--space-1)); left: 0; transform: translateY(-100%); font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-gold); }
.section-dark .step::before { color: var(--color-gold-bright); }
.step h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-3); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }
.section-dark .step p { color: var(--color-on-dark-muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: var(--space-16); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split image / texte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body .h-section { margin: var(--space-4) 0 var(--space-5); }
.check-list { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-6) 0 var(--space-8); }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.check-list li svg { width: 20px; height: 20px; color: var(--color-gold); margin-top: 2px; }
.section-dark .check-list li { color: var(--color-on-dark-muted); }
.section-dark .check-list li svg { color: var(--color-gold-bright); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

/* ---------- Citation pleine largeur ---------- */
.quote-band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.quote-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(7, 22, 50, .8); }
.quote-band .container { padding-block: clamp(var(--space-20), 12vw, 11rem); }
.quote-band blockquote { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.18; font-weight: 400; max-width: 26ch; letter-spacing: -0.01em; }
.quote-band blockquote::before { content: '«\00a0'; color: var(--color-gold-bright); }
.quote-band blockquote::after { content: '\00a0»'; color: var(--color-gold-bright); }
.quote-band figcaption { margin-top: var(--space-8); font-size: var(--text-sm); color: rgba(255,255,255,.78); }
.quote-band figcaption strong { color: #fff; display: block; font-size: var(--text-base); }

/* ---------- ADUN ---------- */
.adun { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-12); align-items: center; }
.adun-map { aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .adun { grid-template-columns: 1fr; } .adun-map { justify-self: center; max-width: 300px; } }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.news-card { display: flex; flex-direction: column; gap: var(--space-3); }
.news-card .nc-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--color-surface-2); }
.news-card .nc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-card:hover .nc-media img { transform: scale(1.03); }
.news-card time, .news-card .nc-cat { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .04em; }
.news-card h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.news-card:hover h3 { color: var(--color-primary); }
.news-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-band { background: var(--color-navy-2); color: #fff; border-radius: var(--radius-xl); padding: clamp(var(--space-10), 6vw, var(--space-20)); display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-8); align-items: center; position: relative; overflow: hidden; }
.cta-band .h-section { max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: var(--space-4); }
.cta-band .cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cta-band .cta-seal { position: absolute; right: -60px; bottom: -60px; width: 260px; opacity: .08; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { background: var(--color-navy); color: var(--color-on-dark); position: relative; overflow: hidden; isolation: isolate; }
.page-hero.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .9; }
.page-hero.has-img::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,22,50,.95) 0%, rgba(7,22,50,.8) 45%, rgba(7,22,50,.35) 100%); }
.page-hero .container { padding-block: clamp(var(--space-16), 9vw, var(--space-24)) clamp(var(--space-12), 6vw, var(--space-20)); }
.page-hero h1 { margin: var(--space-4) 0 var(--space-5); max-width: 20ch; }
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-on-dark-muted); flex-wrap: wrap; list-style: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: '/'; margin-right: var(--space-2); opacity: .5; }

/* Sous-navigation de page */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.subnav ul { display: flex; gap: var(--space-1); list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 54px; padding: 0 var(--space-4); font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--color-text); border-bottom-color: var(--color-gold-bright); }

/* Blocs de contenu */
.two-col { display: grid; grid-template-columns: 280px 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); }
.two-col .col-label { position: sticky; top: calc(var(--header-h) + 90px); align-self: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .two-col .col-label { position: static; } }
.block + .block { margin-top: clamp(var(--space-16), 8vw, var(--space-24)); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.info-card h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); }
.info-card p, .info-card li { font-size: var(--text-sm); color: var(--color-text-muted); }
.info-card ul { padding-left: 1.1em; display: grid; gap: 6px; margin-top: var(--space-2); }
.info-card .ic-num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-gold); line-height: 1; margin-bottom: var(--space-4); display: block; }
.info-card svg.ic { width: 28px; height: 28px; color: var(--color-gold); margin-bottom: var(--space-4); }
.feature-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; background: var(--color-navy); color: #fff; border: 0; }
.feature-wide p { color: var(--color-on-dark-muted); }
@media (max-width: 760px) { .feature-wide { grid-template-columns: 1fr; } }

/* Président */
.president { display: grid; grid-template-columns: 320px 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.president-seal { background: var(--color-navy); border-radius: var(--radius-xl); aspect-ratio: 4/5; display: grid; place-items: center; padding: var(--space-10); color: #fff; text-align: center; }
.president-seal svg { width: 60%; margin: 0 auto var(--space-6); }
.president-seal .ps-name { font-family: var(--font-display); font-size: var(--text-lg); }
.president-seal .ps-role { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--color-gold-bright); margin-top: var(--space-2); }
.president .prose p { font-size: var(--text-base); }
.president .prose p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0; color: var(--color-gold); }
.signature { margin-top: var(--space-8); font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); }
@media (max-width: 860px) { .president { grid-template-columns: 1fr; } .president-seal { aspect-ratio: auto; } }

/* Tableau */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.table-wrap table { font-size: var(--text-sm); min-width: 620px; }
.table-wrap th, .table-wrap td { text-align: left; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.table-wrap th { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; background: var(--color-surface-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; }

/* Accordéon */
.accordion { border-top: 1px solid var(--color-border); }
.accordion details { border-bottom: 1px solid var(--color-border); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5) 0; font-weight: 600; font-size: var(--text-base); min-height: 44px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .acc-ico { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--color-border); display: grid; place-items: center; transition: transform .3s var(--ease-out); }
.accordion summary .acc-ico svg { width: 14px; height: 14px; }
.accordion details[open] summary .acc-ico { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 var(--space-6); color: var(--color-text-muted); font-size: var(--text-sm); }
.accordion .acc-body ul { padding-left: 1.1em; display: grid; gap: 6px; }
.accordion .acc-body p + p { margin-top: var(--space-3); }

/* Catalogue */
.catalog-tools { display: grid; gap: var(--space-5); margin-bottom: var(--space-10); }
.search-field { display: flex; align-items: center; gap: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; padding: 0 var(--space-5); min-height: 54px; max-width: 560px; }
.search-field svg { width: 20px; height: 20px; color: var(--color-text-muted); flex-shrink: 0; }
.search-field input { border: 0; background: transparent; flex: 1; min-width: 0; font-size: var(--text-sm); }
.search-field input:focus { outline: none; }
.search-field:focus-within { border-color: var(--color-primary); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.chips .chips-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-right: var(--space-2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; min-width: 70px; }
.chip { min-height: 40px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--color-border); font-size: var(--text-sm); background: var(--color-surface); color: var(--color-text); }
.chip:hover { border-color: var(--color-text); }
.chip[aria-pressed='true'] { background: var(--color-navy-2); border-color: var(--color-navy-2); color: #fff; }
[data-theme='dark'] .chip[aria-pressed='true'] { background: var(--color-gold-bright); border-color: var(--color-gold-bright); color: #0A2552; }
.result-count { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.empty-state { text-align: center; padding: var(--space-16) var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }
.empty-state h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }

/* Page programme */
.prog-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.prog-aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.prog-aside dl { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.prog-aside dt { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.prog-aside dd { font-size: var(--text-sm); font-weight: 600; margin-top: 2px; }
.prog-aside .btn { width: 100%; }
.prog-aside .btn + .btn { margin-top: var(--space-3); }
.prog-section + .prog-section { margin-top: var(--space-16); }
.prog-section h2 { margin-bottom: var(--space-5); }
.obj-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.obj-list li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; }
.obj-list li strong { display: block; color: var(--color-text); margin-bottom: 4px; font-size: var(--text-sm); }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.pill-list li { font-size: var(--text-sm); padding: 8px 14px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); }
@media (max-width: 960px) { .prog-layout { grid-template-columns: 1fr; } .prog-aside { position: static; order: -1; } .obj-list { grid-template-columns: 1fr; } }

/* Formulaires */
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-12)); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); color: var(--color-text); font-size: var(--text-sm); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(11,61,145,.14); }
.field input[type='file'] { padding: var(--space-3); background: var(--color-surface-2); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.field .err { color: #B42318; font-size: var(--text-xs); margin-top: 6px; display: none; }
[data-theme='dark'] .field .err { color: #FF8A80; }
.field.invalid .err { display: block; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-navy-2); flex-shrink: 0; }
.stepper { display: flex; gap: var(--space-2); margin-bottom: var(--space-10); list-style: none; counter-reset: s; }
.stepper li { flex: 1; font-size: var(--text-xs); color: var(--color-text-muted); padding-top: var(--space-3); border-top: 3px solid var(--color-border); font-weight: 600; letter-spacing: .02em; }
.stepper li.is-done, .stepper li.is-current { border-color: var(--color-gold-bright); color: var(--color-text); }
.stepper li span { display: block; font-weight: 400; }
@media (max-width: 640px) { .stepper li span { display: none; } }
.form-step { display: none; }
.form-step.is-active { display: block; animation: fadeUp .45s var(--ease-out); }
.form-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.form-success { display: none; text-align: center; padding: var(--space-12) var(--space-4); }
.form-success.is-visible { display: block; animation: fadeUp .5s var(--ease-out); }
.form-success svg { width: 64px; height: 64px; margin: 0 auto var(--space-6); color: var(--color-gold); }
.form-success h2 { margin-bottom: var(--space-3); }
.form-success p { margin-inline: auto; color: var(--color-text-muted); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.contact-list { list-style: none; display: grid; gap: var(--space-6); margin-top: var(--space-8); }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-4); }
.contact-list svg { width: 22px; height: 22px; color: var(--color-gold); margin-top: 2px; }
.contact-list strong { display: block; font-size: var(--text-sm); }
.contact-list span, .contact-list a { font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-list a:hover { color: var(--color-primary); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Connexion */
.login-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 38px); }
.login-media { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: var(--space-12); isolation: isolate; }
.login-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.login-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,22,50,.92), rgba(7,22,50,.2)); z-index: -1; }
.login-form { display: grid; place-items: center; padding: var(--space-12) clamp(1.25rem, 5vw, var(--space-16)); }
.login-form form { width: 100%; max-width: 420px; display: grid; gap: var(--space-5); }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-media { min-height: 260px; } }

/* Événements */
.event-list { display: grid; gap: var(--space-4); }
.event { display: grid; grid-template-columns: 100px 1fr auto; gap: var(--space-6); align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); }
.event .ev-date { text-align: center; border-right: 1px solid var(--color-border); padding-right: var(--space-6); }
.event .ev-date strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; color: var(--color-gold); }
.event .ev-date span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted); }
.event h3 { font-size: var(--text-base); font-weight: 600; }
.event p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 4px; }
@media (max-width: 720px) { .event { grid-template-columns: 76px 1fr; } .event .btn { grid-column: 1 / -1; } .event .ev-date { padding-right: var(--space-4); } }

/* ---------- Pied de page ---------- */
.site-footer { background: #071632; color: var(--color-on-dark-muted); font-size: var(--text-sm); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-10); padding-block: var(--space-20) var(--space-12); }
.footer-brand p { margin-top: var(--space-5); max-width: 34ch; font-size: var(--text-sm); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--color-on-dark-muted); }
.site-footer h2 { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: var(--space-5); }
.site-footer ul { list-style: none; display: grid; gap: var(--space-3); }
.site-footer a:hover { color: #fff; }
.newsletter { display: flex; margin-top: var(--space-6); max-width: 360px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px; }
.newsletter input { flex: 1; background: transparent; border: 0; padding: 0 var(--space-4); color: #fff; min-width: 0; font-size: var(--text-sm); }
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.newsletter input:focus { outline: none; }
.newsletter .btn { min-height: 42px; padding: 0 var(--space-5); }
.newsletter-msg { font-size: var(--text-xs); margin-top: var(--space-3); color: var(--color-gold-bright); min-height: 1em; }
.socials { display: flex; gap: var(--space-2); margin-top: var(--space-6); }
.socials a { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.socials a:hover { border-color: var(--color-gold-bright); color: var(--color-gold-bright); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--space-6); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); }
.footer-bottom nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-tricolor { display: flex; height: 3px; } .footer-tricolor i { flex: 1; } .footer-tricolor i:nth-child(1){background:#F77F00} .footer-tricolor i:nth-child(2){background:#fff} .footer-tricolor i:nth-child(3){background:#009E60}
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Mentions */
.legal h2 { font-size: var(--text-lg); font-weight: 600; margin: var(--space-10) 0 var(--space-3); }
.legal p, .legal li { color: var(--color-text-muted); font-size: var(--text-sm); }
.legal ul { padding-left: 1.1em; display: grid; gap: 6px; }
.legal p + p { margin-top: var(--space-3); }

.cookie { position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); max-width: 520px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-5); z-index: 80; font-size: var(--text-sm); display: none; }
.cookie.is-visible { display: block; animation: fadeUp .4s var(--ease-out); }
.cookie p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.cookie .cookie-actions { display: flex; gap: var(--space-2); }
.cookie .btn { min-height: 42px; }
.wa-float { position: fixed; right: var(--space-5); bottom: var(--space-5); width: 56px; height: 56px; border-radius: 999px; background: #1F9D55; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 70; }
.wa-float:hover { background: #17864A; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Correctifs responsive ---------- */
html, body { overflow-x: clip; }
.nav-link { white-space: nowrap; }
.nav-item:nth-last-child(-n+3) > .dropdown { left: auto; right: 0; transform: translate(0, 6px); }
.nav-item:nth-last-child(-n+3).is-open > .dropdown { transform: translate(0, 0); }
.pc-foot .link-arrow { white-space: nowrap; }
.cookie .cookie-actions { flex-wrap: wrap; }
@media (max-width: 1340px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--color-bg); }
  .burger { display: inline-grid; }
  .header-actions .btn-apply { display: none; }
  .main-nav { position: fixed; top: calc(var(--header-h) + 38px); left: 0; right: 0; bottom: 0; background: var(--color-bg); overflow-y: auto; padding: var(--space-4) clamp(1.25rem, 4vw, 3rem) var(--space-16); transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease-out), visibility .35s; margin: 0; }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--color-border); }
  .nav-link { width: 100%; justify-content: space-between; font-size: var(--text-base); padding: var(--space-4) 0; }
  .nav-link[aria-current='page'] { box-shadow: none; }
  .dropdown, .nav-item:nth-last-child(-n+3) > .dropdown { position: static; transform: none; min-width: 0; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 var(--space-4); grid-template-columns: 1fr; display: none; background: transparent; }
  .nav-item.is-open > .dropdown, .nav-item:nth-last-child(-n+3).is-open > .dropdown { display: grid; transform: none; }
  .dropdown .dd-feature { display: none; }
  .mobile-cta { display: grid !important; gap: var(--space-3); margin-top: var(--space-6); }
}
@media (max-width: 720px) {
  .topbar nav a[href^="tel"], .topbar nav a[href*="entreprises"] { display: none; }
  .brand-sub { font-size: 0.6rem; }
}
@media (max-width: 380px) { .brand-sub { display: none; } }
@media (min-width: 1341px) and (max-width: 1679px) {
  .nav-link { padding: var(--space-2) 10px; }
  .main-nav > ul { gap: 0; }
  .brand-sub { display: none; }
}
[hidden] { display: none !important; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.form-step select, .form-step input, .form-step textarea { max-width: 100%; }
@media (max-width: 520px) { .step-nav, .form-nav { flex-wrap: wrap; } .step-nav .btn, .form-nav .btn { flex: 1 1 auto; } }
/* En-tête élargi sur grands écrans (menu Services en ligne) */
@media (min-width: 1341px) and (max-width: 1679px) { .nav-link { padding: var(--space-2) 8px; } }
@media (min-width: 1680px) { .nav-link { padding: var(--space-2) 8px; } .main-nav > ul { gap: 0; } .site-header .brand-sub { display: none; } }
