/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #E30613;       /* Rouge Autocontrol */
    --text-dark: #1A1A1A;     /* Noir texte */
    --bg-pink: #E8B6B6;       /* Le rose du haut du dégradé */
    --bg-white: #ececec;
    --header-height: 70px;
    --radius: 15px;           /* Arrondis */
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    /* Le dégradé de fond qui part du rose sous la photo vers le blanc */
    background: linear-gradient(180deg, var(--bg-pink) 0%, #F5F5F5 100%);
    background-attachment: fixed; /* Le dégradé reste fixe pendant le scroll */
    min-height: 100vh; /* Hauteur minimale de la page */
    line-height: 1.5;
    padding-top: var(--header-height);
}

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

/* =========================================
   2. HEADER (Navigation)
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-white);
    z-index: 1000;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 2px solid black;
}

/* Gestion du logo responsive (Le "C" vs "Autocontrol") */
.logo picture { display: flex; align-items: center; }
.logo img {
    height: 45px;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    .logo img { height: 40px; }
}

/* Bouton Burger */
.menu-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    outline: 1px solid transparent;
}
.hamburger-icon { display: flex; flex-direction: column; gap: 4px; }
.hamburger-icon span { width: 18px; height: 2px; background: white; display: block; transition: 0.3s; }

/* Hover Burger */
.menu-btn:hover {
    background-color: #ffffff;
    color: var(--primary);
    outline: 1px solid var(--primary);
}
.menu-btn:hover .hamburger-icon span { background-color: var(--primary); }


/* =========================================
   3. HERO SECTION (Gestion des 2 images)
   ========================================= */

.hero-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Pas de hauteur fixe, l'image décide */
}

/* Version sans image (page tarifs, etc.) */
.hero-wrapper-tarifs {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 0;
}

.hero-wrapper-tarifs .hero-overlay-text {
    position: relative !important;
    top: auto !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* --- MOBILE PAR DÉFAUT --- */

/* On AFFICHE l'image Mobile */
.hero-image-mobile {
    display: block;
    width: 100%;
    height: auto;
}

/* On CACHE l'image PC */
.hero-image-pc {
    display: none;
}

/* Positionnement du Texte (Mobile) */
.hero-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
    padding: 15px 10px;

    /* BANDEROLE BLANCHE - OPACITÉ RÉDUITE */
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(5px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* LOGO RESPONSIVE - S'adapte à la taille de l'écran */
.hero-logo-img {
    width: 80vw; /* 80% de la largeur viewport sur mobile */
    max-width: 350px;
    min-width: 200px;
    height: auto;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.3));
}

.hero-subtitle {
    font-size: clamp(0.85rem, 3.5vw, 1.1rem); /* S'adapte entre 0.85rem et 1.1rem */
    padding: 8px 15px;
    margin-top: 10px;
    border-radius: 8px;

    /* Fond subtil pour le faire ressortir légèrement */
    color: black;

    font-weight: 800;
    box-shadow: none;
}

/* ... (Garde tes styles pour logo, h1, subtitle, gradient ici) ... */


/* =========================================
   VERSION PC (Écrans > 1024px) - CORRECTION FORCÉE
   ========================================= */
