/* =========================================================
   JS PEINTURE — Refonte 2026
   Direction : éditoriale, noir/blanc/terracotta, artisan haut de gamme
   ========================================================= */

:root {
  /* Direction Brutaliste Éditoriale (mix 02 + 04) */
  --ink: #F4EFE3;
  --ink-2: #E5DCC9;
  --paper: #0A0907;
  --paper-2: #110F0B;
  --paper-pure: #000000;
  --accent: #E07A45;
  --accent-deep: #C75E2D;
  --accent-soft: #F0B084;
  --muted: #7A7268;
  --line: rgba(244,239,227,0.10);
  --line-strong: rgba(244,239,227,0.35);
  --live: #4ADE80;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --maxw: 1380px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
/* Grain subtil sur tout le site — donne un peu de vie */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 2; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ===== Type ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 7vw, 112px); line-height: 0.92; font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(34px, 4.8vw, 68px); line-height: 0.95; font-weight: 700; text-transform: uppercase; }
h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
h4 { font-size: clamp(16px, 1.4vw, 22px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }

.italic {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.04em;
}
h1 .italic, h2 .italic { font-weight: 300; color: var(--accent); }

p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: rgba(244,239,227,0.78); line-height: 1.55; font-weight: 400; }

.mono { font-family: var(--font-mono); letter-spacing: 0; }

/* ===== Layout ===== */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 160px); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ===== Buttons ===== */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.btn .arrow { transition: transform .35s ease; }
.btn:hover .arrow { transform: translateX(6px); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 12px 36px -12px rgba(216,117,67,0.55); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--accent {
  --bg: var(--accent);
  --fg: #fff;
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn--link {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  border-radius: 0;
}
.btn--link:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: uppercase;
}
.brand-logo {
  height: 60px;
  width: 60px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  /* Logo already designed for dark backgrounds — no invert needed */
  filter: none;
  transition: filter .3s ease, transform .3s ease;
  opacity: 0;
}
.brand-logo.is-loaded { opacity: 1; }
.brand:hover .brand-logo.is-loaded { transform: scale(1.04); }
/* When the logo is loaded, hide the text fallback */
.brand.logo-loaded .brand-mark,
.brand.logo-loaded .brand-name { display: none; }
.brand:not(.logo-loaded) .brand-logo {
  /* While logo not yet loaded, collapse it so it doesn't take space */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.04em;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
}
.brand-name { font-weight: 700; }
.brand-name b { color: var(--accent); font-weight: 700; }

/* Footer-brand image variant */
.footer-brand img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  width: auto;
  display: block;
  filter: none;
}
.footer-brand:not(.logo-loaded) img { display: none; }
.footer-brand.logo-loaded .footer-brand-text { display: none; }

.nav-links {
  display: flex;
  gap: 44px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.nav-phone .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(184,92,31,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184,92,31,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(184,92,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,92,31,0); }
}

.menu-toggle { display: none; }
.mobile-panel { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-phone { display: none; }
  .nav-cta .btn--accent { display: none; }
  .nav { padding: 12px 0; }
  .brand-logo { height: 46px; width: 46px; }
  .menu-toggle {
    display: inline-flex;
    background: transparent;
    border: 0;
    padding: 10px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    z-index: 70;
    position: relative;
  }
  .menu-toggle .bars { width: 24px; height: 2px; background: var(--ink); display: block; position: relative; transition: background .2s ease; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink);
    transition: transform .3s ease, top .3s ease;
  }
  .menu-toggle .bars::before { top: -7px; }
  .menu-toggle .bars::after { top: 7px; }

  /* Burger -> X quand ouvert */
  body.menu-open .menu-toggle .bars { background: transparent; }
  body.menu-open .menu-toggle .bars::before { top: 0; transform: rotate(45deg); }
  body.menu-open .menu-toggle .bars::after { top: 0; transform: rotate(-45deg); }
  body.menu-open .menu-toggle .menu-label { opacity: 0; }

  /* Panneau plein écran */
  .mobile-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    background: #0C0B09;
    background-image:
      radial-gradient(ellipse 80% 50% at 80% 0%, rgba(224,122,69,0.10), transparent 60%);
    padding: 88px var(--gutter) 110px;
    transform: translateY(-100%);
    transition: transform .45s cubic-bezier(.76,0,.24,1);
    z-index: 65;
    overflow-y: auto;
  }
  .mobile-panel.open { transform: translateY(0); }
  .mobile-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
  .mobile-panel li { border-bottom: 1px solid rgba(242,235,220,0.14); }
  .mobile-panel li:first-child { border-top: 1px solid rgba(242,235,220,0.14); }
  .mobile-panel a {
    font-family: var(--font-display);
    font-size: clamp(32px, 9vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 4px;
    color: var(--ink);
    transition: color .2s ease, padding-left .25s ease;
  }
  .mobile-panel a::before {
    content: attr(data-n);
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
  }
  .mobile-panel a:active,
  .mobile-panel a:hover { color: var(--accent); padding-left: 14px; }
  .mobile-panel a.italic {
    font-size: 22px;
    color: var(--accent);
    font-family: var(--font-mono, monospace);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: none;
  }
  .mobile-panel a.italic::before { content: ""; }
  /* CTA devis dans le panneau */
  .mobile-panel .mp-cta {
    margin-top: 32px;
    display: inline-flex;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 18px;
    font-weight: 600;
  }
  body.menu-open { overflow: hidden; }
}

