/* ==========================================================================
   FISCCA-RH — Système éditorial raffiné
   Palette conservée à l'identique.
   Echelle typographique : body 0.95rem (15px), h3 1.25rem (20px),
   h2 max 1.75rem (28px), h1 max 2.5rem (40px).
   ========================================================================== */

:root {
  /* Palette de marque (inchangée) */
  --blue-dark: #1B2A4A;
  --blue-deeper: #0F1D35;
  --blue-medium: #2A3F6B;
  --blue-light: #3A5590;
  --blue-accent: #4A6BAD;
  --blue-muted: #6B7FA5;
  --orange-dark: #C4621A;
  --orange-text: #A54E11;
  --orange-medium: #D87B3A;
  --orange-light: #E8944F;
  --orange-glow: #F0A86A;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --cream: #FAFAF8;
  --gray-50: #F0F1F4;
  --gray-100: #E4E6EB;
  --gray-200: #CDD0D8;
  --gray-300: #A0A5B3;
  --gray-500: #616775;
  --gray-600: #4E5462;
  --gray-800: #262A33;
  --success: #2D8A56;
  --error: #C93B3B;

  /* Séparateurs à faible opacité */
  --line: rgba(27, 42, 74, 0.14);
  --line-soft: rgba(27, 42, 74, 0.08);
  --line-dark: rgba(255, 255, 255, 0.16);

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  --section: clamp(3rem, 5.5vw, 4.75rem);
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 3px; }
::selection { background: var(--blue-dark); color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.section--white { background: var(--white); }
.section--dark { background: var(--blue-dark); color: var(--white); }
.section--deeper { background: var(--blue-deeper); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie (échelle fine et dense) ---------- */
.display, .h1, .h2, .h3, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--blue-dark);
}
.section--dark :is(.display, .h1, .h2, .h3, h1, h2, h3),
.section--deeper :is(.display, .h1, .h2, .h3, h1, h2, h3),
.on-dark :is(.display, .h1, .h2, .h3, h1, h2, h3) { color: var(--white); }

.display, h1.display {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.h1, h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.h2, h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}
.h3, h3 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.em { color: var(--orange-dark); font-style: italic; }
.section--dark .em, .section--deeper .em, .on-dark .em { color: var(--orange-light); }

.lead { font-size: clamp(0.95rem, 1.2vw, 1.0625rem); line-height: 1.62; color: var(--gray-600); max-width: 38rem; }
.section--dark .lead, .section--deeper .lead, .on-dark .lead { color: rgba(255, 255, 255, 0.84); }
.body-s { font-size: 0.875rem; line-height: 1.6; color: var(--gray-600); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-medium);
}
.eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: currentColor; opacity: 0.6; }
.section--dark .eyebrow, .section--deeper .eyebrow, .on-dark .eyebrow { color: var(--orange-light); }

