/* =========================================================================
   Garage des Fagnes - Landing occasions
   Charte : noir #0A0A0A dominant, rouge #E30613, blanc. Esthétique racing.
   ========================================================================= */

:root {
    --rouge:      #E30613;
    --rouge-fonce:#B0040F;
    --noir:       #0A0A0A;
    --charbon:    #1A1A1A;
    --beton:      #3A3A3A;
    --gris-doux:  #E5E5E5;
    --blanc:      #FFFFFF;
    --vert:       #22C55E;
    --jaune:      #FFC107;

    --radius:     12px;
    --radius-lg:  16px;
    --maxw:       1200px;

    --shadow-soft: 0 10px 30px rgba(0,0,0,.45);
    --shadow-red:  0 8px 24px rgba(227,6,19,.35);

    --f-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
    --f-body:    'Montserrat', system-ui, -apple-system, sans-serif;
    --f-serif:   'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    color: var(--blanc);
    background: var(--noir);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grain léger sur le fond noir (texture asphalte subtile) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---- Typographie titres --------------------------------------------------- */
.h-display {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    line-height: .95;
    letter-spacing: .5px;
}

/* ---- Boutons / CTA -------------------------------------------------------- */
.btn-tel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--rouge);
    color: var(--blanc);
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: .5px;
    padding: 14px 34px;
    border-radius: 999px;
    box-shadow: var(--shadow-red);
    transition: transform .15s ease, background .15s ease;
}
.btn-tel:hover, .btn-tel:focus-visible { background: var(--rouge-fonce); transform: translateY(-2px); }
.btn-tel svg { width: 26px; height: 26px; fill: var(--blanc); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--beton);
    color: var(--blanc);
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    transition: border-color .15s ease, color .15s ease;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--rouge); color: var(--rouge); }

:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

/* ---- Header / nav --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10,10,10,.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--charbon);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo {
    display: inline-flex;
    align-items: center;
}
.logo img {
    height: 46px;
    width: auto;
    display: block;
}
.header-tel {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--blanc);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header-tel svg { width: 20px; height: 20px; fill: var(--rouge); }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(120% 90% at 80% 0%, rgba(227,6,19,.18), transparent 55%),
        linear-gradient(160deg, var(--noir) 0%, var(--charbon) 100%);
    padding: clamp(64px, 12vh, 130px) 0 clamp(56px, 9vh, 100px);
    overflow: hidden;
}
/* Bande diagonale rouge signature (racing) */
.hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 55%;
    height: 180%;
    background: linear-gradient(180deg, var(--rouge), var(--rouge-fonce));
    transform: rotate(18deg);
    opacity: .10;
    pointer-events: none;
}
/* Hero avec photo du garage en fond (voile sombre homogène pour le texte) */
.hero.has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--noir);
}
/* Voile global : la photo reste visible partout mais tamisée, plus dense à
   gauche (zone de texte) et en bas (fusion avec la section suivante). */
.hero.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.74) 40%, rgba(8,8,8,.58) 72%, rgba(8,8,8,.62) 100%),
        linear-gradient(180deg, rgba(8,8,8,.20) 0%, rgba(8,8,8,.32) 50%, rgba(10,10,10,.90) 100%);
    pointer-events: none;
}
/* Sur une vraie photo, on masque la bande rouge diagonale (artefact visuel) */
.hero.has-bg::after { display: none; }
.hero-eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rouge);
    font-size: 1rem;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    max-width: 16ch;
    text-shadow: 0 0 40px rgba(255,255,255,.12);
}
.hero h1 .accent { color: var(--rouge); }
.hero p.lead {
    margin: 22px 0 34px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--gris-doux);
    max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---- Réassurance : 3 cartes flottantes sur le bas du hero ---------------- */
