/* ==========================================================================
   Âme du Tapis — « l'atelier de garance »
   Système : nuit de garance + or champagne + ivoire, Fraunces/Archivo
   ========================================================================== */

/* ---- Polices (auto-hébergées) ------------------------------------------ */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---- Jetons ------------------------------------------------------------- */
:root {
  --nuit: #1C1210;
  --nuit-2: #2A1B17;
  --filet-nuit: #52362C;
  --or: #C6A15B;
  --or-clair: #E2C685;
  --garance: #A63D2F;
  --ivoire: #F5EFE3;
  --ivoire-2: #FBF7EE;
  --encre: #2A1F1A;
  --encre-douce: #6B5A4E;
  --ivoire-voile: rgba(245, 239, 227, .74);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --c: min(1200px, calc(100vw - 2 * 24px));
  --ombre: 0 24px 48px -24px rgb(42 31 26 / .18);
  --ease-sortie: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  color: var(--encre); background: var(--ivoire);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--or);
  color: var(--nuit); padding: 10px 18px; font-weight: 600; border-radius: 2px; }
.skip:focus { left: 8px; }

/* ---- Typographie -------------------------------------------------------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; line-height: 1.12;
  margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
h3 { font-size: 1.375rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.kicker { font-family: var(--sans); font-weight: 600; font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .18em; color: var(--or);
  display: block; margin-bottom: 16px; }
.accent-i { font-style: italic; color: var(--or); }
.s-nuit .lead, .lead { font-size: 1.1875rem; }
.lead { color: var(--encre-douce); max-width: 62ch; }
.s-nuit .lead { color: var(--ivoire-voile); }

/* ---- Sections ----------------------------------------------------------- */
.c { width: var(--c); margin-inline: auto; }
section { padding-block: 96px; }
@media (min-width: 900px) { section { padding-block: 120px; } .s-xl { padding-block: 140px; } }
@media (max-width: 899px) { section { padding-block: 72px; } }
.s-nuit { background: var(--nuit); color: var(--ivoire); }
.s-nuit-2 { background: var(--nuit-2); }
.s-ivoire { background: var(--ivoire); }
.s-ivoire-2 { background: var(--ivoire-2); }
.centre { text-align: center; }
.centre .lead { margin-inline: auto; }

/* ---- Frise de tapis (séparateur) ---------------------------------------- */
.frise { height: 14px; background: var(--nuit); position: relative; overflow: hidden; }
.frise svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- Cadre à filets (signature) ----------------------------------------- */
.filets { position: relative; border: 1px solid var(--or); padding: 6px; border-radius: 4px; }
.filets > * { border: 1px solid rgb(198 161 91 / .55); border-radius: 2px; overflow: hidden; }
.filets img { border-radius: 1px; }

/* ---- Boutons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 18px 30px; border-radius: 2px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-sortie); }
.btn:active { transform: translateY(1px); }
.btn-or { background: var(--or); color: var(--nuit); }
.btn-or:hover { background: var(--or-clair); }
.btn-contour { background: transparent; color: var(--ivoire); border-color: var(--filet-nuit); }
.btn-contour:hover { border-color: var(--or); color: var(--or-clair); }
.btn-contour-encre { background: transparent; color: var(--encre); border-color: rgb(42 31 26 / .3); }
.btn-contour-encre:hover { border-color: var(--garance); color: var(--garance); }
.lien-or { color: var(--or); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgb(198 161 91 / .4); }
.lien-or:hover { border-bottom-color: var(--or); }

/* ---- Header ------------------------------------------------------------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgb(28 18 16 / .92);
  border-bottom: 1px solid var(--filet-nuit); color: var(--ivoire); }
@supports (backdrop-filter: blur(8px)) {
  @media (min-width: 640px) { .entete { backdrop-filter: blur(8px); background: rgb(28 18 16 / .85); } } }
.entete-in { width: var(--c); margin-inline: auto; display: flex; align-items: center;
  gap: 24px; min-height: 72px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marque svg.logo-adt { display: block; border-radius: 2px; }
.marque b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.marque small { display: block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.nav-p { display: flex; align-items: center; gap: 4px; }
.nav-p > a, .nav-p > details > summary { padding: 10px 14px; font-size: .9375rem; font-weight: 500;
  color: var(--ivoire-voile); text-decoration: none; border-radius: 2px; cursor: pointer; list-style: none; }
.nav-p > details > summary::-webkit-details-marker { display: none; }
.nav-p > a:hover, .nav-p > details > summary:hover { color: var(--or-clair); }
.nav-p > a[aria-current="page"] { color: var(--or); }
.nav-p details { position: relative; }
.nav-p details[open] > summary { color: var(--or); }
.menu-deroulant { position: absolute; top: calc(100% + 10px); left: 0; min-width: 320px;
  background: var(--nuit-2); border: 1px solid var(--filet-nuit); border-radius: 4px;
  padding: 8px; box-shadow: 0 28px 60px -20px rgb(0 0 0 / .55); }
.menu-deroulant a { display: block; padding: 10px 14px; font-size: .9375rem; color: var(--ivoire-voile);
  text-decoration: none; border-radius: 2px; }
.menu-deroulant a:hover { background: rgb(198 161 91 / .1); color: var(--or-clair); }
.tel-entete { display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--or); text-decoration: none; font-size: 1rem; white-space: nowrap; }
.tel-entete:hover { color: var(--or-clair); }
.burger { display: none; }

/* Nav mobile */
@media (max-width: 1080px) {
  .nav-p, .entete .btn { display: none; }
  .burger { display: inline-flex; flex-direction: column; gap: 5px; background: none;
    border: 1px solid var(--filet-nuit); border-radius: 2px; padding: 12px 10px; cursor: pointer; }
  .burger span { width: 20px; height: 2px; background: var(--or); transition: transform .25s, opacity .25s; }
  .nav-m { display: none; background: var(--nuit); border-top: 1px solid var(--filet-nuit); }
  .nav-m.ouvert { display: block; }
  .nav-m a { display: block; padding: 14px 24px; color: var(--ivoire); text-decoration: none;
    border-bottom: 1px solid rgb(82 54 44 / .5); font-size: 1.0625rem; }
  .nav-m a.sous { padding-left: 42px; font-size: .9375rem; color: var(--ivoire-voile); }
  .nav-m .btn { margin: 16px 24px 20px; display: flex; }
  body.nav-ouverte .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-ouverte .burger span:nth-child(2) { opacity: 0; }
  body.nav-ouverte .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 1081px) { .nav-m { display: none !important; } }