/* ---------- Etiquettes de statut ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-medium);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  white-space: nowrap;
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange-dark); }
.tag--plain::before { display: none; }
.on-dark .tag, .section--dark .tag, .section--deeper .tag {
  color: rgba(255, 255, 255, 0.88); border-color: var(--line-dark);
}
.on-dark .tag::before, .section--dark .tag::before, .section--deeper .tag::before { background: var(--orange-light); }

/* ---------- Boutons & liens avec soulignement animé ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  border: 1px solid transparent; border-radius: 2px;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--blue-dark); color: var(--white); }
.btn--primary:hover { background: var(--blue-medium); }
.btn--line { border-color: var(--blue-dark); color: var(--blue-dark); }
.btn--line:hover { background: var(--blue-dark); color: var(--white); }
.btn--light { background: var(--orange-light); color: var(--blue-deeper); }
.btn--light:hover { background: var(--orange-glow); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.92rem; color: var(--blue-dark);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease);
}
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--orange-dark);
  transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link:hover { color: var(--orange-dark); }

.on-dark .link, .section--dark .link, .section--deeper .link { color: var(--white); }
.on-dark .link::after, .section--dark .link::after, .section--deeper .link::after { background: var(--orange-light); }
.on-dark .link:hover, .section--dark .link:hover, .section--deeper .link:hover { color: var(--orange-light); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; }

/* ---------- Cadres médias & micro-zoom au survol ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--blue-deeper);
}
.media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.45s var(--ease);
}
.media-frame:hover img { transform: scale(1.045); }

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.visual-card { display: grid; gap: 0.7rem; }
.visual-card .media-frame { aspect-ratio: 16 / 10; }
.visual-card figcaption { font-size: 0.85rem; color: var(--gray-600); line-height: 1.45; }
.visual-card figcaption b { display: block; color: var(--blue-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.15rem; }
@media (max-width: 760px) { .visual-strip { grid-template-columns: 1fr; } }

/* ---------- En-tête (fin, institutionnel, centré) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.1);
  box-shadow: none;
  transition: background 150ms ease, border-color 150ms ease;
}
.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.85);
  border-bottom-color: rgba(27, 42, 74, 0.1);
  box-shadow: none;
}
.site-header .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--blue-dark); letter-spacing: -0.01em; }
.brand-tag { font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }

.nav { display: contents; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-link {
  position: relative;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 0.35rem 0;
  background: transparent;
  transition: color 150ms ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--orange-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--blue-dark); background: transparent; }
.nav-link[aria-current='page'] {
  color: var(--blue-dark);
  font-weight: 600;
  background: transparent;
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after { transform: scaleX(1); }

.nav-cta {
  justify-self: end;
  padding: 0.5rem 1.1rem;
  min-height: 0;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--orange-dark);
  color: var(--white);
  border: 1px solid transparent;
  transition: background 150ms ease, transform 150ms ease;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--orange-text);
  color: var(--white);
}
.nav-cta[aria-current='page'] {
  background: var(--blue-dark);
  color: var(--white);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.menu-toggle span {
  width: 22px; height: 1.5px;
  background: var(--blue-dark);
  transition: transform 220ms ease;
  transform-origin: center;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --header-h: 56px; }
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .brand img { height: 32px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: flex;
    position: fixed;
    top: var(--header-h); right: 0; bottom: 0;
    width: min(360px, 100vw);
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--cream);
    border-left: 1px solid rgba(27, 42, 74, 0.1);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s 0.35s;
    overflow-y: auto;
    z-index: 99;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
  .nav-links { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gray-800);
    padding: 1rem 0;
    min-height: 48px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link[aria-current='page'] {
    color: var(--orange-text);
    font-weight: 600;
    padding-left: 0.75rem;
    border-left: 2px solid var(--orange-dark);
  }
  .nav-link::after { display: none; }
  .nav-cta {
    margin-top: 1.75rem;
    min-height: 46px;
    padding: 0.75rem 1.1rem;
    width: 100%;
    text-align: center;
  }
}

/* ---------- Disposition ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1.75rem, 4.5vw, 4.5rem); align-items: start; }
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.split--flush { align-items: end; }
.sticky { position: sticky; top: calc(var(--header-h) + 1.75rem); }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; gap: 2rem; }
  .sticky { position: static; }
}
.stack > * + * { margin-top: 1.15rem; }
.stack-l > * + * { margin-top: 1.75rem; }
.hr { height: 0; border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Accueil : Hero avec image de fond & dégradé sombre ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 6vw, 5rem);
  background: var(--blue-deeper);
  color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  transition: transform 1.2s var(--ease);
}
.hero:hover .hero-bg img { transform: scale(1.02); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15, 29, 53, 0.93) 0%, rgba(27, 42, 74, 0.85) 55%, rgba(15, 29, 53, 0.78) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid--60-40 {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.hero-copy--text { display: flex; flex-direction: column; justify-content: center; }
.hero-copy--text .display { margin-block: 1.15rem 1.25rem; color: var(--white); }
.hero-copy--text .lead { margin-bottom: 1.75rem; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 900px) { .hero-grid--60-40 { grid-template-columns: 1fr; } }

/* Fiche cabinet */
.fiche {
  background: rgba(15, 29, 53, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--orange-light);
}
.fiche-head {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.85rem;
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--orange-light); border-bottom: 1px solid var(--line-dark);
}
.fiche-head span:last-child { color: rgba(255, 255, 255, 0.68); }
.fiche-item {
  display: grid; grid-template-columns: minmax(4.5rem, 6rem) 1fr; gap: 1rem; align-items: baseline;
  padding-block: 1.05rem; border-bottom: 1px solid var(--line-dark);
}
.fiche-num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.fiche-num small { font-family: var(--font-body); font-size: 0.45em; color: var(--orange-light); font-weight: 600; margin-left: 0.1em; }
.fiche-item b { display: block; font-weight: 600; font-size: 0.95rem; }
.fiche-item p { margin-top: 0.2rem; font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.fiche-foot { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-top: 1rem; }
@media (max-width: 480px) { .fiche-item { grid-template-columns: 1fr; gap: 0.35rem; } }

/* Pôles : lignes pleine largeur */
.pole-list { border-top: 1px solid var(--blue-dark); }
.pole-row {
  display: grid; grid-template-columns: 3.25rem minmax(0, 4fr) minmax(0, 5fr) auto; gap: 1.25rem; align-items: baseline;
  padding: clamp(1.15rem, 2.2vw, 1.65rem) 0.5rem; border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease), padding-right 0.35s var(--ease);
}
.pole-row:hover, .pole-row:focus-visible { background: rgba(196, 98, 26, 0.06); padding-left: 1rem; padding-right: 1rem; }
.pole-num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--orange-dark); font-variant-numeric: tabular-nums; }
.pole-name { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.15; color: var(--blue-dark); letter-spacing: -0.01em; }
.pole-desc { color: var(--gray-600); max-width: 34rem; font-size: 0.92rem; }
.pole-go { display: inline-flex; gap: 0.45rem; font-weight: 600; font-size: 0.875rem; color: var(--blue-dark); white-space: nowrap; }
.pole-go .arrow { transition: transform 0.3s var(--ease); }
.pole-row:hover .pole-go .arrow { transform: translateX(5px); }
@media (max-width: 860px) {
  .pole-row { grid-template-columns: 2.5rem 1fr; gap: 0.4rem 1rem; }
  .pole-desc, .pole-go { grid-column: 2; }
  .pole-go { margin-top: 0.35rem; }
}

