/* =============================================================
   Prestige Lavage Automobile — Main stylesheet
   Sections: reset · base · layout · buttons · header/nav · hero
   · services · why · process · gallery · testimonials · faq
   · contact · footer · floating · utilities · responsive · print
   ============================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-7) 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-5); }
.section__eyebrow {
  display: inline-block; font-family: var(--font-title); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--sp-1);
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: var(--sp-2); }
.section__lead { color: var(--text-muted); font-size: 1.05rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--accent-contrast);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-family: var(--font-title); font-weight: 600; font-size: 0.98rem;
  padding: 0.72rem 1.4rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), filter var(--dur) var(--ease);
  overflow: hidden; will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(179, 18, 23, 0.32); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--outline { background: transparent; border: 2px solid currentColor; color: var(--text); box-shadow: none; }
.btn--outline:hover { background: var(--text); color: var(--bg); box-shadow: none; }
.btn--whatsapp { --btn-bg: var(--wa); --btn-fg: #06331a; font-weight: 700; }
.btn--whatsapp:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
/* Ripple */
.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255, 255, 255, 0.5); animation: ripple 0.6s var(--ease); pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

.badge {
  display: inline-block; background: var(--accent); color: #fff; font-family: var(--font-title);
  font-weight: 700; padding: 0.35rem 0.9rem; border-radius: var(--radius-pill); font-size: 1.05rem;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; justify-items: center;
  gap: var(--sp-3); background: var(--bg); transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__logo { width: 200px; height: auto; color: var(--text); animation: pulse 1.6s var(--ease) infinite; }
.loader__spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid var(--border); border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.94); opacity: 0.75; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 1200;
  background: linear-gradient(90deg, var(--red), var(--red-bright)); transition: width 0.1s linear;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 3000; background: var(--accent); color: #fff;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100; height: var(--header-h);
  display: flex; align-items: center;
  background: transparent; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur);
}
.header.is-scrolled {
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: var(--sp-3); width: 100%; }
.header__logo { flex-shrink: 0; display: inline-flex; }
.brand-logo { display: block; height: auto; width: auto; }
.header__logo .brand-logo { height: 54px; width: auto; }
@media (max-width: 560px) { .header__logo .brand-logo { height: 46px; } }

.nav { margin-left: auto; }
.nav__ico { display: none; }   /* icônes visibles seulement dans le menu mobile */
.nav__list { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative; font-family: var(--font-title); font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); color: var(--text);
  transition: color var(--dur) var(--ease);
}
.header:not(.is-scrolled) .nav__link { color: #f3f3f3; }
.nav__link::after {
  content: ''; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.28rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.header:not(.is-scrolled) .nav__link:hover, .header:not(.is-scrolled) .nav__link.is-active { color: #fff; }
.nav__close { display: none; }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle, .theme-toggle {
  width: 42px; height: 42px; display: grid; place-content: center; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur);
}
.header:not(.is-scrolled) .lang-toggle, .header:not(.is-scrolled) .theme-toggle {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); color: #fff;
}
.lang-toggle { width: auto; padding: 0 0.85rem; font-family: var(--font-title); font-weight: 600; font-size: 0.9rem; }
.lang-toggle:hover, .theme-toggle:hover { transform: translateY(-2px); border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.header__cta { padding: 0.6rem 1.2rem; }

.hamburger { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur); }
.header:not(.is-scrolled) .hamburger span { background: #fff; }

.nav-overlay { position: fixed; inset: 0; z-index: 1150; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity var(--dur); }
.nav-overlay.is-open { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: #fff; }
.hero__slider { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease); will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.15); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(179,18,23,0.28) 0%, rgba(179,18,23,0) 42%),
    linear-gradient(180deg, rgba(10,10,10,0.42) 0%, rgba(10,10,10,0.52) 50%, rgba(10,10,10,0.82) 100%);
}
/* subtle vignette for premium depth */
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 220px 40px rgba(0,0,0,0.55); }

.hero__content { position: relative; z-index: 2; text-align: center; padding: 6rem 0; }

