/* ==========================================================================
   Pinned Media — feuille de style principale
   Ordre : 1. Base  2. Composants  3. Sections (dans l'ordre de la page)
   4. Dialogues  5. Animations  6. Préférences (mouvement réduit)
   ========================================================================== */


/* ==========================================================================
   1. BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

main:focus {
  outline: none;
}

/* Focus visible : anneau de 3 px, teal foncé sur clair, teal clair sur sombre */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  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: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

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

.section {
  padding-block: var(--section-pad);
}

/* Fonds de section */
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-ink {
  --focus-ring: var(--teal-light);
  background: var(--ink);
  color: var(--white);
}

.bg-teal {
  --focus-ring: var(--white);
  background: var(--teal-deep);
  color: var(--white);
}

.bg-teal .wipe { --wipe-color: var(--white); }
.bg-teal .eyebrow { background: var(--red); }

/* Typographie de titres */
h1, h2,
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
}

.statement,
.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.credit {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.bg-ink .credit { color: rgba(255, 255, 255, 0.72); }

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--line-light);
  margin: 0;
}

.rule--dark { background: var(--line-dark); }


/* ==========================================================================
   2. COMPOSANTS
   ========================================================================== */

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--white);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Boutons (pilule + cercle qui se remplit au hover) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-button);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  background: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}


.btn:hover .btn__dot,
.btn:focus-visible .btn__dot {
  background: currentColor;
  transform: scale(1.3);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:active {
  background: var(--red-deep);
}

.btn--secondary {
  background: var(--ink);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--ink-2);
}

.btn--secondary.btn--on-dark,
.bg-ink .btn--secondary {
  background: var(--white);
  color: var(--ink);
}

.btn--secondary.btn--on-dark:hover,
.bg-ink .btn--secondary:hover {
  background: var(--cream);
}

.btn--ghost {
  border-color: currentColor;
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Boutons icône ronds ---------- */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: var(--white);
  color: var(--text);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.icon-btn:hover { background: var(--sand); }

.icon-btn--light {
  --focus-ring: var(--teal-light);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.icon-btn--light:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Eyebrow (bloc numéroté) ---------- */
.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.eyebrow--on-dark,
.bg-ink .eyebrow {
  background: var(--red);
}

/* ---------- En-tête de section (titre à gauche, chapô à droite) ---------- */
.section-head {
  display: grid;
  gap: 24px 64px;
  align-items: end;
  padding-bottom: clamp(32px, 4vw, 56px);
}

.section-head--dark { border-bottom-color: var(--line-dark); }
.section-head--compact { margin-bottom: clamp(24px, 3vw, 48px); }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 5fr 6fr;
  }
}

.section-head .lede,
.team__intro {
  max-width: 34ch;
}

.team__intro {
  max-width: 60ch;
  color: var(--muted);
}

/* ---------- Chips ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-chip);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.chip--teal {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.chip--red {
  background: var(--red-tint);
  color: var(--red-deep);
  border-color: rgba(230, 29, 36, 0.3);
}

.chip--glass {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Lien souligné ---------- */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 8px) / 100% 1px;
  transition: background-size var(--dur) var(--ease-out);
  border: 0;
  padding: 0;
  font: inherit;
}

.link-underline:hover {
  background-size: 0% 1px;
  background-position: 100% calc(100% - 8px);
}

/* ---------- Langue ---------- */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(6, 42, 43, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-switch__btn {
  --focus-ring: var(--teal-light);
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--white);
  font-size: var(--fs-button);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
}

.lang-switch--dark {
  background: transparent;
  border-color: var(--line-dark);
}

/* ---------- Images dans les cartes ---------- */
.media-img {
  width: 100%;
  border-radius: var(--radius-img);
}

/* ---------- Façade vidéo (clic pour lire) ---------- */
.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--ink);
}

.video-facade__poster,
.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-facade__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(6, 42, 43, 0.45), rgba(6, 42, 43, 0));
}

.play-dot {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(6, 42, 43, 0.35);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.play-dot .icon {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.video-facade__play:hover .play-dot,
.video-facade__play:focus-visible .play-dot {
  transform: scale(1.08);
  background: var(--red-deep);
}

.video-facade__play:focus-visible {
  outline-offset: -6px;
}

.play-dot--sm {
  width: 48px;
  height: 48px;
}

.play-dot--sm .icon {
  width: 18px;
  height: 18px;
}

/* ---------- Médias non validés (projet Chemonics) ---------- */
html:not(.is-preview) [data-cleared="false"] {
  display: none !important;
}

.is-preview [data-cleared="false"] {
  position: relative;
  outline: 2px dashed var(--red);
  outline-offset: 4px;
}

.gallery .cleared-badge {
  top: 6px;
  left: 6px;
  right: 6px;
  padding: 2px 8px;
  font-size: 0.625rem;
  text-align: center;
}

.cleared-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--red-deep);
  color: var(--white);
  font-size: var(--fs-chip);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}


/* ==========================================================================
   3. SECTIONS
   ========================================================================== */

/* ---------- 0. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo dans l'en-tête */
.site-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--dur) var(--ease-out);
}

.site-logo:hover { opacity: 0.85; }

.site-logo img {
  width: auto;
  height: clamp(32px, 3.4vw, 40px);
}

/* Coins arrondis en bas de la barre (visibles quand elle a un fond) */
.site-header {
  border-radius: 0 0 var(--radius-section) var(--radius-section);
}

.site-header.is-solid {
  background: rgba(6, 42, 43, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.site-header {
  --focus-ring: var(--teal-light);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out);
}

.menu-toggle:hover { transform: scale(1.06); }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  --focus-ring: var(--teal-light);
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--white);
  overflow-y: auto;
}

.menu-overlay[open] {
  display: block;
  animation: menu-in var(--dur) var(--ease-out);
}

.menu-overlay::backdrop { background: var(--ink); }

.menu-overlay__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.menu-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.menu-list {
  margin-block: clamp(24px, 6vh, 64px);
  counter-reset: none;
}

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-block: 6px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
}

.menu-list a:hover {
  color: var(--teal-light);
  transform: translateX(8px);
}

.menu-list__num {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--red-light);
  letter-spacing: 0.08em;
  min-width: 2.2em;
}

.menu-overlay__bottom {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

/* ---------- 1. Hero ---------- */
.hero {
  --focus-ring: var(--teal-light);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 var(--radius-section) var(--radius-section);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__bg,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 24s ease-out both;
}

.hero__overlay {
  /* Lisibilité à gauche (texte) + bas (cartes), image plus visible à droite */
  background:
    linear-gradient(to right, rgba(6, 42, 43, 0.92) 0%, rgba(6, 42, 43, 0.6) 45%, rgba(6, 42, 43, 0.15) 100%),
    linear-gradient(to top, rgba(6, 42, 43, 0.8) 0%, rgba(6, 42, 43, 0) 45%);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: end;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(32px, 6vw, 72px);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(40px, 5vw, 80px);
  }
}

.hero__content {
  max-width: 760px;
}

/* Pastille d'accroche au-dessus du titre */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(230, 29, 36, 0.25);
}

.hero__title {
  max-width: 12ch;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__text {
  max-width: 52ch;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--white);
}

/* Introduction intégrée au hero, avec filet rouge */
.hero__intro {
  max-width: 62ch;
  margin-bottom: 36px;
  padding-left: 18px;
  border-left: 2px solid var(--red);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.hero-card {
  position: relative;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
}

.hero-card__thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius-card) - 8px);
  overflow: hidden;
  background: var(--ink-2);
  color: var(--white);
  cursor: pointer;
}

.hero-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

/* Dégradé bas pour le libellé */
.hero-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 42, 43, 0.75) 0%, rgba(6, 42, 43, 0) 50%);
  transition: opacity var(--dur) var(--ease-out);
}