/* Bento asymétrique */
.bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: clamp(0.75rem, 1.4vw, 1.1rem); }
.bento-main { grid-row: 1 / span 2; background: var(--blue-dark); color: var(--white); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1.15rem; }
.bento-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.5vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--white); }
.bento-main > p { color: rgba(255, 255, 255, 0.82); max-width: 34rem; }
.bento-facts { margin-top: auto; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; }
.bento-facts > div { padding: 1rem 1rem 0 0; }
.bento-facts > div + div { padding-left: 1rem; border-left: 1px solid var(--line-dark); }
.bento-facts dt { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--orange-light); }
.bento-facts dd { margin-top: 0.3rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.82); }
.bento-side { background: var(--white); border: 1px solid var(--line); padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 0.65rem; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.bento-side:hover { border-color: var(--blue-dark); transform: translateY(-2px); }
.bento-fig { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1; color: var(--orange-dark); letter-spacing: -0.01em; }
.bento-h { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--blue-dark); line-height: 1.25; }
.bento-side p { color: var(--gray-600); font-size: 0.92rem; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento-main { grid-row: auto; } }
@media (max-width: 480px) { .bento-facts { grid-template-columns: 1fr; } .bento-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 0.75rem; } }

/* Bandeau de réassurance final */
.band { background: var(--blue-dark); color: var(--white); padding-block: clamp(2.25rem, 4.5vw, 3.25rem); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; }
.band-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.5vw, 1.75rem); line-height: 1.2; color: var(--white); }
.band p { margin-top: 0.4rem; color: rgba(255, 255, 255, 0.78); }

/* ---------- Liste éditoriale numérotée ---------- */
.index { border-top: 1px solid var(--line); }
.index-item { display: grid; grid-template-columns: clamp(2.75rem, 5vw, 4.25rem) minmax(0, 1fr); gap: 0 1.25rem; padding-block: clamp(1.25rem, 2.5vw, 1.85rem); border-bottom: 1px solid var(--line); }
.index-num { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1; color: var(--orange-dark); font-variant-numeric: tabular-nums; }
.index-body > * + * { margin-top: 0.65rem; }
.index-body p { color: var(--gray-600); max-width: 40rem; }
.index-body .link { margin-top: 0.85rem; }
.section--dark .index, .section--deeper .index { border-color: var(--line-dark); }
.section--dark .index-item, .section--deeper .index-item { border-color: var(--line-dark); }
.section--dark .index-num, .section--deeper .index-num { color: var(--orange-light); }
.section--dark .index-body p, .section--deeper .index-body p { color: rgba(255, 255, 255, 0.76); }