@media (min-width: 1024px) {

    /* 1. ON NETTOIE L'AFFICHAGE MOBILE */
    .hero-image-mobile { display: none !important; }
    .bottom-gradient { display: none !important; }

    /* 2. L'IMAGE PC (Visible et collée au header) */
    .hero-image-pc {
        display: block !important;
        width: 100%;
        height: 750px; /* On augmente un peu pour l'effet waouh */
        object-fit: cover;
    }

    /* 3. LE CONTENEUR (C'est lui le coupable de la bande blanche) */
    .hero-wrapper {
        position: relative !important; /* INDISPENSABLE pour le texte par-dessus */
        height: auto !important;
        background: none !important;
        padding: 0 !important;    /* Tue l'espace blanc interne */
        margin-top: 0 !important; /* Tue l'espace blanc externe */
        border: none !important;
        overflow: hidden;
    }

    /* 4. LE TEXTE ET LOGO (POSITIONNEMENT ABSOLU) */
    /* Positionnement du Texte et de la Banderole (PC) */
    .hero-overlay-text {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: none !important;

        z-index: 50 !important;

        /* LA BANDEROLE BLANCHE - PLEINE LARGEUR - OPACITÉ RÉDUITE */
        background-color: rgba(255, 255, 255, 0.25) !important;
        padding: 25px 20px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25) !important;
        backdrop-filter: blur(5px);

        /* ALIGNEMENT */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* On nettoie le sous-titre pour qu'il n'ait pas son propre fond en double */
    .hero-subtitle {
        background: none !important;
        box-shadow: none !important;
        border: none !important;

        color: black !important;
        font-weight: 800 !important;
        font-size: clamp(1.2rem, 2vw, 2rem) !important; /* Responsive entre 1.2rem et 2rem */
        margin-top: 10px !important;
        padding: 0 !important;
    }
    /* 5. LE LOGO AUTOCONTROL - VRAIMENT RESPONSIVE */
    .hero-logo-img {
        width: clamp(400px, 35vw, 800px) !important; /* S'adapte entre 400px et 800px */
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
        margin-bottom: 10px;
    }
}
/* =========================================
   BOUTON AIRBAG TAKATA (Style alerte rouge/blanc)
   ========================================= */

@keyframes borderBlink {
    0%, 100% { border-color: var(--primary); box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3); }
    50%       { border-color: transparent;   box-shadow: 0 4px 15px rgba(227, 6, 19, 0); }
}

@keyframes stickyBlink {
    0%, 100% { border-color: white; box-shadow: 0 5px 20px rgba(227, 6, 19, 0.5); }
    50%       { border-color: transparent; box-shadow: 0 5px 20px rgba(227, 6, 19, 0); }
}

.alert-takata {
    /* POSITIONNEMENT */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: -80px; /* Remonté plus haut */
    margin-left: 12px;
    margin-right: auto;
    margin-bottom: 20px;

    /* TAILLE - Plus compact */
    width: auto;
    max-width: 240px;
    padding: 8px 12px;

    /* DESIGN - Style alerte rouge/blanc */
    background-color: white;
    border: 2.5px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);

    text-decoration: none;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;

    position: relative;
    z-index: 20;
    transition: all 0.3s ease;
}

.alert-takata:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.alert-takata:hover .icon-warning {
    filter: brightness(0) invert(1);
}

.alert-takata:active {
    transform: translateY(0);
}

/* TEXTE DU BOUTON */
.alert-text {
    flex: 1;
}

.alert-takata strong {
    display: block;
    font-size: 0.65rem;
    margin-bottom: 2px;
    text-transform: none;
}

