/* ==========================================================================
   EDR TRAVAUX - Feuille de style principale
   Thème : dark premium, béton + laiton. Un seul thème verrouillé sur tout le site.
   Rayon unique : 2px (langage architectural, arêtes nettes).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces (charbon froid, jamais de noir pur) */
  --bg:          #0E0F10;
  --bg-deep:     #08090A;
  --surface:     #16181A;
  --surface-2:   #1D2023;
  --surface-3:   #24282B;

  /* Traits */
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);

  /* Texte */
  --text:        #ECEDEE;
  --text-2:      #B4B9BE;
  --muted:       #82888F;

  /* Accent unique : laiton. Verrouillé sur l'ensemble du site. */
  --accent:      #D9A441;
  --accent-hi:   #F0BE5E;
  --accent-lo:   #A87A28;
  --accent-soft: rgba(217, 164, 65, .13);
  --accent-line: rgba(217, 164, 65, .34);

  /* États */
  --danger:      #E2685C;
  --ok:          #6FBF8B;

  /* Géométrie : un seul rayon partout */
  --r: 2px;

  /* Rythme */
  --pad-x: clamp(1.25rem, 5vw, 5.5rem);
  --sect-y: clamp(5.5rem, 11vw, 10.5rem);
  --wrap: 1440px;

  /* Typo */
  --f-display: "Archivo", "Archivo Expanded", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Courbes */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* Couches */
  --z-grain: 90;
  --z-nav: 70;
  --z-drawer: 80;
  --z-modal: 100;
  --z-cookie: 110;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--surface-3) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(.95rem, .4vw + .85rem, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
  margin: 0;
  font-stretch: 112%;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}
button { cursor: pointer; }

::selection { background: var(--accent); color: var(--bg-deep); }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* Lien d'évitement clavier */
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  background: var(--accent);
  color: var(--bg-deep);
  padding: .7rem 1.1rem;
  font-weight: 600;
  border-radius: var(--r);
  transition: top .25s var(--ease);
}
.skip:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. UTILITAIRES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  position: relative;   /* passe au-dessus des motifs décoratifs en absolu */
}

.section { padding-block: var(--sect-y); position: relative; }

.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;
}

.mono {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Titre de section : empilement vertical, jamais de colonne flottante à droite */
.sect-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sect-head h2 { font-size: clamp(2.1rem, 5.2vw, 4.1rem); }
.sect-head p {
  margin-top: 1.4rem;
  color: var(--text-2);
  max-width: 58ch;
  font-size: 1.02rem;
}

/* Cote d'architecte : trait qui se trace à l'entrée dans le viewport */
.cote {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.6rem;
}
.cote::before,
.cote::after {
  content: "";
  height: 1px;
  background: var(--accent-line);
  flex: 0 0 auto;
  width: 0;
  transition: width 1.1s var(--ease) .1s;
}
.cote::before { width: 0; }
.reveal.in .cote::before { width: clamp(28px, 5vw, 64px); }
.reveal.in .cote::after  { width: clamp(14px, 2vw, 26px); }
.cote span {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #14100A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  white-space: nowrap;          /* jamais de libellé sur 2 lignes */
  padding: .95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: -.005em;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn i { font-size: 1.1em; transition: transform .3s var(--ease); }
.btn:hover { --btn-bg: var(--accent-hi); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.985); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, .06);
  border-color: var(--accent-line);
  color: var(--accent-hi);
}

