/* =========================================================
   Biogroup Institute – Homepage V2
   Même maquette, même contenu : espacements, alignements et
   grilles remis sur un rythme régulier (base 8 px).
   ========================================================= */

:root {
  --navy: #1c1f40;
  --blue: #1e318f;
  --cyan: #bbf6fa;
  --bg: #f7f9fb;
  --border: rgba(199, 197, 207, 0.4);
  --white: #ffffff;
  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap-pad: 64px;
  --section: 96px;      /* respiration verticale des sections */
  --gap: 24px;          /* gouttière des grilles */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 24px rgba(28, 31, 64, .08);
  --shadow-card-hover: 0 16px 36px rgba(28, 31, 64, .14);
  --shadow-dark: 0 12px 32px rgba(0, 0, 0, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 700; }
b { font-weight: 600; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}
.section { padding: var(--section) 0; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--center { text-align: center; }
.eyebrow--cyan { color: var(--cyan); }
.eyebrow--white { color: rgba(255,255,255,.85); }

.body-16 { font-size: 16px; line-height: 1.6; }

.h-mono-40 { font-family: var(--font-mono); font-weight: 600; font-size: 40px; line-height: 1.15; }
.h-mono-28 { font-family: var(--font-mono); font-weight: 600; font-size: 28px; line-height: 1.25; }
.h-mono-20 { font-family: var(--font-mono); font-weight: 600; font-size: 20px; line-height: 1.25; }
.h-sans-40 { font-family: var(--font-sans); font-weight: 400; font-size: 40px; line-height: 1.15; letter-spacing: -.01em; }
.h-sans-40 strong { font-weight: 700; color: var(--blue); }
.h-sans-40 b { font-weight: 600; color: var(--navy); }
.h-sans-40--white { color: var(--white); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  border-radius: 9999px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease, filter .3s ease;
}
.btn-primary {
  height: 44px;
  padding: 0 24px;
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: #172670; box-shadow: 0 8px 18px rgba(30,49,143,.25); }
.btn-outline {
  height: 48px;
  padding: 0 32px;
  color: var(--white);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.85);
}
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: var(--white); }
.btn-gradient {
  width: 360px;
  max-width: 100%;
  height: 48px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue) 66.346%, var(--cyan) 100%);
  box-shadow: 0 6px 16px rgba(30,49,143,.22);
}
.btn-gradient:hover { box-shadow: 0 10px 24px rgba(30,49,143,.32); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.56px;
  color: var(--blue);
  white-space: nowrap;
}
.card-link--white { color: var(--white); gap: 12px; }

/* =========================================================
   1. Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo img { width: 134.262px; height: 46.925px; }
.main-nav ul { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a img { width: 9px; height: 5.55px; }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.search-btn { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.search-btn img { width: 18px; height: 18px; }
.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   2. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30,49,143,.45) 0%, rgba(9,14,41,.45) 100%),
    url("../assets/hero-bg.jpg") center / cover no-repeat;
}
.hero-inner {
  position: relative;
  padding-top: 80px;
  padding-bottom: 88px;
  max-width: 1280px;
}
.hero-title {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
}
.hero-title .line { display: block; }
.hero-text {
  margin-top: 32px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
}
.hero-btn { margin-top: 40px; }

/* =========================================================
   Têtes de section centrées
   ========================================================= */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 56px;
}
.section-head-text { max-width: 720px; margin-top: 4px; }
.activites-title, .poles .h-sans-40 { max-width: 860px; }

/* =========================================================
   3. Notre ancrage
   ========================================================= */
.ancrage { background: var(--white); padding: var(--section) 0; }
.ancrage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 514px;
  gap: 64px;
  align-items: center;
}
.ancrage-text .h-mono-40 { margin-top: 20px; }
.ancrage-text .body-16 { margin-top: 24px; max-width: 580px; }
.ancrage-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ancrage-visual img {
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* ---------- Cartes statistiques ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 64px;
}
.stats--donnees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 150px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.stat-card--blue { background: var(--blue); color: var(--white); }
.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 14px; line-height: 1.45; }