/* ICÔNE WARNING (Triangle) */
.icon-warning {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

/* ICÔNE MAIN (On la cache pour simplifier) */
.icon-hand {
    display: none;
}

/* VERSION PC - Bouton airbag plus grand */
@media (min-width: 1024px) {
    .alert-takata {
        max-width: 400px;
        padding: 18px 25px;
        margin-top: -100px;
        margin-right: 40px;
        font-size: 1rem;
        border-radius: 18px;
    }

    .alert-takata strong {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .icon-warning {
        font-size: 2.2rem;
    }
}

/* =========================================
   SECTION POURQUOI CHOISIR
   ========================================= */
.why-choose-section {
    background: transparent; /* Pas de fond, on utilise celui du body */
    padding: 20px 0 60px 0;
    margin-top: -20px; /* Pour coller à la section précédente */
}

.why-choose-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.3;
}

.why-choose-section p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.why-choose-section p strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* Responsive tablette/PC */
@media (min-width: 768px) {
    .why-choose-section {
        padding: 20px 0 80px 0;
    }

    .why-choose-section h2 {
        margin-bottom: 30px;
    }

    .why-choose-section p {
        margin-bottom: 25px;
    }
}

/* =========================================
   ALERTE CERTIFICAT D'IMMATRICULATION
   ========================================= */
.info-alert-section {
    background: transparent;
    padding: 0 0 10px 0;
}

.info-alert-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-alert-box {
    background-color: rgba(227, 6, 19, 0.15); /* Rouge très clair */
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

@keyframes blink-text {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.info-alert-box p {
    animation: blink-text 1.4s ease-in-out infinite;
}

.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-alert-box p {
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
}

/* Responsive tablette/PC */
@media (min-width: 768px) {
    .info-alert-section {
        padding: 0 0 20px 0;
    }

    .info-alert-box {
        padding: 20px 30px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }
}

/* =========================================
   CARROUSEL DES VOITURES CLIENTS
   ========================================= */
.cars-carousel-section {
    background: transparent;
    padding: 40px 0 60px 0;
}

.cars-carousel-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cars-carousel-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: left;
}

/* Wrapper du carrousel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Container des images */
.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Ratio de l'image */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Boutons de navigation */
.carousel-btn {
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.carousel-btn:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.carousel-btn:hover svg {
    color: white;
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Indicateurs (dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background-color: var(--primary);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background-color: var(--primary);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-wrapper {
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .cars-carousel-section {
        padding: 60px 0 80px 0;
    }
}

/* =========================================
   SECTION RÉSEAUX SOCIAUX
   ========================================= */
.social-media-section {
    background: transparent;
    padding: 40px 0;
}

.social-media-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.social-media-section h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
    width: 30px;
    height: 30px;
}

/* Facebook */
.social-icon.facebook {
    background-color: #1877F2;
    color: white;
}

.social-icon.facebook:hover {
    background-color: #0d5dbf;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

/* Instagram */
.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icon.instagram:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4);
}

/* Responsive */
@media (min-width: 768px) {
    .social-media-section {
        padding: 50px 0;
    }

    .social-icon {
        width: 140px;
        height: 140px;
    }

    .social-icon svg {
        width: 100px;
        height: 100px;
    }

    .social-icons {
        gap: 30px;
    }
}

/* =========================================
   SECTION AVIS GOOGLE
   ========================================= */
.google-reviews-section {
    background: transparent;
    padding: 10px 0 80px 0;
}

.google-reviews-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.google-reviews-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.reviews-widget-container {
    background-color: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 300px;
}

/* Placeholder temporaire */
.reviews-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.reviews-placeholder p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.reviews-placeholder .placeholder-instructions {
    font-size: 0.9rem;
    color: #666;
}

.reviews-placeholder a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.reviews-placeholder a:hover {
    text-decoration: none;
}

/* Responsive */
@media (min-width: 768px) {
    .google-reviews-section {
        padding: 60px 0 100px 0;
    }

    .reviews-widget-container {
        padding: 40px 30px;
    }

    .google-reviews-section h2 {
        margin-bottom: 40px;
    }
}

/* =========================================
   PAGE TARIFS
   ========================================= */
.tarifs-section {
    background: transparent;
    padding: 40px 0 100px 0;
}

.tarifs-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.tarifs-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 2px;
}

/* BLOC TARIF */
.tarif-bloc {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* EN-TÊTE DU BLOC - Rouge */
.tarif-bloc-header {
    background-color: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    padding: 14px 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* LIGNE DE TARIF */
.tarif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #ff0000;
    gap: 15px;
}

.tarif-row:last-of-type {
    border-bottom: none;
}

.tarif-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.tarif-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* AVERTISSEMENT GAZ */
.tarif-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(227, 6, 19, 0.08);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.3;
}

.tarif-warning-text {
    font-size: 0.72rem;
    line-height: 1.3;
}

/* BLOC CONTRE-VISITE */
.tarif-offert {
    color: #27ae60 !important;
    font-size: 1.1rem !important;
}

.tarif-note {
    font-size: 0.78rem;
    color: #888;
    padding: 0 20px 15px;
    font-style: italic;
    line-height: 1.5;
}

/* BOUTON RDV dans la page tarifs */
.tarif-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tarif-rdv-btn {
    flex: 1;
    display: block;
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
    letter-spacing: 1px;
    border: 3px solid var(--primary);
}

.tarif-rdv-btn:hover {
    background-color: #c0040f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.tarif-prelim-btn {
    flex: 1;
    display: block;
    background-color: white;
    color: var(--text-dark);
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid #ddd;
    line-height: 1.3;
}

.tarif-prelim-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* BLOC CONTRE-VISITE - Style épuré */
.tarif-bloc-light {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
    border: none;
}

.tarif-bloc-header-light {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 0 12px 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
}

.tarif-row-light {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #d0d0d0;
    gap: 15px;
}

.tarif-row-light:last-of-type {
    border-bottom: none;
}

.tarif-label-light {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    flex: 1;
    padding-right: 15px;
}

.tarif-price-light {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    padding-left: 15px;
}

/* ALERTE RÉDUCTION */
.tarif-reduction-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(227, 6, 19, 0.08);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
}

.tarif-reduction-alert .info-icon {
    width: 35px;
    height: 35px;
    color: var(--primary);
    flex-shrink: 0;
}

.tarif-reduction-alert p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.tarif-reduction-alert strong {
    color: var(--primary);
    font-weight: 800;
}

/* PC */
@media (min-width: 1024px) {
    .tarifs-section {
        padding: 60px 0 120px 0;
    }

    .tarif-bloc-header {
        font-size: 1.2rem;
        padding: 16px 30px;
    }

    .tarif-row {
        padding: 20px 30px;
    }

    .tarif-label {
        font-size: 1.05rem;
    }

    .tarif-price {
        font-size: 1.5rem;
    }
}

/* =========================================
   PAGE TYPES DE VÉHICULES
   ========================================= */
.vehicles-section {
    background: transparent;
    padding: 40px 0 100px 0;
}

.vehicles-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.vehicles-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 900;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.vehicles-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 400;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 25px;
    margin-top: 30px;
}

