/* --- 1. VARIABLES & CONFIGURATION GLOBALE --- */
:root {
    /* Couleurs */
    --bg-dark: #08080a;
    --bg-card: rgba(20, 20, 25, 0.7);

    --neon-green: #00ff2a;    /* Vert logo */
    --neon-pink: #ff00f7;     /* Rose logo */
    --neon-red: #ff00f7;      /* Compat (utilisé comme rose) */

    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    
    /* Polices */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Dimensions */
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- 2. HEADER & NAVIGATION --- */
.main-header {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-title);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Soulignement rose */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--neon-pink);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- 3. BOUTONS --- */

/* Bouton Néon : fond vert, glow mixé */
.btn-neon {
    background: var(--neon-green);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow:
        0 0 10px rgba(0, 255, 42, 0.5),
        0 0 18px rgba(255, 0, 247, 0.4);
    border: none;
    cursor: pointer;
}

.btn-neon:hover {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-pink));
    box-shadow:
        0 0 20px rgba(0, 255, 42, 0.8),
        0 0 30px rgba(255, 0, 247, 0.8);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 42, 0.05);
}

/* Icone de connexion : hover rose */
.btn-login-icon {
    font-size: 1.4rem;
    color: var(--text-main);
    transition: color 0.3s;
}

.btn-login-icon:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* --- 4. HERO --- */
.hero {
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%), url('image/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Mot clé / highlight en rose */
.highlight-red {
    color: var(--neon-pink);
    text-shadow:
        0 0 15px rgba(255, 0, 247, 0.7),
        0 0 25px rgba(0, 255, 42, 0.3);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- 5. SECTIONS --- */
.section-padding {
    padding: 80px 5%;
}

/* Trait section en dégradé vert → rose */
.section-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 50px;
    padding-left: 20px;
    display: inline-block;
    border-left: 5px solid transparent;
    border-image: linear-gradient(to bottom, var(--neon-green), var(--neon-pink)) 1;
}

/* --- 6. CARTES --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

/* Bordure verte, glow mixé */
.card:hover {
    border-color: var(--neon-pink);
    box-shadow:
        0 0 20px rgba(0, 255, 42, 0.2),
        0 0 30px rgba(255, 0, 247, 0.15);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    transition: 0.3s;
}

/* Icônes en rose au survol */
.card:hover .card-icon {
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
}

.card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: white;
}

.card ul {
    margin-bottom: 25px;
    flex-grow: 1;
}

.card ul li {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

/* Puces en rose */
.card ul li::before {
    content: '•';
    color: var(--neon-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Bouton carte : contour vert, texte vert, hover fond vert */
.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(0, 255, 42, 0.4);
    color: var(--neon-green);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    transition: 0.3s;
}

.card:hover .btn-card {
    background: var(--neon-green);
    color: #000;
    box-shadow:
        0 0 15px rgba(0, 255, 42, 0.8),
        0 0 25px rgba(255, 0, 247, 0.5);
}

/* --- 7. UNIVERS --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-box {
    background: #121216;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    min-height: 400px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.box-carplay {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('image/carplay.jpg');
    background-size: cover;
    background-position: center;
}

.box-exhaust {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('image/exhaust-bg.jpg');
    background-size: cover;
    background-position: center;
}

.feature-box h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: white;
    z-index: 2;
    line-height: 1.1;
}

.feature-box p {
    color: #ddd;
    font-size: 1.1rem;
    max-width: 90%;
    margin-bottom: 30px;
    z-index: 2;
}

/* Étoiles en rose */
.stars-rating {
    color: var(--neon-pink);
    font-size: 1.2rem;
    z-index: 2;
}

/* --- 8. FOOTER --- */
footer {
    background: #020202;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-socials {
    margin-bottom: 20px;
}

.footer-socials a {
    color: white;
    font-size: 1.8rem;
    margin: 0 15px;
    opacity: 0.7;
    transition: 0.3s;
}

/* Hover rose + halo vert */
.footer-socials a:hover {
    color: var(--neon-pink);
    opacity: 1;
    text-shadow:
        0 0 12px var(--neon-pink),
        0 0 22px var(--neon-green);
}

/* --- 9. RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 0 20px; text-align: center; justify-content: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .main-header { padding: 0 20px; }
}


/* --------- PAGE CARPLAY --------- */

.carplay-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
}

.carplay-hero-text h1 {
    font-family: var(--font-title);
    font-size: 2.4rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 15px;
}

.carplay-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--neon-pink);
    margin-bottom: 10px;
    opacity: 0.8;
}

