/* =========================================================
   IXPRONET Nettoyage — feuille de style principale
   Ambiance : photographie naturelle, noir profond, blanc chaud.
   Les couleurs du logo (bleu, vert citron) restent des touches discrètes.
   ========================================================= */

:root {
  --noir: #070708;
  --noir-2: #0e0f12;
  --noir-3: #17191d;
  --blanc: #ffffff;
  --ivoire: #f4f1ea;
  --texte: #ece9e2;
  --texte-doux: #b3ada2;
  --citron: #b5d94a;
  --bleu-logo: #2b6fd6;
  --ligne: rgba(244, 241, 234, 0.16);
  --carte: rgba(14, 15, 18, 0.78);
  --ombre: 0 30px 70px rgba(0, 0, 0, 0.45);

  --font-titre: "Cormorant Garamond", "Times New Roman", serif;
  --font-texte: "Manrope", "Segoe UI", system-ui, sans-serif;

  --header-h: 78px;
  --rayon: 16px;
  --gouttiere: clamp(16px, 4.5vw, 64px);
  --max: 1240px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--texte);
  font-family: var(--font-texte);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

a {
  color: var(--ivoire);
}

h1,
h2,
h3 {
  font-family: var(--font-titre);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--blanc);
  margin: 0 0 0.45em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 2px solid var(--citron);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ivoire);
  color: var(--noir);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-texte);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--ivoire);
  color: var(--noir);
}

.btn--primary:hover {
  background: var(--blanc);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--blanc);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--blanc);
  background: rgba(255, 255, 255, 0.12);
}

.btn--whatsapp {
  background: #1f8f4e;
  color: var(--blanc);
}

.btn--whatsapp:hover {
  background: #25a75c;
  transform: translateY(-2px);
}

/* ---------- En-tête ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gouttiere);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  transition: background-color 0.35s, border-color 0.35s;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 7, 8, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--ligne);
}

/* Accueil : sous l'en-tête, le film bouge en permanence et le flou d'arrière-plan serait
   recalculé à chaque image. Fond sombre presque opaque à la place (rendu quasi identique). */
.page-home .site-header.is-scrolled,
.page-home .site-header.is-open {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(7, 7, 8, 0.95);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 124px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--texte);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--blanc);
}

.site-nav a[aria-current="page"] {
  color: var(--blanc);
  text-decoration: underline;
  text-decoration-color: var(--citron);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta .btn {
  min-height: 44px;
  padding: 8px 20px;
  letter-spacing: 0.06em;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--blanc);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Barre de progression du film */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: 2px;
  background: var(--ivoire);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Navigateurs récents : la barre de progression suit le défilement en CSS pur (aucun JavaScript) */
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }

  @keyframes progress-grow {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
}

/* ---------- Film photo en arrière-plan (page d'accueil) ----------
   Une seule photo plein écran est affichée à la fois (deux pendant un fondu enchaîné).
   La caméra (déplacement + zoom) est calculée par js/cinema.js et appliquée en « transform »,
   traité par la carte graphique. */

.cinema {
  position: fixed;
  inset: 0;
  z-index: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  /* Pas de fond ici : le noir vient déjà de la page (body). Un fond sur ce cadre fixe
     coûterait à lui seul une couche plein écran de plus à la carte graphique. */
  background: transparent;
}

.shot {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}

/* Sans JavaScript, la première photo s'affiche simplement en plein écran.
   Avec la caméra, seules les photos du moment (is-on, posée par js/cinema.js) sont visibles. */
.shot:first-child,
.shot.is-on {
  visibility: visible;
}

.cinema.has-camera .shot:not(.is-on) {
  visibility: hidden;
}

.shot__media {
  position: absolute;
  inset: 0;
}

.shot picture {
  display: contents;
}

/* La photo garde toujours ses proportions (« cover ») : jamais étirée ni déformée */
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caméra : la photo est dimensionnée pour couvrir l'écran (--film-w / --film-h, calculées
   au chargement et au redimensionnement), puis déplacée et zoomée par js/cinema.js */
.cinema.has-camera .shot img {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--film-w, 100%);
  height: var(--film-h, 100%);
  max-width: none;
  transform-origin: 0 0;
}

/* Calque graphique réservé aux photos affichées : les autres n'occupent pas la mémoire graphique */
.shot.is-on img {
  will-change: transform;
}

/* Voile de lisibilité fixe, en haut (en-tête) et en bas de l'écran */
.cinema__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cinema__shade--top {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.55) 100%);
}

