/* ============================================================
   BRILLO CAR v2 — DESIGN SYSTEM NOIR & OR
   Station de lavage & studio detailing · Mechtras, Tizi Ouzou
   Palette  : --noir #0a0a0a · --noir2 #111211 · --or #d4af37
              --or-clair #e8cf8a · --ivoire #f5f1e8 · --taupe #9a917d
              --ligne rgba(212,175,55,.22)
   Typo     : Cormorant Garamond (titres, 500-700 + italique)
              Jost (corps & UI, 300/400/500/600) — via @import
   Compo    : .nav/.nav-inner/.brand/.brand-name/.nav-links
              .btn-or(.fill)/.burger
              .hero/.kicker/.hero-title/.hero-sub/.hero-actions
              .section(.alt)/.wrap/.sec-head/.tag/.num
              .univers-grid(éditorial, sans ombres)/.univers(.span-2/3/4/6)
              .timeline/.tl-item/.tl-num
              .args-grid/.arg/.arg-num
              .price-table/.pack-luxe/.badge/.pack-list/.prix
              .gal-grid/.gal-item(.g-wide/.g-tall)
              .ba-slider/range/.ba-handle (avant/après)
              .f-row/.field (formulaires)
              .footer/.footer-grid/.footer-links/.footer-bottom
   Anim     : .reveal → .visible (IntersectionObserver, main.js)
              prefers-reduced-motion : désactivation
   Break    : 900px (burger, grilles 2 col) · 600px (empilage)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&family=Jost:wght@300;400;500;600&display=swap');

/* ---------- Variables ---------- */
:root {
  --noir: #0a0a0a; --noir2: #111211;
  --or: #d4af37; --or-clair: #e8cf8a;
  --ivoire: #f5f1e8; --taupe: #9a917d;
  --ligne: rgba(212, 175, 55, .22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;
  --nav-h: 76px; --wrap: 1180px;
  /* Compléments thème (mode nuit par défaut) */
  --sur-or: #0a0a0a;                 /* texte posé sur une surface or */
  --or-survol: #e8cf8a;              /* survol des boutons pleins */
  --nav-bg: rgba(10, 10, 10, .92);
  --nav-bg-mobile: rgba(10, 10, 10, .97);
  --chip-bg: rgba(10, 10, 10, .78);  /* pastilles avant/après */
  --pouce: #2a2a28;                  /* scrollbar */
  --halo: radial-gradient(ellipse 65% 55% at 72% 28%, rgba(212, 175, 55, .06), transparent 62%);
  --grille: linear-gradient(rgba(212, 175, 55, .05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(212, 175, 55, .05) 1px, transparent 1px);
  --ligne-forte: rgba(212, 175, 55, .55);
  --degrade-signature: linear-gradient(180deg, rgba(212, 175, 55, .07), rgba(212, 175, 55, .02) 60%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--noir); color: var(--ivoire);
  font-family: var(--sans); font-weight: 300; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ivoire); line-height: 1.15; }
::selection { background: var(--or); color: var(--sur-or); }
:focus-visible { outline: 1px solid var(--or); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--pouce); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--or); }

