/* ============================================================
   PARTIE 1 : VARIABLES & STYLES GLOBAUX
   ============================================================ */
:root {
    --primary-color: #0b979d; /* Le fameux vert/bleu d'Antony Conduite / VLB */
    --secondary-color: #2b3a4a;
    --bg-light: #fbfbfc;
    --text-dark: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden; /* Évite la barre de scroll si les taches dépassent */
}

/* Conteneurs et Titres partagés sur toutes les pages */
.section-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: left;
    font-size: 2.2rem;
    color: var(--text-dark);
    text-transform: uppercase;
    font-family: 'Arial Narrow', 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

/* Nuages aquarelles en fond de site */
.tache-fond {
    position: fixed;
    z-index: -1;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
}
.tache-1 { width: 800px; height: 800px; top: -100px; left: -200px; }
.tache-2 { width: 700px; height: 700px; bottom: -100px; right: -150px; }
.tache-3 { width: 700px; height: 700px; top: 40%; left: 20%; opacity: 0.25; }

/* Boutons globaux */
.btn-outline {
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    color: var(--primary-color) !important;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}


/* ============================================================
   PARTIE 2 : HEADER & FOOTER (Menu et bas de page)
   ============================================================ */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 100px;
}
.navbar.scrolled {
    height: 70px;
    padding: 0 50px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.logo { 
    max-height: 75px; 
    width: auto;
    transition: all 0.3s ease; 
}
.navbar.scrolled .logo { max-height: 45px; }

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 30px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-color); }

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 60px 20px 20px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}
.footer-col h3 { color: var(--white); margin-bottom: 20px; }
.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.social-icons a:hover { color: var(--primary-color); }
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}


/* ============================================================
   PARTIE 3 : PAGE D'ACCUEIL SPÉCIFIQUE
   ============================================================ */
/* Hero section avec Vidéo */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}
.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; line-height: 1.6; }

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 10px;
    transition: transform 0.2s;
}
.btn-primary { background-color: var(--white); color: var(--primary-color); }
.btn-secondary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover, .btn-secondary:hover { transform: scale(1.05); }

/* Bannière Atouts (3 colonnes) */
.banner-atouts {
    background-color: var(--secondary-color);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.atout-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Financements (2 colonnes) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}
.financement-texte h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}


/* ============================================================
   PARTIE 4 : LES CARTES DE FORMATIONS (Auto & Moto & Avis)
   ============================================================ */
/* Cartes AUTO (Avec SVG et Images Taches) */
.formations-b-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}
.form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s, border-color 0.3s;
    border: 1px solid #eee;
}
.form-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary-color); 
}
.card-icon-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.vraie-tache-1 { background-image: url('image1.png'); }
.vraie-tache-2 { background-image: url('image2.png'); }
.vraie-tache-3 { background-image: url('image3.png'); }