/* Voile sombre derrière la partie Contact (classe is-veiled posée par js/cinema.js) */
.cinema__shade--veil {
  background: rgba(5, 5, 6, 0.62);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cinema.is-veiled .cinema__shade--veil {
  opacity: 1;
}

.cinema__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Accueil : chapitres du film ---------- */

.film {
  position: relative;
  z-index: 1;
  /* Le halo des textes est coupé aux bords de l'écran : jamais de défilement horizontal.
     (« clip » ne crée pas de zone de défilement : les textes épinglés restent fixes.) */
  overflow-x: clip;
}

.chapter {
  position: relative;
}

/* Longueur de défilement de chaque chapitre : le texte reste épinglé pendant (hauteur − 100 vh),
   puis le chapitre suivant arrive. Une scène par chapitre (photo + texte + bouton). */
.chapter--villa,
.chapter--automobile,
.chapter--canapes,
.chapter--locations {
  height: 170vh;
}

.chapter__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 20px) var(--gouttiere) 56px;
  pointer-events: none;
}

.chapter__card {
  position: relative;
  width: min(540px, 100%);
  pointer-events: auto;
}

/* Halo sombre et diffus derrière le texte (aucun rectangle) : lisible sur toutes les photos */
.chapter__card {
  isolation: isolate;
}

.chapter__card::before {
  content: "";
  position: absolute;
  inset: -28% -20%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(6, 6, 7, 0.58), rgba(6, 6, 7, 0.34) 55%, rgba(6, 6, 7, 0));
  pointer-events: none;
}

/* Chaque texte n'apparaît que pendant sa scène (classe is-shown posée par js/main.js), avec un léger fondu */
.js .film .chapter__card {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
}

.js .film .chapter__card.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s;
}

.chapter--right .chapter__sticky {
  justify-content: flex-end;
}

/* Scène d'ouverture : titre en haut à gauche, sur le ciel, pour laisser la villa et l'Audi visibles
   (texte plus large et titre un peu plus petit : il reste au-dessus de la voiture) */
.chapter--villa .chapter__sticky {
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 6vh);
}

.chapter--villa .chapter__card {
  width: min(720px, 100%);
}

.chapter--villa .chapter__card h1 {
  font-size: clamp(40px, 3.9vw, 58px);
}

/* Grand écran : le texte aligné à droite garde une marge confortable avec le bord de l'écran */
@media (min-width: 821px) {
  .chapter--right .chapter__sticky {
    padding-right: calc(var(--gouttiere) + 150px);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivoire);
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--citron);
}

.chapter__card h1,
.chapter__card h2 {
  font-size: clamp(40px, 4.8vw, 68px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.chapter__card p {
  color: var(--texte);
  font-size: clamp(16px, 1.25vw, 18px);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6);
}

.chapter__card .lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ivoire);
}

.chapter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Chapitre contact (flux normal, au-dessus du film) */
.chapter--contact {
  min-height: 100vh;
  padding: calc(var(--header-h) + 8vh) var(--gouttiere) 10vh;
}

/* ---------- Avis clients (accueil, entre les scènes et le contact) ----------
   Flux normal au-dessus du film : la photo du salon, assombrie, reste devinable en fond.
   Un avis à la fois (carrousel : js/main.js) ; sans JavaScript, tous les avis sont listés. */

.reviews {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(96px, 14vh, 160px) var(--gouttiere) clamp(64px, 9vh, 110px);
}

/* Fond : voile profond fondu en haut et en bas (aucune coupure avec le film) et lueurs discrètes
   aux couleurs du logo (vert citron, bleu) et du coucher de soleil */
.reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 10% 30%, rgba(181, 217, 74, 0.11), transparent 70%),
    radial-gradient(50% 50% at 95% 80%, rgba(43, 111, 214, 0.17), transparent 70%),
    linear-gradient(180deg, rgba(7, 7, 8, 0) 0%, rgba(7, 7, 8, 0.8) 18%, rgba(7, 7, 8, 0.9) 50%, rgba(7, 7, 8, 0.8) 82%, rgba(7, 7, 8, 0) 100%);
  pointer-events: none;
}

.reviews__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.reviews__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.reviews__intro h2 {
  font-size: clamp(44px, 5.4vw, 76px);
}

.reviews__score {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--ligne);
}

.reviews__note {
  font-family: var(--font-titre);
  font-size: clamp(60px, 6vw, 84px);
  font-weight: 500;
  line-height: 0.9;
  color: var(--blanc);
}

.reviews__stars,
.review__stars {
  display: flex;
  gap: 4px;
  color: #f2c75c;
}

.reviews__stars svg,
.review__stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  filter: drop-shadow(0 0 6px rgba(242, 199, 92, 0.35));
}