.hero-card__thumb:hover img,
.hero-card__thumb:focus-visible img { transform: scale(1.06); }

.hero-card__thumb .play-dot {
  position: relative;
  z-index: 1;
}

/* Ondes autour du bouton lecture */
.hero-card__thumb .play-dot::before,
.hero-card__thumb .play-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(230, 29, 36, 0.7);
  animation: play-pulse 2.4s var(--ease-out) infinite;
}

.hero-card__thumb .play-dot::after { animation-delay: 1.2s; }

.hero-card__thumb:hover .play-dot,
.hero-card__thumb:focus-visible .play-dot {
  transform: scale(1.1);
  background: var(--red-deep);
}

.hero-card__thumb-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-chip);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card__thumb-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

@keyframes play-pulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.9); opacity: 0; }
}

/* Entrée du hero : contenu qui monte, vidéo qui glisse */
.hero__content > * {
  animation: hero-rise 900ms var(--ease-out) both;
}

.hero__content > :nth-child(2) { animation-delay: 120ms; }
.hero__content > :nth-child(3) { animation-delay: 240ms; }
.hero__content > :nth-child(4) { animation-delay: 360ms; }

.hero-card {
  animation: hero-card-in 1100ms var(--ease-out) 300ms both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-card-in {
  from { opacity: 0; transform: translateX(32px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.hero__pause {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 16px);
}

@media (max-width: 1023px) {
  .hero-card { max-width: 640px; }
}

@media (max-width: 599px) {
  .hero-card { padding: 6px; }
  .hero-card__thumb { border-radius: calc(var(--radius-card) - 6px); }
}

@media (max-width: 599px) {
  .hero__eyebrow { font-size: 0.6875rem; letter-spacing: 0.08em; }
  .hero__intro { padding-left: 14px; }
}

/* ---------- 2. Introduction ---------- */
.about_section {
  border-radius: var(--radius-section) var(--radius-section) 0 0;
}
.about__grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about__figure,
.about__content {
  min-width: 0;
}

.about__figure {
  position: relative;
}

.about__image-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--sand);
  box-shadow: 0 24px 48px -24px rgba(6, 42, 43, 0.35);
}

.about__figure .credit {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.about__image {
  width: 100%;
  aspect-ratio: 4 / 3; 
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.about__image-wrap:hover .about__image {
  transform: scale(1.03);
}


.about__image-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about__eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.about__title {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.about__title-accent {
  display: block;
  color: var(--teal-deep);
}

.about__statement {
  max-width: 52ch;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 500;
}

.about__text {
  max-width: 58ch;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.about__link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-bottom: 6px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  }

  .about__image {
    aspect-ratio: 4 / 4;
    object-position: 100% center;
  }
}

/* ---------- 3. What we do (cartes empilées) ---------- */
.services {
  --services-radius: clamp(28px, 4vw, 56px);
  position: relative;
  /* Section précédée par « Selected work » (fond teal) : marge haute rétablie */
  padding-top: clamp(64px, 8vw, 112px);
  /* Bas : « How we work » remonte de la hauteur de son arrondi par-dessus
     cette section, on ajoute donc ce débord à la respiration voulue */
  padding-bottom: calc(clamp(28px, 4vw, 56px) + clamp(72px, 9vw, 128px));
  /* Coins arrondis en haut, posés sur la section précédente
     (pas d'overflow: hidden, pour garder les cartes collantes) */
  margin-top: calc(-1 * var(--services-radius));
  border-radius: var(--services-radius) var(--services-radius) 0 0;
}

.services__grid {
  display: grid;
  gap: 24px;
}

.services__intro-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--white);
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}

.services__intro-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services__intro-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 42, 43, 0.95) 10%, rgba(6, 42, 43, 0.35));
}

.services__intro-content {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 40px);
  width: 100%;
}

.services__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  margin-bottom: 16px;
}

.services__intro {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40ch;
}

.progress {
  height: 3px;
  margin-top: 28px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.services__stack {
  display: grid;
  gap: 24px;
}

.service-card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-card);
  box-shadow: 0 -12px 32px rgba(6, 42, 43, 0.06);
}

.service-card--white { background: var(--white); }
.service-card--cream { background: var(--white); }
.service-card--sand { background: var(--white); }

.service-card__num {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.service-card__title {
  font-size: var(--fs-h3);
  line-height: 1.25;
  margin-bottom: 12px;
}

.service-card__body p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 52ch;
}

.service-card__img {
  width: 100%;
  border-radius: var(--radius-img);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card--ink {
  min-height: 300px;
  overflow: hidden;
  align-content: end;
  background: var(--ink);
  color: var(--white);
}

.service-card__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--teal);
  opacity: 0.55;
}

.service-card__final {
  position: relative;
  display: grid;
  gap: 24px;
  justify-items: start;
}

.service-card__final-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  max-width: 14ch;
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
  }

  .services__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .services__intro-card {
    height: calc(100vh - var(--header-h) - 48px);
    max-height: 760px;
  }

  .services__stack {
    gap: 40px;
    padding-bottom: 4vh;
  }

  /* Empilement : chaque carte se colle un peu plus bas que la précédente */
  .js .service-card {
    position: sticky;
    top: calc(var(--header-h) + 24px + var(--i, 0) * 18px);
  }

  .service-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num body"
      "img img";
    column-gap: 28px;
    min-height: 480px;
  }

  .service-card__num { grid-area: num; }
  .service-card__body { grid-area: body; }
  .service-card__img { grid-area: img; aspect-ratio: 16 / 7; }

  .service-card--ink {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    min-height: 420px;
  }
}

.services__stack > li:nth-child(1) { --i: 0; }
.services__stack > li:nth-child(2) { --i: 1; }
.services__stack > li:nth-child(3) { --i: 2; }
.services__stack > li:nth-child(4) { --i: 3; }
.services__stack > li:nth-child(5) { --i: 4; }

/* ---------- 4. Why partners choose Pinned Media ---------- */
/* Bloc « Why » à l'intérieur de la section Services */
.why-block {
  margin-top: clamp(56px, 7vw, 96px);
}

.why__title {
  max-width: none;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 40px);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.2;
}

.why__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .why__grid { grid-template-columns: repeat(4, 1fr); }
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--text);
}

.why-card__top {
  display: flex;
}

.why-card__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  color: var(--teal-deep);
}

.why-card__icon {
  width: 28px;
  height: 28px;
}

/* Mix de couleurs : rouge, vert sombre, sable, teal */
.why-card:nth-child(4n + 1) { background: var(--red); color: var(--white); }
.why-card:nth-child(4n + 2) { background: var(--ink); color: var(--white); }
.why-card:nth-child(4n + 3) { background: var(--sand); color: var(--text); }
.why-card:nth-child(4n + 4) { background: var(--teal-deep); color: var(--white); }

.why-card:nth-child(4n + 1) p,
.why-card:nth-child(4n + 2) p,
.why-card:nth-child(4n + 4) p { color: rgba(255, 255, 255, 0.85); }

.why-card:nth-child(4n + 1) .why-card__badge { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.why-card:nth-child(4n + 2) .why-card__badge { background: var(--red); color: var(--white); }
.why-card:nth-child(4n + 3) .why-card__badge { background: var(--white); color: var(--red-deep); }
.why-card:nth-child(4n + 4) .why-card__badge { background: rgba(255, 255, 255, 0.15); color: var(--teal-light); }

.why-card > div:last-child {
  margin-top: auto;
}

.why-card__title {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 4b. Clients and partners (bandeau) ---------- */
/* Bandeau logos fin, juste après le hero */
.clients {
  padding-block: clamp(24px, 3vw, 40px);
}

/* ---------- 4c. Services : boîtes compactes ---------- */
.svc-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.svc-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--white);
}

