/* Variables avec des couleurs plus vives */
:root {
    --primary-color: #E30613;
    --primary-gradient: linear-gradient(135deg, rgba(227, 6, 19, 0.4), rgba(255, 50, 50, 0.9), rgba(227, 6, 19, 0.4));
    --laser-gradient: linear-gradient(
        60deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    --bg-dark: rgba(0, 0, 0, 0.85);
    --text-light: #ffffff;
    --card-shadow: 0 10px 40px rgba(227, 6, 19, 0.2);
    --neon-glow: 0 0 20px rgba(227, 6, 19, 0.4);
    --hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container principal résultats : même style que le bloc de sélection (.vehicle-details) */
.results-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 24px;
    position: relative;
    overflow: hidden;

    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Fond + grille intégrés en multi-couches (évite les "seams"/calques visibles) */
    background-color: #000000;
    background-image:
        linear-gradient(
            160deg,
            rgba(227, 6, 19, 0.14) 0%,
            rgba(0, 0, 0, 1) 45%,
            rgba(0, 0, 0, 1) 100%
        ),
        linear-gradient(0deg, rgba(227, 6, 19, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 6, 19, 0.14) 1px, transparent 1px);
    background-size: cover, 34px 34px, 34px 34px;
    background-position: 0 0, 0 0, 0 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    /* Évite l'effet "calque" visible sur certains écrans */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Ancien calque de grille (désactivé pour éviter une séparation nette) */
.results-container::before {
    content: none;
}

.results-container > * {
    position: relative;
    z-index: 1;
}

/* Titre H1 de la page résultat — style élégant type HUD / tech */
.result-page-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1.5rem 0;
    padding: 1rem 0 1rem 1.25rem;
    line-height: 1.4;
    word-wrap: break-word;
    letter-spacing: 0.04em;
    position: relative;
    border-left: 3px solid var(--primary-color);
    background: linear-gradient(90deg, rgba(227, 6, 19, 0.08) 0%, transparent 35%);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.06);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.result-page-title .stage-part {
    display: inline-block;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), rgba(227, 6, 19, 0.85));
    padding: 0.2em 0.55em 0.25em;
    margin-right: 0.35em;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.9em;
    vertical-align: baseline;
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
/* Mobile : descendre le titre pour éviter le chevauchement avec le bouton Retour (fixe) */
@media screen and (max-width: 768px) {
    .result-page-title {
        margin-top: 3.25rem;
    }
}

@media screen and (min-width: 769px) {
    .result-page-title {
        font-size: 1.35rem;
        padding: 1.15rem 0 1.15rem 1.5rem;
        margin-bottom: 1.75rem;
        letter-spacing: 0.045em;
    }
    .result-page-title .stage-part {
        padding: 0.22em 0.6em 0.28em;
        font-size: 0.92em;
    }
}

/* Paragraphe d'intro sous le titre — présentation élégante type tech / HUD */
.result-page-intro {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
    padding: 1rem 1.1rem 1rem 1.35rem;
    letter-spacing: 0.025em;
    max-width: 52em;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(227, 6, 19, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.result-page-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), rgba(227, 6, 19, 0.4));
    border-radius: 0 2px 2px 0;
}
@media screen and (min-width: 769px) {
    .result-page-intro {
        font-size: 0.98rem;
        margin-bottom: 1.75rem;
        padding: 1.1rem 1.25rem 1.1rem 1.5rem;
        letter-spacing: 0.03em;
    }
}