/* GRILLE D'ICÔNES */
.vehicles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* CARTE VÉHICULE */
.vehicle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    width: calc(33% - 10px); /* 3 par ligne */
    max-width: 130px;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-icon {
    width: 100%;
    aspect-ratio: 1;
    background-color: white;
    border: 2.5px solid var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.vehicle-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary);
}

.vehicle-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vehicle-card:hover .vehicle-icon {
    background-color: rgba(255, 165, 172, 1);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.35);
}

.vehicle-card:hover .vehicle-icon svg {
    color: white;
}

.vehicle-card span {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* PC */
@media (min-width: 768px) {
    .vehicles-section {
        padding: 60px 0 120px 0;
    }

    .vehicle-card {
        width: calc(20% - 12px); /* 5 par ligne sur PC */
        max-width: 140px;
    }

    .vehicle-icon {
        padding: 20px;
    }
}


/* =========================================
   5. MENU DRAWER (Mobile)
   ========================================= */
.menu-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 999;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.menu-backdrop.active { opacity: 1; visibility: visible; }

.mobile-nav-overlay {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 350px; height: 100vh;
    background-color: #d1d1d1;
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.4);
    border-left: 3px solid black;
    display: flex; flex-direction: column;
    padding: 20px; padding-top: 80px;
}
.mobile-nav-overlay.active { right: 0; }

.close-menu {
    position: absolute; top: 20px; right: 20px;
    background-color: var(--primary); color: white; border: none;
    padding: 8px 15px; border-radius: 8px; font-weight: 700;
    text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 20px;
    transition: 0.3s;
}
.close-menu:hover { background-color: white; color: var(--primary); outline: 1px solid var(--primary); }