/* ---------- Boutons ---------- */
.btn-or {
  display: inline-block; padding: .85rem 1.9rem;
  border: 1px solid var(--or); background: transparent;
  color: var(--or-clair); font-family: var(--sans);
  font-size: .8rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn-or:hover { background: var(--or); border-color: var(--or); color: var(--sur-or); }
.btn-or.fill { background: var(--or); color: var(--sur-or); }
.btn-or.fill:hover { background: var(--or-survol); border-color: var(--or-survol); color: var(--sur-or); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ligne);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; height: var(--nav-h);
  padding: 0 1.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-name {
  font-family: var(--sans); font-size: 1.05rem; font-weight: 500;
  letter-spacing: .3em; color: var(--ivoire);
  text-transform: uppercase; white-space: nowrap;
}
.brand-name b { color: var(--or); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; }
.nav-links a {
  position: relative; font-size: .82rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--taupe);
  transition: color .3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--or);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] { color: var(--or); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { flex-shrink: 0; display: flex; align-items: center; gap: .8rem; }
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer;
}
.burger span {
  display: block; width: 24px; height: 1px; background: var(--or-clair);
  transition: transform .35s ease, opacity .35s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden; background: var(--noir);
}
/* halo thème (or en nuit, or + acier en jour) */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--halo);
  pointer-events: none;
}
/* grille fine décorative, masquée en fondu radial */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grille);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 25%, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem 4.2rem; }
.kicker {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .3em;
  text-transform: uppercase; color: var(--or);
}
.kicker::before { content: ""; width: 40px; height: 1px; background: var(--or); flex-shrink: 0; }
.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 600; line-height: 1.05; max-width: 16ch; }
.hero-title em { font-style: italic; font-weight: 500; color: var(--or-clair); }
.hero-sub { margin-top: 1.9rem; max-width: 46ch; font-size: 1.05rem; font-weight: 300; color: var(--taupe); }
.hero-actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* Mot qui défile dans le titre (type Ateliers du Detailing) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hero-rotator {
  display: inline-block; height: 1.12em; overflow: hidden;
  vertical-align: -0.06em; min-width: 8.2ch;
}
.hero-rotator-track {
  display: flex; flex-direction: column;
  animation: hero-rotate 14s cubic-bezier(.4, 0, .2, 1) infinite;
}
.hero-rotator-track em {
  display: flex; align-items: center; height: 1.12em;
  font-style: italic; font-weight: 500; color: var(--or-clair);
  white-space: nowrap;
}
@keyframes hero-rotate {
  0%, 18%   { transform: translateY(0); }
  25%, 43%  { transform: translateY(-1.12em); }
  50%, 68%  { transform: translateY(-2.24em); }
  75%, 93%  { transform: translateY(-3.36em); }
  100%      { transform: translateY(-4.48em); }
}

/* Bandeau d'écriture qui défile */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  overflow: hidden; height: 48px;
  border-top: 1px solid var(--ligne);
  background: color-mix(in srgb, var(--noir2) 86%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ticker-track {
  display: flex; align-items: center; width: max-content; height: 100%;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-track span {
  display: inline-flex; align-items: center; gap: 2.4rem;
  padding: 0 1.2rem 0 2.4rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--taupe);
  white-space: nowrap;
}
.ticker-track span::after {
  content: "·"; color: var(--or); font-size: .95rem; letter-spacing: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.alt { background: var(--noir2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { margin: 1.1rem 0 1rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; }
.sec-head h2 em { font-style: italic; font-weight: 500; color: var(--or-clair); }
.sec-head > p { max-width: 56ch; color: var(--taupe); font-weight: 300; }
/* numérotation fine des sections */
.num { font-family: var(--sans); font-size: .95rem; font-weight: 300; letter-spacing: .18em; color: var(--or); }

/* ---------- Grille univers (éditoriale, sans ombres) ---------- */
.univers-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--ligne); border-left: 1px solid var(--ligne);
}
.univers {
  position: relative; min-height: 240px; padding: 2.2rem 1.7rem;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
  text-decoration: none;
}
.univers.span-2 { grid-column: span 2; }
.univers.span-3 { grid-column: span 3; }
.univers.span-4 { grid-column: span 4; }
.univers.span-6 { grid-column: span 6; }
.univers-num {
  font-family: var(--sans); font-size: .8rem; font-weight: 300;
  letter-spacing: .2em; color: var(--taupe); transition: color .45s ease;
}
.univers h3 { font-size: 1.7rem; font-weight: 500; color: var(--ivoire); transition: color .45s ease; }
.univers p { margin-top: .4rem; font-size: .92rem; color: var(--taupe); transition: color .45s ease; }
.univers:hover .univers-num, .univers:hover h3, .univers:hover p { color: var(--or); }

/* ---------- Timeline process ---------- */
.timeline { position: relative; max-width: 720px; }
.timeline::before {
  content: ""; position: absolute; top: .4rem; bottom: .4rem; left: 7px;
  width: 1px; background: var(--ligne);
}
.tl-item { position: relative; padding: 0 0 3.1rem 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: .25rem;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--or); background: var(--noir);
  box-shadow: 0 0 0 4px var(--noir);
}
.tl-num {
  font-family: var(--sans); font-size: .78rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: var(--or);
}
.tl-item h3 { margin: .55rem 0 .45rem; font-size: 1.55rem; font-weight: 500; }
.tl-item p { color: var(--taupe); font-weight: 300; max-width: 52ch; }

/* ---------- Arguments ---------- */
.args-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2.5rem;
  border-top: 1px solid var(--ligne);
}
.arg { padding: 2.4rem 1rem 0 0; }
.arg-num { font-family: var(--sans); font-size: .8rem; font-weight: 300; letter-spacing: .2em; color: var(--or); }
.arg h3 { margin: .9rem 0 .6rem; font-size: 1.4rem; font-weight: 500; }
.arg p { color: var(--taupe); font-size: .95rem; font-weight: 300; }