.svc-box__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.svc-box__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 20px 24px;
}

.svc-box__title {
  font-size: 1.125rem;
  line-height: 1.3;
}

.svc-box__body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.svc-box .chip-list {
  margin-top: auto;
  padding-top: 6px;
}

/* Bandeau compact des trois plateformes, dans Services */
.platforms {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-light);
}

.platforms .brands__head { margin-bottom: clamp(28px, 3vw, 40px); }
.platforms .brand-card { background: var(--white); border-color: transparent; }

/* ---------- 6b. Process : quatre étapes visibles ensemble ---------- */
.steps__grid {
  display: grid;
  gap: 16px;
  counter-reset: none;
}

@media (min-width: 640px) {
  .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .steps__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.step-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--ink-2);
  border-top: 3px solid var(--teal);
}

.step-box:first-child { border-top-color: var(--red); }

.step-box__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--teal-light);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.step-box__title {
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--white);
}

.step-box p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 5. Bandeau des trois marques ---------- */
.brands__head {
  display: grid;
  gap: 20px 64px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

@media (min-width: 900px) {
  .brands__head { grid-template-columns: 5fr 6fr; align-items: end; }
}

.brands__title {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 22ch;
}

.brands__text {
  color: var(--muted);
  max-width: 56ch;
}

.brand-strip {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 28px;
}

/* Ligne de connexion teal (verticale sur mobile, horizontale sur desktop) */
.brand-strip::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--teal);
}

.brand-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border-radius: var(--radius-card-sm);
  border: 1px solid var(--line-light);
  background: var(--cream);
}

.brand-card--accent {
  border-top: 4px solid var(--red);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(6, 42, 43, 0.08);
}

.brand-card__node {
  position: absolute;
  left: -28px;
  top: 28px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
}

.brand-card--accent .brand-card__node {
  background: var(--red);
  border-color: var(--red);
}

@media (min-width: 900px) {
  .brand-card--accent .brand-card__node { top: -32px; }
}

.brand-card__logo {
  width: 120px;
  height: auto;
  margin-bottom: 4px;
}

.brand-card__role { justify-self: start; }

.brand-card__name {
  font-size: 1.25rem;
  line-height: 1.25;
}

.brand-card p:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .brand-strip {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 0;
    padding-top: 28px;
  }

  .brand-strip::before {
    left: 16.66%;
    right: 16.66%;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .brand-card__node {
    left: 50%;
    top: -28px;
    transform: translateX(-50%);
  }
}

/* ---------- 6. Selected work ---------- */

.work {
  border-radius: var(--radius-section) var(--radius-section) 0 0;
}
.work__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .work__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .work__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.project-card {
  --focus-ring: var(--teal-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--text);
}

/* Filet rouge en bas au hover / focus */
.project-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.project-card:hover::after,
.project-card:focus-within::after {
  transform: scaleX(1);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 12px 12px 0;
  border-radius: var(--radius-img);
  background: var(--sand);
}

.project-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.project-card:hover .project-card__media > img,
.project-card:focus-within .project-card__media > img {
  transform: scale(1.04);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  padding: 24px 24px 28px;
}

.project-card__title {
  font-size: var(--fs-h3);
  line-height: 1.25;
}

.project-card__summary {
  color: var(--muted);
  max-width: 60ch;
}

.project-card__btn {
  margin-top: auto;
}

/* Toute la carte est cliquable via le bouton (lien étiré) */
.project-card__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- 6b. Selected work : mise en page éditoriale + effets au scroll ---------- */
.work .section-head { border-bottom-color: rgba(255, 255, 255, 0.2); }
.work .lede { color: rgba(255, 255, 255, 0.85); }

.work .work__grid {
  counter-reset: work;
  gap: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px);
}

/* Deux colonnes décalées (style magazine) */
@media (min-width: 900px) {
  .work .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work .project-card:nth-child(even) { margin-top: clamp(80px, 10vw, 160px); }
}

.work .project-card {
  counter-increment: work;
  overflow: visible;
  background: transparent;
  color: var(--white);
}

.work .project-card::after { display: none; }

.work .project-card__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: var(--ink-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

/* Image plus haute que son cadre : glisse au scroll (parallaxe) */
.work .project-card__media > img {
  height: 120%;
  margin-top: -10%;
  transform: translateY(var(--py, 0px)) scale(var(--zoom, 1));
  transition: transform 700ms var(--ease-out);
  will-change: transform;
}

.work .project-card:hover .project-card__media > img,
.work .project-card:focus-within .project-card__media > img {
  --zoom: 1.06;
  transform: translateY(var(--py, 0px)) scale(var(--zoom));
}

/* Grand numéro en contour sur l'image */
.work .project-card__media::before {
  content: counter(work, decimal-leading-zero);
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 20px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Voile au survol */
.work .project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 42, 43, 0.55), rgba(6, 42, 43, 0) 60%);
  opacity: 0.6;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.work .project-card:hover .project-card__media::after { opacity: 1; }

.work .project-card__body {
  gap: 12px;
  padding: 24px 0 0;
}

.work .project-card__title {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size 500ms var(--ease-out);
}

.work .project-card:hover .project-card__title { background-size: 100% 2px; }

.work .project-card__summary { color: rgba(255, 255, 255, 0.78); }

.work .chip {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.work .chip--red {
  border-color: var(--red);
  background: var(--red);
}

.work .project-card__btn {
  margin-top: 8px;
  color: var(--white);
}

.work .project-card__btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--teal-deep);
}

/* Révélation de l'image au scroll : rideau qui s'ouvre vers le haut */
.js .work .project-card.reveal .project-card__media {
  clip-path: inset(100% 0 0 0 round var(--radius-card));
  transition: clip-path 1100ms var(--ease-out) var(--delay, 0ms);
}

.js .work .project-card.reveal.is-in .project-card__media {
  clip-path: inset(0 0 0 0 round var(--radius-card));
}

/* Bulle « View project » qui suit le curseur */
.work-cursor {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 12px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  transition: opacity 250ms var(--ease-out), transform 350ms var(--ease-out);
}

.work-cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Souris : l'image passe au-dessus du lien étiré pour recevoir la bulle
   (le clic sur l'image ouvre le projet, voir animations.js) */
@media (hover: hover) and (pointer: fine) {
  .work .project-card__media {
    z-index: 2;
    cursor: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .work .project-card.reveal .project-card__media { clip-path: none; }
  .work .project-card__media > img { transform: none; }
  .work-cursor { display: none; }
  .work .project-card__media { cursor: pointer; }
}

/* ---------- 6c. Selected work — Proposition 2 : carrousel horizontal ---------- */
.work__controls { display: none; }

.work--carousel .work__controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.work__progress {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.work__progress-bar {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: left;
  transform: scaleX(var(--progress, 0.25));
  transition: transform 200ms linear;
}

.work__arrows {
  display: flex;
  gap: 8px;
}

.work__arrows .icon-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* Piste : défilement horizontal avec aimantation, déborde jusqu'au bord droit de l'écran */
.work--carousel .work__grid {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  margin-right: calc(50% - 50vw);
  padding: 8px calc(50vw - 50%) 24px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: none;
}

.work--carousel .work__grid::-webkit-scrollbar { display: none; }

.work--carousel .work__grid.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.work--carousel .project-card {
  --focus: 1;
  flex: 0 0 min(82vw, 600px);
  margin-top: 0;
  scroll-snap-align: start;
}

.work--carousel .project-card:nth-child(even) { margin-top: 0; }

.work--carousel .project-card__media {
  aspect-ratio: 16 / 10;
  transform: scale(calc(0.9 + 0.1 * var(--focus)));
  transform-origin: left center;
  opacity: calc(0.45 + 0.55 * var(--focus));
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out), clip-path 1100ms var(--ease-out);
}

.work--carousel .project-card__body {
  opacity: calc(0.35 + 0.65 * var(--focus));
  transition: opacity 300ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .work--carousel .work__grid { scroll-behavior: auto; }
  .work--carousel .project-card__media,
  .work--carousel .project-card__body { transform: none; opacity: 1; }
}

/* ---------- 6d. Selected work — Proposition 3 : bento cinématique ----------
   FIFA en vedette (2×2), Chemonics + UNDP à côté, Women in Football en bandeau large.
   Texte toujours visible (pas de dépendance au survol), image en plein cadre. */
.work--bento .work__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(360px, auto);
  gap: 16px;
}

@media (min-width: 768px) {
  .work--bento .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work--bento .project-card:nth-child(1),
  .work--bento .project-card:nth-child(4) { grid-column: span 2; }
  .work--bento .project-card:nth-child(1) { min-height: 480px; }
}

@media (min-width: 1100px) {
  .work--bento .work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(300px, auto);
  }
  .work--bento .project-card:nth-child(1) { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .work--bento .project-card:nth-child(4) { grid-column: span 3; min-height: 340px; }
}

.work--bento .project-card,
.work--bento .project-card:nth-child(even) {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--ink-2);
  isolation: isolate;
}