/* Staggered entrance — plays after the loader lifts (body.loaded) */
.hero__content > * { opacity: 0; transform: translateY(38px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
body.loaded .hero__logo     { opacity: 1; transform: none; transition-delay: 0.15s; }
body.loaded .hero__title    { opacity: 1; transform: none; transition-delay: 0.32s; }
body.loaded .hero__subtitle { opacity: 1; transform: none; transition-delay: 0.5s; }
body.loaded .hero__actions  { opacity: 1; transform: none; transition-delay: 0.68s; }
.hero__title { animation: heroGlow 6s ease-in-out 1.2s infinite alternate; }
@keyframes heroGlow { from { text-shadow: 0 4px 24px rgba(0,0,0,0.45); } to { text-shadow: 0 4px 30px rgba(0,0,0,0.55), 0 0 40px rgba(179,18,23,0.25); } }
.hero__logo { width: min(340px, 74vw); height: auto; margin: 0 auto var(--sp-3); filter: drop-shadow(0 6px 22px rgba(0,0,0,0.55)); }
.hero__title { font-size: clamp(2.1rem, 6vw, 4.2rem); font-weight: 800; margin-bottom: var(--sp-2); text-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.hero__subtitle { font-size: clamp(1rem, 2.2vw, 1.3rem); max-width: 640px; margin: 0 auto var(--sp-4); color: #ececec; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.hero__actions .btn--outline { color: #fff; }
.hero__actions .btn--outline:hover { background: #fff; color: var(--black); }

.hero__controls { position: absolute; z-index: 3; bottom: 5.5rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: var(--sp-2); }
.hero__arrow { width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); transition: background var(--dur), transform var(--dur); }
.hero__arrow:hover { background: var(--accent); transform: scale(1.08); }
.hero__dots { display: flex; gap: 0.5rem; }
.hero__dots button { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: background var(--dur), transform var(--dur); }
.hero__dots button.is-active { background: var(--accent); transform: scale(1.3); }

.hero__scroll { position: absolute; z-index: 3; bottom: 1.5rem; left: 50%; transform: translateX(-50%); }
.hero__mouse { display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.7); border-radius: 14px; position: relative; }
.hero__mouse::before { content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrollwheel 1.6s var(--ease) infinite; }
@keyframes scrollwheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.service-card { position: relative; padding: var(--sp-4) var(--sp-3); text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.service-card--featured { border-color: var(--accent); box-shadow: 0 14px 40px rgba(179,18,23,0.14); }
.service-card__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-title); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.28rem 0.9rem; border-radius: var(--radius-pill); white-space: nowrap; }
.service-card__icon { width: 74px; height: 74px; display: grid; place-content: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: var(--sp-2); transition: transform var(--dur) var(--ease); }
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.08); }
.service-card__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.service-card__desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--sp-2); flex: 1; }
.service-card__price { margin-bottom: var(--sp-2); }
.service-card__resa { display: block; margin-top: 0.45rem; font-size: 0.78rem; font-style: italic; color: var(--text-muted); }
.contact__note { display: inline-block; margin-top: 0.2rem; font-style: italic; color: var(--accent); font-size: 0.88rem; }

