/* ==========================================================================
   M.D.F Auto - feuille de style
   Page claire, accent bleu unique, un seul bloc sombre assumé (section Infos
   + pied de page + messagerie).
   Échelle de rayons documentée : boutons et champs 10px, cartes 16px,
   tuiles 18px, pastilles d'état et suggestions du chat en pilule.
   ========================================================================== */

:root {
  /* Surfaces claires */
  --bg: #f5f8fd;
  --bg-alt: #eef3fb;
  --surface: #ffffff;
  --line: #e1e8f4;
  --line-strong: #cfdaee;

  /* Encres */
  --ink: #0b1220;
  --ink-2: #4d5871;
  --ink-3: #78829a;

  /* Accent unique (bleu électrique) */
  --accent: #1b5cff;
  --accent-dark: #0f3fc4;
  --accent-soft: #e8efff;

  /* Bloc sombre */
  --dark: #0b1220;
  --dark-2: #131d33;
  --dark-line: #24304b;
  --on-dark: #eef3ff;
  --on-dark-2: #9dabc7;

  /* Sémantique */
  --ok: #0f9d63;
  --warn: #c2410c;
  --danger: #d32b3f;

  /* Rayons */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Ombres teintées bleu, jamais du noir pur */
  --sh-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 4px 14px rgba(27, 92, 255, .06);
  --sh-md: 0 2px 6px rgba(11, 18, 32, .06), 0 18px 40px rgba(27, 92, 255, .10);
  --sh-lg: 0 30px 70px rgba(11, 18, 32, .18);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --shell: 1240px;
  --header-h: 72px;
}

/* --------------------------------------------------------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -.022em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 3.7vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0; }
/* height:auto neutralise l'attribut height du HTML, sinon aspect-ratio est ignoré */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 22px; }

.section { padding-block: clamp(72px, 9vw, 128px); }

.section-head { max-width: 640px; margin-bottom: clamp(34px, 4vw, 56px); }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 1.05rem; max-width: 60ch; }

