/* ==========================================================================
   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);
  background: var(--cream);
  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);
}

/* Typographie de titres */
h1, h2, h3, h4, h5,
.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-family: var(--font-display);
  font-size: var(--fs-button);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  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__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  transition: background-color var(--dur-fast) var(--ease-out), transform 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);
  margin-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line-light);
}

.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-family: var(--font-display);
  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);
}

.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);
}

.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 {
  background: linear-gradient(to top, rgba(6, 42, 43, 0.85) 0%, rgba(6, 42, 43, 0.55) 45%, rgba(6, 42, 43, 0.3) 100%);
}

.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, 1fr) 320px;
  }
}

.hero__content {
  max-width: 820px;
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero__text {
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  background: rgba(6, 42, 43, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.hero-card__mail {
  font-weight: 600;
  font-size: 1.0625rem;
  justify-self: start;
  word-break: break-all;
}

.hero-card__thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--ink-2);
}

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

.hero-card__thumb:hover img { transform: scale(1.04); }

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

.hero-card__thumb-label {
  position: absolute;
  left: 12px;
  bottom: 8px;
  font-size: var(--fs-chip);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

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

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

/* ---------- 2. Introduction ---------- */
.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 / 5;
    object-position: 60% center;
  }
}

/* ---------- 3. What we do (cartes empilées) ---------- */
.services {
  padding-top: 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 ---------- */
.why {
  padding-top: 0;
}

.why__title {
  max-width: 22ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.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 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 380px;
  padding: 28px;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
}

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

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

.why-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.why-card--red {
  background: var(--red);
  color: var(--white);
}

.why-card--white {
  background: var(--white);
  border: 1px solid var(--line-light);
}

.why-card--white .why-card__icon { color: var(--teal); }
.why-card--white p { color: var(--muted); }

.why-card--photo {
  background: var(--ink);
  color: var(--white);
}

.why-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 42, 43, 0.7);
}

.why-card--photo .why-card__icon { color: var(--teal-light); }

/* ---------- 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__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;
}

/* ---------- 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);
}

.logo-row__item:hover img {
  filter: none;
  opacity: 1;
}

.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 {
  position: relative;
  padding-block: var(--section-pad);
}

.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;
}

.process.is-interactive .process__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.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; }

/* ---------- 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-family: var(--font-display);
  font-size: clamp(1.375rem, 4.2vw, 3.25rem);
  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;
}

/* ---------- 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__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__content .rule { width: 100%; }

.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__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; }
}
