/* Yadec — site public (Laravel Blade). Reprise à l'identique des styles du front React validé. */

/* ===== tokens.css ===== */
/* ==========================================================================
   Yadec — Design tokens
   Couleurs et polices reprises de l'identité yadec.ci :
   noir #1B1B1E, bleu nuit #1A1E41 / #343C82, rouge du logo #F0002F / #AE0024,
   Raleway (titres) + Sarabun (texte).
   ========================================================================== */
:root {
  /* Couleurs */
  --ink: #1b1b1e;
  --ink-deep: #0d0e12;
  --ink-soft: #3c3c4e;
  --navy: #1a1e41;
  --navy-2: #343c82;
  --navy-3: #4e5ac3;
  --red: #e8002d;
  --red-deep: #ae0024;
  --paper: #f6f5f2;
  --white: #ffffff;
  --line: #e2e2e2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --muted: #5d5d61;
  --muted-2: #8f8f8f;
  --on-dark: #f6f5f2;
  --on-dark-muted: rgba(246, 245, 242, 0.66);

  /* Typographie */
  --font-display: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Sarabun', 'Helvetica Neue', Arial, sans-serif;
  --fs-display-1: clamp(2.6rem, 6.4vw, 6.1rem);
  --fs-display-2: clamp(2rem, 4.2vw, 3.7rem);
  --fs-display-3: clamp(1.5rem, 2.4vw, 2.1rem);
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.1rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-micro: 0.75rem;

  /* Espacements (échelle 4px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(56px, 7.5vw, 112px);

  /* Grille */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 76px;

  /* Formes & mouvement */
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;
  --shadow: 0 24px 60px -30px rgba(13, 14, 18, 0.35);
}

/* ===== base.css ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection {
  background: var(--red);
  color: var(--white);
}

.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: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: none;
}

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

/* ===== components.css ===== */
/* ==========================================================================
   Composants réutilisables
   ========================================================================== */

/* Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--paper {
  background: var(--paper);
}
.section--dark {
  background: var(--ink-deep);
  color: var(--on-dark);
}
.section--navy {
  background: var(--navy);
  color: var(--on-dark);
}
.section--tight {
  padding-block: clamp(40px, 5vw, 72px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-6) clamp(16px, 2.4vw, 32px);
}

/* Typographie ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}
.section--dark .eyebrow,
.section--navy .eyebrow,
.on-dark .eyebrow {
  color: var(--on-dark-muted);
}

.display-1 {
  font-size: var(--fs-display-1);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.display-2 {
  font-size: var(--fs-display-2);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.display-3 {
  font-size: var(--fs-display-3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.display-2--wide {
  font-size: clamp(1.6rem, 2.9vw, 2.8rem);
  text-wrap: pretty;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}
.section--dark .lead,
.section--navy .lead,
.on-dark .lead {
  color: var(--on-dark-muted);
}
.mono {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
}
.accent {
  color: var(--red);
}

/* En-tête de section */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5) clamp(16px, 2.4vw, 32px);
  margin-bottom: clamp(32px, 4.5vw, 56px);
  align-items: end;
}
.section-head__title {
  grid-column: 1 / span 7;
  display: grid;
  gap: var(--s-5);
}
.section-head__title--full {
  grid-column: 1 / -1;
}
.section-head__aside {
  grid-column: 8 / span 5;
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
@media (max-width: 900px) {
  .section-head__title,
  .section-head__aside {
    grid-column: 1 / -1;
  }
}

/* Boutons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover-bg, var(--red));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.btn:hover {
  color: var(--btn-hover-fg, var(--white));
  border-color: var(--btn-hover-bg, var(--red));
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn--accent {
  --btn-bg: var(--red);
  --btn-bd: var(--red);
  --btn-hover-bg: var(--white);
  --btn-hover-fg: var(--ink);
}
.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-bd: var(--white);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(27, 27, 30, 0.25);
  --btn-hover-bg: var(--ink);
}
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.35);
  --btn-hover-bg: var(--white);
  --btn-hover-fg: var(--ink);
}
.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.875rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
@media (max-width: 560px) {
  .btn-row .btn {
    width: 100%;
  }
}

/* Lien fléché */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover {
  background-size: 100% 1px;
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Badges & chips --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.on-dark .badge,
.section--dark .badge,
.section--navy .badge {
  border-color: var(--line-dark);
  color: var(--on-dark-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: var(--fs-small);
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.chip:hover {
  border-color: var(--ink);
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Cartes ----------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card:hover::after {
  transform: scaleX(1);
}
.card--dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.card--dark:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* Liste à puces carrées */
.list-square {
  display: grid;
  gap: 10px;
}
.list-square li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: var(--fs-small);
}
.list-square li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: translateY(-2px);
}

/* Formulaires ------------------------------------------------------------ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-5);
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(27, 27, 30, 0.3);
  border-radius: 0;
  font-size: 1.05rem;
  transition: border-color 0.3s;
  appearance: none;
}
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231b1b1e' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat;
  padding-right: 24px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
  box-shadow: 0 1px 0 0 var(--red);
}
.field input:user-invalid {
  border-bottom-color: var(--red-deep);
}
.form-note {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Tableau ---------------------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.table th,
.table td {
  text-align: left;
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  width: 32%;
}

/* Placeholder CMS -------------------------------------------------------- */
.placeholder {
  display: grid;
  gap: var(--s-3);
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed rgba(27, 27, 30, 0.25);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(27, 27, 30, 0.025) 12px 13px);
}
.on-dark .placeholder,
.section--dark .placeholder {
  border-color: var(--line-dark);
  background: none;
}
.placeholder__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Animations : révélation au scroll -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal--fade {
  transform: none;
}

/* Titre ligne par ligne, masqué (effet éditorial) */
.mask-lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.mask-lines .line > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.11s + var(--delay, 0s));
}
.mask-lines.is-in .line > span {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .mask-lines .line > span {
    opacity: 1;
    transform: none;
  }
}

/* Champ piège anti-robots du formulaire de contact */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Fenêtre « Télécharger l'étude » */
.study-modal {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}
.study-modal::backdrop {
  background: rgba(13, 14, 18, 0.7);
  backdrop-filter: blur(3px);
}
.study-modal[open] {
  animation: study-in 0.45s var(--ease);
}
@keyframes study-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
.study-modal__panel {
  position: relative;
  display: grid;
  gap: var(--s-4);
  padding: clamp(28px, 4vw, 44px);
  border-top: 4px solid var(--red);
}
.study-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.study-modal__close:hover {
  color: var(--red);
}
.study-modal .display-3 {
  padding-right: 32px;
}
.study-modal__lead {
  color: var(--muted);
}
.study-modal .form-grid {
  margin-top: var(--s-3);
}
.study-modal__submit {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}
.study-modal__done {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
}