.reviews__count {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.reviews__stage {
  position: relative;
}

/* Halo lumineux derrière la carte */
.reviews__halo {
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 186, 110, 0.12), rgba(43, 111, 214, 0.06) 60%, transparent);
  pointer-events: none;
}

/* Carte d'avis : fond sombre, fin liseré dégradé citron → bleu, grand guillemet en filigrane */
.review {
  --fond-carte: rgba(13, 14, 17, 0.92);
  position: relative;
  padding: clamp(28px, 3.6vw, 52px);
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(244, 241, 234, 0.06), transparent 55%) padding-box,
    linear-gradient(var(--fond-carte), var(--fond-carte)) padding-box,
    linear-gradient(135deg, rgba(181, 217, 74, 0.55), rgba(244, 241, 234, 0.1) 35%, rgba(244, 241, 234, 0.04) 65%, rgba(43, 111, 214, 0.55)) border-box;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.review::before {
  content: "\201C";
  position: absolute;
  top: clamp(0px, 0.6vw, 8px);
  right: clamp(22px, 3vw, 44px);
  font-family: var(--font-titre);
  font-size: clamp(120px, 11vw, 170px);
  line-height: 1;
  color: var(--citron);
  opacity: 0.18;
  pointer-events: none;
}

.review__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.review__stars svg {
  width: 18px;
  height: 18px;
}

.review__rating {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ivoire);
}

.review__text {
  margin: 22px 0 0;
  font-family: var(--font-titre);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ivoire);
}

.review__text p {
  margin: 0 0 0.7em;
}

.review__text p:last-child {
  margin-bottom: 0;
}

/* Avis long : 7 lignes, puis « Lire la suite » (le texte complet reste dans la page) */
.js .review.is-long:not(.is-open) .review__text {
  max-height: 10.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}

.review__more {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--citron);
  font-family: var(--font-texte);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.review__more:hover {
  color: var(--ivoire);
}

/* Avis court (tout le texte tient) : pas de « Lire la suite » */
.review__more[hidden] {
  display: none;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--ligne);
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--noir-3), var(--noir-3)) padding-box,
    linear-gradient(135deg, var(--citron), var(--bleu-logo)) border-box;
  font-family: var(--font-titre);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--ivoire);
}

.review__who {
  margin: 0;
  line-height: 1.4;
}

.review__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--blanc);
}

.review__meta {
  display: block;
  font-size: 13px;
  color: var(--texte-doux);
}

/* Sans JavaScript : les avis se suivent */
.review + .review {
  margin-top: 20px;
}

/* Carrousel : toutes les cartes au même endroit (la hauteur est celle de la plus haute),
   une seule visible ; fondu et léger glissement dans le sens de la navigation */
.js .reviews__track {
  display: grid;
  touch-action: pan-y;
}

.js .review {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--depart, 36px));
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.7s;
}

.js .review.is-leaving {
  transform: translateX(var(--sortie, -36px));
}

.js .review.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s ease 0.12s, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s, visibility 0s;
}

/* Navigation à la main, sans flèches : la carte se fait glisser (doigt ou souris) et la suit */
@media (hover: hover) and (pointer: fine) {
  .js .reviews__track {
    cursor: grab;
  }
}

.js .reviews__track.is-dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.js .reviews__track.is-dragging .review.is-active {
  transition: none;
}

/* Glisser au doigt (téléphone, tablette ; classes posées par js/main.js) : la carte et l'avis voisin
   suivent le doigt sur la carte graphique, puis se rangent vite et en douceur */
.js .reviews__track.is-touching .review.is-active,
.js .reviews__track.is-touching .review.is-near {
  will-change: transform;
}

.js .reviews__track.is-swiping .review {
  transition: none;
}

.js .reviews__track.is-swiping.is-settling .review {
  transition: transform var(--swipe-duree, 260ms) cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reviews__stage:focus-visible {
  outline-offset: 8px;
  border-radius: 22px;
}

/* Ordinateur (souris) : le halo respire très lentement */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .reviews__halo {
    animation: reviews-halo 12s ease-in-out infinite alternate;
  }

  @keyframes reviews-halo {
    from {
      opacity: 0.65;
      transform: scale(0.94);
    }
    to {
      opacity: 1;
      transform: scale(1.06);
    }
  }
}