/* =========================================================
   BARRE D'ACTION MOBILE (fixe en bas, à portée du pouce)
   ========================================================= */
.mobile-actionbar { display: none; }

@media (max-width: 880px) {
  .mobile-actionbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 58;
    background: color-mix(in srgb, var(--paper-pure) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-strong);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform .35s cubic-bezier(.76,0,.24,1);
  }
  .mab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 8px;
    min-height: 62px;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mab-item:last-child { border-right: 0; }
  .mab-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .mab-item:active { background: rgba(224,122,69,0.12); }
  .mab-item.mab-call { background: var(--accent); color: #fff; }
  .mab-item.mab-call:active { background: var(--accent-deep, #C4632F); }

  /* Le burger reste en haut : menu hamburger classique */
  body.menu-open .mab-menu .mab-ico-menu { display: none; }
  .mab-menu .mab-ico-close { display: none; }
  body.menu-open .mab-menu .mab-ico-close { display: block; }
  body.menu-open .mab-menu { color: var(--accent); }

  /* Laisser de la place en bas pour ne pas masquer le contenu/footer */
  body { padding-bottom: 62px; }
  .site-footer { margin-bottom: 0; }

  /* Le panneau plein écran laisse voir la barre d'action en bas */
  .mobile-panel { padding-bottom: 90px; }

  /* Masquer la barre quand le menu plein écran est ouvert ? non — on la garde
     pour pouvoir fermer. Mais on remonte le panneau au-dessus. */
  .mobile-panel { z-index: 55; }
  .mobile-actionbar { z-index: 58; }
}

@media (max-width: 380px) {
  .mab-item { font-size: 9px; letter-spacing: 0.1em; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero-copy { padding-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; }
.hero-sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 44ch;
}
.hero-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4,4,3,0.55) 100%);
  pointer-events: none;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s ease;
}
.hero:hover .hero-photo img { transform: scale(1.07); }

.hero-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.hero-tag .num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
}
.hero-tag .lab {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  max-width: 18ch;
  text-align: right;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 5; max-height: 70vh; }
}

/* Ticker / Marquee — brutaliste */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--paper-pure);
  padding: 18px 0;
  overflow: hidden;
  font-family: var(--font-mono);
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  align-items: center;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track i {
  font-style: normal;
  color: var(--accent);
  font-size: 14px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .num small { font-size: 0.5em; color: var(--accent); }
.stat .lab {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ===== Section header ===== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .lead { max-width: 52ch; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 36px 32px 32px;
  background: var(--paper);
  position: relative;
  transition: background .35s ease;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 480px;
}
.service:last-child { border-right: 0; }
.service:hover { background: var(--ink); color: var(--paper); }
.service:hover h3, .service:hover .service-num { color: var(--paper); }
.service:hover .service-photo { filter: grayscale(0); }
.service:hover .btn--link { color: var(--accent-deep); border-color: var(--accent-deep); }

.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.service-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-2);
  filter: grayscale(0.15);
  transition: filter .4s ease;
}
.service-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.service:hover .service-photo img { transform: scale(1.06); }

.service h3 { margin-top: 6px; }
.service p { font-size: 14.5px; color: var(--muted); margin: 0; }
.service:hover p { color: rgba(12,11,9,0.65); }

@media (max-width: 880px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0; min-height: auto; }
}

/* ===== Editorial pair ===== */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.pair.flip .pair-media { order: 2; }
.pair-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.pair-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.pair-copy h2 { margin-bottom: 24px; }
.pair-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.pair-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.pair-list li::before {
  content: "";
  display: block;
  width: 10px; height: 10px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 880px) {
  .pair { grid-template-columns: 1fr; }
  .pair.flip .pair-media { order: 0; }
}

/* ===== Gallery showcase ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  transition: outline-color .35s ease;
}
.tile:hover { outline-color: var(--accent); }
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease, opacity .5s ease;
}
.tile:hover img { transform: scale(1.06); opacity: .82; }
.tile .tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transform: translateY(20%);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.tile:hover .tile-cap { opacity: 1; transform: translateY(0); }
.tile .tile-cap h4 { color: #fff; font-size: 18px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; text-transform: uppercase; }
.tile .tile-cap .cat {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-soft);
  font-weight: 500;
}

.tile-a { grid-column: span 6; aspect-ratio: 4/5; }
.tile-b { grid-column: span 6; aspect-ratio: 4/5; }
.tile-c { grid-column: span 4; aspect-ratio: 3/4; }
.tile-d { grid-column: span 4; aspect-ratio: 3/4; }
.tile-e { grid-column: span 4; aspect-ratio: 3/4; }
.tile-wide { grid-column: span 12; aspect-ratio: 21/9; }

@media (max-width: 760px) {
  .tile-a, .tile-b { grid-column: span 12; }
  .tile-c, .tile-d, .tile-e { grid-column: span 6; aspect-ratio: 1; }
}

/* ===== Before / After slider ===== */
.compare {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  user-select: none;
  background: #000;
  cursor: ew-resize;
  border: 1px solid var(--line);
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.compare .after-wrap {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--ink);
}
.compare .after-wrap img { width: 200%; max-width: none; }
.compare .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 24px rgba(242,235,220,0.4);
}
.compare .knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  color: var(--paper);
  font-size: 20px;
  letter-spacing: -2px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 0 6px rgba(242,235,220,0.08);
}
.compare .lbl {
  position: absolute;
  top: 20px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.5);
  color: #fff;
  pointer-events: none;
}
.compare .lbl-before { left: 20px; }
.compare .lbl-after { right: 20px; }

