/* ============================================================
   IAT NIGER — Design System 2026
   Tokens · Reset · Typographie · Composants · Dark mode · Responsive
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Marque */
  --primary: #2239a8;
  --primary-strong: #1b2d8a;
  --primary-deep: #141f66;
  --primary-soft: #e8ecfb;
  --accent: #f7941e;
  --accent-strong: #e07f0a;
  --accent-soft: #fef1e0;

  /* Neutres */
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f0f2fa;
  --border: #e3e7f2;
  --text: #131a31;
  --text-2: #3d4562;
  --muted: #5a6280;

  /* États */
  --success: #16a34a;
  --success-soft: #e8f7ee;
  --warning: #d97706;
  --danger: #dc2626;
  --danger-soft: #fdeaea;

  /* Élévations */
  --shadow-sm: 0 1px 2px rgb(19 26 49 / 0.06);
  --shadow-md: 0 6px 24px -8px rgb(19 26 49 / 0.14);
  --shadow-lg: 0 20px 50px -16px rgb(19 26 49 / 0.22);
  --shadow-glow: 0 8px 32px -8px rgb(34 57 168 / 0.35);

  /* Rayons & rythme */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --container: 1200px;
  --nav-h: 76px;

  /* Typographie */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Mouvements */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms var(--ease);
  --t-med: 320ms var(--ease);

  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #6d84f5;
  --primary-strong: #8b9df7;
  --primary-deep: #0e1440;
  --primary-soft: #1a2350;
  --accent: #ffa53b;
  --accent-strong: #ffb85e;
  --accent-soft: #33250f;

  --bg: #0b1020;
  --surface: #131a31;
  --surface-2: #1a2240;
  --border: #26304f;
  --text: #e8ecf8;
  --text-2: #c0c8e2;
  --muted: #9aa3c0;

  --success: #34d399;
  --success-soft: #0d2b1e;
  --danger: #f87171;
  --danger-soft: #331416;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 6px 24px -8px rgb(0 0 0 / 0.55);
  --shadow-lg: 0 20px 50px -16px rgb(0 0 0 / 0.65);
  --shadow-glow: 0 8px 32px -8px rgb(109 132 245 / 0.35);

  color-scheme: dark;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color var(--t-med), color var(--t-med);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-strong); }
ul[class], ol[class] { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 3. TYPOGRAPHIE ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.display { font-size: clamp(2.75rem, 6vw, 4.5rem); }
h1, .h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }
.caption { font-size: 0.85rem; color: var(--muted); }
.text-center { text-align: center; }

/* ---------- 4. LAYOUT ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--surface); }

/* Bandeau CSP Algoza — bleu marque IAT */
.section-csp {
  position: relative;
  background:
    radial-gradient(900px 420px at 92% 10%, rgb(247 148 30 / 0.22), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgb(255 255 255 / 0.08), transparent 50%),
    linear-gradient(125deg, var(--primary-deep) 0%, var(--primary) 52%, #2a48c0 100%);
  color: #fff;
  overflow: hidden;
}
.section-csp::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(20 31 102 / 0.35) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.section-csp-inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
}
.section-csp-copy .kicker {
  color: #221503; background: var(--accent);
  margin-bottom: 1.2rem;
}
.section-csp-copy h2 {
  color: #fff; font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.2; max-width: 18ch;
}
.section-csp-copy .lead {
  margin-top: 1.1rem; color: rgb(255 255 255 / 0.86);
  max-width: 38ch; font-size: 1.05rem;
}
.section-csp-copy .check-list {
  margin-top: 1.6rem; margin-bottom: 0.4rem;
}
.section-csp-copy .check-list li { color: rgb(255 255 255 / 0.92); }
.section-csp-copy .check-list svg { color: var(--accent); }
.section-csp-copy .hero-actions { margin-top: 1.8rem; }
.section-csp-visual { position: relative; }
.section-csp-frame {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 50px -18px rgb(8 12 40 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.06);
}
.section-csp-frame img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 7 / 5; object-fit: cover;
}
.section-csp-badge {
  position: absolute; left: -0.6rem; bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.1rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 0.55);
  box-shadow: var(--shadow-md); color: var(--text); max-width: min(100%, 260px);
}
.section-csp-badge svg { color: var(--accent); flex-shrink: 0; }
.section-csp-badge strong {
  display: block; font-family: var(--font-display); font-size: 0.95rem; line-height: 1.2;
}
.section-csp-badge small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }

@media (max-width: 900px) {
  .section-csp-inner { grid-template-columns: 1fr; }
  .section-csp-copy h2 { max-width: none; }
  .section-csp-badge { left: 0.8rem; right: 0.8rem; bottom: 0.8rem; max-width: none; }
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary); background: var(--primary-soft);
  padding: 0.4rem 0.9rem; border-radius: var(--radius-full);
  margin-bottom: 1.1rem;
}
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* ---------- 5. ACCESSIBILITÉ ---------- */
.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 200;
  background: var(--primary); color: #fff; padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- 6. BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-full);
  border: 2px solid transparent; white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.02rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