/* Anneau de focus visible sur toute la carte (navigation clavier) */
.work--bento .project-card:focus-within {
  outline: 2px solid var(--teal-light);
  outline-offset: 4px;
}

.work--bento .project-card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .work--bento .project-card__media { z-index: -1; cursor: pointer; }
}

/* Dégradé cinéma pour la lisibilité du texte */
.work--bento .project-card__media::after {
  background: linear-gradient(to top, rgba(6, 42, 43, 0.95) 0%, rgba(6, 42, 43, 0.6) 38%, rgba(6, 42, 43, 0) 72%);
  opacity: 1;
}

/* Numéro discret, façon repère de bobine */
.work--bento .project-card__media::before {
  top: 20px;
  right: 24px;
  left: auto;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* position: static pour que le lien étiré du bouton couvre toute la carte */
.work--bento .project-card__body {
  position: static;
  gap: 10px;
  padding: clamp(20px, 2.5vw, 32px);
  max-width: 62ch;
}

.work--bento .project-card__title {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
}

.work--bento .project-card:nth-child(1) .project-card__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.1;
}

.work--bento .project-card__summary {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
}

/* Bouton : pastille blanche avec flèche, rouge au survol */
.work--bento .project-card__btn {
  position: static; /* le lien étiré couvre toute la carte */
  margin-top: 6px;
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.work--bento .project-card:hover .project-card__btn,
.work--bento .project-card__btn:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.work--bento .project-card:hover .project-card__media > img {
  --zoom: 1.06;
}

/* Entrée au scroll : la carte se déplie légèrement (pas de long enchaînement) */
.js .work--bento .project-card.reveal {
  transform: translateY(24px) scale(0.97);
}

.js .work--bento .project-card.reveal.is-in {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .work--bento .project-card.reveal { transform: none; }
}

/* ---------- 6e. Selected work — Proposition 4 : panneaux portrait (accordéon) ----------
   Cartes verticales côte à côte ; la carte survolée / focalisée s'élargit (la 1re par défaut).
   Tactile / petits écrans : grille 2×2 puis 1 colonne, tout le texte visible. */
.work--panels .work__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .work--panels .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.work--panels .project-card,
.work--panels .project-card:nth-child(even) {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 480px;
  margin-top: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink-2);
  isolation: isolate;
  transition: flex-grow 600ms var(--ease-out);
}

/* Contour uniquement à la navigation clavier (pas au clic) */
.work--panels .project-card:has(:focus-visible) {
  outline: 2px solid var(--teal-light);
  outline-offset: 4px;
}

.work--panels .project-card__btn:focus,
.work--panels .project-card__btn:focus-visible { outline: none; }

/* Image plein cadre */
.work--panels .project-card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .work--panels .project-card__media { z-index: -1; cursor: pointer; }
}

.work--panels .project-card__media::after {
  background: linear-gradient(to top, rgba(6, 42, 43, 0.92) 0%, rgba(6, 42, 43, 0.45) 40%, rgba(6, 42, 43, 0) 65%);
  opacity: 1;
}

