/* ===== ANA - Agence Nationale de la Navigation Aérienne ===== */
/* ---- Design tokens ---- */
:root {
  --navy-950: #050b18;
  --navy-900: #071229;
  --navy-800: #0b1c3d;
  --navy-700: #123058;
  --navy-600: #1a4278;
  --blue-500: #2e6fd6;
  --blue-400: #4a8bef;
  --sky-100: #eaf2ff;
  --gold-500: #e8a93b;
  --gold-400: #f2bd5c;
  --green-ok: #2fae6c;
  --red-alert: #d94d4d;
  --white: #ffffff;
  --ink: #0d1526;
  --ink-soft: #4a5568;
  --border-soft: rgba(13, 21, 38, 0.08);
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-md: 0 8px 24px rgba(7, 18, 41, 0.10);
  --shadow-lg: 0 20px 50px rgba(7, 18, 41, 0.18);
  --container: 1180px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--sky-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--navy-900); }
.section-head p { font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---- Top bar ---- */
.topbar {
  background: var(--navy-950);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-country { font-weight: 700; color: var(--gold-400); letter-spacing: .03em; white-space: nowrap; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a:hover { color: var(--gold-400); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bfe8cf;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-ok); box-shadow: 0 0 0 3px rgba(47,174,108,.25); }

/* ---- Sélecteur de langue FR | EN (inséré par js/i18n.js) ---- */
.topbar .lang-switch { display: inline-flex; margin-left: auto; margin-right: 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; border: 0; color: rgba(255,255,255,.75);
  font: inherit; font-size: .76rem; font-weight: 700; letter-spacing: .05em;
  padding: 3px 12px; cursor: pointer;
}
.lang-switch button:hover { color: var(--gold-400); }
.lang-switch button.active { background: var(--gold-500); color: var(--navy-950); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--navy-900); letter-spacing: .01em; }
.brand-text span { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.brand-logo { height: 56px; width: auto; display: block; }
.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
}
.footer-logo-badge .brand-logo { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-800);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--sky-100); color: var(--blue-500); }
.nav-links a.active { background: var(--navy-900); color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Dropdown nav (L'Agence / Services) ---- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  font-family: inherit;
  color: var(--navy-800);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-toggle svg { transition: transform .15s ease; }
.nav-dropdown-toggle:hover { background: var(--sky-100); color: var(--blue-500); }
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle { background: var(--navy-900); color: var(--white); }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy-800);
}
.nav-dropdown-menu a:hover { background: var(--sky-100); color: var(--blue-500); }
.nav-dropdown-menu a.active { background: var(--sky-100); color: var(--blue-500); }
.nav-dropdown-menu .divider { height: 1px; background: var(--border-soft); margin: 6px 6px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(74,139,239,.35), transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5) 0, transparent 100%),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,.35) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.3) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 20%, rgba(255,255,255,.4) 0, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Hero sky: clouds + flying plane animation ---- */
.hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-cloud {
  position: absolute;
  width: 240px;
  opacity: .16;
  filter: blur(.3px);
  animation: hero-cloud-drift linear infinite;
}
.hero-cloud path { fill: #ffffff; }
.hero-cloud.c1 { top: 12%;  width: 260px; opacity: .14; animation-duration: 70s; animation-delay: -8s; }
.hero-cloud.c2 { top: 32%;  width: 180px; opacity: .12; animation-duration: 95s; animation-delay: -40s; }
.hero-cloud.c3 { top: 6%;   width: 150px; opacity: .18; animation-duration: 60s; animation-delay: -22s; }
.hero-cloud.c4 { top: 55%;  width: 210px; opacity: .10; animation-duration: 110s; animation-delay: -65s; }
.hero-cloud.c5 { top: 42%;  width: 130px; opacity: .15; animation-duration: 80s; animation-delay: -5s; }
@keyframes hero-cloud-drift {
  from { left: -20%; }
  to   { left: 115%; }
}

.hero-plane {
  position: absolute;
  width: 54px;
  color: var(--gold-400);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
  animation: hero-plane-fly 17s ease-in-out infinite;
}
.hero-plane svg { display: block; width: 100%; height: auto; }
.hero-plane::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 160px;
  height: 2px;
  background: linear-gradient(to left, rgba(255,255,255,.5), transparent);
  transform: translateY(-50%);
}
@keyframes hero-plane-fly {
  0%   { left: -12%; top: 11%; transform: rotate(-6deg) scale(.85); opacity: 0; }
  10%  { opacity: 1; }
  50%  { left: 48%;  top: 3%;  transform: rotate(-10deg) scale(1); }
  90%  { opacity: 1; }
  100% { left: 112%; top: 13%; transform: rotate(-6deg) scale(1.08); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cloud, .hero-plane { animation: none; }
  .hero-plane { left: 48%; top: 30%; opacity: 1; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 96px 0 80px;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.hero h1 em { color: var(--gold-400); font-style: normal; }
.hero p.lead { color: rgba(255,255,255,.8); font-size: 1.12rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
  max-width: 560px;
}
.hero-stats div strong { display: block; font-size: 1.7rem; color: var(--gold-400); }
.hero-stats div span { font-size: .8rem; color: rgba(255,255,255,.7); }

.radar-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(6px);
}
.radar-scope {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,174,108,.12) 0%, rgba(5,11,24,.9) 72%);
  border: 1px solid rgba(74,139,239,.4);
  overflow: hidden;
}
.radar-scope::before, .radar-scope::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(74,139,239,.25);
  border-radius: 50%;
}
.radar-scope::before { inset: 16%; }
.radar-scope::after { inset: 34%; }
.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(47,174,108,.55), transparent 30%);
  animation: sweep 4s linear infinite;
  border-radius: 50%;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-blip {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(242,189,92,.6);
}
.radar-card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
}

