/* ==========================================================================
   Marotta Garage Sàrl — feuille de style principale
   Identité : bleu vif des portes du garage + accent orange.
   ========================================================================== */

:root {
  --brand: #1747c9;        /* couleur principale (en-tête, boutons) */
  --brand-dark: #0b2a7a;   /* bandeau du haut, pied de page */
  --shade: 9, 32, 94;       /* voile sur les photos (R, G, B) */
  --accent: #f26b1d;       /* couleur d'accent (bouton Appeler, filets) */
  --accent-hover: #d95a10;
  --on-accent: #ffffff;    /* texte posé sur l'accent */
  --accent-text: #c2410c;  /* accent lisible sur fond blanc */
  --link: #1747c9;
  --icon-soft: #ffb27a;    /* icônes du bandeau d'atouts */
  --ink: #0b1220;          /* titres */
  --text: #273043;         /* texte courant */
  --muted: #5b6475;
  --line: #dde5f6;
  --soft: #f0f4fd;         /* fonds de section clairs */
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(var(--shade), 0.10);
  --max: 1160px;
  --title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); }

h1, h2, h3 {
  font-family: var(--title);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--white); color: var(--brand); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 6px;
  font-family: var(--title);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--accent); color: var(--on-accent); }
.btn-red:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--brand); }
.btn-navy { background: var(--brand); color: var(--white); }
.btn-navy:hover { background: var(--link); }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--white); }

/* ---------- En-tête ---------- */
.topbar {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.topbar .container {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 7px; padding-bottom: 7px;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand);
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--title);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
}
.nav a:hover { background: rgba(255, 255, 255, 0.1); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav .nav-call { background: var(--accent); color: var(--on-accent); margin-left: 8px; border-radius: 6px; }
.nav .nav-lang { font-size: 1rem; border: 1px solid rgba(255, 255, 255, 0.45); padding: 5px 10px; margin-left: 6px; }
.nav .nav-call:hover { background: var(--accent-hover); }

.lang-switch { display: none; }
.menu-toggle {
  display: none;
  background: none; border: 0; color: var(--white);
  width: 44px; height: 44px; padding: 10px; cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--brand) url("../images/garage-facade.jpg") center 40% / cover no-repeat;
  min-height: min(78vh, 680px);
  display: flex; align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--shade), 0.92) 0%, rgba(var(--shade), 0.7) 45%, rgba(var(--shade), 0.15) 100%);
}
.hero .container { position: relative; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: var(--white); max-width: 12ch; }
.hero .kicker {
  display: inline-block;
  font-family: var(--title);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 18px;
}
.hero p.lead { font-size: 1.2rem; max-width: 34rem; color: rgba(255, 255, 255, 0.9); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.page-hero {
  position: relative;
  background: var(--brand) center / cover no-repeat;
  color: var(--white);
  padding: 90px 0 70px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--shade), 0.92), rgba(var(--shade), 0.55));
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { margin: 12px 0 0; font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); max-width: 40rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 44rem; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: block;
  font-family: var(--title);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}

/* Bande de chiffres / atouts */
.strengths {
  background: var(--brand);
  color: var(--white);
}
.strengths ul {
  list-style: none; margin: 0; padding: 26px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.strengths li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.strengths svg { width: 28px; height: 28px; flex: none; color: var(--icon-soft); }

/* Cartes de services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand);
}
.card .icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--soft); color: var(--brand);
  margin-bottom: 18px;
}
.card .icon svg { width: 30px; height: 30px; }
.card p { color: var(--muted); margin-bottom: 0.6em; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card a.more { font-weight: 600; text-decoration: none; }

/* Bloc image + texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; margin: 0 0 1.4em; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 8px;
  width: 6px; height: 10px;
  border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Bannière appel */
.cta {
  background: var(--accent);
  color: var(--on-accent);
  padding: 56px 0;
}
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--on-accent); margin: 0; }
.cta p { margin: 6px 0 0; color: var(--on-accent); opacity: 0.9; }
.cta .btn-ghost { border-color: var(--on-accent); color: var(--on-accent); }
.cta .btn-ghost:hover { background: var(--on-accent); }
.cta .btn-ghost:hover { color: var(--accent); }