.mobile-nav-overlay hr {
    border: none; height: 3px; background-color: #000; opacity: 0.2;
    width: 100%; margin-top: auto; margin-bottom: 20px;
}

.mobile-nav-overlay nav ul { list-style: none; padding: 0; text-align: center; }
.mobile-nav-overlay nav ul li { margin-bottom: 25px; }
.mobile-nav-overlay nav ul li a {
    text-decoration: none; color: #000; font-size: 1.6rem; font-weight: 700; text-transform: uppercase; transition: 0.2s;
}
.mobile-nav-overlay nav ul li a:hover { color: #5e5e5e; }

.mobile-nav-overlay .btn-primary {
    margin-bottom: 20px; background-color: white; color: var(--primary); outline: 2px solid var(--primary);
    padding: 15px; text-align: center; text-decoration: none; font-weight: bold; border-radius: 8px; text-transform: uppercase;
    transition: background 0.2s;
}
.mobile-nav-overlay .btn-primary:hover { background-color: var(--primary); color: white; }


/* =========================================
   6. NAVIGATION DESKTOP & MEDIA QUERY PC
   ========================================= */
.desktop-nav { display: none; } /* Caché par défaut */

@media (min-width: 1024px) {
    /* --- HEADER PC --- */
    .menu-btn { display: none !important; } /* Cache burger */
    .desktop-nav { display: flex; align-items: center; gap: 30px; }

    .desktop-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
    .desktop-nav ul li a {
        font-size: 1rem; font-weight: 600; color: #1A1A1A; text-transform: uppercase; position: relative; transition: color 0.3s;
    }
    .desktop-nav ul li a::after {
        content: ''; display: block; width: 0; height: 2px; background: var(--primary); transition: width 0.3s;
    }
    .desktop-nav ul li a:hover::after { width: 100%; }

    .btn-rdv-header {
        background-color: white; color: var(--primary); border: 2px solid var(--primary);
        padding: 10px 20px; border-radius: 8px; font-weight: 700; text-transform: uppercase; transition: 0.3s;
    }
    .btn-rdv-header:hover { background-color: var(--primary); color: white; }


    /* --- HERO PC (TRANSFORMATION) --- */

    /* 1. On cache l'image de fond (Garage) */
    .hero-image { display: none; }
    .bottom-gradient { display: none; }

    /* 2. On change le conteneur pour faire une bannière propre */
    .hero-wrapper {
        height: auto;
        background-color: #f4f4f4; /* Fond gris clair */
        padding: 60px 0;
        border-bottom: 1px solid #ddd;
        overflow: visible;
    }

    /* 3. On remet le texte dans le flux (plus de position absolute) */
    .hero-overlay-text {
        position: relative;
        top: auto;
        left: auto;
        padding: 0;
        /* Le Flexbox défini plus haut continue de centrer le tout */
    }

    /* 4. LOGO FLUIDE : Il grandit avec l'écran (vw) */
    .hero-logo-img {
        width: 40vw; /* Prend 40% de la largeur de l'écran */
        min-width: 400px;
        max-width: 1000px; /* Limite max pour écrans géants */
        filter: none; /* Plus besoin d'ombre sur fond gris */
    }

    /* 5. TEXTE FLUIDE */
    .hero-subtitle {
        font-size: clamp(1rem, 2vw, 2.5rem); /* Grossit entre 1rem et 2.5rem */
        padding: clamp(10px, 1.5vw, 20px) clamp(20px, 3vw, 40px);
        margin-top: 25px;
        background: white; /* Fond blanc propre */
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
}


/* =========================================
   7. BOUTON STICKY (Prendre RDV) - Style rouge/blanc
   ========================================= */

/* Le wrap EST le bouton unique */
.sticky-cta-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background-color: var(--primary);
    color: white;
    border: 3px solid var(--primary);
    border-radius: 18px;
    padding: 14px 28px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    animation: stickyBlink 1.2s ease-in-out infinite;
}
.sticky-cta-wrap:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
    animation: none;
}
.sticky-cta-wrap:hover .sticky-cta-promo { color: var(--primary); }
.sticky-cta-wrap:active { transform: translateY(-1px); }

