/* ==========================================================================
   ECD — Étude Conseil Démolition
   Design system : charte du logo (jaune #FFF500 / bleu #281671)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2-variations"), url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2-variations"), url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --yellow: #fff500;
  --yellow-deep: #f2e600;
  --blue: #281671;
  --blue-bright: #4a36c4;
  --ink: #121214;
  --ink-2: #1b1b1f;
  --ink-3: #26262c;
  --paper: #f3f1ea;
  --paper-2: #e8e5dc;
  --stone: #8b8a85;
  --line: rgba(18, 18, 20, .14);
  --line-dark: rgba(255, 255, 255, .12);

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 4px;
  --r-lg: 6px;
  --r-btn: 3px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--r-btn); font-weight: 700;
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Typographie ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.02em;
  margin: 0;
  text-transform: uppercase;
}
.display-xl { font-size: clamp(2.9rem, 10.5vw, 10.5rem); }
.display-l  { font-size: clamp(1.7rem, 6vw, 6.2rem); }
.display-m  { font-size: clamp(2rem, 4.6vw, 4.4rem); }
h3, .display-s { font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.02; }
p { margin: 0 0 1em; }
@media (max-width: 700px) { .display, h1, h2 { hyphens: auto; -webkit-hyphens: auto; } }
.lead { font-size: clamp(1.1rem, 1.55vw, 1.45rem); line-height: 1.5; font-weight: 450; max-width: 46ch; }
.muted { color: #65645e; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 700;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.on-dark .eyebrow, .eyebrow.on-dark, .dark .eyebrow { color: var(--yellow); }
.on-dark .eyebrow::before, .dark .eyebrow::before { box-shadow: none; }
.nowrap { white-space: nowrap; }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }
.on-dark .hl { background: none; color: var(--yellow); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: .75em;
  padding: .95em 1.5em; border-radius: var(--r-btn); border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-stretch: 110%; font-weight: 750; font-size: .95rem;
  letter-spacing: .02em; text-transform: uppercase; line-height: 1;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .55s var(--ease-out); border-radius: inherit;
}
.btn:hover { --fg: var(--yellow); }
.btn:hover::after { transform: none; }
.btn .arrow { transition: transform .5s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost::after { background: var(--yellow); }
.btn--ghost:hover { --fg: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--dark::after { background: var(--blue); }
.btn--dark:hover { --fg: #fff; }
.link-arrow { display: inline-flex; gap: .5em; align-items: center; font-weight: 650; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow .4s;
  /* menu fixe : fond blanc, texte bleu nuit du logo */
  background: #fff; color: var(--blue);
  box-shadow: 0 1px 0 rgba(40, 22, 113, .08);
}
.site-header.is-solid { box-shadow: 0 8px 30px rgba(18, 18, 20, .12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; background: #fff; border-radius: var(--r); padding: 6px 10px; flex-shrink: 0; }
.footer-brand .brand { border: 1px solid var(--line); }
.brand img { width: 118px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.nav__list { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; font-weight: 600; font-size: .95rem; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: -24px; min-width: 300px;
  background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 12px; list-style: none; margin: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .35s var(--ease-out);
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu, .nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r); font-weight: 600; }
.nav__menu a span { font-family: var(--f-display); font-size: .7rem; color: var(--stone); letter-spacing: .1em; }
.nav__menu a:hover { background: var(--yellow); color: var(--ink); }
.nav__menu a:hover span { color: var(--ink); }
.nav .btn { padding: .8em 1.2em; font-size: .82rem; }
.burger { display: none; width: 48px; height: 48px; border-radius: var(--r-btn); border: 0; background: var(--yellow); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); transition: .4s var(--ease-out); }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 40px) 38px); transition: clip-path .8s var(--ease-io);
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.15; padding: 6px 0; }
.mobile-menu li a:hover { color: var(--yellow); }
.mobile-menu small { display: block; color: var(--stone); margin-top: 24px; }
.menu-open { overflow: hidden; }
.menu-open .site-header { box-shadow: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 12vw, 180px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 110px); }
.dark { background: var(--ink); color: #fff; }
.dark .muted { color: #9d9ca3; }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.sec-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(48px, 6vw, 90px); }
.sec-head > p { max-width: 52ch; }
.sec-head .eyebrow { margin-bottom: 22px; }
.proc-head { margin-bottom: clamp(48px, 6vw, 90px); }
.proc-head__t { font-size: clamp(2rem, 4vw, 4rem); margin: 22px 0 28px; }
.proc-head .muted { max-width: 46ch; }

/* ---------- Hero 3D (accueil) ---------- */
.hero3d { position: relative; height: 560vh; background: var(--ink); color: #fff; }
.hero3d__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero3d.is-ready canvas { opacity: 1; }
.hero3d__poster {
  position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity .8s;
}
.hero3d__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,20,.55), rgba(18,18,20,.2) 40%, rgba(18,18,20,.9)); }
.no-webgl .hero3d__poster { opacity: 1; }
.hero3d__vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14,14,17,.62) 0%, rgba(14,14,17,.18) 16%, transparent 26%), linear-gradient(0deg, rgba(14,14,17,.86) 0%, rgba(14,14,17,.42) 36%, transparent 58%); }
.hero3d__ui { position: absolute; inset: 0; pointer-events: none; }
.hero3d__ui a, .hero3d__ui button { pointer-events: auto; }
.hstep {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(90px, 13vh, 150px);
  max-width: 1100px; opacity: 0; visibility: hidden;
}
.hstep.is-on { visibility: visible; }
.hstep .eyebrow { margin-bottom: 20px; }
.hstep h1, .hstep h2 { font-size: clamp(2.6rem, 8.6vw, 8.4rem); text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.hstep h2 em, .hstep h1 em { font-style: normal; color: var(--yellow); }
.hstep p { margin-top: 22px; max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.2rem); color: #d8d7dc; }
.hstep .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hstep--first { opacity: 1; visibility: visible; }
.no-webgl .hstep:not(.hstep--first) { display: none; }
.no-webgl .hero3d { height: auto; }
.no-webgl .hero3d canvas, .no-webgl .hprogress, .no-webgl .hlabel { display: none; }
.hlabel {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); opacity: 0;
  background: var(--yellow); color: var(--ink); font-family: var(--f-display); font-stretch: 110%; font-weight: 800;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--r-btn); white-space: nowrap;
}
.hlabel::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 22px; background: var(--yellow); transform: translateX(-50%); }
.hprogress { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.hprogress span { width: 4px; height: 34px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.hprogress span i { position: absolute; inset: 0; background: var(--yellow); transform: scaleY(0); transform-origin: top; }
.hscroll {
  transition: opacity .4s;
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #bdbcc2;
}
.hscroll::after { content: ""; width: 1.5px; height: 46px; background: linear-gradient(var(--yellow), transparent); animation: scrollcue 2s var(--ease-io) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hmeta { position: absolute; top: calc(var(--header-h) + 18px); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.hmeta b { color: #fff; font-weight: 600; }
@media (max-width: 700px) {
  .hprogress { display: none; }
  .hscroll { display: none; }
  .hlabel { font-size: .64rem; padding: 6px 9px; }
  .hmeta span:last-child { display: none; }
  .hstep { bottom: 84px; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--yellow); color: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.6rem); padding: .5em 0; display: inline-flex; align-items: center; gap: .8em; padding-right: .8em; white-space: nowrap;
}
.marquee__track span::after { content: ""; width: .5em; height: .5em; background: var(--blue); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / chiffres ---------- */
.intro-grid { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 1000px) { .intro-grid { grid-template-columns: 1.1fr 1fr; } }
.stats { align-self: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--paper); padding: clamp(22px, 3vw, 40px); }
.stat b { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.9rem, 3.8vw, 3.6rem); line-height: 1; letter-spacing: -.03em; color: var(--blue); white-space: nowrap; }
.stat b small { font-size: .45em; }
.stat > span { display: block; margin-top: 10px; font-size: .92rem; color: #4a4a50; }
.stat--y { background: var(--yellow); }
.stat--q { position: relative; }
.stat__logo { position: absolute; top: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); width: clamp(34px, 3.4vw, 48px); height: auto; }
.qualif-head { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); margin: 24px 0 28px; }
.qualif-head__logo { width: clamp(72px, 8vw, 120px); height: auto; flex-shrink: 0; }
.stat--y b { color: var(--ink); }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }
.timeline b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.4rem; color: var(--blue); }