/* Infos pratiques / contact */
.info-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon {
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  display: grid; place-items: center; background: var(--brand); color: var(--white);
}
.info-list .icon svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--title); font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.info-list a { color: var(--text); text-decoration: none; }
.info-list a:hover { color: var(--link); text-decoration: underline; }
.map {
  border: 0; width: 100%; min-height: 360px; height: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--soft);
}
.hours { border-collapse: collapse; margin-top: 2px; }
.hours th { text-align: left; font-weight: 600; padding: 0 18px 8px 0; vertical-align: top; white-space: nowrap; }
.hours td { padding: 0 0 8px; }
.socials { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* Annonces Autolina */
.listing-frame { width: 1px; min-width: 100%; min-height: 600px; border: 0; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 0.9fr; gap: 32px; }
.site-footer img { height: 48px; width: auto; margin-bottom: 14px; }
.site-footer h3 { color: var(--white); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}

/* Texte long (confidentialité) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .strengths ul { grid-template-columns: 1fr 1fr; }
  .split, .info-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Menu ☰ dès que les 6 liens ne tiennent plus sur une ligne (tablettes, petits écrans) */
@media (max-width: 1120px) {
  .lang-switch {
    display: inline-flex; align-items: center; margin-left: auto; margin-right: 6px;
    color: var(--white); text-decoration: none; font-family: var(--title); font-weight: 600;
    font-size: 1.05rem; letter-spacing: 0.05em; border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px; padding: 6px 12px;
  }
  .nav .nav-lang { display: none; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brand);
    border-bottom: 3px solid var(--accent);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .nav .nav-lang { margin: 12px 0 0; text-align: center; }
  .nav .nav-call { margin: 12px 0 0; text-align: center; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar .hide-mobile { display: none; }
  .site-header .container { height: 66px; }
  .logo img { height: 42px; }
  .section { padding: 60px 0; }
  .cards, .tools .cards, .strengths ul, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero::before { background: rgba(var(--shade), 0.78); }
  .container { padding: 0 16px; }
}

/* ==========================================================================
   Animations (discrètes). Désactivées si l'utilisateur préfère moins de mouvement.
   Les éléments ne sont masqués que si le JS tourne (classe .js sur <html>).
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Hero : entrée du texte en cascade + lent mouvement de la photo */
  .hero { animation: hero-pan 24s ease-in-out infinite alternate; }
  .hero .kicker, .hero h1, .hero .lead, .hero .actions,
  .page-hero .eyebrow, .page-hero h1, .page-hero p {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero h1, .page-hero h1 { animation-delay: 0.12s; }
  .hero .lead, .page-hero p { animation-delay: 0.24s; }
  .hero .actions { animation-delay: 0.36s; }
  .hero .kicker, .page-hero .eyebrow { position: relative; }

  /* Filet orange qui se dessine sous l'en-tête */
  .site-header { border-bottom-color: transparent; }
  .site-header::after {
    content: ""; position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%;
    background: var(--accent); transform-origin: left; animation: draw 0.9s 0.2s ease-out both;
  }

  /* Bouton Appeler du hero : petite sonnerie toutes les quelques secondes */
  .hero .btn-red svg { animation: ring 4s 1.5s ease-in-out infinite; transform-origin: 50% 50%; }

  /* Apparition au défilement */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Coches qui « poppent » quand la liste apparaît */
  .js .reveal .checklist li::before, .js .reveal .checklist li::after { transform: scale(0); transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
  .js .reveal .checklist li::after { transform: rotate(45deg) scale(0); }
  .js .reveal.in .checklist li::before { transform: scale(1); }
  .js .reveal.in .checklist li::after { transform: rotate(45deg) scale(1); }
  .js .reveal.in .checklist li:nth-child(1)::before, .js .reveal.in .checklist li:nth-child(1)::after { transition-delay: 0.35s; }
  .js .reveal.in .checklist li:nth-child(2)::before, .js .reveal.in .checklist li:nth-child(2)::after { transition-delay: 0.5s; }
  .js .reveal.in .checklist li:nth-child(3)::before, .js .reveal.in .checklist li:nth-child(3)::after { transition-delay: 0.65s; }

  /* Survols */
  .card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
  .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(var(--shade), 0.18); border-top-color: var(--accent); }
  .card .icon { transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease; }
  .card:hover .icon { background: var(--accent); color: var(--on-accent); transform: rotate(-8deg); }
  .card a.more { transition: letter-spacing 0.2s ease; }
  .card:hover a.more { letter-spacing: 0.03em; }
  .split img { transition: transform 0.6s ease, box-shadow 0.6s ease; }
  .split img:hover { transform: scale(1.02); box-shadow: 0 20px 44px rgba(var(--shade), 0.2); }
  .strengths li svg { transition: transform 0.3s ease; }
  .strengths li:hover svg { transform: scale(1.2) rotate(-6deg); }
  .btn-red, .btn-navy { position: relative; overflow: hidden; }
  .btn-red::after, .btn-navy::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease;
  }
  .btn-red:hover::after, .btn-navy:hover::after { left: 130%; }
}

/* En-tête : ombre quand on a défilé */
.site-header { transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(var(--shade), 0.35); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-pan { from { background-position: center 34%; } to { background-position: center 52%; } }
@keyframes ring {
  0%, 82%, 100% { transform: rotate(0); }
  85% { transform: rotate(-16deg); } 88% { transform: rotate(14deg); }
  91% { transform: rotate(-12deg); } 94% { transform: rotate(8deg); } 97% { transform: rotate(-4deg); }
}

/* ==========================================================================
   Intro de l'accueil : une vraie porte de garage à lamelles qui se lève
   (une fois par visite). Affichée seulement si le script a posé .intro-on.
   Filet de sécurité : la porte s'ouvre toute seule en CSS, même sans JS.
   ========================================================================== */
.garage-door { display: none; }
.intro-on .garage-door {
  display: block;
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  animation: door-open 1.25s cubic-bezier(0.55, 0, 0.3, 1) 1.9s forwards;
}
/* Le tablier : lamelles métalliques bombées, avec rainure sombre et reflet */
.door-panels {
  position: absolute; inset: 0 0 26px 0;
  background:
    /* reflets verticaux du métal brossé */
    linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 18%, rgba(0,0,0,0.10) 50%, rgba(255,255,255,0) 82%, rgba(255,255,255,0.06) 100%),
    /* chaque lamelle (64 px) : arête claire, bombé, ombre, rainure */
    repeating-linear-gradient(180deg,
      #4d7af0 0px, #3566e6 3px, #2a58d6 14px, #1f4ac2 34px, #1a3fa8 52px,
      #132f80 58px, #0a1c52 61px, #061238 62px, #5f88f5 63px, #4d7af0 64px);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.25);
}
/* Rails latéraux */
.door-panels::before, .door-panels::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, #0b1d4f, #20367a 45%, #0b1d4f);
}
.door-panels::before { left: 0; }
.door-panels::after { right: 0; }
/* Barre basse + joint caoutchouc + poignée */
.door-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: linear-gradient(180deg, #c9ced8 0%, #f2f4f8 30%, #9aa2b1 100%);
  border-top: 2px solid #6b7486;
}
.door-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: #111; border-radius: 0 0 4px 4px;
}
.door-handle {
  position: absolute; left: 50%; bottom: 46px; width: 120px; height: 16px; margin-left: -60px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f5f7fb, #a8b0bf);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
/* Ombre portée sous la porte qui monte */
.door-shadow {
  position: absolute; left: 0; right: 0; bottom: -60px; height: 60px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}
/* Plaque avec le logo, vissée sur la porte */
.door-plate {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 22px;
  padding: 28px 40px 26px;
  background: linear-gradient(180deg, #123a9e, #0b2a7a);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  opacity: 0;
  animation: door-plate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
.door-plate::before, .door-plate::after {
  content: ""; position: absolute; top: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #8a93a6);
}
.door-plate::before { left: 10px; }
.door-plate::after { right: 10px; }
.door-plate img { width: min(240px, 58vw); height: auto; display: block; }
.door-plate .gauge {
  display: block; width: min(200px, 48vw); height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.18); overflow: hidden;
}
.door-plate .gauge span {
  display: block; height: 100%; width: 100%;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
  animation: gauge 1.15s cubic-bezier(0.5, 0, 0.2, 1) 0.5s forwards;
}
/* Voyant du moteur de porte qui clignote avant l'ouverture */
.door-led {
  position: absolute; right: 34px; bottom: 46px; width: 10px; height: 10px; border-radius: 50%;
  background: #f26b1d; box-shadow: 0 0 10px #f26b1d;
  animation: door-led 0.5s steps(2, jump-none) 0.6s 3;
}

/* Le contenu de l'accueil attend que la porte soit levée */
.intro-on .hero .kicker, .intro-on .hero h1, .intro-on .hero .lead, .intro-on .hero .actions { animation-delay: 2.55s; }
.intro-on .hero h1 { animation-delay: 2.67s; }
.intro-on .hero .lead { animation-delay: 2.79s; }
.intro-on .hero .actions { animation-delay: 2.91s; }
.intro-on .site-header::after { animation-delay: 2.6s; }

@keyframes door-plate { from { opacity: 0; transform: translate(-50%, -46%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes gauge { to { transform: scaleX(1); } }
@keyframes door-led { 50% { opacity: 0.2; box-shadow: none; } }
/* Petit à-coup du moteur, puis la porte monte et ralentit en haut */
@keyframes door-open {
  0% { transform: translateY(0); }
  8% { transform: translateY(5px); }
  16% { transform: translateY(-1%); }
  100% { transform: translateY(-112%); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-on .garage-door { display: none; }
}

/* ==========================================================================
   Logo : volant qui tourne (couche séparée) + klaxon (3 clics)
   ========================================================================== */
.logo-mark { position: relative; display: block; line-height: 0; }
.logo-mark .logo-wheel { position: absolute; left: 0; top: 0; transition: transform 0.7s cubic-bezier(0.3, 1.5, 0.5, 1); }
.logo:hover .logo-wheel { transform: rotate(-45deg); }
.logo-wheel.spin { animation: wheel-spin 0.9s cubic-bezier(0.3, 1.3, 0.5, 1); }
.logo-wheel.honk { animation: wheel-honk 0.5s ease-in-out; }
@keyframes wheel-spin { 0% { transform: rotate(0); } 60% { transform: rotate(-200deg); } 100% { transform: rotate(0); } }
@keyframes wheel-honk { 0%, 100% { transform: scale(1); } 25%, 75% { transform: scale(0.88); } 50% { transform: scale(1.08); } }
.honk-bubble {
  position: fixed; z-index: 300; pointer-events: none;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--title); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.06em;
  padding: 6px 14px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: honk-pop 1.1s ease-out forwards;
}
@keyframes honk-pop { 0% { opacity: 0; transform: translateY(6px) scale(0.6); } 20% { opacity: 1; transform: translateY(0) scale(1.05); } 100% { opacity: 0; transform: translateY(-28px) scale(1); } }

/* ==========================================================================
   Badge « Ouvert maintenant »
   ========================================================================== */
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); white-space: nowrap; }
.open-status[hidden] { display: none; }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3b5; flex: none; }
.open-status.is-open::before { background: #34d399; animation: pulse 2s infinite; }
.open-status.is-soon::before { background: #fbbf24; }
.open-status.is-closed::before { background: #f87171; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); } 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ==========================================================================
   Bandeau de saison (pneus, vacances…)
   ========================================================================== */
.season-banner { background: #fff4ec; border-bottom: 1px solid #ffd9c2; color: #7a2e0b; }
.season-banner .container { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.season-banner p { margin: 0; flex: 1; font-weight: 500; }
.season-banner a.season-cta { font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.season-banner button { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; flex: none; }
.season-banner button:hover { background: rgba(0, 0, 0, 0.06); }

/* ==========================================================================
   Outils pratiques (cartes de l'accueil)
   ========================================================================== */
.tools .cards { grid-template-columns: repeat(2, 1fr); }
.tools .card { display: flex; flex-direction: column; }
.tools .card .more { margin-top: auto; padding-top: 10px; }
.tools .card .icon { background: var(--brand); color: var(--white); }

/* ==========================================================================
   Page voyants
   ========================================================================== */
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 30px; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.legend i { width: 14px; height: 14px; border-radius: 50%; display: block; background: var(--lvl); }
.lvl-red { --lvl: #dc2626; --lvl-bg: #fef2f2; }
.lvl-orange { --lvl: #ea8a0c; --lvl-bg: #fff7ed; }
.lvl-green { --lvl: #16a34a; --lvl-bg: #f0fdf4; }

.lights { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.light { border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.light:hover { border-color: var(--lvl); transform: translateY(-2px); }
.light > button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; justify-items: center; align-items: center; gap: 10px; padding: 20px 12px 16px; text-align: center;
  font-family: var(--title); font-weight: 600; font-size: 1.1rem; color: var(--ink); line-height: 1.15;
}
.light > button:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }
.light > button svg { width: 54px; height: 54px; color: var(--lvl); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.light .light-body { padding: 0 22px 22px; background: var(--lvl-bg); }
.js .light .light-body { display: none; }
.light.open { grid-column: 1 / -1; border-color: var(--lvl); box-shadow: var(--shadow); transform: none; }
.light.open > button { grid-template-columns: auto 1fr; justify-items: start; text-align: left; font-size: 1.5rem; background: var(--lvl-bg); padding: 20px 22px; }
.js .light.open .light-body { display: block; }
.urgency { display: inline-block; background: var(--lvl); color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin: 4px 0 12px; }
.light-body p { margin: 0 0 10px; }
.light-body .btn { margin-top: 6px; }
.disclaimer { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Formulaires (rappel d'agenda, reprise)
   ========================================================================== */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1.5px solid #cfd7e6; border-radius: 8px; padding: 11px 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(23, 71, 201, 0.15); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.form-note { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }
.form-result { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; display: none; }
.form-result.show { display: block; }
button.btn { cursor: pointer; font-family: var(--title); }

/* ==========================================================================
   Avis clients
   ========================================================================== */
.reviews { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.stars { color: #f5b301; font-size: 2rem; letter-spacing: 4px; line-height: 1; margin-bottom: 14px; }
.review-card { background: var(--brand); color: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.review-card::after { content: "\201C"; position: absolute; right: 18px; top: -30px; font-size: 12rem; font-family: Georgia, serif; color: rgba(255, 255, 255, 0.08); }
.review-card h3 { color: var(--white); font-size: 1.8rem; }
.review-card p { color: rgba(255, 255, 255, 0.88); }

@media (max-width: 960px) {
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar .container { font-size: 0.85rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .lights { grid-template-columns: repeat(2, 1fr); }
  .light.open > button { font-size: 1.25rem; }
  .season-banner .container { font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .open-status.is-open::before { animation: none; }
  .logo-mark .logo-wheel { transition: none; }
  .logo-wheel.spin, .logo-wheel.honk { animation: none; }
}

@media (max-width: 760px) {
  .tools .cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page « Vendre ma voiture » + bandeau de l'accueil
   ========================================================================== */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.page-hero .hero-actions { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.36s both; }
.steps .icon.step-num {
  background: var(--accent); color: var(--on-accent);
  font-family: var(--title); font-weight: 700; font-size: 1.8rem;
}
.buy-band {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: var(--white); padding: 52px 0;
}
.buy-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12;
  background: url("../images/garage-panorama.jpg") center / cover no-repeat;
}
.buy-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.buy-band h2 { color: var(--white); margin: 0; }
.buy-band p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.88); }
.buy-band .eyebrow { color: #ffb27a; }