.reassure { padding: 0 0 26px; }
.reassure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -34px; /* les cartes chevauchent le bas du hero */
}
.reassure-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(180deg, #1d1d1d, #141414);
    border: 1px solid #282828;
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: 0 16px 34px rgba(0,0,0,.4);
    transition: transform .2s cubic-bezier(.2,.7,.3,1), border-color .2s;
}
.reassure-item:hover { transform: translateY(-3px); border-color: rgba(227,6,19,.55); }
.check {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--rouge), var(--rouge-fonce));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(227,6,19,.35);
    transform: skewX(-6deg); /* plaque inclinée, esprit racing */
}
.check svg { width: 24px; height: 24px; fill: var(--blanc); transform: skewX(6deg); }
.reassure-item strong {
    display: block;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.08rem;
    letter-spacing: .5px;
    line-height: 1.1;
    margin-bottom: 4px;
}
.reassure-item div span { display: block; color: #a8a8a8; font-size: .88rem; }

/* ---- Section titres ------------------------------------------------------- */
.section { padding: clamp(56px, 9vh, 90px) 0; }
.section-head { margin-bottom: 36px; }
.section-head .eyebrow {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rouge);
    font-size: .95rem;
}
.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-top: 6px;
}

/* ---- Grille véhicules ----------------------------------------------------- */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}
/* Carrousel « Elles pourraient aussi vous plaire » (fiche véhicule) :
   défilement horizontal natif avec accroche, cartes identiques à l'accueil.
   Un bout de la carte suivante reste visible pour inviter à faire défiler. */
.similar-section { padding-top: 0; }
.similar-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 3.15);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 6px 4px 30px;
    scrollbar-width: thin;
}
.similar-track .car-card { scroll-snap-align: start; }
@media (max-width: 900px) {
    .similar-track { grid-auto-columns: calc((100% - 30px) / 2.15); }
}
@media (max-width: 640px) {
    .similar-track { grid-auto-columns: 80%; }
}
.car-card {
    position: relative;
    background: linear-gradient(180deg, var(--charbon), #141414);
    border: 1px solid #232323;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
/* Toute la carte est cliquable : le lien du titre s'étend sur la carte entière */
.car-title a { color: inherit; }
.stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}
.car-card:hover {
    transform: translateY(-4px);
    border-color: var(--rouge);
    box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 4px 18px rgba(227,6,19,.16);
}
.car-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: radial-gradient(120% 80% at 50% 20%, #2a2a2a, #101010);
    overflow: hidden;
}
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.car-card:hover .car-media img { transform: scale(1.05); }
.car-card.is-sold:hover .car-media img { transform: none; }
/* Bandeau diagonal "OCCASION À SAISIR !" pour les mises en avant */
.ribbon {
    position: absolute;
    z-index: 2; /* reste au-dessus de la photo zoomée au survol */
    top: 16px; left: -46px;
    transform: rotate(-27deg);
    background: var(--rouge);
    color: var(--blanc);
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .8rem;
    padding: 6px 56px;
    box-shadow: var(--shadow-red);
}
/* Pastille prix */
.price-tag {
    position: absolute;
    right: 14px; bottom: 14px;
    background: var(--rouge);
    color: var(--blanc);
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 800;
    font-size: 1.35rem;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow-red);
}
.price-tag.ondemande { font-size: 1rem; font-weight: 700; letter-spacing: .3px; }

/* Badge marketing libre (sticker sur la photo) */
.promo-badge {
    position: absolute; top: 14px; right: 14px; z-index: 1;
    background: var(--blanc); color: var(--rouge);
    font-family: var(--f-display); font-style: italic; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px; font-size: .82rem;
    padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow-soft);
    max-width: calc(100% - 28px);
}
.promo-badge.static { position: static; box-shadow: none; font-size: .9rem; }