/* Tablette et téléphone : une colonne, la carte sous le titre */
@media (max-width: 960px) {
  .reviews__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .reviews {
    padding-top: 88px;
  }

  .reviews__score {
    margin-top: 22px;
    padding-top: 20px;
  }

  .review {
    padding: 26px 22px 24px;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  }

  .review__text {
    font-size: 20px;
  }

  .review__avatar {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

/* ---------- Pages Services et Contact ---------- */

.page {
  position: relative;
  z-index: 1;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  padding: calc(var(--header-h) + 40px) var(--gouttiere) clamp(48px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.page-hero--short {
  min-height: 58vh;
}

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

.page-hero__bg picture {
  display: contents;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  animation: slow-zoom 18s ease-out both;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(7, 7, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 70%);
}

@keyframes slow-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

.page-hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(46px, 7vw, 96px);
  max-width: 12ch;
}

.page-hero p {
  max-width: 58ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--texte);
}

.section {
  padding: clamp(64px, 9vw, 130px) var(--gouttiere);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section--alt {
  background: var(--noir-2);
}

.section-title {
  font-size: clamp(36px, 4.6vw, 60px);
  max-width: 18ch;
}

/* Bloc service détaillé */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
}

.service + .service {
  border-top: 1px solid var(--ligne);
}

.service:nth-child(even) .service__visual {
  order: 2;
}

.service__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--noir-3);
  box-shadow: var(--ombre);
}

.service__visual picture {
  display: contents;
}

.service__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service:hover .service__visual img {
  transform: scale(1.04);
}

.service__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.service h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-top: 12px;
}

.service p {
  color: var(--texte-doux);
}

.checklist {
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--texte);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 16px;
  height: 1px;
  background: var(--citron);
}

.note {
  font-size: 15px;
  color: var(--texte-doux);
}

/* Étapes */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  background: var(--ligne);
  border: 1px solid var(--ligne);
}

.steps li {
  padding: clamp(24px, 3vw, 40px);
  background: var(--noir-2);
  counter-increment: step;
}

.section--alt .steps li {
  background: var(--noir);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-titre);
  font-size: 44px;
  line-height: 1;
  color: var(--ivoire);
}

.steps h3 {
  font-size: 28px;
}

.steps p {
  margin: 0;
  color: var(--texte-doux);
}

.zone {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.zone li {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  font-size: 15px;
}

.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 4px;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45));
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
}

.cta-band .chapter__actions {
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.contact-intro h2 {
  font-size: clamp(44px, 5.4vw, 76px);
}

.contact-intro > p {
  color: var(--texte);
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--carte);
  border: 1px solid var(--ligne);
  color: var(--texte);
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s;
}

a.contact-item:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(4px);
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--ligne);
  color: var(--ivoire);
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item small {
  display: block;
  color: var(--texte-doux);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--blanc);
  word-break: break-word;
}

/* Formulaire */
.form-card {
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 14px;
  background: rgba(10, 10, 12, 0.84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--ligne);
  box-shadow: var(--ombre);
}

.form-card h3 {
  font-size: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--texte);
}

.field label .req {
  color: var(--citron);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(244, 241, 234, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: var(--blanc);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 8l5 5 5-5' fill='none' stroke='%23b3ada2' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.field select option {
  background: var(--noir-2);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ivoire);
  box-shadow: 0 0 0 3px rgba(244, 241, 234, 0.15);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff6b61;
}

/* Message d'erreur en rouge, juste sous le champ concerné */
.field__error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ff7a70;
}

/* Alerte au-dessus du bouton : demande incomplète */
.form-alert {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 97, 0.55);
  background: rgba(255, 107, 97, 0.1);
  color: #ff8f86;
  font-size: 14px;
  font-weight: 600;
}

.form-alert[hidden] {
  display: none;
}

.field__error:empty {
  display: none;
}

.form-info {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(181, 217, 74, 0.07);
  border: 1px solid rgba(181, 217, 74, 0.3);
  font-size: 14px;
  color: var(--texte);
}

.form-info[hidden] {
  display: none;
}

.form-info svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--citron);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.form-footer small {
  color: var(--texte-doux);
}

.form-result {
  margin-top: 20px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--ligne);
  background: rgba(255, 255, 255, 0.04);
}

.form-result[hidden] {
  display: none;
}

.form-result p {
  margin-bottom: 14px;
}

.form-result .chapter__actions {
  margin-top: 0;
}

/* ---------- Pied de page ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 64px var(--gouttiere) 32px;
  background: var(--noir);
  border-top: 1px solid var(--ligne);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.site-footer img {
  width: 170px;
  height: auto;
  margin-bottom: 14px;
}

.site-footer h2 {
  font-family: var(--font-texte);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--texte);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blanc);
  text-decoration: underline;
}

.site-footer p {
  color: var(--texte-doux);
  font-size: 15px;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--ligne);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--texte-doux);
}

/* Mention légale, tout en bas du pied de page */
.site-footer .site-footer__legal {
  max-width: var(--max);
  margin: 18px auto 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--texte-doux);
}

