/* ===== Mon Auto Propre — styles ===== */
:root {
  --navy-900: #021636;
  --navy-800: #021c46;
  --navy-700: #06296a;
  --blue-600: #0a63e6;
  --blue-500: #1479ff;
  --cyan-400: #35c8ff;
  --ink: #0a1a3f;
  --muted: #45516b;
  --sky-50: #eef6ff;
  --sky-100: #dcecff;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 8px; }

svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 700; text-decoration: none; border-radius: 12px;
  padding: .95em 1.6em; font-size: 1.05rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #2a8bff, var(--blue-600));
  color: var(--white);
  box-shadow: 0 6px 18px -6px rgba(10, 99, 230, .7);
}
.btn-small { padding: .7em 2.1em; font-size: 1rem; }
.btn-outline-glow {
  color: var(--white);
  background: linear-gradient(180deg, #1b7cff, #0b58d8);
  border: 2px solid var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(53, 200, 255, .12), 0 0 28px rgba(53, 200, 255, .45);
  font-size: 1.15rem; padding: .85em 1.7em;
}
.btn-white {
  background: var(--white); color: var(--blue-600);
  box-shadow: 0 10px 30px -10px rgba(2, 22, 54, .45);
  font-size: 1.1rem; min-width: min(330px, 100%); justify-content: center;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 1px 0 rgba(10, 26, 63, .06);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { position: relative; width: 168px; align-self: flex-start; height: 100%; }
.brand img {
  position: absolute; top: 2px; left: 0; width: 168px; height: auto;
  filter: drop-shadow(0 6px 14px rgba(2, 22, 54, .35));
}
.main-nav { margin-inline: auto; display: flex; gap: 38px; }
.main-nav a {
  text-decoration: none; font-weight: 500; color: var(--ink); font-size: .98rem;
  padding: 6px 0; border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--blue-600); }
.main-nav a.is-active { color: var(--blue-600); font-weight: 700; border-color: var(--blue-600); }

/* ---------- bulles décoratives ---------- */
.bubble {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 50%, rgba(80,190,255,.10) 55%, rgba(120,215,255,.55) 72%, rgba(210,245,255,.9) 100%);
  box-shadow: 0 0 18px rgba(53, 200, 255, .35);
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(55% 75% at 70% 50%, #0a3b82 0%, rgba(10,59,130,0) 75%),
    radial-gradient(120% 60% at 50% 110%, #0a3f94 0%, rgba(10,63,148,0) 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.hero::before { /* arc lumineux */
  content: ""; position: absolute; left: -10%; top: -60%;
  width: 90%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(53, 200, 255, .45);
  box-shadow: 0 0 40px rgba(53, 200, 255, .25), inset 0 0 40px rgba(53, 200, 255, .12);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center; gap: 20px;
  padding-block: 72px 0;
  min-height: 560px;
}
.hero-copy { padding-bottom: 60px; }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 18px;
}
.kicker-dark { color: var(--blue-600); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); }
.hero h1 span { color: var(--cyan-400); text-shadow: 0 0 30px rgba(53, 200, 255, .35); }
.hero-sub { color: #7fd6ff; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; margin: 18px 0 34px; }

/* ---------- comparateur avant / après ---------- */
.compare {
  --pos: 50%;
  position: relative; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.compare-img { width: 100%; height: auto; pointer-events: none; }
.compare-after {
  position: absolute; inset: 0; height: 100%; object-fit: cover;
  clip-path: inset(0 0 0 var(--pos));
}
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(53,200,255,0), var(--cyan-400) 18%, var(--cyan-400) 85%, rgba(53,200,255,0));
  box-shadow: 0 0 14px rgba(53, 200, 255, .9);
  pointer-events: none;
}
.compare-range { /* accessible au clavier, invisible */
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: ew-resize; pointer-events: none;
}
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--cyan-400); outline-offset: 4px; border-radius: 12px; }