/* ---------- Tarifs ---------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  padding: 1.05rem 1.25rem; text-align: left;
  font-family: var(--sans); font-size: .76rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--or); border-bottom: 1px solid var(--ligne);
}
.price-table td {
  padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--ligne);
  font-weight: 300; color: var(--ivoire);
  transition: background .35s ease, color .35s ease;
}
.price-table td:last-child {
  text-align: right; font-family: var(--sans);
  font-weight: 600; color: var(--or-clair); white-space: nowrap;
}
.price-table tbody tr:hover td { background: rgba(212, 175, 55, .055); color: var(--or-clair); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.pack-luxe {
  position: relative; display: flex; flex-direction: column;
  padding: 2.6rem 2rem 2.2rem; border: 1px solid var(--ligne);
  background: transparent; transition: border-color .5s ease, transform .5s ease;
}
.pack-luxe:hover { border-color: var(--or); transform: translateY(-4px); }
.badge {
  align-self: flex-start; margin-bottom: 1.6rem; padding: .4rem .9rem;
  border: 1px solid var(--or); font-family: var(--sans);
  font-size: .66rem; font-weight: 500; letter-spacing: .32em;
  text-transform: uppercase; color: var(--or);
}
.pack-luxe h3 { font-size: 1.65rem; font-weight: 500; margin-bottom: .5rem; }
.pack-luxe > p { color: var(--taupe); font-size: .92rem; font-weight: 300; }
.pack-list { margin: 1.8rem 0 2.2rem; list-style: none; flex: 1; }
.pack-list li {
  padding: .7rem 0; border-bottom: 1px solid rgba(212, 175, 55, .12);
  color: var(--ivoire); font-weight: 300; font-size: .95rem;
}
.pack-list li::before { content: "+"; margin-right: .7rem; color: var(--or); font-weight: 300; }
.prix { font-family: var(--sans); font-size: 2.1rem; font-weight: 600; color: var(--or-clair); margin-bottom: 1.4rem; }
.prix small { font-size: .85rem; font-weight: 300; color: var(--taupe); }

/* ---------- Galerie mosaic ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: .7rem; }
.gal-item { position: relative; overflow: hidden; background: var(--noir2); min-height: 180px; }
.gal-item.g-wide { grid-column: span 2; }
.gal-item.g-tall { grid-row: span 2; }
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.75) contrast(1.02);
  transition: filter .6s ease, transform 1.1s ease;
}
.gal-item:hover img { filter: saturate(1); transform: scale(1.045); }
.gal-item figcaption {
  position: absolute; left: 1rem; bottom: 1rem; font-family: var(--sans);
  font-size: .72rem; font-weight: 400; letter-spacing: .24em;
  text-transform: uppercase; color: var(--or-clair);
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}
.gal-item:hover figcaption { opacity: 1; transform: none; }

/* ---------- Avant / Après ---------- */
.ba-slider { position: relative; overflow: hidden; border: 1px solid var(--ligne); aspect-ratio: 16 / 10; user-select: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); z-index: 2; }
.ba-slider .ba-tag {
  position: absolute; z-index: 4; top: 1rem; font-family: var(--sans);
  font-size: .68rem; font-weight: 500; letter-spacing: .3em;
  text-transform: uppercase; color: var(--or-clair);
  background: var(--chip-bg); padding: .35rem .8rem;
}
.ba-slider .ba-tag.ap { right: 1rem; }
.ba-slider input[type="range"] {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-handle {
  position: absolute; z-index: 3; top: 0; bottom: 0;
  left: var(--pos, 50%); width: 2px; background: var(--or);
  opacity: .9; transform: translateX(-50%); pointer-events: none;
}
.ba-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--or); border-radius: 50%;
  background: var(--chip-bg);
  color: var(--or-clair); font-size: 1rem;
}