.accent { color: var(--accent); }
.muted { color: var(--ink-2); }
.opt { color: var(--ink-3); font-weight: 500; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 14px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------- boutons ---------- */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  min-height: 48px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 .97rem/1 "Manrope", system-ui, sans-serif;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { box-shadow: var(--sh-sm); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  box-shadow: 0 10px 24px rgba(27, 92, 255, .24);
}
.btn-primary:hover { --btn-bg: var(--accent-dark); --btn-bd: var(--accent-dark); box-shadow: 0 14px 30px rgba(27, 92, 255, .3); }

.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-dark:hover { --btn-bg: #16213a; }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bd: var(--accent); --btn-fg: var(--accent-dark); }
.btn-outline.on-dark { --btn-fg: var(--on-dark); --btn-bd: var(--dark-line); }
.btn-outline.on-dark:hover { --btn-bd: var(--accent); --btn-fg: #fff; background: rgba(27, 92, 255, .16); }

.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ink-2); }
.btn-ghost:hover { --btn-fg: var(--ink); background: var(--bg-alt); box-shadow: none; }

.btn-sm { padding: 9px 15px; min-height: 40px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn svg { flex: none; }

/* état de chargement du bouton d'envoi */
.btn-spinner {
  display: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(245, 248, 253, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(245, 248, 253, .94); }

/* au-dessus de la photo du hero, l'en-tête passe en clair sur transparent */
.site-header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header:not(.is-stuck) .brand-logo { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
.site-header:not(.is-stuck) .brand-text strong { color: #fff; }
.site-header:not(.is-stuck) .brand-text span { color: rgba(238, 243, 255, .72); }
.site-header:not(.is-stuck) .nav a { color: rgba(238, 243, 255, .86); }
.site-header:not(.is-stuck) .nav a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.site-header:not(.is-stuck) .phone-link,
.site-header:not(.is-stuck) .nav-toggle {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner { height: 100%; display: flex; align-items: center; gap: 26px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
/* écusson du logo : hauteur fixe, largeur automatique */
.brand-logo {
  height: 44px; width: auto;
  filter: drop-shadow(0 2px 6px rgba(11, 18, 32, .18));
}
.brand-text { display: flex; align-items: baseline; gap: 6px; font-family: "Space Grotesk", system-ui, sans-serif; }
.brand-text strong { font-size: 1.12rem; letter-spacing: -.02em; }
.brand-text span { font-size: .82rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .16em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a.is-active { color: var(--accent-dark); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link { font-variant-numeric: tabular-nums; color: var(--ink); border-color: var(--line-strong); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink); cursor: pointer;
}

/* ---------------------------------------------------------- hero ----------
   Photo plein écran, texte posé dessus. Les quatre couches sont décalées au
   scroll par GSAP (parallaxe) ; sans JavaScript elles restent simplement
   empilées et lisibles.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  margin-top: calc(var(--header-h) * -1);
  overflow: hidden;
  background: var(--dark);
  isolation: isolate;
}

.hero-layers { position: absolute; inset: 0; }
.hero-layer { position: absolute; inset: 0; will-change: transform; }

/* Le cadre reproduit exactement la taille « cover » de la photo : sa largeur et
   sa hauteur sont calculées à partir du rapport 3456 x 5184 de l'original. Les
   éléments posés dessus (floutage de la plaque) suivent donc l'image au pixel
   près, quelle que soit la taille de la fenêtre. */
.hero-frame {
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -52%);
  width: max(100vw, calc(100dvh * 3456 / 5184));
  height: max(100dvh, calc(100vw * 5184 / 3456));
}
.hero-frame > .hero-img { width: 100%; height: 100%; object-fit: cover; }

/* plaque d'immatriculation floutée (coordonnées en % de la photo d'origine,
   soit le rectangle 620,3150,700,290 de l'image 3456 x 5184) */
.hero-frame > .plate-blur {
  position: absolute;
  left: 17.94%; top: 60.76%;
  width: 20.25%; height: 5.59%;
  object-fit: fill;
  opacity: .97;
}

/* voile : lisibilité du texte au centre, sans écraser la voiture */
.hero-veil {
  background:
    radial-gradient(1100px 620px at 50% 52%, rgba(6, 11, 23, .74), rgba(6, 11, 23, .34) 60%, transparent 78%),
    linear-gradient(180deg, rgba(6, 11, 23, .62) 0%, rgba(6, 11, 23, .18) 26%, rgba(6, 11, 23, .32) 62%, rgba(6, 11, 23, .88) 100%);
  pointer-events: none;
}

.hero-copy { display: flex; align-items: center; }
.hero-copy-inner { padding-top: var(--header-h); max-width: var(--shell); text-align: center; }
.hero-copy h1 { color: #fff; margin-block: 22px 20px; text-shadow: 0 2px 34px rgba(4, 8, 18, .6); }
.hero-copy h1 .accent { color: #8fb0ff; }
.hero-sub {
  color: rgba(233, 240, 255, .9); font-size: 1.08rem; max-width: 46ch;
  margin-inline: auto;
  text-shadow: 0 1px 22px rgba(4, 8, 18, .7);
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; }

/* dégradé de raccord vers la section suivante */
.hero-fade {
  top: auto; height: 26%;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 32, .75) 55%, var(--dark) 100%);
  pointer-events: none;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 13px;
  border-radius: var(--r-pill);
  background: rgba(12, 19, 34, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .86rem; font-weight: 600; color: rgba(233, 240, 255, .9);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status-badge[data-state="open"] { color: #8ff0c4; }
.status-badge[data-state="open"] .status-dot { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); }
.status-badge[data-state="closed"] { color: rgba(233, 240, 255, .8); }
.status-badge[data-state="closed"] .status-dot { background: #94a3b8; }

/* bouton verre posé sur la photo, en pilule comme le bouton principal du hero */
.btn-glass {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .3);
  border-radius: var(--r-pill);
  padding: 15px 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.02rem;
}
.btn-glass:hover { --btn-bg: rgba(255, 255, 255, .18); --btn-bd: rgba(255, 255, 255, .5); }

/* ------------------------------------------------- bouton principal -------
   Bouton « shiny » : bordure en dégradé conique animé, trame de points et
   reflet interne. S'appuie sur @property ; sans support, il reste un bouton
   noir à bordure bleue parfaitement lisible.
   -------------------------------------------------------------------------- */

@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-percent { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --gradient-shine { syntax: "<color>"; initial-value: white; inherits: false; }

.shiny-cta {
  --shiny-cta-bg: #05070d;
  --shiny-cta-bg-subtle: #131b2c;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: var(--accent);
  --shiny-cta-highlight-subtle: #8fb0ff;
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  --transition: 800ms cubic-bezier(.25, 1, .5, 1);

  isolation: isolate;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 1.05rem 2.3rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-cta-fg);
  background:
    linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)
    ) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
}

.shiny-cta::before,
.shiny-cta::after,
.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
}

.shiny-cta:active { translate: 0 1px; }

/* trame de points */
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  -webkit-mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: .4;
  z-index: -1;
}

/* reflet interne */
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-cta-highlight), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: .6;
}

.shiny-cta span { z-index: 1; position: relative; }

.shiny-cta span::before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
  opacity: 0;
  transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

.shiny-cta,
.shiny-cta::before,
.shiny-cta::after {
  animation: var(--animation) var(--duration),
             var(--animation) calc(var(--duration) / .4) reverse paused;
  animation-composition: add;
}

.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
}
.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible)::before,
.shiny-cta:is(:hover, :focus-visible)::after { animation-play-state: running; }
.shiny-cta:is(:hover, :focus-visible) span::before { opacity: 1; }

@keyframes gradient-angle { to { --gradient-angle: 360deg; } }
@keyframes shimmer { to { rotate: 360deg; } }
@keyframes breathe { from, to { scale: 1; } 50% { scale: 1.2; } }

/* repli si @property n'est pas supporté (bordure fixe, aucun scintillement) */
@supports not (background: conic-gradient(from calc(var(--gradient-angle)), red, blue)) {
  .shiny-cta { background: var(--shiny-cta-bg); border-color: var(--accent); }
  .shiny-cta::before, .shiny-cta::after { display: none; }
}

/* ------------------------------------------------------ services ----------
   Diaporama WebGL : une photo par prestation, transition « glass » calculée
   dans un shader. Le texte est dans la page ; le canvas ne fait que l'image.
   -------------------------------------------------------------------------- */

.services {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  padding-bottom: clamp(60px, 7vw, 96px);
}
.services h2 { color: #fff; }
.services .section-head p { color: var(--on-dark-2); }

.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

.lumina {
  position: relative;
  width: min(100% - 44px, 1240px);
  margin-inline: auto;
  height: clamp(520px, 74vh, 700px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #05070d;
  isolation: isolate;
}

.webgl-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.lumina.is-ready .webgl-canvas { opacity: 1; }

/* repli si WebGL n'est pas disponible : la photo en fond, fondu au changement */
.lumina-fallback {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: opacity .6s var(--ease);
}

.lumina-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, .88) 0%, rgba(5, 7, 13, .62) 42%, rgba(5, 7, 13, .18) 72%, rgba(5, 7, 13, .5) 100%),
    linear-gradient(0deg, rgba(5, 7, 13, .8) 0%, transparent 45%);
  pointer-events: none;
}

