/* ============================================================
   TITOUAN ROUX SOUMY — Design system v5 « Éditorial jaune »
   Noir chaud, jaune franc, capitales massives, ruptures ivoire.
   Tous les réglages sont dans :root.
   ============================================================ */

:root {
  /* — Sombre ————————————————————————————————— */
  --bg:        #0e0d0b;
  --bg-2:      #141210;
  --surface:   #1a1714;
  --line:      #272420;
  --line-2:    #3a3630;

  --txt:       #f7f4ee;
  --txt-2:     #a8a299;
  --txt-3:     #767066;

  /* — Clair (sections de rupture) ————————————— */
  --paper:     #f3efe6;
  --paper-2:   #ffffff;
  --paper-ln:  #ded6c7;
  --ink:       #141210;
  --ink-2:     #4f483f;
  --ink-3:     #7b7467;

  /* — Jaune ——————————————————————————————————— */
  --ac:        #ffd400;
  --ac-2:      #ffe14d;
  --ac-ink:    #0e0d0b;

  /* — Typographie ———————————————————————————— */
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-display: clamp(3.1rem, 11vw, 8.5rem);
  --fs-h1:      clamp(2.6rem, 8vw, 5.5rem);
  --fs-h2:      clamp(2rem, 4.6vw, 3.4rem);
  --fs-h3:      clamp(1.15rem, 1.7vw, 1.4rem);
  --fs-lead:    clamp(1.05rem, 1.4vw, 1.22rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.75rem;

  --lh-body: 1.68;
  --ls-eyebrow: 0.2em;
  --ls-tight: -0.035em;

  /* — Espace ————————————————————————————————— */
  --gutter:     clamp(18px, 5vw, 56px);
  --max:        1280px;
  --max-text:   60ch;
  --sp-section: clamp(64px, 9vw, 136px);
  --sp-block:   clamp(32px, 5vw, 60px);

  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 70px;
}

/* ============================================================
   BASE
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: var(--ls-tight); font-weight: 800; }

::selection { background: var(--ac); color: var(--ac-ink); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: var(--max);
  margin-inline: auto; padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grain {
  position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(14, 13, 11, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-logo img { height: 24px; width: auto; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav-link {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--txt-2); padding-block: 6px; position: relative;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--ac); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { color: var(--txt); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--ac); }
.nav-link.is-active::after { transform: scaleX(1); }

.btn-nav {
  padding: 11px 18px; background: var(--ac); color: var(--ac-ink);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: var(--radius);
}

.burger {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px; margin-right: -12px;
  background: none; border: 0; cursor: pointer;
  color: var(--txt); font-family: var(--font);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.burger i { display: block; width: 22px; }
.burger i span { display: block; height: 2px; background: var(--ac); margin: 5px 0; transition: transform 0.35s var(--ease), opacity 0.25s; }
.burger.is-open i span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open i span:nth-child(2) { opacity: 0; }
.burger.is-open i span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(2.1rem, 11vw, 3rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: var(--ls-tight);
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.mobile-menu a::before {
  content: attr(data-n); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--ac);
}
.mobile-menu .mm-foot {
  margin-top: 32px; border: 0; padding: 0;
  font-size: var(--fs-sm); font-weight: 500; text-transform: none;
  letter-spacing: 0; color: var(--ac);
}

/* Barre d'action fixe, mobile uniquement */
.callbar {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 98;
  background: var(--ac); color: var(--ac-ink);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 10px 16px;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.callbar a + a { border-left: 1px solid rgba(14,13,11,0.25); }
.callbar-grid { display: grid; grid-template-columns: 1fr 1fr; }

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 14px 26px;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: transparent; color: var(--txt); cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { border-color: var(--ac); color: var(--ac); }
.btn .arw { transition: transform 0.3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn-solid { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.btn-solid:hover { background: var(--ac-2); border-color: var(--ac-2); color: var(--ac-ink); }

.link-u {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ac); padding-bottom: 4px;
  border-bottom: 2px solid var(--ac);
  transition: gap 0.3s var(--ease);
}
.link-u:hover { gap: 14px; }

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(44px, 6vw, 84px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--ac);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--ac); flex: none; }

.sec-title {
  font-size: var(--fs-h2); text-transform: uppercase; margin-top: 18px;
}
.sec-title .thin { font-weight: 400; color: var(--txt-2); }
.sec-title .mark { background: var(--ac); color: var(--ac-ink); padding: 0 .1em; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; margin-bottom: var(--sp-block);
}

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--txt-2); max-width: var(--max-text); }
.body-txt { color: var(--txt-2); max-width: var(--max-text); }
.body-txt + .body-txt { margin-top: 18px; }
.body-txt strong, .lead strong { color: var(--txt); font-weight: 600; }