/* ---------- Apparition au scroll (Services / Contact) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .service,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service:nth-child(even) .service__visual {
    order: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__inner > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 66px;
  }

  .brand img {
    width: 104px;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta .btn {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 12px var(--gouttiere) 28px;
    background: rgba(7, 7, 8, 0.97);
    border-bottom: 1px solid var(--ligne);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .site-header.is-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 16px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--ligne);
  }

  /* Sur téléphone, le texte se place en bas de l'écran et la photo reste visible au-dessus */
  .chapter__sticky,
  .chapter--right .chapter__sticky {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 44px;
  }

  /* Scène d'ouverture : texte en haut de l'écran, la villa et l'Audi restent visibles en dessous */
  .chapter--m-top .chapter__sticky {
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 22px);
    padding-bottom: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 70vh;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .chapter__actions .btn {
    flex: 1 1 auto;
  }
}

/* ---------- Téléphones et tablettes tactiles : version allégée ----------
   Le flou d'arrière-plan (backdrop-filter) est recalculé à chaque image quand la photo bouge
   derrière : on le remplace par un fond sombre opaque, visuellement très proche.
   Le grain plein écran (décoratif) est désactivé pour soulager la carte graphique. */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .site-header.is-scrolled,
  .site-header.is-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(7, 7, 8, 0.95);
  }

  .btn--ghost {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
  }

  .contact-item {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(14, 15, 18, 0.94);
  }

  .form-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 10, 12, 0.96);
  }

  .cinema__grain {
    display: none;
  }

  /* Ombres plus légères (les grandes ombres floues sont coûteuses à dessiner sur téléphone) */
  .form-card,
  .service__visual {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }

  .chapter__card h1,
  .chapter__card h2 {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }

  .chapter__card p {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  }

  /* Pas de zoom continu de 18 s en haut des pages Services et Contact */
  .page-hero__bg img {
    animation: none;
  }
}

/* Téléphone : titre d'accueil un peu plus compact */
@media (max-width: 820px) {
  .chapter--villa .chapter__card h1 {
    font-size: 34px;
  }

  .chapter--villa .chapter__actions {
    margin-top: 22px;
  }
}

/* Navigateurs intégrés (Facebook, Instagram…) : ils agrandissent le texte selon le réglage « taille
   du texte » du téléphone, contrairement à Chrome. Sur téléphone, le texte d'accueil retrouve sa
   taille prévue (classe texte-ajuste et facteur --texte-accueil posés par js/main.js seulement
   quand le navigateur agrandit le texte : ailleurs, ces règles ne s'appliquent pas). */
@media (max-width: 820px) {
  .texte-ajuste .chapter--villa .chapter__card h1 {
    font-size: calc(34px * var(--texte-accueil));
  }
}

@media (min-width: 821px) and (hover: none) and (pointer: coarse) {
  .texte-ajuste .chapter--villa .chapter__card h1 {
    font-size: calc(clamp(40px, 3.9vw, 58px) * var(--texte-accueil));
  }
}

@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .texte-ajuste .chapter--villa .chapter__card .lead {
    font-size: calc(clamp(17px, 1.5vw, 20px) * var(--texte-accueil));
  }

  .texte-ajuste .chapter--villa .chapter__actions .btn {
    font-size: calc(13px * var(--texte-accueil));
  }
}

/* ---------- Téléphones et écrans tactiles : film plus court et plus réactif ----------
   S'applique aux petits écrans ET aux écrans tactiles (téléphone en « version pour ordinateur »,
   en paysage, tablette). Un ordinateur avec souris n'est pas concerné. Même règle dans js/cinema.js
   et js/main.js (mobileQuery). */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  /* 4 scènes (photo + texte + bouton) : le texte reste épinglé pendant un demi-écran,
     puis la scène suivante arrive */
  .chapter--automobile,
  .chapter--canapes,
  .chapter--locations {
    height: 150vh;
  }

  /* Accueil : un seul écran de défilement, la scène « Nettoyage automobile » arrive dès que l'on
     commence à faire défiler. Le texte d'accueil reste en haut jusqu'à l'arrivée de la section
     suivante (aucun passage où l'Audi reste seule à l'écran, sans texte). */
  .chapter--villa {
    height: 70vh;
  }

  .chapter--villa .chapter__sticky {
    position: relative;
    height: 100%;
  }

  .chapter--villa .chapter__card {
    position: sticky;
    top: calc(var(--header-h) + 22px);
  }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