/* =========================================================
   4. Notre écosystème
   ========================================================= */
.ecosystem {
  padding: var(--section) 0;
  color: var(--white);
  background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%);
  text-align: center;
}
.ecosystem-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
}
.ecosystem-text {
  margin: 20px auto 0;
  max-width: 920px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
}
.stats--eco { margin-top: 56px; text-align: left; }
.stat-card--eco { box-shadow: var(--shadow-dark); }
.stat-card--eco:hover { box-shadow: 0 18px 40px rgba(0,0,0,.34); }
.stat-card--outline {
  background: rgba(255,255,255,.04);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow-dark);
}
.stat-card--outline:hover { background: rgba(255,255,255,.08); }

.partners {
  margin-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 56px;
}
.partners img { object-fit: contain; }
.partners li:nth-child(1) img { width: 104.463px; height: 87.467px; }
.partners li:nth-child(2) img { width: 120.525px; height: 73.279px; object-position: bottom; }
.partners li:nth-child(3) img { width: 76.114px; height: 75.208px; }
.partners li:nth-child(4) img { width: 176px; height: 47px; object-position: bottom; }

/* Bouton « Découvrir nos études réalisées » : contour arrondi, texte et flèche sur une ligne */
.eco-link {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 56px auto 0;
  height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(187,246,250,.6);
  border-radius: 9999px;
  color: var(--cyan);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.eco-link:hover { background: rgba(187,246,250,.12); border-color: var(--cyan); }
.eco-link-text { font-weight: 600; font-size: 14px; line-height: 1; letter-spacing: 0.56px; text-transform: uppercase; }
.eco-link-arrow { display: inline-flex; }
.eco-link-arrow img { transition: transform .25s ease; }
.eco-link:hover .eco-link-arrow img { transform: translateX(4px); }

/* =========================================================
   5. Nos activités / Nos pôles (carrousels)
   ========================================================= */
.activites { padding: var(--section) 0; background: var(--bg); }
.poles { padding: var(--section) 0; background: var(--white); }

.carousel { position: relative; }
.carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Marge intérieure pour que l'ombre et le soulèvement au survol ne soient pas coupés,
     compensée par une marge négative pour garder l'alignement de la grille */
  padding: 16px 24px 48px;
  margin: -16px -24px -48px;
  scroll-padding-inline: 24px;
}
/* Toutes les cartes tiennent à l'écran : pas de flèches */
[data-carousel-static] .carousel-btn { display: none; }
/* … et rien à faire défiler : on ne rogne plus les ombres */
[data-carousel-static] .carousel-track { overflow: visible; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - var(--gap) * 2) / 3);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--blue);
  box-shadow: 0 4px 12px rgba(28,31,64,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), background-color .2s ease, opacity .3s ease;
}
.carousel-btn:hover { transform: scale(1.06); background: #eef1fb; }
.carousel-btn:disabled { opacity: .35; cursor: default; transform: none; }
.carousel-btn img { width: 12px; height: 7.4px; }
.carousel-btn--prev { left: -20px; }
.carousel-btn--prev img { transform: rotate(90deg); }
.carousel-btn--next { right: -20px; }
.carousel-btn--next img { transform: rotate(-90deg); }

.service-card, .pole-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease;
}
/* Toutes les cartes sont identiques : la bordure bleue n'apparaît qu'au survol */
.service-card:hover, .pole-card:hover,
.service-card:focus-within, .pole-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--blue);
}
.card-media {
  height: 200px;
  flex: 0 0 200px;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .6s var(--ease); }
.service-card:hover .card-media img, .pole-card:hover .card-media img { transform: scale(1.03); }
.service-card:hover .link-ico img, .pole-card:hover .link-ico img { transform: translateX(4px); }
.service-body, .pole-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 32px;
}
.service-body h3 { min-height: 50px; }
.service-text, .pole-body .body-16 { margin-top: 16px; }
.pole-body .eyebrow { margin-bottom: 8px; }
.service-body .card-link, .pole-body .card-link { margin-top: auto; padding-top: 32px; }

