/* =====================================================================
   GARAGE DU LITTORAL
   Sombre et graphique : l'enseigne orange, les affiches de miniatures
   encadrées, le mur à lattes de chêne. Angles vifs partout (rayon 0).
   Polices : polices.css (Archivo, axe de largeur 62-125 %)
   ===================================================================== */

:root {
  --nuit: #111213;
  --carbone: #17181A;
  --graphite: #1F2124;
  --acier: #2A2D31;
  --trait: #34373C;
  --texte: #F1F0EC;
  --texte-2: #B3B4B0;
  --texte-3: #8C8E90;
  --orange: #F2913D;
  --orange-vif: #F7A257;
  --noir-plaque: #141414;
  --vert: #4CC38A;
  --erreur: #FF8F84;

  --f: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gouttiere: clamp(16px, 4vw, 40px);
  --entete: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--entete); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--texte); font: 400 1.0625rem/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--noir-plaque); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--orange); color: var(--noir-plaque); font-weight: 700; }
.evitement:focus { top: 12px; }
.conteneur { width: min(100% - 2 * var(--gouttiere), 1240px); margin-inline: auto; }
.section { padding-block: clamp(48px, 6.5vw, 96px); }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* Titres « affiche » : Archivo très condensé, capitales */
.titre-section {
  font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: clamp(1.95rem, 8.6vw, 6.2rem); line-height: .88; letter-spacing: -.005em; white-space: nowrap;
}
.titre-bloc::before {
  /* double bande de course */
  content: ""; display: block; width: 72px; height: 10px; margin-bottom: 26px;
  background: linear-gradient(90deg, var(--orange) 0 68%, transparent 68% 78%, var(--orange) 78%);
}
.titre-bloc p { margin-top: 20px; max-width: 46ch; color: var(--texte-2); font-size: 1.1rem; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1rem 1.5rem; border: 1.5px solid transparent; border-radius: 0;
  font: 750 .95rem/1 var(--f); font-stretch: 88%; text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.bouton:active { transform: translateY(1px); }
.bouton--orange { background: var(--orange); color: var(--noir-plaque); }
.bouton--orange:hover { background: var(--orange-vif); }
.bouton--contour { border-color: rgb(241 240 236 / .7); color: var(--texte); background: rgb(17 18 19 / .2); }
.bouton--contour:hover { border-color: var(--orange); color: var(--orange); }
.bouton[data-etat="envoi"] { opacity: .7; pointer-events: none; }
.bouton[data-etat="envoi"] span::after { content: "…"; }

/* ---------- Statut ---------- */
.statut { display: inline-flex; align-items: center; gap: .55em; flex-wrap: wrap; }
.statut__voyant { width: 9px; height: 9px; border-radius: 50%; background: var(--texte-3); flex: none; }
[data-etat="ouvert"] .statut__voyant { background: var(--vert); box-shadow: 0 0 0 4px rgb(76 195 138 / .22); }
[data-etat="pause"] .statut__voyant, [data-etat="rdv"] .statut__voyant { background: var(--orange); }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 30; transition: background-color .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.entete.est-defile { background: rgb(17 18 19 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--trait); }
.entete__inner { height: var(--entete); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.entete__logo { min-width: 0; }
.entete__logo img { width: clamp(150px, 46vw, 200px); height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: 34px; }
.nav a { position: relative; text-decoration: none; font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: .07em; font-size: .92rem; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.est-actif::after { transform: scaleX(1); transform-origin: left; }
.entete__actions { display: flex; align-items: center; gap: 10px; }
.entete__tel { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--trait); color: var(--orange); text-decoration: none; }
.entete__tel span { display: none; }
.burger { width: 46px; height: 46px; border: 0; background: var(--orange); cursor: pointer; display: grid; place-items: center; }
.burger__barres, .burger__barres::before { display: block; width: 20px; height: 2px; background: var(--noir-plaque); transition: transform .35s var(--ease); }
.burger__barres { position: relative; transform: translateY(-4px); }
.burger__barres::before { content: ""; position: absolute; top: 8px; }
.burger[aria-expanded="true"] .burger__barres { transform: translateY(0) rotate(45deg); }
.burger[aria-expanded="true"] .burger__barres::before { transform: translateY(-8px) rotate(-90deg); }
@media (min-width: 1024px) {
  .nav { display: block; }
  .burger { display: none; }
  .entete__tel { width: auto; height: auto; border: 0; gap: 10px; display: inline-flex; align-items: center; font-weight: 800; font-stretch: 75%; font-size: 1.25rem; letter-spacing: .02em; }
  .entete__tel span { display: inline; }
}

.menu-mobile { position: fixed; inset: 0; z-index: 29; background: var(--nuit); padding: calc(var(--entete) + 24px) var(--gouttiere) 120px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu-mobile[hidden] { display: none; }
.menu-mobile nav a { display: block; padding: 6px 0; text-decoration: none; font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.8rem, 13vw, 4.2rem); line-height: 1; }
.menu-mobile nav li { overflow: hidden; }
.menu-mobile nav li a { animation: menuLigne .6s var(--ease) both; }
.menu-mobile nav li:nth-child(2) a { animation-delay: .04s; }
.menu-mobile nav li:nth-child(3) a { animation-delay: .08s; }
.menu-mobile nav li:nth-child(4) a { animation-delay: .12s; }
.menu-mobile nav li:nth-child(5) a { animation-delay: .16s; }
.menu-mobile__pied a { font-weight: 850; font-stretch: 70%; font-size: 1.9rem; color: var(--orange); text-decoration: none; }
.menu-mobile__pied p { color: var(--texte-2); margin-top: 4px; }
@keyframes menuLigne { from { transform: translateY(100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--entete) + 32px) 0 clamp(88px, 12vh, 120px); }
.hero__fond img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--nuit) 0%, rgb(17 18 19 / .82) 30%, rgb(17 18 19 / .25) 62%, rgb(17 18 19 / .55) 100%);
}
.hero__statut { font-size: .9rem; color: var(--texte-2); margin-bottom: 20px; }
.hero__statut strong { color: var(--texte); font-weight: 700; }
.hero__titre { font-stretch: 62%; font-weight: 870; text-transform: uppercase; font-size: clamp(3.6rem, 13vw, 8.6rem); line-height: .86; letter-spacing: -.005em; }
.ligne { display: block; overflow: hidden; padding-bottom: .02em; }
.ligne > span { display: block; }
.ligne--orange { color: var(--orange); }
.hero__intro { margin-top: 22px; max-width: 40ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #DAD9D4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__unicar { position: absolute; right: var(--gouttiere); top: calc(var(--entete) + 16px); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-2); }
.hero__unicar img { height: 26px; width: auto; }
@media (max-width: 767px) {
  .hero { display: block; min-height: 0; padding: 0 0 56px; }
  .hero::before { content: none; }
  .hero__fond { position: relative; display: block; height: min(60svh, 520px); }
  .hero__fond img { z-index: 0; object-position: 50% 80%; }
  .hero__fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--nuit) 2%, rgb(17 18 19 / .55) 32%, transparent 55%, rgb(17 18 19 / .65) 100%); }
  .hero__contenu { position: relative; margin-top: -72px; }
  .hero__titre { font-size: clamp(2.9rem, 13.6vw, 5rem); }
  .hero__actions { display: none; }
  .hero__unicar { top: calc(var(--entete) + 8px); }
  .hero__unicar span { display: none; }
  .hero__unicar img { height: 22px; }
}
@media (min-width: 1024px) {
  .hero::before { background: linear-gradient(90deg, rgb(17 18 19 / .94) 0%, rgb(17 18 19 / .78) 34%, rgb(17 18 19 / .12) 68%, rgb(17 18 19 / .3) 100%), linear-gradient(0deg, var(--nuit) 0%, transparent 28%); }
  .hero__fond img { object-position: 50% 60%; }
  .hero__unicar { top: auto; bottom: clamp(88px, 12vh, 120px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__fond img { animation: recul 2.6s var(--ease) both; }
  .ligne > span { animation: ligne 1s var(--ease) both; }
  .ligne:nth-child(2) > span { animation-delay: .08s; }
  .ligne:nth-child(3) > span { animation-delay: .16s; }
  .hero__intro, .hero__actions, .hero__statut { animation: monte .9s var(--ease) .3s both; }
  .hero__actions { animation-delay: .4s; }
  [data-apparition] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  [data-apparition].est-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes recul { from { transform: scale(1.08); } }
@keyframes ligne { from { transform: translateY(105%); } }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Bandeau défilant ---------- */
.defilant { background: var(--orange); color: var(--noir-plaque); overflow: hidden; padding: 14px 0; border-block: 1px solid #000; }
.defilant__piste { display: flex; width: max-content; }
.defilant span { display: inline-flex; align-items: center; font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1; white-space: nowrap; }
.defilant span::after { content: ""; width: 9px; height: 9px; margin: 0 26px; background: var(--noir-plaque); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .defilant__piste { animation: defile 38s linear infinite; }
  .defilant:hover .defilant__piste { animation-play-state: paused; }
}
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Occasions : le mur à lattes ---------- */
.mur {
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(40px, 5vw, 76px) 0 clamp(44px, 5vw, 80px);
  background:
    linear-gradient(180deg, rgb(0 0 0 / .35), transparent 18%, transparent 82%, rgb(0 0 0 / .45)),
    linear-gradient(90deg, rgb(0 0 0 / .3), transparent 15%, transparent 85%, rgb(0 0 0 / .3)),
    repeating-linear-gradient(180deg, #C6976A 0, #B4855A 19px, #94693F 21px, #0D0D0D 21px, #0D0D0D 29px);
}
.mur__piste { width: min(100% - 2 * var(--gouttiere), 1240px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
@media (max-width: 899px) {
  /* Téléphone et tablette : les occasions s'empilent, sans défilement horizontal */
  .mur__piste { grid-template-columns: 1fr; gap: 36px; max-width: 520px; }
}

.cadre { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; color: inherit; }
.affiche {
  display: flex; flex-direction: column; justify-content: center; aspect-ratio: 4 / 3;
  background: #0D0D0D; border: 1px solid #000; padding: clamp(10px, 1.1vw, 14px);
  box-shadow: 0 22px 36px -18px rgb(0 0 0 / .85), 0 2px 0 rgb(255 255 255 / .05);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.affiche__photo { flex: 1; overflow: hidden; background: #000; }
.affiche__photo img { transition: transform 1s var(--ease); }
.cadre:hover .affiche, .cadre:focus-visible .affiche { transform: translateY(-5px); box-shadow: 0 34px 44px -22px rgb(0 0 0 / .9), 0 2px 0 rgb(255 255 255 / .05); }
.cadre:hover .affiche__photo img { transform: scale(1.04); }
.cadre:focus-visible { outline: none; }
.cadre:focus-visible .cartel { outline: 2px solid var(--orange); outline-offset: 3px; }
.cartel { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Cartel sous le cadre, comme dans une galerie */
.cartel { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; background: var(--texte); color: var(--noir-plaque); box-shadow: 0 10px 18px -12px rgb(0 0 0 / .8); }
.cartel strong { display: block; font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: .92rem; line-height: 1.15; }
.cartel span { display: block; font-size: .86rem; font-variant-numeric: tabular-nums; }
.cartel__lien { flex: none; display: inline-flex !important; align-items: center; gap: 6px; font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: .78rem !important; letter-spacing: .06em; }
.cartel__lien .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.cadre:hover .cartel__lien .ic { transform: translateX(4px); }


.affiche--vide { background: #17181A; align-items: center; text-align: center; gap: 10px; border: 1px dashed #55585D; box-shadow: none; }
.affiche--vide strong { font-stretch: 70%; font-weight: 850; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.affiche--vide .affiche__texte { color: var(--texte-2); font-size: .92rem; max-width: 22ch; margin-inline: auto; }


/* ---------- Services : tableau des stands ---------- */
.pit { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.case { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 28px; background: var(--graphite); border-top: 2px solid transparent; text-decoration: none; overflow: hidden; transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.case:hover { background: var(--acier); border-top-color: var(--orange); }
.case > .ic, .case__texte > .ic { width: 34px; height: 34px; color: var(--orange); margin-bottom: auto; }
.case h3 { margin-top: 28px; font-stretch: 70%; font-weight: 850; text-transform: uppercase; font-size: clamp(1.5rem, 2vw, 1.85rem); line-height: .98; }
.case p { color: var(--texte-2); font-size: .98rem; max-width: 40ch; }
.case--photo { padding: 0; min-height: 320px; justify-content: flex-end; }
.case--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.5); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.case--photo:hover img { transform: scale(1.04); filter: grayscale(0) brightness(.6); }
.case__texte { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(0deg, rgb(17 18 19 / .85), transparent); }
.case__texte .ic { margin-bottom: 0; }
.case__texte h3 { margin-top: 6px; }
.case--orange { background: var(--orange); color: var(--noir-plaque); }
.case--orange:hover { background: var(--orange-vif); border-top-color: var(--noir-plaque); }
.case--orange > .ic { color: var(--noir-plaque); }
.case--orange p { color: #2B2722; }
.case__lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 850; font-stretch: 75%; text-transform: uppercase; letter-spacing: .05em; }
.case__lien .ic { transition: transform .3s var(--ease); }
.case--orange:hover .case__lien .ic { transform: translateX(5px); }
@media (max-width: 767px) {
  .case:not(.case--photo) { min-height: 0; }
  .case h3 { margin-top: 18px; }
}
@media (min-width: 768px) {
  .pit { grid-template-columns: repeat(2, 1fr); }
  .case--large { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .pit { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(290px, auto); }
}

/* ---------- L'accueil : galerie horizontale ---------- */
.accueil { padding-bottom: clamp(36px, 5vw, 70px); }
.accueil__entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.galerie__commandes { display: none; gap: 8px; }
.galerie__commandes button { width: 54px; height: 54px; border: 1.5px solid var(--trait); background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .25s, color .25s; }
.galerie__commandes button:hover { border-color: var(--orange); color: var(--orange); }
.galerie { --h: clamp(300px, 52vh, 560px); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gouttiere), (100% - 1240px) / 2); padding: clamp(36px, 4vw, 56px) max(var(--gouttiere), (100% - 1240px) / 2) 8px; scrollbar-width: none; cursor: grab; }
.galerie::-webkit-scrollbar { display: none; }
.galerie.est-tire { cursor: grabbing; scroll-snap-type: none; }
.galerie.est-tire img { pointer-events: none; }
.galerie__item { flex: none; scroll-snap-align: start; }
.galerie__item img { height: var(--h); width: auto; max-width: 86vw; aspect-ratio: 1; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.galerie__item--large img { aspect-ratio: 4 / 3; }
.galerie__item--etroite img { aspect-ratio: 2 / 3; }
@media (min-width: 768px) { .galerie__commandes { display: flex; } }

/* ---------- Nicolas Emery + Unicar ---------- */
.patron { background: var(--carbone); border-top: 1px solid var(--trait); }
.patron__grille { display: grid; gap: 36px; }
.patron__portrait { overflow: hidden; }
.patron__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 45%; filter: grayscale(1) contrast(1.06) brightness(.92); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.patron__portrait:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.02); }
.patron__role { margin-top: 18px; color: var(--orange); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.patron__texte > p:not(.patron__role) { margin-top: 18px; max-width: 44ch; color: var(--texte-2); font-size: 1.1rem; }
.patron__texte .bouton { margin-top: 32px; }
@media (min-width: 1024px) {
  .patron__grille { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 120px); align-items: end; }
  .patron__texte { padding-bottom: 12px; }
}
.unicar { display: grid; margin-top: clamp(64px, 8vw, 110px); background: var(--graphite); scroll-margin-top: calc(var(--entete) + 24px); }
.unicar__photo { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: brightness(.88); }
.unicar__texte { padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.unicar__texte img { height: 40px; width: auto; align-self: flex-start; }
.unicar__texte h3 { margin-top: 10px; font-stretch: 70%; font-weight: 850; text-transform: uppercase; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: .95; }
.unicar__texte p { color: var(--texte-2); max-width: 46ch; }
@media (min-width: 900px) { .unicar { grid-template-columns: 1fr 1fr; } .unicar__photo { aspect-ratio: auto; min-height: 380px; } }

/* ---------- Contact ---------- */
.contact__grille { display: grid; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.contact__form { background: var(--graphite); padding: clamp(22px, 4vw, 48px); }
.formulaire { display: grid; gap: 20px; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.champ label, .champ legend { font-weight: 700; font-stretch: 110%; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--texte-2); padding: 0; }
.facultatif { text-transform: none; letter-spacing: 0; font-weight: 400; font-stretch: 100%; color: var(--texte-3); margin-left: 4px; font-size: .78rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--texte);
  background: #141517; border: 1px solid #3B3E43; border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s; color-scheme: dark;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: #5A5E64; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.champ__erreur { color: var(--erreur); font-size: .86rem; }
.champ__erreur:empty { display: none; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.puce { position: relative; }
.puce input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.puce span { display: inline-block; padding: 10px 14px; border: 1px solid #3B3E43; font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; transition: background-color .2s, color .2s, border-color .2s; }
.puce:hover span { border-color: var(--orange); }
.puce input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--noir-plaque); }
.puce input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.formulaire__pied { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.formulaire__mention { color: var(--texte-3); font-size: .85rem; }
.formulaire__mention a { color: var(--texte-2); }
.formulaire__erreur { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid var(--erreur); color: var(--erreur); font-size: .95rem; }
.formulaire__erreur[hidden] { display: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.succes { padding: 40px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.succes[hidden] { display: none; }
.succes__drapeau { width: 72px; height: 48px; background: conic-gradient(var(--texte) 25%, var(--nuit) 0 50%, var(--texte) 0 75%, var(--nuit) 0) 0 0 / 24px 24px; border: 1px solid var(--texte); }
.succes h3 { font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: .9; }
.succes p { color: var(--texte-2); }
.succes .bouton { margin-top: 10px; }
@media (min-width: 640px) {
  .formulaire { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .champ--large, .formulaire__pied { grid-column: 1 / -1; }
  .formulaire__pied { flex-direction: row; align-items: center; justify-content: space-between; }
}

.contact__infos { display: grid; gap: 12px; align-content: start; scroll-margin-top: calc(var(--entete) + 16px); }
.tableau-bord, .coordonnees { background: var(--graphite); padding: clamp(22px, 3vw, 32px); }
.statut--grand { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; }
.statut--grand span:last-child { color: var(--texte-2); font-weight: 600; font-stretch: 85%; text-transform: none; font-size: 1rem; letter-spacing: 0; }
.horaires { margin-top: 18px; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.horaires div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--trait); }
.horaires dt { font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--texte-2); }
.horaires dd { color: var(--texte); font-size: .95rem; }
.horaires dd span { display: inline-block; margin-right: 12px; }
.horaires .aujourdhui dt, .horaires .aujourdhui dd { color: var(--orange); }
.coordonnees { display: grid; gap: 4px; }
.coordonnees address { color: var(--texte-2); margin-bottom: 8px; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { color: var(--orange); }
.coordonnees__tel { font-weight: 850; font-stretch: 70%; font-size: 2.1rem; line-height: 1.05; color: var(--orange); }
.carte { position: relative; min-height: 300px; background: var(--graphite); overflow: hidden; }
.carte__repli { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 24px 72px; text-align: center; color: var(--texte-2); font-size: .9rem; }
.carte__repli[hidden] { display: none; }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.9) brightness(.95); }
.carte__bouton { position: absolute; left: 14px; bottom: 14px; }
@media (min-width: 1024px) {
  .contact__grille { grid-template-columns: 7fr 5fr; }
  .carte { min-height: 280px; flex: 1; }
  .contact__infos { display: flex; flex-direction: column; }
}

/* ---------- Repère final : l'enseigne ---------- */
.repere-final img { width: 100%; height: clamp(200px, 30vw, 420px); object-fit: cover; object-position: 50% 52%; }
.repere-final p { padding: 18px 0 0; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); }

/* ---------- Pied de page ---------- */
.pied { padding: clamp(48px, 6vw, 80px) 0 calc(32px + env(safe-area-inset-bottom)); }
.pied__plaque { width: 100%; height: auto; }
.pied__grille { display: grid; gap: 28px; margin-top: clamp(36px, 5vw, 56px); }
.pied__titre { font-weight: 700; font-stretch: 110%; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--texte-3); margin-bottom: 10px; }
.pied p { color: var(--texte-2); }
.pied a { text-decoration: none; color: var(--texte); }
.pied a:hover { color: var(--orange); }
.pied__unicar { display: inline-flex; align-items: center; gap: 12px; align-self: start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-3) !important; }
.pied__unicar img { height: 30px; width: auto; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--trait); font-size: .85rem; }
.pied__bas p { color: var(--texte-3); }
.pied__bas a { margin-left: 16px; color: var(--texte-2); }
.pied__bas a:first-child { margin-left: 0; }
@media (min-width: 720px) { .pied__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pied__grille { grid-template-columns: 1fr 1fr 1fr auto; } }

/* ---------- Barre d'actions mobile ---------- */
.barre-mobile { position: fixed; inset: auto 0 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #0C0D0E; border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom); transform: translateY(0); transition: transform .4s var(--ease); }
.barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; text-decoration: none; font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .05em; font-size: .86rem; }
.barre-mobile a + a { border-left: 1px solid var(--trait); }
.barre-mobile__rdv { background: var(--orange); color: var(--noir-plaque); }
.barre-mobile.est-cachee { transform: translateY(100%); }
@media (min-width: 900px) { .barre-mobile { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } }


/* Photo entière sur fond flouté : aucune voiture n'est recadrée, quel que soit le format */
.flou { position: relative; overflow: hidden; isolation: isolate; }
.flou::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--src) center / cover; filter: blur(24px) brightness(.78) saturate(1.1); }
.flou > img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Fiche véhicule ---------- */
.dialogue { width: min(1200px, 100% - 48px); height: min(760px, 100dvh - 48px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--trait); border-radius: 0; background: var(--carbone); color: var(--texte); overflow: hidden; }
.dialogue::backdrop { background: rgb(8 8 9 / .78); }
.dialogue[open] { animation: dlg .5s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(24px); } }
.dialogue__fermer { position: absolute; top: 0; right: 0; z-index: 3; width: 56px; height: 56px; border: 0; background: var(--orange); color: var(--noir-plaque); cursor: pointer; display: grid; place-items: center; }
.dialogue__fermer .ic { width: 22px; height: 22px; }
.dialogue__inner { height: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.dialogue__galerie { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: #000; }
.stage { position: relative; min-height: 0; overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--src) center / cover; filter: blur(30px) brightness(.55) saturate(1.1); }
.dialogue__image { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.stage__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; background: var(--orange); color: var(--noir-plaque); display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.stage__nav:hover { background: var(--orange-vif); }
.stage__nav--prec { left: 0; }
.stage__nav--suiv { right: 0; }
.stage.est-seule .stage__nav { display: none; }
.stage__compteur { position: absolute; left: 0; bottom: 0; padding: 7px 14px; background: var(--nuit); font-weight: 800; font-stretch: 85%; letter-spacing: .06em; font-size: .85rem; font-variant-numeric: tabular-nums; }
.stage__compteur:empty { display: none; }
.dialogue__vignettes { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--nuit); scrollbar-width: thin; }
.dialogue__vignettes[hidden] { display: none; }
.dialogue__vignettes button { flex: none; width: 124px; height: 88px; padding: 0; border: 2px solid transparent; cursor: pointer; background: #111; opacity: .6; transition: opacity .2s, border-color .2s; }
.dialogue__vignettes button:hover { opacity: 1; }
.dialogue__vignettes button[aria-current="true"] { border-color: var(--orange); opacity: 1; }

.dialogue__infos { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.dialogue__marque { color: var(--orange); font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; display: flex; gap: 10px; align-items: center; }
.dialogue__infos h2 { margin-top: 10px; font-stretch: 62%; font-weight: 870; text-transform: uppercase; font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: .9; padding-right: 56px; }
.dialogue__prix { margin-top: 14px; font-weight: 850; font-stretch: 75%; font-size: 2rem; color: var(--orange); }
.dialogue__desc { margin-top: 10px; color: var(--texte-2); }
.dialogue__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 22px; }
.dialogue__specs div { padding: 8px 0; border-top: 1px solid var(--trait); }
.dialogue__specs dt { font-weight: 700; font-stretch: 110%; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--texte-3); }
.dialogue__specs dd { font-weight: 700; margin-top: 2px; }
.dialogue__equip { margin-top: 18px; }
.dialogue__equip h3 { font-weight: 700; font-stretch: 110%; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--texte-3); }
.dialogue__equip ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dialogue__equip li { border: 1px solid var(--trait); padding: 6px 10px; font-size: .88rem; }
.dialogue__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dialogue__actions .bouton { padding-inline: 1.1rem; }

@media (max-width: 899px) {
  .dialogue { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; margin: 0; }
  .dialogue__inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .dialogue__galerie { grid-template-rows: auto auto; }
  .stage { aspect-ratio: 4 / 3; }
  .dialogue__vignettes button { width: 96px; height: 68px; }
  .stage__nav { width: 44px; height: 44px; }
}

/* ---------- Pages légales ---------- */
.page-legale { padding: calc(var(--entete) + clamp(40px, 6vw, 80px)) 0 clamp(64px, 8vw, 120px); }
.page-legale__texte { max-width: 72ch; }
.page-legale h1 { font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 5rem); line-height: .92; margin-bottom: 12px; }
.page-legale h2 { margin-top: 40px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; color: var(--orange); }
.page-legale p, .page-legale li { margin-top: 12px; color: var(--texte-2); }
.page-legale ul { padding-left: 1.2em; }
.page-legale ul li { list-style: disc; margin-top: 6px; }
.page-legale a { color: var(--texte); text-underline-offset: 3px; }
.page-legale a:hover { color: var(--orange); }
.page-legale__maj { color: var(--texte-3); font-size: .9rem; }
.entete__retour { text-decoration: none; font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: .07em; font-size: .92rem; }
.entete__retour:hover { color: var(--orange); }

/* ---------- Occasions : mention discrète (véhicules d'exemple) ---------- */
.occasions__mention { margin-top: 14px; color: var(--texte-3); font-size: .72rem; opacity: .7; }
.occasions__mention[hidden] { display: none; }

/* ---------- Numéro mobile ---------- */
.coordonnees__tel--mobile { font-size: 1.6rem; }
.coordonnees__tel--mobile span { display: block; font-size: .72rem; font-weight: 700; font-stretch: 110%; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); margin-bottom: 2px; }
.menu-mobile__pied a { display: block; }

/* ---------- Crédit MIKAA.WEB (logo en texte) ---------- */
.pied__bas .credit { display: flex; align-items: center; gap: 10px; }
.pied__bas .mikaa { margin-left: 0; display: inline-flex; align-items: baseline; font-weight: 800; font-stretch: 100%; letter-spacing: .02em; font-size: .95rem; line-height: 1; color: var(--texte); text-decoration: none; }
.mikaa__point { display: inline-block; width: .34em; height: .34em; margin: 0 .2em; border-radius: 50%; background: #00FF88; color: transparent; overflow: hidden; transform: translateY(.02em); }
.pied__bas .mikaa:hover { color: #00FF88; }
