/* =====================================================================
   CZB 33 — Architectural Premium · Dark Edition
   Design system : tokens, base, composants, pages
   ===================================================================== */
:root {
  --black: #0B0B0C;
  --black-rgb: 11, 11, 12;
  --graphite-rgb: 23, 25, 28;
  --gold-rgb: 243, 182, 63;
  --white-rgb: 244, 242, 237;
  --alt: #111214;
  --graphite: #17191C;
  --slate: #25282C;
  --white: #F4F2ED;
  --text: #D8D5CE;
  --muted: #A7A39B;
  --disabled: #7C7973;
  --gold: #F3B63F;
  --orange: #F39800;
  --error: #F07A6A;
  --line: rgba(var(--white-rgb),  .09);
  --line-strong: rgba(var(--white-rgb),  .16);
  --gold-line: rgba(var(--gold-rgb),  .45);

  --f-head: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 136px);
  --r-sm: 6px;
  --r-md: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; color: var(--white); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 6.4vw, 5.75rem); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.06; letter-spacing: -.025em; }
h3 { font-size: clamp(1.1875rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--white); font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: var(--alt); }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 0.8125rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.6; color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 820px; }
.head .eyebrow { margin-bottom: 0; }
.head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .head--split { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.prose p { color: var(--text); }
.prose h2 { font-size: clamp(1.625rem, 2.8vw, 2.5rem); margin: 0 0 20px; }
.prose h3 { margin: 32px 0 12px; }
.prose p + h2 { margin-top: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--r-sm);
  font: 600 1rem/1.2 var(--f-body); border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  text-align: center;
}
.btn svg { flex: none; }
.btn--primary { background: var(--gold); color: var(--black); }
.btn--primary:hover { background: var(--orange); }
.btn--secondary { border-color: rgba(var(--white-rgb),  .35); color: var(--white); }
.btn--secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn--wa { background: var(--graphite); color: var(--white); border-color: var(--gold-line); }
.btn--wa:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }
.btn[disabled] { background: var(--slate); color: var(--disabled); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(var(--black-rgb),  .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: transform .35s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font: 600 1.0625rem/1.1 var(--f-head); letter-spacing: .02em; }
.brand small { font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text); border-radius: var(--r-sm); transition: color .2s;
  background: none; border: 0;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item:focus-within > .nav__link { color: var(--gold); }
.nav__link[aria-current="page"] { position: relative; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--gold); }
.nav__sub {
  position: absolute; top: 100%; left: -8px; min-width: 290px; padding: 10px;
  background: var(--graphite); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .22s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub, .nav__item.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 0.9062rem; color: var(--text); }
.nav__sub a:hover { background: var(--slate); color: var(--gold); }
.nav__sub .nav__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; color: var(--gold); font-weight: 600; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); white-space: nowrap; min-height: 44px; padding: 0 6px; }
.header__phone svg { color: var(--gold); }
.header__phone:hover { color: var(--gold); }
.header__cta { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: none; place-items: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--white); box-shadow: 0 -6px 0 var(--white), 0 6px 0 var(--white); transition: .25s; }
.burger[aria-expanded="true"] span { background: transparent; box-shadow: none; }
.burger[aria-expanded="true"] span::before, .burger[aria-expanded="true"] span::after { content: ""; position: absolute; width: 18px; height: 1.5px; background: var(--white); }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg); }
.burger span { position: relative; }
.burger[aria-expanded="true"] span::before, .burger[aria-expanded="true"] span::after { left: 0; top: 0; }

.nav__item { display: flex; align-items: center; }
.nav__link { white-space: nowrap; }
@media (max-width: 1299px) { .header__phone span { display: none; } }
@media (max-width: 1199px) {
  .nav__link { padding: 10px 9px; font-size: 0.9062rem; }
  .header__cta { display: none; }
  .header__phone { width: 44px; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
}
@media (max-width: 959px) {
  :root { --header-h: 68px; }
  .brand img { width: 42px; height: 42px; }
  .burger { display: grid; }
  .header__cta { display: none; }
  .header__phone { margin-left: auto; width: 44px; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99; margin: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--black); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .3s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font: 600 1.625rem/1.2 var(--f-head); color: var(--white); padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; display: grid; grid-template-rows: 0fr; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; transition: grid-template-rows .3s var(--ease-out), padding .3s var(--ease-out); }
  .nav__sub > div { overflow: hidden; min-height: 0; }
  .nav__item.is-open .nav__sub { grid-template-rows: 1fr; padding: 8px 0 12px; }
  .nav__sub a { padding: 12px 0; font-size: 1rem; }
  .nav__sub .nav__all { border: 0; }
  .nav__mobile-cta { display: grid !important; gap: 12px; margin-top: 28px; }
  .nav__item { flex-wrap: wrap; }
  .nav__item > .nav__link:first-child { flex: 1; width: auto; }
  .nav__item > .nav__toggle { width: 56px; margin: 0 !important; justify-content: center !important; padding: 0 !important; }
  .nav__sub { flex-basis: 100%; }
  .nav__chev { transition: transform .25s; }
  .nav__item.is-open .nav__chev { transform: rotate(180deg); }
}
.nav__mobile-cta { display: none !important; }
body.nav-open { overflow: hidden; }

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 80px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { object-position: 60% 50%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--black-rgb), .94) 0%, rgba(var(--black-rgb), .82) 45%, rgba(var(--black-rgb), .25) 80%),
  linear-gradient(0deg, rgba(var(--black-rgb), .95) 0%, rgba(var(--black-rgb), 0) 50%); }