/* ===== Testimonials ===== */
.testimonials {
  background: var(--paper-pure);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(216,117,67,0.10), transparent 60%);
  pointer-events: none;
}
.testimonials .container { position: relative; }
.testimonials h2, .testimonials h3, .testimonials h4 { color: var(--ink); }
.testimonials .eyebrow { color: var(--accent-soft); }
.testimonials .eyebrow::before { background: var(--accent-soft); }

.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 56px;
}
.t-card {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}
.t-card:last-child { border-right: 0; }
.t-card .stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 4px;
}
.t-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  margin: 0;
  font-weight: 400;
}
.t-card .who {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(242,235,220,0.7);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 18px;
}
.t-card .who b { color: var(--ink); font-weight: 600; letter-spacing: 0; }
@media (max-width: 880px) {
  .t-grid { grid-template-columns: 1fr; }
  .t-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .t-card:last-child { border-bottom: 0; }
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 5vw, 80px);
}
.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  transition: color .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item .plus {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  position: relative;
  transition: transform .35s ease;
}
.faq-item .plus::before, .faq-item .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor;
}
.faq-item .plus::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.faq-item .plus::after { width: 1px; height: 14px; transform: translate(-50%, -50%); transition: transform .35s ease; }
.faq-item[open] .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .plus { transform: rotate(90deg); }
.faq-item .answer {
  padding: 0 64px 32px 0;
  color: rgba(242,235,220,0.72);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 68ch;
}
@media (max-width: 880px) { .faq { grid-template-columns: 1fr; } }

/* ===== Contact band ===== */
.contact-band {
  background: var(--paper-2);
  padding-block: clamp(72px, 10vw, 140px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.contact-info {
  display: grid;
  gap: 22px;
}
.contact-info .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-info .row b {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact-info .row span {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 28px);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label {
  display: grid; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.form input, .form textarea, .form select {
  font: inherit;
  font-size: 16px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242,235,220,0.3);
  color: var(--ink);
  border-radius: 0;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(242,235,220,0.4); }
.form select option { background: var(--paper); color: var(--ink); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer {
  background: var(--paper-pure);
  color: var(--ink);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,227,0.5);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-brand { font-family: var(--font-display); font-size: 22px; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.footer-brand b { color: var(--accent); font-weight: 700; }
.footer-blurb { color: rgba(242,235,220,0.7); max-width: 36ch; font-size: 14px; }

.zones { display: flex; flex-wrap: wrap; gap: 8px; }
.zones span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(244,239,227,0.2);
  border-radius: 0;
  color: rgba(244,239,227,0.85);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(242,235,220,0.55);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Page header (sous-pages) ===== */
.page-head {
  padding: clamp(56px, 8vw, 100px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(48px, 7vw, 112px); }
.crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,227,0.5);
  margin-bottom: 28px;
  display: flex; gap: 12px;
  font-weight: 500;
}
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--line-strong); }

/* ===== Reveal animation =====
   Fallback safe: even if animations don't trigger, content stays visible.
   Only photos (decorative) start invisible.
*/
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal-anim.in { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; } /* still applies for legacy */
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

.parallax { will-change: transform; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,15,15,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(242,235,220,0.3);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 22px;
}
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(242,235,220,0.3);
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 22px;
  display: grid; place-items: center;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ===== Filter chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(242,235,220,0.2);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===== Process steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 48px; }
.step { display: grid; gap: 16px; }
.step .n {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
}
.step h4 { margin: 0; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ===== Blog cards ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.post {
  display: grid;
  gap: 18px;
}
.post-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-2);
}
.post-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.post:hover .post-img img { transform: scale(1.05); }
.post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,227,0.5);
  display: flex; gap: 12px;
  font-weight: 500;
}
.post-meta .cat { color: var(--accent); }
.post h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.post p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; gap: 56px; } }

/* ===== Misc ===== */
.center { text-align: center; }
.kbd-arrow { display: inline-block; transform: translateY(-1px); }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
html { scrollbar-color: var(--accent) var(--paper-2); background: var(--paper); }

/* Print */
@media print {
  .site-header, .site-footer, .marquee { display: none; }
}

/* =========================================================
   AJOUTS — Interactivité & composants v2
   ========================================================= */

/* Barre de progression de défilement */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(216,117,67,0.7);
  transition: width .1s linear;
}

/* Marquee hover-pause */
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Ken-burns automatique sur la hero photo */
@keyframes ken-burns {
  0%   { transform: scale(1.04) translate(0, 0); }
  50%  { transform: scale(1.10) translate(-1.5%, -1%); }
  100% { transform: scale(1.04) translate(0, 0); }
}
.hero-photo img {
  animation: ken-burns 18s ease-in-out infinite;
}
.hero:hover .hero-photo img { animation-play-state: paused; transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; }
}