/* ===== layout.css ===== */
/* ==========================================================================
   Header, méga-menu, menu mobile, footer, CTA flottant
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.4) blur(12px);
}
.site-header.is-mobile-open {
  background: var(--ink-deep);
  color: var(--white);
  box-shadow: none;
  /* Le flou (backdrop-filter) ferait du menu « fixed » un enfant de l'en-tête (76 px de haut) : invisible après défilement. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: var(--header-h);
}
.site-header__logo .logo {
  width: auto;
  height: 34px;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.site-nav ul {
  display: flex;
  gap: clamp(12px, 2.2vw, 36px);
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
}
.site-nav__link svg {
  opacity: 0.6;
  transition: transform 0.3s var(--ease);
}
.site-nav__link[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after,
.site-nav__link[aria-expanded='true']::after {
  transform: scaleX(1);
}

/* Méga-menu */
.mega {
  position: absolute;
  inset: 100% 0 auto;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 40px 60px -40px rgba(13, 14, 18, 0.4);
}
.mega.is-open {
  animation: mega-in 0.45s var(--ease);
}
@keyframes mega-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.mega__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-8);
  padding-block: var(--s-7) var(--s-8);
}
.mega__intro {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  justify-items: start;
}
.mega__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.mega__list li {
  border-bottom: 1px solid var(--line);
  animation: fade-up 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 0.035s);
}
.mega__list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.mega__link {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 20px 48px 20px 20px;
  transition: background-color 0.3s;
}
.mega__link:hover {
  background: var(--paper);
}
.mega__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.mega__desc {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.45;
}
.mega__link svg {
  position: absolute;
  right: 20px;
  top: 22px;
  color: var(--red);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.35s var(--ease);
}
.mega__link:hover svg {
  opacity: 1;
  transform: none;
}

/* Burger & menu mobile */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--ink-deep);
  color: var(--white);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-block: var(--s-5) var(--s-7);
}
.mobile-menu__nav > ul > li {
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s var(--ease);
  transition-delay: calc(var(--i) * 0.05s + 0.05s);
}
.mobile-menu.is-open .mobile-menu__nav > ul > li {
  opacity: 1;
  transform: none;
}
.mobile-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: -0.02em;
  text-align: left;
}
.mobile-menu__item svg {
  color: var(--red);
}
.mobile-menu__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.mobile-menu__sub.is-open {
  grid-template-rows: 1fr;
}
.mobile-menu__sub > ul {
  overflow: hidden;
}
.mobile-menu__sub a {
  display: block;
  padding: 10px 0;
  color: var(--on-dark-muted);
}
.mobile-menu__sub li:last-child a {
  padding-bottom: 24px;
}
.mobile-menu__foot {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-7);
  color: var(--on-dark-muted);
}

@media (max-width: 1080px) {
  .site-nav,
  .site-header__cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .mega {
    display: none;
  }
}

/* CTA flottant (mobile) */
/* Bouton WhatsApp flottant : logo WhatsApp sur fond rouge Yadec */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 91;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 16px 36px -12px rgba(232, 0, 45, 0.6);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.whatsapp-fab:hover {
  background: var(--red-deep);
  transform: translateY(-3px) scale(1.04);
}
.whatsapp-fab:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (max-width: 1080px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--on-dark);
  padding-top: clamp(64px, 8vw, 112px);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 2.2fr repeat(4, 1fr);
  gap: var(--s-7) var(--s-6);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}
.site-footer__brand .logo {
  height: 40px;
  width: auto;
}
.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  max-width: 22ch;
}
.site-footer__contact {
  display: grid;
  gap: 10px;
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.site-footer__contact > * {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.site-footer__contact svg {
  flex: none;
  margin-top: 4px;
  color: var(--red);
}
.site-footer__contact a:hover {
  color: var(--white);
}
.site-footer__head {
  display: block;
  margin-bottom: var(--s-4);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.site-footer__col ul {
  display: grid;
  gap: 10px;
}
.site-footer__col a {
  font-size: var(--fs-small);
  transition: color 0.3s;
}
.site-footer__col ul a:hover {
  color: var(--red);
}
.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}
.site-footer__bottom a:hover {
  color: var(--white);
}
.site-footer__mega {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(6rem, 27vw, 26rem);
  line-height: 0.75;
  letter-spacing: -0.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  transform: translateY(12%);
  user-select: none;
  pointer-events: none;
}
@media (max-width: 1080px) {
  .site-footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6) var(--s-4);
  }
}

/* Lien bouton du footer (Gérer les cookies) */
.site-footer__link-btn {
  color: inherit;
  font-size: inherit;
}
.site-footer__link-btn:hover {
  color: var(--white);
}

/* Bandeau de consentement aux cookies */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 120;
  display: grid;
  gap: var(--s-4);
  max-width: 420px;
  padding: var(--s-5);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
  font-size: var(--fs-small);
  animation: fade-up 0.6s var(--ease) both;
}
.cookie-banner a {
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: flex-end;
}
@media (max-width: 1080px) {
  .cookie-banner {
    right: 16px;
    max-width: none;
    bottom: 84px;
  }
}

/* ===== sections.css ===== */
/* ==========================================================================
   Sections
   ========================================================================== */

/* HERO ------------------------------------------------------------------- */
.hero {
  --hero-p: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: max(100svh, 680px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 72% 48%, rgba(52, 60, 130, 0.35), transparent 70%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(26, 30, 65, 0.9), transparent 70%),
    var(--ink-deep);
  color: var(--on-dark);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: calc(1 - var(--hero-p) * 0.6);
}
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.9) 0%, rgba(13, 14, 18, 0.55) 42%, transparent 70%),
    linear-gradient(0deg, rgba(13, 14, 18, 0.9) 0%, transparent 30%);
}
.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 48px;
}
.hero__content {
  max-width: min(980px, 72%);
  display: grid;
  gap: var(--s-6);
  transform: translate3d(0, calc(var(--hero-p) * -80px), 0);
  opacity: calc(1 - var(--hero-p) * 1.1);
}
.hero__title {
  font-size: clamp(2.4rem, 4.3vw, 4.4rem);
}
/* Diapositives suivantes : titre en <p> (un seul h1 par page), même police que le hero par défaut. */
p.hero__title {
  font-family: var(--font-display);
  text-wrap: balance;
}
.hero__text {
  display: grid;
  gap: var(--s-6);
}
.hero__eyebrow,
.hero__lead,
.hero__ctas,
.hero__pager {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero__lead {
  max-width: 600px;
  transition-delay: 0.35s;
}
.hero__text.is-first .hero__lead {
  transition-delay: 0.65s;
}
.hero__ctas {
  transition-delay: 0.8s;
}
.hero__pager {
  transition-delay: 1s;
}
.hero.is-ready .hero__text.is-shown .hero__eyebrow,
.hero.is-ready .hero__text.is-shown .hero__lead,
.hero.is-ready .hero__ctas,
.hero.is-ready .hero__pager {
  opacity: 1;
  transform: none;
}

/* Pagination du diaporama : numéro et barres de progression (temps écoulé) */
.hero__pager {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-2);
}
.hero__pager-count {
  flex: none;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  letter-spacing: 0.08em;
}
.hero__pager-count strong {
  color: var(--white);
  font-weight: 600;
}
.hero__pager-bars {
  display: flex;
  gap: 8px;
  width: min(360px, 100%);
}
.hero__pager--titled {
  align-items: flex-start;
}
.hero__pager--titled .hero__pager-count {
  line-height: 22px;
}
.hero__pager--titled .hero__pager-bars {
  gap: 20px;
  width: min(720px, 100%);
}
.hero__pager-bars li {
  flex: 1;
}
.hero__pager-bar {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hero__pager-track {
  position: relative;
  display: block;
  height: 22px;
}
.hero__pager-label {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-dark-muted);
  transition: color 0.3s;
}
.hero__pager-bar:hover .hero__pager-label,
.hero__pager-bar.is-active .hero__pager-label {
  color: var(--white);
}
.hero__pager-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.3s;
}
.hero__pager-bar:hover .hero__pager-track::before {
  background: rgba(255, 255, 255, 0.45);
}
.hero__pager-fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  background: var(--red);
}
.hero__pager-bar.is-done .hero__pager-fill,
.hero__pager-bar.is-active .hero__pager-fill {
  transform: translateY(-50%) scaleX(1);
}
.hero__pager-bar.is-done .hero__pager-fill {
  background: rgba(255, 255, 255, 0.7);
}
.hero__pager-fill.is-running {
  animation: hero-progress var(--slide-ms) linear forwards;
}
@keyframes hero-progress {
  from {
    transform: translateY(-50%) scaleX(0);
  }
  to {
    transform: translateY(-50%) scaleX(1);
  }
}
.hero__rail {
  position: relative;
  border-top: 1px solid var(--line-dark);
  backdrop-filter: blur(6px);
  background: rgba(13, 14, 18, 0.35);
}
.hero__rail-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}
.hero__feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 22px 24px 22px 0;
  margin-right: 24px;
  border-right: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), color 0.3s;
  transition-delay: calc(1s + var(--i) * 0.1s);
}
.hero.is-ready .hero__feature {
  opacity: 1;
  transform: none;
}
.hero__feature .mono {
  color: var(--on-dark-muted);
  text-transform: uppercase;
}
.hero__feature-title {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.hero__feature svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  transition: transform 0.4s var(--ease), color 0.3s;
}
.hero__feature::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 24px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.hero__feature:hover::before {
  transform: scaleX(1);
}
.hero__feature:hover svg {
  color: var(--red);
  transform: translate(3px, -3px);
}
.hero__scroll {
  display: grid;
  place-items: center;
  width: 56px;
  align-self: stretch;
  color: var(--on-dark-muted);
}
.hero__scroll svg {
  animation: bob 2.4s var(--ease-in-out) infinite;
}
@keyframes bob {
  50% {
    transform: translateY(6px);
  }
}
@media (max-width: 900px) {
  .hero__content {
    max-width: none;
  }
  .hero__veil {
    background: linear-gradient(0deg, rgba(13, 14, 18, 0.97) 35%, rgba(13, 14, 18, 0.4) 70%, rgba(13, 14, 18, 0.2) 100%);
  }
  .hero__inner {
    align-items: flex-end;
    padding-top: 44vh;
  }
  .hero__rail-inner {
    grid-template-columns: 1fr;
  }
  .hero__feature {
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    padding-block: 16px;
  }
  .hero__feature:nth-child(n + 2) {
    display: none;
  }
  .hero__feature:first-child {
    border-bottom: 0;
  }
  .hero__scroll {
    display: none;
  }
}