/* ---- Ticker (NOTAM style) ---- */
.ticker {
  background: var(--navy-900);
  color: var(--sky-100);
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 60px;
  padding: 10px 0;
  animation: ticker 28s linear infinite;
}
.ticker-inner span { font-size: .82rem; color: rgba(255,255,255,.75); }
.ticker-inner b { color: var(--gold-400); margin-right: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Cards / Grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sky-100);
  color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; color: var(--navy-900); }
.card p { margin-bottom: 0; font-size: .95rem; }
.card .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue-500);
  background: var(--sky-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---- Mission band (dark) ---- */
.band-dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.band-dark p { color: rgba(255,255,255,.72); }
.band-dark .section-head h2 { color: var(--white); }

/* ---- Stats strip ---- */
.stats-strip {
  background: var(--sky-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip strong { display: block; font-size: 2.2rem; color: var(--navy-900); }
.stats-strip span { font-size: .85rem; color: var(--ink-soft); }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--border-soft); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--border-soft);
}
.timeline-item h4 { color: var(--navy-900); margin-bottom: 4px; }
.timeline-item .year { color: var(--blue-500); font-weight: 700; font-size: .85rem; }

/* ---- Org chart list ---- */
.org-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.org-item {
  display: flex; gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.org-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); margin-top: 6px; flex-shrink: 0; }
.org-item h4 { margin-bottom: 4px; font-size: .98rem; color: var(--navy-900); }
.org-item p { margin: 0; font-size: .88rem; }

/* ---- Portail partenaire : documents ---- */
.doc-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.doc-filter-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.doc-filter-chip:hover { border-color: var(--blue-500); color: var(--blue-500); }
.doc-filter-chip.active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.doc-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.doc-item:last-child { border-bottom: none; }
.doc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--sky-100);
  color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-item .doc-body { flex: 1; min-width: 0; }
.doc-item h4 { margin-bottom: 2px; font-size: .95rem; color: var(--navy-900); }
.doc-meta { margin: 0; font-size: .8rem; color: var(--ink-soft); }
.doc-download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-500);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  transition: background .15s ease, border-color .15s ease;
}
.doc-download:hover { background: var(--sky-100); border-color: transparent; }

/* ---- News ---- */
.news-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); transition: box-shadow .18s ease, transform .18s ease; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  position: relative;
}
.news-thumb .badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(5,11,24,.55);
  color: var(--white);
  font-size: .72rem;
  padding: 5px 10px;
  border-radius: 999px;
}
.news-body { padding: 22px; }
.news-date { font-size: .78rem; color: var(--ink-soft); margin-bottom: 6px; display: block; }
.news-body h3 { font-size: 1.02rem; margin-bottom: 8px; }
.news-body a.readmore { color: var(--blue-500); font-weight: 700; font-size: .88rem; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--white);
  transition: all .15s ease;
}
.filter-chip.active, .filter-chip:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* ---- Agenda / events ---- */
.event-list { display: flex; flex-direction: column; gap: 16px; }
.event-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-date {
  flex-shrink: 0;
  width: 74px;
  text-align: center;
  background: var(--sky-100);
  border-radius: var(--radius-md);
  padding: 10px 6px;
}
.event-date strong { display: block; font-size: 1.5rem; color: var(--navy-900); line-height: 1; }
.event-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-500); font-weight: 700; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--navy-900); }
.event-body p { margin: 0; font-size: .92rem; }
.event-meta { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.event-tag {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--blue-500);
  white-space: nowrap;
}