.split { display: grid; grid-template-columns: 0.46fr 1fr; gap: clamp(26px, 5vw, 80px); align-items: start; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: calc(var(--nav-h) + 32px) clamp(36px, 6vw, 72px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  /* L'original est noir sur blanc : inversé pour vivre sur fond sombre. */
  filter: invert(1) grayscale(1) contrast(1.1) brightness(0.6);
  opacity: 0.3;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 3%, rgba(14,13,11,0.5) 50%, rgba(14,13,11,0.85) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-title {
  font-size: var(--fs-display);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-top: 20px;
}
.hero-title span { display: block; }
.hero-title .mark { background: var(--ac); color: var(--ac-ink); padding: 0 0.1em; display: inline-block; }
.hero-title .out { -webkit-text-stroke: 2px var(--txt); color: transparent; }

.hero-sub { margin-top: clamp(22px, 3vw, 32px); font-size: var(--fs-lead); line-height: 1.55; color: var(--txt-2); max-width: 46ch; }
.hero-sub strong { color: var(--txt); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 38px); }

.hero-lower { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(22px, 5vw, 80px); flex-wrap: wrap; margin-top: clamp(24px, 3.5vw, 44px); }
.hero-lower .hero-sub, .hero-lower .hero-cta { margin-top: 0; }

.hero-foot {
  display: flex; gap: 10px 28px; flex-wrap: wrap;
  margin-top: clamp(26px, 4vw, 42px); padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-3);
}
.hero-foot span { display: inline-flex; align-items: center; gap: 9px; }
.hero-foot span::before { content: ""; width: 5px; height: 5px; background: var(--ac); flex: none; }

/* Bandeau jaune */
.strip {
  background: var(--ac); color: var(--ac-ink);
  padding-block: 13px;
  font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap;
}
.strip .wrap { display: flex; gap: 18px; }

/* En-tête des pages intérieures */
.page-hero { padding-block: calc(var(--nav-h) + clamp(44px, 9vw, 110px)) clamp(36px, 6vw, 72px); }
.page-title { font-size: var(--fs-h1); text-transform: uppercase; margin-top: 16px; }
.page-title .mark { background: var(--ac); color: var(--ac-ink); padding: 0 0.1em; }
.page-lead { margin-top: 22px; }

/* ============================================================
   REPÈRES CHIFFRÉS
   ============================================================ */

.stats {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 12px clamp(26px, 4vw, 54px);
  padding-block: clamp(22px, 3vw, 34px);
  border-block: 1px solid var(--line);
}
.stats li { display: inline-flex; align-items: baseline; gap: 11px; }
.stats b { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--ac); letter-spacing: var(--ls-tight); }
.stats span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-3); }

/* ============================================================
   SECTION CLAIRE (rupture ivoire)
   ============================================================ */

.band-light {
  background: var(--paper); color: var(--ink);
  padding-block: var(--sp-section);
}
.band-light .sec-title, .band-light h2, .band-light h3 { color: var(--ink); }
.band-light .lead, .band-light .body-txt { color: var(--ink-2); }
.band-light .eyebrow { color: var(--ink); }
.band-light .eyebrow::before { background: var(--ink); }
.band-light .btn { border-color: var(--ink); color: var(--ink); }
.band-light .btn:hover { background: var(--ink); color: var(--paper); }
.band-light .btn-solid { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.band-light .btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.band-light .link-u { color: var(--ink); border-color: var(--ac); }

/* Cartes à grand numéro */
.ncards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); margin-top: var(--sp-block); }
.ncard {
  background: var(--paper-2); border: 1px solid var(--paper-ln);
  border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ncard:hover { transform: translateY(-4px); box-shadow: 0 14px 0 -6px var(--ac); }
.ncard .n {
  font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1;
  color: var(--ac); -webkit-text-stroke: 1px var(--ink);
}
.ncard h3 { margin-top: 16px; font-size: var(--fs-h3); text-transform: uppercase; }
.ncard p { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }

/* ============================================================
   PROJETS — TUILES
   ============================================================ */

.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 26px); }
.work--3 { grid-template-columns: repeat(3, 1fr); }
.work--hero { grid-template-columns: 1.45fr 1fr; }

.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--surface);
  aspect-ratio: 16 / 11;
}
.tile--tall { aspect-ratio: 4 / 5; }
.tile--sq { aspect-ratio: 1 / 1; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}
.tile.contain img { object-fit: contain; padding: 12%; }
.tile:hover img { transform: scale(1.05); filter: saturate(1) contrast(1.05); }

.tile figcaption, .tile .cap {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(to top, rgba(14,13,11,0.94) 12%, rgba(14,13,11,0.55) 60%, transparent);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.tile h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); text-transform: uppercase; color: var(--txt); }
.tile .st {
  flex: none; font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac);
}
.tile .meta { margin-top: 8px; font-size: var(--fs-sm); color: var(--txt-2); line-height: 1.5; max-width: 44ch; }

