/*
Theme Name: Astuce Auto Child
Template: generatepress
Description: Thème enfant optimisé - Version Full Width Corrigée
Version: 2.1
*/

/* ==========================================================================
   1. VARIABLES & RESET GLOBAL
   ========================================================================== */
:root {
    /* Couleurs Principales */
    --aa-blue: #005BBB;
    --aa-orange: #FFB11A;
    --aa-dark: #1a1a2e;
    --aa-light: #f6f6f6;
    --aa-success: #27ae60;
    --aa-danger: #e74c3c;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --grad-ae: linear-gradient(135deg, rgba(0,91,187,0.08), rgba(0,91,187,0.02));
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 14px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
}

/* Texte Gradient */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   2. CONTENEUR & LAYOUT (CORRIGÉ)
   ========================================================================== */

/* Container interne : Il doit TOUJOURS être centré */
.aa-container {
    width: 100%;
    max-width: 1250px;
    margin-left: auto !important;  /* Force le centrage à gauche */
    margin-right: auto !important; /* Force le centrage à droite */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   3. COMPOSANTS GLOBAUX (Boutons, Badges)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

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

.btn-primary {
    background: var(--grad-primary);
    color: white;
}

.btn-ae-primary {
    background: var(--aa-orange);
    color: #111;
}

.btn-ae-secondary {
    background: transparent;
    border: 2px solid var(--aa-blue);
    color: var(--aa-blue);
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}
.badge-verified { background: var(--aa-success); color: white; }
.badge-new { background: #3498db; color: white; }

/* ==========================================================================
   4. PAGE D'ACCUEIL (HOME)
   ========================================================================== */

.home-page {
    background: var(--aa-light);
    width: 100%; /* S'assurer qu'il prend toute la largeur dispo */
}

/* Hero Section - Doit toucher les bords */
.home-hero {
    position: relative;
    min-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0; /* Padding vertical seulement */
    background: var(--aa-dark);
    color: white;
    text-align: center;
    overflow: hidden;
}

.home-hero-content {
    position: relative;
    z-index: 10;
    width: 100%; /* Utilise .aa-container pour la largeur max */
}

/* Boite de recherche */
.home-search-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    text-align: left;
}

.home-search-form .search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.home-search-form label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.home-search-form select,
.home-search-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

/* Cartes Véhicules */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.vehicle-card-home {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

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

.vehicle-card-home img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.vehicle-card-home .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicle-card-home .card-price {
    color: var(--aa-success);
    font-size: 20px;
    font-weight: 800;
}

/* ==========================================================================
   5. AUTO-ÉCOLE
   ========================================================================== */

.ae-landing-page {
    padding-top: 40px;
    padding-bottom: 40px;
}

.ae-hero {
    background: linear-gradient(135deg, rgba(0,91,187,0.08), rgba(0,91,187,0.02));
    border-radius: 18px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.ae-hero-text {
    flex: 1;
}

.ae-hero-media {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ae-hero-media img {
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    max-width: 100%;
    height: auto;
}

.ae-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.ae-step-card {
    background: var(--aa-light);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.ae-step-card:hover {
    background: white;
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.ae-step-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.ae-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ae-module-card {
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    overflow: hidden;
}

.ae-dashboard-header {
    background: linear-gradient(135deg, var(--aa-blue), #003F7F);
    color: white;
    border-radius: 10px;
}

.ae-progress-container {
    background: rgba(255,255,255,0.2);
    height: 8px;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.ae-progress-bar {
    height: 100%;
    background: var(--aa-orange);
}

/* ==========================================================================
   AUTO-ÉCOLE : STYLES COMPLÉMENTAIRES (Intégration Finale)
   ========================================================================== */

/* --- GRILLE MONITEURS (Page Réservation) --- */
.ae-instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ae-instructor-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ae-instructor-card:hover {
    transform: translateY(-5px);
    border-color: var(--aa-blue);
}

.ae-instructor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid var(--aa-light);
}

/* --- PAGES SPÉCIFIQUES --- */
.ae-reservation-page,
.ae-courses-page,
.ae-dashboard-page {
    background: var(--aa-light);
    min-height: 70vh;
}

/* --- CARDS RESPONSIVE (Mobile Fix) --- */
@media (max-width: 768px) {
    .ae-modules-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
    
    .ae-hero {
        padding: 30px 20px;
        text-align: center;
    }
    
    .ae-hero-text,
    .ae-hero-media {
        width: 100%;
    }
    
    .ae-instructor-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   6. PAGE CONTACT
   ========================================================================== */

.contact-page-wrapper {
    width: 100%;
    background: var(--aa-light);
    padding-bottom: 0; /* Footer gère l'espace */
}

/* Grille des méthodes de contact (Cards flottantes) */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -60px; /* Effet de chevauchement sur le Hero */
    margin-bottom: 60px;
    position: relative;
    z-index: 20;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--aa-dark);
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: border 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
    border-color: var(--aa-blue);
    outline: none;
}

/* ==========================================================================
   7. RESPONSIVE MOBILE
   ========================================================================== */

@media (max-width: 992px) {
    .ae-hero {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Home */
    .home-hero { padding: 60px 0; min-height: auto; }
    .home-hero h1 { font-size: 32px; }
    
    .home-search-form .search-row { grid-template-columns: 1fr; }
    
    /* Contact */
    .contact-methods-grid { margin-top: 20px; } /* Enlever le chevauchement sur mobile */
    .contact-form-wrapper { padding: 25px; }
    
    /* Global */
    .aa-container { padding: 0 15px; }
}

/* ==========================================================================
   8. FORCAGE DU LAYOUT (VERSION BLINDÉE)
   ========================================================================== */

/* 1. Liste exhaustive de TOUS les templates qui doivent être en pleine largeur */
body.page-template-page-catalogue,
body.page-template-page-catalogue-php,
body.page-template-page-search-vehicles,
body.page-template-page-search-vehicles-php,
body.page-template-page-submit-vehicle,
body.page-template-page-submit-vehicle-php,
body.page-template-frontend_submission_form,
body.page-template-frontend_submission_form-php,
body.page-template-page-about,
body.page-template-page-contact,
body.astuce-full-width-mode {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Empêche le scroll horizontal */
}

/* 2. On force le site à prendre 100% */
body.page-template-page-catalogue .site,
body.page-template-page-search-vehicles .site,
body.page-template-page-submit-vehicle .site,
body.page-template-frontend_submission_form .site,
body.page-template-page-about .site,
body.astuce-full-width-mode .site {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1; /* Pousse le footer en bas */
}

/* 3. On écrase le conteneur GeneratePress (.grid-container) */
body.page-template-page-catalogue .site.grid-container,
body.page-template-page-search-vehicles .site.grid-container,
body.page-template-page-submit-vehicle .site.grid-container,
body.page-template-frontend_submission_form .site.grid-container,
body.page-template-page-about .site.grid-container,
body.astuce-full-width-mode .site.grid-container {
    max-width: none !important; /* Annule la limite de 1200px */
    width: 100% !important;
}

/* 4. On s'assure que le contenu interne (.site-content) est aussi à 100% */
body.page-template-page-catalogue #content,
body.page-template-page-search-vehicles #content,
body.page-template-page-submit-vehicle #content,
body.page-template-frontend_submission_form #content,
body.page-template-page-about #content,
body.astuce-full-width-mode #content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* 5. Réparation du Footer (Pour qu'il ne soit pas étiré mochement) */
.site-footer .footer-widgets-container .grid-container,
.site-info .inside-site-info.grid-container {
    max-width: 1250px !important;
    margin: 0 auto !important;
    width: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}









/* ==========================================================================
   9. FONCTIONNALITÉS AVANCÉES (Comparateur, Favoris, 360°)
   ========================================================================== */

/* --- COMPARATEUR FLOTTANT --- */
.compare-bar {
    position: fixed;
    bottom: -100px; /* Caché par défaut */
    left: 50%;
    transform: translateX(-50%);
    background: var(--aa-dark);
    color: white;
    padding: 15px 25px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 9999; /* Au-dessus de tout */
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 95%;
    width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-bar.visible {
    bottom: 0; /* Visible */
}

.compare-bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.compare-count {
    font-size: 14px;
    font-weight: 600;
}

.compare-bar-actions {
    display: flex;
    gap: 10px;
}

.btn-compare-now {
    background: var(--aa-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.btn-clear-compare {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}


/* --- BOUTON FAVORI (Cœur) --- */
.btn-favorite {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}



.btn-favorite:hover, 
.btn-favorite.active {
    background: #ffebee;
    border-color: var(--aa-danger);
    color: var(--aa-danger);
    transform: scale(1.1);
}

/* --- VUE 360° & PARTAGE --- */
.vehicle-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-add-compare {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

/*.btn-add-compare.active {
    background: var(--aa-blue);
    color: white;
    border-color: var(--aa-blue);
}*/







/* =========================================
   BOUTON FAVORIS FLOTTANT
   ========================================= */
#favorites-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    
    /* MODIFICATION ICI : On le cache par défaut */
    display: none; 
    
    /* On garde les propriétés Flex pour quand le JS l'affichera */
    align-items: center;
    justify-content: center;
    
    text-decoration: none;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--aa-orange);
}

#favorites-floating-btn:hover {
    transform: scale(1.1);
}

#favorites-floating-btn .dashicons {
    font-size: 28px;
    color: var(--aa-orange);
    width: auto;
    height: auto;
}

.favorites-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--aa-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Animation de secousse (ajoutée par le JS lors d'un ajout) */
@keyframes shakeHeart {
    0% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.2) rotate(-10deg); }
    100% { transform: scale(1); }
}
.shake-animation {
    animation: shakeHeart 0.4s ease;
}

























/* ==========================================================================
   11. VISITE VIRTUELLE 360° (MODALE & PLAYER) - CORRIGÉ
   ========================================================================== */

/* Overlay qui couvre tout */
.viewer-360-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999; /* Très haut pour passer au-dessus de tout */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden; /* Important pour ne pas bloquer quand invisible */
}

.viewer-360-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* La fenêtre */
.viewer-360-modal {
    width: 90%;
    max-width: 1100px;
    height: 80vh;
    background: #000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border: 1px solid #333;
    position: relative;
}

/* Header (Barre titre + croix) */
.viewer-360-header {
    height: 60px;
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #333;
    flex-shrink: 0; /* Ne pas écraser */
    z-index: 10; /* Au-dessus du lecteur */
}

.viewer-360-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
}

/* BOUTON FERMER (Zone de clic large) */
.viewer-360-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.viewer-360-close:hover {
    color: var(--aa-danger);
}

/* Zone du lecteur */
.viewer-360-content {
    flex: 1;
    position: relative;
    background: #000;
}

.panorama-fullscreen {
    width: 100%;
    height: 100%;
}

/* Loader */
.viewer-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2em;
}

/* Footer */
.viewer-360-footer {
    height: 40px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

/* Bloquer le scroll du site quand ouvert */
body.viewer-open {
    overflow: hidden;
}
















/* ==========================================================================
   SECTION TÉMOIGNAGES (Design Premium)
   ========================================================================== */

.home-testimonials {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa); /* Dégradé subtil */
    position: relative;
    overflow: hidden;
}

/* Grille spécifique aux témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* La Carte Avis */
.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03); /* Ombre très douce et large */
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet ressort */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px); /* La carte se soulève */
    box-shadow: 0 20px 50px rgba(0, 91, 187, 0.1); /* L'ombre se teinte de bleu */
    border-color: rgba(0, 91, 187, 0.1);
}