/* ---- Sub-page hub cards ---- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hub-card .card-icon { margin-bottom: 18px; }
.hub-card h3 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 8px; }
.hub-card p { flex: 1; }
.hub-card .readmore { color: var(--blue-500); font-weight: 700; font-size: .88rem; margin-top: 12px; display: inline-block; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.7rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; max-width: 440px; }

/* ---- Forms ---- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: .95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(46,111,214,.14);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  margin-bottom: 20px;
}
.form-alert.show { display: block; }
.form-alert.info { background: var(--sky-100); color: var(--navy-800); border: 1px solid rgba(46,111,214,.2); }
.form-alert.success { background: #e8f8ee; color: #1c6b45; border: 1px solid rgba(47,174,108,.3); }

/* ---- Login / Espace Pro ---- */
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.login-aside {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-aside ul { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.login-aside li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.85); font-size: .92rem; }
.login-form-wrap { padding: 56px; background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.login-tabs { display: flex; gap: 8px; margin-bottom: 28px; background: var(--sky-100); padding: 5px; border-radius: 999px; }
.login-tab { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--ink-soft); }
.login-tab.active { background: var(--navy-900); color: var(--white); }
.form-links { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; margin-top: -8px; margin-bottom: 20px; }
.form-links a { color: var(--blue-500); font-weight: 600; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.map-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  height: 260px;
  background: linear-gradient(135deg, var(--sky-100), #dbe9ff);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-500);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.map-block:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.65); }
.footer-top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-top h4 { color: var(--white); font-size: .92rem; margin-bottom: 18px; }
.footer-top ul { display: flex; flex-direction: column; gap: 10px; }
.footer-top a:hover { color: var(--gold-400); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,.1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem;
}
.footer-bottom a:hover { color: var(--gold-400); }

/* ---- Page header (sub pages) ---- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-700));
  color: var(--white);
  padding: 64px 0;
}
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.breadcrumb span { color: var(--gold-400); }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,.75); max-width: 620px; margin: 0; }

/* ---- Notice banner ---- */
.notice-banner {
  background: #fff6e6;
  border: 1px solid rgba(232,169,59,.35);
  color: #6b4a10;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: .85rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ---- Utilities ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: .85rem; color: var(--ink-soft); }

/* ---- Page indisponible (rubrique désactivée depuis le back office) ---- */
.page-unavailable-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.page-unavailable-overlay.show { display: flex; flex-direction: column; }
.page-unavailable-overlay h1 { font-size: 1.8rem; margin-bottom: 12px; }
.page-unavailable-overlay p { color: rgba(255,255,255,.7); max-width: 460px; margin: 0 auto 24px; }

/* ================= Responsive ================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .radar-card { max-width: 420px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .org-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-outline-topbar { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-links a { padding: 12px 10px; }
  .site-header.open .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 10px;
  }
  .site-header.open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 4px 14px;
    display: none;
  }
  .site-header.open .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
  }
  .topbar-links { display: none; }
  .grid-3, .grid-2, .grid-4, .stats-strip, .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta-band { padding: 36px; flex-direction: column; text-align: center; }
  .login-form-wrap { padding: 32px 24px; }
}

/* ---- Galerie publique ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--sky-100);
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
  font: inherit;
  text-align: left;
  transition: box-shadow .18s ease, transform .18s ease;
}
.gallery-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-video-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.gallery-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(5,11,24,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.gallery-card-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(5,11,24,.85), transparent);
  color: #fff; font-size: .88rem; font-weight: 600;
}

/* Visionneuse plein écran */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(5,11,24,.92);
  align-items: center; justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 1100px; width: 100%; max-height: 85vh; }
.lightbox-content img { width: 100%; height: 100%; max-height: 85vh; object-fit: contain; display: block; margin: 0 auto; }
.lightbox-content iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; display: block; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3);
  font-size: 1.1rem; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