.btn--sm { padding: .65rem 1.1rem; font-size: .84rem; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Lien fléché */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  color: var(--accent);
  font-size: .93rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.arrow-link:hover { border-color: var(--accent-line); gap: .85rem; }

/* --------------------------------------------------------------------------
   5. DÉCOR GLOBAL : grain + trame bleu de chantier
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Courbes de niveau : évoque un plan de terrain / relevé topographique.
   Décalé à droite et fondu vers le contenu, jamais une grille pleine page. */
.blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .5;
  background-repeat: no-repeat;
  background-position: right -40px center;
  background-size: min(1180px, 135%) auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' fill='none' stroke='%23D9A441' stroke-width='1.1'%3E%3Cpath d='M-20 70 C160 26 340 26 470 70 C610 114 760 114 920 70'/%3E%3Cpath d='M-20 136 C160 92 340 92 470 136 C610 180 760 180 920 136'/%3E%3Cpath d='M-20 202 C160 158 340 158 470 202 C610 246 760 246 920 202'/%3E%3Cpath d='M-20 268 C160 224 340 224 470 268 C610 312 760 312 920 268'/%3E%3Cpath d='M-20 334 C160 290 340 290 470 334 C610 378 760 378 920 334'/%3E%3Cpath d='M-20 400 C160 356 340 356 470 400 C610 444 760 444 920 400'/%3E%3Cpath d='M-20 466 C160 422 340 422 470 466 C610 510 760 510 920 466'/%3E%3Cpath d='M-20 532 C160 488 340 488 470 532 C610 576 760 576 920 532'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 62% 90% at 82% 50%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 90% at 82% 50%, #000 8%, transparent 72%);
}

/* Même motif, ancré à gauche cette fois. */
.blueprint--left {
  background-position: left -40px center;
  -webkit-mask-image: radial-gradient(ellipse 62% 90% at 18% 50%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 90% at 18% 50%, #000 8%, transparent 72%);
}

/* --------------------------------------------------------------------------
   6. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 64px;
  background: rgba(14, 15, 16, .82);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logotype : image fournie par le client */
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo__img {
  height: 54px;
  width: auto;
  display: block;
  transition: height .4s var(--ease), transform .4s var(--ease);
}
.nav.is-stuck .logo__img { height: 46px; }
.logo:hover .logo__img { transform: scale(1.04); }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a {
  font-size: .89rem;
  color: var(--text-2);
  position: relative;
  padding-block: .3rem;
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.nav__tel {
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: color .25s var(--ease);
}
.nav__tel:hover { color: var(--accent); }

/* Barre de progression de lecture, alignée sur le fil laiton du site */
.nav__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 1.5px; width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav.is-stuck .nav__progress { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .nav__progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Libellé du CTA de barre : version courte sur petits écrans, pour que le
   logo, le bouton et le burger tiennent tous les trois sur une seule ligne. */
.lbl-short { display: none; }

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.burger i { width: 16px; height: 1.5px; background: var(--text); display: block; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Panneau mobile */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--bg-deep);
  padding: 6rem var(--pad-x) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility .55s;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer a.drawer__link {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  display: block;
  padding-block: .5rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
}
.drawer.is-open a.drawer__link {
  animation: drawer-in .55s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}
@keyframes drawer-in { to { opacity: 1; transform: none; } }
.drawer__foot { margin-top: auto; display: grid; gap: 1rem; }

/* --------------------------------------------------------------------------
   7. HERO : split diagonal interactif Intérieur / Extérieur
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 6rem;   /* plafond pt-24 respecté */
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  isolation: isolate;
  --split: 58;         /* position du plan de coupe, en % */
}

.hero__stage { position: absolute; inset: 0; z-index: -2; }

.hero__side {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: clip-path;
}
.hero__side--out {
  /* Extérieur : plan de fond, toujours visible sous la coupe */
  filter: saturate(.72) brightness(.52) contrast(1.08);
}
.hero__side--in {
  /* Intérieur : plan supérieur, découpé en diagonale */
  filter: saturate(.65) brightness(.46) contrast(1.1);
  clip-path: polygon(0 0, calc(var(--split) * 1% + 9vw) 0, calc(var(--split) * 1% - 9vw) 100%, 0 100%);
  transition: clip-path .5s var(--ease);
}
.hero.is-dragging .hero__side--in { transition: none; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(14, 15, 16, .82) 34%, rgba(14, 15, 16, .28) 68%, rgba(14, 15, 16, .62) 100%);
}

/* Le trait de coupe, matérialisé en laiton */
.hero__seam {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero__seam::before {
  content: "";
  position: absolute;
  top: -10%; bottom: -10%;
  left: calc(var(--split) * 1%);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent) 22%, var(--accent) 78%, transparent);
  transform: rotate(9.2deg);
  transform-origin: center;
  box-shadow: 0 0 22px 1px rgba(217, 164, 65, .35);
  transition: left .5s var(--ease);
}
.hero.is-dragging .hero__seam::before { transition: none; }

