/* iZi Concept — feuille de style unique.
   Charte : noir chaud (bois) + nuancier de l'ancien visuel izibati.jpg (bordeaux → orange). */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15110e;
  --ink-2: #1f1915;
  --ink-3: #2b231e;
  --ink-4: #3a302a;
  --paper: #f7f3ed;
  --paper-2: #eee7dd;
  --paper-3: #e3d9cc;
  --text: #1b1613;
  --muted: #62584f;
  --line: rgba(27, 22, 19, 0.12);
  --on-dark: #f7f3ed;
  --on-dark-muted: rgba(247, 243, 237, 0.7);
  --on-dark-line: rgba(247, 243, 237, 0.12);

  /* nuancier iZi (échantillonné sur l'ancien visuel) */
  --c1: #862826;
  --c2: #b53021;
  --c3: #e84c23;
  --c4: #ec7b1d;
  --accent: var(--c3);
  --accent-hover: var(--c4);
  --accent-text: var(--c2);      /* accent lisible sur fond clair (6:1) */
  --accent-on-dark: var(--c4);   /* accent lisible sur fond sombre (6,6:1) */

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 76px;
  --shadow: 0 30px 60px -20px rgba(10, 7, 5, 0.45), 0 12px 24px -12px rgba(10, 7, 5, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nuancier: linear-gradient(90deg, var(--c1) 0 25%, var(--c2) 25% 50%, var(--c3) 50% 75%, var(--c4) 75% 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--c3); color: var(--ink); }
:focus-visible { outline: 3px solid var(--c4); outline-offset: 3px; border-radius: 2px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--tint { background: var(--paper-2); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c4); color: var(--ink); font-weight: 700; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }

/* ——— Surtitre avec mini-nuancier ——— */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 36px; height: 6px; border-radius: 1px; background: var(--nuancier); flex: none; }
.section--dark .eyebrow, .hero .eyebrow, .devis .eyebrow { color: var(--accent-on-dark); }

.h2 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.75rem); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 40em; }
.section--dark .lead { color: var(--on-dark-muted); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* ——— Boutons ——— */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.005em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .i { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary .i-arrow { transition: transform .25s var(--ease); }
.btn--primary:hover .i-arrow { transform: translateX(3px); }
.btn--ghost { border-color: rgba(247, 243, 237, 0.32); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(247, 243, 237, 0.06); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--ink-3); }
.btn--line { border-color: var(--line); color: var(--text); background: transparent; }
.btn--line:hover { border-color: var(--text); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 0.9375rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--accent-text); }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--accent-on-dark); }

/* ——— En-tête ——— */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(21, 17, 14, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--on-dark-line); background: rgba(21, 17, 14, 0.94); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.header__logo { display: block; color: var(--on-dark); flex: none; }
.header__logo svg { height: 46px; width: auto; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 600; color: var(--on-dark-muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--on-dark); background: rgba(247, 243, 237, 0.06); }
.nav a[aria-current="page"] { color: var(--on-dark); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__tel { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; padding: 10px 6px; font-variant-numeric: tabular-nums; }
.header__tel .i { color: var(--c4); }
.header__tel span { display: none; }
.header__cta { display: none; }
.burger {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius);
  background: transparent; border: 1.5px solid var(--on-dark-line); cursor: pointer; color: var(--on-dark);
}
.burger .i { width: 22px; height: 22px; }
.burger .i-x { display: none; }
.header.is-open .burger .i-menu { display: none; }
.header.is-open .burger .i-x { display: block; }
@media (min-width: 560px) { .header__cta { display: inline-flex; } }
@media (min-width: 760px) { .header__tel span { display: inline; } }
@media (min-width: 1140px) {
  .nav { display: block; }
  .header__actions { margin-left: 8px; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--ink); color: var(--on-dark);
  padding: 28px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.header.is-open + .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.menu ul { display: grid; }
.menu a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--on-dark-line);
  font-size: 1.5rem; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; text-decoration: none;
}
.menu a:not(.btn) .i { color: var(--c4); }
.menu__actions { display: grid; gap: 12px; margin-top: auto; }
@media (min-width: 1140px) { .menu { display: none; } }
body.menu-open { overflow: hidden; }