/* Boutons en fin de section résultat : Dyno, Options de reprog., Échappement */
.result-section-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.result-cta-btn {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.85), rgba(227, 6, 19, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 10px rgba(227, 6, 19, 0.25);
}
.result-cta-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), rgba(227, 6, 19, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(227, 6, 19, 0.4);
}
.result-section-ctas-energy {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.result-ctas-energy-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.result-ctas-energy-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.result-cta-btn-energy {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.result-cta-btn-energy:hover {
    color: #fff;
    background: rgba(227, 6, 19, 0.2);
    border-color: rgba(227, 6, 19, 0.5);
    box-shadow: 0 2px 12px rgba(227, 6, 19, 0.2);
}

@media screen and (max-width: 768px) {
    .result-section-ctas {
        flex-direction: column;
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
    .result-cta-btn {
        text-align: center;
        padding: 0.7rem 1rem;
    }
    .result-section-ctas-energy {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .result-ctas-energy-label {
        font-size: 0.85rem;
    }
    .result-ctas-energy-btns {
        width: 100%;
    }
    .result-cta-btn-energy {
        display: block;
        text-align: center;
        width: 100%;
        padding: 0.6rem 1rem;
    }
}

/* Réduire l'espace vide autour du tableau et du graphique sur la page résultats */
.results-container .selection-page {
    padding: 10px 12px 8px 12px;
    gap: 12px;
}

/* Titres avec animation */
.vehicle-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.engine-type {
    font-size: 1.5rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Grille d'en-tête (logos + titre + motorisation) */
.results-header-grid {
    margin-bottom: 2rem;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.95)
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.results-body-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    /* plus de fond ici : on laisse le dégradé du container */
}

/* Désactiver le dégradé de l'ENVELOPPE locale (la grille qui contient
   Stage 1 / Stage 2 + texte + grilles) sans toucher la grille principale.
   Fond semi-transparent pour laisser transparaître la grille et éviter une séparation nette. */
.results-container > .selection-grid {
    display: flex;
    flex-direction: column;
    padding: 12px 14px 8px 14px;
    gap: 0;
    background: rgba(0, 0, 0, 0.82);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media screen and (max-width: 768px) {
    .results-header-grid {
        padding: 16px 12px;
    }
}

/* Sélecteur de stage amélioré */
.stage-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.stage-btn {
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--hover-transition);
    backdrop-filter: blur(8px);
}

.stage-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.stage-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

/* Tableau principal : wrapper avec logo en filigrane */
.results-table {
    width: 100%;
    margin: 2rem 0;
    position: relative !important;
    overflow: hidden !important;

    border-radius: 12px;
    padding: 0; /* le padding est géré par header/rows */

    /* Fond simple et sombre, sans effet néon */
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.results-table:hover {
    /* Légère mise en avant uniquement */
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

/* Logo en filigrane centré dans la partie basse du tableau (inchangé) */
.results-table::before {
    content: '' !important;
    position: absolute !important;
    top: auto !important;
    bottom: 22% !important;
    left: 50% !important;
    width: 80% !important;
    height: 100px !important;
    background-image: url('../images/Logo-H.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transform: translateX(-50%) !important;
    opacity: 0.05 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Nouveau tableau moderne : grille de métriques */
.results-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Titre du tableau : marque + modèle + version + motorisation + logo */
.results-table-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}
.results-table-title-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 50px);
}
.results-table-logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.metrics-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.metrics-header-col {
    text-align: center;
}

.metric-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 0.75rem;
    align-items: center;
}

/* Espacement vertical entre les blocs PUISSANCE et COUPLE du tableau */
.metric-row[data-metric="power"] {
    margin-bottom: 1.75rem;
}

/* Trait fin entre PUISSANCE et COUPLE dans le tableau */
.metric-row[data-metric="torque"] {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 0.9rem;
}

.metric-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.metric-value {
    font-size: 0.98rem;
    font-weight: 500;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value.origin {
    color: rgba(255, 255, 255, 0.8);
}

.metric-value.stage {
    /* Encadré rouge sans fond plein */
    background: rgba(0, 0, 0, 0.75);
    border-color: #e30613;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Effet laser / miroir rouge qui balaye les valeurs Stage 1 */
.metric-value.stage::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(227, 6, 19, 0.2) 35%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(227, 6, 19, 0.2) 65%,
        transparent 100%
    );
    opacity: 0.7;
    pointer-events: none;
    transform: translateX(0);
    animation: stageLaser 3s linear infinite;
}

@keyframes stageLaser {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(75%);
    }
}

.metric-value.diff {
    background: #111111;
    border-color: #2c2c2c;
    color: #4ade80;
}

/* Libellés de colonne à côté des valeurs (utilisés sur mobile) */
.metric-col-label {
    display: none;
}

@media screen and (max-width: 768px) {
    .metrics-header {
        display: none;
    }
    .metric-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    /* Trait rouge fin entre le titre et le bloc - PUISSANCE - (mobile) */
    .results-table-title-row {
        border-bottom: 1px solid rgba(227, 6, 19, 0.6);
        padding-bottom: 0.6rem;
        margin-bottom: 0.9rem;
    }
    /* Titres du tableau sur mobile : - PUISSANCE - et - COUPLE - */
    .metric-row[data-metric="power"] .metric-label {
        font-size: 0;
    }
    .metric-row[data-metric="power"] .metric-label::before {
        content: "- PUISSANCE -";
        font-size: 0.95rem;
    }
    .metric-row[data-metric="torque"] .metric-label {
        font-size: 0;
    }
    .metric-row[data-metric="torque"] .metric-label::before {
        content: "- COUPLE -";
        font-size: 0.95rem;
    }
    .metric-col-label {
        display: inline;
        margin-right: 0.5rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Graphique moderne : barres horizontales CSS (contenu uniquement, la grille est .graph-chart-box) */
.graph-chart-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ajustements spécifiques aux grilles du tableau et du graphique */
.results-grid-table {
    margin-top: 1.5rem;
    /* Même style que les cartes "sélectionnées" (voir screenshot) */
    background: linear-gradient(
        145deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.9)
    );
    border: 1px solid rgba(227, 6, 19, 0.35);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Bloc graphique : une seule grille avec effets + logo, hauteur au contenu */
.graph-chart-box {
    margin-top: 0.75rem;
    width: 100%;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 14px 20px 14px;
    box-sizing: border-box;
    background: linear-gradient(
        145deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.9)
    );
    border: 1px solid rgba(227, 6, 19, 0.35);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Logo en fond (filigrane) */
.graph-chart-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    background-image: url('../images/Logo-H.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Halo rouge flouté */
.graph-chart-box::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 0 0, rgba(227, 6, 19, 0.35), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

/* Halo rouge pour le tableau (la grille graph a le sien sur .graph-chart-box::after) */
.results-grid-table::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 0 0, rgba(227, 6, 19, 0.35), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: screen;
}

.results-grid-table::after {
    content: none;
}

.performance-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.performance-row:last-child {
    margin-bottom: 0;
}

/* Espacement vertical entre PUISSANCE et COUPLE dans le graphique */
.performance-row[data-metric="power"] {
    margin-bottom: 1.75rem;
}

/* Trait fin entre PUISSANCE et COUPLE dans le graphique */
.performance-row[data-metric="torque"] {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 0.9rem;
}

.performance-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.performance-bars {
    position: relative;
    width: 100%;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    overflow: hidden;
}

.performance-bar {
    position: absolute;
    left: 4px;
    border-radius: 999px;
    max-width: calc(100% - 8px);
    width: 0%;
    height: 6px;
    transition: width 2s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.performance-bar.origin {
    top: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(148, 163, 184, 0.45));
}

.performance-bar.stage1 {
    top: 18px;
    background: linear-gradient(90deg, #e30613, #ff3b30);
    box-shadow: 0 0 14px rgba(227, 6, 19, 0.5);
}

.performance-bar.stage2 {
    top: 30px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 1));
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.65);
}

.performance-values {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.performance-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.performance-pill.origin-pill {
    color: rgba(255, 255, 255, 0.8);
}

.performance-pill.stage-pill {
    border-color: #e30613;
    color: #ffe4e6;
    box-shadow: 0 0 10px rgba(227, 6, 19, 0.4);
}

.performance-pill.stage1-pill {
    border-color: #e30613;
    color: #ffe4e6;
    box-shadow: 0 0 10px rgba(227, 6, 19, 0.4);
}

.performance-pill.stage2-pill {
    border-color: rgba(255, 255, 255, 0.9);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.performance-pill .pill-label {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.performance-value {
    font-variant-numeric: tabular-nums;
}

/* Compteur de différence % Origine → Stage 1 (à droite de Stage 1, comme sur la photo) */
.performance-diff-pct {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e30613;
    text-shadow: 0 0 12px rgba(227, 6, 19, 0.6);
    letter-spacing: 0.02em;
    margin-left: 0.25rem;
}

/* Compteur de différence % Origine → Stage 2 */
.performance-diff-pct-stage2 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes laser {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* Améliorer l'effet avec un glow */
.results-table .table-header {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.8), rgba(227, 6, 19, 0.9));
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(227, 6, 19, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 
            0 0 25px rgba(227, 6, 19, 0.4),
            inset 0 0 20px rgba(227, 6, 19, 0.3);
    }
    to {
        box-shadow: 
            0 0 40px rgba(227, 6, 19, 0.6),
            inset 0 0 30px rgba(227, 6, 19, 0.5);
    }
}

/* Style des barres avec effet laser */
.chart-bar {
    position: relative;
    background: linear-gradient(
        90deg,
        rgba(227, 6, 19, 0.8) 0%,
        rgba(227, 6, 19, 1) 40%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(227, 6, 19, 1) 60%,
        rgba(227, 6, 19, 0.8) 100%
    );
    background-size: 150% 100%;
    animation: barLaser 1.5s linear infinite;
    border-radius: 4px;
    height: 30px;
    overflow: hidden;
}

/* Animation du laser */
@keyframes barLaser {
    from {
        background-position: 150% 0;
    }
    to {
        background-position: -50% 0;
    }
}

/* Effet de brillance supplémentaire */
.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Responsive Design amélioré */
@media screen and (max-width: 768px) {
    /* Style flottant pour le tableau de résultats */
    .results-table {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
        border-radius: 15px !important;
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* Ajuster l'en-tête du tableau */
    .results-table .table-header {
        border-radius: 15px 15px 0 0 !important;
        background: linear-gradient(135deg, rgba(227, 6, 19, 0.8), rgba(227, 6, 19, 0.9)) !important;
    }

    /* Ajuster les lignes du tableau */
    .results-table .table-row {
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .results-table .table-row:last-child {
        border-radius: 0 0 15px 15px !important;
    }

    /* Style du breadcrumb */
    .selection-breadcrumb {
        margin: 0 !important;
        padding: 2px 15px !important;
    }

    /* Style amélioré du bouton retour - ne pas le mettre en absolute pour éviter le chevauchement avec le breadcrumb */
    .vehicle-details-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }
    .vehicle-details-header .back-button {
        order: 0;
        position: relative !important;
        align-self: flex-start !important;
        margin: 0 !important;
        padding: 6px 14px 6px 10px !important;
        background: linear-gradient(135deg, rgba(227, 6, 19, 0.8), rgba(227, 6, 19, 0.9)) !important;
        border: none !important;
        border-radius: 5px !important;
        z-index: 2 !important;
    }
    .vehicle-details-header .breadcrumb-slot {
        order: 1;
        min-width: 0 !important;
        padding-right: 0 !important;
    }
    .back-button {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        z-index: 10 !important;
        padding: 6px 14px 6px 10px !important;
        background: linear-gradient(135deg, rgba(227, 6, 19, 0.8), rgba(227, 6, 19, 0.9)) !important;
        border: none !important;
        border-radius: 5px !important;
    }

    .back-button::before {
        content: '←';
        margin-right: 6px;
        font-size: 1.1em;
        display: inline-block;
        vertical-align: middle;
    }

    .back-button:active {
        transform: scale(0.95) !important;
    }

    /* Réduire la flèche du bouton */
    .back-button::before {
        content: '←';
        margin-right: 5px;
        font-size: 1.1em;
    }

    /* Réduire spécifiquement l'espace entre le breadcrumb et le bouton */
    /* Version mobile : pas de logo dans le titre du tableau, texte sur toute la largeur */
    .results-table-logo {
        display: none;
    }

    .results-table-title-text {
        max-width: 100%;
        white-space: normal;
    }

    .vehicle-details {
        margin-top: -5px !important;
        padding-top: 0.5rem !important; /* plus besoin de 60px car le bouton est dans le flux */
    }

    /* Garder l'espacement d'origine pour le titre */
    .vehicle-title {
        padding-top: 35px !important; /* Espace pour le bouton */
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .engine-type {
        text-align: center !important;
        width: 100% !important;
        margin: 10px 0 !important;
    }

    /* Adapter légèrement le container sur mobile en gardant son style */
    .results-container {
        width: 100vw;
        margin: 0;
        padding: 20px 12px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Optimisation de la grille de résultats */
    .results-table {
        width: 100vw;
        margin: 0;
        border-radius: 0;
        padding: 0;
        background: var(--bg-dark);
    }

    /* En-tête du tableau optimisé */
    .results-table .table-header {
        display: grid;
        grid-template-columns: 1.5fr 1.2fr 1.2fr 1.5fr; /* Plus d'espace pour les colonnes */
        padding: 20px 10px;
        font-size: 1rem;
        text-align: center;
    }

    /* Lignes du tableau optimisées */
    .results-table .table-row {
        display: grid;
        grid-template-columns: 1.5fr 1.2fr 1.2fr 1.5fr;
        padding: 20px 10px;
        font-size: 1rem;
        text-align: center;
    }

    /* Optimisation du graphique */
    .graph-chart-box {
        padding: 14px 18px 14px;
    }

    /* Optimisation des titres et contenus */
    .vehicle-title {
        font-size: 1.8rem;
        padding: 20px 10px;
        margin: 0;
    }

    .engine-type {
        font-size: 1.3rem;
        padding: 10px;
        margin: 0;
    }

    .stage-selector {
        padding: 20px 10px;
        margin: 0;
        gap: 20px;
    }

    /* Optimisation des boutons */
    .stage-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Optimisation de la liste des avantages */
    .advantages-list {
        width: 100vw;
        padding: 20px;
        margin: 0;
        background: var(--bg-dark);
    }

    .advantage-item {
        display: flex;
        align-items: flex-start;
        padding: 15px 10px;
        margin: 10px 0;
        font-size: 0.9rem;
        line-height: 1.4;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border-left: 3px solid var(--primary-color);
        opacity: 1;
        transform: none;
        animation: none;
    }

    .advantage-item::before {
        content: '✔️';
        display: inline-block;
        margin-right: 10px;
        color: var(--primary-color);
        font-size: 1.1rem;
        transform: scale(1.2);
    }

    /* Ajustement des onglets */
    .vehicle-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .tab-button {
        width: 100%;
        min-height: 44px; /* Hauteur minimale pour une meilleure accessibilité */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Ajustement spécifique pour les longs textes */
    .tab-button[data-type="agricultural"] {
        font-size: 0.85rem;
        line-height: 1.2;
        white-space: normal;
    }

    /* Ciblage plus spécifique du breadcrumb dans la page résultats */
    .vehicle-details .selection-breadcrumb,
    .results-container .selection-breadcrumb,
    .selection-breadcrumb {
        background-color: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 10px !important;
    }

    /* S'assurer que le texte reste visible */
    .selection-breadcrumb .breadcrumb-item {
        color: var(--text-light);
        font-size: 0.85rem;
        line-height: 1.4;
        z-index: 1;
        position: relative;
    }

    .selection-breadcrumb .breadcrumb-separator {
        color: var(--primary-color);
        z-index: 1;
        position: relative;
    }

    /* Rendre invisible uniquement le cadre de la section détails */
    .vehicle-details {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    /* Style du breadcrumb restauré */
    .selection-breadcrumb {
        background: var(--bg-dark) !important;
        border-radius: 8px !important;
        padding: 5px 15px !important;
        margin-bottom: 1px !important;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
        line-height: 1.4;
        color: var(--text-light);
    }

    .breadcrumb-separator {
        color: var(--primary-color);
        margin: 0 5px;
    }

    /* Ajuster la position du bouton retour */
    .back-button {
        margin-bottom: 1px;
        margin-top: 0;
        padding: 5px 15px;
    }

    /* Réduire l'espace entre les éléments */
    .vehicle-title {
        margin-top: 2px;
    }

    /* Centrer le texte de la sélection */
    .selection-breadcrumb {
        text-align: center !important;
        justify-content: center !important;
    }

    .breadcrumb-item {
        text-align: center !important;
    }

    /* Centrer le titre et le type de moteur */
    .vehicle-title,
    .engine-type {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    /* Ajuster le bouton retour sans affecter le centrage */
    .back-button {
        float: right !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* Assurer que le conteneur ne perturbe pas le centrage */
    .results-container {
        text-align: center !important;
    }

    /* Ajuster le bouton retour dans la page de sélection : pas de position absolute pour éviter le chevauchement */
    .vehicle-details .vehicle-details-header {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .vehicle-details .back-button {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        align-self: flex-start !important;
        z-index: 10 !important;
        padding: 6px 14px 6px 10px !important;
        background: linear-gradient(135deg, rgba(227, 6, 19, 0.8), rgba(227, 6, 19, 0.9)) !important;
        border: none !important;
        border-radius: 5px !important;
        margin: 0 !important;
    }

    /* Ajuster l'espacement de la grille de marque sélectionnée */
    .vehicle-details .selection-steps {
        padding-top: 50px !important; /* Espace pour le bouton retour */
    }

    /* Assurer que le contenu ne chevauche pas le bouton */
    .vehicle-details .step-content {
        position: relative !important;
        z-index: 1 !important;
    }

    /* Maintenir le style du bouton */
    .vehicle-details .back-button::before {
        content: '←';
        margin-right: 6px;
        font-size: 1.1em;
        display: inline-block;
        vertical-align: middle;
    }

    /* Grille des marques en 3 colonnes */
    .brands-grid.active {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    /* Ajustement des items de marque */
    .brands-grid.active .brand-item {
        width: 100% !important;
        aspect-ratio: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
    }

    /* Ajustement des logos */
    .brands-grid.active .brand-logo {
        width: auto !important;
        height: auto !important;
        max-width: 80% !important;
        max-height: 60px !important;
        object-fit: contain !important;
    }

    /* Ajustement du nom de la marque */
    .brands-grid.active .brand-name {
        font-size: 0.8rem !important;
        margin-top: 8px !important;
        text-align: center !important;
    }

    /* S'assurer que la page de sélection s'affiche correctement */
    .vehicle-details {
        display: block !important;
        width: 100% !important;
    }

    /* Réinitialiser les styles de grille pour la page de sélection */
    .vehicle-details .selection-steps {
        display: block !important;
        padding-top: 50px !important;
    }

    /* Ajustement des colonnes pour mobile */
    .selection-steps {
        width: 100%;
        padding: 10px;
    }

    /* Ajustement des colonnes */
    .step-content {
        display: grid;
        grid-template-columns: 1fr; /* Une seule colonne en mobile */
        gap: 10px;
        width: 100%;
    }

    /* Style des items de sélection : carte comme sur PC */
    .selection-item {
        width: 100%;
        padding: 15px;
        margin: 5px 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 10px;
        min-height: 60px;
        background: linear-gradient(
            145deg,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.9)
        );
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
        color: #ffffff;
        transition: all 0.25s ease;
    }

    .selection-item:hover {
        transform: translateY(-3px);
        border-color: var(--primary-color);
        box-shadow: 0 0 20px rgba(227, 6, 19, 0.2);
    }

    /* Ajustement du texte */
    .selection-item span {
        width: 100%;
        text-align: left;
        padding: 0 10px;
        word-break: break-word; /* Pour éviter le débordement du texte */
    }

    /* Style pour les informations de motorisation */
    .motorisation-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .motorisation-info span {
        width: 100%;
        padding: 8px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 4px;
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 375px) {
    .results-table .table-header,
    .results-table .table-row {
        font-size: 0.8rem;
        padding: 10px 3px;
    }

    .results-table .diff {
        font-size: 0.8rem;
        padding: 6px 2px;
    }
}

/* Optimisation des animations */
@media (prefers-reduced-motion: reduce) {
    .results-table .table-header::before,
    .results-table .table-header::after,
    .results-table .diff::before {
        animation: none;
    }
}

/* Utilisation de will-change pour les animations importantes */
.results-table .table-header {
    will-change: transform;
}

/* Style du breadcrumb */
.selection-breadcrumb {
    display: flex;
    flex-wrap: wrap; /* Permet le retour à la ligne */
    gap: 10px;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-dark);
    border-radius: 8px;
    margin-bottom: 20px;
}

.breadcrumb-item {
    font-size: 0.9rem;
    color: var(--text-light);
    word-break: break-word; /* Permet la césure des mots */
    max-width: 100%; /* Assure que l'item ne dépasse pas son conteneur */
    overflow-wrap: break-word; /* Gère les longs mots */
    hyphens: auto; /* Ajoute des tirets si nécessaire */
}

.breadcrumb-separator {
    color: var(--primary-color);
    margin: 0 5px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .selection-breadcrumb {
        padding: 5px 15px;
        font-size: 0.85rem;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Liste des avantages – design élégant techno */
.advantages-list {
    width: calc(100% - 40px) !important;
    margin: 24px auto !important;
    padding: 24px !important;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(8, 8, 8, 0.98) 100%) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(227, 6, 19, 0.2) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    position: relative !important;
    overflow: hidden !important;
}

.advantages-list::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.4), transparent) !important;
    opacity: 0.8 !important;
}

.advantage-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 0 10px 0 !important;
    padding: 14px 16px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-left: 3px solid transparent !important;
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.advantage-item:last-child {
    margin-bottom: 0 !important;
}

.advantage-item::before {
    display: none !important;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-left-color: rgba(227, 6, 19, 0.9) !important;
    box-shadow:
        0 0 20px rgba(227, 6, 19, 0.12),
        inset 0 0 24px rgba(227, 6, 19, 0.03) !important;
    transform: translateX(4px) !important;
}

.advantage-num {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: rgba(227, 6, 19, 0.95) !important;
    background: rgba(227, 6, 19, 0.12) !important;
    border: 1px solid rgba(227, 6, 19, 0.35) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 12px rgba(227, 6, 19, 0.15) !important;
}

.advantage-item:hover .advantage-num {
    background: rgba(227, 6, 19, 0.2) !important;
    box-shadow: 0 0 16px rgba(227, 6, 19, 0.25) !important;
}

.advantage-text {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
    font-weight: 400 !important;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .advantages-list {
        width: calc(100% - 20px) !important;
        margin: 16px auto !important;
        padding: 16px !important;
    }

    .advantage-item {
        padding: 12px 14px !important;
        gap: 12px !important;
    }

    .advantage-num {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .advantage-text {
        font-size: 0.88rem !important;
    }
}

/* Style du bouton retour */
.back-button {
    position: relative !important;
    padding: 4px 12px 4px 8px !important;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.8), rgba(227, 6, 19, 0.9)) !important;
    border: none !important;
    border-radius: 5px !important;
}

.back-button::before {
    content: '←';
    margin-right: 6px;
    font-size: 1.1em;
    display: inline-block;
    vertical-align: middle;
}

.reserve-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3) !important;
}

.reserve-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4) !important;
}

.reserve-btn:active {
    transform: translateY(0) !important;
}

.pricing-grid {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin: 30px auto !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    max-width: 600px !important;
}

.price-tag {
    color: #E30613 !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.price-info {
    color: white !important;
    margin-bottom: 20px !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.stage-label {
    margin-right: 5px !important;
}

.price-amount {
    color: white !important;
    margin-right: 5px !important;
}

.price-tax {
    font-size: 1.5rem !important;
    color: white !important;
}

.vehicle-slideshow {
    width: 100% !important;
    margin: 0 auto !important;
}

.vehicle-slideshow .slideshow-title {
    color: white !important;
    text-align: center !important;
    font-size: 1.2rem !important;
    margin: 0 0 15px 0 !important;
}

.slideshow-wrapper {
    position: relative !important;
}

/* Desktop : barre de nav en overlay sur la photo */
.slideshow-nav-row {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 14px !important;
    pointer-events: none !important;
}
.slideshow-nav-row .slide-nav {
    pointer-events: auto !important;
}

.slideshow-container {
    position: relative !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Boutons de navigation du slideshow – noir transparent + lueur rouge */
.slide-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(227, 6, 19, 0.6) !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 1.4rem !important;
    box-shadow:
        0 0 12px rgba(227, 6, 19, 0.4),
        0 0 20px rgba(227, 6, 19, 0.2),
        inset 0 0 20px rgba(227, 6, 19, 0.08) !important;
    backdrop-filter: blur(4px) !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.65) !important;
    border-color: rgba(227, 6, 19, 0.9) !important;
    box-shadow:
        0 0 16px rgba(227, 6, 19, 0.6),
        0 0 28px rgba(227, 6, 19, 0.35),
        inset 0 0 24px rgba(227, 6, 19, 0.12) !important;
    transform: translateY(-50%) translateY(-1px) scale(1.05) !important;
}

.slideshow-wrapper .slide-nav.prev { left: 14px !important; right: auto !important; }
.slideshow-wrapper .slide-nav.next { right: 14px !important; left: auto !important; }

.slide-dots {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 10px !important;
}

.dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    cursor: pointer !important;
}

.dot.active {
    background: white !important;
}

@media screen and (max-width: 768px) {
    .slide-dots {
        display: none !important;
    }

    /* Mobile : flèches en bas de la photo, rectangle fin large, espacements réduits */
    .vehicle-slideshow .slideshow-title {
        margin-bottom: 6px !important;
    }

    .slideshow-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }

    .slideshow-container {
        margin: 8px 0 0 !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        aspect-ratio: 16/9 !important;
        height: auto !important;
    }

    .slideshow-nav-row {
        position: static !important;
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 0 0 20px !important;
        margin: -12px 0 0 0 !important;
    }

    .slideshow-nav-row .slide-nav {
        position: static !important;
        transform: none !important;
        flex: 1 1 auto !important;
        max-width: 160px !important;
        height: 27px !important;
        width: auto !important;
        min-width: 80px !important;
        border-radius: 4px !important;
        font-size: 1.2rem !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(227, 6, 19, 0.6) !important;
        box-shadow:
            0 0 12px rgba(227, 6, 19, 0.4),
            0 0 20px rgba(227, 6, 19, 0.2),
            inset 0 0 20px rgba(227, 6, 19, 0.08) !important;
        color: #fff !important;
    }

    .slideshow-nav-row .slide-nav:hover {
        transform: none !important;
        background: rgba(0, 0, 0, 0.65) !important;
        border-color: rgba(227, 6, 19, 0.9) !important;
        box-shadow:
            0 0 16px rgba(227, 6, 19, 0.6),
            0 0 28px rgba(227, 6, 19, 0.35),
            inset 0 0 24px rgba(227, 6, 19, 0.12) !important;
    }

    .slideshow-nav-row .slide-nav.prev {
        left: auto !important;
        right: auto !important;
    }

    .slideshow-nav-row .slide-nav.next {
        left: auto !important;
        right: auto !important;
    }
} 