/* =========================================================
   7. Accompagnement
   ========================================================= */
.accompagnement {
  padding: 80px 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue) 0%, var(--navy) 100%);
}
.accompagnement-inner {
  display: grid;
  grid-template-columns: minmax(0, 368px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.accompagnement-text .h-mono-28 strong { font-weight: 700; }
.accompagnement-text .body-16 { margin-top: 20px; color: rgba(255,255,255,.92); }
.accompagnement-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.acc-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background-color .3s ease, box-shadow .35s ease;
}
.acc-icon { height: 24px; width: auto; max-width: 100%; margin-bottom: 24px; }
.acc-card h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}
.acc-card p { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.acc-card--outline { border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.04); }
.acc-card--outline:hover { background: rgba(255,255,255,.08); }
.acc-card--white { background: var(--white); color: var(--navy); border: 1px solid var(--border); box-shadow: var(--shadow-dark); }
.acc-card--white .acc-icon { height: 26.667px; }
.accompagnement-cards { align-items: stretch; }
.accompagnement-cards .acc-card { height: 100%; }
.accompagnement-cards .acc-card h3 { font-weight: 600; }
.acc-card--white:hover { transform: translateY(-3px); }

/* =========================================================
   CTA
   ========================================================= */
.cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title { font-family: var(--font-mono); font-weight: 600; }
.cta-title span { color: var(--blue); }
.cta-title--upper { font-size: 32px; line-height: 1.3; text-transform: uppercase; }
.cta--cyan { padding: var(--section) 0; background: rgba(187,246,250,.5); }
.cta--white { padding: var(--section) 0; background: var(--white); }
.cta--white .cta-title span { font-weight: 700; }
.cta .body-16 { margin-top: 16px; max-width: 672px; }
.cta .btn-gradient { margin-top: 32px; }

/* =========================================================
   Données
   ========================================================= */
.donnees { padding: var(--section) 0; background: var(--white); }
.donnees-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 538px;
  gap: 64px;
  align-items: center;
}
.donnees-text .h-sans-40 { margin-top: 20px; max-width: 560px; }
.donnees-text .body-16 { margin-top: 24px; max-width: 560px; }
.donnees-visual img {
  width: 100%;
  aspect-ratio: 538 / 313;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* =========================================================
   5. Chaînage SNDS
   ========================================================= */
.snds {
  position: relative;
  padding: var(--section) 0;
  color: var(--white);
  background: url("../assets/snds-bg.jpg") center 35% / cover no-repeat;
  overflow: hidden;
}
.snds::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.1) 100%),
    linear-gradient(180deg, rgba(30,49,143,.82) 0%, rgba(28,31,64,.82) 100%);
}
.snds-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.snds-title {
  margin-top: 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 520px;
}
.snds-text { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.9); }
.snds-highlight { margin-top: 32px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.9); }
.snds-highlight strong { font-weight: 600; font-size: 20px; line-height: 1.4; }

/* =========================================================
   Conformité
   ========================================================= */