/* Tilt 3D des photos au survol */
.tilt {
  perspective: 1200px;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.tilt-inner {
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Bouton "magnétique" — léger glow + scale au survol */
.btn--accent {
  position: relative;
  overflow: hidden;
}
.btn--accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.btn--accent:hover::after { opacity: 1; }

/* ===== Big number backdrop ===== */
.big-num-bg {
  position: relative;
  overflow: hidden;
}
.big-num-bg .big-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(320px, 44vw, 680px);
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.08;
  font-weight: 700;
  pointer-events: none;
  letter-spacing: -0.06em;
  top: -8%;
  right: -4%;
  z-index: 0;
  text-transform: uppercase;
}
.big-num-bg > * { position: relative; z-index: 1; }

/* ===== Portrait + chiffres asymétrique ===== */
.portrait-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4,4,3,0.7) 100%);
  pointer-events: none;
}
.portrait-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s ease;
}
.portrait-frame:hover img { transform: scale(1.08); }
.portrait-frame .frame-cap {
  position: absolute;
  left: 24px; bottom: 24px; right: 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-display);
}
.portrait-frame .frame-cap .role { font-style: italic; font-size: 22px; }
.portrait-frame .frame-cap .name { font-size: 28px; }
.portrait-frame .frame-cap small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.7;
}

.portrait-stats {
  display: grid;
  align-content: space-between;
  gap: 32px;
  padding: clamp(20px, 3vw, 40px) 0;
}
.portrait-stats .ps-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: baseline;
  padding-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.portrait-stats .ps-row:last-of-type { border-bottom: 0; }
.portrait-stats .ps-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 130px);
  line-height: 0.9;
  color: var(--ink);
  font-weight: 400;
}
.portrait-stats .ps-num small { font-size: 0.4em; color: var(--accent); }
.portrait-stats .ps-lab {
  font-size: clamp(15px, 1.2vw, 17px);
  color: rgba(242,235,220,0.7);
  max-width: 28ch;
  line-height: 1.5;
}
.portrait-stats .ps-lab b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}
@media (max-width: 880px) {
  .portrait-hero { grid-template-columns: 1fr; }
}

/* ===== Manifesto — 3 valeurs en colonnes verticales ===== */
.manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.manifesto-item {
  padding: clamp(40px, 6vw, 72px) clamp(28px, 3vw, 48px);
  border-right: 1px solid rgba(255,255,255,0.10);
  position: relative;
  transition: background .35s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 380px;
}
.manifesto-item:last-child { border-right: 0; }
.manifesto-item:hover {
  background: rgba(216,117,67,0.06);
}
.manifesto-item .m-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.manifesto-item h3 {
  font-size: clamp(28px, 2.4vw, 40px);
  color: var(--ink);
  line-height: 1.05;
}
.manifesto-item h3 .italic { color: var(--accent-soft); }
.manifesto-item p {
  color: rgba(242,235,220,0.72);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  margin-top: auto;
}
.manifesto-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.manifesto-item:hover::before { width: 100%; }
@media (max-width: 880px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.10); min-height: auto; }
  .manifesto-item:last-child { border-bottom: 0; }
}

/* ===== Timeline verticale (méthode) ===== */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  padding-left: clamp(32px, 5vw, 64px);
}
.timeline::before {
  content: "";
  position: absolute;
  left: clamp(11px, 1.8vw, 23px);
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line) 50%, transparent);
}
.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.tl-step::before {
  content: "";
  position: absolute;
  left: calc(clamp(11px, 1.8vw, 23px) - clamp(32px, 5vw, 64px) - 6px);
  top: 16px;
  width: 14px; height: 14px;
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--paper);
}
.tl-step:hover::before { background: var(--accent); }
.tl-step .tl-meta {
  display: grid;
  gap: 8px;
}
.tl-step .tl-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.9;
  color: var(--accent);
  font-weight: 400;
}
.tl-step .tl-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.tl-step h3 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.2vw, 32px);
}
.tl-step p {
  color: rgba(242,235,220,0.72);
  font-size: 15.5px;
  margin: 0;
}
.tl-step ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
}
.tl-step ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: rgba(242,235,220,0.6);
}
.tl-step ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
@media (max-width: 760px) {
  .tl-step { grid-template-columns: 1fr; gap: 8px; }
  .tl-step .tl-num { font-size: 48px; }
}

/* ===== Brands / outils ===== */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.brand-pill {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-style: italic;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: all .35s ease;
  cursor: default;
}
.brand-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* ===== Tile lift on hover (gallery) ===== */
.gallery .tile { transition: transform .5s cubic-bezier(.2,.7,.2,1), outline-color .35s ease; }
.gallery .tile:hover { transform: translateY(-6px); }

/* ===== Pair media — léger zoom au survol ===== */
.pair-media {
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.pair-media img {
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.pair-media:hover img { transform: scale(1.05); }

/* ===== Page-head H1 effect ===== */
.page-head h1 .accent-dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 4px;
  transform: translateY(-8px);
  box-shadow: 0 0 24px rgba(216,117,67,0.6);
}

/* =========================================================
   v3 — Plus visuel, plus dynamique
   ========================================================= */

/* ===== Curseur custom ===== */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, width, height;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    transition: width .25s ease, height .25s ease, background .25s ease;
    mix-blend-mode: difference;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(216,117,67,0.5);
    transition: width .35s cubic-bezier(.2,.7,.2,1),
                height .35s cubic-bezier(.2,.7,.2,1),
                border-color .25s ease,
                background .25s ease,
                opacity .25s ease;
    opacity: 0.9;
  }
  .cursor-hover .cursor-dot { width: 0; height: 0; }
  .cursor-hover .cursor-ring {
    width: 64px; height: 64px;
    background: rgba(216,117,67,0.10);
    border-color: var(--accent);
  }
  .cursor-text .cursor-dot { width: 0; height: 0; }
  .cursor-text .cursor-ring {
    width: 8px; height: 8px;
    background: var(--accent);
    border-color: var(--accent);
  }
  /* hide native cursor on links/buttons when custom cursor active */
  body.has-custom-cursor { /* keep native — accessibility */ }
}