.picto-custom {
    width: 65px;
    height: 65px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.form-card:hover .picto-custom { transform: scale(1.15) rotate(-3deg); }

.card-content-new {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.card-content-new h3 { color: var(--text-dark); font-size: 1.25rem; margin-bottom: 8px; font-weight: 800; }
.card-content-new p { color: #555; font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; }

.badge-blue, .badge-gold { 
    color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 12px; display: inline-block; 
}
.badge-blue { background-color: #4a8c9b; }
.badge-gold { background-color: #b89b6b; }

.btn-card-new { 
    background-color: #4a8c9b; color: var(--white); padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: background-color 0.3s; border: none; 
}
.btn-card-new:hover { background-color: #356b78; color: var(--white) !important; }

/* ---------------------------------------------------
   CARTES MOTO, AVIS ET FORFAITS (CENTRAGE ABSOLU 🐐)
   --------------------------------------------------- */
.grid-cards {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* C'est ça qui centre tout au milieu ! */
    gap: 30px !important;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    /* flex: 0 1 320px empêche l'étirement et bloque la taille de la carte */
    flex: 0 1 320px !important; 
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border: 1px solid #bce1d4;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(11, 151, 157, 0.1); 
}

.card-badge {
    background-color: var(--primary-color); color: var(--white); text-align: center; padding: 8px 10px; font-size: 0.9rem; font-weight: bold; margin-bottom: 20px; border-radius: 20px;
}
.card-img-container {
    text-align: center; margin-bottom: 20px; min-height: 160px; display: flex; align-items: center; justify-content: center; position: relative;
}
.card-img-container::before {
    content: ''; position: absolute; width: 140px; height: 140px; background: radial-gradient(circle, rgba(11,151,157,0.15) 0%, rgba(255,255,255,0) 70%); z-index: 0;
}
.card-img-container img { max-width: 90%; max-height: 140px; height: auto; position: relative; z-index: 1; transition: transform 0.3s; }
.card:hover .card-img-container img { transform: scale(1.08); }
.card-content { text-align: left; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { color: var(--text-dark); margin-bottom: 12px; font-size: 1.1rem; text-transform: uppercase; }
.card-content p { color: #555; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }
.btn-card { color: var(--primary-color); text-decoration: none; font-size: 0.95rem; font-weight: 600; text-align: center; }
.btn-card:hover { font-weight: bold; }


/* ============================================================
   PARTIE 5 : SOUS-PAGES SPÉCIFIQUES (Bandeau et Listes)
   ============================================================ */
.hero-subpage {
    padding-top: 150px;
    padding-bottom: 50px;
    background-color: var(--bg-light);
    position: relative;
    overflow: visible;
}
.hero-sub-content {
    max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 40px; padding: 0 20px;
}
.hero-sub-text { flex: 2; position: relative; z-index: 10; }
.hero-sub-img { 
    flex: 1; text-align: center; position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-sub-img img { 
    max-width: 115%; height: auto; position: relative; z-index: 5; 
}

/* La tache aquarelle qui déborde à droite */
.hero-sub-img::before {
    content: "";
    position: absolute;
    width: 650px; height: 650px;
    top: -120px; right: -200px; 
    background-image: url('image2.png');
    background-size: contain; background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.btn-primary-dark {
    background-color: var(--secondary-color); color: var(--white); padding: 15px 30px; border-radius: 30px; text-decoration: none; font-weight: bold; display: inline-block; transition: background 0.3s;
}
.btn-primary-dark:hover { background-color: var(--primary-color); }

/* Listes à puces V check pour forfaits */
.list-check {
    list-style: none; text-align: left; padding: 0;
}
.list-check li {
    margin-bottom: 10px; font-size: 0.95rem; color: #555;
}
.list-check li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--primary-color); margin-right: 10px;
}


/* ============================================================
   PARTIE 6 : SECTION AVANTAGES (Infographie Premium AAC)
   ============================================================ */
.avantages-new-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.avantage-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: transform 0.3s;
}
.avantage-header {
    display: flex; align-items: flex-end; margin-bottom: 20px; position: relative;
}
.avantage-num {
    font-size: 4.8rem; font-weight: 900; color: #f0f7f7; line-height: 0.7; font-family: 'Arial Black', sans-serif; position: relative; transition: color 0.3s;
}
.avantage-icon-bg {
    width: 45px; height: 45px; background-color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; margin-left: -20px; margin-bottom: -5px; box-shadow: 0 4px 10px rgba(11, 151, 157, 0.2); z-index: 2;
}
.avantage-text h3 {
    font-size: 1.05rem; color: var(--secondary-color); margin-bottom: 10px; font-weight: 800; text-transform: uppercase;
}
.avantage-text p {
    font-size: 0.95rem; color: #666; line-height: 1.5; text-align: left;
}
.avantage-item:hover { transform: translateY(-8px); }
.avantage-item:hover .avantage-num { color: #e2f2f2; }


/* ============================================================
   PARTIE 7 : SECTION FAQ (Accordéon Premium)
   ============================================================ */
.faq-section { 
    margin-top: 60px; 
    margin-bottom: 60px;
}
.faq-container { 
    max-width: 800px; 
    margin: 0 auto; 
}
.faq-item {
    background: var(--white);
    border: 1px solid #e0f0ea;
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.faq-item:hover { 
    box-shadow: 0 8px 25px rgba(11, 151, 157, 0.1);
    border-color: #bce1d4;
}
.faq-item summary {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--secondary-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
.faq-item summary:hover, 
.faq-item summary:focus, 
.faq-item summary:active {
    color: var(--primary-color);
    outline: none;
    text-decoration: none;
}
.faq-item summary::-webkit-details-marker { 
    display: none; 
}
.faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(11, 151, 157, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.faq-item[open] summary::after { 
    transform: rotate(-180deg); 
    background: var(--primary-color);
    color: white;
}
.faq-item p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0f0ea;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   PARTIE 8 : SCORE GLOBAL (Avis Google Uniquement)
   ============================================================ */
.scores-globaux-container {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 50px auto 0 auto;
}
.score-bloc {
    width: 100%;
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.score-bloc:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.15);
}
.score-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.score-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.score-body {
    margin-bottom: 10px;
}
.score-note {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
}
.score-max {
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.8;
}
.score-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
}
.btn-score {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 280px;
}
.btn-score:hover {
    transform: translateY(-3px);
}
.btn-google {
    background-color: #4285F4;
    color: white;
}
.btn-google:hover {
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4);
    color: white !important;
}


/* ============================================================
   PARTIE 9 : RESPONSIVE GLOBAL (Mobiles et Tablettes)
   ============================================================ */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { padding: 15px 20px; flex-direction: column; gap: 15px; height: auto; }
    .navbar.scrolled { padding: 10px 20px; height: auto; }
    .nav-links a { margin: 0 10px; font-size: 0.9rem; }
    
    /* Hero Accueil */
    .hero-content h1 { font-size: 2.5rem; }
    
    /* Cartes Auto Verticales */
    .form-card { flex-direction: column; text-align: center; }
    .card-content-new { align-items: center; text-align: center; }
    
    /* Sous-pages (Hero et Débordement Tache) */
    .hero-sub-content { flex-direction: column; text-align: center; }
    .hero-subpage { padding-top: 130px; }
    .hero-sub-img::before {
        width: 350px; height: 350px; right: -50px; top: 0;
    }
    
    /* Grille Avantages AAC */
    .avantages-new-grid {
        grid-template-columns: 1fr; gap: 25px;
    }
}

/* ============================================================
   PAGE CONTACT (Formulaire & Maps)
   ============================================================ */
.contact-infos-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
    border: 1px solid #f0f7f7;
}

.info-line {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-line i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(11, 151, 157, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-line h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-line p, .info-line a {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s;
}

.info-line a:hover {
    color: var(--primary-color);
    font-weight: bold;
}

.contact-form-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
    border: 1px solid #f0f7f7;
}

.custom-form .input-group {
    margin-bottom: 20px;
}

.custom-form input, .custom-form select, .custom-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.custom-form input:focus, .custom-form select:focus, .custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 151, 157, 0.1);
    background-color: white;
}

.custom-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    height: 450px;
}