/* ---------- Encadrés ---------- */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--orange-dark); padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--white); }
.callout .h3 { margin-bottom: 0.5rem; }
.callout p { color: var(--gray-600); }
.section--dark .callout, .section--deeper .callout { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); border-left-color: var(--orange-light); }
.section--dark .callout p, .section--deeper .callout p { color: rgba(255, 255, 255, 0.78); }

/* ---------- Partenaires ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; padding: clamp(1.25rem, 2.2vw, 1.85rem); border-left: 1px solid var(--line); min-height: 170px; }
.partner:first-child { border-left: 0; padding-left: 0; }
.partner-logo { height: 64px; display: flex; align-items: center; }
.partner-logo img { max-height: 64px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.72; transition: filter 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.partner:hover .partner-logo img { filter: none; opacity: 1; transform: scale(1.03); }
.partner-name { font-weight: 600; color: var(--blue-dark); font-size: 0.92rem; line-height: 1.4; }
.partner-role { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.2rem; }
@media (max-width: 760px) {
  .partners { grid-template-columns: 1fr; }
  .partner, .partner:first-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .partner:first-child { border-top: 0; }
}

/* ---------- En-tête de page ---------- */
.page-head { padding-block: clamp(2.25rem, 4.5vw, 3.75rem) clamp(2rem, 3.5vw, 3rem); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 0.55rem; font-size: 0.8rem; color: var(--gray-500); margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.crumbs a:hover { color: var(--blue-dark); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page-head .h1 { max-width: 18ch; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.page-head-aside { display: grid; gap: 1.15rem; }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } .page-head .h1 { max-width: none; } }

/* ---------- Services : index latéral + lignes ---------- */
.side-nav { border-top: 1px solid var(--line); }
.side-nav a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 0.92rem; color: var(--gray-600); transition: color 0.2s, padding-left 0.3s var(--ease); }
.side-nav a small { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.side-nav a:hover { color: var(--blue-dark); }
.side-nav a.is-active { color: var(--blue-dark); padding-left: 0.75rem; box-shadow: inset 2px 0 0 var(--orange-dark); }
.side-nav a.is-active small { color: var(--orange-dark); }
@media (max-width: 860px) { .side-nav { display: none; } }

.domain { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.domain + .domain { margin-top: clamp(3rem, 5vw, 4.5rem); }
.domain-head { display: grid; gap: 0.85rem; margin-bottom: 1.5rem; }
.domain-banner { aspect-ratio: 21 / 8; margin-bottom: 1.5rem; }
.rows { border-top: 1px solid var(--blue-dark); }
.row-item { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.35rem 1.15rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); transition: background 0.3s var(--ease), padding-left 0.35s var(--ease); }
.row-item:hover { background: linear-gradient(90deg, rgba(27, 42, 74, 0.04), transparent); padding-left: 0.5rem; }
.row-num { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--orange-dark); font-variant-numeric: tabular-nums; padding-top: 0.3rem; }
.row-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--blue-dark); line-height: 1.25; }
.row-text { grid-column: 2; color: var(--gray-600); max-width: 38rem; }
.domain-cta { margin-top: 1.25rem; }