/* Barre d'appel mobile */
.barre-appel { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none;
  grid-template-columns: 1fr 1fr; gap: 1px; background: var(--filet-nuit);
  border-top: 1px solid var(--filet-nuit);
  padding-bottom: env(safe-area-inset-bottom); }
.barre-appel a { display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 8px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.barre-appel .ba-tel { background: var(--or); color: var(--nuit); }
.barre-appel .ba-devis { background: var(--nuit); color: var(--or-clair); }
@media (max-width: 760px) { .barre-appel { display: grid; } body { padding-bottom: 58px; } }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: clip; background: var(--nuit); color: var(--ivoire);
  min-height: min(92svh, 860px); display: grid; align-items: end; padding-block: 0; }
.hero-fond, .hero-fond video, .hero-fond img { position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; }
.hero-voile { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(28 18 16 / .3) 0%, rgb(28 18 16 / .12) 45%, rgb(28 18 16 / .78) 100%); }
.hero h1, .hero .lead, .hero .kicker, .hero-villes { text-shadow: 0 1px 18px rgb(28 18 16 / .65); }
.hero-in { position: relative; width: var(--c); margin-inline: auto; padding-block: 140px 72px; max-width: 880px; text-align: center; justify-self: center; }
.hero .kicker { color: var(--or-clair); }
.hero h1 { margin-bottom: .35em; }
.hero .lead { color: rgb(245 239 227 / .88); margin-inline: auto; font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.hero-villes { margin: 18px 0 34px; font-family: var(--serif); font-style: italic;
  font-size: 1.0625rem; color: var(--or-clair); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .8125rem; color: rgb(245 239 227 / .55); }

/* Parallaxe hero (compositeur uniquement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
    .hero { view-timeline-name: --hero; view-timeline-axis: block; }
    .hero-fond { animation: hero-fond-p 1ms linear both; animation-timeline: --hero;
      animation-range: exit 0% exit 100%; }
    .hero-in { animation: hero-in-p 1ms linear both; animation-timeline: --hero;
      animation-range: exit 0% exit 100%; }
    @keyframes hero-fond-p { to { transform: translate3d(0, 9%, 0); } }
    @keyframes hero-in-p { to { transform: translate3d(0, 22%, 0); opacity: .1; } }
  }
}

/* ---- Bandeau confiance --------------------------------------------------- */
.confiance { padding-block: 0; background: var(--ivoire); border-bottom: 1px solid rgb(42 31 26 / .08); }
.confiance-in { width: var(--c); margin-inline: auto; display: grid;
  grid-template-columns: repeat(4, 1fr); }
.confiance-item { padding: 26px 18px; text-align: center; border-left: 1px solid rgb(42 31 26 / .08); }
.confiance-item:first-child { border-left: 0; }
.confiance-item b { display: block; font-family: var(--serif); font-size: 1.375rem;
  font-weight: 600; letter-spacing: -.01em; }
.confiance-item span { font-size: .875rem; color: var(--encre-douce); }
@media (max-width: 760px) {
  .confiance-in { grid-template-columns: 1fr 1fr; }
  .confiance-item:nth-child(3) { border-left: 0; }
  .confiance-item { border-top: 1px solid rgb(42 31 26 / .08); }
  .confiance-item:nth-child(-n+2) { border-top: 0; }
}

/* ---- Avant / Après ------------------------------------------------------- */
.ba-curseur { position: relative; overflow: hidden; border-radius: 2px; touch-action: pan-y;
  aspect-ratio: 16 / 10; background: var(--nuit-2); }
.ba-curseur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-apres { clip-path: inset(0 0 0 var(--x, 50%)); }
.ba-ligne { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px;
  background: var(--or); pointer-events: none; }
.ba-ligne::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: var(--or); color: var(--nuit);
  font-size: .75rem; letter-spacing: .05em; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 2px; }
