/* ==========================================================================
   A LA TURQUE — feuille de style unique
   Langage visuel : grandes typographies, beaucoup de blanc, bandes alternées,
   angles à 28px, boutons pilule, aucune ombre.
   ========================================================================== */

/* ---------- Polices (auto-hébergées, aucun appel externe / RGPD-safe) ------ */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-Italic-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ------------------------------------------------------- */
:root {
  /* Encres */
  --ink: #1d1d1f;
  --ink-soft: #5c5c60;
  --ink-mute: #86868b;
  --hairline: #d6d6d6;

  /* Surfaces */
  --paper: #ffffff;
  --canvas: #f5f5f7;
  --canvas-warm: #f7f2ec;
  --wash: #e8e8ed;

  /* Accent unique — rouge turc assourdi, réservé aux actions */
  --accent: #c1272d;
  --accent-hover: #a51f24;
  --link: #a3211f;

  /* Typographie */
  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-kicker: 'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-text: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Rythme */
  --page: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --band: clamp(72px, 10vw, 120px);
  --radius: 28px;
}

/* ---------- Réinitialisation --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* height:auto neutralise l'attribut height des balises <img> (qui sert
   uniquement à réserver la place avant chargement) et laisse agir aspect-ratio */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: rgba(193, 39, 45, 0.16); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Structure ---------------------------------------------------- */
.band { padding: var(--band) 0; }
.band--gray { background: var(--canvas); }
.band--warm { background: var(--canvas-warm); }
.band--ink { background: var(--ink); color: #fff; }
.band--tight { padding: clamp(56px, 7vw, 84px) 0; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typographie -------------------------------------------------- */
.kicker {
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 20px;
}
.band--ink .kicker { color: rgba(255, 255, 255, 0.58); }

.display,
.h1 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(40px, 7.2vw, 84px);
}
.h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.1;
  font-size: clamp(32px, 4.6vw, 56px);
}
.h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 0;
  font-weight: 550;
  letter-spacing: -0.008em;
  line-height: 1.18;
  font-size: clamp(24px, 2.6vw, 32px);
}
.h4 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'SOFT' 100, 'WONK' 0;
  font-weight: 600;
  line-height: 1.25;
  font-size: 21px;
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 46ch;
}
.body { color: var(--ink-soft); }
.small { font-size: 14px; letter-spacing: -0.014em; color: var(--ink-mute); }
.section-head { max-width: 56ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 20px; }

/* ---------- Boutons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-size: 17px;
  letter-spacing: -0.022em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn--fill { background: var(--accent); color: #fff; }
.btn--fill:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(29, 29, 31, 0.28); color: var(--ink); }
.btn--ghost:hover { background: rgba(29, 29, 31, 0.05); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--wash); }
.btn--onink { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--onink:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { padding: 8px 17px; font-size: 14px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--link);
  text-decoration: none;
  font-size: 17px;
}
.arrow-link:hover { text-decoration: underline; }
.arrow-link::after { content: '\203A'; font-size: 1.15em; line-height: 1; }
.band--ink .arrow-link { color: #fff; }

/* ---------- Navigation --------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(250, 250, 252, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.nav__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'SOFT' 100;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
}
.nav__links a:hover { opacity: 1; }

.langs { display: flex; align-items: center; gap: 2px; }
.lang {
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.lang:hover { background: var(--wash); color: var(--ink); }
.lang[aria-pressed='true'] { color: var(--ink); background: var(--wash); }

.nav__toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  border-radius: 999px;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: block; order: 3; }
  .nav__links {
    order: 4;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fafafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { font-size: 17px; padding: 13px 0; width: 100%; }
  .nav__cta { display: none; }
}

/* ---------- Héros -------------------------------------------------------- */
.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}
.hero__head {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 54ch; margin: 0 auto; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 36px;
}

/* Éventail de visuels 4:5 sous le titre */
.fan {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-items: center;
  margin-top: clamp(44px, 6vw, 72px);
}
.fan figure { margin: 0; }
.fan img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: var(--canvas);
}
.fan figure:nth-child(odd) { transform: translateY(22px); }
.fan figure:nth-child(3) { transform: scale(1.07); z-index: 2; }
.fan figure:nth-child(3) img { border-radius: 24px; }