/* CONTEXTE --------------------------------------------------------------- */
.context-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.context-cell {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  min-height: 240px;
  padding: var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.context-cell h3 {
  font-size: 1.35rem;
  margin-top: auto;
  padding-top: var(--s-7);
}
.context-cell p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.5;
}
.context-cell:hover {
  background: var(--paper);
}
.context-conclusion {
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 900px;
}
@media (max-width: 1080px) {
  .context-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .context-cell {
    min-height: 200px;
    padding: var(--s-4);
  }
  .context-cell h3 {
    padding-top: var(--s-5);
    font-size: 1.15rem;
  }
}

/* MISSION ---------------------------------------------------------------- */
.mission {
  overflow: hidden;
}
.mission__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, #000, transparent 75%);
}
.mission__inner {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-8);
  align-items: start;
}
.mission__text {
  display: grid;
  gap: var(--s-6);
}
.mission__title {
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
}
.mission__statement {
  display: grid;
  gap: var(--s-3);
  max-width: 560px;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.mission__statement .lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.35;
  color: var(--white);
}
.mission__values {
  display: grid;
  gap: var(--s-4);
}
.mission__equation {
  display: grid;
  border-top: 1px solid var(--line-dark);
}
.mission__equation li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mission__equation .mono {
  color: var(--red);
}
.mission__equation strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
@media (max-width: 960px) {
  .mission__inner {
    grid-template-columns: 1fr;
  }
}

/* EXPERTISES ------------------------------------------------------------- */
.expertise-list {
  border-top: 1px solid var(--ink);
}
.expertise-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: var(--s-5);
  align-items: start;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.expertise-row::before {
  content: '';
  position: absolute;
  inset: -1px 0 -1px;
  z-index: -1;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.expertise-row:hover {
  padding-inline: var(--s-5);
}
.expertise-row:hover::before {
  transform: scaleY(1);
}
.expertise-row__num {
  padding-top: 10px;
  color: var(--red);
}
.expertise-row__main {
  display: grid;
  gap: var(--s-3);
}
.expertise-row__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.expertise-row__desc {
  color: var(--muted);
  max-width: 44ch;
}
.expertise-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}
.expertise-row__items span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  background: var(--white);
}
.expertise-row__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.expertise-row__cta svg {
  transition: transform 0.4s var(--ease);
}
.expertise-row:hover .expertise-row__cta svg {
  transform: translateX(6px);
  color: var(--red);
}
@media (max-width: 960px) {
  .expertise-row {
    grid-template-columns: 40px 1fr;
  }
  .expertise-row__items,
  .expertise-row__cta {
    grid-column: 2;
  }
  .expertise-row:hover {
    padding-inline: 0;
  }
}