.chip-garance { background: var(--garance); color: #FBF7EE; }
.ba-chips { position: absolute; top: 16px; left: 16px; right: 16px; display: flex;
  justify-content: space-between; pointer-events: none; }
.ba-legende { margin-top: 14px; font-size: .875rem; color: var(--encre-douce); }

/* ---- Cartes service ------------------------------------------------------ */
.grille-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
@media (max-width: 980px) { .grille-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grille-services { grid-template-columns: 1fr; } }
.carte-s { display: flex; flex-direction: column; background: var(--nuit-2);
  border: 1px solid var(--filet-nuit); border-radius: 4px; overflow: hidden;
  text-decoration: none; color: var(--ivoire); transition: border-color .25s, transform .35s var(--ease-sortie); }
.carte-s:hover { border-color: var(--or); transform: translateY(-4px); }
.carte-s figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.carte-s figure img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-sortie); }
.carte-s:hover figure img { transform: scale(1.045); }
.carte-s-corps { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-s h3 { margin: 0; }
.carte-s p { margin: 0; font-size: .9375rem; color: var(--ivoire-voile); flex: 1; }
.carte-s .appel { font-size: .875rem; font-weight: 600; color: var(--or);
  display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; }
.carte-s:hover .appel { color: var(--or-clair); }

/* ---- Process + planche technique ----------------------------------------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 56px; }
@media (max-width: 980px) { .process { grid-template-columns: 1fr; gap: 48px; } }
.etapes { display: grid; gap: 0; counter-reset: etape; }
.etape { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0;
  border-top: 1px solid rgb(42 31 26 / .12); }
.etape:last-child { border-bottom: 1px solid rgb(42 31 26 / .12); }
.etape-num { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--or);
  line-height: 1; padding-top: 4px; }
.etape h3 { margin-bottom: .3em; }
.etape p { margin: 0; font-size: .9688rem; color: var(--encre-douce); }
.planche { position: relative; }
.planche svg { width: 100%; height: auto; }
.planche-legende { font-size: .8125rem; color: var(--encre-douce); margin-top: 12px; }

/* ---- Planche technique 3D (calques HTML, méthode planches-techniques) ----
   Rotation au défilement sur __plan, écartement Z sur .couche3d, inclinaison
   souris sur __incl : trois transformations, trois éléments distincts. */
.planche3d { margin: 0; --pl-mx: 0deg; --pl-my: 0deg; }
.planche3d__scene { position: relative; width: 100%; aspect-ratio: 560 / 430;
  perspective: 1300px; perspective-origin: 46% 42%; transform-style: preserve-3d; }
.planche3d__plan { position: absolute; inset: 0; transform-style: preserve-3d; }
.planche3d__incl { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--pl-mx)) rotateY(var(--pl-my));
  transition: transform .5s var(--ease-sortie); }
.couche3d { position: absolute; inset: 0; transform: translateZ(calc(var(--i) * 22px));
  transform-style: preserve-3d; }
.couche3d svg { display: block; width: 100%; height: 100%; overflow: visible; }
.planche3d__scene::after { content: ""; position: absolute; left: 10%; right: 10%;
  bottom: 0; height: 9%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgb(42 31 26 / .2), transparent 72%);
  transform: translateZ(-40px); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
    .planche3d__plan, .couche3d { animation-timeline: view(); animation-range: entry 0% exit 60%;
      animation-timing-function: linear; animation-fill-mode: both; animation-duration: 1ms; }
    .planche3d__plan { animation-name: pl-tourne; }
    .couche3d { animation-name: pl-ecarte; }
  }
}
@keyframes pl-tourne {
  0% { transform: rotateX(24deg) rotateY(12deg); }
  45% { transform: rotateX(9deg) rotateY(4deg); }
  100% { transform: rotateX(-6deg) rotateY(-6deg); }
}
/* --i reste constante : c'est transform qui est animée, le compositeur travaille seul */
@keyframes pl-ecarte {
  0% { transform: translateZ(calc(var(--i) * 3px)); }
  45% { transform: translateZ(calc(var(--i) * 24px)); }
  100% { transform: translateZ(calc(var(--i) * 30px)); }
}
@supports not (animation-timeline: view()) {
  .planche3d__plan { transform: rotateX(6deg) rotateY(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .planche3d__plan { transform: none !important; animation: none !important; }
  .planche3d__incl { transform: none !important; transition: none; }
  .couche3d { animation: none !important; }
}
@media (max-width: 780px) {
  .planche3d svg text { font-size: 19px; letter-spacing: 0; }
  .planche3d svg text[font-size="11.5"] { display: none; }
  .planche3d__scene { perspective: 900px; }
}
@media (max-width: 639px) {
  /* La rotation continue force le redessin : position fixe sur téléphone. */
  .planche3d__plan { animation: none !important; transform: rotateX(7deg) rotateY(4deg); }
  .couche3d { animation: none !important; transform: translateZ(calc(var(--i) * 16px)); }
  .planche3d__incl { transform: none; transition: none; }
}

/* ---- Cartes service : relief 3D au survol (mesure à pointerenter) ---- */
@media (hover: hover) and (pointer: fine) {
  .carte-s { --cx: 0deg; --cy: 0deg; perspective: 800px; }
  .carte-s:hover { transform: translateY(-4px); }
  .carte-s .carte-3d { transform: rotateX(var(--cx)) rotateY(var(--cy));
    transition: transform .45s var(--ease-sortie); transform-style: preserve-3d;
    display: flex; flex-direction: column; flex: 1; }
}
.carte-3d { display: flex; flex-direction: column; flex: 1; }

/* ---- Bandes plein écran (parallaxe d'image, compositeur seul) ---- */
.bande { position: relative; overflow: clip; padding: 0; height: clamp(280px, 46vh, 480px); }
.bande img, .bande video { position: absolute; inset: -18% 0; width: 100%; height: 136%;
  object-fit: cover; }
.bande-voile { position: absolute; inset: 0; background: rgb(28 18 16 / .35); }
.bande-legende { position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 40px 24px 16px; text-align: center; font-size: .78125rem; font-style: italic;
  color: rgb(245 239 227 / .75); background: linear-gradient(0deg, rgb(28 18 16 / .7), transparent); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
    .bande img, .bande video { animation: bande-p 1ms linear both; animation-timeline: view();
      animation-range: cover 0% cover 100%; }
    @keyframes bande-p { from { transform: translate3d(0, -6%, 0); } to { transform: translate3d(0, 6%, 0); } }
  }
}

/* ---- Pages communes ---- */
.reperes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgb(42 31 26 / .12); border: 1px solid rgb(42 31 26 / .12); border-radius: 4px;
  overflow: hidden; margin: 32px 0; }
.repere { background: var(--ivoire-2); padding: 18px 20px; }
.repere b { display: block; font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.01em; }
.repere span { font-size: .8125rem; color: var(--encre-douce); }
@media (max-width: 640px) { .reperes { grid-template-columns: 1fr; } }
.chips-villes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips-villes a { font-size: .875rem; padding: 8px 14px; border: 1px solid rgb(42 31 26 / .18);
  border-radius: 999px; text-decoration: none; color: var(--encre-douce); }