@media (max-width: 760px) {
  .fan { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fan figure:nth-child(n + 3) { display: none; }
  .fan figure:nth-child(odd) { transform: none; }
}

/* ---------- Bandeau de chiffres ------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.stat__value {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stat__label {
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: -0.012em;
  max-width: 22ch;
}
.stats__note { margin-top: 40px; max-width: 74ch; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cartes ------------------------------------------------------- */
.cards {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.band--gray .card, .band--warm .card { background: var(--paper); }
.band:not(.band--gray):not(.band--warm) .card { background: var(--canvas); }
.card__num {
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.card p { color: var(--ink-soft); font-size: 16px; }

/* Grande carte illustrée */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.feature {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
}
/* les fichiers feat-*.webp sont déjà recadrés sur la seule zone photo du slide */
.feature img {
  width: 100%;
  aspect-ratio: 20 / 11;
  object-fit: cover;
}
.feature__body { padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.feature__body p { color: var(--ink-soft); }
.feature__tag {
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Galerie défilante -------------------------------------------- */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  padding: 4px 0 24px;
  scrollbar-width: thin;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 999px; }
.gallery figure {
  margin: 0;
  flex: 0 0 clamp(190px, 22vw, 250px);
  scroll-snap-align: start;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: var(--canvas);
}
.gallery figcaption {
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 12px;
}

/* ---------- Derrière la page (portrait + réseaux) ------------------------ */
.signature {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.signature__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--canvas);
}
.signature__body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.signature__body .lead { max-width: 54ch; }

@media (max-width: 760px) {
  .signature { grid-template-columns: 1fr; justify-items: start; }
  .signature__photo { width: 150px; }
}

.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--canvas);
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.socials--sm a { width: 34px; height: 34px; background: transparent; color: var(--ink-mute); }
.socials--sm a:hover { background: transparent; color: var(--accent); transform: none; }
.socials--sm svg { width: 18px; height: 18px; }

/* ---------- Secteurs ----------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid rgba(29, 29, 31, 0.16);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  letter-spacing: -0.014em;
  color: var(--ink-soft);
}
.band--ink .pill { border-color: rgba(255, 255, 255, 0.24); color: rgba(255, 255, 255, 0.86); }

/* ---------- Offres ------------------------------------------------------- */
.offer { position: relative; }
.offer ul { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.offer li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  color: var(--ink-soft);
}
.offer li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Contact ------------------------------------------------------ */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__grid .lead { margin-top: 22px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact__meta { display: flex; flex-direction: column; gap: 22px; }
.contact__meta dt {
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 6px;
}
.contact__meta dd { margin: 0; font-size: 17px; }
.contact__meta a { color: #fff; }

/* ---------- Pied de page ------------------------------------------------- */
.footer { background: var(--canvas); padding: 56px 0 44px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }

/* ==========================================================================
   ANIMATIONS
   Rien n'est masqué tant que motion.js n'a pas pris la main : si le JavaScript
   ne s'exécute pas, la page reste entièrement lisible.
   ========================================================================== */

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.motion-ready .reveal.is-in { opacity: 1; transform: none; }

/* Titres : les mots montent les uns après les autres */
.w {
  display: inline-block;
  overflow: hidden;
  padding: 0.14em 0.03em 0.06em;
  margin: -0.14em -0.03em -0.06em;
  vertical-align: top;
}
.motion-ready .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.motion-ready [data-anim='words'].is-in .w > span { transform: none; }

/* Images qui se resserrent pendant la traversée de l'écran */
[data-anim='zoom'] { will-change: transform; }
.feature__media { overflow: hidden; border-radius: 0; }

/* Dérive verticale continue */
[data-parallax] { will-change: transform; }

/* Chiffres : léger décalage à l'apparition, en plus du comptage */
.motion-ready .stat { opacity: 0; transform: translateY(26px); }
.motion-ready .stat.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat__value { font-variant-numeric: tabular-nums; }

/* Cartes : montée avec léger retard en cascade */
.motion-ready .card,
.motion-ready .feature,
.motion-ready .pill {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.motion-ready .card.is-in,
.motion-ready .feature.is-in,
.motion-ready .pill.is-in { opacity: 1; transform: none; }

/* Boutons et liens : réaction au survol */
.btn { transform: translateZ(0); transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.gallery figure img, .fan img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery figure:hover img { transform: scale(1.03); }

/* Héros : entrée à l'ouverture de la page */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.motion-ready .hero__eyebrow,
.motion-ready .hero .lead,
.motion-ready .hero__actions {
  animation: riseIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.motion-ready .hero__eyebrow { animation-delay: 0.05s; }
.motion-ready .hero .lead { animation-delay: 0.55s; }
.motion-ready .hero__actions { animation-delay: 0.7s; }
.motion-ready .fan figure { animation: riseIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.motion-ready .fan figure:nth-child(1) { animation-delay: 0.80s; }
.motion-ready .fan figure:nth-child(2) { animation-delay: 0.88s; }
.motion-ready .fan figure:nth-child(3) { animation-delay: 0.96s; }
.motion-ready .fan figure:nth-child(4) { animation-delay: 1.04s; }
.motion-ready .fan figure:nth-child(5) { animation-delay: 1.12s; }

/* L'éventail garde son décalage : la dérive s'applique à l'image, pas au cadre */
.fan figure > span { display: block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal,
  .motion-ready .card,
  .motion-ready .feature,
  .motion-ready .pill,
  .motion-ready .stat { opacity: 1; transform: none; transition: none; }
  .motion-ready .w > span { transform: none; transition: none; }
  .motion-ready .hero__eyebrow,
  .motion-ready .hero .lead,
  .motion-ready .hero__actions,
  .motion-ready .fan figure { animation: none; }
  [data-anim='zoom'] { transform: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ---------- Galerie épinglée --------------------------------------------- */
/* La section reste fixée pendant que la galerie défile horizontalement.
   La hauteur du rail est calculée par motion.js d'après la largeur réelle. */
.pin { padding: 0; }
.pin__track { position: relative; }
.pin__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
/* dans un conteneur flex en colonne, « margin: 0 auto » de .wrap ferait
   rétrécir les blocs sur leur contenu : on rétablit la pleine largeur */
.pin__stage > .wrap { width: 100%; }
.pin__viewport { overflow: hidden; }
.pin__rail {
  display: flex;
  gap: 20px;
  will-change: transform;
}
.pin__rail figure { margin: 0; flex: 0 0 clamp(210px, 19vw, 270px); }
.pin__rail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: var(--canvas);
}
.pin__rail figcaption {
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 12px;
}
.pin__head { margin-bottom: clamp(28px, 4vw, 48px); }
.pin__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pin__bar {
  flex: 0 0 120px;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.pin__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
}

/* Sous 900 px de large, pas d'épinglage : simple défilement horizontal natif */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .pin { padding: var(--band) 0; }
  .pin__track { height: auto !important; }
  .pin__stage { position: static; height: auto; display: block; overflow: visible; }
  .pin__viewport { overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 20px; }
  .pin__rail { transform: none !important; }
  .pin__rail figure { flex-basis: clamp(190px, 55vw, 250px); }
  .pin__hint { display: none; }
}

/* ---------- Page mentions légales ---------------------------------------- */
.legal { max-width: 72ch; }
.legal h2 { margin-top: 48px; margin-bottom: 14px; }
.legal p { color: var(--ink-soft); margin-bottom: 14px; }
.legal a { color: var(--link); }

/* ==========================================================================
   MISE EN SCÈNE — vidéo, mosaïque, séquence, deck, mockup, curseur
   ========================================================================== */

/* ---------- Héros vidéo plein écran -------------------------------------- */
.hero--video {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 96px;
  color: #fff;
  background: var(--ink);
}
.hero__video { position: absolute; inset: 0; overflow: hidden; }
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* voile dégradé : la lisibilité vient du voile, jamais d'une image assombrie */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,14,13,0.62) 0%, rgba(15,14,13,0.28) 38%, rgba(15,14,13,0.34) 68%, rgba(15,14,13,0.72) 100%),
    radial-gradient(120% 80% at 50% 40%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35) 100%);
}
.hero--video .hero__head { position: relative; z-index: 2; }
.hero--video .lead { color: rgba(255,255,255,0.82); }
.hero--video .hero__eyebrow { color: rgba(255,255,255,0.7); }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero__cue i { display: block; width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,0.7), transparent); }
.motion-ready .hero__cue i { animation: cueDrop 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cueDrop { 0%,100% { transform: scaleY(0.3); opacity: .3 } 50% { transform: scaleY(1); opacity: 1 } }

/* ---------- Mosaïque vivante --------------------------------------------- */
.mosaic { position: relative; overflow: hidden; }
.mosaic__bg {
  position: absolute;
  inset: -12% 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  opacity: 0.3;
  padding: 0 14px;
}
.mosaic__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: mosaicUp var(--dur, 50s) linear infinite;
  animation-direction: var(--dir, normal);
  will-change: transform;
}
@keyframes mosaicUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
.mosaic__col img { width: 100%; height: auto; border-radius: 14px; }
.mosaic__fg { position: relative; z-index: 2; text-align: center; }
.mosaic__fg .lead { margin: 22px auto 0; }
.mosaic::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(80% 60% at 50% 50%, rgba(29,29,31,0.94) 20%, rgba(29,29,31,0.72) 100%);
}
@media (max-width: 760px) { .mosaic__bg { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mosaic__col { animation: none; } }

/* ---------- Séquence pilotée par le défilement ---------------------------- */
.seq { position: relative; background: var(--ink); color: #fff; }
.seq__track { position: relative; height: 240vh; }
.seq__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vh, 96px);
}
.seq__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seq__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,13,0.5) 0%, rgba(15,14,13,0.15) 45%, rgba(15,14,13,0.85) 100%);
}
/* dans un conteneur flex, « margin: 0 auto » de .wrap ferait rétrécir le bloc */
.seq__stage > .wrap,
.flip__stage > .wrap { width: 100%; }
.seq__fg { position: relative; z-index: 2; }
.seq__fg .kicker { color: rgba(255,255,255,0.6); }
.seq__caps { position: relative; min-height: 3.6em; max-width: 26ch; }
.seq__cap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.seq__cap.is-on { opacity: 1; transform: none; }
@media (max-width: 760px) { .seq__track { height: 220vh; } .seq__caps { max-width: none; } }