.btn-accent { background: var(--accent); color: #221503; box-shadow: 0 8px 28px -8px rgb(247 148 30 / 0.5); }
.btn-accent:hover { background: var(--accent-strong); color: #221503; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { border-color: rgb(255 255 255 / 0.35); color: #fff; }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.12); color: #fff; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-full);
  color: var(--text-2); transition: background-color var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--primary); }

/* ---------- 7. NAVBAR ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), box-shadow var(--t-med), background-color var(--t-med);
}
.navbar.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.navbar-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.brand img { width: 120px; height: auto; }
[data-theme="dark"] .brand img { filter: brightness(1.15) drop-shadow(0 0 1px rgb(255 255 255 / 0.4)); }

.nav-main { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.94rem;
  color: var(--text-2); padding: 0.55rem 0.85rem; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-list > li > a:hover, .nav-list > li > button:hover,
.nav-list > li > a[aria-current="page"], .nav-list > li > button.is-active { color: var(--primary); background: var(--primary-soft); }
.nav-list > li > button svg { transition: transform var(--t-fast); }
.nav-list > li > button[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.nav-main + .nav-actions { margin-left: 0; }
.btn-nav { padding: 0.6rem 1.3rem; font-size: 0.9rem; }
.nav-burger { display: none; }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-menu { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }

#theme-toggle .icon-moon { display: none; }
[data-theme="dark"] #theme-toggle .icon-sun { display: none; }
[data-theme="dark"] #theme-toggle .icon-moon { display: block; }

/* Dropdowns */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.6rem; display: grid; gap: 0.15rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.has-dropdown.open .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) and (min-width: 1025px) {
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
}
.dropdown a {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); color: var(--text);
  transition: background-color var(--t-fast);
}
.dropdown a:hover { background: var(--primary-soft); }
.dropdown a svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.dropdown a strong { display: block; font-size: 0.92rem; font-weight: 600; }
.dropdown a small { color: var(--muted); font-size: 0.8rem; }

/* Vignette photo en pied de dropdown */
.dropdown .dropdown-promo {
  margin-top: 0.35rem; padding: 0.55rem;
  border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  align-items: center; gap: 0.9rem;
}
.dropdown-promo img {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  object-fit: cover; object-position: top center; flex-shrink: 0; margin: 0;
}
.dropdown-promo span strong { font-size: 0.9rem; }
.dropdown-promo span small { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--primary); font-weight: 600; }

/* Mega menu */
.has-mega { position: static; }
.dropdown.mega {
  left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(860px, calc(100vw - 2rem)); padding: 1.1rem;
}
.has-dropdown.open .dropdown.mega, .has-dropdown:focus-within .dropdown.mega { transform: translateX(-50%) translateY(0); }
@media (hover: hover) and (min-width: 1025px) {
  .has-mega:hover .dropdown.mega { transform: translateX(-50%) translateY(0); }
}
.mega-wrap { display: grid; grid-template-columns: 1fr 235px; gap: 0.9rem; align-items: stretch; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; }

/* Panneau photo du mega menu */
.mega-promo {
  position: relative; display: flex; border-radius: var(--radius); overflow: hidden;
  min-height: 250px; box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.mega-promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mega-promo-body {
  position: relative; margin-top: auto; width: 100%;
  display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start;
  padding: 2.2rem 1rem 1rem;
  background: linear-gradient(transparent, rgb(10 14 35 / 0.88) 55%);
  color: #fff;
}
.mega-promo-body strong { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.3; }
.mega-promo-body small { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent); font-weight: 600; font-size: 0.82rem; }
.mega-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.mega-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mega-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary); margin-bottom: 0.35rem;
}
.mega-card strong { font-family: var(--font-display); font-size: 0.98rem; }
.mega-card small { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.mega-footer {
  display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; padding: 0.9rem 0.5rem 0.2rem;
  border-top: 1px solid var(--border);
}
.mega-footer a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }

/* ---------- 8. HERO ACCUEIL ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgb(247 148 30 / 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgb(34 57 168 / 0.14), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero h1 { margin: 1.2rem 0; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--primary) 20%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.6rem; }
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.hero-trust svg { color: var(--success); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual .hero-img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  object-fit: cover; object-position: top center; width: 100%; height: 100%;
}

/* Diaporama automatique du hero (fondu enchaîné) */
.hero-slider {
  position: relative; border-radius: var(--radius-lg);
  aspect-ratio: 16 / 11; width: 100%;
}
/* Sur grand écran, le diaporama s'étend jusqu'au bord droit de la fenêtre */
@media (min-width: 1025px) {
  /* Le diaporama déborde du conteneur mais garde une respiration avec le bord droit */
  .hero-visual { margin-right: calc((min(100vw - 2.5rem, 1200px) - 100vw) / 2 + 1.75rem); }
  .hero-slider {
    aspect-ratio: auto;
    height: clamp(440px, 46vw, 660px);
  }
  .hero-card-2 { right: 1.8rem; }
}
.hero-slider .hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.hero-slider .hero-img.is-active { opacity: 1; z-index: 1; }
.hero-slider-dots {
  position: absolute; z-index: 2; bottom: 0.9rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.45rem;
  background: rgb(8 10 22 / 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 0.4rem 0.6rem; border-radius: var(--radius-full);
}
.hero-slider-dots button {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: rgb(255 255 255 / 0.45);
  transition: background-color var(--t-fast), width var(--t-med);
}
.hero-slider-dots button:hover { background: rgb(255 255 255 / 0.8); }
.hero-slider-dots button.is-active { background: var(--accent); width: 22px; border-radius: var(--radius-full); }
@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-img { transition: opacity 0.01ms; }
}
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 0.8rem;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1.2rem; box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.hero-card strong { font-family: var(--font-display); font-size: 1.05rem; display: block; line-height: 1.2; }
.hero-card small { color: var(--muted); font-size: 0.8rem; }
.hero-card svg { color: var(--accent); }
.hero-card-1 { top: 8%; left: -1.5rem; }
.hero-card-2 { bottom: 8%; right: -1rem; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 9. STATISTIQUES ---------- */
.stats-band { background: linear-gradient(115deg, var(--primary-deep), var(--primary-strong)); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding-block: 3.5rem; }
.stat { text-align: center; color: #fff; }
.stat-value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1;
}
.stat-value .suffix { color: var(--accent); }
.stat-label { margin-top: 0.5rem; color: rgb(255 255 255 / 0.75); font-size: 0.95rem; }

/* ---------- 10. CARDS ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--primary-soft); color: var(--primary); margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: 600; font-size: 0.92rem; }
.card .card-link svg { transition: transform var(--t-fast); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Card formation */
.formation-card { display: flex; flex-direction: column; }
.formation-card .badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.formation-card p { flex: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.28rem 0.7rem; border-radius: var(--radius-full);
}
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); }
.badge-success { background: var(--success-soft); color: var(--success); }

/* ---------- 11. LISTE À COCHES ---------- */
.check-list { display: grid; gap: 0.8rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.check-list svg { color: var(--success); flex-shrink: 0; margin-top: 4px; }

/* ---------- MOT DU FONDATEUR (accueil) ---------- */
.fondateur-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: linear-gradient(125deg, var(--primary-deep) 0%, var(--primary-strong) 70%, #2d47c4 100%);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4.5vw, 3.5rem);
  box-shadow: var(--shadow-lg); color: #fff;
}
/* Halo décoratif orange en arrière-plan */
.fondateur-panel::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgb(247 148 30 / 0.35), transparent 65%);
  pointer-events: none;
}
.fondateur-panel::after {
  content: ""; position: absolute; left: -80px; bottom: -140px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.08), transparent 65%);
  pointer-events: none;
}
.fondateur-photo { position: relative; z-index: 1; }
.fondateur-photo img {
  width: 100%; border-radius: var(--radius);
  border: 4px solid rgb(255 255 255 / 0.18);
  box-shadow: 0 24px 48px -18px rgb(0 0 0 / 0.5);
}
.fondateur-plaque {
  position: absolute; left: 50%; bottom: -1.1rem; transform: translateX(-50%);
  width: max-content; max-width: 95%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--accent); color: #221503;
  padding: 0.55rem 1.4rem; border-radius: var(--radius-full);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.45);
}
.fondateur-plaque strong { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.2; }
.fondateur-plaque small { font-size: 0.75rem; font-weight: 600; }
.fondateur-content { position: relative; z-index: 1; }
.fondateur-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); background: rgb(247 148 30 / 0.14);
  border: 1px solid rgb(247 148 30 / 0.35);
  padding: 0.4rem 0.95rem; border-radius: var(--radius-full);
  margin-bottom: 1.1rem;
}
.fondateur-content h2 { color: #fff; margin-bottom: 1.3rem; font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
.fondateur-citation {
  position: relative; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.75;
  color: rgb(255 255 255 / 0.92); font-style: italic;
  padding-left: 1.2rem; border-left: 3px solid var(--accent);
  margin-bottom: 1.1rem;
}
.fondateur-texte { color: rgb(255 255 255 / 0.75); line-height: 1.75; margin-bottom: 1.6rem; }
.fondateur-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.fondateur-points { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.fondateur-points li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; color: rgb(255 255 255 / 0.85); }
.fondateur-points svg { color: var(--accent); }
@media (max-width: 820px) {
  .fondateur-panel { grid-template-columns: 1fr; }
  .fondateur-photo { max-width: 300px; margin-inline: auto; margin-bottom: 1.4rem; }
}

/* ---------- TÉMOIGNAGES (panneau bleu du logo, harmonisé avec le fondateur) ---------- */
.temoignages-section {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, var(--primary-deep) 0%, var(--primary-strong) 70%, #2d47c4 100%);
  color: #fff;
}
.temoignages-section::before {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgb(247 148 30 / 0.28), transparent 65%);
  pointer-events: none;
}
.temoignages-section::after {
  content: ""; position: absolute; left: -100px; bottom: -160px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.07), transparent 65%);
  pointer-events: none;
}
.temoignages-section .container { position: relative; z-index: 1; }
.temoignages-section h2 { color: #fff; }
.temoignages-section .kicker {
  color: var(--accent); background: rgb(247 148 30 / 0.14);
  border: 1px solid rgb(247 148 30 / 0.35);
}
.temoignages-section .testimonial {
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: none;
}
.temoignages-section .testimonial:hover {
  background: rgb(255 255 255 / 0.11);
  border-color: rgb(247 148 30 / 0.5);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.45);
}
.temoignages-section .testimonial blockquote { color: rgb(255 255 255 / 0.92); }
.temoignages-section .testimonial-author strong { color: #fff; }
.temoignages-section .testimonial-author small { color: rgb(255 255 255 / 0.62); }
.temoignages-section .testimonial-author .avatar {
  background: rgb(247 148 30 / 0.2); color: var(--accent);
  border: 1px solid rgb(247 148 30 / 0.4);
}
.temoignages-section .carousel-controls .icon-btn {
  background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.25); color: #fff;
}
.temoignages-section .carousel-controls .icon-btn:hover {
  background: var(--accent); border-color: var(--accent); color: #221503;
}