/* GROWTH SYSTEM ---------------------------------------------------------- */
.gs {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--s-8);
  align-items: center;
}
.gs__visual svg {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  overflow: visible;
}
.gs__orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
}
.gs__orbit--dash {
  stroke-dasharray: 2 6;
  transform-origin: center;
  animation: spin 60s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.gs__arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
  transition: stroke 0.6s;
}
.gs__arc.is-done {
  stroke: rgba(232, 0, 45, 0.45);
}
.gs__arc.is-active {
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 3.2s linear forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.gs__node {
  cursor: pointer;
}
.gs__dot {
  fill: var(--ink-deep);
  stroke: rgba(255, 255, 255, 0.35);
  transition: fill 0.4s, stroke 0.4s;
}
.gs__node.is-active .gs__dot {
  fill: var(--red);
  stroke: var(--red);
}
.gs__num {
  fill: var(--white);
  font: 600 13px var(--font-body);
  text-anchor: middle;
  dominant-baseline: middle;
}
.gs__label {
  fill: var(--on-dark-muted);
  font: 600 11px var(--font-body);
  letter-spacing: 0.16em;
  text-anchor: middle;
  transition: fill 0.4s;
}
.gs__node.is-active .gs__label {
  fill: var(--white);
}
.gs__center-k {
  fill: var(--red);
  font: 600 11px var(--font-body);
  letter-spacing: 0.3em;
  text-anchor: middle;
}
.gs__center {
  fill: var(--white);
  font: 800 26px var(--font-display);
  text-anchor: middle;
  letter-spacing: -0.02em;
}
.gs__steps ol {
  border-top: 1px solid var(--line-dark);
}
.gs__step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 16px;
  width: 100%;
  padding: 18px 0;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  transition: color 0.4s;
}
.gs__step .mono {
  padding-top: 6px;
}
.gs__step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}
.gs__step-text {
  grid-column: 2;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  font-size: var(--fs-body);
  transition: grid-template-rows 0.5s var(--ease), padding 0.5s var(--ease);
}
.gs__step.is-active {
  color: var(--white);
}
.gs__step.is-active .mono {
  color: var(--red);
}
.gs__step.is-active .gs__step-text {
  padding-top: 6px;
  color: var(--on-dark-muted);
}
.gs__step:not(.is-active) .gs__step-text {
  height: 0;
}
.gs__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--red);
}
.gs__step.is-active .gs__progress {
  animation: progress 3.2s linear forwards;
}
@keyframes progress {
  to {
    width: 100%;
  }
}
@media (max-width: 960px) {
  .gs {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .gs__visual svg {
    max-width: 420px;
  }
}

/* SOLUTIONS -------------------------------------------------------------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.solutions-grid > li,
.solutions-grid > li.is-platform {
  grid-column: span 3;
}
.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  height: 100%;
  min-height: 360px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.solution-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-6);
}
.solution-card__top .mono {
  color: var(--muted-2);
}
.solution-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1;
}
.solution-card__tagline {
  font-weight: 600;
  color: var(--red);
}
.solution-card__desc {
  color: var(--muted);
  font-size: var(--fs-small);
  max-width: 42ch;
}
.solution-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: var(--s-5);
  font-weight: 600;
  font-size: 0.9rem;
}
.solution-card__cta svg {
  transition: transform 0.4s var(--ease);
}
.solution-card:hover {
  background: var(--ink-deep);
  color: var(--white);
}
.solution-card:hover .solution-card__desc {
  color: var(--on-dark-muted);
}
.solution-card:hover .badge {
  border-color: var(--line-dark);
  color: var(--on-dark-muted);
}
.solution-card:hover .solution-card__cta svg {
  transform: translateX(6px);
}
@media (max-width: 960px) {
  .solutions-grid > li,
  .solutions-grid > li.is-platform {
    grid-column: span 6;
  }
  .solution-card {
    min-height: 0;
  }
  .solution-card__top {
    margin-bottom: var(--s-3);
  }
}

/* RÉSULTATS -------------------------------------------------------------- */
.results {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-8);
  align-items: start;
}
.indicators {
  border-top: 1px solid var(--ink);
}
.indicator {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 150px;
  align-items: center;
  gap: var(--s-5);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.indicator__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}
.indicator__bar {
  position: relative;
  height: 6px;
  background: var(--paper);
  overflow: hidden;
}
.indicator__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  transition: width 1.4s var(--ease);
  transition-delay: calc(var(--i) * 0.09s + 0.2s);
}
.indicator--up .indicator__bar span {
  background: var(--red);
}
.indicator--down .indicator__bar span {
  width: 100%;
  background: var(--ink);
}
.results.is-in .indicator--up .indicator__bar span {
  width: 92%;
}
.results.is-in .indicator--down .indicator__bar span {
  width: 28%;
}
.indicator__dir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.indicator--up .indicator__dir svg {
  color: var(--red);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact {
  display: grid;
  gap: var(--s-3);
  align-content: space-between;
  min-height: 190px;
  padding: var(--s-5);
  background: var(--white);
}
.fact__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 5.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}
.fact__label {
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 20ch;
}
.results__note {
  margin-top: var(--s-6);
}
@media (max-width: 960px) {
  .results {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .indicator {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
  }
  .indicator__bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .indicator__dir {
    font-size: 0.65rem;
  }
  .fact {
    min-height: 150px;
  }
}

/* SECTEURS --------------------------------------------------------------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.sector-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.4s, box-shadow 0.5s var(--ease);
}
.sector-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.sector-card__media {
  aspect-ratio: 16 / 10;
}
.sector-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(20px, 2.4vw, 28px);
}
.sector-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  transition: color 0.3s;
}
.sector-card:hover .sector-card__title {
  color: var(--red);
}
.sector-card__desc {
  font-size: var(--fs-small);
  color: var(--muted);
}
.sector-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: var(--s-3);
  font-weight: 600;
  font-size: 0.9rem;
}
@media (max-width: 960px) {
  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}

/* APPROCHE AFRICAINE ----------------------------------------------------- */
.approach__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: center;
}
.approach__text {
  display: grid;
  gap: var(--s-6);
}
.approach__text .display-2 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}
.africa {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--s-5);
  align-items: end;
}
.africa__svg {
  width: 100%;
  overflow: visible;
}
.africa__dot {
  fill: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: fill 0.6s var(--ease), opacity 0.8s var(--ease);
}
.africa.is-in .africa__dot {
  opacity: 1;
}
.africa__dot.is-lit.t3 {
  fill: rgba(255, 255, 255, 0.22);
}
.africa__dot.is-lit.t2 {
  fill: rgba(188, 193, 235, 0.55);
}
.africa__dot.is-lit.t1 {
  fill: rgba(255, 255, 255, 0.9);
}
.africa__dot.is-lit.t0 {
  fill: var(--red);
}
.africa__pin {
  opacity: 0;
  transition: opacity 0.8s 1s;
}
.africa.is-in .africa__pin {
  opacity: 1;
}
.africa__pulse {
  fill: none;
  stroke: var(--red);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}