/* ---------- Formats : mockup + cartes ------------------------------------ */
.formats__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .formats__grid { grid-template-columns: 1fr; justify-items: center; } }

.phone { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phone__frame {
  position: relative;
  width: min(276px, 74vw);
  aspect-ratio: 9 / 19.5;
  border: 2px solid var(--ink);
  border-radius: 40px;
  padding: 9px;
  background: var(--ink);
  overflow: hidden;
}
.phone__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
  background: var(--canvas);
}
.phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  border-radius: 12px;
  background: var(--ink);
}
.phone__legend { max-width: 30ch; text-align: center; }

/* ---------- Carrousel déroulé (deck épinglé) ------------------------------ */
.flip { padding: 0; }
.flip__track { position: relative; height: 260vh; }
.flip__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 44px);
  overflow: hidden;
}
.flip__head { width: 100%; }
.flip__deck { position: relative; height: min(58vh, 520px); }
.flip__card {
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  width: min(41vh, 366px);
  will-change: transform, opacity;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.flip__card img { width: 100%; border-radius: 22px; background: var(--paper); }
.flip__counter {
  text-align: center;
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.flip__counter i { font-style: normal; margin: 0 6px; opacity: 0.5; }
.flip__counter span { color: var(--ink); }

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .flip { padding: var(--band) 0; }
  .flip__track { height: auto !important; }
  .flip__stage { position: static; height: auto; overflow: visible; }
  .flip__deck { height: auto; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 16px; }
  .flip__card { position: static; flex: 0 0 clamp(190px, 52vw, 240px); width: auto; transform: none !important; opacity: 1 !important; }
  .flip__counter { display: none; }
}

/* ---------- Mur de Reels -------------------------------------------------- */
.pin__rail--video figure { flex-basis: clamp(200px, 17vw, 250px); }
.pin__rail--video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
  background: var(--canvas);
  display: block;
}