/* ---------- Liste activités (accueil) ---------- */
.acts { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.act a {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--line-dark); overflow: hidden;
}
.act__n { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; color: var(--stone); }
.act__t { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.35rem, 5.2vw, 4.6rem); line-height: .95; letter-spacing: -.02em; transition: transform .6s var(--ease-out), color .3s; overflow-wrap: break-word; }
.act__d { grid-column: 2; font-size: .98rem; color: #a9a8ae; max-width: 60ch; margin-top: 10px; }
.act__go { width: 58px; height: 58px; border-radius: var(--r-btn); display: grid; place-items: center; border: 1.5px solid var(--line-dark); transition: .5s var(--ease-out); }
.act a:hover .act__t { transform: translateX(14px); color: var(--yellow); }
.act__go svg { transition: transform .5s var(--ease-out); }
.act a:hover .act__go { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.act a:hover .act__go svg { transform: rotate(-45deg); }
.act-cursor {
  position: fixed; left: 0; top: 0; z-index: 1; width: 320px; aspect-ratio: 4/3; pointer-events: none;
  border-radius: var(--r); overflow: hidden; opacity: 0; transform: translate(32px, -50%) scale(.8);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.act-cursor.is-on { opacity: .85; transform: translate(32px, -50%) scale(1); }
.act-cursor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.act-cursor img.is-on { opacity: 1; }
@media (hover: none), (max-width: 900px) { .act-cursor { display: none; } .act__go { width: 44px; height: 44px; } .act a { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; } }

/* ---------- Process ---------- */
.process { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(5, 1fr); } }
.pstep { position: relative; background: #fff; border-radius: var(--r-lg); padding: 28px 24px 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); transition: transform .6s var(--ease-out), background .3s; }
.pstep:hover { transform: translateY(-8px); background: var(--yellow); }
.pstep::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--blue); }
.pstep h3 { font-size: 1.15rem; margin: 40px 0 10px; }
.pstep p { margin: 0; font-size: .93rem; color: #46464c; }

/* ---------- Media / images ---------- */
.media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4/5; }
.media--wide { aspect-ratio: 16/10; }
.media--cine { aspect-ratio: 21/9; }
[data-parallax] img { transform: scale(1.18); will-change: transform; }
.clip-reveal { clip-path: inset(18% 8% 18% 8% round var(--r-lg)); transition: clip-path 1.4s var(--ease-out); }
.clip-reveal.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.media figcaption, .tag {
  position: absolute; left: 16px; bottom: 16px; background: rgba(18,18,20,.72); color: #fff; backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: var(--r-btn); font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 100px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }

/* ---------- Bande éco (jaune) ---------- */
.eco { background: var(--yellow); color: var(--ink); overflow: hidden; }
.eco .eyebrow { color: var(--blue); }
.eco__big { font-size: clamp(2.1rem, 9vw, 9rem); }
.eco__grid { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .eco__grid { grid-template-columns: repeat(3, 1fr); } }
.eco__grid > div { border-top: 2px solid var(--ink); padding-top: 22px; }
.eco__grid h3 { margin-bottom: 14px; }

/* ---------- Galerie bandeau horizontal ---------- */
.hscroller { position: relative; }
.hscroller__track { display: flex; gap: 16px; will-change: transform; }
.hscroller__item { flex: 0 0 auto; width: clamp(260px, 34vw, 520px); }
.hscroller__item:nth-child(even) { margin-top: clamp(30px, 6vw, 90px); }
.hscroller__item .media { aspect-ratio: 4/5; }
.hscroller__item:nth-child(3n) .media { aspect-ratio: 1; }
.hscroller-pin { height: 300vh; }
.hscroller-pin .hscroller__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .hscroller-pin { height: auto; }
  .hscroller-pin .hscroller__sticky { position: static; height: auto; padding-block: 40px; }
  .hscroller__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); transform: none !important; }
  .hscroller__item { scroll-snap-align: start; width: 78vw; }
  .hscroller__item:nth-child(even) { margin-top: 0; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--f-display); font-stretch: 112%; font-weight: 750; font-size: clamp(1.05rem, 1.6vw, 1.4rem); text-transform: none; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: 0 0 40px; height: 40px; border-radius: var(--r-btn); background: var(--yellow); position: relative; transition: transform .5s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 13px; right: 13px; top: 19px; height: 2px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease-out); }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .faq__a { padding: 0 60px 28px 0; max-width: 75ch; color: #3e3e44; }
.dark .faq, .dark .faq details { border-color: var(--line-dark); }
.dark .faq .faq__a { color: #b9b8bd; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta__inner { position: relative; z-index: 1; display: grid; gap: 40px; }
@media (min-width: 960px) { .cta__inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; } }
.cta__big { font-size: clamp(2rem, 4.6vw, 5rem); }
.cta__big em { font-style: normal; color: var(--yellow); }
.cta__side { display: grid; gap: 18px; }
.cta__side a.contact-line { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-weight: 600; font-size: 1.05rem; }
.cta__side a.contact-line:hover { color: var(--yellow); }
.stripes { height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); }