/* ---------- Etapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.step { padding: 1.5rem 1.5rem 0 0; }
.step + .step { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.step-num { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--orange-light); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--white); margin: 0.9rem 0 0.5rem; }
.step p { color: rgba(255, 255, 255, 0.76); font-size: 0.92rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--line-dark); } }

/* ---------- Formations : programmes dépliables ---------- */
.programs { border-top: 1px solid var(--blue-dark); }
.program { border-bottom: 1px solid var(--line); }
.program summary { display: grid; grid-template-columns: clamp(2.5rem, 4.5vw, 3.75rem) minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding-block: 1.25rem; cursor: pointer; list-style: none; }
.program summary::-webkit-details-marker { display: none; }
.program-num { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--orange-dark); line-height: 1; }
.program-title { font-family: var(--font-display); font-size: clamp(1.125rem, 1.8vw, 1.25rem); color: var(--blue-dark); line-height: 1.22; }
.program-sum { display: block; margin-top: 0.3rem; font-family: var(--font-body); font-size: 0.9rem; color: var(--gray-600); }
.program-toggle { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; position: relative; flex-shrink: 0; transition: background 0.3s, border-color 0.3s; }
.program-toggle::before, .program-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--blue-dark); transform: translate(-50%, -50%); transition: transform 0.35s var(--ease), background 0.3s; }
.program-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.program[open] .program-toggle { background: var(--blue-dark); border-color: var(--blue-dark); }
.program[open] .program-toggle::before, .program[open] .program-toggle::after { background: var(--white); }
.program[open] .program-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.program summary:hover .program-title { color: var(--blue-medium); }
.program-body { display: grid; grid-template-columns: clamp(2.5rem, 4.5vw, 3.75rem) minmax(0, 1fr); gap: 1rem; padding-bottom: 1.65rem; }
.program-body > div { grid-column: 2; display: grid; gap: 1.15rem; }
.modules { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.modules li { padding: 0.55rem 0 0.55rem 1.5rem; border-bottom: 1px solid var(--line-soft); position: relative; color: var(--gray-600); font-size: 0.92rem; }
.modules li::before { content: ''; position: absolute; left: 0; top: 1.1rem; width: 0.7rem; height: 1px; background: var(--orange-dark); }
@media (max-width: 720px) {
  .program summary { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
  .program summary .tag { display: none; }
  .program-body { grid-template-columns: 2.25rem 1fr; }
}

.defs { border-top: 1px solid var(--line); }
.def { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 1.5rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.def dt { font-family: var(--font-display); font-size: 1.25rem; color: var(--blue-dark); line-height: 1.25; }
.def dd { color: var(--gray-600); max-width: 38rem; }
@media (max-width: 720px) { .def { grid-template-columns: 1fr; gap: 0.35rem; } }
.big-figure { font-family: var(--font-display); font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 0.95; color: var(--blue-dark); letter-spacing: -0.02em; }
.big-figure sup { font-family: var(--font-body); font-size: 0.32em; letter-spacing: 0.1em; color: var(--orange-dark); font-weight: 600; vertical-align: top; margin-left: 0.35em; text-transform: uppercase; }

.photo-pair { position: relative; padding-bottom: 10%; }
.photo-pair .media-frame:first-child { width: 78%; aspect-ratio: 4 / 3; }
.photo-pair .media-frame + .media-frame { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border: 6px solid var(--cream); }
.section--white .photo-pair .media-frame + .media-frame { border-color: var(--white); }

/* ---------- Société / DG ---------- */
.values { width: 100%; border-collapse: collapse; }
.values th, .values td { text-align: left; vertical-align: baseline; padding: 1.15rem 1.25rem 1.15rem 0; border-top: 1px solid var(--line); }
.values tr:last-child th, .values tr:last-child td { border-bottom: 1px solid var(--line); }
.values th { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--blue-dark); width: 28%; }
.values td { color: var(--gray-600); }
.values .vnum { width: 3.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--orange-dark); }
@media (max-width: 640px) { .values, .values tbody, .values tr, .values th, .values td { display: block; width: 100%; } .values tr { padding-block: 1rem; border-top: 1px solid var(--line); } .values th, .values td { border: 0 !important; padding: 0.15rem 0; } }

.portrait { position: relative; }
.portrait .media-frame { aspect-ratio: 4 / 5; }
.portrait .media-frame img { object-position: center 20%; }
.portrait figcaption { padding-top: 0.85rem; border-top: 1px solid var(--line); margin-top: 0.85rem; display: grid; gap: 0.15rem; }
.portrait figcaption b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--blue-dark); }
.portrait figcaption span { font-size: 0.85rem; color: var(--gray-500); }