.hero__content { position: relative; max-width: 880px; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; color: var(--muted); font-size: 0.875rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { color: var(--gold); }

/* ---------- Page hero (pages intérieures) ---------- */
.phero { position: relative; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; border-bottom: 1px solid var(--line); }
.phero--img { min-height: clamp(460px, 62vh, 640px); display: flex; align-items: flex-end; }
.phero__media, .phero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--black-rgb), .95) 0%, rgba(var(--black-rgb), .9) 50%, rgba(var(--black-rgb), .5) 100%),
  linear-gradient(0deg, rgba(var(--black-rgb), 1) 0%, rgba(var(--black-rgb), 0) 55%); }
/* sur mobile le texte couvre toute la largeur : le voile s'épaissit partout */
@media (max-width: 759px) {
  .hero__media::after, .phero__media::after { background:
    linear-gradient(0deg, rgba(var(--black-rgb), .96) 0%, rgba(var(--black-rgb), .86) 55%, rgba(var(--black-rgb), .55) 100%); }
}
.phero__content { position: relative; max-width: 860px; }
.phero h1 { font-size: clamp(2.375rem, 5.2vw, 4.75rem); margin-bottom: 24px; }
.phero .lead { margin-bottom: 32px; }
.crumbs { margin-bottom: 28px; font-size: 0.8438rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--disabled); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- Bandeau de confiance ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 16px; padding: 32px 28px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item svg { flex: none; color: var(--gold); }
.trust__item strong { display: block; font: 600 1.0625rem/1.25 var(--f-head); }
.trust__item span { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 959px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item { padding: 24px 16px; }
  .trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .trust__item { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- Expertise cards ---------- */
.xcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.xcard {
  display: flex; flex-direction: column; background: var(--graphite); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.xcard:hover { border-color: var(--gold-line); }
.xcard__img { aspect-ratio: 4 / 3; overflow: hidden; }
.xcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.xcard:hover .xcard__img img { transform: scale(1.03); }
.xcard__body { padding: 28px; display: grid; gap: 12px; flex: 1; align-content: start; }
.xcard__num { font: 600 0.8125rem/1 var(--f-body); color: var(--orange); letter-spacing: .12em; }
.xcard__body p { color: var(--muted); font-size: 0.9375rem; }
.xcard__body .link-arrow { margin-top: 8px; }
@media (max-width: 1199px) { .xcards { grid-template-columns: 1fr 1fr; } .xcards > :last-child:nth-child(odd) { grid-column: 1 / -1; } .xcards > :last-child:nth-child(odd) .xcard__img { aspect-ratio: 21 / 9; } }
@media (max-width: 599px) {
  .xcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .xcards::-webkit-scrollbar { display: none; }
  .xcards > .xcard { flex: 0 0 84%; scroll-snap-align: start; }
  .xcards > :last-child:nth-child(odd) .xcard__img { aspect-ratio: 4 / 3; }
}

/* ---------- Service lines ---------- */
.slines { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.slines a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 20px;
  padding: 24px 16px 24px 4px; border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease), color .25s;
}
.slines a:hover { background: var(--graphite); }
.slines a:hover h3 { color: var(--gold); }
.slines__ic { font-size: 1.625rem; line-height: 1; text-align: center; }
.slines h3 { transition: color .25s; }
.slines p { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; max-width: 70ch; }
.slines svg { color: var(--muted); transition: transform .25s, color .25s; }
.slines a:hover svg { color: var(--gold); transform: translateX(4px); }
@media (max-width: 599px) { .slines a { grid-template-columns: 36px 1fr 20px; gap: 14px; } .slines p { display: none; } }

/* ---------- Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; grid-auto-flow: dense; }
.gal__item {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--graphite);
  grid-column: span var(--span, 4); aspect-ratio: 4 / 3; cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%;
}
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal__item:hover img { transform: scale(1.03); }
.gal__cap {
  position: absolute; inset: auto 0 0; padding: 40px 18px 16px; text-align: left;
  background: linear-gradient(0deg, rgba(var(--black-rgb), .92), rgba(var(--black-rgb), 0));
  font-size: 0.875rem; color: var(--white); opacity: 0; transform: translateY(8px); transition: .35s var(--ease);
}
.gal__cap b { display: block; font: 600 0.6875rem/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.gal__item:hover .gal__cap, .gal__item:focus-visible .gal__cap { opacity: 1; transform: none; }
@media (hover: none) { .gal__cap { opacity: 1; transform: none; } }
.gal--editorial .gal__item:nth-child(9n+1) { grid-column: span 7; grid-row: span 2; aspect-ratio: auto; }
.gal--editorial .gal__item:nth-child(9n+2) { grid-column: span 5; }
.gal--editorial .gal__item:nth-child(9n+3) { grid-column: span 5; }
.gal--editorial .gal__item:nth-child(9n+4),
.gal--editorial .gal__item:nth-child(9n+5),
.gal--editorial .gal__item:nth-child(9n+6) { grid-column: span 4; }
.gal--editorial .gal__item:nth-child(9n+7) { grid-column: span 5; }
.gal--editorial .gal__item:nth-child(9n+8) { grid-column: span 7; grid-row: span 2; aspect-ratio: auto; }
.gal--editorial .gal__item:nth-child(9n+9) { grid-column: span 5; }
.gal__item[hidden] { display: none; }
@media (max-width: 959px) {
  .gal { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gal .gal__item, .gal--editorial .gal__item:nth-child(n) { grid-column: span 1; grid-row: span 1; aspect-ratio: 1; }
  .gal--editorial .gal__item:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 16 / 10; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters a, .filters button {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: none; font-size: 0.9062rem; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 8px;
  transition: .2s;
}
.filters a:hover, .filters button:hover { border-color: var(--gold-line); color: var(--gold); }
.filters [aria-pressed="true"], .filters [aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--black); }
.filters small { opacity: .7; font-size: 0.75rem; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(var(--black-rgb), .96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: .3s var(--ease); }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); color: var(--muted); font-size: 0.875rem; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 6vw, 96px); min-height: 0; }
.lb__stage img { max-height: calc(100svh - 170px); width: auto; max-width: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lb__cap { padding: 16px var(--gutter) 24px; text-align: center; color: var(--white); min-height: 64px; }
.lb__btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(var(--graphite-rgb), .8); color: var(--white); transition: border-color .2s, color .2s, transform .1s; }
.lb__btn:hover { border-color: var(--gold); color: var(--gold); }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: clamp(8px, 2vw, 32px); }
.lb__next { right: clamp(8px, 2vw, 32px); }
@media (max-width: 599px) { .lb__prev, .lb__next { top: auto; bottom: -56px; transform: none; } .lb__stage { padding: 0 8px; } .lb__cap { padding-top: 72px; } }

/* ---------- L'entreprise (accueil) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.stack { position: relative; padding: 0 12% 18% 0; }
.stack__a { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 5; }
.stack__b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 8px solid var(--black); }
.stack img { width: 100%; height: 100%; object-fit: cover; }
.stack__badge { position: absolute; left: 24px; top: 24px; background: var(--black); border: 1px solid var(--gold-line); border-radius: var(--r-md); padding: 16px 20px; display: grid; }
.stack__badge strong { font: 600 2.75rem/1 var(--f-head); color: var(--gold); }
.stack__badge span { font-size: 0.8125rem; color: var(--muted); }
.facts { list-style: none; margin: 32px 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { color: var(--white); }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }
.quote { margin: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); font: 500 clamp(1.1875rem, 1.7vw, 1.5rem)/1.4 var(--f-head); color: var(--white); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: s; }
.step { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.step__num { display: block; font: 600 clamp(4rem, 7vw, 6.5rem)/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.2px var(--gold); margin-bottom: 24px; letter-spacing: -.04em; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); }
@media (max-width: 759px) { .steps { grid-template-columns: 1fr; } .step__num { font-size: 4rem; margin-bottom: 12px; } }

/* ---------- Garanties ---------- */
.warranty { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.warranty__img { min-height: 420px; }
.warranty__img img { width: 100%; height: 100%; object-fit: cover; }
.warranty__body { background: var(--graphite); padding: clamp(32px, 5vw, 64px); }
.warranty__list { list-style: none; margin: 32px 0 0; padding: 0; }
.warranty__list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.warranty__list svg { color: var(--gold); }
.warranty__list li.is-urgent svg { color: var(--orange); }
.warranty__list strong { display: block; font: 600 1.125rem/1.3 var(--f-head); margin-bottom: 4px; }
.warranty__list span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 959px) { .warranty { grid-template-columns: 1fr; } .warranty__img { min-height: 260px; } }

/* ---------- Devis ---------- */
.devis { position: relative; overflow: hidden; }
.devis__bg, .devis__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.devis__bg::after { content: ""; position: absolute; inset: 0; background: rgba(var(--black-rgb), .88); }
.devis__grid { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (min-width: 960px) { .devis__grid { grid-template-columns: 1fr 1.05fr; } }
.checks { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.contact-lines { display: grid; gap: 4px; margin-top: 8px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; font: 600 1.25rem/1.2 var(--f-head); color: var(--white); }
.contact-lines a:hover { color: var(--gold); }
.contact-lines svg { color: var(--gold); }
.form {
  background: var(--graphite); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--r-md); padding: clamp(24px, 4vw, 48px); display: grid; gap: 20px;
}
.form h3 { margin-bottom: 4px; }
.form__hint { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--white); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--black); border: 1px solid var(--line-strong); color: var(--white); font: 400 1rem/1.4 var(--f-body);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A7A39B' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--disabled); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__err { color: var(--error); font-size: 0.8438rem; min-height: 0; }
.field__err:empty { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }
.form__legal { color: var(--muted); font-size: 0.8125rem; }
.form__status { font-size: 0.9062rem; color: var(--text); padding: 12px 14px; border-radius: var(--r-sm); background: var(--black); border: 1px solid var(--line-strong); }
.form__status:empty { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .faq { grid-template-columns: 5fr 7fr; gap: 80px; } .faq__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font: 600 clamp(1.0625rem, 1.4vw, 1.25rem)/1.35 var(--f-head); color: var(--white); min-height: 44px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--gold); }
.faq__list summary i { flex: none; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; transition: transform .25s var(--ease), border-color .25s; }
.faq__list summary i::before, .faq__list summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--gold); transform: translate(-50%, -50%); }
.faq__list summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq__list details[open] summary i { border-color: var(--gold-line); }
.faq__list details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__list details p { padding: 0 48px 24px 0; color: var(--text); }