/* ===== Hero v3 — cinématique ===== */
.hero-v3 {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding-block: clamp(80px, 12vw, 140px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-v3-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-v3-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,11,9,0.4) 0%, rgba(12,11,9,0.6) 40%, rgba(12,11,9,0.95) 100%),
              radial-gradient(ellipse at 20% 30%, rgba(216,117,67,0.18), transparent 55%);
  z-index: 2;
}
.hero-v3-bg .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-v3-bg .slide.is-active { opacity: 1; }
.hero-v3-bg .slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: ken-burns 20s ease-in-out infinite;
}

.hero-v3 .container { position: relative; z-index: 3; }

.hero-v3 .meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
  gap: 16px;
}
.hero-v3 .meta-bar .now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,235,220,0.7);
}
.hero-v3 .meta-bar .now::before {
  content: "";
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero-v3 h1 {
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.hero-v3 h1 .line {
  display: block;
  overflow: hidden;
}
.hero-v3 h1 .line .word {
  display: inline-block;
  animation: word-rise 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.hero-v3 h1 .line:nth-child(1) .word { animation-delay: 0.05s; }
.hero-v3 h1 .line:nth-child(2) .word { animation-delay: 0.18s; }
.hero-v3 h1 .line:nth-child(3) .word { animation-delay: 0.31s; }
.hero-v3 h1 .line:nth-child(4) .word { animation-delay: 0.44s; }
@keyframes word-rise {
  0%   { transform: translateY(110%); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
/* Safety: if animations are disabled or fail, words still visible */
@media (prefers-reduced-motion: reduce) {
  .hero-v3 h1 .line .word { animation: none; transform: none; opacity: 1; }
}
.hero-v3 h1 .italic { display: inline-block; }
.hero-v3 h1 .accent-dot {
  display: inline-block;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: 0.18em;
  margin-left: 8px;
  box-shadow: 0 0 32px rgba(216,117,67,0.8);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 32px rgba(216,117,67,0.8); }
  50% { transform: scale(1.25); box-shadow: 0 0 48px rgba(216,117,67,1); }
}

.hero-v3-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(242,235,220,0.15);
}
.hero-v3-foot .item {
  display: grid;
  gap: 12px;
}
.hero-v3-foot .item .lbl {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,235,220,0.5);
}
.hero-v3-foot .item .val {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink);
  line-height: 1.2;
}
.hero-v3-foot .item .val .ital { font-style: italic; color: var(--accent-soft); }

.hero-v3-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}
.hero-v3-cta .pager {
  display: flex;
  gap: 8px;
}
.hero-v3-cta .pager button {
  width: 32px; height: 2px;
  border: 0; padding: 0;
  background: rgba(242,235,220,0.2);
  cursor: pointer;
  transition: background .3s ease;
  border-radius: 0;
}
.hero-v3-cta .pager button.is-active { background: var(--accent); }

@media (max-width: 760px) {
  .hero-v3 h1 { font-size: clamp(40px, 11vw, 72px); }
  .hero-v3-foot { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Marquee with photos ===== */
.marquee-photo {
  padding: clamp(40px, 5vw, 64px) 0;
  border-block: 1px solid var(--line);
  background: var(--paper-pure);
  overflow: hidden;
}
.marquee-photo-track {
  display: inline-flex;
  gap: 32px;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
  align-items: center;
}
.marquee-photo:hover .marquee-photo-track { animation-play-state: paused; }
.marquee-photo-track .mp-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.marquee-photo-track .mp-img {
  width: clamp(180px, 22vw, 280px);
  height: clamp(120px, 14vw, 180px);
  overflow: hidden;
  background: var(--paper-2);
  flex-shrink: 0;
}
.marquee-photo-track .mp-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease, filter .8s ease;
  filter: saturate(0.85);
}
.marquee-photo:hover .mp-img img { transform: scale(1.06); filter: saturate(1); }
.marquee-photo-track .mp-label {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 56px);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.marquee-photo-track .mp-label .accent { color: var(--accent); font-weight: 300; }

/* ===== Showreel — horizontal scrollable ===== */
.showreel {
  padding-block: clamp(80px, 11vw, 140px);
  position: relative;
  overflow: hidden;
}
.showreel-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}
.showreel-controls {
  display: flex;
  gap: 12px;
}
.sr-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(242,235,220,0.25);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .3s ease;
}
.sr-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}
.sr-btn:disabled { opacity: 0.35; cursor: default; }
.sr-btn:disabled:hover { background: transparent; color: var(--ink); border-color: rgba(242,235,220,0.25); transform: none; }