.pull { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--blue-dark); padding-left: clamp(1rem, 2.2vw, 1.75rem); border-left: 3px solid var(--orange-dark); }
.pull cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-style: normal; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }
.letter p { max-width: 40rem; }
.letter p + p { margin-top: 1.1rem; }
.letter p:first-child::first-letter { float: left; font-family: var(--font-display); font-size: 3.6rem; line-height: 0.85; padding: 0.25rem 0.5rem 0 0; color: var(--blue-dark); }
.signature { margin-top: 2rem; padding-top: 1.15rem; border-top: 1px solid var(--line); display: grid; gap: 0.2rem; }
.signature b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--blue-dark); }
.signature span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-list { border-top: 1px solid var(--line); }
.contact-row { display: grid; gap: 0.25rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.contact-row dt { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }
.contact-row dd { font-family: var(--font-display); font-size: 1.25rem; color: var(--blue-dark); line-height: 1.35; }
.contact-row dd a:hover { color: var(--orange-dark); }
.contact-row dd small { display: block; font-family: var(--font-body); font-size: 0.875rem; color: var(--gray-600); }

.form { display: grid; gap: 1.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; color: var(--gray-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--blue-dark);
  padding: 0.6rem 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--gray-300); border-radius: 0;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; border: 1px solid var(--gray-300); padding: 0.75rem; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231B2A4A' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 0.25rem center no-repeat; padding-right: 1.75rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-300); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--blue-dark); box-shadow: 0 1px 0 var(--blue-dark); }
.field textarea:focus { outline: none; border-color: var(--blue-dark); box-shadow: 0 0 0 1px var(--blue-dark); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.form-status { min-height: 1.5rem; font-size: 0.9rem; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--error); }
.map { border: 1px solid var(--line); aspect-ratio: 16 / 6.5; background: var(--gray-50); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4); }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- CTA final ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-deeper); color: rgba(255, 255, 255, 0.74); padding-top: clamp(3rem, 5vw, 4.5rem); font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2.5fr) minmax(0, 4.5fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.footer-brand .brand-name { color: var(--white); font-size: 1.35rem; }
.footer-brand p { margin-top: 0.9rem; max-width: 26rem; line-height: 1.6; }
.footer-h { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--orange-light); margin-bottom: 1rem; }
.footer-list li + li { margin-top: 0.55rem; }
.footer-list a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.footer-list a:hover { color: var(--white); }
.footer-list li { line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Apparition douce au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(27, 42, 74, 0.4); --line-soft: rgba(27, 42, 74, 0.25); }
}


/* ==========================================================================
   Nouvelles sections & composants (WhatsApp, Témoignages, Réalisations,
   Téléchargements, Recrutement, Teaser Espace Digital)
   ========================================================================== */

/* ---------- Bouton flottant WhatsApp Business ---------- */
.whatsapp-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.05rem;
  background: var(--blue-dark);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 29, 53, 0.24);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp-fab:hover, .whatsapp-fab:focus-visible {
  background: #1B7A4A;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 29, 53, 0.3);
}
.whatsapp-fab svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }
@media (max-width: 560px) {
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 0.82rem; }
}

/* ---------- Témoignages clients ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange-dark);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.testimonial:hover { border-color: var(--blue-dark); transform: translateY(-2px); }
.testimonial blockquote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-800);
}
.testimonial-author {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}
.testimonial-author b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--blue-dark);
}
.testimonial-author span {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Teaser Plateforme Digitale & E-learning ---------- */
.teaser-box {
  background: var(--blue-deeper);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-left: 3px solid var(--orange-light);
}
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: 1.75rem;
}
.teaser-item {
  padding: 1.25rem 1.25rem 0 0;
}
.teaser-item + .teaser-item {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-dark);
}
.teaser-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange-light);
}
.teaser-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin: 0.5rem 0 0.4rem;
}
.teaser-item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 0; }
  .teaser-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .teaser-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
}
@media (max-width: 520px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-item, .teaser-item + .teaser-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 1rem; }
  .teaser-item:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- Galerie des réalisations & Espace Téléchargement ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.gallery-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.gallery-card .media-frame { aspect-ratio: 16 / 10; }
.gallery-meta {
  padding: 1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.4rem;
}
.period-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.gallery-meta h3 { font-size: 1.15rem; }
.gallery-meta p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }

.downloads { border-top: 1px solid var(--blue-dark); }
.download-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.5rem 1.25rem;
  align-items: center;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.download-row:hover { background: rgba(27, 42, 74, 0.03); }
.download-meta { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.25rem; }
@media (max-width: 680px) {
  .download-row { grid-template-columns: 2.5rem 1fr; }
  .download-row .btn { grid-column: 2; justify-self: start; margin-top: 0.6rem; }
}

/* ---------- Espace Recrutement ---------- */
.job-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--blue-dark);
}
.filter-group { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.filter-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-right: 0.35rem;
}
.filter-btn {
  padding: 0.42rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--blue-dark); color: var(--blue-dark); }