/* ---------- Révélation par masque ---------------------------------------- */
.motion-ready [data-anim='mask'] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.motion-ready [data-anim='mask'].is-in { clip-path: inset(0 0 0 0); }

/* ---------- Curseur personnalisé ----------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, opacity 0.3s ease;
}
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 54px; height: 54px; background: rgba(193, 39, 45, 0.2); }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-anim='mask'] { clip-path: none; transition: none; }
  .seq__track { height: auto; }
  .seq__stage { position: static; height: auto; min-height: 60vh; }
  .seq__cap { position: static; opacity: 1; transform: none; }
  .seq__caps { min-height: 0; }
}

/* ---------- Barre de navigation par-dessus le héros vidéo ---------------- */
.nav.nav--onvideo {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav.nav--onvideo .nav__brand,
.nav.nav--onvideo .nav__links a { color: #fff; }
.nav.nav--onvideo .nav__toggle span { background: #fff; }
.nav.nav--onvideo .lang { color: rgba(255, 255, 255, 0.62); }
.nav.nav--onvideo .lang:hover,
.nav.nav--onvideo .lang[aria-pressed='true'] { color: #fff; background: rgba(255, 255, 255, 0.18); }
@media (max-width: 880px) {
  .nav.nav--onvideo.is-open { background: #fafafc; }
  .nav.nav--onvideo.is-open .nav__brand,
  .nav.nav--onvideo.is-open .nav__links a { color: var(--ink); }
  .nav.nav--onvideo.is-open .nav__toggle span { background: var(--ink); }
  .nav.nav--onvideo.is-open .lang { color: var(--ink-mute); }
}