.chips-villes a:hover { border-color: var(--garance); color: var(--garance); }
.s-nuit .chips-villes a { border-color: var(--filet-nuit); color: var(--ivoire-voile); }
.s-nuit .chips-villes a:hover { border-color: var(--or); color: var(--or-clair); }
.zone-secteur { margin-top: 64px; }
.zone-secteur .filets { max-width: 100%; margin-bottom: 32px; }
.zone-secteur .filets img { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; }

/* ---- Section rachat (nuit, arche) ---------------------------------------- */
.rachat { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
@media (max-width: 980px) { .rachat { grid-template-columns: 1fr; gap: 48px; } }
.arche { width: min(420px, 86%); margin-inline: auto; }
.arche img { border-radius: 999px 999px 4px 4px; aspect-ratio: 3 / 4; object-fit: cover;
  border: 1px solid var(--or); padding: 6px; background: var(--nuit); }
.liste-points { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.liste-points li { padding-left: 30px; position: relative; color: var(--ivoire-voile); }
.s-ivoire .liste-points li, .s-ivoire-2 .liste-points li { color: var(--encre-douce); }
.liste-points li::before { content: ""; position: absolute; left: 0; top: .52em; width: 14px; height: 2px; background: var(--or); }
.chiffre-cle { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--or); line-height: 1; }

/* ---- Galerie ------------------------------------------------------------- */
.mosaique { columns: 3 300px; gap: 20px; margin-top: 56px; }
.mosaique figure { margin: 0 0 20px; break-inside: avoid; border-radius: 2px; overflow: hidden;
  position: relative; background: var(--nuit-2); }
.mosaique img { width: 100%; transition: transform .8s var(--ease-sortie); }
.mosaique figure:hover img { transform: scale(1.03); }
.mosaique figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 12px;
  font-size: .8125rem; color: var(--ivoire); opacity: 0;
  background: linear-gradient(0deg, rgb(28 18 16 / .82), transparent); transition: opacity .3s; }
.mosaique figure:hover figcaption { opacity: 1; }

/* ---- Zones --------------------------------------------------------------- */
.zones-nuage { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.zones-nuage a, .zones-nuage span { font-size: .9375rem; padding: 10px 18px; text-decoration: none;
  color: var(--ivoire-voile); border: 1px solid var(--filet-nuit); border-radius: 999px; }
.zones-nuage a:hover { border-color: var(--or); color: var(--or-clair); }
.zone-atelier { border-color: var(--or) !important; color: var(--or-clair) !important; }
.grille-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin-top: 48px; }
@media (max-width: 760px) { .grille-zones { grid-template-columns: 1fr; } }
.zone-item { border-top: 1px solid rgb(42 31 26 / .12); padding-top: 18px; }
.zone-item h3 { font-size: 1.125rem; margin-bottom: .25em; }
.zone-item p { font-size: .9375rem; color: var(--encre-douce); margin: 0; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-liste { margin-top: 48px; display: grid; gap: 0; max-width: 820px; }
.faq-liste details { border-top: 1px solid rgb(42 31 26 / .14); }
.faq-liste details:last-child { border-bottom: 1px solid rgb(42 31 26 / .14); }
.s-nuit .faq-liste details { border-color: var(--filet-nuit); }
.faq-liste summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  gap: 24px; align-items: baseline; padding: 22px 4px; font-family: var(--serif);
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; }
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after { content: "+"; font-family: var(--sans); font-weight: 400;
  font-size: 1.5rem; color: var(--or); flex-shrink: 0; line-height: 1; }
.faq-liste details[open] summary::after { content: "−"; }
.faq-liste .faq-r { padding: 0 4px 26px; color: var(--encre-douce); max-width: 68ch; }
.s-nuit .faq-liste .faq-r { color: var(--ivoire-voile); }

/* ---- Formulaire ----------------------------------------------------------- */
.bloc-devis { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--filet-nuit); background: var(--ivoire-2); color: var(--encre);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
@media (max-width: 900px) { .bloc-devis { grid-template-columns: 1fr; } }
.bloc-devis-info { background: var(--nuit-2); color: var(--ivoire); padding: 48px 40px; }
.bloc-devis-info h2, .bloc-devis-info h3 { color: var(--ivoire); }
.bloc-devis-info .liste-points li { color: var(--ivoire-voile); }
.bloc-devis-form { padding: 48px 40px; }
@media (max-width: 640px) { .bloc-devis-info, .bloc-devis-form { padding: 32px 24px; } }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champs .large { grid-column: 1 / -1; }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  background: #fff; border: 1px solid rgb(42 31 26 / .22); border-radius: 2px;
  padding: 13px 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--or); outline-offset: 0; border-color: var(--or); }
textarea { min-height: 120px; resize: vertical; }
.aide-champ { font-size: .8125rem; color: var(--encre-douce); margin-top: 6px; }
.form-note { font-size: .8125rem; color: var(--encre-douce); margin-top: 14px; }
.form-ok { background: rgb(198 161 91 / .14); border: 1px solid var(--or); border-radius: 2px;
  padding: 16px 18px; font-weight: 500; }

/* ---- Bandeau CTA fin de page --------------------------------------------- */
.cta-fin { text-align: center; }
.cta-fin .tel-grand { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600; color: var(--or); text-decoration: none; letter-spacing: -.01em; }
.cta-fin .tel-grand:hover { color: var(--or-clair); }

/* ---- Pied ---------------------------------------------------------------- */
.pied { background: var(--nuit); color: var(--ivoire-voile); border-top: 1px solid var(--filet-nuit);
  padding-block: 72px 32px; font-size: .9375rem; }
