/* ==========================================================
   PIKLEAD · Feuille de style principale
   Charte : navy / gold / cream · Typo : Outfit
   ========================================================== */

:root {
  --navy: #1b1f2b;
  --navy-2: #232838;
  --navy-line: rgba(242, 242, 237, 0.12);
  --gold: #b6a06a;
  --gold-soft: #cdbb8c;
  --cream: #f2f2ed;
  --cream-2: #e9e8e0;
  --ink: #1b1f2b;
  --ink-soft: #4a4e5a;
  --white: #ffffff;
  --phone-frame: #2b2533;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8.5vw, 124px);
  --measure: 68ch;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--white); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding: var(--section) 0; }
.section--navy { background: var(--navy); color: var(--cream); }

/* ---------- Typographie ---------- */
.h-display {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h-section {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.section-lead { margin: 14px auto 0; max-width: 46ch; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.55; opacity: .78; }
.section-lead:not(.center) { margin-left: 0; }
.eyebrow {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--gold { color: var(--gold); font-size: 14px; margin-bottom: 18px; }

/* ---------- Boutons (bords francs, comme le site actuel) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  font-size: 16px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
  border: 1.5px solid transparent; border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--white); }
.btn--ghost-light { border-color: rgba(242,242,237,.45); color: var(--cream); }
.btn--ghost-light:hover { border-color: var(--cream); background: rgba(242,242,237,.06); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.wordmark { font-size: 40px; font-weight: 400; letter-spacing: -0.01em; line-height: 1; }
.logo--dark .wordmark { color: var(--navy); }
.logo--light .wordmark { color: var(--cream); }
.logo--gold .wordmark { color: var(--gold); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(27,31,43,.06);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(27,31,43,.06); }
.site-header__inner {
  max-width: 1440px; margin: 0 auto; height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo .logo img { height: 38px; }
.site-nav { display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); }
.site-nav > a:not(.btn) {
  font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 6px 0;
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav > a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav__cta { min-height: 52px; margin-left: clamp(0px, 6vw, 120px); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--navy); margin: 7px 0; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-header__logo .logo img { height: 30px; }
  .wordmark { font-size: 30px; }
  .burger { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid rgba(27,31,43,.08);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav > a:not(.btn) { padding: 16px 0; border-bottom: 1px solid rgba(27,31,43,.08); }
  .site-nav > a:not(.btn)::after { display: none; }
  .site-nav__cta { margin: 20px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--cream);
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
  padding-block: clamp(88px, 11vw, 150px);
}
.hero--small { min-height: 72vh; }
.hero__mark {
  position: absolute; left: clamp(-120px, 5vw, 160px); top: 50%;
  width: clamp(320px, 30vw, 580px); transform: translateY(-46%);
  fill: rgba(242,242,237,.028); pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero__title {
  font-size: clamp(34px, 4.7vw, 66px);
  font-weight: 500; line-height: 1.12; letter-spacing: 0.005em;
  text-transform: uppercase;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 0.32em;
}
.hero__rotator {
  position: relative; display: inline-grid; color: var(--gold);
  text-align: center; transition: width .5s var(--ease);
}
.hero__word { grid-area: 1 / 1; display: inline-block; }
.hero__word.is-out { animation: wordOut .55s var(--ease) forwards; }
.hero__word.is-in { animation: wordIn .65s var(--ease) both; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-0.45em); filter: blur(4px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.45em); filter: blur(4px); } }
.hero__sub {
  margin: clamp(20px, 2.4vw, 30px) auto 0; max-width: 34ch;
  font-size: clamp(18px, 1.9vw, 26px); font-weight: 300; line-height: 1.45; color: var(--cream);
  text-wrap: balance;
}
.hero__actions { margin-top: clamp(36px, 5vw, 64px); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) {
  .hero { min-height: 0; padding-block: 72px 80px; }
  .hero__title { flex-direction: column; align-items: center; font-size: clamp(32px, 9.4vw, 40px); }
  .hero__sub { font-size: 17px; }
  .hero__rotator { min-width: 0; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Deux leviers ---------- */
.levers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: center; }
.levers__intro p { margin-top: clamp(22px, 3vw, 36px); max-width: 40ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-soft); }
.levers__items { display: grid; gap: clamp(32px, 4vw, 48px); }
.lever { padding-top: 22px; border-top: 1px solid rgba(182,160,106,.45); }
.lever p { margin-top: 12px; max-width: 46ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; }
@media (max-width: 860px) { .levers__grid { grid-template-columns: 1fr; } }

/* ---------- Secteurs ---------- */
.sectors__grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.sector summary {
  list-style: none; cursor: default;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: clamp(15px, 1.3vw, 18px); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--navy-line);
}
.sector summary::-webkit-details-marker { display: none; }
.sector__chev { display: none; transition: transform .3s var(--ease); }
.sector li { padding: 6px 0; font-size: clamp(16px, 1.25vw, 18px); color: rgba(242,242,237,.88); }
@media (max-width: 860px) {
  .sectors__grid { grid-template-columns: 1fr; gap: 0; }
  .sector { border-top: 1px solid var(--navy-line); }
  .sector:last-child { border-bottom: 1px solid var(--navy-line); }
  .sector summary { cursor: pointer; padding: 20px 0; margin: 0; border-bottom: 0; }
  .sector__chev { display: block; }
  .sector[open] .sector__chev { transform: rotate(180deg); }
  .sector ul { padding-bottom: 18px; }
}