/* ---------- Zone ---------- */
.zone { position: relative; overflow: hidden; }
.zone__big { position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); font: 700 clamp(13.75rem, 34vw, 32.5rem)/.8 var(--f-head); color: transparent; -webkit-text-stroke: 1.2px rgba(var(--gold-rgb), .22); letter-spacing: -.06em; pointer-events: none; user-select: none; }
.zone__grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.zone__grid a, .zone__grid span {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(var(--graphite-rgb), .7); font-weight: 500; color: var(--white);
  transition: .25s var(--ease);
}
.zone__grid a:hover { border-color: var(--gold-line); color: var(--gold); }
.zone__grid a svg { transition: transform .25s var(--ease); }
.zone__grid a:hover svg { transform: translateX(4px); }
.zone__grid svg { color: var(--gold); flex: none; }
@media (max-width: 1199px) { .zone__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) { .zone__grid { grid-template-columns: 1fr 1fr; } .zone__grid a, .zone__grid span { min-height: 56px; padding: 12px 14px; font-size: 0.9062rem; } }
.sectors { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sector { display: grid; grid-template-columns: 1fr; gap: 12px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .sector { grid-template-columns: 4fr 8fr; } }
.sector p { color: var(--text); margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; color: var(--white); transition: .2s; }
.chips a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Cards & panels (pages intérieures) ---------- */
.panel { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(24px, 3vw, 40px); }
.panel h2, .panel h3 { margin-bottom: 20px; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); font-size: 0.9688rem; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold); transform: rotate(-45deg); }
.two { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (min-width: 960px) { .two { grid-template-columns: 7fr 5fr; } .two .panel { position: sticky; top: calc(var(--header-h) + 32px); } }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; transition: .25s var(--ease); display: grid; gap: 10px; align-content: start; }
a.card:hover { border-color: var(--gold-line); }
a.card:hover h3 { color: var(--gold); }
.card__ic { font-size: 1.625rem; line-height: 1; }
.card p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 959px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .cards { grid-template-columns: 1fr; } }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { display: grid; grid-template-columns: 200px 1fr; background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: .25s var(--ease); }
.svc:hover { border-color: var(--gold-line); }
.svc:hover h2 { color: var(--gold); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { padding: 28px; display: grid; gap: 10px; align-content: start; }
.svc__body h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; transition: color .25s; }
.svc__body p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 1099px) { .svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .svc { grid-template-columns: 1fr; } .svc__img { aspect-ratio: 16 / 9; } }