/* Poignée de manipulation */
.hero__handle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: calc(var(--split) * 1%);
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: rgba(14, 15, 16, .58);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.15rem;
  cursor: ew-resize;
  touch-action: none;
  transition: left .5s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
}
.hero.is-dragging .hero__handle { transition: transform .25s var(--ease); transform: translate(-50%, -50%) scale(1.12); }
.hero__handle:hover { background: rgba(217, 164, 65, .18); }

.hero__handle::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  opacity: .5;
  animation: handle-pulse 2.8s var(--ease-io) infinite;
}
@keyframes handle-pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.22); opacity: 0; }
}

/* Étiquettes des deux plans */
.hero__tags {
  position: absolute;
  z-index: 3;
  top: clamp(6.5rem, 14vh, 9.5rem);
  left: 0; right: 0;
  padding-inline: var(--pad-x);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero__tags b {
  font-weight: 500;
  color: var(--text-2);
  transition: color .35s var(--ease), opacity .35s var(--ease);
  opacity: .55;
}
.hero__tags b.is-active { color: var(--accent); opacity: 1; }

/* Contenu */
.hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.hero h1 {
  font-size: clamp(2.5rem, 7.4vw, 6.2rem);
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 .lift {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}
.hero h1 .lift > span {
  display: block;
  transform: translateY(105%);
  animation: lift-in 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 110ms + 180ms);
}
@keyframes lift-in { to { transform: none; } }
.hero h1 i {
  font-style: italic;
  color: var(--accent);
  line-height: 1.1;
  padding-bottom: .08em;
  display: inline-block;
}

.hero__sub {
  margin-top: 1.5rem;
  max-width: 46ch;
  color: var(--text-2);
  font-size: clamp(.98rem, .4vw + .9rem, 1.12rem);
  opacity: 0;
  animation: fade-up .9s var(--ease) .62s forwards;
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  opacity: 0;
  animation: fade-up .9s var(--ease) .76s forwards;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   8. BANDEAU CHIFFRES
   -------------------------------------------------------------------------- */
.figures {
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
}
.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.figures__cell {
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1rem, 2.5vw, 2.4rem);
  border-left: 1px solid var(--line);
}
.figures__cell:first-child { border-left: none; }
.figures__cell b {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  letter-spacing: -.035em;
  color: var(--text);
  line-height: 1;
}
.figures__cell b sup { color: var(--accent); font-size: .42em; vertical-align: super; margin-left: .12em; }
.figures__cell span {
  display: block;
  margin-top: .7rem;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. SERVICES : deux plans asymétriques
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}
.plan {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  min-height: clamp(420px, 52vw, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  isolation: isolate;
  transition: border-color .45s var(--ease);
}
.plan:hover { border-color: var(--accent-line); }
.plan__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(.55) brightness(.42);
  transform: scale(1.04);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.plan:hover .plan__bg { transform: scale(1.11); filter: saturate(.72) brightness(.5); }
.plan::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 9, 10, .95) 8%, rgba(8, 9, 10, .55) 46%, rgba(8, 9, 10, .18) 100%);
}
.plan__num {
  position: absolute;
  top: clamp(1.4rem, 3vw, 2.4rem);
  right: clamp(1.4rem, 3vw, 2.4rem);
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: .35rem .6rem;
  border-radius: var(--r);
}
.plan h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.plan > p {
  margin-top: .9rem;
  color: var(--text-2);
  max-width: 42ch;
  font-size: .96rem;
}
.plan__list {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.plan__list li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--text-2);
  padding: .42rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(6px);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.plan__list li i { color: var(--accent); font-size: 1em; }