.lumina-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding: clamp(24px, 3.4vw, 44px);
}

.lumina-copy { max-width: 34ch; }

.slide-counter {
  display: flex; align-items: baseline; gap: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  color: rgba(238, 243, 255, .7);
  margin-bottom: 14px;
}
.slide-counter .sep { color: rgba(238, 243, 255, .35); }
.slide-counter #slideNumber { color: #fff; font-size: 1.05rem; }

.slide-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700; line-height: 1.05; color: #fff;
  text-shadow: 0 2px 30px rgba(4, 8, 18, .55);
  margin-bottom: 14px;
}
.slide-title span { display: inline-block; will-change: transform, opacity; }

.slide-description {
  color: rgba(238, 243, 255, .86);
  font-size: 1rem; line-height: 1.6;
  text-shadow: 0 1px 18px rgba(4, 8, 18, .6);
}

.slide-actions { margin-top: 24px; }
.btn-light { --btn-bg: #fff; --btn-fg: #05070d; --btn-bd: #fff; }
.btn-light:hover { --btn-bg: #dfe7f7; --btn-bd: #dfe7f7; }

/* liste des prestations, avec barre de progression du défilement */
.slides-navigation {
  display: grid; gap: 3px;
  align-self: end;
  width: min(240px, 34vw);
}
.slide-nav-item {
  display: grid; gap: 8px;
  padding: 10px 0 4px;
  background: transparent; border: 0; cursor: pointer;
  text-align: left;
  color: rgba(238, 243, 255, .6);
  font: 600 .87rem/1.2 "Manrope", system-ui, sans-serif;
  transition: color .3s var(--ease);
}
.slide-nav-item:hover { color: #fff; }
.slide-nav-item.active { color: #fff; }

.slide-progress-line {
  position: relative;
  height: 2px; width: 100%;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.slide-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
  transition: width .1s linear, opacity .3s var(--ease);
}
.slide-nav-item.active .slide-progress-line { background: rgba(255, 255, 255, .35); }

.lumina-data { display: none; }

/* sans JavaScript : les six prestations s'affichent en simple liste */
.no-js .lumina { height: auto; background: transparent; }
.no-js .lumina-inner, .no-js .webgl-canvas, .no-js .lumina-veil, .no-js .lumina-fallback { display: none; }
.no-js .lumina-data { display: grid; gap: 18px; padding: 4px; }
.no-js .lumina-data article {
  padding: 22px; border-radius: var(--r-md);
  background: var(--dark-2); border: 1px solid var(--dark-line);
}
.no-js .lumina-data h3 { color: #fff; margin-bottom: 8px; }
.no-js .lumina-data p { color: var(--on-dark-2); font-size: .95rem; }

/* --------------------------------------------------- rendez-vous ---------- */

/* fond « bleu mécanique » : bleu acier clair et grille de plan technique */
.booking {
  position: relative;
  background: linear-gradient(180deg, #e6edfa 0%, #dde7f7 55%, #e9eefb 100%);
}
.booking::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 92, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 92, 255, .075) 1px, transparent 1px),
    linear-gradient(rgba(27, 92, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 92, 255, .045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
}
.booking > .shell { position: relative; }

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr);
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--sh-sm);
}
.card-quiet { background: var(--surface); }
.card-quiet p { color: var(--ink-2); font-size: .95rem; margin: 10px 0 18px; }
.card-quiet .btn + .btn { margin-top: 10px; }

.fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.fieldset:last-of-type { margin-bottom: 22px; }
.fieldset legend {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
  padding: 0; margin-bottom: 14px;
}

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field-label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field-help { font-size: .84rem; color: var(--ink-2); }
.note-depannage {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 10px 13px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}
.note-depannage svg { flex: none; }
.note-depannage a { font-weight: 700; white-space: nowrap; }
.field-error { font-size: .86rem; color: var(--danger); font-weight: 600; }

input[type="text"], input[type="tel"], input[type="date"], textarea {
  width: 100%;
  padding: 13px 14px;
  font: 500 .97rem/1.4 "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
input::placeholder, textarea::placeholder { color: #646d84; } /* contraste AA sur fond clair */
input:hover, textarea:hover { border-color: #b9c6de; }
input:focus, textarea:focus {
  outline: none; background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(27, 92, 255, .16);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger); background: #fff6f7;
}
textarea { resize: vertical; min-height: 90px; }

/* choix de prestation */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fbfcfe; font-weight: 600; font-size: .93rem; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.choice:hover span { border-color: #b9c6de; color: var(--ink); }
.choice input:checked + span {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 8px 18px rgba(27, 92, 255, .22);
}
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* créneaux */
.slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px;
  padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  background: #fbfcfe; min-height: 96px; align-content: start;
}
.slots[data-state="empty"], .slots[data-state="closed"], .slots[data-state="full"] {
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.slots-empty { color: var(--ink-2); font-size: .92rem; max-width: 40ch; }
.slot {
  padding: 11px 6px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--ink);
  font: 600 .95rem/1 "JetBrains Mono", ui-monospace, monospace;
  cursor: pointer; transition: all .16s var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.slot[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 8px 16px rgba(27, 92, 255, .22);
}
.slot:disabled { opacity: .42; cursor: not-allowed; text-decoration: line-through; }

.slots-skeleton { display: contents; }
.slot-skeleton {
  height: 41px; border-radius: var(--r-sm);
  background: linear-gradient(90deg, #edf1f8 25%, #f7f9fd 50%, #edf1f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.form-status {
  padding: 12px 14px; border-radius: var(--r-sm); font-size: .93rem; font-weight: 600;
  background: #fff6f7; border: 1px solid #f4c3c9; color: #a5192b;
  margin-bottom: 14px;
}
.form-note { text-align: center; font-size: .85rem; color: var(--ink-2); margin-top: 12px; }

/* récapitulatif */
.booking-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }
.recap h3 { margin-bottom: 14px; }
.recap-list { margin: 0; display: grid; gap: 2px; }
.recap-list > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.recap-list > div:last-child { border-bottom: 0; }
.recap-list dt { color: var(--ink-2); font-size: .9rem; }
.recap-list dd { margin: 0; font-weight: 700; font-size: .95rem; text-align: right; }
.recap-list dd.is-set { color: var(--accent-dark); }
.recap-foot {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: .87rem;
}
.recap-foot svg { color: var(--accent); flex: none; }

/* confirmation */
.confirm { margin-top: 22px; text-align: center; border-color: #bfe0cf; background: linear-gradient(180deg, #f4fcf8, #fff); }
.confirm-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: rgba(15, 157, 99, .12); color: var(--ok);
}
/* demande enregistrée mais non transmise : on le signale sans dramatiser */
.confirm.is-partiel { border-color: #f0d3a8; background: linear-gradient(180deg, #fffaf1, #fff); }
.confirm.is-partiel .confirm-icon { background: rgba(194, 65, 12, .12); color: var(--warn); }
.confirm h3 { font-size: 1.4rem; margin-bottom: 10px; }
.confirm p { color: var(--ink-2); max-width: 56ch; margin-inline: auto; }
.confirm-ref { margin-top: 10px; font-size: .9rem; }
.confirm-ref strong { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--ink); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* --------------------------------------------------------- infos ---------- */

.infos {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}
.infos::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(27, 92, 255, .22), transparent 65%),
    radial-gradient(700px 400px at 92% 100%, rgba(27, 92, 255, .12), transparent 60%);
  pointer-events: none;
}
.infos .shell { position: relative; }
.infos h2, .infos h3 { color: #fff; }

.infos-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.hours { list-style: none; margin: 26px 0 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 14px 16px; border-radius: var(--r-sm);
  border-bottom: 1px solid var(--dark-line);
}
.hours li:last-child { border-bottom: 0; }
.hours .d { font-weight: 600; color: var(--on-dark); }
.hours .h { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .93rem; color: var(--on-dark-2); }
.hours li.closed .h { color: #77839e; }
.hours li.is-today {
  background: rgba(27, 92, 255, .16);
  border-bottom-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(27, 92, 255, .38);
}
.hours li.is-today .d { color: #fff; }
.hours li.is-today .h { color: #a8c2ff; }

.infos-contact { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.infos-block {
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: var(--r-md); padding: 24px;
}
.infos-block:first-child { grid-column: span 1; }
.infos-block:last-child { grid-column: span 2; }
.infos-block h3 { display: flex; align-items: center; gap: 9px; font-size: 1rem; margin-bottom: 12px; }
.infos-block h3 svg { color: var(--accent); }
.infos-block p { color: var(--on-dark-2); font-size: .96rem; }
.infos-block .muted { color: var(--on-dark-2); }
.infos-block .btn { margin-top: 16px; }
.big-phone {
  display: inline-block; margin-bottom: 6px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.big-phone:hover { color: #8fb0ff; }

/* -------------------------------------------------------- footer ---------- */

.site-footer { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid var(--dark-line); padding-block: 34px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo { height: 74px; width: auto; }
.footer-baseline { color: #fff; font-weight: 600; font-size: .95rem; }
.footer-brand p { font-size: .88rem; margin-top: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.footer-nav a {
  padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none;
  color: var(--on-dark-2); font-size: .92rem; font-weight: 600;
}
.footer-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

/* ---------------------------------------------------- messagerie ---------- */

.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 17px;
  border: 0; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font: 700 .96rem/1 "Manrope", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(27, 92, 255, .38);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); background: var(--accent-dark); }
.chat-fab:active { transform: translateY(0); }
.chat-fab-close { display: none; }
.chat-fab[aria-expanded="true"] .chat-fab-icon,
.chat-fab[aria-expanded="true"] .chat-fab-label { display: none; }
.chat-fab[aria-expanded="true"] .chat-fab-close { display: block; }
.chat-fab[aria-expanded="true"] { padding: 15px; }
.chat-fab-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700;
  box-shadow: 0 0 0 2px var(--bg);
}

.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 61;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 130px));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform-origin: bottom right;
}
.chat-panel[hidden] { display: none; }
.chat-panel.is-open { animation: panel-in .28s var(--ease); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px;
  background: var(--dark); color: #fff;
}
.chat-head-id { display: flex; align-items: center; gap: 11px; }
.chat-avatar { height: 34px; width: auto; flex: none; }
.chat-head p { font-weight: 700; font-size: .97rem; }
.chat-sub { font-weight: 500 !important; font-size: .8rem !important; color: #9dabc7; display: flex; align-items: center; gap: 6px; }
.chat-sub::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 157, 99, .22);
}
.chat-head-actions { display: flex; align-items: center; gap: 6px; }
.chat-text-btn {
  padding: 7px 10px; border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .16); background: transparent;
  color: #cfd9ee; cursor: pointer;
  font: 600 .78rem/1 "Manrope", system-ui, sans-serif;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.chat-text-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.chat-icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-sm);
  background: transparent; color: #cfd9ee; cursor: pointer;
  transition: background-color .18s var(--ease);
}
.chat-icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.chat-log {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
  scrollbar-width: thin;
}
.msg {
  max-width: 84%; padding: 11px 14px;
  font-size: .93rem; line-height: 1.55;
  border-radius: var(--r-md);
  animation: msg-in .26s var(--ease);
}
@keyframes msg-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.msg-bot {
  align-self: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-bottom-left-radius: 5px;
  color: var(--ink); box-shadow: var(--sh-sm);
}
.msg-user {
  align-self: flex-end; background: var(--accent); color: #fff;
  border-bottom-right-radius: 5px;
}
.msg strong { font-weight: 700; }
.msg a { color: var(--accent-dark); font-weight: 700; }
.msg-user a { color: #fff; }
.msg-time { display: block; margin-top: 5px; font-size: .72rem; opacity: .6; }

.typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #a9b4ca;
  animation: bounce 1.1s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }

.chat-quick {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 11px 16px; border-top: 1px solid var(--line); background: var(--surface);
}
.chat-quick:empty { display: none; }
.quick {
  padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: #fbfcfe; color: var(--ink-2);
  font: 600 .84rem/1 "Manrope", system-ui, sans-serif; cursor: pointer;
  transition: all .16s var(--ease);
}
.quick:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }

.chat-form {
  display: flex; gap: 9px; padding: 12px 14px;
  border-top: 1px solid var(--line); background: var(--surface);
}
.chat-form input {
  flex: 1; padding: 12px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: #fbfcfe;
  font: 500 .93rem/1.3 "Manrope", system-ui, sans-serif; color: var(--ink);
}
.chat-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(27, 92, 255, .14); background: #fff; }
.chat-send {
  flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .18s var(--ease), transform .16s var(--ease);
}
.chat-send:hover { background: var(--accent-dark); }
.chat-send:active { transform: scale(.94); }

/* ------------------------------------------------------- reveals ---------- */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ---------------------------------------------------- responsive ---------- */

@media (max-width: 1080px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 22px 20px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  /* sur mobile l'appel reste accessible, réduit à son icône */
  .phone-link span { display: none; }
  .phone-link {
    width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center;
    border-color: var(--line-strong); color: var(--ink); background: var(--surface);
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(6, 11, 23, .80) 0%, rgba(6, 11, 23, .45) 45%, rgba(6, 11, 23, .88) 100%),
      radial-gradient(600px 500px at 50% 70%, rgba(27, 92, 255, .28), transparent 70%);
  }

  .lumina-inner { grid-template-columns: 1fr; align-content: end; gap: 22px; }
  .lumina-copy { max-width: none; }
  .slides-navigation {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 14px;
  }
  .slide-nav-item { font-size: .8rem; }

  .infos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { padding-inline: 18px; }

  .hero-copy-inner { padding-top: calc(var(--header-h) + 10px); }
  .hero-cta { gap: 10px; }
  .hero-cta .shiny-cta, .hero-cta .btn-glass { width: 100%; }
  .shiny-cta { padding: .95rem 1.6rem; font-size: 1rem; }

  .lumina { width: calc(100% - 24px); height: clamp(540px, 82vh, 640px); }
  .lumina-veil {
    background:
      linear-gradient(0deg, rgba(5, 7, 13, .92) 0%, rgba(5, 7, 13, .55) 42%, rgba(5, 7, 13, .2) 72%, rgba(5, 7, 13, .45) 100%);
  }
  .slides-navigation { grid-template-columns: repeat(2, 1fr); }
  .slide-actions .btn { width: 100%; }

  .choice-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .booking-side { grid-template-columns: 1fr; }
  .infos-contact { grid-template-columns: 1fr; }
  .infos-block:first-child, .infos-block:last-child { grid-column: span 1; }

  .hero-cta .btn { flex: 1 1 auto; }
  .confirm-actions .btn { width: 100%; }

  .chat-fab { right: 16px; bottom: 16px; padding: 13px 18px 13px 15px; }
  .chat-panel { right: 8px; left: 8px; bottom: 84px; width: auto; height: min(560px, calc(100dvh - 110px)); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------- accessibilité motion --------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-layer { transform: none !important; }
}

/* --------------------------------------------------- défilement Lenis ----- */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media print {
  .site-header, .chat-fab, .chat-panel, .hero, .lumina, .booking-form, .booking-side { display: none !important; }
  body { background: #fff; }
  .services, .infos, .site-footer { background: #fff !important; color: #000; }
}