/* ---------- CTA band ---------- */
.cta { border: 1px solid var(--gold-line); border-radius: var(--r-md); background: var(--graphite); padding: clamp(32px, 5vw, 64px); display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 960px) { .cta { grid-template-columns: 1.4fr 1fr; } .cta .actions { justify-content: flex-end; } }
.cta h2 { font-size: clamp(1.625rem, 3vw, 2.625rem); margin-bottom: 12px; }
.cta p { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 96px) 0 0; font-size: 0.9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.2fr; gap: 40px; }
.footer h2 { font: 600 0.8125rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--gold); }
.footer__slogan { font: 500 1.125rem/1.4 var(--f-head); color: var(--white); margin: 20px 0 12px; }
.footer__phone { display: inline-flex; margin-top: 8px; font: 600 1.375rem/1.2 var(--f-head); color: var(--white); }
.footer__bottom { margin-top: 64px; padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--muted); font-size: 0.8438rem; }
.footer__bottom a { color: var(--text); }
.footer__credit a { color: var(--gold); }
.footer__credit a strong { color: inherit; font-weight: 600; }
.footer__credit a:hover, .footer__credit a:focus-visible { text-decoration: underline; }
@media (max-width: 1199px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer__contact { grid-column: 1 / -1; } }

/* ---------- Floating & mobile bar ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); border: 1px solid var(--gold-line); color: var(--gold); box-shadow: 0 12px 32px rgba(0,0,0,.4); transition: .25s var(--ease); }
.fab:hover { border-color: var(--gold); color: var(--white); }
.mbar { display: none; }
@media (max-width: 599px) {
  .fab { display: none; }
  .mbar { position: fixed; inset: auto 0 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: rgba(var(--black-rgb), .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; border-radius: var(--r-sm); font-size: 0.7812rem; font-weight: 600; color: var(--white); }
  .mbar svg { color: var(--gold); }
  .mbar a.mbar__cta { background: var(--gold); color: var(--black); flex-direction: row; font-size: 0.9062rem; }
  .mbar a.mbar__cta svg { color: var(--black); }
  body { padding-bottom: 76px; }
}

/* ---------- Mentions / texte long ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); margin: 48px 0 16px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: var(--white); }
.todo { color: var(--orange); font-style: normal; }
@media (max-width: 599px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 12px; } }

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


.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.center { text-align: center; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Les <picture> remplissent leur cadre */
.gal__item picture, .xcard__img picture, .stack picture, .warranty__img picture,
.svc__img picture, .devis__bg picture, .hero__media picture, .phero__media picture { width: 100%; height: 100%; }