/* Bouton rond flèche en haut à droite (décoratif : toute la carte est cliquable) */
.work--panels .project-card__media::before {
  content: "↗";
  top: 20px;
  right: 20px;
  left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  -webkit-text-stroke: 0;
  text-shadow: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

/* Contenu : étiquettes en haut, titre + texte + bouton en bas */
.work--panels .project-card__body {
  position: static;
  flex: 1;
  gap: 12px;
  padding: 24px;
  max-width: none;
}

.work--panels .chip-list { gap: 6px; }

/* Étiquette client : juste au-dessus du titre, fond rouge */
.work--panels .project-card__client {
  margin-top: auto;
}

.work--panels .project-card__client .chip {
  border-color: var(--red);
  background: var(--red);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-weight: 600;
}

/* Étiquettes pays : sous le résumé */
.work--panels .project-card__countries {
  margin-top: 2px;
}

.work--panels .chip,
.work--panels .chip--red {
  min-height: 28px;
  padding: 3px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(6, 42, 43, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Chips pays : fond discret, sans contour */
.work--panels .chip--country {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.16);
}

.work--panels .project-card__title {
  margin-top: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: none;
}

.work--panels .project-card__summary {
  max-width: 40ch;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

/* Bouton pleine largeur : « VIEW PROJECT  › » */
.work--panels .project-card__btn {
  position: static; /* le lien étiré (::after) couvre alors toute la carte */
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Le point du bouton devient le chevron, placé à droite */
.work--panels .project-card__btn .btn__dot {
  order: 2;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  border-radius: 0;
  background: none;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}

.work--panels .project-card:hover .project-card__btn,
.work--panels .project-card__btn:focus-visible {
  background: var(--red);
  color: var(--white);
}

.work--panels .project-card:hover .project-card__btn .btn__dot {
  transform: translateX(4px) rotate(45deg);
}

/* État actif : flèche rouge pleine → */
.work--panels .project-card:hover .project-card__media::before,
.work--panels .project-card:has(:focus-visible) .project-card__media::before {
  content: "→";
  background: var(--red);
  color: var(--white);
}

/* Desktop souris : rangée unique en accordéon */
@media (min-width: 1100px) and (hover: hover) {
  .work--panels .work__grid {
    display: flex;
    height: clamp(560px, 72vh, 680px);
  }

  .work--panels .project-card,
  .work--panels .project-card:nth-child(even) {
    flex: 1 1 0;
    min-height: 0;
  }

  /* Carte active : survol / focus, sinon la première */
  .work--panels .project-card:hover,
  .work--panels .project-card:focus-within,
  .work--panels .work__grid:not(:hover):not(:focus-within) .project-card:first-child {
    flex-grow: 1.8;
  }

  .work--panels .work__grid:not(:hover):not(:focus-within) .project-card:first-child .project-card__media::before {
    content: "→";
    background: var(--red);
    color: var(--white);
  }

  /* Cartes étroites : titre plus petit, résumé révélé sur la carte active */
  .work--panels .project-card__title { font-size: clamp(1.5rem, 1.9vw, 2rem); }

  .work--panels .project-card__summary {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 500ms var(--ease-out), opacity 400ms var(--ease-out);
  }

  .work--panels .project-card:hover .project-card__summary,
  .work--panels .project-card:focus-within .project-card__summary,
  .work--panels .work__grid:not(:hover):not(:focus-within) .project-card:first-child .project-card__summary {
    max-height: 8em;
    opacity: 1;
    transition-delay: 150ms;
  }

  .work--panels .project-card:hover .project-card__title,
  .work--panels .project-card:focus-within .project-card__title,
  .work--panels .work__grid:not(:hover):not(:focus-within) .project-card:first-child .project-card__title {
    font-size: clamp(2rem, 3vw, 3rem);
  }
}

/* Combine l'apparition au scroll et l'élargissement */
.js .work--panels .project-card.reveal {
  transition:
    opacity var(--dur-slow) var(--ease-out) var(--delay, 0ms),
    transform var(--dur-slow) var(--ease-out) var(--delay, 0ms),
    flex-grow 600ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .work--panels .project-card { transition: none; }
}

/* ---------- 7. Training ---------- */
.training__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.training-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line-light);
}

.training-card .project-card__media {
  aspect-ratio: 4 / 3;
  align-self: start;
  margin: 12px 0 12px 12px;
}

.training-card .project-card__body {
  justify-content: center;
  padding: 32px 32px 28px;
}

.training-card .quote {
  width: 100%;
  margin: 0;
  padding-top: 20px;
}

.training-card .quote p {
  font-size: 1.0625rem;
}

.training-card .read-more__body {
  padding-bottom: 16px;
}

.training-card .read-more .credits-inline {
  padding: 14px 0 18px;
  border-top: 1px dashed var(--line-light);
}

.training-card .project-card__media .video-facade {
  position: absolute;
  inset: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

@media (max-width: 767px) {
  .training-card { grid-template-columns: minmax(0, 1fr); }

  .training-card .project-card__media {
    aspect-ratio: 16 / 10;
    margin: 12px 12px 0;
  }

  .training-card .project-card__body {
    padding: 24px 20px 24px;
  }
}

.training-card__meta {
  font-size: var(--fs-small);
  color: var(--muted);
}

.training-card__meta strong {
  color: var(--text);
  font-weight: 700;
}

.quote {
  position: relative;
  padding: 24px 0 0 0;
  margin: 4px 0;
  border-top: 1px solid var(--line-light);
}

.quote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  height: 0.45em;
  color: var(--red);
}

.quote p {
  font-size: 1.1875rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.quote footer {
  font-size: var(--fs-small);
  color: var(--muted);
}

.quote cite { font-style: normal; }

.credits-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: var(--fs-small);
  color: var(--muted);
}

.credits-inline span { font-weight: 700; color: var(--text); }

.link-external {
  color: var(--teal-deep);
  font-weight: 600;
}

/* Détails « Read more » */
.read-more {
  width: 100%;
  border-top: 1px solid var(--line-light);
}

.read-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-family: var(--font-display);
  font-size: var(--fs-button);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.read-more summary::-webkit-details-marker { display: none; }

.read-more summary .icon {
  transition: transform var(--dur) var(--ease-out);
  color: var(--teal);
}

.read-more[open] summary .icon { transform: rotate(180deg); }

.read-more__body {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
}

.read-more__body dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-top: 12px;
  color: var(--teal-deep);
}

.read-more__body dd { color: var(--muted); }

/* ---------- 8. Clients ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}

.logo-row__item {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: clamp(140px, 16vw, 200px);
}

.logo-row__item img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.logo-row__item:nth-child(2) img {
  transform: scale(1.15);
}

.clients__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.clients__title {
  flex: none;
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
}

/* Petit trait rouge d'accent au-dessus du titre */
.clients__title::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin: 0 auto 12px;
  border-radius: 3px;
  background: var(--red);
}

@media (min-width: 768px) {
  .clients__row {
    flex-direction: row;
    align-items: center;
    gap: clamp(32px, 4vw, 56px);
  }

  .clients__title {
    max-width: 17ch;
    text-align: left;
  }

  .clients__title::before { margin-left: 0; }
}

/* Logos défilants (boucle infinie) */
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee .logo-row {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: clamp(32px, 4vw, 56px);
  padding-right: clamp(32px, 4vw, 56px);
}

.marquee .logo-row__item {
  flex: none;
  width: auto;
}

/* Même hauteur pour tous les logos, largeur libre selon leurs proportions */
.marquee .logo-row__item img,
.marquee .logo-row__item:nth-child(2) img {
  width: auto;
  height: 36px;
  max-width: none;
  transform: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; justify-content: center; }
  .marquee .logo-row { flex-wrap: wrap; justify-content: center; padding-right: 0; row-gap: 24px; }
  .marquee .logo-row[aria-hidden="true"] { display: none; }
}

.logo-row__caption {
  font-size: var(--fs-chip);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 9. How we work ---------- */
.process {
  --process-radius: clamp(28px, 4vw, 56px);
  position: relative;
  margin-top: calc(-1 * var(--process-radius));
  padding-top: clamp(64px, 8vw, 112px);
  /* Training remonte de son arrondi par-dessus : on ajoute ce débord */
  padding-bottom: calc(clamp(28px, 4vw, 56px) + clamp(64px, 8vw, 112px));
  /* Coins arrondis en haut (pas d'overflow: hidden, pour garder le sticky) */
  border-radius: var(--process-radius) var(--process-radius) 0 0;
}

.process .section-head {
  padding-bottom: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.process__grid {
  display: grid;
  gap: 40px;
}

/* Mode liste (par défaut : mobile, sans JS, mouvement réduit) */
.process__wheel { display: none; }

.process__panels {
  display: grid;
  gap: 16px;
}

.process-step {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}

.process-step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  margin-bottom: 16px;
}

.process-step__title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.process-step p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
}

@media (min-width: 640px) {
  .process__panels { grid-template-columns: repeat(2, 1fr); }
}

/* Mode interactif (desktop, JS actif) : section haute de 4 écrans, contenu collant */
.process.is-interactive {
  height: 400vh;
  padding: 0 0 clamp(48px, 6vw, 96px);
}

.process.is-interactive .process__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  /* Espace sous l'en-tête fixe + respiration en bas */
  padding-top: calc(var(--header-h) + clamp(16px, 3vh, 40px));
  padding-bottom: clamp(24px, 5vh, 56px);
}

.process.is-interactive .process__sticky > .container { width: 100%; }

.process.is-interactive .process__grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.process.is-interactive .process__panels {
  display: block;
  position: relative;
  min-height: 340px;
}

.process.is-interactive .process-step {
  padding: 0;
  background: none;
  border: 0;
  animation: step-in var(--dur) var(--ease-out);
}

.process.is-interactive .process-step__num {
  font-size: clamp(4rem, 8vw, 7rem);
}

.process.is-interactive .section-head {
  padding-bottom: 20px;
}

.process.is-interactive .process__wheel {
  display: block;
  position: relative;
  width: min(100%, 520px, calc(100vh - 300px));
  aspect-ratio: 1;
  justify-self: center;
}

.process__circle {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  color: var(--teal);
  transform: rotate(-90deg);
  overflow: visible;
}

.process__arc {
  stroke: var(--red);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--arc, 0) * 100);
  transition: stroke-dashoffset 300ms linear;
}

.process__center {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  color: var(--teal-light);
  transform: translate(-50%, -50%);
}

.process__center .icon { width: 40%; height: 40%; }

.process-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.process-node__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px var(--ink);
  transition: background-color var(--dur-fast), transform var(--dur-fast);
}

.process-node[aria-selected="true"] { color: var(--white); }

.process-node[aria-selected="true"] .process-node__dot {
  background: var(--red);
  transform: scale(1.35);
}

.process-node:hover .process-node__dot { transform: scale(1.2); }