/* ——— Héros ——— */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
  isolation: isolate;
}
.hero__bois {
  position: absolute; inset: 0; z-index: -2;
  background: url('../img/bois.webp') center / cover no-repeat;
  opacity: 0.16; mix-blend-mode: luminosity;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 88% 12%, rgba(232, 76, 35, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(21, 17, 14, 0.2), rgba(21, 17, 14, 0.85) 85%);
}
.hero__nuancier { position: absolute; top: 0; right: 0; width: min(46vw, 640px); z-index: -1; pointer-events: none; opacity: .95; }
@media (max-width: 1039px) { .hero .hero__nuancier { width: min(56vw, 380px); opacity: .4; } }
.hero__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1040px) { .hero__grid { grid-template-columns: 1fr 1.02fr; } }
/* Téléphone et tablette : la photo avant/après remonte juste sous le titre */
@media (max-width: 1039px) {
  .hero__grid { gap: 0; }
  .hero__texte { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero__visuel { order: 3; margin-top: 28px; }
  .hero__lead { order: 4; }
  .hero__cta { order: 5; }
  .hero__faits { order: 6; }
}
@media (max-width: 520px) { .hero__cta .btn { flex: 1 1 100%; } }
.hero h1 { font-size: clamp(2.6rem, 1.3rem + 4.3vw, 5rem); font-stretch: 110%; letter-spacing: -0.035em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--c4); }
.hero__lead { margin-top: 28px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--on-dark-muted); max-width: 34em; }
.hero__lead strong { color: var(--on-dark); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__cta .btn { --h: 58px; }
.hero__tel { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.hero__faits { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; color: var(--on-dark-muted); font-size: 0.9375rem; }
.hero__faits li { display: inline-flex; align-items: center; gap: 8px; }
.hero__faits .i { color: var(--c4); width: 18px; height: 18px; stroke-width: 2.4; }
.hero__visuel { position: relative; }
.hero__legende { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; margin-top: 14px; font-size: 0.875rem; color: var(--on-dark-muted); }
.hero__legende b { color: var(--on-dark); font-weight: 600; }
.glisser { display: inline-flex; align-items: center; gap: 8px; }
.glisser .i { color: var(--c4); }

/* ——— Avant / Après ——— */
.ba { margin: 0; }
.ba__frame {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; background: var(--ink-3);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba--hero .ba__frame { box-shadow: var(--shadow); outline: 1px solid rgba(247, 243, 237, 0.08); outline-offset: -1px; }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba__avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 14px; z-index: 2;
  padding: 7px 12px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  background: rgba(21, 17, 14, 0.72); color: var(--on-dark);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .2s;
}
.ba__tag--avant { left: 14px; }
.ba__tag--apres { right: 14px; background: var(--c3); color: var(--ink); }
.ba__frame[data-pos-low] .ba__tag--avant, .ba__frame[data-pos-high] .ba__tag--apres { opacity: 0; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 0; pointer-events: none; }
.ba__handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--on-dark); box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); }
.ba__knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c3); color: var(--ink);
  box-shadow: 0 0 0 4px rgba(247, 243, 237, 0.95), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform .2s var(--ease), background-color .2s;
}
.ba__knob .i { width: 24px; height: 24px; stroke-width: 2.4; }
.ba__frame:hover .ba__knob, .ba__frame.is-dragging .ba__knob { transform: translate(-50%, -50%) scale(1.08); background: var(--c4); }
.ba__frame:has(.ba__range:focus-visible) .ba__knob { outline: 3px solid var(--c4); outline-offset: 6px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba__exemple {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: 6px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(247, 243, 237, 0.92); color: var(--ink);
}
.ba--card .ba__knob { width: 44px; height: 44px; }
.ba--card .ba__knob .i { width: 20px; height: 20px; }
.ba--card .ba__tag { top: 12px; padding: 6px 10px; font-size: 0.6875rem; }
.ba--card .ba__tag--avant { left: 12px; }
.ba--card .ba__tag--apres { right: 12px; }

/* ——— Bandeau de confiance ——— */
.atouts { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.atouts__grid { display: grid; gap: 0; }
.atout { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; align-content: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.atout:last-child { border-bottom: 0; }
.atout .i { grid-row: span 2; width: 26px; height: 26px; color: var(--accent-text); margin-top: 2px; }
.atout h3 { font-size: 1.0625rem; font-stretch: 105%; letter-spacing: -0.01em; line-height: 1.25; }
.atout p { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }
@media (min-width: 700px) {
  .atouts__grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .atout:nth-last-child(2) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .atouts__grid { grid-template-columns: repeat(4, 1fr); }
  .atout { padding: 40px 28px 40px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .atout + .atout { padding-left: 28px; }
  .atout:last-child { border-right: 0; }
}

/* ——— Le principe iZi ——— */
.principe__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 1040px) { .principe__grid { grid-template-columns: 1fr 1.05fr; } }
.principe__texte p + p { margin-top: 18px; }
.principe__texte .lead { margin-top: 26px; }
.compare { display: grid; gap: 14px; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1.12fr; align-items: stretch; } }
.compare__col { border-radius: var(--radius-lg); padding: 28px 26px 30px; }
.compare__col h3 { font-size: 1.125rem; font-stretch: 108%; letter-spacing: -0.01em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.compare__col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; font-size: 0.975rem; line-height: 1.45; border-top: 1px solid var(--line); }
.compare__col li .i { width: 20px; height: 20px; margin-top: 1px; stroke-width: 2.3; }
.compare__sans { background: transparent; border: 1.5px dashed rgba(27, 22, 19, 0.2); color: var(--muted); }
.compare__sans .i { color: #9a8f86; }
.compare__avec { background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.compare__avec::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--nuancier); }
.compare__avec li { border-top-color: var(--on-dark-line); }
.compare__avec li .i { color: var(--c4); }
.compare__avec h3 svg.logo-mini { height: 26px; width: auto; color: var(--on-dark); }

/* ——— Savoir-faire ——— */
.metiers { display: grid; gap: 20px; }
@media (min-width: 680px) { .metiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .metiers { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.metier {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.metier:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(21, 17, 14, 0.35), 0 0 0 1px var(--line); }
.metier__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.metier__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.metier:hover .metier__img img { transform: scale(1.04); }
.metier__num {
  position: absolute; left: 16px; top: 16px;
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 4px;
  font-weight: 800; font-stretch: 115%; font-size: 0.95rem; letter-spacing: 0.02em; color: #fff; background: var(--c);
}
.metier__icone {
  position: absolute; right: 20px; top: -26px; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--c4); box-shadow: 0 0 0 5px #fff;
}
.metier__icone .i { width: 24px; height: 24px; }
.metier__corps { position: relative; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.metier h3 { font-size: 1.5rem; }
.metier p { color: var(--muted); font-size: 0.975rem; line-height: 1.55; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.puces li { font-size: 0.8125rem; font-weight: 600; padding: 6px 10px; border-radius: 4px; background: var(--paper-2); color: var(--text); line-height: 1.2; }
.metier::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--nuancier); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.metier:hover::after { transform: scaleX(1); }

/* ——— Réalisations ——— */
.reals { display: grid; gap: 28px; }
@media (min-width: 720px) { .reals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .reals--3 { grid-template-columns: repeat(3, 1fr); } }
.real { display: flex; flex-direction: column; gap: 18px; }
.real__corps { display: grid; gap: 8px; }
.real__meta { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-on-dark); }
.real h3 { font-size: 1.375rem; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.15; }
.real .puces { padding-top: 4px; }
.real .puces li { background: var(--ink-3); color: var(--on-dark-muted); }
.section:not(.section--dark) .real__meta { color: var(--accent-text); }
.section:not(.section--dark) .real .puces li { background: var(--paper-2); color: var(--text); }
.reals__pied { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--on-dark-line); }
.reals__pied p { color: var(--on-dark-muted); max-width: 46em; }
.reals-vide { padding: 48px; border: 1.5px dashed var(--on-dark-line); border-radius: var(--radius-lg); text-align: center; color: var(--on-dark-muted); }

/* ——— Méthode ——— */
.etapes { display: grid; gap: 0; counter-reset: etape; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.etape { position: relative; padding: 28px 0 32px 76px; border-top: 1px solid var(--line); }
.etape__num {
  position: absolute; left: 0; top: 26px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--c);
  font-weight: 800; font-stretch: 115%; font-size: 1.05rem;
}
.etape h3 { font-size: 1.3rem; font-stretch: 108%; letter-spacing: -0.015em; margin: 12px 0 10px; }
.etape p { color: var(--muted); font-size: 0.975rem; line-height: 1.55; }
@media (min-width: 900px) {
  .etape { padding: 0; border-top: 0; }
  .etape__num { position: relative; top: 0; margin-bottom: 26px; width: 60px; height: 60px; font-size: 1.15rem; }
  .etape::before { content: ''; position: absolute; top: 30px; left: 76px; right: -14px; height: 2px; background: repeating-linear-gradient(90deg, var(--paper-3) 0 8px, transparent 8px 14px); }
  .etape:last-child::before { display: none; }
}

/* ——— Particuliers / Professionnels ——— */
.publics { display: grid; gap: 20px; }
@media (min-width: 960px) { .publics { grid-template-columns: 1fr 1fr; gap: 24px; } }
.public { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.public--part { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.public--pro { background: var(--ink); color: var(--on-dark); }
.public--pro .eyebrow { color: var(--accent-on-dark); }
.public h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
.public > p { color: var(--muted); }
.public--pro > p { color: var(--on-dark-muted); }
.public ul { display: grid; gap: 0; margin: 6px 0 10px; }
.public li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.public--pro li { border-top-color: var(--on-dark-line); }
.public li .i { color: var(--accent-text); width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.3; }
.public--pro li .i { color: var(--c4); }
.public .btn { align-self: flex-start; margin-top: auto; }

/* ——— Zone ——— */
.zone__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1000px) { .zone__grid { grid-template-columns: 1fr 1.1fr; } }
.villes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.villes li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 0.9rem; font-weight: 600; }
.villes li.is-base { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.carte { background: var(--ink); border-radius: var(--radius-lg); padding: clamp(16px, 2.5vw, 28px); box-shadow: var(--shadow); color: var(--on-dark); }
.carte svg { width: 100%; height: auto; }
.carte__m { display: none !important; }
@media (max-width: 639px) { .carte__d { display: none !important; } .carte__m { display: block !important; } }
.carte__legende { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 0.8125rem; color: var(--on-dark-muted); }
.carte text { font-family: 'Archivo', system-ui, sans-serif; }
@keyframes pulse { 0% { r: 7; opacity: .9; } 100% { r: 26; opacity: 0; } }
.carte .pulse { animation: pulse 2.4s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .carte .pulse { animation: none; opacity: 0; } }

/* ——— FAQ ——— */
.faq__grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } .faq__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq__intro .lead { margin-top: 22px; }
.faq__intro .btn { margin-top: 30px; }
.faq__liste { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-weight: 700; font-size: 1.125rem; font-stretch: 105%; letter-spacing: -0.01em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--paper-2); color: var(--text); transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary .i { transform: rotate(45deg); background: var(--c3); color: var(--ink); }
.faq summary:hover .i { background: var(--paper-3); }
.faq details[open] summary:hover .i { background: var(--c4); }
.faq .reponse { padding: 0 56px 26px 0; color: var(--muted); }
.faq .reponse p + p { margin-top: 12px; }

/* ——— Devis ——— */
.devis { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.devis::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 0% 100%, rgba(232, 76, 35, 0.18), transparent 70%); }
.devis__grid { display: grid; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 1040px) { .devis__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.devis h2 em { font-style: normal; color: var(--c4); }
.devis .lead { margin-top: 24px; color: var(--on-dark-muted); }
.coord { display: grid; gap: 12px; margin-top: 40px; }
.coord a, .coord div { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--on-dark-line); text-decoration: none; transition: border-color .2s, background-color .2s; }
.coord a:hover { border-color: rgba(236, 123, 29, 0.6); background: var(--ink-3); }
.coord .i { grid-row: span 2; width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--ink-3); color: var(--c4); }
.coord small { font-size: 0.8125rem; color: var(--on-dark-muted); letter-spacing: 0.02em; }
.coord strong { font-size: 1.125rem; font-weight: 700; line-height: 1.3; word-break: break-word; }
.coord .coord__tel { background: var(--c3); border-color: var(--c3); color: var(--ink); }
.coord .coord__tel:hover { background: var(--c4); border-color: var(--c4); }
.coord .coord__tel .i { background: rgba(21, 17, 14, 0.12); color: var(--ink); }
.coord .coord__tel small { color: rgba(21, 17, 14, 0.75); font-weight: 600; }
.coord .coord__tel strong { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-stretch: 112%; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.form { background: var(--paper); color: var(--text); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.form::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--nuancier); }
.form h3 { font-size: 1.5rem; }
.form > p { color: var(--muted); margin-top: 8px; font-size: 0.975rem; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .form label.lbl { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 10px; padding: 0; }
.form .opt { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.champs { display: grid; gap: 22px; margin-top: 28px; }
.champs--2 { display: grid; gap: 22px; }
@media (min-width: 620px) { .champs--2 { grid-template-columns: 1fr 1fr; } }
.input {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--paper-3); background: #fff; color: var(--text);
  font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 132px; resize: vertical; }
.input::placeholder { color: #9a8f86; }
.input:hover { border-color: #cfc3b4; }
.input:focus { outline: none; border-color: var(--c3); box-shadow: 0 0 0 4px rgba(232, 76, 35, 0.16); }
.input[aria-invalid="true"] { border-color: var(--c2); }
.erreur-champ { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--c2); font-weight: 600; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--paper-3); background: #fff; font-weight: 600; font-size: 0.9375rem;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choix span .i { width: 16px; height: 16px; stroke-width: 2.6; display: none; }
.choix label:hover span { border-color: #cfc3b4; }
.choix input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.choix input:checked + span .i { display: block; color: var(--c4); }
.choix input:focus-visible + span { outline: 3px solid var(--c4); outline-offset: 2px; }
.form__pied { display: grid; gap: 16px; margin-top: 28px; }
.form__pied .btn { width: 100%; --h: 58px; font-size: 1.0625rem; }
.form__rgpd { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.form__rgpd a { color: var(--text); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__etat { display: none; border-radius: var(--radius); padding: 16px 18px; font-size: 0.975rem; line-height: 1.5; }
.form__etat.is-ok { display: block; background: #e8f3e9; color: #1d4d24; }
.form__etat.is-ko { display: block; background: #fbe9e4; color: #7a2413; }
.form__etat a { font-weight: 700; color: inherit; }
.form.is-sent .champs, .form.is-sent .form__pied .btn, .form.is-sent .form__rgpd { display: none; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Pied de page ——— */
.footer { background: #0e0b09; color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.9375rem; }
.footer__haut { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--on-dark-line); }
@media (min-width: 900px) { .footer__haut { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.footer__logo { color: var(--on-dark); }
.footer__logo svg { height: 64px; width: auto; }
.footer__devise { margin-top: 20px; font-size: 1.375rem; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; color: var(--on-dark); line-height: 1.15; }
.footer__devise em { font-style: normal; color: var(--c4); }
.footer h4 { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; font-stretch: 100%; font-weight: 700; color: var(--on-dark); margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--on-dark); }
.footer__tel { font-size: 1.375rem; font-weight: 800; font-stretch: 110%; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.footer__bas { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 28px; font-size: 0.8125rem; }
.footer__bas ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nuancier { height: 6px; background: var(--nuancier); }

/* ——— Barre d'appel mobile ——— */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 17, 14, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--on-dark-line);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.barre.is-visible { transform: none; }
.barre .btn { --h: 50px; padding: 0 12px; font-size: 0.975rem; }
@media (min-width: 900px) { .barre { display: none; } }

/* ——— Pages intérieures ——— */
.page-hero { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .hero__nuancier { width: min(52vw, 640px); }
.page-hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); letter-spacing: -0.035em; max-width: 16ch; }
.page-hero .lead { margin-top: 22px; color: var(--on-dark-muted); }
.fil { display: flex; gap: 8px; font-size: 0.875rem; color: var(--on-dark-muted); margin-bottom: 28px; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--on-dark); }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.625rem; margin: 56px 0 18px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 24px; margin: 0; }
.legal dt { font-weight: 700; color: var(--text); }
.legal dd { margin: 0; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }
.nowrap { white-space: nowrap; }
.zone .h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); }
mark.a-completer { background: #ffe89a; color: #5a4300; padding: 1px 6px; border-radius: 3px; font-weight: 600; }

/* ——— Agrandissement d'une réalisation ——— */
.visionneuse { width: min(100vw - 24px, 1180px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow); overflow: auto; }
.visionneuse::backdrop { background: rgba(10, 7, 5, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.visionneuse__in { padding: clamp(12px, 2vw, 20px); }
.visionneuse__haut { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 4px 14px; }
.visionneuse__haut h3 { font-size: 1.125rem; font-stretch: 105%; letter-spacing: -0.01em; }
.visionneuse__fermer { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--on-dark-line); background: transparent; color: var(--on-dark); display: grid; place-items: center; cursor: pointer; flex: none; }
.visionneuse__fermer:hover { border-color: var(--on-dark); }
.agrandir { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 0.9375rem; color: var(--accent-on-dark); justify-self: start; }
.section:not(.section--dark) .agrandir { color: var(--accent-text); }
.agrandir .i { width: 18px; height: 18px; }
.agrandir:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ——— Apparition au défilement (uniquement si JS actif et mouvement autorisé) ——— */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