/* ---------- Footer ---------- */
.site-footer { overflow: hidden; background: #fff; color: #3e3e46; border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 110px) 0 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .78rem; letter-spacing: .16em; font-stretch: 100%; color: var(--blue); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-brand .brand { display: inline-block; margin-bottom: 22px; }
.footer-bottom { margin-top: clamp(50px, 7vw, 90px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: .82rem; color: #65645e; }
.footer-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(4rem, 19vw, 19rem); line-height: .8; letter-spacing: -.04em; color: #f1efe9; margin-top: 60px; user-select: none; white-space: nowrap; }
.qualibat { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-size: .85rem; line-height: 1.35; }
.qualibat b { color: var(--blue); font-family: var(--f-display); font-weight: 800; }
.qualibat__logo { width: 52px; height: auto; flex-shrink: 0; }

/* ---------- Page hero (pages intérieures) ---------- */
.phero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; padding: calc(var(--header-h) + 60px) 0 clamp(48px, 7vw, 96px); }
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 115%; object-fit: cover; transform-origin: center; animation: kenburns 2.4s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.18); filter: brightness(.4); } to { transform: scale(1); filter: none; } }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,20,.55) 0%, rgba(18,18,20,.15) 35%, rgba(18,18,20,.92) 100%); }
.phero .wrap { position: relative; }
.phero h1 { font-size: min(10rem, max(1.5rem, calc(96vw / var(--len, 8)))); margin: 18px 0 26px; }
.phero .lead { color: #e3e2e6; }
.phero--short { min-height: 62svh; }
.phero--plain { min-height: auto; background: var(--ink); padding-bottom: clamp(40px, 6vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .82rem; color: #b9b8be; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--yellow); }
.crumbs a:hover { color: var(--yellow); }
.phero__foot { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; }
.phero__index { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(4rem, 12vw, 12rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); position: absolute; right: var(--gutter); top: calc(var(--header-h) + 30px); }

/* ---------- Cartes points ---------- */
.cards { display: grid; gap: 14px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; position: relative; overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(18,18,20,.08); }
.card__ico { width: 52px; height: 52px; border-radius: var(--r); background: var(--yellow); display: grid; place-items: center; margin-bottom: 40px; }
.card__ico svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; margin-bottom: 12px; }
.card p { margin: 0; font-size: .95rem; color: #4a4a50; }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card p { color: #a9a8ae; }

.prose { max-width: 64ch; }
.prose p { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); margin: 1.6em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); }

.next-act { display: block; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 80px); }
.next-act small { display: block; color: var(--stone); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; margin-bottom: 18px; }
.next-act strong { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 7vw, 6.4rem); line-height: .9; display: block; transition: transform .7s var(--ease-out), color .3s; }
.next-act:hover strong { color: var(--yellow); transform: translateX(16px); }
.next-act img { position: absolute; right: -4%; top: 50%; width: 40%; max-width: 520px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); transform: translateY(-50%) rotate(4deg) scale(.9); opacity: .0; transition: .7s var(--ease-out); }
.next-act:hover img { opacity: .9; transform: translateY(-50%) rotate(-2deg) scale(1); }
@media (max-width: 800px) { .next-act img { display: none; } }

