/* ============================================================
   assets/css/style.css
   Styles globaux SuperCar — Palette V3 (cyan/violet/vert menthe)
   ============================================================ */

/* ── Variables de couleurs ── */
:root {
    --c1: #00c8ff;          /* Cyan principal */
    --c2: #7c3aed;          /* Violet */
    --c3: #06ffa5;          /* Vert menthe */
    --bg: #0d1117;          /* Fond principal très sombre */
    --bg2: #131a24;         /* Fond secondaire (sections alternées) */
    --bg3: #1a2235;         /* Fond tertiaire (cards, inputs) */
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.5);
    --border: rgba(255,255,255,0.07);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ── Reset de base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════ */
.nav {
    background: transparent;
    height: 58px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Nav visible au scroll — ajouté par JS */
.nav.scrolled {
    background: rgba(13,17,23,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
}

/* Pages intérieures sans hero : nav redevient sombre */
.nav-solid {
    background: var(--bg) !important;
    position: sticky !important;
    top: 0 !important;
    border-bottom: 1px solid var(--border) !important;
}

.nav-logo {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
}

/* La partie colorée du logo "Car" */
.nav-logo span {
    color: var(--c1);
}

.nav-links {
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;              /* Carré avec coins légèrement arrondis */
    padding: 10px 28px;
}

.nav-links a {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* Petite ligne cyan sous le lien actif (comme sur la photo de référence) */
.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c1);
    border-radius: 2px;
}

/* Prénom de l'utilisateur connecté */
.nav-username {
    font-size: 12px;
    color: var(--c3);
    margin-right: 8px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bouton Se connecter */
.btn-login {
    font-size: 11px;
    padding: 7px 18px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
}

.btn-login:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* Bouton S'inscrire */
.btn-signup {
    font-size: 11px;
    padding: 7px 18px;
    border-radius: 3px;
    border: none;
    background: var(--c1);
    color: #0d1117;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.btn-signup:hover {
    opacity: 0.85;
}

/* ════════════════════════════════════════════
   BOUTONS RÉUTILISABLES
   ════════════════════════════════════════════ */

/* Bouton principal cyan plein */
.btn-primary {
    display: inline-block;
    background: var(--c1);
    color: #0d1117;
    font-size: 11px;
    font-weight: 500;
    padding: 12px 26px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

/* Bouton fantôme (contour blanc) */
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 11px;
    padding: 12px 26px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: border-color 0.2s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }

/* Bouton contour cyan */
.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--c1);
    font-size: 11px;
    padding: 9px 20px;
    border-radius: 20px;
    border: 1px solid rgba(0,200,255,0.35);
    cursor: pointer;
    letter-spacing: .5px;
    transition: border-color 0.2s;
}

.btn-outline:hover { border-color: var(--c1); }

/* ════════════════════════════════════════════
   HERO — Page d'accueil
   ════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px 60px;            /* padding normal, le nav flotte au-dessus */
    padding-top: 118px;                 /* 58px nav + 60px espace */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Overlay sombre sur la photo pour lisibilité */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13,17,23,0.85) 0%,        /* Très sombre à gauche (texte) */
        rgba(13,17,23,0.4)  60%,        /* Semi-transparent au centre */
        rgba(13,17,23,0.15) 100%        /* Presque transparent à droite (photo) */
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.hero-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--c3);
    margin-bottom: 18px;
}

.hero-title {
    font-size: 48px;
    font-weight: 500;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

/* Mot en dégradé dans le titre */
.hero-title .grad {
    background: linear-gradient(120deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Ligne décorative en bas du hero */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c1), var(--c2), transparent);
}

/* ════════════════════════════════════════════
   SECTION À PROPOS
   ════════════════════════════════════════════ */
.about-section {
    background: linear-gradient(160deg, var(--bg) 50%, var(--bg2));
    padding: 64px 40px;
    display: flex;
    gap: 52px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.about-left { flex: 1.2; }

.about-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
}

/* Grille des 4 stats */
.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-box {
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 20px 18px;
    border-top: 2px solid;           /* Couleur définie par les classes ci-dessous */
}