/* ---------- GALERIE ACCUEIL (grille 2 lignes) ---------- */
.home-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.home-gallery figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: zoom-in; box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.home-gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-med);
}
.home-gallery figure:hover img { transform: scale(1.05); }
.home-gallery figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 2rem 1rem 0.8rem; color: #fff; font-size: 0.85rem; font-weight: 500;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.72));
}
@media (max-width: 900px) { .home-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .home-gallery { gap: 0.8rem; } }

/* Carte « Mot de la Direction » avec portrait du fondateur */
.direction-card {
  max-width: 1020px; margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
@media (max-width: 700px) {
  .direction-card { grid-template-columns: 1fr; }
  .direction-card img { max-width: 300px; margin-inline: auto; }
}

/* ---------- 12. TIMELINE ---------- */
.timeline { position: relative; display: grid; gap: 2.2rem; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 2px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.2rem; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 5px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.timeline-item .year { font-family: var(--font-display); font-weight: 800; color: var(--accent-strong); font-size: 0.95rem; letter-spacing: 0.05em; }
.timeline-item h3 { margin: 0.25rem 0 0.4rem; }
.timeline-item p { color: var(--muted); max-width: 640px; }

/* ---------- 13. ACCORDION ---------- */
.accordion { display: grid; gap: 0.9rem; }
.accordion-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.accordion-item.open { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; padding: 1.15rem 1.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
}
.accordion-trigger svg { flex-shrink: 0; color: var(--primary); transition: transform var(--t-med); }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med); }
.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-content { padding: 0 1.4rem 1.3rem; color: var(--text-2); }

/* ---------- 14. TABS ---------- */
.tabs-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.4rem; background: var(--surface-2); border-radius: var(--radius-full);
  width: fit-content; max-width: 100%; margin-bottom: 2rem;
}
.tabs-nav button {
  padding: 0.6rem 1.4rem; border-radius: var(--radius-full);
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--muted);
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.tabs-nav button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }

/* ---------- 15. TÉMOIGNAGES ---------- */
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 420px); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; display: flex; flex-direction: column; gap: 1.2rem; }
.testimonial blockquote { font-size: 1.02rem; color: var(--text-2); font-style: italic; }
.testimonial .quote-icon { color: var(--accent); }
.testimonial-author { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.testimonial-author .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  font-family: var(--font-display); font-weight: 800;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author small { color: var(--muted); font-size: 0.82rem; }
.carousel-controls { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.5rem; }
.carousel-controls .icon-btn { border: 1px solid var(--border); background: var(--surface); }

/* ---------- 16. GALERIE ---------- */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.masonry figure {
  position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  margin: 0;
}
.masonry img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-med);
}
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 2rem 1rem 0.9rem; color: #fff; font-size: 0.85rem; font-weight: 500;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.72));
}
@media (max-width: 900px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .masonry { grid-template-columns: 1fr; gap: 0.9rem; }
}
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 2rem;
  background: rgb(8 10 22 / 0.92);
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 100%; width: auto; border-radius: var(--radius); object-fit: contain; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.2rem; color: #fff; }