.africa__core {
  fill: var(--red);
  stroke: var(--white);
  stroke-width: 2;
}
.africa__pin line {
  stroke: rgba(255, 255, 255, 0.5);
}
.africa__pin text {
  text-anchor: middle;
  fill: var(--white);
  font: 700 15px var(--font-body);
  letter-spacing: 0.2em;
}
.africa__pin .africa__pin-sub {
  fill: var(--on-dark-muted);
  font: 400 13px var(--font-body);
  letter-spacing: 0;
}
.africa__legend {
  display: grid;
  border-top: 1px solid var(--line-dark);
}
.africa__key {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
  transition: padding 0.4s var(--ease);
}
.africa__key:hover,
.africa__key.is-active {
  padding-left: 8px;
}
.africa__key strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}
.africa__key small {
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}
.africa__swatch {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
}
.k0 .africa__swatch {
  background: var(--red);
}
.k1 .africa__swatch {
  background: rgba(255, 255, 255, 0.9);
}
.k2 .africa__swatch {
  background: rgba(188, 193, 235, 0.55);
}
.k3 .africa__swatch {
  background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 1080px) {
  .approach__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .africa {
    grid-template-columns: 1fr;
  }
  .africa__legend {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
}

/* CLIENTS ---------------------------------------------------------------- */
.clients__head {
  margin-bottom: var(--s-6);
}
.clients__head .lead {
  font-size: 1rem;
}
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__track li {
  display: grid;
  place-items: center;
  width: clamp(150px, 16vw, 220px);
  height: 120px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}
.marquee__track img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.4s, opacity 0.4s;
}
.marquee__track li:hover img {
  filter: none;
  opacity: 1;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 900px) {
  .clients__head {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

/* PROJETS RÉALISÉS ------------------------------------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.4s, box-shadow 0.5s var(--ease);
}
.case-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.case-card__head {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  padding: var(--s-5) var(--s-5) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.case-card__client {
  font-size: 1.6rem;
  margin-top: var(--s-3);
}
.case-card__title {
  color: var(--ink-soft);
  font-weight: 600;
}
.case-card__body {
  margin: 0;
  display: grid;
}
.case-card__body > div {
  display: grid;
  gap: 8px;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.case-card__body > div:last-child {
  border-bottom: 0;
}
.case-card__body dt {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.case-card__body dd {
  margin: 0;
  font-size: var(--fs-small);
}
.case-card__body dd.is-pending {
  color: var(--muted-2);
  font-style: italic;
}
.case-card__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: auto;
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.case-card__services-label {
  width: 100%;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.case-card__service {
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.case-card__service:hover {
  color: var(--red);
  text-decoration-color: currentColor;
}
.projects-filter {
  margin-bottom: var(--s-7);
}
@media (max-width: 1080px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* INSIGHTS (inspiré de bain.com/insights) -------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
}
.insight-card {
  display: grid;
  gap: var(--s-4);
  height: 100%;
  align-content: start;
}
.insight-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy);
}
.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.insight-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0 60%, rgba(232, 0, 45, 0.5) 60% 61%, transparent 61%),
    radial-gradient(ellipse at 30% 30%, var(--navy-2), var(--ink-deep));
}
.insight-card:hover .insight-card__media img {
  transform: scale(1.05);
}
.insight-card__body {
  display: grid;
  gap: var(--s-3);
  align-content: start;
}
.insight-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.insight-card__type {
  color: var(--red);
}
.insight-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease);
  justify-self: start;
}
.insight-card:hover .insight-card__title {
  background-size: 100% 2px;
}
.insight-card__excerpt {
  color: var(--muted);
  font-size: var(--fs-small);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insight-card__foot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 600;
}
.insight-card__foot svg {
  transition: transform 0.4s var(--ease);
}
.insight-card:hover .insight-card__foot svg {
  transform: translateX(5px);
  color: var(--red);
}

/* Carte à la une : image large à gauche, texte à droite */
.insight-card--large {
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.insight-card--large .insight-card__media {
  aspect-ratio: 16 / 9;
}
.insight-card--large .insight-card__title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}
.insight-card--large .insight-card__excerpt {
  font-size: var(--fs-lead);
  -webkit-line-clamp: 4;
}
.insights-featured {
  padding-bottom: 0;
}
.insights-featured .eyebrow {
  margin-bottom: var(--s-5);
}

/* Barre de filtres */
.insights-filters {
  display: grid;
  gap: var(--s-4);
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
.insights-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}
.field--inline select {
  min-height: 44px;
  min-width: 220px;
  padding: 8px 28px 8px 0;
  font-size: var(--fs-small);
}
.search {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}
.search--compact {
  flex: 1;
  min-width: 220px;
}
.search input {
  flex: 1;
  border: 0;
  background: none;
  font-size: 1rem;
  padding: 8px 0;
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  border-bottom-color: var(--red);
}
.insights-count {
  margin-bottom: var(--s-5);
}
.insights-more {
  display: flex;
  justify-content: center;
  margin-top: var(--s-8);
}
.insight-skeleton {
  aspect-ratio: 4 / 5;
  background: linear-gradient(90deg, var(--paper) 25%, #ecebe7 50%, var(--paper) 75%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 960px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .insight-card--large {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .field--inline,
  .field--inline select {
    width: 100%;
  }
}

/* Page article */
.article-head {
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(32px, 4vw, 56px);
}
.article-head__inner {
  display: grid;
  gap: var(--s-5);
  max-width: calc(980px + var(--gutter) * 2);
}
.crumbs.crumbs--light ol {
  color: var(--muted);
  margin-bottom: 0;
}
.crumbs.crumbs--light a:hover,
.crumbs.crumbs--light [aria-current] {
  color: var(--ink);
}
.article-head__title {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.article-head__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 60ch;
}
.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}
.article-head__meta strong {
  color: var(--ink);
}
.article-cover {
  margin: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--paper);
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-layout {
  display: grid;
  grid-template-columns: 2fr 8fr 2fr;
  gap: var(--s-7);
  padding-block: clamp(48px, 6vw, 88px);
}
.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  display: grid;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 600;
}
.article-aside a,
.article-aside button {
  text-align: left;
  transition: color 0.3s;
}
.article-aside a:hover,
.article-aside button:hover {
  color: var(--red);
}
.article-body {
  display: grid;
  gap: var(--s-7);
  min-width: 0;
}
.article-download {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
  background: var(--paper);
  border-left: 3px solid var(--red);
}
.article-download__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.prose {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ink);
}
.prose h3 {
  margin-top: 1.5em;
  font-size: 1.3rem;
  color: var(--ink);
}
.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose ul {
  list-style: square;
}
.prose ol {
  list-style: decimal;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose blockquote {
  margin-inline: 0;
  padding-left: var(--s-5);
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
}
.prose img {
  width: 100%;
  height: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .article-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    order: 2;
  }
  .article-aside .eyebrow {
    width: 100%;
  }
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  align-items: center;
  gap: var(--s-4);
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary .mono {
  color: var(--red);
}
.faq__item h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
}
.faq__icon {
  position: relative;
  width: 18px;
  height: 18px;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq__icon::after {
  transform: rotate(90deg);
}
.faq__item[open] .faq__icon::after {
  transform: rotate(0);
}
.faq__item p {
  padding: 0 0 28px 72px;
  max-width: 80ch;
  color: var(--muted);
  font-size: var(--fs-lead);
}
@media (max-width: 640px) {
  .faq__item summary {
    grid-template-columns: 36px 1fr 20px;
  }
  .faq__item p {
    padding-left: 52px;
    font-size: 1rem;
  }
}

/* CTA FINAL -------------------------------------------------------------- */
.final-cta {
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(232, 0, 45, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 60% at 0% 0%, rgba(52, 60, 130, 0.4), transparent 70%),
    var(--ink-deep);
  color: var(--on-dark);
  padding-block: clamp(100px, 14vw, 200px);
}
.final-cta__lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 120px, rgba(255, 255, 255, 0.035) 120px 121px);
}
.final-cta__inner {
  position: relative;
  display: grid;
  gap: var(--s-6);
}
.final-cta__bottom {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--s-6);
  align-items: end;
  padding-top: var(--s-6);
  margin-top: var(--s-4);
  border-top: 1px solid var(--line-dark);
}
.final-cta__bottom .btn-row {
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .final-cta__bottom {
    grid-template-columns: 1fr;
  }
  .final-cta__bottom .btn-row {
    justify-content: flex-start;
  }
}

/* PAGES INTÉRIEURES ------------------------------------------------------ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--red-deep) url('/media/voile-poster.webp') center / cover no-repeat;
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(64px, 9vw, 128px);
}
.page-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(1.05);
}
/* Teinte rouge du voile (comme yadec.ci) + assombrissement à gauche pour la lisibilité */
.page-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.88) 0%, rgba(13, 14, 18, 0.55) 45%, rgba(13, 14, 18, 0.15) 100%),
    linear-gradient(90deg, rgba(120, 0, 25, 0.95), rgba(232, 0, 45, 0.85) 55%, rgba(120, 0, 25, 0.95));
  background-blend-mode: normal;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__video {
    display: none;
  }
}
@media (max-width: 900px) {
  .page-hero__veil {
    background:
      linear-gradient(0deg, rgba(13, 14, 18, 0.85) 0%, rgba(13, 14, 18, 0.45) 100%),
      linear-gradient(90deg, rgba(120, 0, 25, 0.95), rgba(232, 0, 45, 0.85) 55%, rgba(120, 0, 25, 0.95));
  }
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(32vw, 420px);
  height: 3px;
  background: var(--white);
  animation: grow-x 1.2s var(--ease) 0.3s both;
  transform-origin: left;
}
@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}
.page-hero__inner {
  position: relative;
}
.page-hero__cols {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: var(--s-8);
  align-items: end;
}
.page-hero__main {
  display: grid;
  gap: var(--s-6);
}
.page-hero__title {
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
}
.page-hero__lead {
  max-width: 640px;
}
.hero-list li {
  font-size: 1rem;
  color: var(--on-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}
.hero-list {
  gap: 10px;
}
@media (max-width: 900px) {
  .page-hero__cols {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-7);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.5;
}
.crumbs a:hover {
  color: var(--white);
}
.crumbs [aria-current] {
  color: var(--white);
}

.challenges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
.challenges li {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink);
}
@media (max-width: 860px) {
  .challenges {
    grid-template-columns: 1fr;
  }
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.related-grid .card {
  height: 100%;
}
.related-grid .card .lead {
  font-size: 1rem;
}
.related-grid .card .link-arrow {
  margin-top: auto;
}
.other-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.other-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  transition: color 0.3s;
}
.other-links a svg {
  margin-left: auto;
  margin-right: 16px;
}
.other-links a:hover {
  color: var(--red);
}
.other-links .mono {
  color: var(--muted-2);
}