/* Carte d'une voiture vendue : non cliquable, pas d'effet de survol trompeur */
.car-card.is-sold:hover { transform: none; border-color: #232323; box-shadow: none; }
.car-sold-overlay {
    position: absolute; inset: 0;
    background: rgba(8,8,8,.68);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--rouge);
    text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-title {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 1.05;
}
.car-specs {
    color: var(--gris-doux);
    font-size: .78rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    align-items: center;
}
.car-specs span { white-space: nowrap; }
.car-specs span + span::before { content: '·'; margin: 0 4px; opacity: .55; }
.car-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.badge {
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 5px 11px;
    border-radius: 999px;
}
.badge-dispo { background: var(--rouge); color: var(--blanc); }
.badge-garantie { background: rgba(34,197,94,.15); color: var(--vert); border: 1px solid rgba(34,197,94,.4); }
.badge-vendu { background: var(--beton); color: var(--gris-doux); }
.car-cta { margin-top: 14px; }
.car-cta > span {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 2px solid var(--beton);
    border-radius: 999px;
    padding: 10px;
    font-weight: 700;
    transition: border-color .15s, color .15s, background .15s;
}
.car-card:hover .car-cta > span,
.car-card:focus-within .car-cta > span {
    border-color: var(--rouge); background: var(--rouge); color: var(--blanc);
}

/* Etat vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--beton);
    border-radius: var(--radius-lg);
    color: var(--gris-doux);
}

/* ---- Avis clients (cartes blanches sur fond noir) ------------------------- */
.testimonial-band { padding: clamp(56px, 9vh, 90px) 0; }
.stars { color: var(--jaune); letter-spacing: 3px; }
.reviews-score { margin-top: 12px; color: var(--gris-doux); }
.reviews-score strong { color: var(--blanc); }

/* Étoiles à remplissage fractionné (note 4,7/5 → 94 %) */
.stars-wrap {
    position: relative; display: inline-block;
    letter-spacing: 3px; font-size: 1.1rem; margin-right: 6px;
    vertical-align: -1px;
}
.stars-base { color: #4a4a4a; }
.stars-fill {
    position: absolute; left: 0; top: 0;
    overflow: hidden; white-space: nowrap;
    color: var(--jaune);
}

.reviews-grid { columns: 3; column-gap: 18px; max-width: 1080px; margin: 0 auto; }
.review-card {
    break-inside: avoid;
    background: var(--blanc);
    color: var(--noir);
    border-radius: var(--radius-lg);
    padding: 24px 26px 20px;
    margin: 0 0 18px;
    box-shadow: var(--shadow-soft);
}
.review-card .stars { font-size: .92rem; }
.review-card blockquote {
    font-family: var(--f-serif);
    font-size: 1.02rem;
    line-height: 1.55;
    margin: 10px 0 14px;
}
.review-card figcaption {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    border-top: 1px solid #eee; padding-top: 12px;
}
.review-card figcaption strong { font-weight: 700; font-size: .92rem; }
.review-card figcaption span { color: #9a9a9a; font-size: .78rem; }

@media (max-width: 980px) { .reviews-grid { columns: 2; } }
@media (max-width: 640px) { .reviews-grid { columns: 1; } }

/* ---- Final CTA ------------------------------------------------------------ */
.final-cta {
    text-align: center;
    background: linear-gradient(160deg, var(--rouge), var(--rouge-fonce));
    padding: clamp(50px, 8vh, 84px) 0;
}
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.final-cta p { color: rgba(255,255,255,.9); margin: 14px auto 28px; max-width: 40ch; }
.final-cta .btn-tel { background: var(--noir); box-shadow: var(--shadow-soft); }
.final-cta .btn-tel:hover { background: #000; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
    position: relative;
    background: var(--noir);
    border-top: 1px solid var(--charbon);
    padding: 50px 0 30px;
    font-size: .9rem;
    color: var(--gris-doux);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    margin-bottom: 30px;
}
.footer-grid h3 {
    font-family: var(--f-display);
    font-style: italic;
    text-transform: uppercase;
    color: var(--blanc);
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: .5px;
}
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
.footer-grid a:hover { color: var(--rouge); }
.hours-row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.hours-row span:first-child { color: var(--blanc); }
.footer-bottom {
    border-top: 1px solid var(--charbon);
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: .82rem;
    color: #8a8a8a;
}
.footer-bottom .partner { color: var(--gris-doux); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
    .reassure-grid { grid-template-columns: 1fr; gap: 14px; margin-top: -22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .header-tel span { display: none; }
    .logo img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   Fiche véhicule
   ========================================================================= */
.back-link { display: inline-block; margin-bottom: 24px; color: var(--gris-doux); font-weight: 600; }
.back-link:hover { color: var(--rouge); }

.vehicle-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: radial-gradient(120% 80% at 50% 20%, #2a2a2a, #101010);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #232323;
    touch-action: pan-y; /* le swipe horizontal est géré par le JS */
}
/* Compteur « 3 / 16 » (créé en JS quand il y a plusieurs photos) */
.gallery-count {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    background: rgba(10,10,10,.72);
    color: var(--blanc);
    font-size: .8rem; font-weight: 600; letter-spacing: .5px;
    padding: 4px 12px; border-radius: 999px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.thumb {
    padding: 0; border: 2px solid transparent; border-radius: 8px;
    overflow: hidden; cursor: pointer; background: #101010; aspect-ratio: 4/3;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--rouge); }
.thumb:hover { border-color: var(--beton); }

/* Galerie repliée : 7 vignettes + tuile « +X » qui déplie le reste */
.gallery-thumbs.collapsed .thumb.extra { display: none; }
.thumb-more { position: relative; }
.thumb-more img { filter: brightness(.32); transform: none !important; }
.thumb-more span {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--blanc);
    font-family: var(--f-display); font-style: italic; font-weight: 800;
    font-size: 1.35rem; letter-spacing: 1px;
}
.thumb-more:hover { border-color: var(--rouge); }

.vehicle-name { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.vehicle-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 26px; }
.price-tag.static {
    position: static;
    font-size: 1.8rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #232323;
    border: 1px solid #232323;
    border-radius: var(--radius);
    overflow: hidden;
}
.spec-cell { background: var(--charbon); padding: 14px 16px; }
.spec-cell--wide { grid-column: 1 / -1; }
.spec-cell dt { color: #9a9a9a; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.spec-cell dd { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.25rem; margin-top: 3px; color: var(--blanc); }

.vehicle-desc { margin-top: 28px; }
.vehicle-desc h2 {
    font-family: var(--f-display); font-style: italic; text-transform: uppercase;
    font-size: 1.4rem; margin-bottom: 10px;
}
.vehicle-desc p { color: var(--gris-doux); }

/* Description longue : repliée avec fondu + bouton « Voir plus » (JS) */
.desc-text { position: relative; }
.desc-text.clamped { max-height: 190px; overflow: hidden; }
.desc-text.clamped::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
    background: linear-gradient(to bottom, transparent, var(--noir));
    pointer-events: none;
}
.desc-toggle {
    background: none; border: none; padding: 0; margin-top: 10px;
    color: var(--rouge); font-family: inherit; font-weight: 700; font-size: .95rem;
    cursor: pointer;
}
.desc-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }

.vehicle-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--charbon);
}
.cta-note { color: var(--gris-doux); margin-bottom: 14px; }

@media (max-width: 860px) {
    .vehicle-layout { grid-template-columns: 1fr; gap: 26px; }
    .spec-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Fil d'ariane --------------------------------------------------------- */
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-bottom: 24px; font-size: .85rem; color: #6a6a6a;
}
.breadcrumb a { color: var(--gris-doux); transition: color .15s; }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb [aria-current] { color: #9a9a9a; }

/* ---- Specs clés (chips sous le titre de la fiche) ------------------------- */
.vehicle-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.vehicle-chips li {
    font-family: var(--f-display); font-style: italic; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; font-size: .95rem;
    background: var(--charbon); border: 1px solid #2c2c2c; color: var(--blanc);
    padding: 6px 14px; border-radius: 999px;
}

/* ---- Réassurance fiche (près du CTA d'appel) ----------------------------- */
.vehicle-trust { list-style: none; margin: 18px 0 0; display: grid; gap: 9px; }
.vehicle-trust li { position: relative; padding-left: 27px; color: var(--gris-doux); font-size: .92rem; }
.vehicle-trust li::before {
    content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23E30613'/%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z' fill='white'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- Bouton d'agrandissement galerie + lightbox -------------------------- */
.zoomable { cursor: zoom-in; }
.gallery-zoom {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 44px; height: 44px; border: none; border-radius: 50%;
    background: rgba(10,10,10,.7); cursor: pointer;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
    transition: background .15s;
}
.gallery-zoom:hover { background: var(--rouge); }
.gallery-zoom svg { width: 22px; height: 22px; fill: var(--blanc); }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 24px;
    touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 16px; right: 20px;
    width: 48px; height: 48px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.12); color: var(--blanc); font-size: 2rem; line-height: 1;
    cursor: pointer; transition: background .15s;
}
.lightbox-close:hover { background: var(--rouge); }

/* ---- Barre d'appel fixe (mobile) ----------------------------------------- */
.mobile-call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    display: none; align-items: center; justify-content: center; gap: 10px;
    background: var(--rouge); color: var(--blanc);
    font-family: var(--f-display); font-style: italic; font-weight: 700;
    font-size: 1.15rem; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); text-align: center;
    box-shadow: 0 -6px 20px rgba(0,0,0,.45);
}
.mobile-call-bar svg { width: 22px; height: 22px; fill: var(--blanc); flex: 0 0 auto; }
@media (max-width: 700px) {
    .mobile-call-bar { display: flex; }
    body { padding-bottom: 66px; }
}

/* =========================================================================
   Formulaires publics : reprise + liste d'attente
   ========================================================================= */
.section-head.center { text-align: center; }
.section-intro { color: var(--gris-doux); max-width: 62ch; margin-top: 10px; }
.section-head.center .section-intro { margin-left: auto; margin-right: auto; }
.section-intro a { color: var(--rouge); font-weight: 700; }
.wrap.narrow { max-width: 680px; }
.form-section.alt { background: var(--charbon); border-top: 1px solid #222; border-bottom: 1px solid #222; }

/* Pot de miel anti-spam (invisible) */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-flash { border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; font-weight: 600; }
.form-flash.ok { background: rgba(34,197,94,.12); color: var(--vert); border: 1px solid rgba(34,197,94,.4); }
.form-flash.error { background: rgba(227,6,19,.12); color: #ff8a92; border: 1px solid rgba(227,6,19,.5); }

.lead-form { max-width: 820px; margin: 0 auto; }
.lead-form .steps-nav { justify-content: center; }
.lead-form .form-submit-row { justify-content: center; }
.form-section .form-flash { max-width: 820px; margin-left: auto; margin-right: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label, .file-field { display: block; font-size: .9rem; font-weight: 600; color: var(--gris-doux); }
.lead-form label.full { margin-top: 16px; }
.req { color: var(--rouge); }
.lead-form input, .lead-form select, .lead-form textarea {
    width: 100%; margin-top: 6px; padding: 12px 14px;
    background: #111; border: 1px solid #2c2c2c; border-radius: 10px;
    color: var(--blanc); font-family: inherit; font-size: 1rem;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--rouge); outline: none; }
.lead-form select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
    padding-right: 40px; cursor: pointer;
}
.lead-form textarea { resize: vertical; }

.uploads { border: 1px solid #262626; border-radius: 12px; padding: 18px; margin-top: 22px; background: rgba(0,0,0,.22); }
.uploads legend { font-family: var(--f-display); font-style: italic; text-transform: uppercase; color: var(--rouge); padding: 0 8px; letter-spacing: .5px; }
.uploads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.file-field input[type="file"] {
    margin-top: 6px; width: 100%; padding: 8px; cursor: pointer;
    background: #111; border: 1px solid #2c2c2c; border-radius: 10px; color: var(--gris-doux); font-size: .9rem;
}
.file-field input[type="file"]::file-selector-button {
    font-family: inherit; font-weight: 700; font-size: .82rem;
    background: var(--rouge); color: #fff; border: none; padding: 8px 14px; border-radius: 7px; margin-right: 12px; cursor: pointer;
    transition: background .15s;
}
.file-field input[type="file"]::file-selector-button:hover { background: var(--rouge-fonce); }

.form-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.btn-submit {
    background: var(--rouge); color: #fff; border: none; cursor: pointer;
    font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    font-size: 1.25rem; padding: 14px 34px; border-radius: 999px; box-shadow: var(--shadow-red);
    transition: background .15s, transform .15s;
}
.btn-submit:hover { background: var(--rouge-fonce); transform: translateY(-2px); }
.form-legal { color: #8a8a8a; font-size: .8rem; max-width: 44ch; }
.form-legal a { color: #a8a8a8; text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--rouge); }
.form-legal.center { margin: 14px auto 0; text-align: center; max-width: 52ch; }

/* Case de consentement (opt-in marketing du formulaire de rachat) */
.lead-form .consent-line {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 16px; font-size: .88rem; font-weight: 400; color: var(--gris-doux);
    cursor: pointer;
}
.lead-form .consent-line input { width: auto; margin-top: 3px; accent-color: var(--rouge); }
.lead-form .consent-line em { font-style: normal; color: #8a8a8a; }

.waitlist-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.waitlist-form input {
    flex: 1 1 220px; min-width: 0; padding: 14px 18px;
    background: #111; border: 1px solid #2c2c2c; border-radius: 999px; color: var(--blanc); font-family: inherit; font-size: 1rem;
}
.waitlist-form input:focus { border-color: var(--rouge); outline: none; }
.waitlist-form button {
    flex: 0 0 auto; background: var(--rouge); color: #fff; border: none; cursor: pointer;
    font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    padding: 14px 30px; border-radius: 999px; font-size: 1.1rem; transition: background .15s;
}
.waitlist-form button:hover { background: var(--rouge-fonce); }

/* ---- Formulaire de reprise en étapes (progressive disclosure) ------------- */
/* Sans JS : toutes les étapes sont visibles, les boutons next/prev cachés.
   Avec JS (.js-steps) : une étape à la fois + barre de progression. */
.steps-nav { display: none; counter-reset: step; margin: 0 0 26px; padding: 0; gap: 8px; flex-wrap: wrap; align-items: center; }
.js-steps .steps-nav { display: flex; }
.steps-nav li {
    list-style: none; counter-increment: step;
    display: inline-flex; align-items: center; gap: 9px;
    color: #8a8a8a; font-size: .85rem; font-weight: 600;
}
.steps-nav li::before {
    content: counter(step);
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--beton);
    font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: .95rem;
}
.steps-nav li:not(:last-child)::after { content: ''; width: 28px; height: 2px; background: #2c2c2c; margin-left: 8px; }
.steps-nav li.current { color: var(--blanc); }
.steps-nav li.current::before { border-color: var(--rouge); color: var(--rouge); }
.steps-nav li.done { color: var(--gris-doux); }
.steps-nav li.done::before { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); content: '✓'; }

.js-steps .form-step { display: none; }
.js-steps .form-step.active { display: block; }

.step-next, .step-prev { display: none; }
.js-steps .step-next, .js-steps .step-prev { display: inline-flex; }
.lead-form button.btn-ghost { background: none; cursor: pointer; font-family: inherit; font-size: 1rem; }

@media (max-width: 640px) {
    .form-grid, .uploads-grid { grid-template-columns: 1fr; }
    /* Stepper sur UNE ligne : seule l'étape active garde son libellé */
    .steps-nav { flex-wrap: nowrap; }
    .steps-nav li { flex: 0 0 auto; }
    .steps-nav li:not(.current) span { display: none; }
    .steps-nav li:not(:last-child)::after { width: 16px; margin-left: 6px; }
}

/* =========================================================================
   Polish design — précision, micro-interactions, détails de marque
   ========================================================================= */

/* Sélection de texte & scrollbar aux couleurs de la marque */
::selection { background: var(--rouge); color: var(--blanc); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 6px; border: 3px solid var(--noir); }
::-webkit-scrollbar-thumb:hover { background: var(--rouge); }

/* Les ancres ne passent plus sous le header sticky */
#stock, #reprise, #waitlist { scroll-margin-top: 84px; }

/* Header : ligne de vitesse rouge + navigation + hover téléphone */
.site-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rouge) 0%, rgba(227,6,19,.25) 45%, transparent 75%);
    pointer-events: none;
}
.header-tel { transition: color .15s; }
.header-tel:hover, .header-tel:focus-visible { color: var(--rouge); }
.main-nav { display: flex; gap: 26px; margin: 0 auto; padding: 0 24px; }
.main-nav a {
    position: relative;
    font-weight: 600; font-size: .92rem; color: var(--gris-doux);
    padding: 4px 0; transition: color .15s;
}
.main-nav a::after {
    content: '';
    position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; background: var(--rouge);
    transition: right .22s cubic-bezier(.2,.7,.3,1);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blanc); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
@media (max-width: 900px) { .main-nav { display: none; } }

/* Entrée du hero : révélation en cascade (coupée si reduced motion) */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.hero .hero-eyebrow { animation: riseIn .55s cubic-bezier(.2,.7,.3,1) both; }
.hero h1            { animation: riseIn .55s .08s cubic-bezier(.2,.7,.3,1) both; }
.hero p.lead        { animation: riseIn .55s .16s cubic-bezier(.2,.7,.3,1) both; }
.hero .hero-actions { animation: riseIn .55s .24s cubic-bezier(.2,.7,.3,1) both; }
.hero h1 .accent { text-shadow: 0 0 34px rgba(227,6,19,.5); }

/* Tampon « VENDUE » (au lieu du texte plat) */
.car-sold-overlay b {
    font-weight: 800;
    border: 3px solid var(--rouge);
    border-radius: 10px;
    padding: 6px 24px;
    transform: rotate(-7deg);
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
    background: rgba(10,10,10,.35);
}

/* Flèche de carte qui glisse au survol */
.car-cta > span > span { transition: transform .2s cubic-bezier(.2,.7,.3,1); }
.car-card:hover .car-cta > span > span { transform: translateX(5px); }

/* Galerie fiche : fondu au changement de photo + zoom des miniatures */
.gallery-main img { transition: opacity .18s ease; }
.thumb img { transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.thumb:hover img { transform: scale(1.08); }

/* Champs de formulaire : transitions + anneau de focus + hover */
.lead-form input, .lead-form select, .lead-form textarea,
.waitlist-form input {
    transition: border-color .15s, box-shadow .15s;
}
.lead-form input:hover:not(:focus), .lead-form select:hover:not(:focus),
.lead-form textarea:hover:not(:focus), .waitlist-form input:hover:not(:focus) {
    border-color: #3f3f3f;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus,
.waitlist-form input:focus {
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px rgba(227,6,19,.16);
    outline: none;
}

/* Hint public (utilisé dans le bloc uploads) */
.form-section .hint { font-size: .83rem; color: #8f8f8f; margin-top: 8px; }

/* Transition entre les étapes du formulaire */
@keyframes stepIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
.js-steps .form-step.active { animation: stepIn .32s ease both; }

/* Boutons : état actif (pression) */
.btn-tel:active, .btn-submit:active, .waitlist-form button:active { transform: translateY(0) scale(.97); }

/* Bande liste d'attente : halo rouge discret */
.form-section.alt {
    background:
        radial-gradient(55% 130% at 50% 0%, rgba(227,6,19,.10), transparent 60%),
        var(--charbon);
}

/* CTA final : liseré damier (clin d'œil drapeau à damier) */
.final-cta { position: relative; }
.final-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 14px;
    background: repeating-conic-gradient(rgba(255,255,255,.9) 0% 25%, transparent 0% 50%) 0 0 / 28px 28px;
    opacity: .12;
    pointer-events: none;
}

/* Icône téléphone de la barre mobile : sonnerie périodique */
@keyframes ringShake {
    0%, 12%, 100% { transform: none; }
    2% { transform: rotate(-14deg); }
    5% { transform: rotate(11deg); }
    8% { transform: rotate(-8deg); }
    10% { transform: rotate(5deg); }
}
.mobile-call-bar svg { animation: ringShake 4.5s ease-in-out 2s infinite; }

/* ---- Page mentions légales ------------------------------------------------ */
.legal-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 30px; }
.legal-page h2 {
    font-family: var(--f-display); font-style: italic; text-transform: uppercase;
    font-size: 1.25rem; letter-spacing: .5px; margin: 30px 0 10px; color: var(--blanc);
}
.legal-page p { color: var(--gris-doux); font-size: .95rem; margin-bottom: 10px; }
.legal-page a { color: var(--blanc); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--rouge); }
.legal-page .legal-back { margin-top: 36px; }
.legal-page .legal-back a { text-decoration: none; }
.footer-bottom a:hover { color: var(--rouge); }

/* Horaires : le jour actuel ressort */
.hours-row.today span:first-child { color: var(--rouge); font-weight: 700; }
.hours-row.today span:last-child { color: var(--blanc); font-weight: 600; }

/* ---- Bandeau de consentement cookies (pixel Meta) ------------------------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
    max-width: 600px; margin: 0 auto;
    background: var(--charbon); border: 1px solid #2c2c2c; border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,.55);
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: var(--gris-doux); font-size: .85rem; margin: 0; flex: 1 1 280px; }
.cookie-banner a { color: var(--blanc); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie {
    background: var(--rouge); border: none; color: var(--blanc);
    font-family: inherit; font-weight: 700; font-size: .85rem;
    padding: 10px 22px; border-radius: 999px; cursor: pointer;
    transition: background .15s;
}
.btn-cookie:hover { background: var(--rouge-fonce); }
.btn-cookie.ghost { background: none; border: 2px solid var(--beton); color: var(--gris-doux); }
.btn-cookie.ghost:hover { border-color: #666; color: var(--blanc); background: none; }
@media (max-width: 700px) {
    /* au-dessus de la barre d'appel fixe */
    .cookie-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Révélation au scroll (activée en JS ; invisible seulement si html.js) */
html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1);
}
html.js .reveal.in { opacity: 1; transform: none; }