/* Positions : 12 h, 3 h, 6 h, 9 h (centre du point sur le cercle) */
/* Le cercle a un rayon de 34 % de la largeur : les nœuds sont à 16 % / 84 % */
.process-node--n { left: 50%; top: 16%; transform: translate(-10px, -50%); }
.process-node--e { left: 84%; top: 50%; transform: translate(-10px, -50%); }
.process-node--s { left: 50%; top: 84%; transform: translate(-10px, -50%); }
.process-node--w { left: 16%; top: 50%; transform: translate(-10px, -50%); flex-direction: row-reverse; }
.process-node--w { transform: translate(calc(-100% + 10px), -50%); }
.process-node--n .process-node__label { position: absolute; left: 34px; top: -18px; }
.process-node--s .process-node__label { position: absolute; left: 34px; top: 18px; }

/* ---------- 9b. How we work : frise compacte ----------
   Les 4 étapes sont visibles ensemble. La ligne se dessine et les points
   s'allument l'un après l'autre quand la frise entre à l'écran. */
.timeline {
  --line-x: 9px;            /* position de la ligne (mobile : verticale à gauche) */
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 40px;
}

/* Ligne de fond + ligne rouge qui se dessine */
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: var(--line-x);
  width: 2px;
  border-radius: 2px;
  background: var(--line-dark);
}

.timeline::after {
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1600ms var(--ease-out) 200ms;
}

.timeline.is-in::after,
html:not(.js) .timeline::after { transform: none; }

.timeline__step {
  position: relative;
}

/* Point de chaque étape, sur la ligne */
.timeline__dot {
  position: absolute;
  top: 28px;
  left: calc(var(--line-x) - 40px - 9px + 1px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-dark);
  background: var(--ink);
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

.timeline.is-in .timeline__dot,
html:not(.js) .timeline__dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(230, 29, 36, 0.18);
}

/* Les points s'allument au passage de la ligne */
.timeline__step:nth-child(1) .timeline__dot { transition-delay: 300ms; }
.timeline__step:nth-child(2) .timeline__dot { transition-delay: 700ms; }
.timeline__step:nth-child(3) .timeline__dot { transition-delay: 1100ms; }
.timeline__step:nth-child(4) .timeline__dot { transition-delay: 1500ms; }

.timeline__card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  background: var(--ink-2);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.timeline__step:hover .timeline__card {
  border-color: rgba(230, 29, 36, 0.6);
  background: #0d4547;
}

.timeline__num {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 28px;
  margin-bottom: 18px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--teal-light);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.timeline__title {
  margin-bottom: 10px;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.timeline__card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* Desktop : frise horizontale, 4 colonnes, ligne au-dessus des cartes */
@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-left: 0;
    padding-top: 48px;
  }

  .timeline::before,
  .timeline::after {
    top: 8px;
    bottom: auto;
    left: 9px;
    right: 9px;
    width: auto;
    height: 2px;
  }

  .timeline::after {
    transform: scaleX(0);
    transform-origin: left;
  }

  .timeline__dot {
    top: -48px;
    left: 0;
  }
}

/* La frise elle-même ne glisse pas : seules les étapes apparaissent */
.js .timeline.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .timeline::after { transform: none; transition: none; }
  .timeline__dot { transition: none; }
}

/* ---------- 9c. How we work : étapes interactives (accordéon + lecture auto) ---------- */
.steps-x {
  --step-duration: 6s;
  display: grid;
  gap: 12px;
}

.steps-x__item {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  background: var(--ink-2);
  transition: background-color 500ms var(--ease-out), border-color 500ms var(--ease-out), flex-grow 700ms var(--ease-out);
}

.steps-x__item.is-active {
  border-color: transparent;
  background: var(--teal-deep);
}

/* Combine l'apparition au scroll (.reveal) et l'élargissement */
.js .steps-x__item.reveal {
  transition:
    opacity var(--dur-slow) var(--ease-out) var(--delay, 0ms),
    transform var(--dur-slow) var(--ease-out) var(--delay, 0ms),
    background-color 500ms var(--ease-out),
    border-color 500ms var(--ease-out),
    flex-grow 700ms var(--ease-out);
}

.steps-x__heading { margin: 0; }

.steps-x__head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 20px 24px;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.steps-x__head:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: -4px;
  border-radius: var(--radius-card);
}

.steps-x__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 44px;
  height: 28px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--teal-light);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out);
}

.steps-x__item.is-active .steps-x__num {
  background: var(--red);
  color: var(--white);
}

.steps-x__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
}

/* Chevron (mobile) */
.steps-x__chev {
  flex: none;
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 400ms var(--ease-out);
}

.steps-x__item.is-active .steps-x__chev { transform: rotate(-135deg); }

/* Contenu repliable (technique grid 0fr → 1fr) */
.steps-x__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 600ms var(--ease-out);
}

.steps-x__item.is-active .steps-x__body { grid-template-rows: 1fr; }

.steps-x__inner {
  overflow: hidden;
  min-height: 0;
}

.steps-x__inner p {
  max-width: 56ch;
  padding: 0 24px 28px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.steps-x__item.is-active .steps-x__inner p {
  opacity: 1;
  transform: none;
  transition-delay: 250ms;
}

/* Barre de progression (lecture automatique) */
.steps-x__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 300ms;
}

.steps-x__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.steps-x.is-playing .steps-x__item.is-active .steps-x__progress { opacity: 1; }

.steps-x.is-playing .steps-x__item.is-active .steps-x__bar {
  animation: step-progress var(--step-duration) linear forwards;
}

.steps-x.is-playing:hover .steps-x__bar,
.steps-x.is-playing:focus-within .steps-x__bar,
.steps-x.is-paused .steps-x__bar {
  animation-play-state: paused;
}

@keyframes step-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Desktop : rangée horizontale, la carte active s'élargit */
@media (min-width: 900px) {
  .steps-x {
    display: flex;
    gap: 16px;
    height: clamp(360px, 48vh, 440px);
  }

  .steps-x__item {
    flex: 1 1 0;
    min-width: 0;
  }

  .steps-x__item.is-active { flex-grow: 2.8; }

  .steps-x__heading { flex: 1; display: flex; }

  .steps-x__head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px;
  }

  .steps-x__item.is-active .steps-x__heading { flex: none; }

  .steps-x__item.is-active .steps-x__head {
    justify-content: flex-start;
    gap: 24px;
  }

  .steps-x__item.is-active .steps-x__title {
    flex: none;
    font-size: clamp(2rem, 3.2vw, 3rem);
  }

  .steps-x__chev { display: none; }

  .steps-x__inner p { padding: 0 28px 32px; }

  .steps-x__item:not(.is-active):hover {
    border-color: rgba(230, 29, 36, 0.6);
    background: #0d4547;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-x__item,
  .steps-x__body,
  .steps-x__inner p { transition: none; }
}

.process__intro { color: rgba(255, 255, 255, 0.85); }

/* ---------- Training : coins arrondis en haut, comme Services et How we work ---------- */
.training {
  --training-radius: clamp(28px, 4vw, 56px);
  position: relative;
  margin-top: calc(-1 * var(--training-radius));
  padding-top: clamp(64px, 8vw, 112px);
  border-radius: var(--training-radius) var(--training-radius) 0 0;
}

/* Titre sur deux lignes équilibrées */
.training .section-title {
  /* Deux lignes équilibrées : « Training and / talent development » */
  max-width: 26ch; /* assez pour « développement des talents » (FR) sur une ligne */
  text-wrap: balance;
}

/* Desktop : colonne titre plus large, paragraphe plus étroit,
   pour que chaque ligne du titre tienne sur une seule ligne */
@media (min-width: 900px) {
  .training .section-head {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .training .section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
  }

  .training .section-head .lede { max-width: 30ch; }
}