/* La grosse guillemet décorative */
.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    line-height: 1;
    font-family: serif; /* Police classique pour la citation */
    color: var(--aa-blue);
    opacity: 0.05; /* Très transparent */
    pointer-events: none;
}

/* Les étoiles */
.testimonial-rating {
    color: #FFB11A;
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* Le texte de l'avis */
.testimonial-text {
    font-size: 1.05em;
    line-height: 1.7;
    color: #555;
    margin: 0 0 25px 0;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* L'auteur (en bas) */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--aa-light);
    color: var(--aa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.author-info strong {
    display: block;
    color: var(--aa-dark);
    font-size: 1em;
}

.author-info span {
    font-size: 0.85em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}







/* ==========================================================================
   LISTE AVANTAGES (CTA VENDRE)
   ========================================================================== */

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 30px auto 40px auto; /* Marges pour aérer */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Grille responsive */
    gap: 20px;
    max-width: 800px; /* Largeur max pour ne pas trop étirer */
    text-align: left; /* Texte aligné à gauche pour la lisibilité */
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.95); /* Blanc légèrement adouci */
    font-weight: 500;
}

.cta-benefits .check {
    background: var(--aa-success); /* Vert succès défini plus haut */
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%; /* Cercle parfait */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0; /* Empêche l'icône de s'écraser */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}





/* État actif des boutons d'action */
.btn-add-compare.active {
    background-color: var(--aa-success);
    color: white;
    border-color: var(--aa-success);
}

.btn-favorite.active {
    background-color: #ffebee;
    color: var(--aa-danger);
    border-color: var(--aa-danger);
}

.btn-favorite.active .fav-heart {
    font-weight: bold;
}
















/* ==========================================================================
   12. INTERACTIVITÉ RÉSERVATION (Ajout)
   ========================================================================== */

/* État sélectionné pour les cartes Moniteur */
.ae-instructor-card.ae-selected {
    border-color: var(--aa-blue);
    background-color: #f0f9ff; /* Bleu très pâle */
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

/* État sélectionné pour les cartes Lieu */
.ae-module-card.ae-selected {
    border-color: var(--aa-blue);
    background-color: #f0f9ff;
}

/* Boutons Créneaux */
.ae-slot-btn {
    background: white;
    border: 1px solid #ddd;
    color: var(--aa-dark);
    min-width: 140px;
}

.ae-slot-btn.ae-selected {
    background: var(--aa-blue);
    color: white;
    border-color: var(--aa-blue);
}

/* Loader */
.ae-loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--aa-blue);
    font-weight: 600;
    border-radius: var(--radius-md);
}
















/* ==========================================================================
   SÉLECTEUR DE DATE (Auto-École) - AMÉLIORÉ
   ========================================================================== */

.ae-date-picker-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
}

.ae-date-input {
    font-family: inherit !important;
    cursor: pointer;
}

/* Focus state */
.ae-date-input:focus {
    border-color: var(--aa-blue) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 91, 187, 0.1);
    transform: translateY(-2px);
}

/* Date sélectionnée */
.ae-date-input:valid {
    border-color: var(--aa-success);
    background-color: #f0fff4;
}

/* Animation au hover */
.ae-date-input:hover {
    border-color: var(--aa-blue);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .ae-date-picker-wrapper {
        padding: 25px 20px;
    }
    
    .ae-date-input {
        font-size: 14px;
        padding: 15px;
    }
}