.sticky-cta-btn {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: inherit;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 6px;
    width: 100%;
    text-align: center;
}

.sticky-cta-promo {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    margin: 0;
}

/* Responsive mobile - un peu plus petit */
@media (max-width: 768px) {
    .sticky-cta-wrap {
        bottom: 15px;
        right: 15px;
    }
    .sticky-cta-btn {
        padding: 15px 35px;
        font-size: 1.2rem;
    }
    .sticky-cta-promo {
        font-size: 0.7rem;
    }
}

/* VERSION PC - Encore plus gros */
@media (min-width: 1024px) {
    .sticky-cta-wrap {
        bottom: 30px;
        right: 30px;
    }
    .sticky-cta-btn {
        padding: 20px 50px;
        font-size: 1.5rem;
    }
}


/* =========================================
   8. FOOTER
   ========================================= */
.main-footer {
    background-color: #2a2a2a;
    color: #b8b8b8;
    padding: 0;
    position: relative;
}

.footer-content {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* GRID 3 COLONNES */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* COLONNE LOGO */
.footer-col-logo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.footer-col address {
    font-style: normal;
    color: #9a9a9a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s;
    margin-top: 8px;
}

.footer-phone:hover {
    color: white;
}

/* COLONNES NAVIGATION */
.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #9a9a9a;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.6;
}