/* ---------- Marques ---------- */
.brands__grid { margin: clamp(32px, 3.7vw, 44px) auto 0; max-width: 992px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.brands__item { display: flex; align-items: center; justify-content: center; aspect-ratio: 248 / 158; min-width: 0; }
.brands__item img { width: var(--lw, 50%); height: auto; max-width: none; max-height: none; display: block; }
/* Taille de chaque logo, en % de sa case, réglée pour un poids visuel équilibré */
.brands__item img[src*="mirage-ceramica"] { --lw: 42.7%; }
.brands__item img[src*="tapisdesign"] { --lw: 50%; }
.brands__item img[src*="venezia"] { --lw: 52.8%; }
.brands__item img[src*="gis"] { --lw: 49.2%; }
.brands__item img[src*="feel-home"] { --lw: 54%; }
.brands__item img[src*="maison-dharmonie"] { --lw: 72.6%; }
.brands__item img[src*="medcarpet"] { --lw: 47.4%; }
.brands__item img[src*="andlight"] { --lw: 39.5%; }
.brands__fallback { font-size: clamp(18px, 1.8vw, 26px); font-weight: 500; letter-spacing: 0.04em; color: var(--navy); text-align: center; }
@media (max-width: 760px) { .brands__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cartes case study (disposition de l'ancien site : grand numéro, client, titre, image carrée, tags empilés) ---------- */
.work__grid { margin: clamp(48px, 6vw, 88px) auto 0; max-width: 920px; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 5.9vw, 64px); row-gap: 64px; }
.work__grid--1 { grid-template-columns: minmax(0, 300px); justify-content: center; }
.work__grid--2 { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.case-card { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--cream); }
.case-card--light { color: var(--ink); }
.case-card__num { font-size: clamp(46px, 5vw, 58px); font-weight: 400; line-height: 1; letter-spacing: 0; color: var(--gold); }
.case-card__client { margin-top: clamp(20px, 2.4vw, 26px); font-size: clamp(15px, 1.5vw, 17px); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.case-card__title { margin-top: clamp(14px, 1.7vw, 18px); font-size: clamp(22px, 2.3vw, 25px); line-height: 1.2; font-weight: 400; min-height: calc(3 * 1.2em); }
.case-card__media { display: block; margin-top: 16px; aspect-ratio: 1 / 1; overflow: hidden; background: rgba(127,127,127,.12); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.case-card:hover .case-card__media img { transform: scale(1.04); }
.case-card__tags { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.case-card__tags span { font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); padding: 6px 9px 5px; border: 1px solid var(--gold); line-height: 1.3; }
.case-card__more { display: none; }
@media (max-width: 960px) {
  .work__grid, .work__grid--2 { grid-template-columns: minmax(0, 420px); justify-content: center; row-gap: 72px; }
  .case-card__title { min-height: 0; }
}

/* ---------- CTA ---------- */
.cta { background: var(--cream); }
.cta__lead { margin: 16px auto 36px; max-width: 48ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-soft); }
.cta__contacts { margin-top: 40px; display: flex; justify-content: center; gap: 12px clamp(24px, 5vw, 64px); flex-wrap: wrap; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.cta__contacts a:hover { color: var(--gold); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: var(--cream); padding: clamp(56px, 7vw, 80px) 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; }
.site-footer .logo img { height: 40px; }
.tagline { margin-top: 18px; font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.site-footer__nav, .site-footer__contact { display: flex; flex-direction: column; gap: 18px; letter-spacing: 0.14em; }
.site-footer__nav a { text-transform: uppercase; font-size: 15px; }
.site-footer a:hover { color: var(--gold); }
.site-footer__social { display: flex; gap: 24px; margin-top: 4px; }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 14px; letter-spacing: 0.06em; color: rgba(242,242,237,.65); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   CASE STUDY
   ========================================================== */
.case-hero { background: var(--navy); color: var(--cream); padding-block: clamp(40px, 5vw, 72px) clamp(56px, 6vw, 88px); }
.case-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.case-hero__back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .7; }
.case-hero__back:hover { opacity: 1; color: var(--gold); }
.case-hero__kicker { margin-top: clamp(28px, 4vw, 48px); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.case-hero__client { margin-top: 16px; min-height: 40px; display: flex; align-items: center; }
.case-hero__client img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.case-hero__client-name { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: 0.06em; color: var(--gold); }
.case-hero__title { margin-top: 18px; max-width: 18ch; font-size: clamp(32px, 4vw, 56px); line-height: 1.1; font-weight: 400; letter-spacing: -0.005em; }
.case-hero__meta { margin: 0; display: grid; gap: 28px; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--navy-line); }
.case-hero__meta dt { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.case-hero__meta dd { margin: 0; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border: 1px solid rgba(242,242,237,.4); }
@media (max-width: 860px) {
  .case-hero__grid { grid-template-columns: 1fr; }
  .case-hero__meta { padding-left: 0; border-left: 0; border-top: 1px solid var(--navy-line); padding-top: 28px; }
}

.case-section--alt { background: var(--white); }
.case-h {
  display: flex; align-items: baseline; gap: 0.5em;
  font-size: clamp(26px, 3vw, 42px); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.case-h span { color: var(--gold); font-weight: 400; }
.case-h i { font-style: normal; font-weight: 200; opacity: .45; }
.case-h--gold { color: var(--gold); }
.case-text { max-width: var(--measure); font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.7; }
.case-text p + p { margin-top: 1em; }
.case-text strong { font-weight: 600; }
.case-text--lead { max-width: 52ch; font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; line-height: 1.5; margin-bottom: clamp(36px, 4.5vw, 64px); }
.case-text--lead strong { font-weight: 500; }

.strategy-block { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(27,31,43,.1); }
.case-text--lead + .strategy-block { margin-top: 0; }
.strategy-block__title { display: flex; align-items: baseline; gap: 14px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.25; margin-bottom: 14px; }
.strategy-block__title span { flex: none; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; font-size: .78em; color: var(--gold); border: 1px solid var(--gold); font-weight: 400; transform: translateY(-.1em); }

.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px); }
.result { padding-top: 20px; border-top: 1px solid rgba(182,160,106,.5); }
.result h3 { font-size: clamp(16px, 1.35vw, 19px); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold); line-height: 1.3; }
.result p { margin-top: 12px; font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.65; color: rgba(242,242,237,.88); }
@media (max-width: 1000px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .results { grid-template-columns: 1fr; } }

.others { background: var(--cream); }

/* ---------- Blocs médias ---------- */
.media { margin-top: clamp(32px, 4vw, 52px); }
.media + .media { margin-top: clamp(28px, 3vw, 44px); }
.media img { width: 100%; background: var(--cream-2); }
.media--image img { max-height: 760px; object-fit: cover; }
.media--gallery { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(12px, 1.6vw, 22px); }
.media--gallery img { height: 100%; object-fit: cover; }
.media--posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.media--posts img { aspect-ratio: 4 / 5; object-fit: cover; }
.media--ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.media--ba figure { margin: 0; padding: 0 clamp(12px, 2vw, 32px); text-align: center; }
.media--ba figure + figure { border-left: 1px solid rgba(27,31,43,.25); }
.media--ba figcaption { font-size: clamp(16px, 1.4vw, 20px); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.media--ba img { background: transparent; }
.media__caption { margin-top: 14px; font-size: 15px; letter-spacing: 0.04em; color: var(--ink-soft); }
.media--film video { width: 100%; aspect-ratio: 16 / 9; background: var(--navy); object-fit: cover; }
@media (max-width: 640px) {
  .media--gallery { grid-template-columns: 1fr; }
  .media--posts { grid-template-columns: repeat(2, 1fr); }
  .media--ba { grid-template-columns: 1fr; gap: 28px; }
  .media--ba figure + figure { border-left: 0; border-top: 1px solid rgba(27,31,43,.2); padding-top: 28px; }
}

/* ---------- Cadre iPhone (couche au-dessus de la vidéo) ---------- */
.media--phones {
  display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px); max-width: 1120px;
}
.phone {
  position: relative; margin: 0;
  aspect-ratio: 9 / 19.2;
  border-radius: 13% / 6.2%;
  padding: 0;
  container-type: inline-size;
  background: var(--phone-frame);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08), 0 18px 40px -18px rgba(27,31,43,.45);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 1.6%; background: var(--phone-frame); border-radius: 2px;
}
.phone::before { left: -1.2%; top: 18%; height: 7%; box-shadow: 0 260% 0 var(--phone-frame); }
.phone::after { right: -1.2%; top: 24%; height: 12%; }
.phone__screen {
  position: absolute; inset: 3.6cqw; overflow: hidden;
  border-radius: 10% / 4.8%;
  background: #0f1118;
}
.phone__media { width: 100%; height: 100%; object-fit: cover; background: #0f1118; }
.phone__island {
  position: absolute; top: 4.6%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.2%; border-radius: 99px; background: #08090c; z-index: 2;
}
.phone__label { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; font-size: clamp(22px, 2.6vw, 34px); color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
@media (max-width: 900px) {
  .media--phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    scrollbar-width: thin;
  }
  .phone { scroll-snap-align: start; }
}
@media (max-width: 480px) { .media--phones { grid-auto-columns: 62%; } }

/* Média absent : écran neutre (le nom du fichier n'apparaît qu'en local) */
.is-missing { opacity: 1; }
img.is-missing { min-height: 160px; object-position: -9999px; }
.show-missing .is-missing-wrap { position: relative; }
.missing-note {
  position: absolute; inset: auto 8px 8px 8px; padding: 6px 8px;
  font-size: 11px; line-height: 1.3; word-break: break-all;
  background: rgba(182,160,106,.92); color: var(--navy); z-index: 3;
}

/* ---------- Pages légales ---------- */
.legal h1 { margin-bottom: 12px; }
.legal__date { color: var(--ink-soft); font-size: 15px; margin-bottom: 40px; }
.legal h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__word.is-in, .hero__word.is-out { animation: none; }
}

/* ==========================================================
   CASE STUDY · disposition v2
   En bref dans l'en-tête · sous-navigation · colonnes
   ========================================================== */
html:has(.case-subnav) { scroll-padding-top: calc(var(--header-h) + 64px); }

/* En bref : les résultats visibles dès l'arrivée */
.case-glance {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  display: grid; grid-template-columns: auto 1fr; gap: 12px clamp(24px, 4vw, 56px); align-items: baseline;
}
.case-glance__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,242,237,.6); }
.case-glance__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px clamp(16px, 3vw, 40px); }
.case-glance__list a {
  display: block; font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; line-height: 1.3;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--gold);
  text-wrap: balance;
}
.case-glance__list a:hover { color: var(--gold-soft); }
@media (max-width: 900px) {
  .case-glance { grid-template-columns: 1fr; }
  .case-glance__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sous-navigation collante */
.case-subnav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--cream); border-bottom: 1px solid rgba(27,31,43,.08);
}
.case-subnav__inner { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 48px); min-height: 56px; overflow-x: auto; scrollbar-width: none; }
.case-subnav__inner::-webkit-scrollbar { display: none; }
.case-subnav__client { margin-right: auto; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.case-subnav a {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 17px 0;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.case-subnav a span { color: var(--gold); letter-spacing: 0.06em; }
.case-subnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.case-subnav a:hover, .case-subnav a.is-active { color: var(--ink); }
.case-subnav a.is-active::after { transform: scaleX(1); }
@media (max-width: 560px) {
  .case-subnav__client { display: none; }
  .case-subnav__inner { justify-content: space-between; gap: 16px; }
  .case-subnav a { font-size: 12px; letter-spacing: 0.1em; }
}

/* Challenge : texte et image côte à côte */
.case-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case-split--solo { grid-template-columns: minmax(0, 1fr); }
.case-split__media .media { margin-top: 0; }
.case-split__media .media--image img { max-height: 620px; }
.stake { margin-top: clamp(24px, 3vw, 36px); padding: 22px 24px 24px; background: var(--navy); color: var(--cream); }
.stake__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.stake__text { margin-top: 10px; font-size: clamp(18px, 1.55vw, 21px); font-weight: 300; line-height: 1.5; }

/* Stratégie : axe en deux colonnes, texte collant */
.strategy-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4.5vw, 72px); align-items: start;
  margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(27,31,43,.1);
}
.case-text--lead + .strategy-row { margin-top: 0; }
.strategy-row--solo { grid-template-columns: minmax(0, 1fr); }
.strategy-row__sticky { position: sticky; top: calc(var(--header-h) + 56px + 32px); }
.strategy-row__media .media:first-child { margin-top: 0; }
.strategy-row__media .media--image img { max-height: 620px; }
@media (min-width: 901px) {
  .strategy-row__media .media--phones { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.6vw, 24px); max-width: none; }
  .strategy-row__media .phone { flex: 0 0 calc((100% - (var(--cols, 4) - 1) * clamp(14px, 1.6vw, 24px)) / var(--cols, 4)); max-width: 210px; }
}
@media (max-width: 900px) {
  .case-split, .strategy-row { grid-template-columns: minmax(0, 1fr); }
  .strategy-row__sticky { position: static; }
}
/* Un seul téléphone parmi d'autres médias : centré, taille confortable */
.media--phones-1 { display: flex; justify-content: center; overflow: visible; margin-right: 0; padding-right: 0; }
.media--phones-1 .phone, .strategy-row__media .media--phones-1 .phone { flex: none; width: min(300px, 72vw); max-width: none; }