.showreel-rail {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.showreel-rail::-webkit-scrollbar { display: none; }

.sr-card {
  flex: 0 0 clamp(280px, 28vw, 440px);
  scroll-snap-align: start;
  display: grid;
  gap: 18px;
  cursor: pointer;
}
.sr-card .sr-img {
  aspect-ratio: 4/5;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.sr-card .sr-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: brightness(0.92);
}
.sr-card:hover .sr-img img { transform: scale(1.06); filter: brightness(1.05); }
.sr-card .sr-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4,4,3,0.7) 100%);
  pointer-events: none;
}
.sr-card .sr-img .badge {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(12,11,9,0.6);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border: 1px solid rgba(242,235,220,0.15);
  z-index: 2;
}
.sr-card .sr-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 4px;
}
.sr-card .sr-meta .title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink);
  line-height: 1.2;
}
.sr-card .sr-meta .place {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Finitions interactives ===== */
.finitions {
  background: var(--paper-pure);
  padding-block: clamp(80px, 11vw, 140px);
}
.finitions-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.fin-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.fin-swatch {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg, #2a2820) 0%, var(--bg-2, #1a1815) 100%);
  border: 1px solid rgba(242,235,220,0.08);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.fin-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--shine, radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 60%));
  pointer-events: none;
}
.fin-swatch:hover, .fin-swatch.is-active {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--accent) inset;
}
.fin-swatch .fs-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: rgba(255,255,255,0.92);
  font-style: italic;
}
.fin-swatch .fs-num {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
}

.fin-detail {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 28px;
}
.fin-detail .fd-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
}
.fin-detail .fd-title .italic { color: var(--accent-soft); }
.fin-detail .fd-desc {
  font-size: 16px;
  color: rgba(242,235,220,0.75);
  line-height: 1.6;
  max-width: 50ch;
}
.fin-detail .fd-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(242,235,220,0.12);
}
.fin-detail .fd-meta .col b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.fin-detail .fd-meta .col span {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

@media (max-width: 880px) {
  .finitions-grid { grid-template-columns: 1fr; }
  .fin-detail { position: static; }
}

/* ===== Sticky storytelling ===== */
.story {
  padding-block: clamp(80px, 12vw, 160px);
  position: relative;
}
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(80px, 10vw, 140px);
}
.story-row:last-child { margin-bottom: 0; }
.story-row.flip .story-img { order: 2; }
.story-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.story-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.story-img:hover img { transform: scale(1.05); }
.story-img .chapter {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--paper);
  background: rgba(12,11,9,0.6);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border: 1px solid rgba(242,235,220,0.2);
  z-index: 2;
}
.story-copy {
  padding-top: clamp(24px, 4vw, 64px);
}
.story-copy .story-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.85;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 24px;
  display: block;
}
.story-copy h3 {
  font-size: clamp(28px, 3.4vw, 48px);
  margin-bottom: 24px;
  line-height: 1.1;
}
.story-copy p {
  color: rgba(242,235,220,0.78);
  font-size: 16px;
  line-height: 1.6;
  max-width: 50ch;
}
.story-copy .story-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.story-copy .story-tags span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(242,235,220,0.18);
  color: rgba(242,235,220,0.75);
}
@media (max-width: 880px) {
  .story-row { grid-template-columns: 1fr; }
  .story-row.flip .story-img { order: 0; }
}

/* ===== Reveal — split text per word ===== */
.split-words { display: inline; }
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.split-words.in .w > span { transform: translateY(0); }
.split-words .w:nth-child(1) > span { transition-delay: 0s; }
.split-words .w:nth-child(2) > span { transition-delay: .06s; }
.split-words .w:nth-child(3) > span { transition-delay: .12s; }
.split-words .w:nth-child(4) > span { transition-delay: .18s; }
.split-words .w:nth-child(5) > span { transition-delay: .24s; }
.split-words .w:nth-child(6) > span { transition-delay: .30s; }
.split-words .w:nth-child(7) > span { transition-delay: .36s; }
.split-words .w:nth-child(8) > span { transition-delay: .42s; }

/* ===== Section transitions (background gradient) ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  border: 0;
}

/* ===== Section gradient frames ===== */
.bg-grad-1 {
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(216,117,67,0.05), transparent),
    var(--paper);
}
.bg-grad-2 {
  background:
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(216,117,67,0.06), transparent),
    var(--paper-2);
}

/* =========================================================
   OPTIMISATION MOBILE — passe dédiée téléphone
   ========================================================= */

/* Tablette & en dessous : on resserre les sections */
@media (max-width: 760px) {
  .section { padding-block: clamp(56px, 12vw, 80px); }
  .section-tight { padding-block: 40px; }

  /* Hero : hauteur raisonnable (évite le "trou" sous l'adresse bar) */
  .hero-v3 { min-height: 86vh; padding-block: clamp(56px, 16vw, 96px) clamp(40px, 10vw, 64px); }
  .hero-v3 .meta-bar { margin-bottom: 32px; }
  .hero-v3-cta { margin-top: 32px; gap: 12px; }
  .hero-v3-cta .btn { flex: 1 1 auto; justify-content: center; }

  /* Showreel : cartes plus étroites pour voir qu'on peut scroller */
  .sr-card { flex: 0 0 78vw; }

  /* Marquee photo : plus compacte */
  .marquee-photo { padding: 28px 0; }
  .marquee-photo-track { gap: 20px; }
  .marquee-photo-track .mp-item { gap: 20px; }
  .marquee-photo-track .mp-img { width: 150px; height: 100px; }
  .marquee-photo-track .mp-label { font-size: clamp(22px, 6vw, 32px); }
}