.pied-grille { width: var(--c); margin-inline: auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 980px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h3 { color: var(--ivoire); font-size: 1rem; font-family: var(--sans); font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pied a { color: var(--ivoire-voile); text-decoration: none; }
.pied a:hover { color: var(--or-clair); }
.pied-bas { width: var(--c); margin: 56px auto 0; padding-top: 24px;
  border-top: 1px solid rgb(82 54 44 / .6); display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; font-size: .8125rem; color: rgb(245 239 227 / .45); }
.pied-bas a { color: inherit; }
.mention-ia { font-size: .75rem; color: rgb(245 239 227 / .4); margin-top: 18px; max-width: 60ch; }

/* ---- Pages service / internes -------------------------------------------- */
.hero-page { position: relative; overflow: clip; background: var(--nuit); color: var(--ivoire);
  padding-block: 0; }
.hero-page-fond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero-page-voile { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(28 18 16 / .93) 0%, rgb(28 18 16 / .78) 44%, rgb(28 18 16 / .18) 78%, rgb(28 18 16 / .05) 100%); }
@media (max-width: 760px) { .hero-page-voile { background: linear-gradient(180deg, rgb(28 18 16 / .88), rgb(28 18 16 / .72)); } }
.hero-page-in { max-width: 720px !important; margin-inline: 0 !important; }
.hero-page .hero-page-in { padding-left: max(24px, calc((100vw - 1200px) / 2)); }
.hero-page-in { position: relative; width: var(--c); margin-inline: auto; padding: 120px 0 88px; max-width: 840px; }
.fil { position: relative; font-size: .8125rem; margin-bottom: 28px; color: rgb(245 239 227 / .6); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.fil a { color: inherit; text-decoration: none; }
.fil a:hover { color: var(--or-clair); }
.fil li + li::before { content: "→"; margin-right: 8px; color: var(--or); }
.deux-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
@media (max-width: 980px) { .deux-col { grid-template-columns: 1fr; gap: 40px; } }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.legende-ia { font-size: .78125rem; color: var(--encre-douce); margin-top: 10px; font-style: italic; }
.s-nuit .legende-ia { color: rgb(245 239 227 / .5); }
.encart { background: var(--ivoire-2); border: 1px solid rgb(42 31 26 / .1); border-left: 3px solid var(--or);
  border-radius: 2px; padding: 24px 26px; }
.s-nuit .encart { background: var(--nuit-2); border-color: var(--filet-nuit); border-left-color: var(--or); }

/* ---- Rachat mis en avant ---- */
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.atout { background: var(--nuit-2); border: 1px solid var(--filet-nuit); border-radius: 4px;
  padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.atout--fort { border-color: var(--or); background:
  linear-gradient(180deg, rgb(198 161 91 / .1), rgb(42 27 23 / .9)); }
.atout-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--or); color: var(--or); margin-bottom: 6px; }
.atout-ic svg { width: 21px; height: 21px; }
.atout h3 { margin: 0; font-size: 1.25rem; }
.atout p { margin: 0; font-size: .9375rem; color: var(--ivoire-voile); }
.rachat-bas { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; margin-top: 64px; }
.rachat-img { width: 100%; border-radius: 4px; border: 1px solid var(--filet-nuit); }
.rachat-bas h3 { font-size: 1.375rem; }
.etapes-rachat { list-style: none; counter-reset: er; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; }
.etapes-rachat li { counter-increment: er; position: relative; padding-left: 46px; }
.etapes-rachat li::before { content: counter(er); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--or); color: var(--or); font-family: var(--serif); font-size: .9375rem; }
.etapes-rachat b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: -.01em; }
.etapes-rachat span { font-size: .9375rem; color: var(--ivoire-voile); }
.rachat-note { margin-top: 26px; font-size: .9375rem; color: var(--ivoire-voile);
  border-left: 2px solid var(--or); padding-left: 16px; }
@media (max-width: 980px) {
  .atouts { grid-template-columns: 1fr; gap: 14px; }
  .rachat-bas { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- Section « La maison » (portrait) ---- */
.maison-grille { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.maison-photo .filets { border-color: var(--or); }
.maison-photo img { width: 100%; display: block; }
.maison-texte h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.maison-chiffres { display: grid; grid-template-columns: repeat(3, auto); gap: 0;
  margin: 34px 0 32px; border-top: 1px solid var(--filet-nuit); border-bottom: 1px solid var(--filet-nuit); }
.maison-chiffres > div { padding: 20px 24px 20px 0; }
.maison-chiffres > div + div { padding-left: 24px; border-left: 1px solid var(--filet-nuit); }
.maison-chiffres b { display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--or); line-height: 1; letter-spacing: -.02em; }
.maison-chiffres span { font-size: .8125rem; color: var(--ivoire-voile); display: block; margin-top: 8px; }
.etoile-inline { font-size: .55em; color: var(--or) !important; margin-left: .12em;
  display: inline !important; margin-top: 0 !important; }
.maison-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .maison-grille { grid-template-columns: 1fr; gap: 40px; }
  .maison-photo { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .maison-chiffres { grid-template-columns: 1fr; }
  .maison-chiffres > div { padding: 16px 0; }
  .maison-chiffres > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--filet-nuit); }
  .maison-actions .btn { width: 100%; }
}

