/* =========================================================
   SHCG — Sahel Humanitarian Consulting Group
   Feuille de style principale
   ========================================================= */

:root {
  /* Couleurs de la marque (tirées du logo) */
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #12345e;
  --blue-600: #0e4c7d;
  --orange-500: #e8692a;
  --orange-600: #c2531a;   /* orange lisible sur fond clair */
  --sun-400: #f5b82e;
  --green-500: #4c9a3f;
  --green-600: #2f7a2a;    /* vert lisible sur fond clair */

  --ink: #0f1c2e;
  --ink-soft: #46546a;
  --line: #e3e8ef;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --surface-3: #eef3f8;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px rgba(11, 37, 69, .05);
  --shadow: 0 10px 30px -12px rgba(11, 37, 69, .25);
  --shadow-lg: 0 30px 60px -20px rgba(7, 26, 51, .45);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: min(100% - 32px, var(--container)); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--orange-500); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 3px; border-radius: 6px; }

.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  touch-action: manipulation;
}
.btn .icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 10px 24px -10px rgba(232, 105, 42, .8); }
.btn-primary:hover { background: #d95c1f; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(232, 105, 42, .9); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(11,37,69,.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  width: 68px; height: 68px; border-radius: 50%; background: #fff; padding: 3px;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.7rem; letter-spacing: .14em; color: #fff; transition: color .3s; }
.brand-sub { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9fd08f; margin-top: 5px; transition: color .3s; }
.is-scrolled .brand-name { color: var(--blue-600); }
.is-scrolled .brand-sub { color: var(--green-600); }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: .94rem; white-space: nowrap;
  border-radius: 999px; position: relative; transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-list a.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 8px; height: 2px;
  background: var(--orange-500); border-radius: 2px;
}
.is-scrolled .nav-list a { color: var(--ink-soft); }
.is-scrolled .nav-list a:hover { color: var(--navy-800); background: var(--surface-3); }
.is-scrolled .nav-list a.is-active { color: var(--navy-800); }
.nav-cta { margin-left: .5rem; }
.nav-cta.btn { min-height: 44px; padding: .55rem 1.1rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.12); color: #fff; align-items: center; justify-content: center;
}
.is-scrolled .nav-toggle { background: var(--surface-3); color: var(--navy-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--header-h) + 48px) 0 88px;
  background: radial-gradient(120% 90% at 85% 10%, #173f70 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 420px; height: 420px; background: var(--orange-500); top: -120px; left: -120px; opacity: .28; }
.blob-2 { width: 380px; height: 380px; background: var(--green-500); bottom: -140px; right: 8%; opacity: .3; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: var(--sun-400); top: 30%; right: -60px; opacity: .22; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.12); } }

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; }

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.hero-logo {
  display: inline-block; background: #fff; border-radius: 22px; padding: 14px 22px; margin-bottom: 1.6rem;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
}
.hero-logo img { width: clamp(240px, 26vw, 380px); height: auto; }
.hero .eyebrow {
  padding: .5rem .9rem .5rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #ffd9c4;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(232,105,42,.25); }

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.035em;
  margin: 1.4rem 0 1.2rem; line-height: 1.05;
}
.hero h1 .accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  background: linear-gradient(90deg, var(--sun-400), var(--orange-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.8); max-width: 36em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 2rem 2.6rem; padding: 0; margin: 0; list-style: none; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 2rem; font-weight: 800; line-height: 1; }
.hero-facts span { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: .35rem; }
.hero-facts li:nth-child(1) strong { color: var(--sun-400); }
.hero-facts li:nth-child(2) strong { color: #ff9a62; }
.hero-facts li:nth-child(3) strong { color: #8fd37f; }

/* Collage du hero */
.hero-visual { position: relative; height: 540px; }
.collage-card {
  position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 5px solid #fff;
  transition: transform .6s var(--ease);
}
.collage-card img { width: 100%; height: 100%; object-fit: cover; }
.collage-card.c1 { width: 58%; height: 76%; left: 2%; top: 4%; transform: rotate(-5deg); z-index: 1; }
.collage-card.c2 { width: 54%; height: 70%; right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
.collage-card.c3 { width: 52%; height: 62%; left: 24%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.hero-visual:hover .c1 { transform: rotate(-8deg) translate(-14px, -6px); }
.hero-visual:hover .c2 { transform: rotate(7deg) translate(14px, -8px); }
.hero-visual:hover .c3 { transform: rotate(0) translateY(8px); }

.hero-badge {
  position: absolute; z-index: 4; left: -6%; bottom: 14%;
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1.1rem .8rem .8rem;
  background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-badge img { width: 46px; height: 46px; border-radius: 50%; }
.hero-badge strong { display: block; font-size: .95rem; }
.hero-badge span { font-size: .78rem; color: var(--ink-soft); }
.hero-badge-2 {
  left: auto; right: -3%; bottom: auto; top: 58%; animation-delay: -3s;
  padding: .7rem 1rem; gap: .6rem;
}
.hero-badge-2 .pin { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff1e8; color: var(--orange-600); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.45); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-hint::before { content: ""; width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Bandeau défilant ---------- */
.ticker { background: var(--orange-500); color: #fff; overflow: hidden; padding: 14px 0; position: relative; }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font-weight: 700; white-space: nowrap; font-size: 1rem; }
.ticker li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-800); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--navy-800); color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { color: var(--orange-600); }
.section-dark .section-head .eyebrow { color: var(--sun-400); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; margin-top: .8rem; }
.section-head h2 em { font-family: var(--font-serif); font-weight: 500; color: var(--orange-600); }
.section-dark .section-head h2 em { color: var(--sun-400); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-quote {
  position: relative; margin: -60px 0 0 auto; width: min(88%, 420px);
  background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-lg); border-left: 4px solid var(--orange-500);
}
.about-quote blockquote { margin: 0 0 1rem; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; }
.about-quote figcaption { font-size: .88rem; color: rgba(255,255,255,.7); }
.about-quote figcaption strong { display: block; color: #fff; font-size: 1rem; }

.about-text .lead { font-size: 1.15rem; color: var(--ink); }
.about-text p { color: var(--ink-soft); }
.spec-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.spec-list li { display: flex; align-items: center; gap: .85rem; font-weight: 600; }
.spec-list .tick { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e9f5e6; color: var(--green-600); flex: none; }
.spec-list .tick .icon { width: 16px; height: 16px; stroke-width: 2.6; }

.vision-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem;
  background: var(--surface-3); border-radius: var(--radius); border: 1px solid var(--line);
}
.vision-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-600); color: #fff; flex: none; }
.vision-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.vision-card p { margin: 0; font-size: .97rem; }

/* ---------- Expertises ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.domain-card {
  position: relative; height: 100%; padding: 1.8rem 1.6rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.domain-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent, var(--orange-500)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.domain-card:hover::before { transform: scaleX(1); }
.domain-card .num { position: absolute; right: 1.2rem; top: .9rem; font-size: 2.6rem; font-weight: 800; color: var(--surface-3); line-height: 1; }
.domain-card .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--accent-soft, #fff1e8); color: var(--accent-ink, var(--orange-600));
}
.domain-card .ic .icon { width: 28px; height: 28px; }
.domain-card h3 { font-size: 1.12rem; margin-bottom: .45rem; position: relative; }
.domain-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; position: relative; }
.domain-card.a-blue { --accent: var(--blue-600); --accent-soft: #e6f0f8; --accent-ink: var(--blue-600); }
.domain-card.a-green { --accent: var(--green-500); --accent-soft: #e9f5e6; --accent-ink: var(--green-600); }
.domain-card.a-sun { --accent: var(--sun-400); --accent-soft: #fff6dd; --accent-ink: #9a6a00; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-panel {
  position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); overflow: hidden;
}
.service-panel::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -90px; top: -90px; background: radial-gradient(circle, var(--glow, rgba(232,105,42,.35)), transparent 70%);
}
.service-panel.green { --glow: rgba(76,154,63,.35); }
.service-panel header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; position: relative; z-index: 1; }
.service-panel header .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--orange-500); flex: none; }
.service-panel.green header .ic { background: var(--green-500); }
.service-panel h3 { font-size: 1.35rem; margin: 0; }
.service-panel header p { margin: .2rem 0 0; color: rgba(255,255,255,.6); font-size: .9rem; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; position: relative; z-index: 1; }
.service-list li {
  display: flex; gap: .85rem; align-items: flex-start; padding: .85rem .9rem; border-radius: 12px;
  transition: background-color .25s; color: rgba(255,255,255,.9);
}
.service-list li:hover { background: rgba(255,255,255,.06); }
.service-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--sun-400); }

/* Approche */
.approach { margin-top: clamp(56px, 8vw, 88px); }
.approach h3.sub { font-size: 1.4rem; margin-bottom: 1.6rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.step .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(245,184,46,.15); color: var(--sun-400); margin-bottom: 1rem; }
.step h4 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { font-size: .93rem; color: rgba(255,255,255,.72); margin: 0; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; right: 1.2rem; top: 1.1rem; font-weight: 800; font-size: .85rem; color: rgba(255,255,255,.35); letter-spacing: .1em;
}

/* ---------- Formations ---------- */
.formats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.format-card {
  padding: 1.6rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.format-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.format-card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1rem; background: #fff1e8; color: var(--orange-600); }
.format-card:nth-child(2) .ic { background: #e6f0f8; color: var(--blue-600); }
.format-card:nth-child(3) .ic { background: #e9f5e6; color: var(--green-600); }
.format-card:nth-child(4) .ic { background: #fff6dd; color: #9a6a00; }
.format-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.format-card p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

.training-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.training-steps, .training-themes, .training-calendar {
  padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.training-steps h3, .training-themes h3, .training-calendar h3 { font-size: 1.25rem; }
.training-steps ol { list-style: none; margin: 1.2rem 0 0; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.training-steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
.training-steps li::before {
  content: counter(st); grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 800;
}
.training-steps li:nth-child(2)::before { background: var(--orange-500); }
.training-steps li:nth-child(3)::before { background: var(--green-500); }
.training-steps li:nth-child(4)::before { background: var(--blue-600); }
.training-steps strong { font-size: 1rem; }
.training-steps span { color: var(--ink-soft); font-size: .92rem; }
.training-themes p { color: var(--ink-soft); }
.chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .5rem .9rem; border-radius: 999px; background: var(--surface-3); color: var(--navy-800); font-weight: 600; font-size: .9rem; }
.chips li.more { background: var(--orange-500); color: #fff; }

.training-calendar { margin-top: 24px; }
.cal-head { margin-bottom: 1.2rem; }
.cal-head p { color: var(--ink-soft); margin: 0; }

.training-custom {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 1.6rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy-800), var(--blue-600)); color: #fff;
}
.training-custom p { margin: 0; max-width: 40em; }
.training-custom strong { display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.platform-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (max-width: 560px) { .platform-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .thumb.noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); }
.news-card .thumb.noimg img { width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; }
.news-card .body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .82rem; color: var(--ink-soft); }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-weight: 700; font-size: .75rem; background: #fff1e8; color: var(--orange-600); }
.badge.Résultat { background: #e9f5e6; color: var(--green-600); }
.badge.Formation { background: #e6f0f8; color: var(--blue-600); }
.badge.Annonce { background: #fff6dd; color: #8a5f00; }
.news-card h3 { font-size: 1.12rem; margin: 0; }
.news-card p { color: var(--ink-soft); font-size: .94rem; margin: 0; flex: 1; }
.news-card .read {
  align-self: flex-start; margin-top: .4rem; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--blue-600); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem;
}
.news-card .read:hover { color: var(--orange-600); }
.news-card .read .icon { width: 18px; height: 18px; }
.news-empty {
  grid-column: 1 / -1; text-align: center; padding: 2rem 1rem; border-radius: var(--radius);
  border: 2px dashed var(--line); color: var(--ink-soft);
}
.news-empty .icon { margin: 0 auto .6rem; color: var(--orange-600); width: 32px; height: 32px; }
.news-more { text-align: center; margin-top: 28px; }

.article-dialog {
  width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); color: var(--ink); background: #fff; overflow: auto;
}
.article-dialog::backdrop { background: rgba(7,26,51,.75); }
.article-dialog[open] { animation: fadeIn .25s ease; }
.article-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(7,26,51,.7); }
.article-close:hover { background: var(--navy-800); }
.article-img:not([hidden]) + .article-body { padding-top: clamp(1.2rem, 3vw, 2rem); }
.article-img[hidden] + .article-body { padding-top: 4.2rem; }
.article-img { width: 100%; max-height: 420px; object-fit: cover; }
.article-body { padding: clamp(1.4rem, 4vw, 2.4rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; color: var(--ink-soft); font-size: .88rem; }
.article-body h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .4rem 0 1rem; }
.article-text p { color: #2b3a50; }

/* ---------- Bouton musique ---------- */
.music-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 90; min-height: 50px; padding: 0 1.1rem 0 .9rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: var(--navy-800); color: #fff; display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); transition: background-color .25s, transform .25s var(--ease);
}
.music-toggle:hover { background: var(--navy-700); transform: translateY(-2px); }
.music-toggle .icon { width: 20px; height: 20px; }
.music-toggle .on, .music-toggle[aria-pressed="true"] .off { display: none; }
.music-toggle[aria-pressed="true"] .on { display: block; }
.music-toggle[aria-pressed="true"] { background: var(--green-600); }
.music-toggle .eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.music-toggle[aria-pressed="true"] .eq { display: inline-flex; }
.music-toggle .eq i { width: 3px; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.music-toggle .eq i:nth-child(2) { animation-delay: -.3s; }
.music-toggle .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------- Partenaires ---------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; list-style: none; padding: 0; margin: 0; }
.partners li {
  display: flex; align-items: center; gap: .7rem; padding: .95rem 1.4rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.partners li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partners .icon { color: var(--blue-600); }
.partners li:nth-child(3n+2) .icon { color: var(--orange-600); }
.partners li:nth-child(3n) .icon { color: var(--green-600); }

.advantages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 64px); list-style: none; padding: 0; }
.advantages li { text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius); background: var(--surface-2); }
.advantages .ic { width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--orange-600); box-shadow: var(--shadow-sm); }
.advantages strong { display: block; font-size: .98rem; line-height: 1.35; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-weight: 600; font-size: .92rem; transition: all .25s;
}
.filter-btn:hover { border-color: var(--navy-800); color: var(--navy-800); }
.filter-btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.gallery { columns: 4 240px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin: 0 0 16px; }
.gallery-item[hidden] { display: none; }
.gallery-item button {
  display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; box-shadow: var(--shadow-sm); cursor: zoom-in;
}
.gallery-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery-item button::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,26,51,.55), transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.gallery-item button:hover img, .gallery-item button:focus-visible img { transform: scale(1.04); }
.gallery-item button:hover::after, .gallery-item button:focus-visible::after { opacity: 1; }
.gallery-item .zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--navy-800); display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: all .3s var(--ease);
}
.gallery-item button:hover .zoom, .gallery-item button:focus-visible .zoom { opacity: 1; transform: none; }
.gallery-item .zoom .icon { width: 20px; height: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 64px 72px; background: rgba(7,26,51,.94); }
.lightbox.is-open { display: flex; animation: fadeIn .25s ease; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .92rem; padding: 0 16px; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Vidéos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.video-card video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
.video-card figcaption { padding: 1rem 1.2rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.video-card figcaption .icon { color: var(--orange-600); width: 20px; height: 20px; }
.video-feature { max-width: 960px; margin: 0 auto 28px; }
.video-feature video { aspect-ratio: 16 / 9; object-fit: contain; }
.video-feature figcaption { font-size: 1.05rem; }
.video-second { max-width: 760px; margin: 28px auto 0; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1100px; margin: 0 auto 28px; }
.video-pair video { aspect-ratio: 16 / 9; object-fit: contain; }
@media (max-width: 760px) { .video-pair { grid-template-columns: 1fr; } }
.video-meta { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--muted, #5b6b80); }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(120% 120% at 0% 0%, #173f70 0%, var(--navy-800) 50%, var(--navy-900) 100%); color: #fff; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.contact-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.contact-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(232,105,42,.18); color: #ffa36f; flex: none; }
.contact-card:nth-child(2) .ic { background: rgba(245,184,46,.16); color: var(--sun-400); }
.contact-card:nth-child(3) .ic { background: rgba(76,154,63,.2); color: #8fd37f; }
.contact-card:nth-child(4) .ic { background: rgba(37,211,102,.16); color: #5be08f; }
.contact-card h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0 0 .3rem; }
.contact-card a, .contact-card p { color: #fff; text-decoration: none; font-weight: 600; margin: 0; }
.contact-card a { display: inline-flex; min-height: 32px; align-items: center; }
.contact-card a:hover { color: var(--sun-400); text-decoration: underline; text-underline-offset: 3px; }
.contact-card .muted { color: rgba(255,255,255,.6); font-weight: 400; font-size: .92rem; }
.contact-card .phones { display: flex; flex-direction: column; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials span {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .88rem; font-weight: 600;
}
.socials .icon { width: 18px; height: 18px; }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.contact-form > p { color: var(--ink-soft); font-size: .93rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label { font-weight: 700; font-size: .9rem; }
.field label .req { color: var(--orange-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface-2);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .95rem; min-height: 48px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(14,76,125,.15); }
.field .error { color: #b42318; font-size: .85rem; min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: .8rem 0 0; }
.contact-form .btn { width: 100%; }
.form-status { margin-top: .8rem; font-weight: 600; color: var(--green-600); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 56px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { background: #fff; border-radius: 14px; padding: 10px 14px; width: 220px; margin-bottom: 1rem; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: var(--sun-400); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 22px 64px 0 0; font-size: .85rem; }
.color-dots { display: inline-flex; gap: 6px; align-items: center; }
.color-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }

/* Bouton retour en haut */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--orange-500); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #d95c1f; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
/* Le hero s'anime dès le chargement, sans attendre le défilement */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .advantages { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1140px) {
  :root { --header-h: 78px; }
  .brand-mark { width: 58px; height: 58px; }
  .brand-name { font-size: 1.45rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; padding: 12px 16px 24px;
    box-shadow: 0 20px 40px -20px rgba(7,26,51,.4); border-top: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a, .is-scrolled .nav-list a { color: var(--ink); min-height: 50px; padding: 0 1rem; border-radius: 12px; }
  .nav-list a:hover { background: var(--surface-3); color: var(--navy-800); }
  .nav-list a.is-active { background: var(--surface-3); }
  .nav-list a.is-active::after { display: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta.btn { width: 100%; min-height: 50px; color: #fff !important; }
  .menu-open .site-header { background: #fff; }
  .menu-open .brand-name { color: var(--blue-600); }
  .menu-open .brand-sub { color: var(--green-600); }
  .menu-open .nav-toggle { background: var(--surface-3); color: var(--navy-800); }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); }
  .hero-inner, .about-grid, .training-row, .contact-grid, .services-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; max-width: 520px; margin: 8px auto 0; width: 100%; }
  .hero-badge { left: 0; }
  .hero-badge-2 { right: 0; }
  .scroll-hint { display: none; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-mark { width: 52px; height: 52px; }
  .brand-name { font-size: 1.3rem; }
  .hero-logo { padding: 10px 16px; border-radius: 18px; }
  .hero-logo img { width: 230px; }
  .brand-sub { font-size: .52rem; letter-spacing: .12em; }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .1em; flex-wrap: nowrap; border-radius: 16px; line-height: 1.4; }
  .eyebrow .dot { flex: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 1.4rem 2rem; }
  .hero-facts strong { font-size: 1.7rem; }
  .hero-visual { height: 360px; }
  .hero-badge { padding: .6rem .8rem .6rem .6rem; }
  .hero-badge img { width: 38px; height: 38px; }
  .hero-badge strong { font-size: .85rem; }
  .hero-badge-2 { display: none; }
  .domain-grid, .steps { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr 1fr; }
  .advantages li:last-child { grid-column: 1 / -1; }
  .about-quote { margin-top: -40px; width: 94%; }
  .formats, .news-grid { grid-template-columns: 1fr; }
  .music-toggle { left: 12px; bottom: 12px; padding: 0 .9rem; }
  .music-toggle .label { display: none; }
  .to-top { right: 12px; bottom: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 64px 12px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-caption { bottom: 84px; }
  .partners li { padding: .75rem 1.1rem; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: 100%; }
  .ticker-track ul[aria-hidden] { display: none; }
  .ticker ul { flex-wrap: wrap; justify-content: center; row-gap: .4rem; }
}