/* ---------- 17. FORMULAIRES ---------- */
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-field { display: grid; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field .error-msg { color: var(--danger); font-size: 0.82rem; display: none; }
.form-field.invalid input, .form-field.invalid textarea, .form-field.invalid select { border-color: var(--danger); }
.form-field.invalid .error-msg { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }

.alert { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.3rem; border-radius: var(--radius); font-size: 0.95rem; margin-bottom: 1.5rem; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }

/* ---------- 18. PAGE HERO + BREADCRUMB ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgb(247 148 30 / 0.15), transparent 60%),
    linear-gradient(115deg, var(--primary-deep), var(--primary-strong));
  color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero-title { color: #fff; margin-top: 1rem; }
.page-hero-text { margin-top: 1rem; max-width: 680px; color: rgb(255 255 255 / 0.82); font-size: 1.08rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb a { color: rgb(255 255 255 / 0.72); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { color: rgb(255 255 255 / 0.45); }
.breadcrumb [aria-current] { color: var(--accent); font-weight: 600; }

/* ---------- 19. TABLEAUX ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.table th, .table td { padding: 0.9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--surface-2); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--t-fast); }
.table tbody tr:hover { background: var(--surface-2); }

/* ---------- 20. ACTUALITÉS ---------- */
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.news-card .news-img { aspect-ratio: 16 / 9; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.news-card .news-meta { display: flex; align-items: center; gap: 0.8rem; font-size: 0.82rem; color: var(--muted); }
.news-card h3 { font-size: 1.12rem; line-height: 1.35; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.article-body { max-width: 760px; margin-inline: auto; font-size: 1.05rem; }
.article-body p { margin-bottom: 1.4rem; color: var(--text-2); }
.article-hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 2.5rem; max-height: 480px; width: 100%; object-fit: cover; }

/* ---------- 21. PARTENAIRES ---------- */
.partner-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; align-items: center; }
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; height: 90px;
  filter: grayscale(1); opacity: 0.75;
  transition: filter var(--t-med), opacity var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.partner-logo img { max-height: 58px; width: auto; object-fit: contain; }

/* ---------- 22. FOOTER ---------- */
.footer { background: var(--primary-deep); color: rgb(255 255 255 / 0.8); margin-top: clamp(4rem, 8vw, 6rem); }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem;
  background: linear-gradient(115deg, var(--primary), var(--primary-strong));
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem);
  transform: translateY(-3.2rem); box-shadow: var(--shadow-lg);
}
.footer-cta-title { color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 0.4rem; }
.footer-cta p { color: rgb(255 255 255 / 0.8); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.6rem; list-style: none; padding: 0; }
.footer-col a { color: rgb(255 255 255 / 0.72); font-size: 0.93rem; }
.footer-col a:hover { color: var(--accent); }
.footer-brand img { margin-bottom: 1rem; background: #fff; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm); }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: rgb(255 255 255 / 0.1); color: #fff;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { background: var(--accent); color: #221503; transform: translateY(-2px); }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); }
.newsletter { margin-top: 1.5rem; }
.newsletter label { display: block; font-size: 0.88rem; font-weight: 600; color: #fff; margin-bottom: 0.6rem; }
.newsletter-row { display: flex; gap: 0.5rem; }
.newsletter-row input[type="email"] {
  flex: 1; min-width: 0; background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2); border-radius: var(--radius-full);
  padding: 0.65rem 1.1rem; color: #fff;
}
.newsletter-row input::placeholder { color: rgb(255 255 255 / 0.5); }
.newsletter-row .btn { padding: 0.65rem 1rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  border-top: 1px solid rgb(255 255 255 / 0.12); padding-block: 1.4rem;
  font-size: 0.83rem; color: rgb(255 255 255 / 0.55);
}

/* ---------- 23. ANIMATIONS AU SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 24. ADMIN ---------- */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary-deep); color: #fff; padding: 1.2rem 0.8rem; display: flex; flex-direction: column; gap: 0.15rem; max-height: 100vh; position: sticky; top: 0; overflow-y: auto; }
.admin-sidebar .brand-admin { padding: 0.5rem 0.8rem 1rem; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; }
.admin-sidebar .admin-nav-label { display: block; padding: 0.85rem 0.8rem 0.35rem; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; font-weight: 600; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  color: rgb(255 255 255 / 0.75); font-size: 0.93rem; font-weight: 500;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgb(255 255 255 / 0.12); color: #fff; }
.admin-sidebar .spacer { flex: 1; }
.admin-main { padding: 2rem; background: var(--bg); }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }

/* ---------- Dashboard premium ---------- */
.admin-main.dash { padding: 1.5rem clamp(1.2rem, 2.5vw, 2.2rem) 2.5rem; }
.dash-hero {
  display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem; align-items: stretch;
  padding: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(1200px 400px at 100% -20%, rgb(247 148 30 / 0.28), transparent 55%),
    linear-gradient(125deg, var(--primary-deep) 0%, var(--primary) 55%, #2a4bc4 100%);
  color: #fff; box-shadow: var(--shadow-glow); overflow: hidden; position: relative;
}
.dash-hero::after {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 180px;
  background: radial-gradient(circle, rgb(255 255 255 / 0.12), transparent 70%);
  pointer-events: none;
}
.dash-hero-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 0.55rem;
}
.dash-hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15; margin: 0 0 0.45rem; color: #fff;
}
.dash-hero h1 span { color: var(--accent); }
.dash-hero-sub { color: rgb(255 255 255 / 0.78); margin: 0 0 1rem; font-size: 0.95rem; }
.dash-hero-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dash-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: rgb(255 255 255 / 0.12); color: #fff; border: 1px solid rgb(255 255 255 / 0.18);
  text-decoration: none;
}
.dash-chip:hover { background: rgb(255 255 255 / 0.2); color: #fff; }
.dash-chip-ok { background: rgb(22 163 74 / 0.25); border-color: rgb(134 239 172 / 0.35); }
.dash-chip-warn, .dash-chip-alert { background: rgb(247 148 30 / 0.28); border-color: rgb(251 191 36 / 0.4); }
.dash-hero-aside { display: flex; flex-direction: column; gap: 0.7rem; justify-content: center; min-width: 160px; }
.dash-hero-stat {
  padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(8px);
}
.dash-hero-stat strong {
  display: block; font-family: var(--font-display); font-size: 1.85rem; font-weight: 800; line-height: 1;
  color: var(--accent);
}
.dash-hero-stat span { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: rgb(255 255 255 / 0.75); }

.dash-kpi-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  margin-bottom: 1.5rem;
}
.dash-kpi {
  position: relative; display: block; padding: 1.15rem 1.2rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.dash-kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary);
}
.dash-kpi-amber::before { background: var(--accent); }
.dash-kpi-green::before { background: var(--success); }
.dash-kpi-indigo::before { background: #6366f1; }
.dash-kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; color: inherit; }
.dash-kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.dash-kpi-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.dash-kpi-amber .dash-kpi-icon { background: var(--accent-soft); color: var(--accent-strong); }
.dash-kpi-green .dash-kpi-icon { background: var(--success-soft); color: var(--success); }
.dash-kpi-indigo .dash-kpi-icon { background: #eef2ff; color: #4f46e5; }
.dash-kpi-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgb(247 148 30 / 0.55); animation: dash-pulse 1.6s infinite;
}
@keyframes dash-pulse {
  0% { box-shadow: 0 0 0 0 rgb(247 148 30 / 0.5); }
  70% { box-shadow: 0 0 0 10px rgb(247 148 30 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(247 148 30 / 0); }
}
.dash-kpi-value {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1;
  color: var(--text); margin: 0 0 0.35rem;
}
.dash-kpi-label { margin: 0; font-weight: 650; font-size: 0.92rem; color: var(--text); }
.dash-kpi-hint { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--muted); }

.dash-columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.dash-columns-3 { grid-template-columns: repeat(3, 1fr); }
.dash-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow-sm);
}
.dash-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem;
  margin-bottom: 1rem;
}
.dash-panel-head h2 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 750; margin: 0 0 0.15rem;
}
.dash-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.82rem; font-weight: 600; color: var(--primary); white-space: nowrap;
}
.dash-link:hover { color: var(--primary-strong); }

.dash-chart {
  display: flex; align-items: flex-end; gap: 0.55rem; height: 160px;
  padding: 0.4rem 0.2rem 0; border-bottom: 1px solid var(--border);
}
.dash-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 0.4rem; }
.dash-bar-stack {
  width: 100%; max-width: 36px; height: 100%; display: flex; flex-direction: column-reverse;
  justify-content: flex-start; border-radius: 8px 8px 4px 4px; overflow: hidden;
  background: var(--surface-2);
}
.dash-bar-fill { display: block; width: 100%; transition: height 0.6s cubic-bezier(.22,1,.36,1); }
.dash-bar-msg { background: linear-gradient(180deg, #4f6ef7, var(--primary)); }
.dash-bar-pre { background: linear-gradient(180deg, #ffb14a, var(--accent)); }
.dash-bar-label { font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.dash-legend { display: flex; gap: 1rem; margin-top: 0.85rem; font-size: 0.78rem; color: var(--muted); }
.dash-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.dash-dot-msg { background: var(--primary); }
.dash-dot-pre { background: var(--accent); }

.dash-priority-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.dash-priority-list a {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  text-decoration: none; color: inherit; transition: border-color 0.15s, background 0.15s;
}
.dash-priority-list a:hover { border-color: var(--primary); background: var(--primary-soft); color: inherit; }
.dash-prio-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--primary); flex-shrink: 0; border: 1px solid var(--border);
}
.dash-prio-text { flex: 1; min-width: 0; }
.dash-prio-text strong { display: block; font-size: 0.92rem; }
.dash-prio-text small { color: var(--muted); font-size: 0.78rem; }
.dash-prio-badge {
  min-width: 28px; height: 28px; padding-inline: 0.45rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 0.82rem; background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.dash-prio-badge.is-hot { background: var(--accent); color: #221503; border-color: transparent; }

.dash-feed { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.dash-feed li {
  display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start;
  padding: 0.7rem 0.35rem; border-bottom: 1px solid var(--border);
}
.dash-feed li:last-child { border-bottom: 0; }
.dash-feed li.is-unread { background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 6px; padding-inline: 0.55rem; }
.dash-feed strong { display: block; font-size: 0.88rem; line-height: 1.3; }
.dash-feed span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }
.dash-feed time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; font-weight: 600; }

.dash-health { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.dash-health-item {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 0.9rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s;
}
.dash-health-item:hover { border-color: var(--primary); transform: translateY(-1px); color: inherit; }
.dash-health-icon {
  width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--primary); border: 1px solid var(--border);
}
.dash-health-label { flex: 1; font-size: 0.88rem; font-weight: 600; }
.dash-health-item strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); }

.dash-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
.dash-action {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  font-weight: 600; font-size: 0.88rem; color: var(--text); text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.dash-action:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); transform: translateY(-1px); }
.dash-action.is-primary {
  background: var(--primary); color: #fff; border-color: transparent;
  grid-column: 1 / -1; justify-content: center; padding: 0.95rem;
}
.dash-action.is-primary:hover { background: var(--primary-strong); color: #fff; }

.reveal-dash { opacity: 0; transform: translateY(10px); }
.reveal-dash.is-in { animation: dash-in 0.45s ease forwards; }
@keyframes dash-in {
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .dash-columns, .dash-columns-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-hero-aside { flex-direction: row; }
  .dash-hero-stat { flex: 1; }
  .dash-health, .dash-actions { grid-template-columns: 1fr; }
}


/* Sélecteurs média / icônes */
.admin-media-row, .admin-icon-row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.admin-media-preview {
  width: 96px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.admin-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-media-placeholder { color: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
.admin-media-controls, .admin-icon-controls { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 0.55rem; }
.admin-media-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.admin-upload-btn { cursor: pointer; margin: 0; }
.admin-icon-preview {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.admin-icon-controls { flex-direction: row; align-items: center; flex-wrap: wrap; }
.admin-icon-controls input { flex: 1; min-width: 140px; }

.admin-picker-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.admin-picker-modal[hidden] { display: none !important; }
.admin-picker-backdrop { position: absolute; inset: 0; background: rgb(8 10 22 / 0.55); }
.admin-picker-dialog {
  position: relative; width: min(920px, 100%); max-height: min(85vh, 720px);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border);
}
.admin-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.admin-picker-toolbar { padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--border); }
.admin-picker-toolbar input { width: 100%; }
.admin-picker-body { padding: 1rem 1.2rem; overflow: auto; flex: 1; }
.admin-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.7rem; }
.admin-media-tile {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 0.4rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  cursor: pointer; text-align: left; color: var(--text); font: inherit; font-size: 0.72rem;
}
.admin-media-tile:hover { border-color: var(--primary); }
.admin-media-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.admin-media-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-media-file {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: var(--primary-deep); color: #fff; font-weight: 700; border-radius: 4px;
}
.admin-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.55rem; }
.admin-icon-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.75rem 0.4rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  cursor: pointer; color: var(--text); font: inherit; font-size: 0.68rem;
}
.admin-icon-tile:hover, .admin-icon-tile.is-selected { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.admin-icon-tile span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }

/* Droits utilisateurs — cases à cocher */
.admin-perms-panel {
  margin-top: 1.6rem; padding: 1.2rem 1.3rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-2);
}
.admin-perms-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-bottom: 1rem;
}
.admin-perms-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.admin-perm-full {
  display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.85rem 1rem;
  margin-bottom: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-weight: 500;
}
.admin-perm-full input { width: auto; margin-top: 0.2rem; }
.admin-perms-group {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 1rem; margin: 0 0 0.85rem; background: var(--surface);
}
.admin-perms-group legend {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  padding-inline: 0.35rem; color: var(--primary);
}
.admin-perms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.35rem 0.8rem;
}
.admin-perm-item {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.2rem;
  cursor: pointer; font-size: 0.92rem; font-weight: 500;
}
.admin-perm-item input { width: auto; flex-shrink: 0; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: linear-gradient(115deg, var(--primary-deep), var(--primary-strong)); }
.login-card { width: min(100%, 420px); background: var(--surface); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.login-card .brand img { margin-inline: auto; margin-bottom: 1.5rem; }

/* ---------- 25. DIVERS ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-list li {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.45rem 1rem; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 500;
}
.pill-list a { color: inherit; text-decoration: none; }
.pill-list a:hover { color: var(--primary); }
.map-embed { border: 0; width: 100%; height: 420px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.video-card .news-img { position: relative; }
.video-card .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgb(8 10 22 / 0.35); color: #fff; transition: background-color var(--t-fast);
}
.video-card .play-badge span {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgb(255 255 255 / 0.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 0.4);
  transition: transform var(--t-fast), background-color var(--t-fast);
}
.video-card:hover .play-badge span { transform: scale(1.1); background: var(--accent); color: #221503; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding-inline: 0.6rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: 0.92rem; color: var(--text-2);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 26. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  /* Sur mobile, le flou de la navbar créerait un "containing block" qui
     piégerait le menu fixe : on repasse à un fond opaque. */
  .navbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }

  .nav-main {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 90;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: var(--bg); overflow-y: auto; padding: 1.5rem;
    transform: translateX(100%); transition: transform var(--t-med);
    margin-left: 0;
  }
  .nav-main.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.3rem; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; padding: 0.9rem 1rem; font-size: 1.05rem; }
  .dropdown, .dropdown.mega {
    position: static; transform: none; opacity: 1; visibility: hidden;
    width: 100%; min-width: 0; box-shadow: none; border: 0;
    background: var(--surface-2); border-radius: var(--radius);
    display: none; padding: 0.6rem;
  }
  .has-dropdown.open .dropdown, .has-dropdown.open .dropdown.mega { display: grid; visibility: visible; transform: none; }
  .has-dropdown:focus-within .dropdown { visibility: hidden; }
  .has-dropdown.open:focus-within .dropdown { visibility: visible; }
  .mega-wrap { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-promo { display: none; }
  .mega-footer { flex-direction: column; gap: 0.8rem; }
  .nav-burger { display: inline-flex; }
  .btn-nav { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card-1 { left: 0.5rem; }
  .hero-card-2 { right: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-sidebar .spacer { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .brand img { width: 100px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cta { transform: translateY(-2.4rem); }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 3.5rem; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---------- 26a. BOUTON FLOTTANT WHATSAPP ---------- */
.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.05rem 0.85rem 0.9rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgb(37 211 102 / 0.45), 0 2px 8px rgb(0 0 0 / 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  animation: wa-float-in 0.55s ease both, wa-pulse 2.4s ease-in-out 1.2s infinite;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgb(37 211 102 / 0.55), 0 4px 12px rgb(0 0 0 / 0.2);
  outline: none;
}
.whatsapp-float svg { flex-shrink: 0; fill: currentColor; stroke: none; }
.whatsapp-float-label { line-height: 1; letter-spacing: 0.01em; }

@keyframes wa-float-in {
  from { opacity: 0; transform: translateY(18px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgb(37 211 102 / 0.45), 0 2px 8px rgb(0 0 0 / 0.18); }
  50% { box-shadow: 0 10px 28px rgb(37 211 102 / 0.45), 0 0 0 12px rgb(37 211 102 / 0.18); }
}

@media (max-width: 640px) {
  .whatsapp-float { padding: 0.9rem; }
  .whatsapp-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ---------- 26bis. OPTIMISATIONS TÉLÉPHONES ---------- */
@media (max-width: 640px) {
  /* Boutons : autoriser le retour à la ligne pour les libellés longs */
  .btn { white-space: normal; text-align: center; }

  /* Badges kicker plus compacts pour tenir sur une ligne */
  .kicker { font-size: 0.7rem; letter-spacing: 0.08em; padding: 0.35rem 0.75rem; }

  /* Hero : image d'abord, puis les 2 cartes de confiance en chips statiques */
  .hero-inner { padding-block: 1.6rem 3rem; }
  .hero-visual { display: flex; flex-wrap: wrap; gap: 0.7rem; }
  .hero-slider { width: 100%; }
  .hero-card {
    position: static; animation: none;
    flex: 1 1 calc(50% - 0.35rem);
    padding: 0.65rem 0.85rem; gap: 0.6rem;
  }
  .hero-card strong { font-size: 0.92rem; }
  .hero-card small { font-size: 0.72rem; }
  .hero-card svg { width: 20px; height: 20px; flex-shrink: 0; }
  .hero-trust { gap: 0.7rem 1.1rem; margin-top: 1.8rem; }
  .hero-trust li { font-size: 0.85rem; }
  .hero-actions { margin-top: 1.6rem; gap: 0.7rem; }

  /* Points du diaporama : zone tactile élargie */
  .hero-slider-dots { gap: 0.55rem; padding: 0.45rem 0.7rem; }
  .hero-slider-dots button { width: 12px; height: 12px; }
  .hero-slider-dots button.is-active { width: 26px; }

  /* Rythme vertical resserré */
  .section-head { margin-bottom: 2rem; }
  .page-hero { padding-block: 2.6rem; }
  .stats-grid { gap: 1.4rem 1rem; padding-block: 2.6rem; }

  /* Panneau fondateur : pied empilé, citation ajustée */
  .fondateur-citation { font-size: 0.98rem; }
  .fondateur-pied { flex-direction: column; align-items: stretch; }
  .fondateur-pied .btn { width: 100%; }
  .fondateur-points { justify-content: flex-start; gap: 0.7rem 1.1rem; }
  .fondateur-plaque { padding: 0.45rem 1.1rem; }

  /* Témoignages : cartes à la largeur de l'écran, flèches centrées */
  .testimonial-track { grid-auto-columns: 100%; }
  .carousel-controls { justify-content: center; margin-top: 0.8rem; gap: 1rem; }
  .carousel-controls .icon-btn { width: 46px; height: 46px; }

  /* Galerie : légendes compactes */
  .home-gallery figcaption { font-size: 0.72rem; padding: 1.4rem 0.6rem 0.55rem; }

  /* Tableaux : cellules plus denses */
  .table th, .table td { padding: 0.65rem 0.85rem; font-size: 0.88rem; }

  /* Accordéons : déclencheurs plus compacts */
  .accordion-trigger { padding: 0.95rem 1.1rem; font-size: 0.95rem; }

  /* Footer : CTA et boutons pleine largeur, bas de page centré */
  .footer-cta { text-align: center; justify-content: center; }
  .footer-cta-actions { width: 100%; flex-direction: column; }
  .footer-cta-actions .btn { width: 100%; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Formulaires : boutons d'envoi pleine largeur */
  .form-grid + div .btn, form .btn-lg { width: 100%; }
}

@media (max-width: 380px) {
  .brand img { width: 88px; }
  .nav-actions { gap: 0.15rem; }
  .icon-btn { width: 38px; height: 38px; }
  h1, .h1 { font-size: 1.85rem; }
  .hero-card { flex-basis: 100%; }
  .home-gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- 27. IMPRESSION ---------- */
@media print {
  .navbar, .footer, .hero-actions, .nav-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