.dna {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.dna li {
  display: grid;
  gap: var(--s-6);
  padding: var(--s-5) var(--s-4) var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
}
.dna .mono {
  color: var(--red);
  font-family: ui-monospace, monospace;
  font-weight: 400;
}
@media (max-width: 860px) {
  .dna {
    grid-template-columns: repeat(2, 1fr);
  }
}

.founder {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.founder__photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  filter: grayscale(0.15);
  box-shadow: var(--shadow);
}
.founder__text {
  display: grid;
  gap: var(--s-5);
}
.founder__role {
  margin-top: var(--s-3);
  color: var(--red);
  font-weight: 600;
}
.founder__bio {
  display: grid;
  gap: var(--s-4);
  max-width: 62ch;
  color: var(--ink-soft);
}
.founder__bio blockquote {
  margin: var(--s-3) 0;
  padding-left: var(--s-5);
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
}
@media (max-width: 860px) {
  .founder {
    grid-template-columns: 1fr;
  }
  .founder__photo {
    max-width: 220px;
  }
}

.stack-banner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: center;
}
.stack-banner h2 {
  margin-top: var(--s-4);
}
.stack-banner__layers {
  display: grid;
  gap: 8px;
}
.stack-layer {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  margin-left: calc(var(--i) * 24px);
  font-family: var(--font-display);
  font-weight: 700;
}
.stack-layer .mono {
  color: var(--muted-2);
}
.solution-placeholder {
  margin-top: var(--s-4);
}
@media (max-width: 860px) {
  .stack-banner {
    grid-template-columns: 1fr;
  }
  .stack-layer {
    margin-left: calc(var(--i) * 10px);
  }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-8);
  align-items: start;
}
.contact__aside {
  display: grid;
  gap: var(--s-6);
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.contact__aside .eyebrow {
  display: flex;
  margin-bottom: 10px;
}
.contact__aside address {
  display: grid;
  font-style: normal;
}
.contact__aside a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  transition: color 0.3s;
}
.contact__aside a:hover {
  color: var(--red);
}
.contact__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.contact__submit .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-error {
  margin-top: var(--s-4);
  color: var(--red-deep);
  font-weight: 600;
}
.contact__done {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
  padding: var(--s-7) 0;
  animation: fade-up 0.7s var(--ease);
}
.contact__check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .contact__aside {
    position: static;
    grid-template-columns: 1fr 1fr;
    order: 2;
  }
}

.article {
  max-width: 820px;
}
.page-loading {
  min-height: 100vh;
  background: var(--ink-deep);
}

/* FICHES PRODUIT --------------------------------------------------------- */
/* Fonctionnalités */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
}
.feature svg {
  color: var(--red);
}
.feature h3 {
  font-size: 1.25rem;
}
.feature p {
  color: var(--muted);
  font-size: var(--fs-small);
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Garde-fous & audience */
.safeguards,
.audience {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: var(--s-6);
}
.audience {
  --n: 4;
}
.safeguards li,
.audience li {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink);
}
.safeguards li {
  border-top-color: var(--line-dark);
}
.safeguards .mono {
  color: var(--red);
}
.safeguards h3,
.audience h3 {
  font-size: 1.3rem;
}
.safeguards p {
  color: var(--on-dark-muted);
}
.audience p {
  color: var(--muted);
}
.audience:has(> li:nth-child(3):last-child) {
  --n: 3;
}
@media (max-width: 900px) {
  .safeguards,
  .audience {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .safeguards,
  .audience {
    grid-template-columns: 1fr;
  }
}

/* Vision · Mission · Valeurs (À propos) */
.vmv {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: var(--s-7);
}
.vmv__item {
  display: grid;
  align-content: start;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.vmv__values li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
}
@media (max-width: 900px) {
  .vmv {
    grid-template-columns: 1fr;
  }
}

/* Bandeau clients sous le hero */
.clients--bare {
  background: var(--white);
}
.clients--bare .marquee {
  border-top: 0;
}

/* Fiches produit : étapes et renvoi */
.steps-grid {
  border-top: 1px solid var(--ink);
}
.step-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-5);
  align-items: baseline;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.step-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.03em;
}
.step-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}
.step-card p {
  color: var(--muted);
}
.product-visit {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-6);
}
.product-visit > div:first-child {
  display: grid;
  gap: var(--s-3);
  max-width: 640px;
}
@media (max-width: 900px) {
  .step-card {
    grid-template-columns: 56px 1fr;
  }
  .step-card p {
    grid-column: 2;
  }
}

/* Yadec Academy */
.academy-band {
  border-top: 1px solid var(--line);
}
.academy-band__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: center;
}
.academy-band__text {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.academy-band__domains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.academy-band__domains li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-weight: 500;
}
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.domains-grid li {
  display: grid;
  gap: var(--s-4);
  min-height: 160px;
  align-content: space-between;
  padding: clamp(24px, 3vw, 32px);
  background: var(--white);
}
.domains-grid h3 {
  font-size: 1.3rem;
}
@media (max-width: 900px) {
  .academy-band__grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .domains-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .domains-grid {
    grid-template-columns: 1fr;
  }
}

/* Pages légales */
.legal {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: var(--s-8);
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: var(--s-4);
}
.legal__toc ol {
  display: grid;
  border-top: 1px solid var(--line);
}
.legal__toc a {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  transition: color 0.3s;
}
.legal__toc a:hover {
  color: var(--red);
}
.legal__toc .mono {
  color: var(--muted-2);
  padding-top: 2px;
}
.legal__body {
  display: grid;
  gap: var(--s-7);
  max-width: 820px;
}
.legal__essentials {
  display: grid;
  gap: var(--s-4);
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  border-left: 3px solid var(--red);
}
.legal__essentials li {
  font-size: 1rem;
}
.legal__section {
  display: grid;
  gap: var(--s-4);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}
.legal__section p,
.legal__list li {
  color: var(--ink-soft);
}
.legal__list li {
  font-size: 1rem;
}
.legal__todo {
  background: rgba(232, 0, 45, 0.1);
  color: var(--red-deep);
  padding: 0 4px;
  font-weight: 600;
}
.legal__table-wrap {
  overflow-x: auto;
}
.legal__table-wrap .table th {
  width: auto;
}
.legal__cookies-btn {
  justify-self: start;
}
.legal__others {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .legal {
    grid-template-columns: 1fr;
  }
  .legal__toc {
    position: static;
  }
}