/* Axe illustré par un seul téléphone (montage en défilement) : texte et téléphone face à face, côtés alternés */
.strategy-row--phone { grid-template-columns: minmax(0, 560px) minmax(0, 340px); justify-content: center; align-items: center; column-gap: clamp(40px, 9vw, 150px); }
.strategy-row--phone .strategy-row__sticky { position: static; max-width: 560px; }
.strategy-row--phone .media--phones { display: block; max-width: none; margin: 0; padding: 0; overflow: visible; }
.strategy-row--phone .phone, .strategy-row--phone .media--phones-1 .phone { width: 100%; max-width: 340px; margin-inline: auto; }
.strategy-row--flip { grid-template-columns: minmax(0, 340px) minmax(0, 560px); }
.strategy-row--flip .strategy-row__text { order: 2; }
.strategy-row--flip .strategy-row__media { order: 1; }
@media (max-width: 900px) {
  .strategy-row--phone, .strategy-row--flip { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .strategy-row--flip .strategy-row__text { order: 0; }
  .strategy-row--phone .phone, .strategy-row--phone .media--phones-1 .phone { width: min(300px, 72vw); }
}

/* ---------- Carrousel (stories, posts) : 2 visuels entiers, les voisins dépassent sur les bords ---------- */
.carousel { --gap: clamp(10px, 1.2vw, 16px); container-type: inline-size; position: relative; }
.carousel__track {
  --w: calc((100cqw - 3 * var(--gap)) / 2.7);
  display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: calc(var(--w) * .35 + var(--gap));
  scrollbar-width: none; cursor: grab; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.carousel__item { flex: 0 0 var(--w); margin: 0; scroll-snap-align: start; aspect-ratio: var(--ratio, 4 / 5); overflow: hidden; background: #e7e5dd; }
.carousel__item img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.carousel__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(27,31,43,.25); background: transparent; color: var(--navy);
  transition: background .2s, color .2s, border-color .2s;
}
.carousel__btn:hover, .carousel__btn:focus-visible { background: var(--navy); color: var(--cream); border-color: var(--navy); }
@container (max-width: 520px) { .carousel__track { --w: calc((100cqw - 2 * var(--gap)) / 1.7); } }

/* Présentation commerciale : catalogue fermé + catalogue ouvert côte à côte, sans fond */
.strategy-row--stack { grid-template-columns: minmax(0, 1fr); row-gap: clamp(28px, 4vw, 48px); }
.strategy-row--stack .strategy-row__sticky { position: static; max-width: 720px; }
.media--catalogue { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 5vw, 80px); }
.media--catalogue img { display: block; height: auto; object-fit: contain; background: none !important; box-shadow: none; border-radius: 0; }
.media--catalogue img:first-child { width: 30%; }
.media--catalogue img:last-child { width: 62%; }
@media (max-width: 760px) {
  .media--catalogue { flex-direction: column; }
  .media--catalogue img:first-child { width: 78%; }
  .media--catalogue img:last-child { width: 100%; }
}

/* Blocs pleine largeur (bord à bord) sous un axe stratégique : carrousels, visuel packaging */
.strategy-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(32px, 4vw, 56px); }
.strategy-bleed .media { margin-top: 0; }
.strategy-bleed--image .media--bleed img { width: 100%; max-height: none; height: auto; object-fit: contain; background: none; display: block; }
.carousel--bleed .carousel__track {
  --w: calc((100cqw - 5 * var(--gap)) / 4.7);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 4%, #000 12%, #000 88%, rgba(0,0,0,.35) 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 4%, #000 12%, #000 88%, rgba(0,0,0,.35) 96%, transparent 100%);
}
@container (max-width: 520px) { .carousel--bleed .carousel__track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); } }
.carousel--bleed .carousel__nav { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@container (max-width: 1100px) { .carousel--bleed .carousel__track { --w: calc((100cqw - 4 * var(--gap)) / 3.7); } }
@container (max-width: 760px) { .carousel--bleed .carousel__track { --w: calc((100cqw - 3 * var(--gap)) / 2.7); } }
@container (max-width: 520px) { .carousel--bleed .carousel__track { --w: calc((100cqw - 2 * var(--gap)) / 1.7); } }