## 🎨 **CSS Complémentaire (à ajouter dans style.css)**
```css
/* ==========================================================================
   AMÉLIORATIONS AUTO-ÉCOLE (Nouvelle Version)
   ========================================================================== */

/* --- Cartes Tarifs Améliorées --- */
.ae-module-card ul li:hover {
    background-color: #f8f9fa;
}

/* --- Cartes Moniteurs Hover Effect --- */
.ae-instructor-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ae-instructor-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 91, 187, 0.15);
}

/* --- Boutons Contact Hover --- */
a[href^="tel:"],
a[href^="mailto:"] {
    transition: all 0.2s;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    background-color: var(--aa-blue) !important;
    color: white !important;
    transform: translateX(5px);
}

a[href^="https://wa.me"]:hover {
    background-color: #128C7E !important;
    transform: scale(1.05);
}

/* --- FAQ Accordion Animation --- */
details[open] summary {
    color: var(--aa-blue);
}

details summary::marker {
    color: var(--aa-blue);
}

/* --- Garanties Section --- */
.ae-module-card:has(h4:contains("Garanties")) > div > div:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* --- Google Maps Responsive --- */
iframe[src*="google.com/maps"] {
    transition: transform 0.3s;
}

iframe[src*="google.com/maps"]:hover {
    transform: scale(1.02);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .ae-instructor-grid {
        grid-template-columns: 1fr;
    }
    
    #ae-pricing {
        padding: 40px 20px;
    }
    
    footer > div {
        flex-direction: column;
        text-align: center;
    }
    
    footer > div > div {
        width: 100%;
        flex-direction: column;
    }
}

/* --- Animation d'entrée --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ae-step-card,
.ae-instructor-card,
.ae-module-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.ae-step-card:nth-child(1) { animation-delay: 0.1s; }
.ae-step-card:nth-child(2) { animation-delay: 0.2s; }
.ae-step-card:nth-child(3) { animation-delay: 0.3s; }
.ae-step-card:nth-child(4) { animation-delay: 0.4s; }

















/* --- NOUVEAU : Cards Services --- */
.ae-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* On réutilise ae-module-card mais on s'assure qu'elle est bien stylée */
.ae-module-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ae-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--aa-blue, #005BBB); /* Utilise ta couleur bleue */
}

.ae-module-card.ae-selected {
    border-color: var(--aa-blue, #005BBB);
    background-color: rgba(0, 91, 187, 0.05); /* Bleu très clair */
    box-shadow: 0 0 0 4px rgba(0, 91, 187, 0.1);
}

.ae-module-card h3, 
.ae-module-card strong {
    color: var(--aa-dark, #333);
    font-size: 1.1rem;
    margin: 10px 0 5px;
    display: block;
}

.ae-module-card p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* --- Badge "New" ou Etape --- */
.badge-new {
    background: var(--aa-yellow, #FFB11A);
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 10px;
    vertical-align: middle;
}

.ae-section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.ae-section-header h2 {
    margin: 0;
    font-size: 1.6rem;
}














/* =======================================
   PAGE TARIFS (PRICING)
   ======================================= */

/* --- Grille des Prix --- */
.ae-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center; /* Important pour centrer verticalement si tailles diff */
    margin-top: 40px;
}

/* --- Carte de Prix Standard --- */
.ae-pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ae-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Header Prix */
.ae-price-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.ae-price-header h3 {
    font-size: 1.5rem;
    color: var(--aa-dark);
    margin: 0;
}

.ae-price-header .subtitle {
    color: #888;
    font-size: 0.95rem;
    margin: 5px 0 15px;
}

.ae-price-header .price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--aa-blue);
    font-weight: 800;
}

.ae-price-header .currency {
    font-size: 1rem;
    margin-top: 5px;
    margin-right: 5px;
}

.ae-price-header .amount {
    font-size: 3rem;
    line-height: 1;
}

/* Liste caractéristiques */
.ae-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex: 1; /* Pousse le bouton vers le bas */
}

.ae-price-features li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ae-price-features li.disabled {
    color: #ccc;
    text-decoration: line-through;
}

.ae-price-features .check { color: var(--aa-success); font-weight: bold; }
.ae-price-features .cross { color: #ccc; }

/* Boutons */
.ae-price-footer { text-align: center; }
.btn-ae-outline {
    border: 2px solid var(--aa-blue);
    color: var(--aa-blue);
    background: transparent;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}
.btn-ae-outline:hover {
    background: var(--aa-blue);
    color: white;
}

/* --- VERSION POPULAIRE (Milieu) --- */
.ae-pricing-card.ae-popular {
    border: 2px solid var(--aa-blue);
    box-shadow: 0 15px 50px rgba(0, 91, 187, 0.15);
    transform: scale(1.05); /* Plus grand */
    z-index: 2;
}
.ae-pricing-card.ae-popular:hover {
    transform: scale(1.07);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--aa-orange);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Section À la carte (Liste horizontale) --- */
.ae-alacarte-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.alacarte-item {
    flex-direction: row; /* Horizontal */
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.alacarte-icon {
    font-size: 2rem;
    background: var(--aa-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alacarte-info { flex: 1; }
.alacarte-info strong { display: block; color: var(--aa-dark); font-size: 1rem; }
.alacarte-info p { margin: 0; font-size: 0.85rem; color: #777; }

.alacarte-price {
    font-weight: 700;
    color: var(--aa-blue);
    font-size: 1.1rem;
    white-space: nowrap;
}

/* --- FAQ Accordion simple --- */
.ae-faq-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.ae-faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--aa-dark);
    list-style: none; /* Enlève la flèche par défaut sur certains navigateurs */
    position: relative;
}

.ae-faq-item summary::-webkit-details-marker { display: none; }

.ae-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--aa-blue);
}

.ae-faq-item[open] summary::after { content: '-'; }

.ae-faq-content {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ae-pricing-card.ae-popular { transform: none; margin: 20px 0; }
    .ae-pricing-card.ae-popular:hover { transform: translateY(-5px); }
    .alacarte-item { flex-direction: column; text-align: center; }
}
















/* =======================================
   PAGE AVIS (REVIEWS)
   ======================================= */

/* --- Note Globale (Hero) --- */
.ae-rating-overview {
    background: #fff;
    display: inline-block;
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 30px;
    border: 1px solid #f0f0f0;
}

.ae-big-score {
    font-weight: 800;
    color: var(--aa-dark);
    line-height: 1;
}

.ae-big-score .score { font-size: 3.5rem; color: var(--aa-dark); }
.ae-big-score .scale { font-size: 1.5rem; color: #999; }

.ae-stars-wrapper {
    font-size: 1.5rem;
    margin: 5px 0;
    letter-spacing: 5px;
    /* On utilise des emojis dans le HTML pour simplifier, 
       ou on peut utiliser des icônes font ici */
}

.ae-rating-label {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* --- Grille des Avis --- */
.ae-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* --- Carte Avis --- */
.ae-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ae-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--aa-blue);
}

/* Header Carte */
.ae-review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ae-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.ae-user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ae-user-info strong {
    color: var(--aa-dark);
    font-size: 1rem;
}

.badge-type {
    font-size: 0.75rem;
    background: #f4f6f9;
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-top: 2px;
}

.ae-review-date {
    font-size: 0.75rem;
    color: #999;
    align-self: flex-start;
}

/* Étoiles & Contenu */
.ae-review-stars {
    margin-bottom: 15px;
    color: var(--aa-orange);
    font-size: 1.1rem;
}

.ae-review-stars .star.empty { color: #e0e0e0; }

.ae-review-body p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Badge Vérifié en bas */
.ae-verified-check {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9;
    font-size: 0.8rem;
    color: var(--aa-success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ae-big-score .score { font-size: 2.5rem; }
    .ae-reviews-grid { grid-template-columns: 1fr; }
}
















/* =======================================
   SUB-NAVBAR AUTO-ÉCOLE
   ======================================= */

.ae-sub-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Effet verre dépoli */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; /* Reste collé en haut */
    top: 0; /* Ajuster si tu as déjà un header sticky (ex: top: 60px) */
    z-index: 999;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.ae-nav-container {
    display: flex;
    justify-content: center; /* Centré sur Desktop */
    align-items: center;
    height: 60px;
    position: relative;
}

.ae-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Scroll horizontal sur mobile */
    scrollbar-width: none; /* Cache scrollbar Firefox */
    -ms-overflow-style: none; /* Cache scrollbar IE */
    height: 100%;
    align-items: center;
}

.ae-nav-list::-webkit-scrollbar { 
    display: none; /* Cache scrollbar Chrome/Safari */
}

.ae-nav-item {
    flex-shrink: 0;
}

.ae-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s;
}

.ae-nav-icon { font-size: 1.1rem; }

/* État Hover */
.ae-nav-link:hover {
    background: #f4f6f9;
    color: var(--aa-blue);
}

/* État Actif (Page courante) */
.ae-nav-link.active {
    background: rgba(0, 91, 187, 0.1); /* Bleu très clair */
    color: var(--aa-blue);
}

/* Bouton Mobile (Caché sur Desktop) */
.ae-nav-cta { display: none; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .ae-sub-navbar {
        top: 0; /* S'assure qu'il colle bien en haut sur mobile */
    }

    .ae-nav-container {
        justify-content: space-between; /* Espace entre menu et bouton */
        padding: 0 15px;
    }

    .ae-nav-list {
        padding-right: 15px;
        flex: 1; /* Prend l'espace disponible */
    }

    .ae-nav-link {
        font-size: 0.85rem; /* Texte plus petit */
        padding: 6px 12px;
        background: #fff;
        border: 1px solid #eee;
    }
    
    .ae-nav-link.active {
        background: var(--aa-blue);
        color: white;
        border-color: var(--aa-blue);
    }

    .ae-nav-cta {
        display: block;
        margin-left: 10px;
        flex-shrink: 0;
    }

    .btn-mini {
        background: var(--aa-orange);
        color: #111;
        font-size: 0.8rem;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 6px;
        text-decoration: none;
        text-transform: uppercase;
    }
}












/* =======================================
   TOP BAR PROMO (Vers Auto-École)
   ======================================= */

.aa-top-bar-promo {
    background: var(--aa-dark); /* Fond sombre pour contraste */
    color: white;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.aa-top-bar-content {
    display: flex;
    justify-content: space-between; /* Texte à gauche, Bouton à droite */
    align-items: center;
}

/* Partie Texte */
.aa-top-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.aa-top-text .dashicons {
    color: var(--aa-orange); /* Icône Jaune */
    font-size: 1.2rem;
    width: auto;
    height: auto;
}

/* Gestion Texte Mobile/Desktop */
.text-mobile { display: none; }

/* Partie Bouton (Le style clé) */
.btn-shine-anim {
    display: inline-block;
    background: var(--aa-orange); /* Ton Jaune/Orange */
    color: #000; /* Texte noir pour lisibilité */
    padding: 6px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden; /* Pour l'effet de brillance */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 177, 26, 0.3); /* Ombre jaune */
}

.btn-shine-anim:hover {
    background: #fff;
    color: var(--aa-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

.btn-shine-anim .arrow {
    display: inline-block;
    transition: transform 0.2s;
    margin-left: 5px;
}

.btn-shine-anim:hover .arrow {
    transform: translateX(4px);
}

/* Animation "Shine" (Effet de passage de lumière) */
.btn-shine-anim::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: all 0.6s;
}

.btn-shine-anim:hover::before {
    left: 100%; /* La lumière traverse le bouton */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .text-desktop { display: none; }
    .text-mobile { display: inline-block; }
    
    .aa-top-bar-content {
        justify-content: center; /* Centré sur mobile */
        gap: 15px;
    }
    
    .btn-shine-anim {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}


















/* =======================================
   PAGE INSCRIPTION (SIGN UP)
   ======================================= */

.ae-signup-page {
    padding-top: 40px;
    padding-bottom: 80px;
    background-color: var(--aa-light); /* Fond léger pour contraste */
}

/* Header simplifié */
.ae-signup-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.ae-signup-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--aa-dark);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.back-link:hover { color: var(--aa-blue); }

/* Layout Grid (Split Screen) */
.ae-signup-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Formulaire plus large */
    gap: 40px;
    align-items: start;
}

/* Colonne GAUCHE (Formulaire) */
.ae-form-card {
    background: white;
    padding: 0; /* Padding géré en interne */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.form-header-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header-banner h3 { margin: 0; font-size: 1.2rem; }

.step-badge {
    background: var(--aa-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Ajustement du shortcode Fluent Form à l'intérieur */
.ae-form-card .fluentform {
    padding: 30px;
}

/* Note de sécurité bas de formulaire */
.security-note {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    padding: 15px;
    background: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    margin: 0;
}

/* Colonne DROITE (Sidebar) */
.ae-benefits-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.ae-check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.ae-check-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.ae-check-list li:last-child { margin-bottom: 0; }

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(0, 91, 187, 0.1);
    color: var(--aa-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ae-check-list strong { display: block; color: var(--aa-dark); margin-bottom: 3px; }
.ae-check-list p { margin: 0; font-size: 0.9rem; color: #777; line-height: 1.4; }

/* Mini Témoignage */
.ae-mini-testimonial {
    margin-top: 30px;
    background: #fff8e1; /* Fond jaune très pâle */
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #ffe0b2;
}

.ae-mini-testimonial p {
    font-style: italic;
    color: #5d4037;
    font-size: 0.95rem;
    margin: 10px 0;
}

.ae-mini-testimonial .author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.ae-mini-testimonial .author img { border-radius: 50%; }
.ae-mini-testimonial .author small { display: block; font-weight: 400; color: #888; font-size: 0.75rem; }

/* Box Aide */
.ae-help-box {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #777;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #25D366;
    font-weight: 700;
    text-decoration: none;
    margin-top: 5px;
}
.whatsapp-link:hover { text-decoration: underline; }

/* Responsive Mobile */
@media (max-width: 900px) {
    .ae-signup-layout {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    
    .ae-benefits-column {
        order: -1; /* Mettre les avantages AVANT le formulaire sur mobile ? ou APRES (par défaut 0) */
        /* Souvent mieux de garder le formulaire en premier sur mobile pour conversion rapide */
    }
    
    .ae-form-card .fluentform {
        padding: 20px;
    }
}
























/* Beauté des Formulaires Fluent */
.fluentform .ff-el-form-control {
    border: 2px solid #eee;
    padding: 12px 15px;
    border-radius: 8px;
    background: #f9f9f9;
    transition: 0.3s;
}

.fluentform .ff-el-form-control:focus {
    border-color: var(--aa-blue);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,91,187,0.1);
}

.fluentform .ff-btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--aa-blue);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.fluentform .ff-btn-submit:hover {
    background: var(--aa-dark);
}








































/* ==========================================================================
   3. PORTAIL ÉLÈVE (Auto-École) - CSS EXTRAIT & CORRIGÉ
   ========================================================================== */

/* --- STRUCTURE GLOBALE (Le Fix Flexbox) --- */
.ae-dashboard-layout {
    display: flex;
    flex-wrap: nowrap; /* Interdit le retour à la ligne sur PC */
    align-items: flex-start; /* Aligne en haut */
    gap: 30px;
    margin-top: 30px;
    position: relative;
}

/* --- COLONNE GAUCHE (Sidebar Menu) --- */
.ae-sidebar {
    /* On verrouille la largeur pour qu'elle ne soit jamais écrasée */
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    z-index: 2;
}

/* Infos Utilisateur (Avatar + Nom) */
.user-brief {
    text-align: center;
    margin-bottom: 25px;
}
.user-brief img {
    border-radius: 50%;
    border: 3px solid var(--aa-light);
    margin-bottom: 10px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.user-brief h4 {
    margin: 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aa-dark);
}
.badge-rank {
    display: inline-block;
    background: #fff8e1;
    color: #f39c12;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
    border: 1px solid #ffe0b2;
}

/* Menu de Navigation */
.ae-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ae-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}
.ae-menu a:hover {
    background: var(--aa-light);
    color: var(--aa-blue);
    transform: translateX(5px);
}
.ae-menu a.active {
    background: var(--aa-blue);
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 91, 187, 0.2);
}
.ae-menu a.active:hover {
    transform: none;
}

/* --- COLONNE DROITE (Contenu Tutor LMS) --- */
.ae-content-area {
    /* Prend tout l'espace restant */
    flex-grow: 1;
    width: 100%;
    
    /* ASTUCE MAGIQUE : min-width: 0 empêche le tableau de casser le flexbox */
    min-width: 0; 
    
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px; /* Espace interne */
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
}

/* --- NETTOYAGE TUTOR LMS (Pour éviter les doublons) --- */

/* 1. On cache la sidebar native de Tutor LMS car on a créé la nôtre */
.ae-content-area .tutor-dashboard-left-menu {
    display: none !important;
}

/* 2. On force le contenu à prendre toute la largeur */
.ae-content-area .tutor-dashboard-content {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. On corrige les tableaux qui débordent (Quiz history, etc.) */
.ae-content-area table {
    width: 100%;
    display: block; /* Rend le tableau scrollable horizontalement sur mobile */
    overflow-x: auto; 
    white-space: nowrap; /* Évite les retours à la ligne moches dans les cellules */
}

/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 992px) {
    .ae-dashboard-layout {
        flex-direction: column; /* On empile les colonnes */
    }
    .ae-sidebar {
        width: 100% !important;
        flex: none !important;
        margin-bottom: 20px;
    }
    .ae-menu {
        flex-direction: row; /* Menu horizontal sur mobile ? Optionnel */
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .ae-menu a {
        white-space: nowrap;
    }
}



















/* ==========================================================================
   PORTAIL ÉLÈVE - CORRECTION TABLEAUX TUTOR LMS
   ========================================================================== */

/* --- Conteneur des tableaux --- */
.ae-content-area .tutor-dashboard-content-inner {
    overflow-x: auto; /* Permet le scroll horizontal sur mobile */
}

/* --- Tous les tableaux Tutor LMS --- */
.ae-content-area table,
.ae-content-area .tutor-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important; /* Permet aux colonnes de s'ajuster */
    margin: 20px 0 !important;
    background: white !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* --- En-têtes de tableau --- */
.ae-content-area table thead,
.ae-content-area .tutor-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-bottom: 2px solid var(--aa-blue) !important;
}

.ae-content-area table th,
.ae-content-area .tutor-table th {
    padding: 15px 20px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: var(--aa-dark) !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

/* --- Cellules du tableau --- */
.ae-content-area table td,
.ae-content-area .tutor-table td {
    padding: 15px 20px !important;
    text-align: left !important;
    color: #555 !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid #f5f5f5 !important;
    vertical-align: middle !important;
    word-wrap: break-word !important;
}

/* --- Lignes alternées --- */
.ae-content-area table tbody tr:nth-child(even),
.ae-content-area .tutor-table tbody tr:nth-child(even) {
    background-color: #fafafa !important;
}

/* --- Hover sur les lignes --- */
.ae-content-area table tbody tr:hover,
.ae-content-area .tutor-table tbody tr:hover {
    background-color: #f0f9ff !important;
    transition: background-color 0.2s ease;
}

/* --- Largeurs minimales pour éviter le rétrécissement --- */
.ae-content-area table th:first-child,
.ae-content-area table td:first-child {
    min-width: 150px !important; /* Force une largeur minimale pour la 1ère colonne */
}

.ae-content-area table th:nth-child(2),
.ae-content-area table td:nth-child(2) {
    min-width: 120px !important;
}

.ae-content-area table th:last-child,
.ae-content-area table td:last-child {
    min-width: 100px !important;
    text-align: center !important;
}

/* --- Correction spécifique Quiz Attempts --- */
.ae-content-area .tutor-quiz-attempt-history table {
    display: table !important; /* Force le mode tableau standard */
    overflow-x: auto !important;
}

.ae-content-area .tutor-quiz-attempt-history th,
.ae-content-area .tutor-quiz-attempt-history td {
    display: table-cell !important; /* Force l'affichage en cellules */
}

/* --- Correction Questions & Réponses --- */
.ae-content-area .tutor-qa-list table {
    width: 100% !important;
}

.ae-content-area .tutor-qa-list th:first-child,
.ae-content-area .tutor-qa-list td:first-child {
    width: 50% !important; /* La question prend la moitié */
    min-width: 200px !important;
}

.ae-content-area .tutor-qa-list th:nth-child(2),
.ae-content-area .tutor-qa-list td:nth-child(2) {
    width: 20% !important;
    min-width: 100px !important;
}

.ae-content-area .tutor-qa-list th:last-child,
.ae-content-area .tutor-qa-list td:last-child {
    width: 30% !important;
    min-width: 120px !important;
}

/* --- Badges et statuts dans les tableaux --- */
.ae-content-area table .badge,
.ae-content-area .tutor-badge {
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.ae-content-area table .badge.success,
.ae-content-area .tutor-badge-success {
    background: #d4edda !important;
    color: #155724 !important;
}

.ae-content-area table .badge.warning,
.ae-content-area .tutor-badge-warning {
    background: #fff3cd !important;
    color: #856404 !important;
}

.ae-content-area table .badge.danger,
.ae-content-area .tutor-badge-danger {
    background: #f8d7da !important;
    color: #721c24 !important;
}

/* --- Boutons dans les tableaux --- */
.ae-content-area table .btn,
.ae-content-area table a.button {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* --- Correction du wrapper Tutor --- */
.ae-content-area .tutor-dashboard-content-inner {
    padding: 0 !important; /* Enlève le padding qui peut casser le layout */
}

/* --- Message "Aucun résultat" --- */
.ae-content-area table tbody tr td[colspan] {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #999 !important;
    font-style: italic !important;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    
    /* Les tableaux deviennent scrollables horizontalement */
    .ae-content-area table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    
    .ae-content-area table thead,
    .ae-content-area table tbody,
    .ae-content-area table th,
    .ae-content-area table td,
    .ae-content-area table tr {
        display: block !important;
    }
    
    /* On cache les en-têtes sur mobile et on les affiche dans les cellules */
    .ae-content-area table thead tr {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }
    
    .ae-content-area table tr {
        border: 1px solid #eee !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    
    .ae-content-area table td {
        position: relative !important;
        padding-left: 50% !important;
        text-align: right !important;
        white-space: normal !important;
    }
    
    .ae-content-area table td::before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 15px !important;
        width: 45% !important;
        padding-right: 10px !important;
        white-space: nowrap !important;
        text-align: left !important;
        font-weight: 600 !important;
        color: var(--aa-dark) !important;
    }
}

/* --- Correction colonne Score/Résultat --- */
.ae-content-area table td.result-column,
.ae-content-area table td:has(.badge) {
    text-align: center !important;
    font-weight: 600 !important;
    min-width: 100px !important;
}

/* --- Espacement entre les sections --- */
.ae-content-area .tutor-dashboard-content > div {
    margin-bottom: 30px !important;
}

/* --- Titres de sections dans le portail --- */
.ae-content-area h3,
.ae-content-area .tutor-segment-title {
    color: var(--aa-dark) !important;
    font-size: 1.3rem !important;
    margin: 30px 0 20px 0 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--aa-blue) !important;
    padding-bottom: 10px !important;
}

/* --- Correction liens dans les tableaux --- */
.ae-content-area table a {
    color: var(--aa-blue) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s !important;
}

.ae-content-area table a:hover {
    color: var(--aa-dark) !important;
    text-decoration: underline !important;
}

/* --- Dates et timestamps --- */
.ae-content-area table .date-column,
.ae-content-area table td:has(time) {
    color: #666 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

/* --- Icônes dans les tableaux --- */
.ae-content-area table .dashicons {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    vertical-align: middle !important;
    margin-right: 5px !important;
}
































/* =========================================
   BLOG / ASTUCES GRID DESIGN
   ========================================= */

/* La Grille */
.aa-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* La Carte Article */
.aa-blog-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.aa-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--aa-blue);
}

/* Image */
.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aa-blog-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

/* Badge Catégorie */
.card-cat-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--aa-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Contenu */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.card-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.4;
    font-weight: 700;
}

.card-title a {
    color: var(--aa-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.aa-blog-card:hover .card-title a {
    color: var(--aa-blue);
}

.card-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1; /* Pousse le bouton vers le bas */
}

/* Lien Lire la suite */
.read-more-link {
    color: var(--aa-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-link .arrow {
    transition: transform 0.2s;
}

.read-more-link:hover .arrow {
    transform: translateX(5px);
}

/* Pagination WP standard */
.aa-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    margin: 0 5px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--aa-dark);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.aa-pagination .page-numbers.current,
.aa-pagination .page-numbers:hover {
    background: var(--aa-blue);
    color: white;
}














/* ==========================================================================
   4. MENU INTELLIGENT & BOUTONS NAVIGATION
   ========================================================================== */

/* --- 1. Espacement général du bouton --- */
/* On décale le bouton vers la droite pour le séparer des autres liens */
@media (min-width: 769px) {
    .main-navigation .menu-item-btn {
        margin-left: 20px;
        display: flex;
        align-items: center; /* Centre verticalement */
    }
}

/* --- 2. STYLE VISITEUR : Bouton "Connexion" (Bleu) --- */
.main-navigation .menu-item-btn.cta-login > a {
    background-color: var(--aa-blue);
    color: #ffffff !important;
    border-radius: 50px; /* Forme de pilule */
    padding: 10px 24px !important; /* Force l'espace intérieur */
    line-height: 1.2 !important; /* Évite que le bouton soit énorme */
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--aa-blue);
    margin-top: 0; /* Correction alignement */
}

/* Effet au survol (Hover) */
.main-navigation .menu-item-btn.cta-login > a:hover {
    background-color: var(--aa-dark);
    border-color: var(--aa-dark);
    transform: translateY(-2px); /* Petit effet de levée */
    box-shadow: 0 4px 15px rgba(0, 91, 187, 0.3);
}

/* --- 3. STYLE CONNECTÉ : Bouton "Mon Compte" (Gris Clair) --- */
.main-navigation .menu-item-btn.cta-account > a {
    background-color: #f1f5f9; /* Gris très léger */
    color: var(--aa-dark) !important;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 20px !important;
    line-height: 1.2 !important;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px; /* Espace entre l'icône et le texte */
    transition: all 0.3s ease;
}

/* L'icône utilisateur */
.main-navigation .menu-item-btn.cta-account .user-icon {
    font-size: 1.1em;
}

/* Effet au survol (Hover) */
.main-navigation .menu-item-btn.cta-account > a:hover {
    background-color: #ffffff;
    border-color: var(--aa-blue);
    color: var(--aa-blue) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- 4. SOUS-MENU (Dropdown "Déconnexion") --- */
.main-navigation .menu-item-btn.cta-account .sub-menu {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    overflow: hidden;
    margin-top: 10px; /* Petit espace sous le bouton */
    left: auto !important; 
    right: 0 !important; /* Aligne le sous-menu à droite du bouton */
}

.main-navigation .menu-item-btn.cta-account .sub-menu li a {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f9f9f9;
}

/* --- 5. RESPONSIVE MOBILE (Réinitialisation) --- */
/* Sur mobile, on enlève le style "bouton" pour que ça ressemble à un lien normal */
@media (max-width: 768px) {
    .main-navigation .menu-item-btn {
        margin-left: 0;
        display: block;
    }

    .main-navigation .menu-item-btn.cta-login > a,
    .main-navigation .menu-item-btn.cta-account > a {
        background: none !important;
        border: none !important;
        border-radius: 0;
        padding: 15px 20px !important;
        color: inherit !important;
        box-shadow: none !important;
        transform: none !important;
        display: block;
        width: 100%;
    }
    
    /* On met juste le texte en bleu/gras pour le distinguer */
    .main-navigation .menu-item-btn.cta-login > a {
        color: var(--aa-blue) !important;
        font-weight: 900;
        background-color: rgba(0, 91, 187, 0.05) !important; /* Fond bleu très léger */
    }
}



























/* =========================================
   PAGE MES COURS (AUTO-ÉCOLE)
   ========================================= */

/* La Grille */
.ae-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Carte de Cours */
.course-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--aa-blue);
}

/* Image */
.course-img-wrap {
    position: relative;
    height: 180px;
    background: #eee;
}

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

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contenu */
.course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
    line-height: 1.4;
    font-weight: 700;
}

.course-title a {
    color: var(--aa-dark);
    text-decoration: none;
}

.course-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

/* Barre de Progression (Spécifique Carte) */
.course-progress-wrap {
    margin-top: auto; /* Pousse vers le bas si besoin */
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

/* Réutilisation de ta barre existante ou redéfinition locale si besoin */
.aa-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.aa-progress-bar .fill {
    height: 100%;
    background: var(--aa-success); /* Vert pour l'avancement */
    border-radius: 3px;
    transition: width 0.5s ease;
}


















/* =========================================
   BLOG MAGAZINE MODERN DESIGN
   ========================================= */

/* --- 1. HERO SECTION (Article Vedette) --- */
.blog-featured-hero {
    padding: 40px 0 60px;
}

.feat-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    min-height: 450px;
}

.feat-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feat-image {
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.badge-pill {
    background: rgba(0, 91, 187, 0.1);
    color: var(--aa-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    align-self: flex-start;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feat-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.feat-title a { color: var(--aa-dark); text-decoration: none; transition: 0.3s; }
.feat-title a:hover { color: var(--aa-blue); }

.feat-excerpt { color: #666; font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }

.feat-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name { display: block; font-weight: 700; color: var(--aa-dark); font-size: 0.95rem; }
.read-time { font-size: 0.85rem; color: #888; }

/* Responsive Hero */
@media (max-width: 900px) {
    .feat-card { grid-template-columns: 1fr; }
    .feat-image { order: -1; height: 250px; min-height: auto; }
    .feat-content { padding: 30px; }
}

/* --- 2. BARRE DE NAVIGATION (Filtres) --- */
.blog-nav-bar {
    margin-bottom: 40px;
    position: sticky; /* Reste en haut au scroll si supporté */
    top: 20px; 
    z-index: 90;
}

.nav-scroller {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}
.nav-scroller::-webkit-scrollbar { display: none; } /* Chrome */

.nav-pill {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #eee;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-pill:hover, .nav-pill.active {
    background: var(--aa-dark);
    color: white;
    border-color: var(--aa-dark);
    transform: translateY(-2px);
}

.nav-pill.special {
    background: var(--aa-orange);
    color: black;
    border-color: var(--aa-orange);
}

/* --- 3. GRILLE MODERNE --- */
.modern-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.modern-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(0, 91, 187, 0.2);
}

.card-img-link {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: block;
}

.modern-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover img { transform: scale(1.08); }

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--aa-dark);
    z-index: 2;
}

.card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 0 0 10px;
    font-weight: 700;
}

.card-title a { color: var(--aa-dark); text-decoration: none; transition: 0.2s; }
.card-title a:hover { color: var(--aa-blue); }

.card-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.link-arrow {
    font-weight: 700;
    color: var(--aa-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.link-arrow:hover .arrow { transform: translateX(5px); transition: 0.2s; }

/* --- 4. NEWSLETTER BOX --- */
.blog-newsletter { margin-top: 60px; margin-bottom: 40px; }
.newsletter-box {
    background: var(--aa-dark);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: white;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDQwTDQwIDBIMHoiIGZpbGw9IiMzMzMiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9nPjwvc3ZnPg==');
}

.news-text h2 { color: white; margin-bottom: 10px; }
.news-text p { opacity: 0.8; margin: 0; max-width: 400px; }

.news-form form { display: flex; gap: 10px; }
.news-form input {
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    width: 300px;
    max-width: 100%;
}
.news-form button {
    background: var(--aa-orange);
    color: black;
    border: none;
    font-weight: bold;
    padding: 0 25px;
    border-radius: 8px;
    cursor: pointer;
}

/* Pagination Custom */
.aa-pagination-modern .page-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}
.aa-pagination-modern .page-numbers li a, 
.aa-pagination-modern .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--aa-dark);
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.aa-pagination-modern .page-numbers li span.current,
.aa-pagination-modern .page-numbers li a:hover {
    background: var(--aa-blue);
    color: white;
    transform: scale(1.1);
}














/* =========================================
   PIED DE PAGE (FOOTER)
   ========================================= */

/* Structure Globale */
.site-footer {
    position: relative;
    background-color: var(--aa-dark);
    color: #b0b0c0;
    font-size: 0.95rem;
    margin-top: auto; /* Pousse le footer tout en bas */
}

/* Vague Décorative (SVG) */
.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Contenu Principal */
.footer-content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 20px;
}

/* Grille 4 Colonnes */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

/* Titres Colonnes */
.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* Petit souligné orange sous les titres */
.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--aa-orange);
    margin-top: 8px;
    border-radius: 2px;
}

/* Logo Marque */
.footer-logo {
    font-size: 1.8rem;
    color: white;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Réseaux Sociaux */
.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--aa-blue);
    transform: translateY(-3px);
}

/* Liens Listes */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #b0b0c0;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--aa-orange);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '›';
    margin-right: 8px;
    font-size: 1.2em;
    color: rgba(255,255,255,0.3);
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-list .dashicons {
    color: var(--aa-blue);
    background: white;
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.legal-links a {
    color: #777;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.2s;
}

.legal-links a:hover {
    color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonnes tablette */
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 colonne mobile */
        gap: 30px;
        text-align: center;
    }
    
    .footer-col h3::after {
        margin: 8px auto 0; /* Centrer le soulignement */
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .contact-list li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links a {
        margin: 0 10px;
    }
}














/* =========================================
   CORRECTION DÉFINITIVE HERO SECTION
   ========================================= */

/* 1. Le Conteneur Global */
.home-hero {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    overflow: hidden;
    /* Hauteur par défaut si non précisée */
    min-height: 50vh; 
    background-color: var(--aa-dark); /* Fond de secours */
    padding: 0 !important; /* On gère le padding nous-mêmes */
    margin: 0 !important;
}

/* 2. L'Image de fond (Gérée via une classe helper ou style inline propre) */
.home-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Tout au fond */
}

/* 3. L'Overlay (Le voile sombre pour lire le texte) */
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0; /* Couvre tout */
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.4), rgba(26, 26, 46, 0.8));
    z-index: 1; /* Au-dessus de l'image */
}

/* 4. Le Contenu (Texte) */
.home-hero-content {
    position: relative;
    z-index: 10; /* Au-dessus de tout ! */
    width: 100%;
    max-width: 1100px;
    padding: 40px 20px;
}

/* 5. Le Titre H1 */
.home-hero h1 {
    color: #ffffff !important; /* Force le blanc */
    font-size: clamp(32px, 5vw, 56px); /* Responsive */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Ombre pour lisibilité */
}

/* 6. Le Texte Dégradé */
.text-gradient {
    background: linear-gradient(135deg, #FFB11A 0%, #ff8c00 100%); /* Orange plus visible sur fond sombre */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Fix pour certains navigateurs */
}

/* 7. Les Paragraphes */
.home-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.15rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}



















/* =========================================
   STYLE PROSPERITY'S AUTO-ÉCOLE (Custom)
   ========================================= */

/* --- HEADER --- */
.prosperitys-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(74, 20, 140, 0.1); /* Ombre violette légère */
    position: relative;
    z-index: 100;
    padding: 10px 0;
}

.prosperitys-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
.prosperitys-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.prosperitys-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.prosperitys-nav a:hover {
    color: #4A148C; /* Violet foncé */
}

/* Bouton Connexion */
.btn-ae-login {
    background: #FFD700; /* Jaune or */
    color: #4A148C !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700 !important;
    border: 2px solid #FFD700;
}

.btn-ae-login:hover {
    background: white;
    color: #4A148C !important;
}

.btn-ae-login.logged-in {
    background: #f0f0f0;
    border-color: #ddd;
}

/* Lien Retour */
.back-astuce {
    font-size: 0.85rem !important;
    color: #888 !important;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4A148C;
}

/* --- FOOTER --- */
.prosperitys-footer {
    background-color: #4A148C; /* Violet Marque */
    color: #E1BEE7; /* Violet très clair */
    position: relative;
    margin-top: auto;
}

.prosperitys-footer h3 {
    color: #FFD700; /* Titres en Jaune */
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.prosperitys-footer a {
    color: #E1BEE7;
    text-decoration: none;
}
.prosperitys-footer a:hover {
    color: #ffffff;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .mobile-menu-toggle { display: block; }
    
    .prosperitys-nav {
        display: none; /* Caché par défaut mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        align-items: flex-start;
    }
    
    .prosperitys-nav.open { display: flex; }
    
    .back-astuce {
        border-left: none;
        padding-left: 0;
        margin-top: 10px;
        border-top: 1px solid #eee;
        width: 100%;
        padding-top: 10px;
    }
}

/* --- STYLE PROSPERITY'S AUTO-ÉCOLE --- */

.prosperitys-header {
    background: #fff;
    border-bottom: 3px solid #FFD700;
    padding: 10px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.prosperitys-nav { display: flex; gap: 20px; align-items: center; }
.prosperitys-nav a { text-decoration: none; color: #333; font-weight: 600; }
.prosperitys-nav a:hover { color: #4A148C; }

.btn-ae-login {
    background: #4A148C; color: #FFD700 !important;
    padding: 8px 15px; border-radius: 20px;
}

.prosperitys-footer { background: #4A148C; color: white; margin-top: auto; position: relative; }
.footer-wave svg { display: block; height: 50px; width: 100%; }

















/* =========================================
   BOUTONS COMPARER & FAVORIS (Fiche Véhicule)
   ========================================= */

/* Le conteneur des boutons */
.vehicle-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Permet de passer à la ligne sur petit mobile */
}

/* Style de base des boutons */
.btn-action {
    flex: 1; /* Ils prennent chacun 50% de la largeur disponible */
    min-width: 140px; /* Pas trop petits sur mobile */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--aa-dark);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Icônes dans les boutons */
.btn-action .dashicons,
.btn-action i {
    font-size: 1.2em;
    color: #888;
    transition: color 0.2s;
}

/* --- ETAT SURVOL (HOVER) --- */
.btn-action:hover {
    border-color: var(--aa-blue);
    color: var(--aa-blue);
    background-color: #f0f7ff; /* Bleu très pâle */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-action:hover .dashicons {
    color: var(--aa-blue);
}

/* --- ETAT ACTIF (Quand ajouté au comparateur/favoris) --- */
/* Le JS ajoute la classe .active quand on clique */
.btn-action.active {
    background-color: var(--aa-success); /* Vert */
    border-color: var(--aa-success);
    color: white;
}

.btn-action.active .dashicons {
    color: white;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .vehicle-actions {
        flex-direction: column; /* Empilés sur très petit écran */
        gap: 10px;
    }
    .btn-action {
        width: 100%;
    }
}





















/* =========================================
   PAGE COMMENT ÇA MARCHE
   ========================================= */

/* 1. Le Switcher (Boutons Centraux) */
.switch-section {
    margin-top: -40px; /* Chevauche le Hero */
    position: relative;
    z-index: 20;
    text-align: center;
    margin-bottom: 60px;
}

.role-switcher {
    display: inline-flex;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.switch-btn {
    padding: 15px 40px;
    border-radius: 40px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-btn.active {
    background: var(--aa-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 91, 187, 0.3);
}

#btn-seller.active {
    background: var(--aa-orange); /* Couleur différente pour Vendeur */
    color: var(--aa-dark);
    box-shadow: 0 4px 15px rgba(255, 177, 26, 0.3);
}

/* 2. Contenu Dynamique & Timeline */
.process-section {
    max-width: 900px; /* Lecture confortable */
    margin: 0 auto 80px;
}

.role-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-content.active {
    display: block;
    opacity: 1;
}

.process-intro {
    text-align: center;
    margin-bottom: 50px;
}

.process-intro h2 { font-size: 2rem; color: var(--aa-dark); margin-bottom: 10px; }
.process-intro p { font-size: 1.1rem; color: #666; }

/* Timeline Steps */
.timeline-steps {
    position: relative;
    padding-left: 30px;
}

/* La ligne verticale */
.timeline-steps::before {
    content: '';
    position: absolute;
    left: 24px; /* Ajusté selon la taille du rond */
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(to bottom, #ddd 0, #ddd 10px, transparent 10px, transparent 20px);
}

.step-card {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--aa-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--aa-blue);
    z-index: 2; /* Au-dessus de la ligne */
    box-shadow: 0 0 0 10px white; /* Astuce pour couper la ligne autour */
}

.step-info {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
}

.step-info:hover {
    transform: translateX(10px);
    border-color: var(--aa-blue);
}

.step-info h3 { margin: 0 0 10px; color: var(--aa-dark); }
.step-info p { color: #666; line-height: 1.6; margin: 0; }

.pro-tip {
    margin-top: 15px;
    background: #fff8e1;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 4px solid var(--aa-orange);
}

/* CTA final */
.cta-wrap { text-align: center; margin-top: 50px; }

/* 3. Grille Astuces (Feature Box) */
.section-title { text-align: center; margin-bottom: 50px; }

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
}

.feature-box:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}

.f-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-box h3 { margin-bottom: 15px; font-weight: 700; }
.feature-box p { color: #666; margin-bottom: 20px; line-height: 1.6; }
.feature-box a { color: var(--aa-blue); font-weight: 700; text-decoration: none; }

/* Responsive Mobile */
@media (max-width: 600px) {
    .switch-btn { padding: 12px 20px; font-size: 0.9rem; }
    .timeline-steps { padding-left: 0; }
    .timeline-steps::before { left: 24px; } /* Ajuster si besoin */
    .step-card { gap: 15px; }
    .step-icon { width: 40px; height: 40px; font-size: 1.2rem; flex: 0 0 40px; }
}

















/* =========================================
   PAGE INSPECTION & OUTILS
   ========================================= */

/* --- 1. L'Inspecteur de Poche (Carte Interactive) --- */
.inspection-tool-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.tool-header {
    background: var(--aa-dark);
    color: white;
    padding: 30px;
    text-align: center;
}

.tool-header h2 { color: white; margin-bottom: 10px; }
.tool-header p { opacity: 0.8; font-size: 0.9rem; margin-bottom: 20px; }

/* Progress Bar */
.progress-bar-wrap {
    background: rgba(255,255,255,0.2);
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--aa-success); /* Vert */
    transition: width 0.5s ease;
}

/* Corps de l'outil */
.tool-body {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    border-bottom: 1px solid #eee;
}

.check-group h3 {
    font-size: 1.1rem;
    color: var(--aa-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Checkboxes Stylisées */
.check-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
    user-select: none;
}

.check-item input {
    display: none; /* Cache la checkbox native */
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
    transition: 0.2s;
}

.check-item input:checked ~ .checkmark {
    background: var(--aa-success);
    border-color: var(--aa-success);
}

.check-item input:checked ~ .checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
}

.check-item input:checked ~ .label-text {
    color: var(--aa-dark);
    font-weight: 600;
}
.label-text { color: #666; font-size: 0.95rem; line-height: 1.4; }

/* Résultat Dynamique */
.tool-result {
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ccc;
    transition: 0.3s;
}

/* --- 2. Cartes de Prix (Pricing) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.price-card.featured {
    border: 2px solid var(--aa-blue);
    background: #fdfdfd;
}

.badge-pop {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--aa-orange);
    color: black;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.price-header h3 { margin: 0; font-size: 1.2rem; color: #888; }
.price { font-size: 3rem; font-weight: 800; color: var(--aa-dark); margin: 10px 0; }
.price small { font-size: 1rem; color: #999; }

.price-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.price-features li:last-child { border-bottom: none; }

.btn-outline {
    border: 2px solid var(--aa-dark);
    color: var(--aa-dark);
    background: transparent;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}
.btn-outline:hover { background: var(--aa-dark); color: white; }

/* Formulaire simple */
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.ae-booking-form input, .ae-booking-form select {
    width: 100%; padding: 15px; border-radius: 8px; border: none; font-size: 1rem;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; }
    .tool-body { grid-template-columns: 1fr; }
}


















/* =========================================
   PAGE MENTIONS LÉGALES (Legal Design)
   ========================================= */

/* 1. Layout Principal (Grid) */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar fixe - Contenu fluide */
    gap: 50px;
    margin-top: -60px; /* Chevauchement Hero */
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

/* 2. Sidebar (Sticky) */
.legal-sidebar {
    position: sticky;
    top: 100px; /* Colle au haut de l'écran au scroll */
    height: fit-content;
}

.legal-sidebar nav {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legal-sidebar nav a {
    text-decoration: none;
    color: #666;
    padding: 12px 15px;
    border-radius: 8px;
    transition: 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
}

.legal-sidebar nav a:hover {
    background: #f4f6f8;
    color: var(--aa-blue);
}

.legal-sidebar nav a.active {
    background: var(--aa-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 91, 187, 0.2);
}

.legal-contact-box {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
}
.legal-contact-box h4 { margin: 0 0 5px; font-size: 1.1rem; }
.legal-contact-box p { color: #888; font-size: 0.9rem; margin-bottom: 15px; }

/* 3. Contenu (Cartes) */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.legal-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    scroll-margin-top: 120px; /* Pour que l'ancre ne soit pas cachée par le header */
}

/* Le Résumé "En Clair" (Innovation) */
.legal-summary {
    background: #eef6fc;
    border-left: 4px solid var(--aa-blue);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
}

.legal-card h2 {
    color: var(--aa-dark);
    margin-bottom: 20px;
    font-size: 1.6rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.legal-text {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}
.legal-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr; /* Une seule colonne */
        margin-top: 0;
    }
    
    .legal-sidebar {
        position: relative; /* Plus sticky sur mobile */
        top: 0;
        margin-bottom: 20px;
    }

    /* Transformation du menu en scroll horizontal sur mobile */
    .legal-sidebar nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 15px;
    }
    
    .legal-sidebar nav a {
        flex: 0 0 auto;
        margin-right: 10px;
    }
    
    .legal-contact-box { display: none; } /* On cache la boite contact sur mobile pour gagner de la place */
}



















/* =========================================
   PAGE CONFIDENTIALITÉ
   ========================================= */

/* Accordéon FAQ */
.privacy-faq summary::-webkit-details-marker {
    display: none;
}
.privacy-faq[open] summary {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    color: var(--aa-blue) !important;
}
.privacy-faq[open] .dashicons {
    transform: rotate(180deg);
}
.privacy-faq .dashicons {
    transition: transform 0.3s ease;
    color: #ccc;
}

/* Responsive Grid Data */
@media (max-width: 600px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
    .toggle-switch {
        transform: scale(0.9); /* Un peu plus petit sur mobile */
    }
}

















/* =========================================
   PAGE CGV (Compléments)
   ========================================= */

/* Titres H3 dans les CGV */
.legal-card h3 {
    font-size: 1.1rem;
    color: var(--aa-dark);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Puces personnalisées pour les listes CGV */
.legal-text ul {
    margin-left: 20px;
    list-style: none;
}

.legal-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.legal-text ul li::before {
    content: "•";
    color: var(--aa-orange);
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Impression propre (Quand on clique sur PDF) */
@media print {
    .site-header, .site-footer, .cgv-sidebar, .home-hero {
        display: none !important;
    }
    .cgv-page-wrapper {
        background: white !important;
    }
    .legal-content {
        width: 100% !important;
        margin: 0 !important;
    }
    .legal-card {
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
    }
    /* On ajoute le logo en haut à l'impression */
    .cgv-page-wrapper::before {
        content: "Astuce Auto - Conditions Générales";
        font-size: 20pt;
        font-weight: bold;
        display: block;
        margin-bottom: 20px;
        text-align: center;
    }
}













/* Ajout sécurité dans style.css */
.btn-outline {
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}
.btn-outline:hover {
    background: var(--aa-dark);
    color: white !important;
}




















/* =========================================
   BADGES VENDEURS (TRUST SYSTEM)
   ========================================= */

.seller-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.seller-avatar img {
    border-radius: 50%;
    border: 2px solid #eee;
}

.seller-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--aa-dark);
    margin-bottom: 5px;
}

.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 1. STYLE PRO (Orange Astuce Auto) */
.badge-pro {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.badge-pro .dashicons { color: var(--aa-orange); }

/* 2. STYLE MONITEUR (Violet - Distinctif et Sérieux) */
.badge-instructor {
    background: #e8daef; /* Lilas clair */
    color: #6c3483; /* Violet foncé */
    border: 1px solid #d2b4de;
}
.badge-instructor .dashicons { color: #8e44ad; }

/* 3. STYLE PARTICULIER (Neutre) */
.badge-private {
    background: #f0f2f5;
    color: #606770;
    border: 1px solid #ccd0d5;
}

.member-since {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}




















/* =========================================
   GRID MARQUES AVEC LOGOS
   ========================================= */

.marques-grid {
    display: grid;
    /* Grille responsive auto-adaptative : des cases de 140px minimum */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.marque-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%; /* Uniformise la hauteur */
}

.marque-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--aa-blue);
}

/* Le Conteneur du Logo */
.marque-logo-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.marque-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Le logo ne sera jamais déformé */
    filter: grayscale(100%); /* Optionnel : Logo en noir et blanc par défaut */
    opacity: 0.8;
    transition: 0.3s;
}

.marque-card:hover .marque-logo-wrap img {
    filter: grayscale(0%); /* Le logo reprend ses couleurs au survol */
    opacity: 1;
    transform: scale(1.1);
}

/* Fallback (Lettre si pas d'image) */
.marque-letter {
    font-size: 2rem;
    font-weight: 800;
    color: #ddd;
}

/* Textes */
.marque-name {
    display: block;
    color: var(--aa-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.marque-count {
    display: block;
    font-size: 0.8rem;
    color: #999;
}
















/* =========================================
   PAGE ARCHIVE MARQUE (Template)
   ========================================= */

/* 1. HERO HEADER */
.marque-hero {
    background: var(--aa-dark); /* Fond Sombre */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding-top: 60px;
    padding-bottom: 150px; /* Espace pour la vague */
    position: relative;
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.marque-big-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.marque-big-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.big-letter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--aa-dark);
}

.badge-count {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--aa-orange);
    border: 1px solid rgba(255,177,26, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.marque-header-text h1 {
    font-size: 2.5rem;
    margin: 15px 0 10px;
    font-weight: 800;
}

.marque-header-text p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* 2. GRILLE VÉHICULES (Réutilisable) */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Carte Véhicule Moderne */
.vehicle-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.vehicle-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-img-wrap {
    height: 200px;
    position: relative;
    background: #eee;
}

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

.card-badge-annee {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    margin: 0 0 15px;
    line-height: 1.4;
}

.card-title a {
    color: var(--aa-dark);
    text-decoration: none;
}

.card-specs {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px 8px;
    border-radius: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--aa-orange);
}

.btn-view {
    color: var(--aa-blue);
    font-weight: 700;
    text-decoration: none;
}

/* Pagination */
.pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.pagination-wrap .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: white;
    margin: 0 5px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--aa-dark);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.pagination-wrap .current {
    background: var(--aa-blue);
    color: white;
}