/* Vehicles band */
.vehicles-band { margin-top: var(--sp-5); padding: var(--sp-3); border-radius: var(--radius-lg); background: var(--surface-2); border: 1px dashed var(--border-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3); }
.vehicles-band__label { font-family: var(--font-title); font-weight: 600; color: var(--text-soft); }
.vehicles-band__list { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.vehicles-band__list li { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.vehicles-band__list svg { color: var(--accent); transition: transform var(--dur) var(--ease); }
.vehicles-band__list li:hover svg { transform: translateY(-4px) scale(1.1); }

/* Estimator */
.estimator { margin-top: var(--sp-5); padding: var(--sp-4); }
.estimator__head { text-align: center; margin-bottom: var(--sp-3); }
.estimator__title { font-size: 1.5rem; margin-bottom: 0.4rem; }
.estimator__lead { color: var(--text-muted); }
.estimator__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--sp-2); align-items: end; margin-bottom: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.field > span { font-family: var(--font-title); font-weight: 600; font-size: 0.85rem; color: var(--text-soft); }
.field select, .field input, .field textarea {
  padding: 0.72rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); transition: border-color var(--dur), box-shadow var(--dur); width: 100%;
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); outline: none; }
.field input:invalid.is-touched, .field textarea:invalid.is-touched { border-color: var(--red); }
.estimator__result { text-align: center; background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: var(--radius); padding: 0.6rem 1.2rem; min-width: 150px; }
.estimator__result-label { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.estimator__amount { font-family: var(--font-title); font-size: 1.5rem; color: var(--accent); }
.estimator__note { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: var(--sp-2); }

/* Perks */
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-4); }
.perk { padding: var(--sp-3); display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.perk:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.perk__icon { font-size: 2rem; }
.perk__title { font-size: 1.2rem; }
.perk p { color: var(--text-muted); }

/* ---------- Vente & location band ---------- */
.vl-band { background: linear-gradient(135deg, #1a1a1a 0%, #2a1113 55%, #4c0d11 100%); color: #fff; position: relative; overflow: hidden; }
.vl-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 120% at 85% 10%, rgba(212,175,55,0.18), transparent 55%); pointer-events: none; }
.vl-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-4) 0; }
.vl-band__eyebrow { display: inline-block; font-family: var(--font-title); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: #E7C065; margin-bottom: 0.3rem; }
.vl-band__title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 0.4rem; }
.vl-band__desc { color: #d9d9d9; max-width: 560px; }
.vl-band__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.vl-band__actions .btn--outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.vl-band__actions .btn--outline:hover { background: #fff; color: var(--black); }
@media (max-width: 560px) { .vl-band__actions { width: 100%; } .vl-band__actions .btn { flex: 1; } }

/* ---------- Why us ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.why__item { padding: var(--sp-3); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.why__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why__icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.why__item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.why__item p { color: var(--text-muted); font-size: 0.95rem; }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-5); text-align: center; }
.counter { padding: var(--sp-3) var(--sp-2); border-radius: var(--radius-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border: 1px solid var(--border); }
.counter__num { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--accent); line-height: 1; }
.counter__label { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.6rem var(--sp-4); position: relative; margin-top: 2.6rem; }
.step {
  position: relative; text-align: center; padding: var(--sp-3) var(--sp-2) var(--sp-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.step__badge { position: relative; width: 80px; height: 80px; margin: -2.8rem auto 0.8rem; }
.step__icon {
  width: 80px; height: 80px; display: grid; place-content: center; border-radius: 22px;
  background: linear-gradient(145deg, var(--accent), var(--red-dark)); color: #fff;
  box-shadow: 0 12px 26px rgba(179,18,23,0.34); transform: rotate(-4deg);
  transition: transform var(--dur) var(--ease);
}
.step:hover .step__icon { transform: rotate(0) scale(1.06); }
.step__num {
  position: absolute; top: -10px; right: -10px; z-index: 2; width: 30px; height: 30px;
  display: grid; place-content: center; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-title); font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.step__body h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.step__body p { font-size: 0.9rem; color: var(--text-muted); }
/* connector arrows between cards (desktop) */
.step:not(:nth-child(3n))::after {
  content: ''; position: absolute; top: -1.9rem; right: calc(var(--sp-4) / -2 - 4px); width: var(--sp-4); height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); opacity: 0.5;
}
/* staggered entrance */
.reveal.is-visible .step { animation: stepIn 0.6s var(--ease) both; }
.reveal.is-visible .step:nth-child(1){animation-delay:.05s}.reveal.is-visible .step:nth-child(2){animation-delay:.13s}
.reveal.is-visible .step:nth-child(3){animation-delay:.21s}.reveal.is-visible .step:nth-child(4){animation-delay:.29s}
.reveal.is-visible .step:nth-child(5){animation-delay:.37s}.reveal.is-visible .step:nth-child(6){animation-delay:.45s}
@keyframes stepIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Gallery ---------- */
.ba { max-width: 820px; margin: 0 auto var(--sp-5); }
.ba__wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); user-select: none; aspect-ratio: 4 / 3; }
.ba__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__img--after { position: absolute; inset: 0; }
.ba__before { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 3px solid #fff; }
.ba__before .ba__img { width: 820px; max-width: none; height: 100%; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%); display: grid; place-content: center; cursor: ew-resize; touch-action: none; }
.ba__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: #fff; }
.ba__grip { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-content: center; font-size: 1.1rem; box-shadow: var(--shadow); z-index: 2; }
.ba__tag { position: absolute; bottom: 12px; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); font-family: var(--font-title); font-weight: 600; font-size: 0.78rem; color: #fff; background: rgba(0,0,0,0.55); }
.ba__tag--before { left: 12px; } .ba__tag--after { right: 12px; }