.carplay-hero-intro {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.carplay-hero-list {
    list-style: none;
    margin-bottom: 25px;
}

.carplay-hero-list li {
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.carplay-hero-list i {
    color: var(--neon-green);
    margin-right: 8px;
}

.carplay-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.carplay-hero-image {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.carplay-hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    padding: 20px;
    border-radius: 10px;
    width: 100%;
}

.carplay-hero-overlay p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.carplay-hero-overlay small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* AVANT / APRÈS */

.carplay-before-after {
    background: radial-gradient(circle at top left, rgba(255,0,247,0.06), transparent 60%);
}

.carplay-section-intro {
    max-width: 700px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.before-after-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.before-after-card h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 10px;
}

.before-after-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.before-after-img-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.before-after-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* PROCESS CARPLAY */

.carplay-process .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.carplay-process .process-step {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
}

.carplay-process .process-step h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 10px;
}

.carplay-process .process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.carplay-process .step-number {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-pink);
    opacity: 0.8;
}

/* FAQ CARPLAY */

.carplay-faq-list details {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.carplay-faq-list summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

.carplay-faq-list p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* CTA FINAL */

.carplay-cta {
    text-align: center;
    background: radial-gradient(circle at bottom right, rgba(0,255,42,0.08), transparent 60%);
}

.carplay-cta h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.carplay-cta p {
    max-width: 600px;
    margin: 0 auto 25px;
    color: var(--text-muted);
}

.carplay-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* RESPONSIVE CARPLAY */

@media (max-width: 992px) {
    .carplay-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------ HERO CARPLAY + SLIDER AVANT/APRÈS ------------ */

.carplay-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.carplay-hero-text h1 {
    font-family: var(--font-title);
    font-size: 2.4rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 15px;
}

.carplay-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--neon-pink);
    margin-bottom: 10px;
    opacity: 0.8;
}

.carplay-hero-intro {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.carplay-hero-list {
    list-style: none;
    margin-bottom: 25px;
}

.carplay-hero-list li {
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.carplay-hero-list i {
    color: var(--neon-green);
    margin-right: 8px;
}

.carplay-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Colonne droite : petite fenêtre slider */
.carplay-hero-media {
    display: flex;
    justify-content: flex-end;
}

/* >>> TAILLE FIXE DU SLIDER AVANT / APRÈS <<< */
.before-after-slider {
    width: 300px;          /* largeur de la petite fenêtre */
    max-width: 100%;       /* pour éviter de déborder sur mobile */
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 0, 247, 0.15);
}

/* Conteneur image avec hauteur fixe */
.slider-img-wrapper {
    width: 100%;
    height: 170px;         /* ➜ tu peux ajuster : 150 / 180 / 200px */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* L'image remplit complètement le cadre sans se déformer */
.slider-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Slides */
.slider-slide {
    display: none;
    position: relative;
}

.slider-slide.active {
    display: block;
}

.slider-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--neon-pink);
}

/* Dots / boutons Avant / Après */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dots .dot {
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
}

.slider-dots .dot.active {
    border-color: var(--neon-pink);
    color: #fff;
    box-shadow:
        0 0 8px rgba(255, 0, 247, 0.7),
        0 0 14px rgba(0, 255, 42, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .carplay-hero {
        grid-template-columns: 1fr;
    }

    .carplay-hero-media {
        justify-content: flex-start;
        margin-top: 20px;
    }
}


/* --- MENU DÉROULANT SERVICES (CORRIGÉ) --- */

.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); /* espace pour éviter la coupure */
    left: 0;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(6px);
    padding: 15px 20px;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    min-width: 220px;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.dropdown-menu a {
    padding: 10px 0;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    transition: 0.2s ease;
}

.dropdown-menu a:hover {
    color: var(--neon-pink);
    padding-left: 6px;
}

/* Empêche le menu de se fermer pendant que la souris est sur lui */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: flex;
}