/* ---- Badge « photo de l'atelier » ---- */
.chip-photo { position: absolute; right: 8px; bottom: 8px; z-index: 2; font-size: .625rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px;
  border-radius: 2px; background: rgb(166 61 47 / .88); color: #FBF7EE; }
.legende-photo { margin-top: 10px; font-size: .8125rem; color: var(--encre-douce); font-style: italic; }
.s-nuit .legende-photo { color: rgb(245 239 227 / .6); }

/* ---- Carte Google ---- */
.carte-gmap iframe { filter: saturate(.85) contrast(1.02); }

/* ---- Blog ---- */
.grille-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
@media (max-width: 980px) { .grille-blog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grille-blog { grid-template-columns: 1fr; } }
.carte-b { display: flex; flex-direction: column; background: var(--ivoire-2);
  border: 1px solid rgb(42 31 26 / .12); border-radius: 4px; overflow: hidden;
  text-decoration: none; color: var(--encre); transition: border-color .25s, transform .35s var(--ease-sortie), box-shadow .35s; }
.carte-b:hover { border-color: var(--or); transform: translateY(-4px); box-shadow: var(--ombre); }
.carte-b figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.carte-b figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-sortie); }
.carte-b:hover figure img { transform: scale(1.04); }
.carte-b-corps { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-b time { font-size: .78125rem; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .1em; }
.carte-b h3 { margin: 0; font-size: 1.1875rem; }
.carte-b p { margin: 0; font-size: .9375rem; color: var(--encre-douce); flex: 1; }

/* ---- Avant / Après (page réalisations) ---- */
.grille-aa { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
@media (max-width: 760px) { .grille-aa { grid-template-columns: 1fr; } }
.grille-aa .filets { position: relative; }
.grille-aa figcaption { margin-top: 10px; font-size: .875rem; color: var(--encre-douce); }

/* ---- Badge Illustration (mention IA discrète) ---- */
.chip-ia { position: absolute; right: 8px; bottom: 8px; z-index: 2; font-size: .625rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px;
  border-radius: 2px; background: rgb(28 18 16 / .55); color: rgb(245 239 227 / .8);
  pointer-events: auto; cursor: help; }

/* ---- Entrée 3D des cartes service ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
    .grille-services { perspective: 1100px; }
    .carte-s.rvl { animation-name: carte-3d-entree; }
    .carte-s.rvl:nth-child(3n+1) { animation-range: entry 0% cover 13%; }
    .carte-s.rvl:nth-child(3n+2) { animation-range: entry 3% cover 17%; }
    .carte-s.rvl:nth-child(3n)   { animation-range: entry 6% cover 21%; }
    @keyframes carte-3d-entree {
      from { opacity: 0; transform: translate3d(0, 40px, 0) rotateX(9deg); }
      to { opacity: 1; transform: none; } }
  }
}

/* ---- Zoom lent des bandes ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
    .bande img, .bande video { animation-name: bande-zoom; }
    @keyframes bande-zoom {
      from { transform: translate3d(0, -5%, 0) scale(1.06); }
      to { transform: translate3d(0, 5%, 0) scale(1); } }
  }
}

/* ---- Avis Google : rivière de témoignages ---- */
.avis-tete { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.avis-note { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 7vw, 5.5rem);
  color: var(--or); line-height: 1; letter-spacing: -.02em; }
.etoiles { color: var(--or); letter-spacing: .12em; font-size: 1.125rem; }
.avis-riviere { overflow: hidden; margin-top: 56px; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.avis-piste { display: flex; gap: 24px; width: max-content; padding-block: 4px; }
.avis-carte { width: 380px; max-width: 84vw; flex-shrink: 0; background: var(--ivoire-2);
  border: 1px solid rgb(42 31 26 / .12); border-left: 3px solid var(--or); border-radius: 4px;
  padding: 26px 26px 22px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 12px; }
.avis-carte p { margin: 0; font-size: .9375rem; color: var(--encre-douce);
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.avis-carte footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: .875rem; }
.avis-carte footer b { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--encre); }
.avis-carte footer span { color: var(--encre-douce); font-size: .78125rem; }
@media (prefers-reduced-motion: no-preference) {
  .avis-piste { animation: avis-defile 80s linear infinite; }
  .avis-piste:hover { animation-play-state: paused; }
  .avis-piste--2 { animation-duration: 96s; animation-direction: reverse; }
}
@keyframes avis-defile { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .avis-riviere { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
.avis-riviere + .avis-riviere { margin-top: 24px; }
.g-avis { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; }

/* ---- Tilt léger des figures au survol ---- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fig-ia .filets { transition: transform .5s var(--ease-sortie), box-shadow .5s; transform-style: preserve-3d; }
  .fig-ia:hover .filets { transform: perspective(900px) rotateX(1.6deg) rotateY(-1.6deg) translateY(-3px); box-shadow: var(--ombre); }
  .avis-carte { transition: transform .4s var(--ease-sortie), box-shadow .4s; }
  .avis-carte:hover { transform: translateY(-4px); }
}

/* ---- Révélations au défilement -------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rvl { animation: monter .9s var(--ease-sortie) both; animation-timeline: view();
      animation-range: entry 0% cover 14%; }
  }
}
@keyframes monter {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---- Impression ----------------------------------------------------------- */
@media print { .entete, .barre-appel, .pied, .hero-fond video { display: none !important; } }

/* ==========================================================================
   HÉROS SCROLLYTELLING — 4 étapes, bloc collant, fondus enchaînés.
   Mécanique reprise de la référence (section haute + sticky), mais pilotée
   100 % en CSS scroll-driven : aucun écouteur de défilement, aucun recalcul.
   ========================================================================== */
.sh { position: relative; height: 420vh; padding: 0; background: var(--nuit); }
.sh-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ivoire); }

/* --- plans d'images empilés --- */
.sh-plan { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform;
  backface-visibility: hidden; }
.sh-plan img, .sh-plan video { width: 100%; height: 100%; object-fit: cover; }
.sh-plan--1 { opacity: 1; }
.sh-voile { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgb(28 18 16 / .7) 0%, rgb(28 18 16 / .26) 42%, rgb(28 18 16 / .84) 100%); }
.sh-grain { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgb(28 18 16 / .45) 100%); }

/* --- textes --- */
.sh-scene { position: relative; z-index: 5; flex: 1 1 0; min-height: 0; display: grid;
  place-items: center; text-align: center; padding: 86px 24px 8px; }