.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; display: block; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery__item:hover img { transform: scale(1.1); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.9rem 0.7rem; text-align: left; color: #fff; font-size: 0.88rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,0.75)); opacity: 0; transform: translateY(8px); transition: opacity var(--dur), transform var(--dur); }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); background: rgba(0,0,0,0.9); padding: var(--sp-3); opacity: 0; transition: opacity var(--dur); }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(92vw, 1000px); text-align: center; }
.lightbox__figure img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { color: #eee; margin-top: var(--sp-2); font-size: 0.95rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1.4rem; font-size: 2.4rem; line-height: 1; color: #fff; }
.lightbox__arrow { width: 54px; height: 54px; border-radius: 50%; font-size: 2.2rem; line-height: 1; color: #fff; background: rgba(255,255,255,0.12); transition: background var(--dur); flex-shrink: 0; }
.lightbox__arrow:hover, .lightbox__close:hover { background: var(--accent); }

/* ---------- Testimonials ---------- */
.testi { position: relative; max-width: 780px; margin: 0 auto; overflow: hidden; }
.testi__track { display: flex; transition: transform var(--dur-slow) var(--ease); }
.testi__card { min-width: 100%; padding: var(--sp-4); text-align: center; }
.testi__stars { color: #f5b301; font-size: 1.3rem; letter-spacing: 0.1em; margin-bottom: var(--sp-2); }
.testi__card blockquote { font-size: 1.2rem; font-style: italic; color: var(--text-soft); max-width: 620px; margin: 0 auto var(--sp-3); }
.testi__card figcaption { display: flex; align-items: center; justify-content: center; gap: 0.7rem; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; background: var(--accent); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 0.9rem; }
.testi__name { font-family: var(--font-title); font-weight: 600; }
.testi__controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-2); }
.testi__arrow { width: 42px; height: 42px; border-radius: 50%; font-size: 1.6rem; line-height: 1; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: background var(--dur), border-color var(--dur); }
.testi__arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.testi__dots { display: flex; gap: 0.5rem; }
.testi__dots button { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); transition: background var(--dur), transform var(--dur); }
.testi__dots button.is-active { background: var(--accent); transform: scale(1.3); }

/* ---------- FAQ ---------- */
.accordion__item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--sp-1); overflow: hidden; background: var(--surface); }
.accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 1.1rem 1.3rem; text-align: left; font-family: var(--font-title); font-weight: 600; font-size: 1.02rem; transition: color var(--dur); }
.accordion__trigger:hover { color: var(--accent); }
.accordion__icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.accordion__icon::before, .accordion__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform var(--dur) var(--ease); }
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.accordion__panel p { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); align-items: start; }
.open-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border-radius: var(--radius-pill); font-family: var(--font-title); font-weight: 600; font-size: 0.9rem; background: color-mix(in srgb, var(--wa) 18%, transparent); color: var(--text); margin-bottom: var(--sp-3); }
.open-badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 var(--wa); animation: blink 2s infinite; }
.open-badge.is-closed { background: color-mix(in srgb, var(--red) 15%, transparent); }
.open-badge.is-closed .open-badge__dot { background: var(--red); animation: none; }
@keyframes blink { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.contact__list { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.contact__list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact__ico { font-size: 1.3rem; width: 30px; flex-shrink: 0; }
.contact__k { display: block; font-family: var(--font-title); font-weight: 600; font-size: 0.82rem; color: var(--text-muted); }
.contact__v { color: var(--text); transition: color var(--dur); }
a.contact__v:hover { color: var(--accent); }
.contact__cta-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.contact__form { margin-top: var(--sp-4); padding: var(--sp-4); }
.contact__form-title { font-size: 1.4rem; margin-bottom: var(--sp-3); text-align: center; }
.contact__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.contact__form .field { margin-bottom: var(--sp-2); }
.contact__form-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; }
.contact__form-note { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: var(--sp-2); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #e6e6e6; padding-top: var(--sp-6); }
[data-theme="dark"] .footer { background: #0d0d0d; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-4); padding-bottom: var(--sp-5); }
.footer__logo { width: min(240px, 70%); height: auto; margin-bottom: var(--sp-2); }
.footer__brand p { color: #a9a9a9; max-width: 280px; }
.footer__col h3 { font-size: 1rem; margin-bottom: var(--sp-2); color: #fff; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col a, .footer__contact li { color: #b5b5b5; transition: color var(--dur); }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a, .footer__social-static { width: 42px; height: 42px; display: grid; place-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); color: #ddd; transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur); }
.footer__social a:hover { transform: translateY(-4px); background: var(--accent); color: #fff; }
.footer__social-static { opacity: 0.45; cursor: default; } /* Facebook/Instagram — bientôt actifs */
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: var(--sp-3) 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; color: #9a9a9a; font-size: 0.9rem; }
.footer__print { color: #b5b5b5; font-size: 0.9rem; transition: color var(--dur); }
.footer__print:hover { color: var(--accent); }

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 0.7rem; }
.fab__btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-content: center; color: #fff; box-shadow: var(--shadow); transition: transform var(--dur) var(--ease); }
.fab__btn--wa { background: var(--wa); animation: fabpulse 2.4s var(--ease) infinite; }
.fab__btn--call { background: var(--accent); }
.fab__btn:hover { transform: scale(1.1); }
@keyframes fabpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); } 60% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

.back-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 1000; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-content: center; color: #fff; border: 2px solid rgba(255,255,255,0.25);
  background: linear-gradient(145deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 8px 22px rgba(179, 18, 23, 0.42);
  opacity: 0; transform: translateY(16px) scale(0.85); pointer-events: none;
  transition: opacity var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(179, 18, 23, 0.55); }
.back-top svg { width: 22px; height: 22px; animation: bobUp 1.8s var(--ease) infinite; }
@keyframes bobUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.back-top[hidden] { display: none; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(120%); z-index: 1400; width: min(94%, 720px); display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transition: transform var(--dur-slow) var(--ease); }
.cookie.is-open { transform: translateX(-50%) translateY(0); }
.cookie[hidden] { display: none; }
.cookie p { font-size: 0.88rem; color: var(--text-soft); flex: 1; }
.cookie__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:nth-child(3n))::after { display: none; }
  .step:nth-child(odd)::after { content: ''; display: block; position: absolute; top: -1.9rem; right: calc(var(--sp-4) / -2 - 4px); width: var(--sp-4); height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); opacity: 0.5; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .header__cta { display: none; }
  .header__actions { margin-left: auto; }   /* pousse langue/thème/hamburger à droite */
  .hamburger { display: flex; }
  /* IMPORTANT : pas de backdrop-filter sur mobile — il crée un bloc conteneur qui
     "piège" le tiroir (position:fixed) et coupe les items quand on scrolle.
     On met un fond opaque à la place. */
  .header.is-scrolled { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(82%, 330px); margin: 0; z-index: 1200;
    background: var(--surface); box-shadow: var(--shadow-lg); padding: calc(var(--header-h) + 0.5rem) var(--sp-3) var(--sp-3);
    transform: translateX(100%); transition: transform var(--dur) var(--ease); overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav__link { display: flex; align-items: center; gap: 0.9rem; color: var(--text); padding: 0.85rem 0.7rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav__ico { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); opacity: 0.9; }
  .nav__ico svg { width: 100%; height: 100%; }
  .nav__link.is-active .nav__ico { opacity: 1; }
  .header:not(.is-scrolled) .nav__link { color: var(--text); }
  /* le drawer est clair : le lien actif/survol doit rester lisible (rouge), pas blanc */
  .header .nav__link:hover, .header .nav__link.is-active,
  .header:not(.is-scrolled) .nav__link:hover, .header:not(.is-scrolled) .nav__link.is-active { color: var(--accent); }
  .nav__link.is-active { background: var(--bg-alt); }
  .nav__link::after { display: none; }
  .nav__link:hover { background: var(--bg-alt); }
  .nav__close { display: block; position: absolute; top: 0.8rem; right: 1rem; font-size: 2rem; line-height: 1; color: var(--text); }
  .hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.is-active span:nth-child(2) { opacity: 0; }
  .hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .estimator__grid { grid-template-columns: 1fr; }
  .estimator__result { min-width: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: var(--sp-6) 0; }
  .services__grid, .why__grid, .perks, .gallery__grid { grid-template-columns: 1fr; }
  /* Vertical timeline on mobile */
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 1.6rem; }
  .steps::before { content: ''; position: absolute; left: calc(1.6rem + 39px); top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); opacity: 0.4; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 0 1.1rem; align-items: center; text-align: left; margin-bottom: var(--sp-2); padding: var(--sp-2); }
  .step:hover { transform: none; }
  .step__badge { width: 60px; height: 60px; margin: 0; }
  .step__icon { width: 60px; height: 60px; border-radius: 16px; transform: none; }
  .step:not(:nth-child(3n))::after, .step:nth-child(odd)::after { display: none; }
  .counters { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__controls { bottom: 4.5rem; }
  .btn--lg { width: 100%; }
  .hero__actions { flex-direction: column; }
}

/* ---------- Print (tarifs) ---------- */
@media print {
  .header, .fab, .back-top, .cookie, .hero__controls, .hero__scroll, .scroll-progress, .loader,
  .nav, .footer__social, .contact__map, .estimator, .ba, .lightbox, .testi__controls, .footer__print,
  .hero__actions, .contact__form { display: none !important; }
  body { color: #000; background: #fff; }
  .hero { min-height: auto; color: #000; padding: 1rem 0; }
  .hero__overlay, .hero__slider { display: none; }
  .hero__title, .hero__subtitle { color: #000; text-shadow: none; }
  .section { padding: 1rem 0; page-break-inside: avoid; }
  .service-card { border: 1px solid #000; box-shadow: none; page-break-inside: avoid; }
  .badge { background: #000 !important; color: #fff !important; }
  a[href^="tel"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Body scroll lock when mobile menu / lightbox open */
body.no-scroll { overflow: hidden; }