.training .section-head { 
  padding-bottom: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ---------- Platforms + Team : mêmes coins arrondis en haut ---------- */
.brands,
.team {
  --section-radius: clamp(28px, 4vw, 56px);
  position: relative;
  margin-top: calc(-1 * var(--section-radius));
  border-radius: var(--section-radius) var(--section-radius) 0 0;
}

/* Sections recouvertes par l'arrondi de la suivante : on rajoute ce débord en bas */
.training,
.brands,
.team {
  padding-bottom: calc(clamp(28px, 4vw, 56px) + var(--section-pad));
}

/* ---------- 9d. How we work : cartes blanches + icônes (surcharge de la frise 9b) ---------- */
.timeline__card {
  display: flex;
  flex-direction: column;
  border-color: transparent;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.5);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

/* Pas de contour au survol : la carte se soulève légèrement */
.timeline__step:hover .timeline__card {
  border-color: transparent;
  background: var(--white);
  box-shadow: 0 32px 56px -28px rgba(0, 0, 0, 0.55);
}

/* Sans ligne ni points : simple grille de cartes */
.timeline,
.timeline.reveal {
  padding: 0;
}

.timeline::before,
.timeline::after { display: none; }

@media (min-width: 640px) and (max-width: 899px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .timeline { padding-top: 0; }
}

.timeline__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.timeline__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--teal-deep);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.timeline__icon .icon {
  width: 26px;
  height: 26px;
}

.timeline__step:hover .timeline__icon {
  background: var(--red);
  color: var(--white);
}

.timeline__num {
  margin-bottom: 0;
  background: var(--red-tint);
  color: var(--red-deep);
}

.timeline__title { color: var(--ink); }

.timeline__card p { color: var(--muted); }

/* ---------- 10. Trusted by ---------- */
.trusted {
  position: relative;
  overflow: hidden;
  overflow: clip; /* clip (et non hidden) pour ne pas casser position: sticky */
  padding-block: var(--section-pad);
}

.trusted__sticky {
  position: relative;
  display: grid;
  gap: 40px;
  justify-items: center;
  padding-inline: var(--gutter);
}

.trusted__title {
  text-align: center;
  font-size: clamp(2.5rem, 8vw, 7.5rem);
  line-height: 1.02;
  max-width: 14ch;
}

.trusted__line1 {
  display: block;
  font-weight: 400;
  color: var(--white);
}

.trusted__line2 {
  display: block;
  font-weight: 800;
  color: var(--red);
}

.trusted__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: min(100%, 960px);
}

.trusted__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-img);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Mode animé : les photos convergent vers une rangée au-dessus du texte */
.trusted.is-interactive {
  height: 240vh;
  padding: 0;
}

.trusted.is-interactive .trusted__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  align-content: start;
  padding-top: calc(var(--header-h) + 5vh);
}

.trusted.is-interactive .trusted__photos {
  position: absolute;
  inset: 0;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 5vh;
  gap: clamp(8px, 1.5vw, 20px);
  pointer-events: none;
}

.trusted.is-interactive .trusted__photo {
  width: clamp(84px, 12vw, 180px);
  transform:
    translate(calc(var(--x0) * (1 - var(--p, 0))), calc(var(--y0) * (1 - var(--p, 0))))
    rotate(calc(var(--r0) * (1 - var(--p, 0))));
  will-change: transform;
}

/* ---------- 11. Team ---------- */
.team__strip {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .team__strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .team__strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 639px) {
  .team__strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 12px;
    scrollbar-width: thin;
  }

  .team-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-card-sm);
  background: var(--sand);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__photo::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(6, 42, 43, 0.92), rgba(6, 42, 43, 0));
}

.team-card__id {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: start;
  color: var(--white);
}

.team-card__name {
  font-size: 1.25rem;
  line-height: 1.2;
}

.team-card__bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.js .team-card__bio.is-clamped:not(.is-open) {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bio-toggle {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 12. Contact ---------- */
.contact__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 7fr 4fr; gap: 80px; }
}

.contact__main {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.contact__main .eyebrow { margin-bottom: 0; }

.contact__intro {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Grand lien e-mail avec soulignement rouge animé */
.contact__mail {
  font-size: clamp(1.375rem, 4.2vw, 1rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  word-break: break-word;
  padding-bottom: 8px;
  margin-block: 8px;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 100% 3px;
}

.contact__mail:hover,
.contact__mail:focus-visible {
  animation: underline-sweep 700ms var(--ease-out);
}

.contact-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--cream);
  border: 1px solid var(--line-light);
}

@media (min-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
}

.contact-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.contact-card__body { display: grid; gap: 8px; }

.contact-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.contact-card__role {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: 4px;
}

/* ---------- 13b. Contact + footer fusionnés ---------- */
.footer-x {
  --footer-radius: clamp(28px, 4vw, 56px);
  position: relative;
  margin-top: calc(-1 * var(--footer-radius));
  padding-top: clamp(48px, 6vw, 88px);
  overflow: hidden;
  border-radius: var(--footer-radius) var(--footer-radius) 0 0;
  scroll-margin-top: var(--header-h);
}

/* Halo de couleur discret en haut à droite */
.footer-x::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(60vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 135, 138, 0.35), transparent 65%);
  pointer-events: none;
}

.footer-x > .container { position: relative; }

/* --- Appel à l'action --- */
.footer-x__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-x__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.footer-x__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: play-pulse 2s var(--ease-out) infinite;
}

.footer-x__title {
  /* Deux lignes équilibrées (« Let’s tell / your story ») */
  max-width: none;
  text-wrap: balance;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.footer-x__cta-grid {
  display: grid;
  gap: 20px;
  align-items: end;
}

@media (min-width: 900px) {
  .footer-x__cta-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
}

.footer-x__intro {
  /* Toute la largeur à gauche de la pastille : 2 lignes sur desktop */
  max-width: 100ch;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

/* Lien e-mail dans une pastille, avec flèche ronde */
.footer-x__mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  padding: 6px 6px 6px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

@media (min-width: 900px) {
  .footer-x__mail { justify-self: end; }
}

.footer-x__mail-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.footer-x__mail-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transition: transform 500ms var(--ease-out), background-color var(--dur) var(--ease-out);
}

.footer-x__mail-arrow .icon { width: 18px; height: 18px; }

.footer-x__mail:hover,
.footer-x__mail:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.footer-x__mail:hover .footer-x__mail-arrow,
.footer-x__mail:focus-visible .footer-x__mail-arrow {
  transform: rotate(45deg);
  background: var(--red-deep);
}

.footer-x .contact__portfolio { margin-top: 16px; }

/* --- Bande navigation --- */
.footer-x__mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin-top: clamp(36px, 4.5vw, 56px);
  padding-block: 16px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.footer-x__logo {
  display: inline-flex;
  opacity: 0.9;
  transition: opacity var(--dur) var(--ease-out);
}

.footer-x__logo:hover { opacity: 1; }

.footer-x__logo img {
  width: auto;
  height: clamp(44px, 5vw, 60px);
}

.footer-x__nav { flex: 1; }

.footer-x__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.footer-x__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}

.footer-x__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.footer-x__links a:hover { color: var(--white); }
.footer-x__links a:hover::after { transform: scaleX(1); }

.footer-x__top {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.footer-x__top:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}

/* --- Bas de page --- */
.footer-x__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px calc(20px + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
}

/* --- Grand nom en contour, coupé par le bas --- */
.footer-x__wordmark {
  margin: 0 0 -0.18em;
  padding-inline: 2vw;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 15.5vw, 15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  user-select: none;
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-x__pulse::after { animation: none; }
}

/* ---------- 13. Footer ---------- */
.site-footer {
  padding-block: clamp(24px, 4vw, 48px) calc(32px + env(safe-area-inset-bottom, 0px));
}