.stat-c1 { border-top-color: var(--c1); }
.stat-c2 { border-top-color: var(--c2); }
.stat-c3 { border-top-color: var(--c3); }
.stat-c4 { border-top-color: #a855f7; }

.stat-num {
    font-size: 30px;
    font-weight: 500;
    color: #fff;
}

.stat-lbl {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: .5px;
}

/* ════════════════════════════════════════════
   SECTIONS — En-têtes communs
   ════════════════════════════════════════════ */
.section-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--c1), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.section-title {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
}

.section-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: .5px;
}

/* ── Responsive: mobile nav/toggle ── */
/* Default: hide toggle on desktop unless explicitly shown by media query */
.nav-toggle { display: none; border: none; background: transparent; }

@media (max-width: 860px) {
    .nav { padding: 0 12px; height: 56px; }
    .nav-logo { font-size: 15px; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        color: var(--text);
        border: 1px solid rgba(255,255,255,0.06);
        width: 42px; height: 38px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 18px;
        z-index: 210;
    }

    .nav-links {
        position: absolute;
        top: 62px;
        right: 12px;
        background: rgba(13,17,23,0.98);
        backdrop-filter: blur(8px);
        padding: 12px 14px;
        border-radius: 8px;
        flex-direction: column;
        gap: 10px;
        display: none;
        width: calc(100% - 32px);
        max-width: 340px;
        z-index: 200;
    }
    .nav-links.open { display: flex; }

    .nav-auth { display: none; }
}

/* Small screens: ensure hero adapts */
@media (max-width: 520px) {
    .hero-title { font-size: 28px; }
    .hero-section { min-height: 420px; padding: 40px 16px 48px; }
    .about-section { flex-direction: column; gap: 24px; padding: 36px 16px; }
}

/* Ligne titre + bouton "voir tout" */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════
   SECTION ÉVÉNEMENTS — Page d'accueil
   Présentation visuelle avec grande image
   ════════════════════════════════════════════ */
.events-section {
    background: var(--bg2);
    padding: 64px 40px;
    border-bottom: 1px solid var(--border);
}

/* Titre centré */
.events-section .section-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 36px;
}

.events-section .section-head > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grille photo événement */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Carte événement avec photo en fond */
.ev-card {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
}

/* Photo en fond plein */
.ev-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.ev-card:hover .ev-card-img {
    transform: scale(1.05);
}

/* Overlay sombre en dégradé du bas */
.ev-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13,17,23,0.92) 0%,
        rgba(13,17,23,0.4)  50%,
        rgba(13,17,23,0.1)  100%
    );
    z-index: 1;
}

/* Ligne colorée en bas */
.ev-card:nth-child(1)::before { background: linear-gradient(90deg, transparent, var(--c1), transparent); }
.ev-card:nth-child(2)::before { background: linear-gradient(90deg, transparent, var(--c2), transparent); }
.ev-card:nth-child(3)::before { background: linear-gradient(90deg, transparent, var(--c3), transparent); }
.ev-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    z-index: 3;
}

/* Contenu texte par-dessus la photo */
.ev-card-top {
    display: none;     /* On n'utilise plus le top séparé */
}

.ev-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 18px 20px;
    z-index: 2;
}

/* Badge date positionné en haut à gauche */
.ev-date-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    min-width: 46px;
    z-index: 2;
}

.ev-day {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
}

.ev-month {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.ev-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.3;
}

.ev-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}

/* ════════════════════════════════════════════
   SECTION MARQUES — Photo 4 capots
   ════════════════════════════════════════════ */
.brands-section {
    background: var(--bg);
    padding: 64px 40px;
    border-bottom: 1px solid var(--border);
}

/* Conteneur de la photo + labels */
.brands-collage {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 28px;
}

/* La photo des 4 capots en pleine largeur */
.brands-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Labels des marques superposés sur la photo */
.brands-labels {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px 0 14px;
}

.brand-label {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer {
    background: var(--bg);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
}

.footer-logo span { color: var(--c1); }

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 10px;
    color: rgba(255,255,255,0.28);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.6); }

.footer-copy {
    font-size: 10px;
    color: rgba(255,255,255,0.15);
    letter-spacing: .5px;
}

/* ════════════════════════════════════════════
   PAGES AUTH (connexion / inscription)
   ════════════════════════════════════════════ */