/* ---------- Formulaires ---------- */
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.field { margin-bottom: 2rem; }
.field label {
  display: block; margin-bottom: .6rem; font-family: var(--sans);
  font-size: .74rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--taupe);
}
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem 0; background: transparent;
  border: none; border-bottom: 1px solid var(--ligne); border-radius: 0;
  color: var(--ivoire); font-family: var(--sans);
  font-size: 1rem; font-weight: 300;
  transition: border-color .35s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--or); }
.field select { appearance: none; }
.field select option { background: var(--noir2); color: var(--ivoire); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ligne); background: var(--noir2); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; }
.footer h4 {
  margin-bottom: 1.35rem; font-family: var(--sans);
  font-size: .78rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--or);
}
.footer p, .footer li { color: var(--taupe); font-weight: 300; font-size: .93rem; }
.footer p { line-height: 1.75; }
.footer a { color: var(--taupe); text-decoration: none; transition: color .3s ease; }
.footer a:hover { color: var(--or); }
.footer-links { list-style: none; display: grid; gap: .65rem; }
.footer-brand-name {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem;
  font-family: var(--sans); font-size: 1.1rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ivoire);
}
.footer-brand-name b { color: var(--or); font-weight: 600; }
.footer-brand-name img { height: 36px; width: auto; }
.footer-bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding: 1.5rem 0;
  border-top: 1px solid var(--ligne);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  font-size: .84rem; color: var(--taupe);
}
.footer-bottom a { color: var(--or); text-decoration: none; }
.footer-bottom a:hover { color: var(--or-clair); }