.conformite { padding: var(--section) 0 0; background: var(--bg); }
.conformite-card {
  position: relative;
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 72px 80px 72px 0;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%);
}
.conformite-visual {
  position: absolute;
  left: 0;
  top: -36px;
  width: 653px;
  max-width: none;
  height: auto;
  pointer-events: none;
}
.conformite-text { position: relative; grid-column: 2; max-width: 600px; }
.conformite-text .h-sans-40 { margin-top: 16px; }
.conformite-text .body-16 { margin-top: 24px; color: rgba(255,255,255,.92); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badge {
  padding: 8px 16px 9px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 9999px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid rgba(30,49,143,.4);
  white-space: nowrap;
}
.badge--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.conformite-text .card-link { margin-top: 24px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: var(--section) 0; background: var(--bg); }
.faq-title { margin-top: 16px; text-align: center; }
.faq-card {
  width: 768px;
  max-width: 100%;
  margin: 48px auto 0;
  padding: 8px 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.faq-item { border-bottom: 1px solid #e3e2e8; }
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
  transition: color .2s ease;
}
.faq-question:hover { color: var(--blue); }
.faq-question span { max-width: 580px; }
.faq-question img { flex: 0 0 auto; width: 12px; height: 7.4px; transition: transform .25s ease; }
.faq-question[aria-expanded="true"] img { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 40px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(28,31,64,.85);
  transition: grid-template-rows .4s var(--ease), padding .4s var(--ease), margin .4s var(--ease);
}
.faq-answer > p { overflow: hidden; min-height: 0; }
.faq-question[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; padding-bottom: 26px; margin-top: -10px; }

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer { color: var(--white); background: var(--navy); padding: 72px 0 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand { font-family: var(--font-mono); font-weight: 600; font-size: 20px; line-height: 1.2; }
.footer-legal { margin-top: 16px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.9); }
.footer-desc { margin-top: 16px; max-width: 300px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.75); }
.footer-heading {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; }
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: var(--cyan); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) {
  :root { --wrap-pad: 40px; --section: 80px; }
  .hero-title { font-size: clamp(38px, 5vw, 56px); }
  .ancrage-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 48px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--donnees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carousel-track > li { flex: 0 0 340px; }
  /* Flèches sous le carrousel, centrées, pour ne jamais recouvrir les cartes */
  .carousel { padding-bottom: 72px; }
  .carousel[data-carousel-static] { padding-bottom: 0; }
  .carousel-btn { top: auto; bottom: 0; margin-top: 0; }
  .carousel-btn--prev { left: calc(50% - 56px); }
  .carousel-btn--next { right: calc(50% - 56px); }
  .accompagnement-inner { grid-template-columns: 1fr; gap: 40px; }
  .accompagnement-text { max-width: 640px; }
  .donnees-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: 48px; }
  .snds-inner { gap: 40px; }
  .conformite-card { grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 32px; padding: 56px 48px 56px 0; }
  .conformite-visual { width: 460px; left: -8px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 1023px) {
  .h-sans-40, .h-mono-40, .snds-title { font-size: clamp(28px, 4.2vw, 40px); }
  .ecosystem-title, .cta-title--upper { font-size: clamp(24px, 3.4vw, 32px); }

  .main-nav {
    position: fixed;
    top: 81px;
    right: 0;
    bottom: 0;
    width: min(320px, 100%);
    padding: 24px var(--wrap-pad) 40px;
    background: var(--white);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(28,31,64,.08);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .3s ease, visibility 0s; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li a { justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); }
  .main-nav .nav-cta { display: inline-flex; margin-top: 24px; width: 100%; }
  .header-cta { display: none; }
  .burger { display: flex; }
  body.nav-open { overflow: hidden; }

  .ancrage-grid, .donnees-grid, .snds-inner { grid-template-columns: 1fr; }
  .ancrage-visual { justify-content: flex-start; }
  .donnees-visual { max-width: 538px; }
  .conformite-card { grid-template-columns: 1fr; padding: 48px 40px; }
  .conformite-visual { position: static; width: 100%; max-width: 440px; margin: -84px auto 0; }
  .conformite-text { grid-column: auto; }
}