.filter-btn.is-active { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.job-list { border-bottom: 1px solid var(--line); }
.job-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.5rem 1.25rem;
  align-items: center;
  padding: 1.35rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.job-row:last-child { border-bottom: 0; }
.job-row:hover { background: rgba(27, 42, 74, 0.03); }
.job-row[hidden] { display: none; }
.job-desc { font-size: 0.9rem; color: var(--gray-600); margin-top: 0.35rem; max-width: 42rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
@media (max-width: 720px) {
  .job-row { grid-template-columns: 2.5rem 1fr; }
  .job-row .btn { grid-column: 2; justify-self: start; margin-top: 0.6rem; }
}

.file-input-wrap {
  border: 1px dashed var(--gray-300);
  padding: 1rem 1.15rem;
  background: var(--off-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: border-color 0.25s var(--ease);
}
.file-input-wrap:focus-within, .file-input-wrap:hover { border-color: var(--blue-dark); }
.file-input-wrap input[type="file"] { font-size: 0.85rem; color: var(--gray-600); border: 0; padding: 0; width: auto; }
.file-hint { font-size: 0.78rem; color: var(--gray-500); }


/* ---------- Tribune Mot du Directeur General (35% / 65%) ---------- */
.dg-tribune {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.dg-photo-frame {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--gray-50);
}
.dg-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.65s var(--ease);
}
.dg-photo-frame:hover img { transform: scale(1.03); }
.dg-caption {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.dg-caption strong {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-dark);
}
.dg-caption span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.15rem;
}
.dg-speech {
  border-left: 2px solid var(--orange-dark);
  padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
}
.dg-hook {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.42;
  color: var(--blue-dark);
  margin-bottom: 1.4rem;
}
.dg-paragraphs p {
  line-height: 1.7;
  color: var(--gray-800);
  max-width: 44rem;
}
.dg-paragraphs p + p { margin-top: 1.1rem; }
.dg-sign-right {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: right;
}
.dg-sign-right strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--blue-dark);
}
.dg-sign-right span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 0.15rem;
}
@media (max-width: 860px) {
  .dg-tribune { grid-template-columns: 1fr; gap: 2rem; }
  .dg-photo-col { max-width: 340px; }
}


/* ==========================================================================
   Audit & Optimisation Responsive (Mobile 360-480px · Tablette 768-1024px · Desktop 1280px+)
   ========================================================================== */

/* Prévention globale du débordement horizontal sur grilles & tableaux */
.wrap > *, .split > *, .hero-grid--60-40 > *, .bento > *, .dg-tribune > *, .closing > * {
  min-width: 0;
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Zones cliquables >= 44px */
.btn,
.filter-btn,
.download-row .btn,
.job-row .btn {
  min-height: 44px;
}

/* Tablette (768px - 1024px) : grilles équilibrées en 2 colonnes */
@media (max-width: 1024px) and (min-width: 768px) {
  .visual-strip,
  .testimonials,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile (< 768px) : empilement strict 1 colonne, paddings 1.25rem, portrait DG centré, partenaires 2 cols */
@media (max-width: 767px) {
  :root {
    --gutter: 1.25rem;
  }
  .wrap {
    padding-inline: 1.25rem;
  }

  /* Grilles asymétriques empilées en 1 colonne */
  .hero-grid--60-40,
  .split,
  .split--rev,
  .page-head-grid,
  .closing,
  .bento,
  .dg-tribune,
  .visual-strip,
  .testimonials,
  .gallery-grid,
  .steps,
  .pillars-3,
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .sticky {
    position: static;
  }

  /* Section Mot du DG : portrait centré et maîtrisé */
  .dg-photo-col {
    max-width: 280px;
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }
  .dg-speech {
    border-left: 2px solid var(--orange-dark);
    padding-left: 1rem;
  }

  /* Partenaires en 2 colonnes sur mobile */
  .partners {
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--line);
  }
  .partner,
  .partner:first-child {
    padding: 1rem 0.75rem;
    min-height: 0;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .partner:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .partner:nth-child(-n+2) {
    border-top: 0;
  }
  .partner-logo {
    height: 48px;
  }
  .partner-logo img {
    max-height: 48px;
    max-width: 110px;
  }

  /* Téléchargements & offres d'emploi pleine largeur tactile */
  .download-row,
  .job-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding-inline: 0;
  }
  .download-row .btn,
  .job-row .btn {
    width: 100%;
    justify-content: space-between;
  }

  /* WhatsApp mobile : coin bas droit 16px, ne masque pas le footer */
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    min-width: 48px;
    min-height: 48px;
    padding: 0.75rem;
  }
  .site-footer {
    padding-bottom: 4.75rem;
  }
}