/* ============================================================
   FICHES PROJET
   ============================================================ */

.entry {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(26px, 4.4vw, 72px); align-items: center;
  padding-block: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.entry:first-of-type { border-top: 0; padding-top: 0; }
.entry:last-of-type { border-bottom: 1px solid var(--line); }
.entry--flip { grid-template-columns: 1fr 1.15fr; }
.entry--flip .entry-media { order: 2; aspect-ratio: 4 / 5; }

.entry-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 5 / 4; background: var(--surface); }
.entry-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.04); transition: transform 0.9s var(--ease), filter 0.5s var(--ease); }
.entry-media.contain img { object-fit: contain; padding: 11%; }
.entry:hover .entry-media img { transform: scale(1.03); filter: saturate(1); }

.entry-index { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-3); }
.entry-index b { color: var(--ac); font-weight: 800; }
.entry-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); text-transform: uppercase; margin-top: 14px; }
.entry-body .body-txt { margin-top: 18px; }
.entry-body .btn, .entry-body .link-u { margin-top: 26px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--txt-3); padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px;
}
.tag--on { color: var(--ac-ink); background: var(--ac); border-color: var(--ac); font-weight: 800; }

/* ============================================================
   DUO (texte + image)
   ============================================================ */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.duo--flip .duo-media { order: -1; }
.duo-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--surface); }
.duo-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.04); }
.duo-body > * + * { margin-top: 20px; }
.duo-body .sec-title { margin-top: 16px; }

/* ============================================================
   LISTE TARIFÉE
   ============================================================ */

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 48px 1fr 0.95fr auto;
  gap: 22px; align-items: baseline;
  padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}
.row:hover { background: var(--bg-2); }
.row-num { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; color: var(--ac); }
.row-title { font-size: var(--fs-h3); text-transform: uppercase; }
.row-desc { color: var(--txt-2); font-size: var(--fs-sm); line-height: 1.6; }
.row-price { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 800; white-space: nowrap; text-align: right; color: var(--ac); }
.row-price small { display: block; margin-top: 5px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.04em; color: var(--txt-3); }

/* ============================================================
   FORMULES
   ============================================================ */

.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 26px); }
.offer {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
  display: flex; flex-direction: column;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.offer:hover { border-color: var(--line-2); background: var(--bg-2); }
.offer--featured { border-color: var(--ac); background: var(--bg-2); }
.offer-kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ac); }
.offer h3 { margin-top: 16px; font-size: var(--fs-h3); text-transform: uppercase; }
.offer-price { margin-top: 14px; font-size: clamp(2.1rem, 3.4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: var(--ls-tight); }
.offer-list { margin-top: 24px; display: grid; gap: 11px; }
.offer-list li { display: flex; gap: 11px; font-size: var(--fs-sm); color: var(--txt-2); line-height: 1.55; }
.offer-list li::before { content: "—"; color: var(--ac); flex: none; }
.offer .btn { margin-top: 30px; align-self: flex-start; }

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline { border-top: 1px solid var(--line); }
.tl {
  display: grid; grid-template-columns: 136px 1fr 0.9fr;
  gap: clamp(16px, 3vw, 44px);
  padding-block: clamp(26px, 3.6vw, 44px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}
.tl:hover { background: var(--bg-2); }
.tl-year { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac); padding-top: 5px; }
.tl-main h3 { font-size: var(--fs-h3); text-transform: uppercase; }
.tl-role { margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-3); }
.tl-main p { margin-top: 14px; color: var(--txt-2); font-size: var(--fs-sm); line-height: 1.7; }
.tl-media { align-self: start; overflow: hidden; border-radius: var(--radius); }
.tl-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(0.85); transition: filter 0.5s var(--ease), transform 0.8s var(--ease); }
.tl:hover .tl-media img { filter: saturate(1); transform: scale(1.03); }
.tl-media.contain img { object-fit: contain; padding: 7%; background: var(--surface); }

/* Logos fournis sur fond blanc */
.img-inv img { filter: invert(1) grayscale(1) brightness(0.95) !important; }

/* ============================================================
   CONTACT ET CTA
   ============================================================ */

.contact-title { font-size: var(--fs-h1); text-transform: uppercase; margin-top: 16px; max-width: 14ch; }
.contact-title .mark { background: var(--ac); color: var(--ac-ink); padding: 0 0.1em; }

.contact-mail {
  display: inline-block; margin-top: clamp(26px, 3.4vw, 40px);
  font-size: clamp(1.1rem, 2.4vw, 1.85rem); font-weight: 700;
  letter-spacing: -0.02em; word-break: break-word;
  padding-bottom: 8px; border-bottom: 3px solid var(--ac);
  transition: color 0.3s var(--ease);
}
.contact-mail:hover { color: var(--ac); }