.footer-col ul li a:hover {
    color: white;
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.footer-bottom a {
    color: #9a9a9a;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

/* RESPONSIVE - TABLETTE ET MOBILE */
@media (max-width: 1024px) {
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col-logo {
        align-items: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
        width: 150px;
    }

    .footer-phone {
        font-size: 1.3rem;
    }
}
/* =========================================
   PAGE INFOS PRATIQUES - VOITURE INTERACTIVE
   ========================================= */
.infos-section {
    background: transparent;
    padding: 40px 0 100px 0;
}

.infos-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.infos-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* BOX CONTRÔLES PRÉLIMINAIRES */
.prelim-box {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 35px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.prelim-box h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.prelim-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* TITRE SECTION VOITURE */
.car-section-title {
    font-size: clamp(1.4rem, 3.9vw, 1.7rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
}

/* VOITURE INTERACTIVE */
.car-interactive-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.car-illustration {
    width: 100%;
    height: auto;
    display: block;
}

/* POINT ROUGE */
.car-point {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

.point-dot {
    width: 18px;
    height: 18px;
    background-color: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(227,6,19,0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(227,6,19,0); }
    100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); }
}

.car-point:hover,
.car-point.active {
    z-index: 50;
}

.car-point:hover .point-dot,
.car-point.active .point-dot {
    transform: scale(1.3);
    animation: none;
    box-shadow: 0 0 0 6px rgba(227,6,19,0.2);
}

/* TOOLTIP */
.point-tooltip {
    position: absolute;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 12px 14px;
    width: 190px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

/* Positions des tooltips */
.tooltip-right  { left: 28px; top: 50%; transform: translateY(-50%) scale(0.85); }
.tooltip-left   { right: 28px; top: 50%; transform: translateY(-50%) scale(0.85); }
.tooltip-top    { bottom: 28px; left: 50%; transform: translateX(-50%) scale(0.85); }
.tooltip-bottom { top: 28px; left: 50%; transform: translateX(-50%) scale(0.85); }

/* Hover PC */
@media (hover: hover) {
    .car-point:hover .point-tooltip       { opacity: 1; }
    .car-point:hover .tooltip-right       { transform: translateY(-50%) scale(1); }
    .car-point:hover .tooltip-left        { transform: translateY(-50%) scale(1); }
    .car-point:hover .tooltip-top         { transform: translateX(-50%) scale(1); }
    .car-point:hover .tooltip-bottom      { transform: translateX(-50%) scale(1); }
}

/* Tap mobile */
.car-point.active .point-tooltip          { opacity: 1; }
.car-point.active .tooltip-right          { transform: translateY(-50%) scale(1); }
.car-point.active .tooltip-left           { transform: translateY(-50%) scale(1); }
.car-point.active .tooltip-top            { transform: translateX(-50%) scale(1); }
.car-point.active .tooltip-bottom         { transform: translateX(-50%) scale(1); }

/* Icône tooltip */
.tooltip-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tooltip-icon svg { width: 100%; height: 100%; }

/* Texte tooltip */
.tooltip-content strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.tooltip-content p {
    font-size: 0.73rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* HINT */
.car-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

/* PC */
@media (min-width: 1024px) {
    .infos-section   { padding: 60px 0 120px 0; }
    .point-dot       { width: 22px; height: 22px; }
    .point-tooltip   { width: 220px; }
}

/* =========================================
   PAGE CONTACT
   ========================================= */
.contact-section {
    background: transparent;
    padding: 40px 0 100px 0;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* BLOC BLANC */
.contact-bloc {
    background: white;
    border-radius: 16px;
    padding: 8px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* LIGNE */
.contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s;
}

/* TÉLÉPHONE - Plus grand et rouge */
.contact-phone {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.contact-phone .contact-icon {
    color: var(--primary);
    width: 40px;
    height: 40px;
}

.contact-phone .contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Filtre pour transformer le noir en rouge #E30613 */
    filter: brightness(0) saturate(100%) invert(14%) sepia(98%) saturate(6931%) hue-rotate(356deg) brightness(91%) contrast(117%);
}

.contact-phone:hover {
    color: #c0040f;
}

.contact-phone:hover .contact-icon {
    transform: scale(1.1);
}

.contact-row:hover {
    color: var(--primary);
}

/* ICÔNE */
.contact-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary);
}
.contact-icon svg { width: 100%; height: 100%; }

/* SÉPARATEUR */
.contact-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 0 -20px;
}

/* HORAIRES */
.contact-horaires .contact-row {
    align-items: flex-start;
}

.horaires-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
}

/* CARTE */
.contact-map-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-map-wrapper iframe {
    display: block;
}

/* BOUTON RDV sur la carte */
.map-rdv-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(227,6,19,0.4);
    transition: all 0.3s ease;
}

.map-rdv-btn:hover {
    background-color: #c0040f;
    transform: translateY(-2px);
}

/* BOUTON GPS */
.contact-gps-btn {
    display: block;
    background-color: white;
    color: var(--primary);
    border: 3px solid var(--primary);
    text-align: center;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227,6,19,0.15);
}

.contact-gps-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227,6,19,0.3);
}

/* PC */
@media (min-width: 1024px) {
    .contact-section  { padding: 60px 0 120px 0; }
    .contact-map-wrapper iframe { height: 350px; }
    .contact-phone    { font-size: 1.6rem; }
    .contact-phone .contact-icon { width: 45px; height: 45px; }
}

/* =========================================
   LIEN ACTIF DANS LA NAVIGATION
   ========================================= */
/* Desktop */
.desktop-nav ul li a.active {
    color: var(--primary);
}

.desktop-nav ul li a.active::after {
    width: 100%;
    background: var(--primary);
}

/* Mobile */
.mobile-nav-overlay nav ul li a.active {
    color: var(--primary);
}

/* =========================================
   GRILLE D'AVIS GOOGLE API
   ========================================= */
.manual-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.15); /* Ombre rouge Autocontrol */
    border-color: rgba(227, 6, 19, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary); /* Liseré rouge autour de la photo */
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-info h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
}

.review-stars {
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}