/* ---------- Animations reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .univers, .pack-luxe, .gal-item img, .btn-or, .nav-links a { transition-duration: .01ms; }
  .hero-rotator-track, .ticker-track { animation: none; }
}

/* ---------- Breakpoint 900px ---------- */
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 0 1.5rem;
    background: var(--nav-bg-mobile);
    border-bottom: 1px solid var(--ligne);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--ligne); font-size: .9rem; }
  .univers-grid { grid-template-columns: repeat(2, 1fr); }
  .univers.span-2, .univers.span-4, .univers.span-6 { grid-column: span 2; }
  .univers.span-3 { grid-column: span 2; }
  .args-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .packs { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Breakpoint 600px ---------- */
@media (max-width: 600px) {
  .hero::after { opacity: .45; } /* grain métal allégé, pas masqué */
  .nav-cta { display: none; }
  .univers-grid { grid-template-columns: 1fr; }
  .univers, .univers.span-2, .univers.span-3, .univers.span-4, .univers.span-6 { grid-column: span 1; min-height: 200px; }
  .args-grid { grid-template-columns: 1fr; gap: 2rem; }
  .packs { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .gal-item.g-wide { grid-column: span 1; }
  .gal-item.g-tall { grid-row: span 1; }
  .f-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-or { text-align: center; }
}

/* ============================================================
   THÈME JOUR v3 — 4 VARIANTES MODERNES + SÉLECTEUR
   Structure partagée : html[data-theme^="jour"]
   Palettes : jour-a (Blanc & Ambre) · jour-b (Crème & Cuivre)
              jour-c (Perle & Indigo) · jour-d (Menthe & Émeraude)
   Le mode nuit reste le défaut, inchangé.
   ============================================================ */

/* ---------- Variantes : palettes & motifs ---------- */

/* A — Blanc & Ambre : aluminium brossé + nervures tôle, accent ambre */
html[data-theme="jour-a"] {
  --noir: #fafafa; --noir2: #ffffff;
  --or: #f59e0b; --or-clair: #b45309; --or-survol: #d97706;
  --ivoire: #111827; --taupe: #6b7280;
  --ligne: #e5e7eb; --ligne-faible: #f3f4f6;
  --sur-or: #1c1917; --texte-2: #374151;
  --accent-degrade: linear-gradient(180deg, #fbbf24, #f59e0b);
  --accent-degrade-hover: linear-gradient(180deg, #fcd34d, #d97706);
  --accent-tint: #fffbeb; --accent-tint-forte: #fde68a;
  --badge-bg: #fef3c7; --badge-texte: #92400e;
  --fond-carte: #ffffff; --fond-footer: #f9fafb;
  --nav-bg: rgba(255, 255, 255, .82); --nav-bg-mobile: rgba(255, 255, 255, .96);
  --chip-bg: rgba(255, 255, 255, .9); --pouce: #d1d5db;
  --halo:
    radial-gradient(ellipse 55% 45% at 78% 12%, rgba(245, 158, 11, .12), transparent 62%),
    radial-gradient(ellipse 40% 50% at 8% 78%, rgba(148, 163, 184, .16), transparent 58%),
    linear-gradient(118deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(203, 213, 225, .28) 26%,
      rgba(255, 255, 255, .5) 48%,
      rgba(148, 163, 184, .18) 70%,
      transparent 100%);
  --grille: url("metal-grain.svg");
  --trame: 220px 110px;
  --degrade-signature: linear-gradient(180deg, #ffffff, #fffbeb);
  --ombre-carte: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07);
  --ombre-carte-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 16px 40px rgba(245, 158, 11, .14);
  color-scheme: light;
}
html[data-theme="jour-a"] body {
  background-color: #fafafa;
  background-image: url("metal-grain.svg");
  background-size: 220px 110px;
  background-attachment: fixed;
}

/* B — Crème & Cuivre : chaud, halos abricot/rose, fines diagonales */
html[data-theme="jour-b"] {
  --noir: #fbf6f0; --noir2: #ffffff;
  --or: #c2410c; --or-clair: #9a3412; --or-survol: #ea580c;
  --ivoire: #292524; --taupe: #78716c;
  --ligne: #e7e0d8; --ligne-faible: #f2ece5;
  --sur-or: #ffffff; --texte-2: #57534e;
  --accent-degrade: linear-gradient(180deg, #fb923c, #c2410c);
  --accent-degrade-hover: linear-gradient(180deg, #fdba74, #ea580c);
  --accent-tint: #fff7ed; --accent-tint-forte: #fed7aa;
  --badge-bg: #ffedd5; --badge-texte: #9a3412;
  --fond-carte: #ffffff; --fond-footer: #faf5ef;
  --nav-bg: rgba(251, 246, 240, .84); --nav-bg-mobile: rgba(251, 246, 240, .97);
  --chip-bg: rgba(255, 255, 255, .9); --pouce: #d6cdc2;
  --halo:
    radial-gradient(ellipse 55% 45% at 80% 14%, rgba(234, 88, 12, .09), transparent 62%),
    radial-gradient(ellipse 45% 40% at 14% 24%, rgba(244, 114, 182, .07), transparent 60%),
    radial-gradient(ellipse 50% 42% at 86% 82%, rgba(251, 146, 60, .08), transparent 62%);
  --grille: repeating-linear-gradient(45deg, rgba(194, 65, 12, .05) 0 1px, transparent 1px 26px);
  --trame: 26px 26px;
  --degrade-signature: linear-gradient(180deg, #ffffff, #fff7ed);
  --ombre-carte: 0 1px 2px rgba(68, 44, 28, .05), 0 12px 32px rgba(68, 44, 28, .08);
  --ombre-carte-hover: 0 2px 4px rgba(68, 44, 28, .06), 0 16px 40px rgba(194, 65, 12, .16);
  color-scheme: light;
}

/* C — Perle & Indigo : tech, mesh bleu/lavande, trame de points fine */
html[data-theme="jour-c"] {
  --noir: #f8fafc; --noir2: #ffffff;
  --or: #6366f1; --or-clair: #4338ca; --or-survol: #4f46e5;
  --ivoire: #0f172a; --taupe: #64748b;
  --ligne: #e2e8f0; --ligne-faible: #f1f5f9;
  --sur-or: #ffffff; --texte-2: #334155;
  --accent-degrade: linear-gradient(180deg, #818cf8, #4f46e5);
  --accent-degrade-hover: linear-gradient(180deg, #a5b4fc, #4338ca);
  --accent-tint: #eef2ff; --accent-tint-forte: #c7d2fe;
  --badge-bg: #e0e7ff; --badge-texte: #3730a3;
  --fond-carte: #ffffff; --fond-footer: #f8fafc;
  --nav-bg: rgba(255, 255, 255, .8); --nav-bg-mobile: rgba(255, 255, 255, .96);
  --chip-bg: rgba(255, 255, 255, .9); --pouce: #cbd5e1;
  --halo:
    radial-gradient(ellipse 55% 45% at 78% 12%, rgba(99, 102, 241, .09), transparent 62%),
    radial-gradient(ellipse 45% 40% at 14% 22%, rgba(56, 189, 248, .08), transparent 60%),
    radial-gradient(ellipse 50% 42% at 86% 84%, rgba(167, 139, 250, .07), transparent 62%);
  --grille: radial-gradient(circle, rgba(30, 41, 59, .06) 1px, transparent 1.5px);
  --trame: 24px 24px;
  --degrade-signature: linear-gradient(180deg, #ffffff, #eef2ff);
  --ombre-carte: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .07);
  --ombre-carte-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 16px 40px rgba(79, 70, 229, .15);
  color-scheme: light;
}

/* D — Menthe & Émeraude : frais, halos verts/cyan, diagonales douces */
html[data-theme="jour-d"] {
  --noir: #f4f9f6; --noir2: #ffffff;
  --or: #10b981; --or-clair: #047857; --or-survol: #059669;
  --ivoire: #0c2a24; --taupe: #5b6b63;
  --ligne: #dce8e1; --ligne-faible: #edf5f0;
  --sur-or: #ffffff; --texte-2: #33443d;
  --accent-degrade: linear-gradient(180deg, #34d399, #059669);
  --accent-degrade-hover: linear-gradient(180deg, #6ee7b7, #047857);
  --accent-tint: #ecfdf5; --accent-tint-forte: #a7f3d0;
  --badge-bg: #d1fae5; --badge-texte: #065f46;
  --fond-carte: #ffffff; --fond-footer: #f0f7f3;
  --nav-bg: rgba(244, 249, 246, .84); --nav-bg-mobile: rgba(244, 249, 246, .97);
  --chip-bg: rgba(255, 255, 255, .9); --pouce: #c2d4ca;
  --halo:
    radial-gradient(ellipse 55% 45% at 78% 14%, rgba(16, 185, 129, .09), transparent 62%),
    radial-gradient(ellipse 45% 40% at 16% 24%, rgba(6, 182, 212, .07), transparent 60%),
    radial-gradient(ellipse 50% 42% at 85% 82%, rgba(52, 211, 153, .08), transparent 62%);
  --grille: repeating-linear-gradient(-45deg, rgba(6, 95, 70, .05) 0 1px, transparent 1px 26px);
  --trame: 26px 26px;
  --degrade-signature: linear-gradient(180deg, #ffffff, #ecfdf5);
  --ombre-carte: 0 1px 2px rgba(6, 60, 45, .04), 0 12px 32px rgba(6, 60, 45, .07);
  --ombre-carte-hover: 0 2px 4px rgba(6, 60, 45, .05), 0 16px 40px rgba(16, 185, 129, .15);
  color-scheme: light;
}

/* ---------- Structure partagée (toutes variantes jour) ---------- */
html[data-theme^="jour"] ::selection { background: var(--accent-tint-forte); color: var(--ivoire); }
html[data-theme^="jour"] ::-webkit-scrollbar-track { background: var(--noir); }
html[data-theme^="jour"] ::-webkit-scrollbar-thumb { background: var(--pouce); }

/* Hero : fond + motifs */
html[data-theme^="jour"] .hero { background: var(--noir); }
html[data-theme^="jour"] .hero::before { background: var(--halo); }
html[data-theme^="jour"] .hero::after {
  background-image: var(--grille);
  background-size: var(--trame);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 25%, transparent 72%);
}
/* Grain aluminium + nervures tôle — Blanc & Ambre uniquement */
html[data-theme="jour-a"] .hero::after {
  background-image:
    url("metal-grain.svg"),
    repeating-linear-gradient(90deg,
      rgba(71, 85, 105, .07) 0 2px,
      transparent 2px 15px);
  background-size: 220px 110px, 15px 100%;
  opacity: .75;
}

/* Navigation */
html[data-theme^="jour"] .nav { background: var(--nav-bg); border-bottom: 1px solid var(--ligne); }
html[data-theme^="jour"] .nav-links a { color: var(--taupe); }
html[data-theme^="jour"] .nav-links a:hover,
html[data-theme^="jour"] .nav-links a[aria-current="page"] { color: var(--or-clair); }
html[data-theme^="jour"] .brand-name b { color: var(--or); }
html[data-theme^="jour"] .footer-brand-name b { color: var(--or); }

/* Boutons */
html[data-theme^="jour"] .btn-or {
  border: 1px solid var(--ligne);
  background: var(--fond-carte);
  color: var(--texte-2);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
html[data-theme^="jour"] .btn-or:hover {
  border-color: var(--or);
  color: var(--or-clair);
  background: var(--accent-tint);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .12);
}
html[data-theme^="jour"] .btn-or.fill {
  border-color: transparent;
  background: var(--accent-degrade);
  color: var(--sur-or);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .18);
}
html[data-theme^="jour"] .btn-or.fill:hover {
  background: var(--accent-degrade-hover);
  box-shadow: 0 6px 20px rgba(16, 24, 40, .22);
}

/* Sections & cartes */
html[data-theme^="jour"] .section.alt { background: var(--noir2); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
html[data-theme^="jour"] .univers-grid { border-color: var(--ligne); }
html[data-theme^="jour"] .univers { background: var(--fond-carte); }
html[data-theme^="jour"] .univers:hover {
  box-shadow: var(--ombre-carte-hover);
  transform: translateY(-3px);
}
html[data-theme^="jour"] .univers:hover .univers-num,
html[data-theme^="jour"] .univers:hover h3,
html[data-theme^="jour"] .univers:hover p { color: var(--or-clair); }
html[data-theme^="jour"] .univers-num { color: var(--taupe); }

html[data-theme^="jour"] .pack-luxe {
  background: var(--fond-carte);
  border: 1px solid var(--ligne);
  border-radius: 16px;
  box-shadow: var(--ombre-carte);
  transition: box-shadow .4s ease, transform .4s ease, border-color .4s ease;
}
html[data-theme^="jour"] .pack-luxe:hover {
  border-color: var(--or);
  box-shadow: var(--ombre-carte-hover);
  transform: translateY(-4px);
}
html[data-theme^="jour"] .pack-luxe[style] {
  border-color: var(--or) !important;
  background: var(--degrade-signature) !important;
}
html[data-theme^="jour"] .pack-list li { border-bottom-color: var(--ligne-faible); }
html[data-theme^="jour"] .badge {
  border: none;
  background: var(--badge-bg);
  color: var(--badge-texte);
  border-radius: 999px;
  padding: .45rem 1rem;
}
html[data-theme^="jour"] .info-card {
  background: var(--fond-carte);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  box-shadow: var(--ombre-carte);
}
html[data-theme^="jour"] .info-row { border-bottom-color: var(--ligne-faible); }

/* Accents typo */
html[data-theme^="jour"] .kicker,
html[data-theme^="jour"] .num,
html[data-theme^="jour"] .tl-num,
html[data-theme^="jour"] .arg-num { color: var(--or-survol); }
html[data-theme^="jour"] .kicker::before { background: var(--or-survol); }
html[data-theme^="jour"] .hero-title em,
html[data-theme^="jour"] .sec-head h2 em,
html[data-theme^="jour"] .cta-title em { color: var(--or-survol); }

/* Tableau tarifs */
html[data-theme^="jour"] .price-table th { color: var(--or-clair); border-bottom-color: var(--ligne); }
html[data-theme^="jour"] .price-table td { color: var(--ivoire); }
html[data-theme^="jour"] .price-table td:last-child { color: var(--or-clair); }
html[data-theme^="jour"] .price-table tbody tr:hover td { background: var(--accent-tint); color: var(--or-clair); }
html[data-theme^="jour"] .prix { color: var(--or-clair); }

/* Timeline */
html[data-theme^="jour"] .tl-item::before {
  background: var(--fond-carte);
  box-shadow: 0 0 0 4px var(--accent-tint-forte);
}

/* Galerie */
html[data-theme^="jour"] .gal-item { border-radius: 14px; }
html[data-theme^="jour"] .gal-item img { filter: none; }
html[data-theme^="jour"] .gal-item:hover img { filter: saturate(1.08); }
html[data-theme^="jour"] .gal-item figcaption { color: #ffffff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
html[data-theme^="jour"] .gal-num { color: var(--or); opacity: .4; }
html[data-theme^="jour"] .gal-ph::after { display: none; }

/* Bandeaux CTA & résa */
html[data-theme^="jour"] .cta-band::before {
  background: var(--halo);
}
html[data-theme^="jour"] .cta-title { color: var(--ivoire); }
html[data-theme^="jour"] .resa-band { background: var(--accent-tint); }
html[data-theme^="jour"] .res-ok { background: var(--accent-tint); border-radius: 14px; }
html[data-theme^="jour"] .svc:hover { background: linear-gradient(90deg, var(--accent-tint), transparent 65%); }
html[data-theme^="jour"] .tarif-link { color: var(--or-clair); border-bottom-color: var(--ligne); }
html[data-theme^="jour"] .tarif-link:hover { color: var(--or-survol); border-color: var(--or-survol); }

/* Formulaires */
html[data-theme^="jour"] .field input,
html[data-theme^="jour"] .field textarea,
html[data-theme^="jour"] .field select {
  color: var(--ivoire);
  border-bottom: 1px solid var(--pouce);
}
html[data-theme^="jour"] .field input:focus,
html[data-theme^="jour"] .field textarea:focus,
html[data-theme^="jour"] .field select:focus { border-bottom-color: var(--or); }
html[data-theme^="jour"] .field select option { background: var(--fond-carte); color: var(--ivoire); }

/* Slider avant/après */
html[data-theme^="jour"] .ba-slider { border-color: var(--ligne); border-radius: 14px; }
html[data-theme^="jour"] .ba-slider .ba-tag { background: rgba(17, 24, 39, .78); color: #ffffff; }

/* Footer */
html[data-theme^="jour"] .footer { background: var(--fond-footer); border-top: 1px solid var(--ligne); }
html[data-theme^="jour"] .footer a:hover { color: var(--or-clair); }
html[data-theme^="jour"] .footer-bottom a { color: var(--or-clair); }

/* ---------- Bouton nav + sélecteur flottant ---------- */
.theme-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--ligne);
  color: var(--or); font-size: 1.05rem; line-height: 1;
  cursor: pointer; border-radius: 0;
  transition: border-color .35s ease, color .35s ease, transform .35s ease;
}
.theme-btn:hover { border-color: var(--or); transform: translateY(-1px); }
.theme-btn:focus-visible { outline: 1px solid var(--or); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-inner { gap: 1rem; }
  .theme-btn { margin-left: auto; }
}

/* Sélecteur de thème (outil de test, flottant en bas à droite) */
#themeFab {
  position: fixed; bottom: 20px; right: 20px; z-index: 9998;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; cursor: pointer;
  background: #111827; color: #f59e0b; font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: transform .3s ease;
}
#themeFab:hover { transform: scale(1.08); }
#themePanel {
  position: fixed; bottom: 78px; right: 20px; z-index: 9999;
  min-width: 210px; padding: .8rem;
  background: rgba(17, 24, 39, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  display: none; flex-direction: column; gap: .3rem;
}
#themePanel.open { display: flex; }
#themePanel .tp-titre {
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); padding: .15rem .5rem .45rem;
}
#themePanel button {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem; border: none; border-radius: 9px;
  background: transparent; color: rgba(255, 255, 255, .85);
  font-family: var(--sans); font-size: .82rem; font-weight: 400;
  text-align: left; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
#themePanel button:hover { background: rgba(255, 255, 255, .1); color: #ffffff; }
#themePanel button.actif { background: #f59e0b; color: #111827; font-weight: 500; }
#themePanel button .tp-puce {
  width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .25);
}

@media (prefers-reduced-motion: reduce) {
  .theme-btn, #themeFab { transition-duration: .01ms; }
}

/* Gestionnaire de thème (bouton dans la nav) */
.theme-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--ligne);
  color: var(--or); font-size: 1.05rem; line-height: 1;
  cursor: pointer; border-radius: 0;
  transition: border-color .35s ease, color .35s ease, transform .35s ease;
}
.theme-btn:hover { border-color: var(--or); transform: translateY(-1px); }
.theme-btn:focus-visible { outline: 1px solid var(--or); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-inner { gap: 1rem; }
  .theme-btn { margin-left: auto; } /* pousse le bouton à droite du burger */
}

@media (prefers-reduced-motion: reduce) {
  .theme-btn { transition-duration: .01ms; }
}

/* ---------- Sous-titres, options & notes tarifs (lavage ext/int) ---------- */
.price-sub { font-size: 1.35rem; margin: 2.4rem 0 .4rem; color: var(--ivoire); }
.price-sub em { color: var(--or); font-style: italic; }
html[data-theme^="jour"] .price-sub em { color: var(--or-clair); }
.tarif-note { margin-top: 1.2rem; font-size: .92rem; font-weight: 300; letter-spacing: .04em; color: var(--or-clair); }
.price-table .rec { font-family: var(--sans); font-style: italic; font-size: .78em; letter-spacing: .08em; color: var(--or-clair); margin-left: .45rem; white-space: nowrap; }