.compare-hero { align-self: end; }
.compare-hero .compare-img,
.compare-panel .compare-img {
  -webkit-mask-image:
    radial-gradient(70% 90% at 50% 64%, #000 66%, transparent 98%),
    linear-gradient(180deg, transparent 2%, #000 17%),
    linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(70% 90% at 50% 64%, #000 66%, transparent 98%),
    linear-gradient(180deg, transparent 2%, #000 17%),
    linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
.compare-hero { align-self: end; }
.compare-hero .compare-line { top: 10%; bottom: 2%; }
.compare-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: .85rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(2, 22, 54, .72); border: 1px solid rgba(53, 200, 255, .5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .4s ease;
  pointer-events: none;
}
.compare-hint svg { width: 18px; height: 18px; color: var(--cyan-400); }
.compare.is-touched .compare-hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

/* ---------- atouts ---------- */
.perks { position: relative; z-index: 3; background: var(--white); box-shadow: 0 14px 30px -18px rgba(10, 26, 63, .25); }
.perks-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 22px; }
.perk { display: flex; align-items: center; gap: 16px; padding: 6px 28px; justify-content: center; }
.perk + .perk { border-left: 2px solid var(--sky-100); }
.perk svg { width: 46px; height: 46px; color: var(--blue-600); flex: none; stroke-width: 3; }
.perk strong { display: block; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.perk span { color: var(--muted); font-size: .92rem; }

/* ---------- prestations ---------- */
.services { padding-block: 40px 30px; }
.services h2, .beforeafter h2 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.dot { color: var(--blue-500); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.service {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  padding: 6px; box-shadow: 0 10px 30px -14px rgba(10, 26, 63, .28);
  display: flex; flex-direction: column;
}
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.service-body { padding: 22px 14px 18px; display: flex; flex-direction: column; flex: 1; }
.service h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.service p { color: var(--muted); margin: 10px 0 18px; max-width: 30ch; }
.link-arrow {
  margin-top: auto; display: inline-flex; align-items: center; gap: .5em;
  color: var(--blue-600); font-weight: 800; text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- avant / après ---------- */
.beforeafter {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-50), #e3f0ff);
  padding-block: 24px 0;
}
.ba-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 14px; padding-inline: 22px; }
.ba-intro { max-width: 46ch; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.ba-stage {
  position: relative; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
  background:
    radial-gradient(45% 55% at 50% 55%, rgba(24, 110, 240, .45), rgba(24,110,240,0) 70%),
    linear-gradient(90deg, rgba(53,200,255,0) 6%, rgba(53,200,255,.28) 9%, rgba(53,200,255,0) 12%,
                           rgba(53,200,255,0) 88%, rgba(53,200,255,.28) 91%, rgba(53,200,255,0) 94%),
    linear-gradient(180deg, #03214f 0%, #042a66 58%, #0a3d8c 72%, #051f4d 100%);
  display: flex; justify-content: center;
}
.compare-panel { width: min(640px, 100%); cursor: ew-resize; }
.compare-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--white);
  border: 3px solid var(--cyan-400);
  box-shadow: 0 0 18px rgba(53, 200, 255, .8);
}
.compare-handle svg { width: 20px; height: 20px; stroke-width: 2.8; }
.tag {
  position: absolute; bottom: 36px; z-index: 2;
  padding: 8px 24px; border-radius: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem;
  pointer-events: none;
}
.tag-before { left: 22px; background: #0a0f1d; color: var(--white); }
.tag-after { right: 22px; background: linear-gradient(180deg, #2a8bff, var(--blue-600)); color: var(--white); border: 2px solid var(--cyan-400); box-shadow: 0 0 18px rgba(53,200,255,.5); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(80% 120% at 25% 60%, #0a78ee, rgba(10,120,238,0) 70%),
    linear-gradient(135deg, #0071e8, #0058cf 70%, #0a4bb7);
}

.cta-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px;
}
.cta-mascot {
  width: 100%; max-width: 560px;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}
.cta-copy { padding-block: 36px 50px; }
.cta h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); max-width: 16ch; margin-bottom: 26px; }

.cta-phone { margin-top: 14px; font-weight: 600; color: #d6ecff; }
.cta-phone a { color: var(--white); font-weight: 800; text-decoration: none; white-space: nowrap; }
.cta-phone a:hover { text-decoration: underline; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-actions .btn-white { min-width: 0; }
.btn-whatsapp {
  background: #1faa55; color: var(--white);
  box-shadow: 0 8px 22px -10px rgba(10, 60, 30, .6);
}
.btn-whatsapp:hover { background: #1b9a4d; }
.btn-whatsapp svg { stroke-width: 2.2; }

/* ---------- demande de réservation ---------- */
.booking { background: linear-gradient(180deg, var(--sky-50), var(--white)); padding-block: 64px 72px; }
.booking-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.booking h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.booking-lead { color: var(--muted); font-size: 1.05rem; margin-top: 16px; max-width: 42ch; }
.booking-alt {
  margin-top: 32px; padding: 22px; border-radius: var(--radius-md);
  background: var(--white); border: 2px solid var(--sky-100);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.booking-alt > p:first-child { font-weight: 700; }
.booking-phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.booking-phone svg { width: 22px; height: 22px; color: var(--blue-600); }
.booking-phone:hover { color: var(--blue-600); }
.booking-tip { font-size: .88rem; color: var(--muted); }

.booking-form {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: 0 18px 40px -22px rgba(10, 26, 63, .35);
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: .92rem; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 2px solid var(--sky-100); background: #fbfdff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(20, 121, 255, .15);
}
.field input::placeholder, .field textarea::placeholder { color: #8a95ab; }
.btn-submit { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--white); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-inner { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.footer-brand img { width: 92px; height: auto; }
.footer-inner p { font-size: .9rem; color: var(--muted); padding-left: 28px; border-left: 2px solid var(--sky-100); }
.footer-inner nav { margin-left: auto; display: flex; gap: 30px; }
.footer-inner nav a { text-decoration: none; font-size: .9rem; font-weight: 500; }
.footer-inner p a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-inner nav a:hover { color: var(--blue-600); }
.copyright { text-align: center; font-size: .8rem; color: var(--muted); padding-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .brand, .brand img { width: 118px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; min-height: 0; text-align: left; }
  .hero-copy { padding-bottom: 8px; }
  .compare-hero { max-width: 620px; width: 100%; justify-self: center; }
  .perks-inner { grid-template-columns: 1fr; gap: 6px; padding-block: 14px; }
  .perk { justify-content: flex-start; padding: 10px 4px; }
  .perk + .perk { border-left: 0; border-top: 2px solid var(--sky-100); }
  .service-grid { grid-template-columns: 1fr; max-width: 520px; }
  .ba-head { flex-direction: column; align-items: start; gap: 12px; padding-inline: 0; }
  .tag { bottom: 16px; padding: 6px 16px; font-size: .8rem; }
  .tag-before { left: 12px; } .tag-after { right: 12px; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-mascot { margin: 20px auto 0; -webkit-mask-image: none; mask-image: none; border-radius: 16px; }
  .cta h2 { margin-inline: auto; }
  .cta-actions { justify-content: center; }
  .booking { padding-block: 44px 52px; }
  .booking-inner { grid-template-columns: 1fr; gap: 28px; }
  .booking-form { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { justify-self: stretch; justify-content: center; }
  .cta-copy { padding-top: 10px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-inner p { border: 0; padding: 0; }
  .footer-inner nav { margin: 0; flex-wrap: wrap; justify-content: center; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- page merci ---------- */
.thanks-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: linear-gradient(180deg, var(--sky-50), var(--white)); padding: 24px; }
.thanks { max-width: 520px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.thanks-logo { width: 150px; }
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3rem); }
.thanks p { color: var(--muted); font-size: 1.05rem; }
.thanks-alt a { color: var(--blue-600); font-weight: 700; text-decoration: none; white-space: nowrap; }
.thanks-actions { justify-content: center; margin-top: 10px; }

/* ---------- bandeau cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 100;
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-md); padding: 18px 20px;
  box-shadow: 0 18px 50px -12px rgba(2, 22, 54, .45);
  border: 2px solid var(--sky-100);
  display: grid; gap: 14px;
}
.cookie-banner p { font-size: .92rem; line-height: 1.45; color: var(--muted); }
.cookie-banner strong { color: var(--ink); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-btn {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: .7em 1.5em; border-radius: 10px;
  border: 2px solid var(--blue-600); background: var(--white); color: var(--blue-600);
}
.cookie-btn[data-choice="granted"] { background: var(--blue-600); color: var(--white); }
.cookie-btn:hover { filter: brightness(.95); }
.copyright a { color: inherit; }