/* Téléphone : ajustements fins */
@media (max-width: 560px) {
  :root { --gutter: 20px; }

  /* Titres : éviter qu'ils débordent ou écrasent */
  h1 { font-size: clamp(40px, 11vw, 60px); }
  h2 { font-size: clamp(30px, 8vw, 44px); }

  .hero-v3 h1 { font-size: clamp(38px, 11vw, 60px); }
  .hero-v3-foot { gap: 18px; }
  .hero-v3-foot .item .val { font-size: 18px; }

  /* CTA empilés et pleine largeur, hauteur de touche confortable (≥48px) */
  .hero-v3-cta { flex-direction: column; align-items: stretch; }
  .hero-v3-cta .btn { width: 100%; justify-content: space-between; padding: 16px 20px; }
  .hero-v3-cta .pager { justify-content: center; margin-top: 8px; }

  /* Stats : 2 colonnes lisibles */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 18px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  /* Story : numéros et images plus compacts */
  .story-img { aspect-ratio: 4/3; }
  .story-copy { padding-top: 0; }

  /* Finitions : swatches 2x2 confortables */
  .fin-swatch { padding: 16px; }

  /* Boutons généraux : touche ≥ 48px */
  .btn { padding: 15px 22px; }

  /* FAQ : résumés tap-friendly */
  .faq-item summary { padding: 20px 0; gap: 16px; }

  /* Contact : champs et lignes aérés */
  .contact-info .row { grid-template-columns: 1fr; gap: 6px; }

  /* Marquee texte : un peu plus petit */
  .marquee-track { font-size: 12px; gap: 40px; }
  .marquee-track span { gap: 40px; }

  /* Footer : zones en ligne souple */
  .footer-grid { gap: 32px; }

  /* Lightbox : flèches plus accessibles au pouce */
  .lightbox-nav { width: 48px; height: 48px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

/* Très petits écrans */
@media (max-width: 380px) {
  .hero-v3 h1 { font-size: 34px; }
  .brand-logo { height: 44px; width: 44px; }
  .stat .num { font-size: 38px; }
}

/* Appareils tactiles : pas de curseur custom, pas de hover sticky */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto; }
}

/* =========================================================
   INTRO / PRELOADER — révélation cinématique
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #0C0B09;
}
body.intro-active { overflow: hidden; height: 100vh; }
body.intro-done .intro { pointer-events: none; }

/* Photo plein écran avec zoom lent */
.intro-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  filter: brightness(0.62) saturate(1.05);
  animation: intro-zoom 2.6s cubic-bezier(.2,.6,.2,1) forwards;
}
@keyframes intro-zoom {
  from { transform: scale(1.18); }
  to   { transform: scale(1.0); }
}
.intro-grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.intro-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,9,0.55) 0%, rgba(12,11,9,0.15) 35%, rgba(12,11,9,0.6) 100%),
    radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(12,11,9,0.55) 100%);
  pointer-events: none;
}

/* Contenu */
.intro-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 4vw, 56px);
  color: #F2EBDC;
}
.intro-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,235,220,0.75);
  opacity: 1;
  animation: intro-fade-in .9s ease .3s both;
}