/* Diaporama de photos du hero (géré dans le back office) */
.hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease-in-out), transform 8s linear;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
/* L'animation réseau n'apparaît que sur le hero par défaut. */
.hero__network {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s var(--ease-in-out), visibility 0s linear 0s;
}
.hero--photo .hero__network {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease-in-out), visibility 0s linear 1.2s;
}
.hero__veil {
  transition: background 1.2s var(--ease-in-out);
}
.hero--photo .hero__veil {
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.92) 0%, rgba(13, 14, 18, 0.7) 45%, rgba(13, 14, 18, 0.35) 100%),
    linear-gradient(0deg, rgba(13, 14, 18, 0.9) 0%, transparent 35%);
}
@media (max-width: 900px) {
  .hero--photo .hero__veil {
    background: linear-gradient(0deg, rgba(13, 14, 18, 0.97) 35%, rgba(13, 14, 18, 0.6) 75%, rgba(13, 14, 18, 0.45) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
    transform: none;
  }
}

/* Équipe (À propos) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
}
.team-card {
  display: grid;
  align-content: start;
  gap: var(--s-2);
}
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: var(--s-3);
}
.team-card h3 {
  font-size: 1.2rem;
}
.team-card__role {
  color: var(--red);
  font-weight: 600;
  font-size: var(--fs-small);
}
.team-card__bio {
  color: var(--muted);
  font-size: var(--fs-small);
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.insights-note {
  margin-top: var(--s-6);
}

/* Pages légales saisies dans le back office (HTML) */
.legal__html {
  display: grid;
  gap: var(--s-4);
  color: var(--ink-soft);
}
.legal__html h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: var(--s-6);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__html h2:first-child {
  margin-top: 0;
}
.legal__html ul {
  display: grid;
  gap: 10px;
}
.legal__html ul li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.legal__html ul li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: translateY(-2px);
}
.legal__html table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.legal__html th,
.legal__html td {
  text-align: left;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal__html th {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Avec plusieurs diapositives, les boutons et la pagination restent fixes : le texte grandit vers le haut. */
.hero--slider .hero__inner {
  align-items: flex-end;
  padding-bottom: clamp(48px, 7vh, 88px);
}

/* ==========================================================================
   Photos (inspiration bain.com) : tuiles, cartes, bandeaux, en-têtes
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  background: var(--red-deep);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
/* Voile rouge Yadec sur toutes les photos (comme l'en-tête de la page À propos) */
.media:not(.media--empty)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(120, 0, 25, 0.55), rgba(232, 0, 45, 0.35) 55%, rgba(120, 0, 25, 0.55));
  mix-blend-mode: multiply;
}
/* Sans photo : voile rouge animé de l'identité yadec.ci */
.media--empty {
  background: var(--red-deep) url('/media/voile-poster.webp') center / cover no-repeat;
}
.media--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.55) 0%, rgba(13, 14, 18, 0.2) 60%, transparent 100%),
    linear-gradient(90deg, rgba(120, 0, 25, 0.95), rgba(232, 0, 45, 0.85) 55%, rgba(120, 0, 25, 0.95));
  mix-blend-mode: multiply;
}
.media__mark {
  position: absolute;
  right: 0.12em;
  bottom: -0.12em;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  text-overflow: clip;
  color: rgba(255, 255, 255, 0.14);
}

/* Tuiles des expertises */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.tiles__item {
  grid-column: span 2;
}
.tiles__item--wide {
  grid-column: span 3;
}
.tile {
  position: relative;
  display: block;
  height: 100%;
  min-height: clamp(340px, 34vw, 460px);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.tile__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(13, 14, 18, 0.9) 0%, rgba(13, 14, 18, 0.45) 45%, rgba(13, 14, 18, 0) 100%);
  transition: background 0.6s var(--ease);
}
.tile:hover::after {
  background: linear-gradient(0deg, rgba(13, 14, 18, 0.92) 0%, rgba(120, 0, 25, 0.65) 60%, rgba(232, 0, 45, 0.3) 100%);
}
.tile:hover .media img,
.sector-card:hover .media img,
.case-card:hover .media img,
.academy-band__visual:hover .media img {
  transform: scale(1.05);
}
.tile__body {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: var(--s-3);
  padding: clamp(22px, 2.6vw, 36px);
}
.tile__num {
  color: var(--red);
}
.tile__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.tile__desc {
  max-width: 46ch;
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.tile__cta svg {
  transition: transform 0.4s var(--ease);
}
.tile:hover .tile__cta svg {
  transform: translateX(6px);
}
@media (max-width: 960px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiles__item,
  .tiles__item--wide {
    grid-column: span 1;
  }
  .tiles__item:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .tiles {
    grid-template-columns: 1fr;
  }
  .tile {
    min-height: 300px;
  }
}

/* Cartes projet : photo en tête, affichée en entier et sans voile rouge (le voile reste sans photo) */
.case-card__media {
  aspect-ratio: 16 / 9;
}
.case-card__media:not(.media--empty) {
  background: var(--paper);
}
.case-card__media:not(.media--empty)::after {
  content: none;
}
.case-card__media img {
  object-fit: contain;
}
.case-card__media .media__mark {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

/* Formations Academy : photo + texte */
.domains-grid li.domain-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-height: 0;
}
.domain-card__media {
  aspect-ratio: 16 / 9;
}
.domain-card__body {
  display: grid;
  gap: var(--s-3);
  padding: clamp(20px, 2.6vw, 28px);
}

/* Bandeau Academy : grande photo + texte */
.academy-band__grid {
  grid-template-columns: 7fr 5fr;
}
.academy-band__visual {
  height: 100%;
}
.academy-band__media {
  height: 100%;
  min-height: clamp(320px, 36vw, 520px);
}
.academy-band__domains li {
  padding: 6px 14px;
  font-size: var(--fs-small);
}

/* Appel final sur photo plein écran */
.final-cta__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.final-cta--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.9) 0%, rgba(13, 14, 18, 0.55) 55%, rgba(13, 14, 18, 0.25) 100%),
    linear-gradient(90deg, rgba(120, 0, 25, 0.85), rgba(232, 0, 45, 0.6) 55%, rgba(120, 0, 25, 0.85));
}

/* En-tête de page avec photo (expertise, secteur, solution, À propos) */
.page-hero--photo {
  background: var(--red-deep);
}
.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Traitée comme la vidéo du voile : noir et blanc, puis teintée en rouge par .page-hero__veil */
  filter: grayscale(1) contrast(1.1) brightness(1.05);
}

/* Contexte business (À propos) : photo */
.context-visual {
  margin-bottom: var(--s-7);
}
.context-visual__media {
  aspect-ratio: 21 / 9;
}

/* Hero sur mobile : cadrage choisi dans le back office, texte des diapositives photo centré verticalement */
@media (max-width: 900px) {
  .hero__slide {
    object-position: var(--pos-mobile, center);
  }
  .hero--slider.hero--photo .hero__inner {
    align-items: center;
    padding-bottom: 48px;
  }
}