.auth-main {
    min-height: calc(100vh - 58px);   /* Pleine hauteur moins la nav */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
}

.auth-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--c1);
    margin-bottom: 10px;
}

.auth-title {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 13px;
    color: var(--muted);
}

/* Formulaire auth */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Grille 2 colonnes dans les formulaires */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Champ requis (*) */
.req { color: var(--c1); }

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c1);         /* Bordure cyan au focus */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

/* Bouton de soumission auth */
.btn-auth-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 13px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 6px;
    transition: opacity 0.2s;
}

.btn-auth-submit:hover { opacity: 0.85; }

/* Lien en bas du formulaire auth */
.auth-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--muted);
}

.auth-footer-link a {
    color: var(--c1);
    text-decoration: underline;
}

/* Message d'erreur formulaire */
.form-error {
    background: rgba(239,68,68,0.1);
    border-left: 3px solid #ef4444;
    border-radius: 0 4px 4px 0;
    color: #fca5a5;
    padding: 10px 14px;
    font-size: 12px;
    margin-bottom: 8px;
}

/* ════════════════════════════════════════════
   PAGE ESSAI — Demande d'essai
   ════════════════════════════════════════════ */

/* Indicateur d'étapes */
.essai-steps {
    background: var(--bg2);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.step-done .step-num { background: var(--c3); color: #0d1117; }
.step-on   .step-num { background: var(--c1); color: #0d1117; }
.step-off  .step-num { background: rgba(255,255,255,0.07); color: var(--muted);
                        border: 1px solid var(--border); }

.step-done span, .step-on span { color: #fff; }
.step-off span                  { color: var(--muted); }

.step-sep {
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 40px;
}

/* Corps de la page essai */
.essai-body {
    display: flex;
    gap: 0;
    background: var(--bg);
    align-items: flex-start;
}

/* Colonne formulaire */
.essai-form-col {
    flex: 3;
    padding: 32px 36px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
}

/* Section dans le formulaire */
.essai-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.essai-section:last-of-type { border-bottom: none; margin-bottom: 20px; }

.essai-section-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: .3px;
}

.essai-section-sub {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.6;
}

/* Champ pré-rempli non modifiable */
.input-readonly {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Champ horaire (input time) */
.horaire-input { display:flex; flex-direction:column; gap:6px }
.horaire-input input[type="time"] {
    padding:10px 12px; border:1px solid var(--border); border-radius:6px; background:var(--bg3);
    font-size:14px; color:var(--text); width:160px;
}
.horaire-input small.muted { font-size:12px; color:var(--muted) }

/* Grille de sélection voiture */
.voiture-picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.voiture-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.voiture-pick input { display: none; }  /* Masquer le radio natif */

.voiture-pick img {
    width: 64px;
    height: 46px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg2);
}

.voiture-pick.selected {
    border-color: var(--c1);
    background: rgba(0,200,255,0.05);
}

.voiture-pick:hover { border-color: rgba(255,255,255,0.2); }

.vp-info { flex: 1; }

.vp-marque {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.vp-nom {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

/* Indicateur radio visuel (point coloré) */
.vp-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.voiture-pick.selected .vp-radio {
    background: var(--c1);
    border-color: var(--c1);
}

/* Colonne récap */
.essai-recap-col {
    flex: 1.2;
    padding: 32px 28px;
    background: var(--bg);
    position: sticky;
    top: 58px;
}

.recap-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

/* Ligne dégradée en haut de la carte récap */
.recap-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
}

.recap-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: .3px;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.recap-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.recap-key { color: var(--muted); white-space: nowrap; }
.recap-val { color: #fff; font-weight: 500; text-align: right; }

/* Note info essai */
.essai-info-box {
    background: rgba(0,200,255,0.05);
    border: 1px solid rgba(0,200,255,0.15);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

/* Responsive essai */
@media (max-width: 900px) {
    .essai-body       { flex-direction: column; }
    .essai-form-col   { padding: 20px; border-right: none; border-bottom: 1px solid var(--border); }
    .essai-recap-col  { padding: 20px; position: static; }
    .voiture-picks    { grid-template-columns: 1fr; }
    .horaire-input     { flex-direction: column; }
}
.page-banner {
    background: var(--bg);
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

/* Halo lumineux décoratif */
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 80% 50%,
        rgba(0,200,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.banner-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--c1), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.banner-title {
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    position: relative;
}

.banner-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
    position: relative;
}

/* ════════════════════════════════════════════
   MESSAGES UTILITAIRES
   ════════════════════════════════════════════ */

/* Aucune donnée */
.no-data {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 40px;
    font-size: 13px;
}

/* Message déconnexion */
.msg-deconnexion {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 10px;
}

/* ════════════════════════════════════════════
   POPUP / MODAL (inscription événement)
   ════════════════════════════════════════════ */
.modal-overlay {
    display: none;                      /* Caché par défaut */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

/* Quand visible (ajouté par JS) */
.modal-overlay.actif {
    display: flex;
}

.modal-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
}

/* Ligne colorée en haut de la modale */
.modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
}

.modal-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 22px;
}

/* Bouton fermer la modale */
.modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: #fff; }

/* ════════════════════════════════════════════
   PAGE VOITURES — Galerie + Sidebar
   ════════════════════════════════════════════ */
.voitures-body {
    display: flex;
    background: var(--bg);
}

.sidebar {
    width: 200px;
    min-width: 200px;
    background: var(--bg2);
    padding: 22px;
    border-right: 1px solid var(--border);
}

.sidebar-section { margin-bottom: 20px; }

.sidebar-title {
    font-size: 9px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Case à cocher dans la sidebar */
.chk {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.chk input[type="checkbox"] {
    accent-color: var(--c1);
    width: 13px;
    height: 13px;
    cursor: pointer;
}

.chk label {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    flex: 1;
}

.chk span {
    font-size: 10px;
    color: var(--muted);
}

/* Zone de grille voitures */
.grid-wrapper {
    flex: 1;
    padding: 22px 26px;
}

.grid-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.result-label {
    font-size: 12px;
    color: var(--muted);
}

/* Select tri — fond sombre forcé */
.sort-sel {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    padding: 6px 10px;
    color: #fff;
    outline: none;
    font-family: inherit;
    color-scheme: dark;         /* Clé principale : force le thème sombre du navigateur */
}

.sort-sel option,
select option {
    background: #1a2235;        /* Fond sombre dans la liste déroulante */
    color: #fff;
}

/* Grille 3 colonnes */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Carte voiture */
.car-card {
    background: var(--bg2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.car-card:hover { border-color: rgba(0,200,255,0.3); }

/* Image du véhicule */
.car-card-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    display: block;
    background: var(--bg3);      /* Fallback si image manquante */
}

/* Ligne colorée sous l'image (par marque) */
.car-card-bar {
    height: 2px;
}

.bar-rr  { background: linear-gradient(90deg, transparent, #c0a060, transparent); }
.bar-bug { background: linear-gradient(90deg, transparent, #cc2200, transparent); }
.bar-mas { background: linear-gradient(90deg, transparent, #3366cc, transparent); }
.bar-por { background: linear-gradient(90deg, transparent, #ccaa00, transparent); }

.car-card-body { padding: 14px 16px; }

.car-brand {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.car-model {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.car-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.car-tag {
    font-size: 9px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.55);
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.car-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.car-price {
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(90deg, var(--c1), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bouton détails */
.btn-detail {
    background: transparent;
    border: 1px solid rgba(0,200,255,0.3);
    color: var(--c1);
    font-size: 10px;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: .5px;
    transition: border-color 0.2s;
    display: inline-block;
}

.btn-detail:hover { border-color: var(--c1); }

/* Badge (Nouveau, Stock limité) */
.badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 9px;
    padding: 3px 9px;
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.badge-new  { background: var(--c1);  color: #0d1117; }
.badge-lim  { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
              border: 1px solid rgba(255,255,255,0.15); }

/* ════════════════════════════════════════════
   PAGE CONTACT
   ════════════════════════════════════════════ */
.contact-body {
    display: flex;
    gap: 0;
    background: var(--bg);
    min-height: 60vh;
}

/* Colonne formulaire */
.contact-form-col {
    flex: 1.3;
    padding: 40px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
}

/* Colonne infos + carte */
.contact-info-col {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Message succès */
.contact-succes {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(6,255,165,0.07);
    border: 1px solid rgba(6,255,165,0.2);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--c3);
    line-height: 1.6;
}

.succes-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c3);
    color: #0d1117;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Boutons sujet (radio visuels) */
.sujet-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.sujet-opt { cursor: pointer; }
.sujet-opt input { display: none; }

.sujet-opt span {
    display: block;
    padding: 7px 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    color: var(--muted);
    transition: all 0.2s;
    white-space: nowrap;
}

.sujet-opt input:checked + span {
    background: rgba(0,200,255,0.08);
    border-color: var(--c1);
    color: var(--c1);
}

.sujet-opt:hover span {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Infos de contact */
.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }

.ci-icon {
    font-size: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ci-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.ci-val {
    font-size: 13px;
    color: #fff;
    font-weight: 400;
}

/* Carte Google Maps */
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    flex: 1;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
}

/* Responsive contact */
@media (max-width: 900px) {
    .contact-body      { flex-direction: column; }
    .contact-form-col  { padding: 24px 20px; border-right: none; border-bottom: 1px solid var(--border); }
    .contact-info-col  { padding: 24px 20px; }
    .sujet-btns        { gap: 6px; }
}
.breadcrumb {
    padding: 14px 40px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--c1); }

.breadcrumb span:last-child { color: #fff; }

/* ════════════════════════════════════════════
   PAGE DÉTAIL VOITURE — styles complémentaires
   ════════════════════════════════════════════ */

/* Bouton réserver un essai (plus grand que btn-primary) */
.btn-essai {
    display: block;
    width: fit-content;
    font-size: 12px;
    padding: 14px 32px;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

/* Note connexion requise sous le bouton */
.detail-login-note {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Lien retour galerie */
.btn-retour {
    display: inline-block;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    transition: color 0.2s;
    margin-top: 4px;
}

.btn-retour:hover { color: var(--c1); }
.detail-section {
    padding: 48px 40px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    background: var(--bg);
}

.detail-img {
    flex: 1.2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 380px;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info { flex: 1; }

.detail-marque {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.detail-nom {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
}

.detail-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 24px;
}

.detail-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.spec-key { color: var(--muted); }
.spec-val { color: #fff; font-weight: 500; }

.spec-prix .spec-val {
    font-size: 18px;
    background: linear-gradient(90deg, var(--c1), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 8px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg2);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.page-btn:hover { background: var(--bg3); color: #fff; }

.page-btn.active {
    background: var(--c1);
    color: #0d1117;
    border-color: var(--c1);
    font-weight: 500;
}

/* ════════════════════════════════════════════
   PAGE ÉVÉNEMENTS — Liste verticale
   ════════════════════════════════════════════ */
.events-page-section {
    padding: 40px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Carte événement en ligne */
.ev-list-card {
    display: flex;
    align-items: stretch;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.ev-list-card:hover { border-color: rgba(0,200,255,0.25); }

/* Événement passé : on garde la lisibilité complète */
.ev-passe { opacity: 1; }

/* Colonne date */
.ev-list-date {
    min-width: 72px;
    background: var(--bg3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.ev-list-day {
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
}

.ev-list-month {
    font-size: 11px;
    color: var(--c1);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
}

.ev-list-year {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}

/* Image événement */
.ev-list-img {
    width: 160px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.ev-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ligne colorée en bas de l'image */
.ev-list-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; }
.ev-bar-0 { background: linear-gradient(90deg, transparent, var(--c1), transparent); }
.ev-bar-1 { background: linear-gradient(90deg, transparent, var(--c2), transparent); }
.ev-bar-2 { background: linear-gradient(90deg, transparent, var(--c3), transparent); }

/* Infos principales */
.ev-list-info {
    flex: 1;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

/* Badge type d'événement */
.ev-type-badge {
    display: inline-block;
    font-size: 9px;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    width: fit-content;
}

.ev-type-salon        { background: rgba(0,200,255,0.12); color: var(--c1); border: 1px solid rgba(0,200,255,0.2); }
.ev-type-lancement    { background: rgba(124,58,237,0.12); color: #a78bfa;  border: 1px solid rgba(124,58,237,0.2); }
.ev-type-portes-ouvertes { background: rgba(6,255,165,0.1); color: var(--c3); border: 1px solid rgba(6,255,165,0.2); }
.ev-type-promotion    { background: rgba(251,191,36,0.1); color: #fbbf24;  border: 1px solid rgba(251,191,36,0.2); }
.ev-type-vip          { background: rgba(244,63,94,0.1);  color: #fb7185;  border: 1px solid rgba(244,63,94,0.2); }

.ev-list-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.ev-list-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;    /* Limite à 2 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Méta infos (lieu, heure, places) */
.ev-list-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ev-meta-item {
    font-size: 11px;
    color: var(--muted);
}

/* Places urgentes (rouge) */
.ev-urgence { color: #f87171 !important; }

/* Colonne boutons */
.ev-list-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    border-left: 1px solid var(--border);
    min-width: 140px;
    align-items: center;
}

/* Bouton En savoir plus */
.btn-savoir {
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 3px;
    border: 1px solid var(--border);
    cursor: pointer;
    letter-spacing: .5px;
    width: 100%;
    transition: color 0.2s, border-color 0.2s;
}

.btn-savoir:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* Bouton S'inscrire */
.btn-inscrire {
    background: linear-gradient(90deg, var(--c1), var(--c2));
    color: #fff;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: .5px;
    width: 100%;
    transition: opacity 0.2s;
}

.btn-inscrire:hover { opacity: 0.85; }

/* Bouton désactivé (complet) */
.btn-complet {
    background: var(--bg3) !important;
    color: var(--muted) !important;
    cursor: not-allowed !important;
    opacity: .6;
}

/* Label événement passé */
.ev-passe-label {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    letter-spacing: .5px;
}

/* Responsive événements */
@media (max-width: 900px) {
    .ev-list-img  { display: none; }       /* On cache l'image sur mobile */
    .ev-list-date { min-width: 58px; }
    .events-page-section { padding: 20px; }
}
/* Groupe de boutons filtres (visibles d'un coup) */
.filter-btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    padding: 6px 14px;
    color: var(--muted);
    cursor: pointer;
    letter-spacing: .5px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.filter-btn.active {
    background: var(--c1);
    color: #0d1117;
    border-color: var(--c1);
    font-weight: 500;
}

.filter-bar {
    background: var(--bg2);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.filter-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.filter-select,
.filter-search {
    background: var(--bg3);          /* Fond sombre forcé */
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    padding: 7px 12px;
    color: #fff;
    outline: none;
    font-family: inherit;
    /* Forcer le fond sombre même dans le menu déroulant */
    color-scheme: dark;
}

/* Fix spécifique pour le <select> natif */
select.filter-select option {
    background: #1a2235;             /* Fond sombre dans la liste déroulante */
    color: #fff;
}

.filter-search { flex: 1; min-width: 180px; }
.filter-search::placeholder { color: var(--muted); }
.filter-select:focus,
.filter-search:focus { border-color: var(--c1); }

/* ════════════════════════════════════════════
   RESPONSIVE — Tablette (max 900px)
   ════════════════════════════════════════════ */
@media (max-width: 900px) {

    /* Nav : masquer les liens, garder logo + auth */
    .nav-links { display: none; }
    .nav { padding: 0 20px; }

    /* Hero */
    .hero-section { padding: 40px 20px; min-height: 480px; }
    .hero-title { font-size: 34px; }

    /* About : une colonne */
    .about-section { flex-direction: column; padding: 40px 20px; }
    .about-stats { grid-template-columns: 1fr 1fr; }

    /* Events : 1 colonne */
    .events-section, .brands-section { padding: 40px 20px; }
    .events-grid { grid-template-columns: 1fr; }

    /* Voitures : 1 colonne */
    .voitures-body { flex-direction: column; }
    .sidebar { width: 100%; min-width: unset; }
    .cars-grid { grid-template-columns: 1fr 1fr; }

    /* Détail voiture : une colonne */
    .detail-section { flex-direction: column; padding: 30px 20px; }

    /* Footer */
    .footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}

@media (max-width: 600px) {
    .cars-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 28px; }
    .form-row-2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   PAGES LÉGALES (mentions, CGU, confidentialité)
   ════════════════════════════════════════════ */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 52px 40px;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--c1);
    margin-bottom: 14px;
    letter-spacing: .3px;
}

.legal-page p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 10px;
}

.legal-page p:last-child { margin-bottom: 0; }

.legal-page strong {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-list li {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
}

/* Puce colorée devant chaque item */
.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c1);
}

@media (max-width: 900px) {
    .legal-page { padding: 32px 20px; }
}

/* ════════════════════════════════════════════
   NOUVELLES CLASSES — MODIFICATIONS 2025
   ════════════════════════════════════════════ */

/* ── À propos : texte seul sans stats ── */
.about-text-only {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-text-only .section-eyebrow { text-align: center; }
.about-text-only .section-title   { text-align: center; margin-left: auto; margin-right: auto; }
.about-text-only .about-text      { max-width: 600px; margin-left: auto; margin-right: auto; text-align: center; }

/* ── Accueil : cards événements simples (juste le nom) ── */
.ev-name-card {
    display: block;
    text-decoration: none;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}

.ev-name-card:hover {
    border-color: rgba(0,200,255,0.35);
    transform: translateY(-3px);
}

.ev-name-card-inner {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 130px;
    justify-content: space-between;
}

.ev-name-type {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c1);
    font-weight: 500;
}

.ev-name-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

.ev-name-date {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .3px;
}

/* ── Page voitures : sections par marque ── */
.marque-section {
    padding: 52px 40px 32px;
    border-bottom: 1px solid var(--border);
}

.marque-section:last-child {
    border-bottom: none;
}

.marque-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marque-header-left { flex: 1; }

.marque-nom {
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -.3px;
    margin-bottom: 4px;
}

.marque-slogan {
    font-size: 12px;
    color: var(--c1);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}

.marque-count {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .5px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
}

/* ── Page voitures : banner simplifié ── */
.page-banner .banner-title {
    font-size: clamp(24px, 3vw, 38px);
}

/* ── Page événements : grille simple (style photo jointe) ── */
.ev-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px 52px;
    max-width: 1200px;
    margin: 0 auto;
}

.ev-simple-card {
    background: var(--white, #fff);
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow .2s;
    color: #1a2235;
}

.ev-simple-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.ev-simple-card.ev-simple-passe {
    opacity: .75;
}

.ev-simple-top { flex: 1; }

.ev-simple-titre {
    font-size: 15px;
    font-weight: 600;
    color: #1a2235;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ev-simple-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

.ev-simple-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 12px;
    border-top: 1px solid #e2e6ea;
}

.ev-simple-meta-row {
    display: flex;
    gap: 6px;
    align-items: baseline;
    font-size: 13px;
}

.ev-meta-label {
    color: #94a3b8;
    min-width: 62px;
    font-weight: 500;
    font-size: 12px;
}

.ev-meta-value {
    color: #334155;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ev-urgence { color: #dc2626 !important; font-weight: 600; }

/* Badges passé / à venir */
.ev-badge-passe {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.ev-badge-avenir {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

/* Bouton S'inscrire — style bleu comme dans la photo */
.ev-simple-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s;
    font-family: inherit;
    letter-spacing: .3px;
}

.ev-simple-btn:hover {
    background: #1d4ed8;
}

.ev-simple-btn-complet {
    background: #94a3b8;
    cursor: not-allowed;
}

.ev-simple-btn-complet:hover {
    background: #94a3b8;
}

.ev-simple-passe-label {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    padding: 8px 0;
    font-style: italic;
}

/* ── Page événements : bannière simplifiée ── */
.events-page-section .page-banner {
    margin-bottom: 0;
}

/* ── Essai : select modèle ── */
#select-marque,
#select-modele {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

#select-marque option,
#select-modele option {
    background: #1a2235;
    color: #fff;
}

#select-modele option[style*="none"] {
    display: none;
}

/* ── Responsive nouveaux éléments ── */
@media (max-width: 900px) {
    .ev-simple-grid { grid-template-columns: 1fr 1fr; padding: 0 20px 40px; }
    .marque-section { padding: 36px 20px 24px; }
    .about-text-only { padding: 0 20px; }
}

@media (max-width: 600px) {
    .ev-simple-grid { grid-template-columns: 1fr; }
    .marque-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