.intro-center {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(20px, 3vw, 36px);
  text-align: center;
}
.intro-logo {
  width: clamp(72px, 9vw, 110px);
  height: auto;
  opacity: 1;
  transform: scale(1);
  animation: intro-logo-in .7s cubic-bezier(.2,.7,.2,1) .05s both;
}
@keyframes intro-logo-in {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
.intro-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(48px, 10vw, 150px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.intro-title .il {
  display: block;
  overflow: hidden;
}
.intro-title .il > span {
  display: inline-block;
  transform: translateY(0);
  animation: intro-line-up 1s cubic-bezier(.2,.7,.2,1) both;
}
.intro-title .il:nth-child(1) > span { animation-delay: .18s; }
.intro-title .il:nth-child(2) > span { animation-delay: .28s; }
.intro-title .il:nth-child(3) > span { animation-delay: .38s; }
@keyframes intro-line-up {
  0% { transform: translateY(110%); }
  100% { transform: translateY(0); }
}
.intro-dot { color: var(--accent, #E07A45); }

.intro-bottom {
  display: grid;
  gap: 16px;
  opacity: 1;
  animation: intro-fade-in .9s ease .5s both;
}
.intro-bar {
  height: 2px;
  width: 100%;
  background: rgba(242,235,220,0.18);
  overflow: hidden;
}
.intro-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent, #E07A45);
  box-shadow: 0 0 16px rgba(224,122,69,0.7);
  transition: width .2s ease;
}
.intro-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,235,220,0.7);
}
.intro-count { font-size: clamp(28px, 4vw, 44px); color: #fff; letter-spacing: -0.02em; font-weight: 500; }
.intro-count::after { content: "%"; font-size: 0.5em; margin-left: 2px; color: var(--accent, #E07A45); }

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

/* Rideau de révélation (4 panneaux qui montent en décalé) */
.intro-curtain {
  position: absolute;
  bottom: 0;
  width: 25.2%;
  height: 100%;
  background: #0C0B09;
  z-index: 5;
  transform: translateY(101%);
  pointer-events: none;
}
.intro-curtain-1 { left: 0; }
.intro-curtain-2 { left: 25%; }
.intro-curtain-3 { left: 50%; }
.intro-curtain-4 { left: 75%; }

/* Quand on lance la sortie : la photo + contenu remontent, les rideaux balaient */
body.intro-leaving .intro-content { animation: intro-content-out .7s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes intro-content-out {
  to { opacity: 0; transform: translateY(-40px); }
}
body.intro-leaving .intro-photo img { animation: intro-zoom-out 1.2s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes intro-zoom-out {
  to { transform: scale(1.3); filter: brightness(0.3); }
}
body.intro-leaving .intro-curtain { animation: intro-curtain-up 1s cubic-bezier(.76,0,.24,1) forwards; }
body.intro-leaving .intro-curtain-1 { animation-delay: 0s; }
body.intro-leaving .intro-curtain-2 { animation-delay: .08s; }
body.intro-leaving .intro-curtain-3 { animation-delay: .16s; }
body.intro-leaving .intro-curtain-4 { animation-delay: .24s; }
@keyframes intro-curtain-up {
  to { transform: translateY(0); }
}
/* Une fois en place, l'intro disparaît */
body.intro-done .intro { opacity: 0; transition: opacity .4s ease .2s; }

/* Skip hint */
.intro-skip {
  position: absolute;
  bottom: clamp(28px, 4vw, 56px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,235,220,0.5);
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 1;
  animation: intro-fade-in .7s ease .8s both;
  transition: color .25s ease;
}
.intro-skip:hover { color: var(--accent, #E07A45); }

@media (prefers-reduced-motion: reduce) {
  .intro-photo img { animation: none; transform: scale(1); }
  .intro-title .il > span { animation: none; transform: none; }
}

/* Cadre viseur (coins type appareil photo) */
.intro-frame {
  position: absolute;
  inset: clamp(20px, 3vw, 40px);
  z-index: 4;
  pointer-events: none;
}
.intro-frame .ic {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0;
  animation: intro-fade-in .7s ease .5s forwards;
}
.intro-frame .ic::before, .intro-frame .ic::after {
  content: "";
  position: absolute;
  background: var(--accent, #E07A45);
}
.intro-frame .ic::before { width: 100%; height: 2px; }
.intro-frame .ic::after { width: 2px; height: 100%; }
.intro-frame .ic-tl { top: 0; left: 0; }
.intro-frame .ic-tl::before { top: 0; left: 0; }
.intro-frame .ic-tl::after { top: 0; left: 0; }
.intro-frame .ic-tr { top: 0; right: 0; }
.intro-frame .ic-tr::before { top: 0; right: 0; }
.intro-frame .ic-tr::after { top: 0; right: 0; }
.intro-frame .ic-bl { bottom: 0; left: 0; }
.intro-frame .ic-bl::before { bottom: 0; left: 0; }
.intro-frame .ic-bl::after { bottom: 0; left: 0; }
.intro-frame .ic-br { bottom: 0; right: 0; }
.intro-frame .ic-br::before { bottom: 0; right: 0; }
.intro-frame .ic-br::after { bottom: 0; right: 0; }

/* Ligne terracotta qui balaie verticalement */
.intro-scan {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent, #E07A45) 35%, #fff 50%, var(--accent, #E07A45) 65%, transparent);
  box-shadow: 0 0 24px rgba(224,122,69,0.6);
  opacity: 0.85;
  animation: intro-scan-move 2.6s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes intro-scan-move {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Glow doux sur le titre */
.intro-title { text-shadow: 0 2px 40px rgba(0,0,0,0.4); }
body.intro-leaving .intro-frame,
body.intro-leaving .intro-scan { opacity: 0; transition: opacity .3s ease; }

/* =========================================================
   ARTICLE DE BLOG (page individuelle)
   ========================================================= */
.article-hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.article-hero .crumb { margin-bottom: 28px; }
.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 18ch;
}
.article-hero h1 .accent { color: var(--accent); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta b { color: var(--ink); font-weight: 500; }

.article-cover {
  margin: clamp(32px, 5vw, 64px) 0 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding-block: clamp(48px, 7vw, 88px);
}
.article-body > .lead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: none;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 48px 0 20px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(242,235,220,0.82);
  margin: 0 0 22px;
  max-width: none;
}
.article-body p b, .article-body li b { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol {
  margin: 0 0 26px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.article-body ul li, .article-body ol li {
  position: relative;
  padding-left: 32px;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(242,235,220,0.82);
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 9px; height: 9px;
  background: var(--accent);
}
.article-body ol { counter-reset: step; }
.article-body ol li { counter-increment: step; }
.article-body ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.article-body blockquote {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  font-style: normal;
  color: var(--ink);
}
.article-body .callout {
  margin: 36px 0;
  padding: 28px 32px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}
.article-body .callout b {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-body .callout p:last-child { margin-bottom: 0; }
.article-body .sign {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--accent);
}

/* Articles suivants */
.article-next { border-top: 1px solid var(--line); }
.article-next .blog-grid { margin-top: 48px; }
@media (max-width: 760px) {
  .article-meta { gap: 14px; font-size: 11px; }
}