.site-footer__grid {
  display: grid;
  gap: 40px;
}

.site-footer__logo {
  display: inline-flex;
  margin-right: auto;
  opacity: 0.9;
  transition: opacity var(--dur) var(--ease-out);
}

.site-footer__logo:hover,
.site-footer__logo:focus-visible { opacity: 1; }

.site-footer__logo img {
  width: auto;
  height: clamp(56px, 7vw, 80px);
}

.site-footer__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-block: 24px;
}

.site-footer__top {
  display: grid;
  align-items: end;
  gap: 24px;
  width: 100%;
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
}

.site-footer__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 16px 24px;
}

.site-footer__cta-row .btn {
  margin-left: auto;
}

.site-footer__cols {
  display: grid;
  align-items: center;
  gap: 32px;
  width: 100%;
}

@media (min-width: 640px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 32px;
  }

  .site-footer__cta-row {
    align-items: flex-end;
  }

  .site-footer__cols {
    grid-template-columns: 1fr 2fr;
  }
}

.site-footer__cols > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-footer__contact {
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__label {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 35px;
}

@media (min-width: 900px) {
  .site-footer__links { flex-wrap: nowrap; }
  .site-footer__links a { white-space: nowrap; }
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__links a:hover {
  color: var(--white);
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
}

.footer-privacy {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}


/* ==========================================================================
   4. DIALOGUES (projet, vidéo, lightbox, confidentialité)
   ========================================================================== */

dialog::backdrop {
  background: rgba(6, 42, 43, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---------- Modale projet : panneau latéral ---------- */
.project-dialog {
  width: min(960px, 100vw);
  max-width: 100vw;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--text);
  overflow: hidden;
}

.project-dialog[open] {
  display: flex;
  animation: panel-in var(--dur) var(--ease-out);
}

.project-dialog__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.project-dialog__close {
  position: sticky;
  top: calc(16px + env(safe-area-inset-top, 0px));
  align-self: flex-end;
  margin: 16px 16px -64px 0;
  z-index: 5;
  flex-shrink: 0;
}

.project-dialog__content {
  display: grid;
  gap: 32px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) clamp(20px, 5vw, 64px) 40px;
}

.project-dialog__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 20px clamp(20px, 5vw, 64px) calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-light);
  background: var(--white);
}

.pd-head {
  display: grid;
  gap: 16px;
  padding-right: 64px;
}

.pd-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
}

.pd-title:focus { outline: none; }

.pd-type {
  font-size: var(--fs-small);
  color: var(--muted);
  font-weight: 600;
}

.pd-intro {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  font-weight: 500;
  max-width: 60ch;
}

.pd-blocks {
  display: grid;
  gap: 16px;
}

.pd-block {
  padding: 24px;
  border-radius: var(--radius-card-sm);
  background: var(--white);
  border: 1px solid var(--line-light);
}

.pd-block p + p { margin-top: 12px; }

.pd-block__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-h3);
  margin-bottom: 12px;
}

.pd-block__num {
  font-size: var(--fs-small);
  color: var(--red-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pd-list {
  display: grid;
  gap: 12px;
}

.pd-list li {
  position: relative;
  padding-left: 20px;
}

.pd-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.pd-media,
.media-group {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.pd-media { gap: 40px; }
.media-group > .video-facade,
.media-group > .story-grid,
.media-group > .site-grid,
.media-group > .gallery { width: 100%; }

.pd-sub {
  font-size: 1.25rem;
  line-height: 1.25;
}

.pd-sub--lg { font-size: var(--fs-h3); }

.pd-media p { color: var(--muted); max-width: 60ch; }

.story-grid,
.site-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .site-grid { grid-template-columns: repeat(3, 1fr); }
}

.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card-sm);
  background: var(--white);
  border: 1px solid var(--line-light);
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-card__body {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 16px;
}

.story-card__title { font-size: 1.125rem; }

.gallery-label {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--sand);
}

.gallery__btn img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--dur) var(--ease-out);
}

.gallery__btn:hover img { transform: scale(1.04); }

.gallery figcaption {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.gallery figcaption .credit { margin-top: 2px; }

.poster {
  width: min(100%, 360px);
}

.poster img {
  width: 100%;
  border-radius: var(--radius-img);
}

.pd-credits {
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.pd-credits .pd-sub { margin-bottom: 12px; }

.credits {
  display: grid;
  gap: 8px;
  font-size: var(--fs-small);
}

.credits > div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 3fr;
  gap: 12px;
}

.credits dt {
  font-weight: 700;
}

.credits dd { color: var(--muted); }

/* ---------- Modale vidéo ---------- */
.video-dialog {
  width: min(1100px, 92vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.video-dialog[open] { animation: fade-in var(--dur) var(--ease-out); }

.video-dialog__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: #000;
}

.video-dialog__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog__close {
  position: absolute;
  top: -60px;
  right: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  --focus-ring: var(--teal-light);
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 72px 72px 64px;
  border: 0;
  background: rgba(6, 42, 43, 0.97);
  color: var(--white);
}

.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade-in var(--dur-fast) var(--ease-out);
}

.lightbox__figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 1200px;
  width: 100%;
}

.lightbox__img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-img);
}

.lightbox__caption {
  font-size: var(--fs-small);
  text-align: center;
}

.lightbox__credit { color: rgba(255, 255, 255, 0.72); }

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__prev,
.lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

@media (max-width: 639px) {
  .lightbox { padding: 72px 12px 120px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 56px; transform: none; }
}

/* ---------- Confidentialité ---------- */
.privacy-dialog {
  width: min(640px, 92vw);
  padding: 40px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--text);
}

.privacy-dialog[open] { animation: fade-in var(--dur) var(--ease-out); }

.privacy-dialog .project-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.privacy-dialog__title {
  font-size: var(--fs-h3);
  margin-bottom: 16px;
}

.privacy-dialog__placeholder {
  padding: 20px;
  border: 1px dashed var(--teal);
  border-radius: var(--radius-img);
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 767px) {
  .project-dialog { width: 100vw; }
  .pd-head { padding-right: 56px; }
  .pd-block { padding: 20px; }
}


/* ==========================================================================
   5. ANIMATIONS
   ========================================================================== */

/* Révélation douce : n'agit que si JS est actif (classe .js sur <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Chapô révélé par un bloc rouge qui balaie le texte */
.wipe {
  position: relative;
  --wipe-color: var(--text);
  color: var(--wipe-color);
}

.bg-ink .wipe { --wipe-color: var(--white); }

.js .wipe {
  color: transparent;
}

.js .wipe::before {
  content: "";
  position: absolute;
  inset: -2px -4px;
  background: var(--red);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}

.js .wipe.is-in {
  animation: wipe-text 1100ms var(--ease-out) forwards;
}

.js .wipe.is-in::before {
  animation: wipe-block 1100ms var(--ease-out) forwards;
}

@keyframes wipe-block {
  0% { clip-path: inset(0 100% 0 0); }
  48% { clip-path: inset(0 0 0 0); }
  52% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

@keyframes wipe-text {
  0%, 49% { color: transparent; }
  50%, 100% { color: var(--wipe-color); }
}

@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes panel-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes underline-sweep {
  0% { background-size: 0% 3px; }
  100% { background-size: 100% 3px; }
}


/* ==========================================================================
   6. MOUVEMENT RÉDUIT : contenu affiché directement, aucune animation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__bg,
  .hero__video { animation: none; transform: none; }

  .js .reveal { opacity: 1; transform: none; }
  .js .wipe { color: var(--wipe-color); }
  .js .wipe::before { display: none; }

  .js .service-card { position: relative; top: auto; }
}