/* Menu mobile : le flou du header crée un bloc conteneur, on le retire à l'ouverture */
body.nav-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); transform: none; }
@media (max-width: 599px) { .xcards { scroll-padding-inline: var(--gutter); } }
@media (max-width: 959px) { .nav__item > .nav__toggle { align-self: stretch; min-height: 0; } }
.footer__contact li { display: flex; gap: 10px; align-items: baseline; }


/* =====================================================================
   MOTION — « le chantier qui monte »
   Un seul moment signé : l'ouverture de l'accueil (la photo se découvre
   de bas en haut, le titre s'élève mot à mot, le filet doré se trace).
   Le reste explique un état : séquence de la méthode, continuité de la
   lightbox, ouverture des accordéons, retour des boutons.
   Contenu visible par défaut : tout est déclenché par .js (posée dans le
   <head>) et les animations CSS se terminent même si site.js échoue.
   ===================================================================== */
:root { interpolate-size: allow-keywords; }
::selection { background: var(--gold); color: var(--black); }

/* --- Ouverture de l'accueil --- */
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lift { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js .hero__media { animation: unveil 1.1s var(--ease-out) both; }
.js .hero__media img { animation: settle 1.6s var(--ease-out) both; }
.js .hero h1 .w > span { animation: rise .8s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * 55ms); }
.js .hero .eyebrow { animation: fade .5s ease-out .3s both; }
.js .hero .lead { animation: lift .7s var(--ease-out) .85s both; }
.js .hero .actions { animation: lift .7s var(--ease-out) .95s both; }
.js .hero__meta { animation: fade .6s ease-out 1.15s both; }

/* Pages intérieures : même matière, plus courte */
.js .phero__media { animation: unveil .9s var(--ease-out) both; }
.js .phero__media img { animation: settle 1.3s var(--ease-out) both; }
.js .phero h1 { animation: lift .7s var(--ease-out) .2s both; }
.js .phero .lead, .js .phero .actions { animation: lift .7s var(--ease-out) .32s both; }