.contact-side { display: grid; gap: 24px; align-content: start; }
.contact-side dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ac); }
.contact-side dd { margin: 8px 0 0; color: var(--txt-2); }
.contact-side dd a:hover { color: var(--txt); }

.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.cta-band p { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: var(--ls-tight); max-width: 22ch; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 60px); padding-block: clamp(40px, 5vw, 64px); }
.footer-logo img { height: 26px; width: auto; }
.footer-note { margin-top: 18px; color: var(--txt-3); font-size: var(--fs-sm); max-width: 34ch; line-height: 1.65; }
.footer-col h4 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ac); }
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; }
.footer-col a { font-size: var(--fs-sm); color: var(--txt-2); }
.footer-col a:hover { color: var(--txt); }
.footer-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-3);
}

/* ============================================================
   APPARITIONS
   ============================================================ */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .ncards { grid-template-columns: 1fr 1fr; }
  .ncards > *:last-child { grid-column: 1 / -1; }
  .work--3, .work--hero { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 40px 1fr auto; }
  .row-desc { grid-column: 2 / -1; grid-row: 2; margin-top: 8px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .tl { grid-template-columns: 112px 1fr; }
  .tl-media { grid-column: 2; }
  .entry, .entry--flip { grid-template-columns: 1fr 1fr; }
}

/* ——— MOBILE ———
   Densité resserrée, typo plus forte, images pleine largeur et en couleur. */
@media (max-width: 860px) {
  :root {
    --nav-h: 60px;
    --sp-section: clamp(52px, 11vw, 72px);
    --sp-block: 28px;
    --fs-body: 1.0625rem;
    --fs-sm: 1rem;
    --fs-lead: 1.125rem;
    --fs-h3: 1.22rem;
    --max-text: 100%;
  }

  body { padding-bottom: 54px; } /* place pour la barre d'action */

  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .callbar { display: block; }
  .callbar-grid { display: grid; }

  .hero { min-height: 92svh; padding-bottom: 36px; }
  .hero-title { font-size: clamp(3.2rem, 15vw, 5rem); line-height: 0.86; }
  .hero-title .out { -webkit-text-stroke-width: 1.5px; }
  .hero-sub { font-size: 1.125rem; max-width: none; }
  .hero-lower { display: block; }
  .hero-lower .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-foot { gap: 8px 18px; margin-top: 26px; font-size: 0.7rem; letter-spacing: 0.12em; }

  .sec-title, .page-title { font-size: clamp(2.1rem, 9.5vw, 3rem); }
  .contact-title { font-size: clamp(2.2rem, 10vw, 3rem); max-width: none; }

  .split, .duo, .entry, .entry--flip { grid-template-columns: 1fr; gap: 22px; }
  .entry--flip .entry-media, .duo--flip .duo-media { order: 0; }

  /* Images pleine largeur, bord à bord */
  .entry-media, .duo-media, .entry--flip .entry-media {
    aspect-ratio: 3 / 2;
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(-1 * var(--gutter));
    border-radius: 0;
  }
  .entry-media img, .duo-media img, .tl-media img, .tile img { filter: none; }

  .work, .work--3, .work--hero { grid-template-columns: 1fr; gap: 14px; }
  .tile, .tile--tall, .tile--sq { aspect-ratio: 3 / 2; }
  .tile h3 { font-size: 1.45rem; }
  .tile .meta { display: none; }

  .ncards { grid-template-columns: 1fr; gap: 12px; }
  .ncards > *:last-child { grid-column: auto; }
  .ncard { padding: 22px; }
  .ncard:hover { transform: none; box-shadow: none; }

  .stats { gap: 10px 22px; }
  .stats li { flex: 1 1 42%; flex-direction: column; gap: 2px; }
  .stats b { font-size: 1.7rem; }

  .row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .row-num { display: none; }
  .row-desc { grid-column: 1 / -1; grid-row: 2; }
  .offers { grid-template-columns: 1fr; }
  .offer .btn { align-self: stretch; justify-content: center; }

  .tl { grid-template-columns: 1fr; gap: 14px; padding-block: 26px; }
  .tl-media { grid-column: 1; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .tl-year { padding-top: 0; }

  .cta-band { padding-block: 32px; }
  .cta-band p { font-size: 1.5rem; }
  .cta-band .btn { width: 100%; justify-content: center; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-top > *:first-child { grid-column: 1 / -1; }
  .footer-bot { padding-block: 18px; }

  .strip { font-size: 0.7rem; letter-spacing: 0.16em; }
}

@media (max-width: 480px) {
  .ncards, .footer-top { grid-template-columns: 1fr; }
  .footer-top > *:first-child { grid-column: auto; }
  .stats li { flex: 1 1 100%; flex-direction: row; gap: 10px; }
}