/* Desktop large (1280px+) : respiration optimale */
@media (min-width: 1280px) {
  .partners {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}


/* Badge clignotant "Bientôt disponible" */
@keyframes blinkBadge {
  0%, 100% { opacity: 1; border-color: var(--orange-light); }
  50% { opacity: 0.35; border-color: rgba(232, 148, 79, 0.25); }
}
.tag--blink {
  animation: blinkBadge 1.5s ease-in-out infinite;
  color: var(--orange-light) !important;
  border-color: var(--orange-light) !important;
}

/* Champ honeypot anti-spam (invisible pour les utilisateurs) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


/* ---------- Bandeau de consentement aux cookies (n'entre pas en conflit avec WhatsApp à droite) ---------- */
.cookie-banner {
  position: fixed;
  left: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 94;
  width: min(460px, calc(100vw - 2rem));
  background: var(--blue-deeper);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--orange-light);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 14px 36px rgba(15, 29, 53, 0.34);
  display: grid;
  gap: 0.9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}
.cookie-text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
.cookie-text a { color: var(--orange-light); text-decoration: underline; }
.cookie-prefs {
  border-top: 1px solid var(--line-dark);
  padding-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}
.cookie-prefs[hidden] { display: none; }
.cookie-opt {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
}
.cookie-opt small { display: block; color: rgba(255, 255, 255, 0.6); font-size: 0.76rem; margin-top: 0.1rem; }
.cookie-opt input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange-light); flex-shrink: 0; margin-top: 2px; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.cookie-actions .btn {
  padding: 0.65rem 1rem;
  min-height: 40px;
  font-size: 0.82rem;
}
.cookie-link-btn {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0.35rem 0.25rem;
  margin-left: auto;
}
.cookie-link-btn:hover { color: var(--white); }

@media (max-width: 640px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 76px; /* Dégagé au-dessus du bouton WhatsApp en bas à droite */
  }
}

/* Accessibilité WCAG AA (>= 4.5:1) sur petits textes d'accent en mode clair */
.pole-num,
.row-num,
.values .vnum,
.period-badge,
.link:hover,
.contact-row dd a:hover,
.side-nav a.is-active small {
  color: var(--orange-text);
}


/* ---------- Section Equipe & Formateurs ---------- */
.team-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange-dark);
  border-radius: 4px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: clamp(1.15rem, 2vw, 1.5rem);
  align-items: start;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.1rem, 2vw, 1.5rem);
}
.team-card {
  display: grid;
  grid-template-columns: minmax(0, 145px) 1fr;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  align-items: start;
  transition: border-color 0.25s var(--ease);
}
.team-card:hover, .team-lead-card:hover {
  border-color: var(--blue-dark);
}
.team-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--gray-50);
}
.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-info {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue-dark);
  line-height: 1.22;
  margin-top: 0.35rem;
}
.team-lead-card .team-name {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}
.team-role {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange-text);
}
.team-org {
  font-size: 0.78rem;
  color: var(--gray-500);
  letter-spacing: 0.06em;
}
.team-specs {
  margin-top: 0.75rem;
}
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-lead-card,
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-lead-card .team-portrait,
  .team-card .team-portrait {
    max-width: 220px;
    width: 100%;
    margin-inline: auto;
  }
}

/* Lien clignotant (ex: Consulter le catalogue des formations) */
@keyframes blinkLink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.link--blink {
  color: var(--orange-text);
  animation: blinkLink 1.5s ease-in-out infinite;
}


/* Modales réutilisables (site/components.js — Phase 1 & Espace Client Phase 2) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 29, 53, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-box {
  width: min(560px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange-dark);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
  max-height: 90dvh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--blue-dark);
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 2px;
}
.modal-close:hover { background: var(--blue-dark); color: var(--white); }