/* --- Méthode : la séquence 01 → 02 → 03 se lit --- */
.step { position: relative; border-bottom-color: var(--line); }
.step::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform-origin: left; transform: scaleX(1); opacity: .55; }
.js .steps.reveal { opacity: 1; transform: none; }
.js .steps.reveal .step__num { clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease-out); transition-delay: calc(var(--i) * 260ms); }
.js .steps.reveal .step::after { transform: scaleX(0); transition: transform .55s var(--ease-out); transition-delay: calc(var(--i) * 260ms + .15s); }
.js .steps.reveal .step h3, .js .steps.reveal .step p { opacity: 0; transform: translateY(10px); transition: opacity .4s ease-out, transform .5s var(--ease-out); transition-delay: calc(var(--i) * 260ms + .2s); }
.js .steps.reveal.is-in .step__num { clip-path: inset(0 0 0 0); }
.js .steps.reveal.is-in .step::after { transform: scaleX(1); }
.js .steps.reveal.is-in .step h3, .js .steps.reveal.is-in .step p { opacity: 1; transform: none; }

/* --- Apparitions de section : courtes, une fois --- */
.js .reveal { transition: opacity .5s ease-out, transform .6s var(--ease-out); }

/* --- Galerie : la photo se cadre, la légende monte --- */
.gal__item { transition: box-shadow .3s var(--ease-out); }
.gal__item:focus-visible { outline-offset: 3px; }

/* --- Lightbox : fond et légende ; l'image est animée en FLIP par site.js --- */
.lb { transition: opacity .3s var(--ease-out), visibility 0s linear .3s; }
.lb.is-open { transition: opacity .3s var(--ease-out), visibility 0s; }
.lb__bar, .lb__cap, .lb__prev, .lb__next { transition: opacity .25s ease-out; }
.lb:not(.is-open) .lb__bar, .lb:not(.is-open) .lb__cap, .lb:not(.is-open) .lb__prev, .lb:not(.is-open) .lb__next { opacity: 0; }
.lb.is-open .lb__bar, .lb.is-open .lb__cap { transition-delay: .18s; }
.lb { transition: opacity .3s var(--ease-out), visibility 0s linear .3s, background-color .3s var(--ease-out); }
.lb.is-open { transition: opacity .3s var(--ease-out), visibility 0s, background-color .3s var(--ease-out); }
.lb.is-closing { background-color: rgba(var(--black-rgb),  0); }
.lb.is-closing .lb__bar, .lb.is-closing .lb__cap, .lb.is-closing .lb__prev, .lb.is-closing .lb__next { opacity: 0; transition-delay: 0s; transition-duration: .15s; }

/* --- FAQ : la réponse s'ouvre en hauteur (navigateurs récents) --- */
.faq__list details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }
.faq__list details p { transition: opacity .3s ease-out .05s; }
.faq__list details:not([open]) p { opacity: 0; }

/* --- Menu mobile : les entrées arrivent en liste --- */
@media (max-width: 959px) {
  .nav.is-open > * { animation: lift .45s var(--ease-out) both; }
  .nav.is-open > :nth-child(2) { animation-delay: 40ms; }
  .nav.is-open > :nth-child(3) { animation-delay: 80ms; }
  .nav.is-open > :nth-child(4) { animation-delay: 120ms; }
  .nav.is-open > :nth-child(5) { animation-delay: 160ms; }
  .nav.is-open > :nth-child(6) { animation-delay: 200ms; }
  .nav { transition: opacity .25s var(--ease-out), visibility 0s linear .25s, transform .3s var(--ease-out); }
  .nav.is-open { transition: opacity .3s var(--ease-out), visibility 0s, transform .3s var(--ease-out); }
}

