/* =========================================================
   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);
}

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

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

.scroll-hint {
  transition: opacity 0.4s;
}

.is-scrolling-started .scroll-hint {
  opacity: 0;
}

/* L'indicateur « Défiler » s'arrête dès qu'il n'est plus visible */
.is-scrolling-started .scroll-hint span {
  animation: none;
}

.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) ---------- */

.cinema {
  position: fixed;
  inset: 0;
  z-index: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--noir);
}

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

.shot:first-child {
  opacity: 1;
  visibility: visible;
}

.shot__media {
  position: absolute;
  inset: -3%;
  transform-origin: var(--origin, 50% 50%);
}

/* Calque graphique réservé aux photos réellement à l'écran (classe posée par js/cinema.js) :
   les photos invisibles n'occupent plus la mémoire graphique du téléphone. */
.shot.is-live .shot__media {
  will-change: transform;
}

.shot picture {
  display: contents;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

/* Téléphone en portrait : images verticales (9:16) en « cover », cadrage réglable
   par photo avec --pos-m (par défaut centré) */
@media (orientation: portrait) {
  .shot img {
    object-position: var(--pos-m, 50% 50%);
  }

  .shot__media {
    transform-origin: 50% 55%;
  }
}

.shot--flip img {
  transform: scaleX(-1);
}

/* Voiles de lisibilité (réglés par js/cinema.js) */
.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%);
}

.cinema__shade--left {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0) 68%);
  opacity: 1;
}

.cinema__shade--right {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0) 68%);
  opacity: 0;
}

.cinema__shade--veil {
  background: rgba(5, 5, 6, 0.62);
  opacity: 0;
}

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

/* ---------- Écran d'ouverture ---------- */

.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--noir);
  transition: opacity 1s ease, visibility 1s;
}

.loader img {
  width: min(340px, 70vw);
  height: auto;
}

.loader__bar {
  width: 140px;
  height: 1px;
  margin: 22px auto 0;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.loader__bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--ivoire);
  animation: loader-bar 1.4s ease-in-out infinite;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Une fois l'écran d'ouverture masqué, son animation s'arrête */
.loader.is-hidden .loader__bar::after {
  animation: none;
}

@keyframes loader-bar {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(260%);
  }
}

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

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

.chapter {
  position: relative;
}

.chapter--villa {
  height: 180vh;
}

.chapter--automobile {
  height: 260vh;
}

.chapter--canapes {
  height: 200vh;
}

.chapter--locations {
  height: 260vh;
}

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

/* Calque graphique seulement pour le texte en cours d'affichage (classe posée par js/main.js) */
.chapter__card.is-live {
  will-change: opacity, transform;
}

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

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

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--texte);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}

.scroll-hint span {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
  animation: scroll-line 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* Navigation entre chapitres */
.chapters-nav {
  position: fixed;
  right: clamp(12px, 2vw, 30px);
  top: 50%;
  z-index: 50;
  transform: translateY(-50%);
}

.chapters-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.chapters-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 7px 4px;
  color: var(--texte-doux);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.chapters-nav a .label {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.chapters-nav a:hover .label,
.chapters-nav a:focus-visible .label,
.chapters-nav a.is-active .label {
  opacity: 1;
  transform: none;
}

.chapters-nav a .dot {
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s, background-color 0.3s;
}

.chapters-nav a.is-active {
  color: var(--blanc);
}

.chapters-nav a.is-active .dot {
  width: 40px;
  background: var(--citron);
}

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

/* ---------- 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: #ff8a80;
}

.field__error {
  margin: 0;
  font-size: 13px;
  color: #ffaaa3;
}

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

/* ---------- 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);
  }

  .chapters-nav {
    display: none;
  }

  /* 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;
  }

  .cinema__shade--left,
  .cinema__shade--right {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 38%, rgba(0, 0, 0, 0) 66%);
  }

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

  .scroll-hint {
    display: none;
  }

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

/* ---------- Film en mode « léger » (téléphone / tablette tactile) ----------
   Classes posées par js/cinema.js et js/main.js. Le défilement choisit la scène ;
   le fondu enchaîné (opacity) et le léger zoom (transform) sont joués par la carte graphique. */
.cinema.is-lite .shot {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.cinema.is-lite .shot.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}

.cinema.is-lite .shot.is-active .shot__media {
  animation: lite-zoom 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Scènes voisines : déjà préparées par la carte graphique, mais invisibles (opacité 0) */
.cinema.is-lite .shot.is-next:not(.is-active) {
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}

.cinema.is-lite .shot.is-active,
.cinema.is-lite .shot.is-next {
  will-change: opacity;
}

@keyframes lite-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

.cinema.is-lite .cinema__shade {
  z-index: 2;
}

.cinema.is-lite .cinema__shade--left,
.cinema.is-lite .cinema__shade--right,
.cinema.is-lite .cinema__shade--veil {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cinema.is-lite[data-side="left"] .cinema__shade--left,
.cinema.is-lite[data-side="right"] .cinema__shade--right,
.cinema.is-lite.is-veiled .cinema__shade--veil {
  opacity: 1;
}

.film.is-lite .chapter__card {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}

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

/* ---------- 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 : sur l'image d'accueil, le logo se place en haut (sur le ciel)
   et le titre en bas, pour laisser l'Audi bien visible au milieu. */
@media (max-width: 820px) {
  .chapter--villa .chapter__sticky {
    align-items: stretch;
  }

  .chapter--villa .chapter__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Texte d'accueil un peu plus compact et plus bas pour laisser l'Audi visible */
  .chapter--villa .chapter__sticky {
    padding-bottom: 26px;
  }

  .chapter--villa .chapter__card h1 {
    font-size: 34px;
  }

  .chapter--villa .chapter__actions {
    margin-top: 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;
  }
}