.plan:hover .plan__list li { border-color: rgba(255, 255, 255, .22); }

/* Sous-services : bandeau compact 5 items */
.services__extras {
  margin-top: clamp(1rem, 2vw, 1.75rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.extra {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-left: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
.extra:first-child { border-left: none; }
.extra:hover { background: var(--surface-2); }
.extra i { font-size: 1.5rem; color: var(--accent); }
.extra b { display: block; margin-top: .9rem; font-weight: 600; font-size: .96rem; }
.extra span { display: block; margin-top: .35rem; font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   10. RÉALISATIONS : mosaïque
   -------------------------------------------------------------------------- */
.works__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.75rem, 1.4vw, 1.25rem);
}
.work {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.6) brightness(.62);
  transform: scale(1.02);
  transition: transform 1s var(--ease), filter .55s var(--ease);
}
.work:hover img { transform: scale(1.08); filter: saturate(.9) brightness(.78); }
.work::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 10, .9) 4%, transparent 58%);
  z-index: 1;
}
.work__meta {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.work__meta b { font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: -.02em; }
.work__meta span { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.work__meta i {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  display: grid; place-items: center;
  color: var(--text);
  font-size: .95rem;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.work:hover .work__meta i { background: var(--accent); color: #14100A; border-color: var(--accent); }

.work--a { grid-column: span 4; aspect-ratio: 16 / 10; }
.work--b { grid-column: span 2; aspect-ratio: 4 / 5; }
.work--c { grid-column: span 2; aspect-ratio: 1 / 1; }
.work--d { grid-column: span 2; aspect-ratio: 1 / 1; }
.work--e { grid-column: span 2; aspect-ratio: 1 / 1; }

/* --------------------------------------------------------------------------
   11. AVANT / APRÈS
   -------------------------------------------------------------------------- */
.ba { background: var(--bg-deep); border-block: 1px solid var(--line); }
.ba__pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.ba__pill {
  padding: .55rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-size: .85rem;
  color: var(--text-2);
  transition: all .3s var(--ease);
}
.ba__pill:hover { border-color: var(--accent-line); color: var(--text); }
.ba__pill[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #14100A; font-weight: 600; }

.ba__viewer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  touch-action: pan-y;
  --pos: 50;
  cursor: ew-resize;
  user-select: none;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__layer--before img { filter: saturate(.32) brightness(.66) contrast(1.05); }
.ba__layer--after {
  clip-path: inset(0 0 0 calc(var(--pos) * 1%));
}
.ba__badge {
  position: absolute;
  top: 1rem;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .38rem .7rem;
  border-radius: var(--r);
  background: rgba(8, 9, 10, .68);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.ba__badge--l { left: 1rem; color: var(--text-2); }
.ba__badge--r { right: 1rem; color: var(--accent); border-color: var(--accent-line); }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--pos) * 1%);
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 20px rgba(217, 164, 65, .5);
}
.ba__knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #14100A;
  display: grid; place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.ba__range {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  opacity: 0;
  height: 44px;
  cursor: ew-resize;
}
.ba__caption {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: baseline;
}
.ba__caption b { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -.02em; }
.ba__caption span { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. MÉTHODE : pile collante
   -------------------------------------------------------------------------- */
.method__stack { display: grid; gap: 0; }
.step {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: clamp(1.8rem, 3.4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 -12px 40px rgba(8, 9, 10, .6);
}
.step:nth-child(1) { background: var(--surface); }
.step:nth-child(2) { background: var(--surface-2); }
.step:nth-child(3) { background: var(--surface-3); }
.step:nth-child(4) { background: #2C3134; }
.step__index {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.step__index::after { content: ""; height: 1px; flex: 1; background: var(--accent-line); }
.step h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-top: 1.1rem; }
.step p { margin-top: 1rem; color: var(--text-2); max-width: 46ch; font-size: .97rem; }
.step__aside { display: grid; gap: .6rem; }
.step__aside div {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(0, 0, 0, .22);
  font-size: .89rem;
  color: var(--text-2);
}
.step__aside i { color: var(--accent); font-size: 1.05rem; margin-top: .1rem; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   13. À PROPOS : pleine largeur décalée
   -------------------------------------------------------------------------- */
.about { position: relative; overflow: hidden; }
.about__media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 9;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.55); }
.about__panel {
  position: relative;
  z-index: 2;
  margin-top: clamp(-7rem, -6vw, -3rem);
  margin-left: auto;
  width: min(640px, 100%);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.8rem, 3.5vw, 3rem);
}
.about__panel h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.about__panel p { margin-top: 1.2rem; color: var(--text-2); font-size: .99rem; }
.about__sign {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.about__logo { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.about__sign b { display: block; font-weight: 600; font-size: .95rem; }
.about__sign span { display: block; font-size: .82rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. AVIS : défilement par accroche
   -------------------------------------------------------------------------- */
.says__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.4rem;
  scrollbar-width: thin;
}
.says__track::-webkit-scrollbar { height: 3px; }
.says__track::-webkit-scrollbar-track { background: var(--line); }
.says__track::-webkit-scrollbar-thumb { background: var(--accent); }
.say {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.say:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.say__stars { color: var(--accent); font-size: .9rem; letter-spacing: .1em; }
.say blockquote { margin: 1.1rem 0 0; font-size: 1.02rem; color: var(--text); line-height: 1.6; }
.say__who { margin-top: auto; padding-top: 1.6rem; }
.say__who b { display: block; font-weight: 600; font-size: .92rem; }
.say__who span { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* --------------------------------------------------------------------------
   15. DEVIS : assistant multi-étapes
   -------------------------------------------------------------------------- */
.quote { background: var(--bg-deep); border-block: 1px solid var(--line); position: relative; }
.quote__layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.quote__intro h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.quote__intro p { margin-top: 1.3rem; color: var(--text-2); max-width: 40ch; }
.quote__assure { margin-top: 2rem; display: grid; gap: .8rem; }
.quote__assure li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.quote__assure i { color: var(--accent); font-size: 1.1rem; margin-top: .1rem; }

.wizard {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

/* Niveau à bulle : progression du formulaire */
.level {
  position: relative;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: rgba(0, 0, 0, .3);
  overflow: hidden;
  margin-bottom: .75rem;
}
.level__ticks {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.level__ticks span { border-right: 1px solid var(--line); }
.level__ticks span:last-child { border-right: none; }
.level__bubble {
  position: absolute;
  top: 50%;
  left: calc(var(--lvl, 12.5) * 1%);
  transform: translate(-50%, -50%);
  width: 54px; height: 20px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(217, 164, 65, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: left .6s var(--ease);
}
.level__legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: 1.9rem;
}
.level__legend span {
  font-family: var(--f-mono);
  font-size: .63rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .35s var(--ease);
  text-align: center;
}
.level__legend span.is-done { color: var(--text-2); }
.level__legend span.is-now { color: var(--accent); }

.wstep { display: none; }
.wstep.is-active { display: block; animation: wstep-in .45s var(--ease); }
@keyframes wstep-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wstep > h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.wstep > p.hint { margin-top: .5rem; font-size: .87rem; color: var(--muted); }

.choices { margin-top: 1.5rem; display: grid; gap: .7rem; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choices--2 { grid-template-columns: repeat(2, 1fr); }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.05rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .28s var(--ease);
  height: 100%;
  background: rgba(255, 255, 255, .015);
}
.choice span i { font-size: 1.35rem; color: var(--muted); transition: color .28s var(--ease); }
.choice span b { font-weight: 600; font-size: .93rem; }
.choice span em { font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.choice input:hover + span { border-color: rgba(255, 255, 255, .28); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice input:checked + span i { color: var(--accent); }

.field { display: grid; gap: .5rem; margin-top: 1.15rem; }
.field > label { font-size: .85rem; font-weight: 500; color: var(--text); }
.field > label .req { color: var(--accent); }
.field .help { font-size: .78rem; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: #0B0C0D;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--text);
  font-size: .93rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4B9BE' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
  padding-right: 2.6rem;
}
.field input::placeholder,
.field textarea::placeholder { color: #6E747A; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: #0F1112;
  outline: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field .error {
  display: none;
  font-size: .79rem;
  color: var(--danger);
  align-items: center;
  gap: .35rem;
}
.field.has-error .error { display: flex; }

.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.consent {
  margin-top: 1.4rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.55;
}
.consent input { margin-top: .25rem; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }
.consent a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }

.wizard__nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.wizard__nav .back {
  font-size: .88rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: color .25s var(--ease);
}
.wizard__nav .back:hover { color: var(--text); }
.wizard__nav .back[hidden] { visibility: hidden; display: inline-flex; }

/* Chargement, succès, panne */
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(20, 16, 10, .3);
  border-top-color: #14100A;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wresult { display: none; text-align: left; padding-block: 1rem; }
.wresult.is-active { display: block; animation: wstep-in .45s var(--ease); }
.wresult__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}
.wresult--ok .wresult__icon { background: rgba(111, 191, 139, .14); color: var(--ok); }
.wresult--ko .wresult__icon { background: rgba(226, 104, 92, .14); color: var(--danger); }
.wresult h3 { font-size: 1.5rem; }
.wresult p { margin-top: .9rem; color: var(--text-2); font-size: .95rem; max-width: 44ch; }
.wresult .btn { margin-top: 1.8rem; }

.recap {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.recap div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .8rem 1.1rem;
  font-size: .87rem;
  background: rgba(0, 0, 0, .22);
}
.recap div + div { border-top: 1px solid var(--line); }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; text-align: right; color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2.4vw, 1.7rem) 0;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.9vw, 1.35rem);
  letter-spacing: -.02em;
  color: var(--text-2);
  transition: color .3s var(--ease);
}
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--text); }
.faq__q i {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  display: grid; place-items: center;
  font-size: .85rem;
  transition: transform .4s var(--ease), background-color .3s var(--ease), color .3s, border-color .3s;
}
.faq__item.is-open .faq__q i {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #14100A;
}
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  color: var(--text-2);
  max-width: 68ch;
  padding-bottom: 1.6rem;
  font-size: .96rem;
}

/* --------------------------------------------------------------------------
   17. CONTACT + PIED
   -------------------------------------------------------------------------- */
.foot { background: var(--bg-deep); border-top: 1px solid var(--line); }
.foot__top {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
.foot__logo { width: clamp(120px, 14vw, 160px); height: auto; display: block; margin-bottom: 1.6rem; }
.foot__brand h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 16ch; }
.foot__brand p { margin-top: 1.1rem; color: var(--text-2); max-width: 36ch; font-size: .95rem; }
.foot__brand .btn { margin-top: 1.8rem; }

.foot__col h4 {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: .2em;
  margin-bottom: 1.3rem;
}
.foot__col li + li { margin-top: .7rem; }
.foot__col a, .foot__col span {
  font-size: .92rem;
  color: var(--text-2);
  display: inline-flex;
  align-items: flex-start;
  gap: .6rem;
  transition: color .25s var(--ease);
  line-height: 1.5;
}
.foot__col a:hover { color: var(--accent); }
.foot__col i { color: var(--accent); font-size: 1.05rem; margin-top: .1rem; flex: 0 0 auto; }

.foot__bar {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.foot__bar p, .foot__bar a { font-size: .81rem; color: var(--muted); }
.foot__sig { display: flex; align-items: center; gap: .85rem; }
.foot__logo-sm { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.foot__sep { color: var(--line-strong); margin-inline: .1rem; }
.foot__credit {
  color: var(--text-2);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.foot__credit:hover { color: var(--accent-hi); border-color: var(--accent); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot__legal a { transition: color .25s var(--ease); }
.foot__legal a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   18. FENÊTRE AVANT / APRÈS ET GALERIE (modale)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 9, 10, .86);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  transform: translateY(24px) scale(.98);
  transition: transform .45s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 1.6rem; }
.modal__head h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.modal__head p { margin-top: .5rem; color: var(--muted); font-size: .88rem; }
.modal__close {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: all .25s var(--ease);
}
.modal__close:hover { background: var(--surface-3); color: var(--text); }

/* --------------------------------------------------------------------------
   19. BANDEAU COOKIES
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: clamp(.75rem, 2vw, 1.5rem);
  right: clamp(.75rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.5rem);
  z-index: var(--z-cookie);
  max-width: 640px;
  background: rgba(22, 24, 26, .94);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  transform: translateY(140%);
  transition: transform .6s var(--ease);
}
.cookie.is-shown { transform: none; }
.cookie__head { display: flex; align-items: center; gap: .7rem; }
.cookie__head i { color: var(--accent); font-size: 1.3rem; }
.cookie__head b { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.cookie p { margin-top: .8rem; font-size: .87rem; color: var(--text-2); line-height: 1.6; }
.cookie p a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.cookie__actions { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie__actions .link {
  font-size: .84rem;
  color: var(--muted);
  padding: .6rem .4rem;
  transition: color .25s var(--ease);
  flex: 0 0 auto;
}
.cookie__actions .link:hover { color: var(--text); }

.toggle { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.toggle:last-of-type { border-bottom: none; }
.toggle__txt b { display: block; font-weight: 600; font-size: .94rem; }
.toggle__txt span { display: block; margin-top: .3rem; font-size: .84rem; color: var(--muted); line-height: 1.55; }
.toggle__sw { flex: 0 0 auto; margin-left: auto; position: relative; width: 44px; height: 24px; }
.toggle__sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle__sw i {
  position: absolute; inset: 0;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: background-color .3s var(--ease), border-color .3s;
  pointer-events: none;
}
.toggle__sw i::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .3s var(--ease), background-color .3s;
}
.toggle__sw input:checked + i { background: var(--accent-soft); border-color: var(--accent); }
.toggle__sw input:checked + i::after { transform: translateX(20px); background: var(--accent); }
.toggle__sw input:disabled + i { opacity: .55; }
.toggle__sw input:focus-visible + i { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   20. PAGES LÉGALES
   -------------------------------------------------------------------------- */
.legal-hero {
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.legal-hero h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); }
.legal-hero p { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

.legal-body { padding-block: clamp(3rem, 6vw, 5rem); }
.legal-body .wrap { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc h4 {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; font-stretch: 100%; margin-bottom: 1.1rem;
}
.legal-toc li + li { margin-top: .55rem; }
.legal-toc a { font-size: .87rem; color: var(--text-2); transition: color .25s var(--ease); }
.legal-toc a:hover { color: var(--accent); }

.legal-content { max-width: 74ch; }
.legal-content section + section { margin-top: clamp(2.4rem, 4.5vw, 3.6rem); }
.legal-content h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); scroll-margin-top: 110px; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.8rem; }
.legal-content p { margin-top: 1rem; color: var(--text-2); font-size: .96rem; }
.legal-content ul { margin-top: 1rem; display: grid; gap: .6rem; }
.legal-content ul li {
  display: flex; gap: .7rem; align-items: flex-start;
  color: var(--text-2); font-size: .95rem;
}
.legal-content ul li::before { content: ""; width: 5px; height: 5px; margin-top: .62rem; background: var(--accent); flex: 0 0 auto; }
.legal-content a.inline { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.legal-content table {
  margin-top: 1.3rem;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: .88rem;
}
.legal-content th, .legal-content td { padding: .8rem 1rem; text-align: left; vertical-align: top; }
.legal-content th { background: var(--surface-2); font-weight: 600; font-size: .82rem; }
.legal-content td { border-top: 1px solid var(--line); color: var(--text-2); }
.legal-note {
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--r);
  font-size: .88rem;
  color: var(--text-2);
  display: flex; gap: .8rem; align-items: flex-start;
}
.legal-note i { color: var(--accent); font-size: 1.1rem; margin-top: .1rem; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   21. APPARITIONS AU SCROLL
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* --------------------------------------------------------------------------
   22. ADAPTATIF
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__tel { display: none; }
  .burger { display: flex; }
  .services__extras { grid-template-columns: repeat(2, 1fr); }
  .extra:nth-child(odd) { border-left: none; }
  .extra { border-top: 1px solid var(--line); }
  .extra:nth-child(-n+2) { border-top: none; }
  .legal-body .wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 980px) {
  .services__grid { grid-template-columns: 1fr; }
  .plan { min-height: 380px; }
  .quote__layout { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .step { grid-template-columns: 1fr; top: 88px; }
  .about__panel { margin-left: 0; margin-top: -3rem; width: 100%; }
  .works__grid { grid-template-columns: repeat(4, 1fr); }
  .work--a { grid-column: span 4; }
  .work--b { grid-column: span 2; aspect-ratio: 1 / 1; }
  .work--c, .work--d, .work--e { grid-column: span 2; }
}

@media (max-width: 680px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .logo__img { height: 44px; }
  .nav.is-stuck .logo__img { height: 40px; }
  .nav__inner { gap: .75rem; }
  .nav__cta { gap: .5rem; }
}

@media (max-width: 760px) {
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .figures__cell:nth-child(odd) { border-left: none; }
  .figures__cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .choices--3, .choices--2 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; }
  .work--a, .work--b, .work--c, .work--d, .work--e { grid-column: span 1; aspect-ratio: 4 / 3; }
  .foot__top { grid-template-columns: 1fr; }
  .ba__viewer { aspect-ratio: 4 / 3; }
  .cookie__actions .btn { flex: 1 1 100%; }
  .level__legend span { font-size: .55rem; letter-spacing: .06em; }

  /* Le hero abandonne la coupe diagonale interactive : deux plans empilés */
  .hero { --split: 100; }
  .hero__side--in { clip-path: polygon(0 0, 100% 0, 100% 46%, 0 46%); transition: none; }
  .hero__handle, .hero__seam { display: none; }
  .hero__tags { top: 5.5rem; font-size: .62rem; }
}

@media (max-width: 520px) {
  .modal__box { padding: 1.4rem; }
  .about__media { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   23. MOUVEMENT RÉDUIT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .lift > span { transform: none; }
  .hero__sub, .hero__actions { opacity: 1; }
  .cote::before { width: clamp(28px, 5vw, 64px); }
  .cote::after { width: clamp(14px, 2vw, 26px); }
  .hero__handle::after { display: none; }
  .step { position: static; }
  .drawer a.drawer__link { opacity: 1; transform: none; }
}

/* Transparence réduite : on remplace le flou par des fonds pleins */
@media (prefers-reduced-transparency: reduce) {
  .nav.is-stuck, .cookie, .modal, .hero__handle, .ba__badge, .plan__list li {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav.is-stuck { background: var(--bg); }
  .cookie { background: var(--surface); }
  .modal { background: rgba(8, 9, 10, .97); }
}

/* Impression */
@media print {
  .nav, .cookie, .grain, .hero__handle, .modal, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
}