@media (max-width: 767px) {
  :root { --wrap-pad: 20px; --section: 64px; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero-text { margin-top: 24px; font-size: 16px; }
  .hero-btn { margin-top: 32px; }
  .section-head { margin-bottom: 40px; }
  .stats, .stats--donnees { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .stat-card { min-height: 0; padding: 24px 20px; }
  .stat-num { font-size: 36px; }
  .ancrage-visual img { max-width: 100%; }
  .partners { margin-top: 48px; gap: 24px 32px; }
  .eco-link { margin-top: 40px; height: auto; min-height: 48px; padding: 12px 24px; white-space: normal; text-align: center; }
  .carousel { padding-bottom: 64px; }
  .carousel-track > li { flex: 0 0 min(300px, calc(100% - 16px)); }
  .carousel-btn { top: auto; bottom: 0; margin-top: 0; }
  .carousel-btn--prev { left: calc(50% - 52px); }
  .carousel-btn--next { right: calc(50% - 52px); }
  .service-body, .pole-body { padding: 24px; }
  .service-body h3 { min-height: 0; }
  .accompagnement { padding: 64px 0; }
  .accompagnement-cards { grid-template-columns: 1fr; }
  .cta-title { font-size: 24px; }
  .conformite-card { padding: 32px 20px; border-radius: 16px; }
  .conformite-visual { max-width: 300px; margin-top: -64px; }
  .faq-card { margin-top: 32px; padding: 4px 20px; }
  .faq-question { padding: 20px 0; font-size: 16px; }
  .site-footer { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 479px) {
  :root { --wrap-pad: 16px; }
  .hero-title { font-size: clamp(30px, 8.6vw, 36px); }
  .h-sans-40, .h-mono-40, .snds-title { font-size: 26px; }
  .accompagnement-text .h-mono-28 { font-size: 24px; }
}

/* ---------- Accessibilité ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Animations (recette SFEL, partagée avec la V1)
   ========================================================= */
/* ---------- Révélation au scroll ----------
 * L'état masqué ne s'applique que tant que .in-view est absente : une fois
 * révélé, l'élément revient à ses styles naturels (aucun conflit de survol).
 * Classe posée par JS : sans JS, rien n'est masqué. */
html:not(.no-js) [data-reveal],
html:not(.no-js) [data-reveal-group] > * {
  transition:
    opacity .7s cubic-bezier(.22,.61,.36,1),
    transform .7s cubic-bezier(.22,.61,.36,1),
    filter .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}
html:not(.no-js) [data-reveal]:not(.in-view),
html:not(.no-js) [data-reveal-group]:not(.in-view) > * {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
}
html:not(.no-js) [data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 60ms); }
html:not(.no-js) .carousel-track[data-reveal-group] > *,
html:not(.no-js) .stats[data-reveal-group] > *,
html:not(.no-js) .accompagnement-cards[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }
html:not(.no-js) [data-reveal-group].is-settled > * { transition-delay: 0s; }
html:not(.no-js) .hero-inner[data-reveal-group] > * { transition-delay: calc(.1s + var(--i, 0) * 90ms); }

/* Mobile : animation allégée (le flou animé est coûteux en GPU) */
@media (max-width: 767px) {
  html:not(.no-js) [data-reveal],
  html:not(.no-js) [data-reveal-group] > * {
    transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1);
    transition-delay: 0s;
    will-change: opacity, transform;
  }
  html:not(.no-js) [data-reveal]:not(.in-view),
  html:not(.no-js) [data-reveal-group]:not(.in-view) > * {
    transform: translateY(10px);
    filter: none;
  }
}

/* ---------- Chiffres clés : compteur ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- Soulignement animé des liens de navigation ---------- */
.main-nav li a { position: relative; }
.main-nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.main-nav li a:hover::after { transform: scaleX(1); }

/* ---------- Flèche des liens : sort en haut à droite, revient en bas à gauche ---------- */
.link-ico {
  display: inline-flex;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}
.link-ico img { display: block; }
.link-ico img { transition: transform .25s ease; }
.card-link:hover .link-ico img { transform: translateX(4px); }


/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) [data-reveal],
  html:not(.no-js) [data-reveal-group] > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}



/* =========================================================
   Cartes entièrement cliquables
   Le lien de la carte s'étend à toute sa surface (pseudo-élément),
   le texte reste sélectionnable et le lien accessible au clavier.
   ========================================================= */
.service-card .card-link::after,
.pole-card .card-link::after,
.feature-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.service-card, .pole-card { cursor: pointer; }
.service-card .card-link:focus-visible, .pole-card .card-link:focus-visible { outline: none; }
.service-card:has(.card-link:focus-visible), .pole-card:has(.card-link:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