/* Tuiles des expertises : claires au repos, voile rouge au survol */
.tile--plain {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.tile--plain .tile__media {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.tile--plain::after {
  opacity: 0;
}
.tile--plain .tile__desc {
  color: var(--muted);
  transition: color 0.5s;
}
.tile--plain:hover {
  color: var(--white);
  border-color: var(--red-deep);
}
.tile--plain:hover .tile__media,
.tile--plain:hover::after {
  opacity: 1;
}
.tile--plain:hover .tile__desc {
  color: var(--on-dark-muted);
}
/* Avec photo : photo naturelle au repos, teinte rouge au survol */
.tile--photo .media::after {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.tile--photo:hover .media::after {
  opacity: 1;
}
.tile--photo::after {
  background: linear-gradient(0deg, rgba(13, 14, 18, 0.85) 0%, rgba(13, 14, 18, 0.35) 45%, rgba(13, 14, 18, 0) 100%);
}
.tile--photo:hover::after {
  background: linear-gradient(0deg, rgba(13, 14, 18, 0.9) 0%, rgba(120, 0, 25, 0.55) 60%, rgba(232, 0, 45, 0.25) 100%);
}

/* Réseaux du fondateur, sous sa photo */
.founder__social {
  display: flex;
  gap: 10px;
  margin-top: var(--s-4);
}
.founder__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.founder__social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
/* Nom du réseau : visible seulement quand un seul lien occupe toute la largeur de la photo */
.founder__social a span {
  display: none;
}
.founder__social--single {
  max-width: 300px;
}
.founder__social--single li {
  flex: 1;
}
.founder__social--single a {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border-radius: var(--radius);
  font-weight: 600;
}
.founder__social--single a span {
  display: inline;
}
@media (max-width: 860px) {
  .founder__social--single {
    max-width: 220px;
  }
}

/* Vidéo d'un projet (carte) */
.video-media video,
.video-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ink-deep);
}
.video-media__poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.video-media__image {
  width: 100%;
  height: 100%;
}
.video-media__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 34px -10px rgba(232, 0, 45, 0.7);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.video-media__play svg {
  margin-left: 3px;
}
.video-media__poster:hover .video-media__play,
.video-media__poster:focus-visible .video-media__play {
  background: var(--red-deep);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Pages Academy et Événements : photos affichées telles quelles, sans voile rouge */
.photos-clear .media:not(.media--empty)::after {
  content: none;
}

/* Page Événements */
.events-list {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
.event-card {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.event-card__media {
  min-height: clamp(280px, 32vw, 460px);
  height: 100%;
}
.event-card__body {
  display: grid;
  gap: var(--s-5);
  align-content: center;
  justify-items: start;
  padding: clamp(28px, 4vw, 56px);
}
.event-card__logo {
  max-height: 56px;
  width: auto;
}
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.event-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-card__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Formations agréées FDFP (page Academy) */
.fdfp-seal {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  max-width: 280px;
}
.fdfp-seal img {
  width: 220px;
  height: auto;
}
.fdfp-seal p {
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.domain-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.fdfp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #ee6507;
  border-radius: 100px;
  color: #b84b00;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fdfp-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ee6507;
}

/* Page d'un événement --------------------------------------------------- */
.page-hero--clear .page-hero__image {
  filter: none;
}
.page-hero--clear .page-hero__veil {
  mix-blend-mode: normal;
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.88) 0%, rgba(13, 14, 18, 0.6) 50%, rgba(13, 14, 18, 0.25) 100%),
    linear-gradient(0deg, rgba(13, 14, 18, 0.55) 0%, transparent 45%);
}
.event-hero__logo {
  max-width: 220px;
  max-height: 120px;
  width: auto;
  height: auto;
}
.event-card__media-link {
  display: block;
  height: 100%;
}
.event-card__title a:hover {
  color: var(--red);
}
/* Texte centré sous le diaporama, largeur de lecture confortable. */
.event-content {
  max-width: 860px;
  margin-inline: auto;
}
.event-content__intro {
  margin-bottom: var(--s-6);
  color: var(--ink);
}

/* Diaporama */
.gallery {
  display: grid;
  gap: var(--s-4);
}
.gallery__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 680px);
  width: 100%;
  overflow: hidden;
  background: var(--ink-deep);
}
.gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease-in-out);
}
.gallery__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.gallery__slide--video {
  object-fit: contain;
  background: #000;
}
.gallery__slide--video img,
.gallery__slide--video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.gallery__nav,
.gallery__count {
  z-index: 2;
}
.gallery__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 14, 18, 0.55);
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.3s;
}
.gallery__nav:hover {
  background: var(--red);
}
.gallery__nav--prev {
  left: 16px;
}
.gallery__nav--prev svg {
  transform: rotate(180deg);
}
.gallery__nav--next {
  right: 16px;
}
.gallery__count {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 4px 10px;
  background: rgba(13, 14, 18, 0.6);
  color: var(--white);
  font-size: var(--fs-small);
}
.gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery__thumb {
  display: block;
  width: 110px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s, border-color 0.3s;
}
.gallery__thumb {
  position: relative;
}
.gallery__thumb--video::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--white);
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.gallery__thumb video,
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__thumb:hover,
.gallery__thumb.is-active {
  opacity: 1;
}
.gallery__thumb.is-active {
  border-color: var(--red);
}
@media (max-width: 640px) {
  .gallery__nav {
    width: 40px;
    height: 40px;
  }
  .gallery__thumb {
    width: 80px;
  }
}

/* Autres événements */
.events-others {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.events-others__card {
  display: grid;
  gap: var(--s-3);
}
.events-others__media {
  aspect-ratio: 16 / 9;
}
.events-others__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}
.events-others__meta {
  color: var(--muted);
  font-size: var(--fs-small);
}

/* Espace réduit entre le bandeau des logos clients et la section suivante (« Nos expertises »). */
.clients--bare + .section {
  padding-top: clamp(40px, 5vw, 72px);
}

/* Sans JavaScript : contenu visible immédiatement (les animations d'apparition sont un bonus). */
.no-js .reveal,
.no-js .mask-lines .line > span {
  opacity: 1 !important;
  transform: none !important;
}

/* Hero : une seule diapositive de texte affichée à la fois (rendu serveur de toutes les diapositives). */
.hero__text:not(.is-current) {
  display: none;
}

/* Attribut hidden toujours respecté (panneaux du méga-menu, formulaires, bandeau cookies…). */
[hidden] {
  display: none !important;
}

/* Logo : version claire sur fond sombre, version foncée quand l'en-tête devient opaque. */
.site-header .logo--dark {
  display: none;
}
.site-header.is-solid:not(.is-mobile-open) .logo--dark {
  display: block;
}
.site-header.is-solid:not(.is-mobile-open) .logo--light {
  display: none;
}

/* Bouton du menu mobile : icône menu / croix. */
.burger__open,
.burger__close {
  display: inline-flex;
}
.burger__close,
.site-header.is-mobile-open .burger__open {
  display: none;
}
.site-header.is-mobile-open .burger__close {
  display: inline-flex;
}

/* Accordéon du menu mobile : + / -. */
.mobile-menu__item .mm-plus,
.mobile-menu__item .mm-minus {
  display: inline-flex;
  color: var(--red);
}
.mobile-menu__item .mm-minus,
.mobile-menu__item[aria-expanded='true'] .mm-plus {
  display: none;
}
.mobile-menu__item[aria-expanded='true'] .mm-minus {
  display: inline-flex;
}

/* Pagination des Insights */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