/* --- Retour des actions --- */
.btn:active, .filters button:active, .lb__btn:active, .burger:active { transform: scale(.97); transition-duration: .1s; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.field.has-error .field__err { animation: fade .2s ease-out both; }
.field.is-shake input, .field.is-shake select, .field.is-shake textarea { animation: nudge .28s var(--ease-out); }
.form__status:not(:empty) { animation: lift .35s var(--ease-out) both; }
.header { transition: transform .35s var(--ease-out); }
.header.is-hidden { transition: transform .25s var(--ease-in); }

/* --- Réduire les animations : plus de déplacement, l'état reste lisible --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__media, .js .phero__media { animation: fade .4s ease-out both; }
  .js .hero__media img, .js .phero__media img { animation: none; }
  .js .hero h1 .w > span { animation: fade .4s ease-out .1s both; }
  .js .hero .lead, .js .hero .actions, .js .hero__meta, .js .phero h1, .js .phero .lead, .js .phero .actions { animation: fade .4s ease-out .15s both; }
  .js .reveal { transform: none; transition: opacity .3s ease-out; }
  .js .steps.reveal .step__num { clip-path: none; transition: opacity .3s ease-out; transition-delay: calc(var(--i) * 120ms); opacity: 0; }
  .js .steps.reveal.is-in .step__num { opacity: 1; }
  .js .steps.reveal .step::after { transform: none; transition: none; }
  .js .steps.reveal .step h3, .js .steps.reveal .step p { transform: none; transition: opacity .3s ease-out; transition-delay: calc(var(--i) * 120ms); }
  .nav.is-open > * { animation: fade .2s ease-out both; }
  .nav, .nav.is-open { transform: none; }
  .gal__item img, .xcard__img img { transition: none; }
  .gal__item:hover img, .xcard:hover .xcard__img img { transform: none; }
  .gal__cap { transform: none; transition: opacity .2s ease-out; }
  .faq__list details::details-content { transition: none; }
  .field.is-shake input, .field.is-shake select, .field.is-shake textarea { animation: none; }
  .form__status:not(:empty) { animation: fade .2s ease-out both; }
  .header, .header.is-hidden { transition: opacity .2s ease-out; }
  .header.is-hidden { transform: none; opacity: 0; pointer-events: none; }
  .btn:active, .filters button:active, .lb__btn:active, .burger:active { transform: none; }
  .link-arrow:hover svg, .slines a:hover svg, .zone__grid a:hover svg { transform: none; }
}


/* Lightbox : seul le fond s'estompe, l'image reste opaque pendant son vol */
.lb { opacity: 1; background-color: rgba(var(--black-rgb),  0); transition: background-color .3s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .3s; }
.lb.is-open { opacity: 1; background-color: rgba(var(--black-rgb),  .96); transition: background-color .3s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.lb.is-closing { background-color: rgba(var(--black-rgb),  0); }
.gal__item.is-flying picture { visibility: hidden; }
.gal__item.is-landing .gal__cap { opacity: 0; transform: none; }
.gal__item.is-landing img { transform: none; }
.gal__item.is-landing:focus-visible { outline-color: transparent; }
.gal__item:focus-visible { transition: outline-color .2s ease-out; }

/* Filtre actif : son libellé reste lisible au survol */
.filters [aria-pressed="true"]:hover, .filters [aria-current="page"]:hover { color: var(--black); border-color: var(--gold); }

/* View Transition des filtres : glissement 350 ms, sans fondu de la page entière */
::view-transition-group(*) { animation-duration: .35s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(root) { animation: none; opacity: 0; }
::view-transition-new(root) { animation: none; }

/* Le bouton WhatsApp reste au-dessus des instantanés de la View Transition */
.fab { view-transition-name: fab; }
::view-transition-old(*):only-child { animation-duration: .35s; animation-timing-function: cubic-bezier(.4, 0, 1, 1); }

/* ---------- Utilitaires (remplacent les styles en ligne) ---------- */
.mt-xs { margin-top: 10px; }
.mt-s { margin-top: 24px; }
.mt-m { margin-top: 32px; }
.mb-s { margin-bottom: 14px; }
.mb-m { margin-bottom: 32px; }
.h-sm, .panel__title { font-size: 1.5rem; line-height: 1.2; }
.sector__title { font-size: clamp(1.5rem, 2.4vw, 2.125rem); }
.card__title { font-size: 1.375rem; }
.card__big { font: 600 1.5rem/1.2 var(--f-head); color: var(--white); }
.card__big--sm { font-size: 1.0625rem; line-height: 1.3; overflow-wrap: break-word; }
.panel__note { font-size: .875rem; margin-top: 16px; }
.phero--center { min-height: 70vh; display: flex; align-items: center; }
.cards--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.nav__toggle { padding-left: 0; padding-right: 8px; margin-left: -10px; }
.brand picture { flex: none; }

/* Pas de mot isolé en fin de paragraphe */
p, li, dd, blockquote, .lead { text-wrap: pretty; }
.form__req { color: var(--muted); font-size: .875rem; margin: -8px 0 0; }

/* =====================================================================
   Emojis 3D détourés (bouclier = décennale, charpentier = 20 ans, cordiste = savoir-faire)
   ===================================================================== */
.emo { display: inline-block; flex: none; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.trust__item .emo { width: 60px; height: 60px; transition: transform .4s var(--ease-out); }
.trust__item:hover .emo { transform: translateY(-3px) rotate(-3deg); }
.hero__meta .emo { width: 24px; height: 24px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.warranty__list .emo { width: 44px; height: 44px; }
.warranty__list li { grid-template-columns: 48px 1fr; align-items: start; }
.card__ic .emo { width: 52px; height: 52px; }
.footer__contact .emo, .facts .emo { width: 22px; height: 22px; margin-right: 6px; filter: none; }
.panel__note .emo { width: 20px; height: 20px; filter: none; }
.stack__badge .stack__emo { width: 64px; height: 64px; margin: -6px 0 6px -4px; }
@media (max-width: 480px) { .trust__item .emo { width: 52px; height: 52px; } }

/* =====================================================================
   Accueil — « Des chantiers menés avec soin » : pile qui se rebat + cartes qui se retournent
   ===================================================================== */
.show { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.show__stage { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.show__deck { position: relative; aspect-ratio: 4 / 3; margin: 26px 26px 0 0; }
.show__card { position: absolute; inset: 0; border-radius: var(--r-md); overflow: hidden; background: var(--graphite);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); border: 1px solid var(--line-strong);
  transform-origin: 60% 100%; transition: transform .9s var(--ease-out), opacity .7s ease, filter .7s ease; will-change: transform; }
.show__card picture, .show__card img, .flip__face picture, .flip__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.show__card[data-pos="0"] { z-index: 5; transform: none; }
.show__card[data-pos="1"] { z-index: 4; transform: translate(14px, -14px) rotate(2.2deg) scale(.97); filter: brightness(.55); }
.show__card[data-pos="2"] { z-index: 3; transform: translate(26px, -26px) rotate(4.4deg) scale(.94); filter: brightness(.35); }
.show__card[data-pos="3"], .show__card[data-pos="4"] { z-index: 2; transform: translate(26px, -26px) rotate(4.4deg) scale(.94); opacity: 0; }
.show__card.is-leaving { z-index: 6; transform: translate(-18%, 6%) rotate(-9deg) scale(.96); opacity: 0; transition: transform .75s var(--ease-out), opacity .6s ease .1s; }
.show__card.is-entering { z-index: 6; transition: none; transform: translate(-18%, 6%) rotate(-9deg) scale(.96); opacity: 0; }
.show__card img { transition: transform 6s linear; }
.show__card[data-pos="0"] img { transform: scale(1.06); }
.show__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; color: var(--white); font-size: .9375rem;
  background: linear-gradient(0deg, rgba(var(--black-rgb), .92), rgba(var(--black-rgb), 0)); }
.show__cap b { display: block; color: var(--gold); font: 600 .75rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.show__card:not([data-pos="0"]) .show__cap { opacity: 0; }
.show__card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.show__ctrl { display: flex; align-items: center; gap: 16px; }
.show__btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--white); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.show__btn:hover { border-color: var(--gold); color: var(--gold); }
.show__count { font: 500 .875rem/1 var(--f-head); color: var(--muted); letter-spacing: .06em; }
.show__count b { color: var(--white); font-weight: 600; }

.show__side { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(16px, 2vw, 24px); margin-top: 26px; }
.flip { display: block; perspective: 1400px; min-height: 220px; border-radius: var(--r-md); }
.flip__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s var(--ease-out); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; border-radius: var(--r-md); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--line-strong); background: var(--graphite); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.flip__face--back { transform: rotateY(180deg); }
.flip__face .show__cap { padding: 40px 16px 14px; font-size: .875rem; }
.flip:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 959px) {
  .show { grid-template-columns: 1fr; }
  .show__deck { aspect-ratio: 4 / 3; margin: 20px 20px 0 0; }
  .show__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; margin-top: 8px; }
  .flip { aspect-ratio: 3 / 4; min-height: 0; }
}
@media (max-width: 480px) {
  .show__deck { aspect-ratio: 4 / 5; margin: 16px 16px 0 0; }
  .show__card[data-pos="1"] { transform: translate(8px, -8px) rotate(1.6deg) scale(.97); }
  .show__card[data-pos="2"], .show__card[data-pos="3"], .show__card[data-pos="4"] { transform: translate(16px, -16px) rotate(3deg) scale(.94); }
  .flip__face .show__cap { font-size: .8125rem; padding: 32px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .show__card, .flip__inner, .show__card img { transition: none !important; }
  .show__card[data-pos="0"] img { transform: none; }
}

/* =====================================================================
   Page Entreprise — photo retournée : l'artisan passe sous le voile, le chantier ressort
   ===================================================================== */
.phero--flip .phero__media picture { transform: scaleX(-1); }

/* voile adapté : dense à gauche (texte + artisan), plus léger à droite pour montrer le chantier */
.phero--flip .phero__media::after { background:
  linear-gradient(90deg, rgba(var(--black-rgb), .96) 0%, rgba(var(--black-rgb), .9) 38%, rgba(var(--black-rgb), .45) 70%, rgba(var(--black-rgb), .18) 100%),
  linear-gradient(0deg, rgba(var(--black-rgb), 1) 0%, rgba(var(--black-rgb), 0) 45%); }
@media (max-width: 759px) {
  .phero--flip .phero__media::after { background: linear-gradient(0deg, rgba(var(--black-rgb), .96) 0%, rgba(var(--black-rgb), .85) 55%, rgba(var(--black-rgb), .5) 100%); }
  .phero--flip .phero__media img { object-position: 85% 50%; }
}