.media--photo { aspect-ratio: 3 / 2; }
.photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .photo-grid { grid-template-columns: 1fr; } }
.mini-gallery { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); }
.mini-gallery .media:nth-child(1) { grid-column: span 12; aspect-ratio: 21/10; }
.mini-gallery .media:nth-child(2) { grid-column: span 7; aspect-ratio: 4/3; }
.mini-gallery .media:nth-child(3) { grid-column: span 5; aspect-ratio: auto; }
@media (max-width: 700px) { .mini-gallery .media { grid-column: span 12 !important; aspect-ratio: 4/3 !important; } }

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { border: 1.5px solid var(--line); background: transparent; border-radius: var(--r-btn); padding: 10px 18px; font-weight: 600; font-size: .9rem; transition: .3s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.gallery { columns: 1; column-gap: 14px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1100px) { .gallery { columns: 3; } }
.gallery .g-item { break-inside: avoid; margin-bottom: 14px; display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; transition: opacity .4s, transform .5s var(--ease-out); }
.gallery .g-item.is-hidden { display: none; }
.gallery .media img { transition: transform 1.2s var(--ease-out); }
.gallery .g-item:hover .media img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,10,12,.94); display: none; align-items: center; justify-content: center; padding: 70px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: var(--r); }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #ddd; margin: 0; padding: 0 70px; }
.lightbox button { position: absolute; border: 0; background: var(--yellow); color: var(--ink); width: 52px; height: 52px; border-radius: var(--r-btn); font-size: 1.4rem; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); } .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 90px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.form { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,22,113,.14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-weight: 600; font-size: .88rem; margin-bottom: 10px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: var(--r-btn); border: 1.5px solid var(--line); background: #fff; font-size: .9rem; font-weight: 600; transition: .25s; }
.chips input:checked + span { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 12px; font-size: .85rem; color: #55555b; align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.form-msg { grid-column: 1/-1; padding: 16px 18px; border-radius: var(--r); font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e3f6dd; color: #1d5a12; }
.form-msg.err { display: block; background: #fde3e0; color: #8a1a10; }
.info-list { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.info-list li { padding: 20px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 4px; }
.info-list small { color: var(--stone); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.info-list a:hover { color: var(--yellow); }
.todo { background: var(--yellow); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* ---------- Texte légal ---------- */
.legal { max-width: 80ch; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin: 2em 0 .6em; }

/* ---------- Animations d'apparition ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js .split-words.is-in .w > span { transform: none; }

@media (max-width: 1080px) {
  .nav__list, .nav .btn { display: none; }
  .burger { display: block; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .split-words .w > span { transform: none; }
  .clip-reveal { clip-path: none; }
  [data-parallax] img { transform: none; }
  .hero3d { height: auto; }
  .hero3d__sticky { height: 100svh; }
}