.sh-etapes { position: relative; width: min(880px, 100%); }
.sh-etape { grid-area: 1 / 1; opacity: 0; will-change: opacity, transform; }
.sh-etapes { display: grid; }
.sh-etape--1 { opacity: 1; }
.sh-etape .kicker { color: var(--or-clair); }
.sh-etape h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
.sh-etape h1, .sh-etape h2 { margin-bottom: .3em;
  text-shadow: 0 2px 30px rgb(28 18 16 / .8), 0 1px 4px rgb(28 18 16 / .5); }
.sh-etape h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -.025em; font-weight: 650; }
.sh-etape p { color: rgb(245 239 227 / .9); font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  max-width: 60ch; margin-inline: auto; text-shadow: 0 1px 16px rgb(28 18 16 / .8); }
.sh-villes { margin-top: 18px; font-family: var(--serif); font-style: italic;
  font-size: 1.0625rem; color: var(--or-clair); text-shadow: 0 1px 16px rgb(28 18 16 / .8); }

/* --- bas : action + jauges --- */
.sh-bas { position: relative; z-index: 5; flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: 18px; padding: 0 24px 34px; }
.sh-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.sh-note { font-size: .8125rem; color: rgb(245 239 227 / .62); }
.sh-jauges { display: flex; gap: 10px; }
.sh-jauge { width: 62px; height: 2px; background: rgb(245 239 227 / .22); overflow: hidden; border-radius: 2px; }
.sh-jauge i { display: block; height: 100%; background: var(--or); transform: scaleX(0);
  transform-origin: left center; will-change: transform; }
.sh-jauge--1 i { transform: scaleX(1); }

/* --- animations liées au défilement --- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sh { view-timeline-name: --sh; view-timeline-axis: block; }
    .sh-plan, .sh-etape, .sh-jauge i {
      animation-timeline: --sh; animation-range: contain 0% contain 100%;
      animation-duration: 1ms; animation-fill-mode: both; animation-timing-function: linear; }
    .sh-plan--1 { animation-name: sh-p1; } .sh-plan--2 { animation-name: sh-p2; }
    .sh-plan--3 { animation-name: sh-p3; } .sh-plan--4 { animation-name: sh-p4; }
    .sh-etape--1 { animation-name: sh-t1; } .sh-etape--2 { animation-name: sh-t2; }
    .sh-etape--3 { animation-name: sh-t3; } .sh-etape--4 { animation-name: sh-t4; }
    .sh-jauge--1 i { animation-name: sh-j1; } .sh-jauge--2 i { animation-name: sh-j2; }
    .sh-jauge--3 i { animation-name: sh-j3; } .sh-jauge--4 i { animation-name: sh-j4; }
  }
}
/* plans : fondu long en courbe douce + dérive d'échelle continue (compositeur seul) */
@keyframes sh-p1 {
  0% { opacity: 1; transform: scale(1.12); }
  17% { opacity: 1; } 21% { opacity: .82; } 25% { opacity: .35; } 29% { opacity: 0; }
  100% { opacity: 0; transform: scale(1); } }
@keyframes sh-p2 {
  0% { opacity: 0; transform: scale(1.12); }
  17% { opacity: 0; } 21% { opacity: .18; } 25% { opacity: .65; } 29% { opacity: 1; }
  42% { opacity: 1; } 46% { opacity: .82; } 50% { opacity: .35; } 54% { opacity: 0; }
  100% { opacity: 0; transform: scale(1); } }
@keyframes sh-p3 {
  0%, 42% { opacity: 0; transform: scale(1.12); }
  46% { opacity: .18; } 50% { opacity: .65; } 54% { opacity: 1; }
  67% { opacity: 1; } 71% { opacity: .82; } 75% { opacity: .35; } 79% { opacity: 0; }
  100% { opacity: 0; transform: scale(1); } }
@keyframes sh-p4 {
  0%, 67% { opacity: 0; transform: scale(1.12); }
  71% { opacity: .18; } 75% { opacity: .65; } 79% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); } }
/* textes : fondu doux + relevé progressif */
@keyframes sh-t1 {
  0% { opacity: 1; transform: none; }
  15% { opacity: 1; transform: none; } 19% { opacity: .6; transform: translate3d(0,-8px,0); }
  23% { opacity: 0; transform: translate3d(0,-26px,0); }
  100% { opacity: 0; transform: translate3d(0,-26px,0); } }
@keyframes sh-t2 {
  0%, 22% { opacity: 0; transform: translate3d(0,26px,0); }
  26% { opacity: .55; transform: translate3d(0,10px,0); }
  30%, 40% { opacity: 1; transform: none; }
  44% { opacity: .55; transform: translate3d(0,-10px,0); }
  48%, 100% { opacity: 0; transform: translate3d(0,-26px,0); } }
@keyframes sh-t3 {
  0%, 47% { opacity: 0; transform: translate3d(0,26px,0); }
  51% { opacity: .55; transform: translate3d(0,10px,0); }
  55%, 65% { opacity: 1; transform: none; }
  69% { opacity: .55; transform: translate3d(0,-10px,0); }
  73%, 100% { opacity: 0; transform: translate3d(0,-26px,0); } }
@keyframes sh-t4 {
  0%, 72% { opacity: 0; transform: translate3d(0,26px,0); }
  76% { opacity: .55; transform: translate3d(0,10px,0); }
  80%, 100% { opacity: 1; transform: none; } }
/* jauges */
@keyframes sh-j1 { 0% { transform: scaleX(0); } 25%,100% { transform: scaleX(1); } }
@keyframes sh-j2 { 0%,25% { transform: scaleX(0); } 50%,100% { transform: scaleX(1); } }
@keyframes sh-j3 { 0%,50% { transform: scaleX(0); } 75%,100% { transform: scaleX(1); } }
@keyframes sh-j4 { 0%,75% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* --- replis : navigateur sans timeline, ou mouvement réduit --- */
@supports not (animation-timeline: view()) { .sh { height: 100svh; } }
@media (prefers-reduced-motion: reduce) { .sh { height: 100svh; } }
@media (max-width: 860px) {
  .sh { height: 340vh; }
  /* la barre d'appel fixe occupe le bas : le tableau s'arrête juste au-dessus */
  .sh-sticky { height: calc(100svh - 58px); }
  .sh-plan { will-change: opacity; }
  /* le bouton d'appel du héros ferait doublon avec la barre fixe */
  .sh-actions .btn-contour { display: none; }
  .sh-scene { padding: 76px 20px 4px; }
  .sh-etape h1 { font-size: clamp(1.95rem, 8.2vw, 2.7rem); line-height: 1.14; }
  .sh-etape h2 { font-size: clamp(1.8rem, 7.6vw, 2.5rem); line-height: 1.14; }
  .sh-etape p { font-size: 1rem; line-height: 1.6; }
  .sh-etape .kicker { font-size: .6875rem; letter-spacing: .14em; margin-bottom: 12px; }
  .sh-villes { font-size: .9375rem; margin-top: 14px; }
  .sh-bas { gap: 14px; padding-bottom: 26px; }
  .sh-actions { width: 100%; flex-direction: column; gap: 10px; }
  .sh-actions .btn { width: 100%; padding: 16px 20px; }
  .sh-note { font-size: .75rem; text-align: center; }
  .sh-jauge { width: 34px; }
  /* Sur téléphone, la dérive d'échelle des grands plans coûte cher : fondu seul. */
  .sh-plan { transform: none !important; }
}
@media (max-width: 420px) {
  .sh-etape p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
}

/* --- pastille téléphone + retour haut (repris de la référence) --- */
.pastille-tel { position: fixed; right: 22px; bottom: 22px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px;
  background: var(--or); color: var(--nuit); font-weight: 600; font-size: .9375rem;
  border-radius: 999px; text-decoration: none; box-shadow: 0 18px 40px -14px rgb(0 0 0 / .5);
  transition: background-color .2s, transform .25s var(--ease-sortie); }
.pastille-tel:hover { background: var(--or-clair); transform: translateY(-2px); }
.haut { position: fixed; left: 22px; bottom: 22px; z-index: 55; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 999px; text-decoration: none;
  background: rgb(251 247 238 / .92); color: var(--encre); border: 1px solid rgb(42 31 26 / .12);
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / .35); opacity: 0; pointer-events: none;
  transition: opacity .3s; }
.haut.visible { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) { .pastille-tel, .haut { display: none; } }


/* ==========================================================================
   AJUSTEMENTS TÉLÉPHONE — lisibilité, cibles tactiles, débordements
   ========================================================================== */
@media (max-width: 760px) {
  :root { --c: calc(100vw - 2 * 18px); }
  h1 { font-size: clamp(2rem, 8.4vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 7.2vw, 2.2rem); }
  .lead { font-size: 1.0625rem; }
  section { padding-block: 56px; }
  .s-xl { padding-block: 64px; }

  /* En-tête plus compacte */
  .entete-in { min-height: 62px; gap: 12px; }
  .marque svg.logo-adt { width: 38px; height: 38px; }
  .marque b { font-size: 1.0625rem; }
  .marque small { font-size: .625rem; }
  .tel-entete { display: none; }

  /* Colonnes → pile */
  .deux-col, .process, .rachat { grid-template-columns: 1fr !important; gap: 32px; }
  .hero-page-in { padding: 92px 0 56px; }
  .hero-page-in h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .fil { font-size: .75rem; margin-bottom: 20px; }
  .fil ol { gap: 6px; }

  /* Cartes et grilles */
  .grille-services, .grille-blog, .grille-aa, .grille-zones { grid-template-columns: 1fr !important; gap: 16px; }
  .mosaique { columns: 1; gap: 14px; }
  .mosaique figcaption { opacity: 1; position: static; padding: 10px 2px 0;
    background: none; color: var(--encre-douce); }
  .s-nuit .mosaique figcaption { color: var(--ivoire-voile); }
  .carte-s:hover, .carte-b:hover { transform: none; }

  /* Formulaire : cibles confortables, pas de zoom iOS */
  .bloc-devis { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; padding: 14px; }
  .btn { padding: 16px 22px; width: 100%; }
  .hero-actions .btn, .cta-fin .btn { width: 100%; }
  .sh-actions .btn { width: 100%; }
  .encart { padding: 20px; }

  /* Avis : cartes plus étroites, défilement plus lent */
  .avis-carte { width: 300px; padding: 22px; }
  .avis-piste { animation-duration: 62s; }
  .avis-piste--2 { animation-duration: 74s; }
  .avis-note { font-size: 3rem; }
  .avis-tete { gap: 12px; }

  /* Étapes et repères */
  .etape { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; }
  .etape-num { font-size: 1.6rem; }
  .reperes { grid-template-columns: 1fr; }
  .chips-villes a, .zones-nuage a, .zones-nuage span { padding: 10px 16px; font-size: .875rem; }

  /* Rien ne déborde */
  .carte-gmap iframe { height: 260px; }
  .prose { max-width: 100%; }
  img, video, iframe, table { max-width: 100%; }
  .pied-grille { gap: 32px; }
}
@media (max-width: 420px) {
  :root { --c: calc(100vw - 2 * 14px); }
  .avis-carte { width: 82vw; }
}
/* Barre d'appel : ne masque pas le pied de page */
@media (max-width: 760px) { .pied { padding-bottom: 76px; } }

/* --- Ajustements Âme du Tapis --- */
.nav-p > a, .nav-p > details > summary { white-space: nowrap; }
.marque small { white-space: nowrap; }
