/* Polices web : sans elles, Windows affichait Segoe UI et macOS retombait
   sur Tahoma/Geneva, d'où un rendu radicalement différent selon la machine. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   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;

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-title: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, input, textarea, select, button {
    font-family: var(--font-body);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .section-title {
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

/* Accessibilité - Focus */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

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;
    /* clamp() : le titre se réduit tout seul sur petit écran au lieu de déborder */
    font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem);
    color: var(--text-dark);
    text-transform: uppercase;
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 40px;
    text-wrap: balance;
}

/* 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 {
    display: flex;
    align-items: center;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s;
}
.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); }

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 30px;
}
.dropdown .dropbtn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}
.dropdown:hover .dropbtn { color: var(--primary-color); }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.dropdown-content a {
    color: #444;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover {
    background-color: #fbfbfc;
    color: var(--primary-color);
}
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer : 4 colonnes alignées en haut, puis une barre légale en bas. */
footer {
    background-color: var(--white);
    color: #333;
    /* Le bas est dégagé pour que le bouton « retour en haut » flottant
       ne recouvre pas les liens légaux une fois la page défilée à fond. */
    padding: 70px 20px 95px;
    border-top: 1px solid #eee;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    align-items: start;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-heading {
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.footer-brand {
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}
.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}
.footer-meta {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #777;
    margin-bottom: 22px;
}
.footer-links {
    list-style: none;
}
.footer-links li + li { margin-top: 9px; }
.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-color); }

.footer-social {
    list-style: none;
    display: flex;
    gap: 10px;
}
.footer-social a {
    color: #333;
    font-size: 1.1rem;
    background-color: #f2f4f5;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s, background-color 0.3s, transform 0.3s;
}
.footer-social a:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-certifications { text-align: center; }
.footer-certif-logo { max-width: 200px; }
.footer-label-logo { max-width: 130px; margin-top: 18px; }
.footer-certif-note {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #666;
    margin-top: 10px;
}
.footer-certif-note strong { color: #c0392b; }

.footer-bottom {
    max-width: 1200px;
    margin: 45px auto 0;
    padding-top: 22px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.footer-copy { font-size: 0.8rem; color: #888; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom-links a {
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--primary-color); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-certifications { grid-column: 1 / -1; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
}


/* ============================================================
   PARTIE 3 : PAGE D'ACCUEIL SPÉCIFIQUE
   ============================================================ */
/* ============================================================
   PARTIE 3 : PAGE D'ACCUEIL SPÉCIFIQUE
   ============================================================ */
/* Hero section avec Vidéo */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    /* Réserve la hauteur de la navbar fixe, sinon le titre passe dessous
       dès que la fenêtre est basse (cas typique des écrans de portable). */
    padding-top: 100px;
    padding-bottom: 40px;
}
.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.45); /* Overlay plus sombre pour faire ressortir le texte blanc */
    z-index: -1;
}
.hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-content h1 { font-size: clamp(2.4rem, 1.2rem + 4.5vw, 4.5rem); line-height: 1.05; margin-bottom: 25px; font-weight: 800; text-transform: uppercase; color: #ffffff !important; text-shadow: 0 4px 15px rgba(0,0,0,0.5); text-wrap: balance; }
.hero-content p { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); margin-bottom: 40px; line-height: 1.6; color: #ffffff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.5); font-weight: 400;}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 10px 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background-color: var(--white); color: var(--primary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-secondary { background-color: var(--primary-color); color: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-primary:hover, .btn-secondary:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* 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;
    /* Forcer le layout 2x2 comme sur Wix */
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px; /* Contient la grille au centre */
    margin: 0 auto;
}
.form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column; /* Centrage vertical comme sur Wix */
    align-items: center;
    text-align: center;
    gap: 20px;
    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(-8px); 
    border-color: var(--primary-color); 
    box-shadow: 0 12px 35px rgba(11, 151, 157, 0.15);
}
.card-icon-wrapper {
    position: relative;
    width: 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 10px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(11, 151, 157, 0.10), rgba(11, 151, 157, 0.02));
    transition: background 0.3s ease;
}
.form-card:hover .card-icon-wrapper {
    background: linear-gradient(145deg, rgba(11, 151, 157, 0.20), rgba(11, 151, 157, 0.05));
}
.vraie-tache-1::after { content: ''; position: absolute; width: 150%; height: 150%; background: url('image1.png') center/contain no-repeat; z-index: 1; opacity: 0.15; }
.vraie-tache-2::after { content: ''; position: absolute; width: 150%; height: 150%; background: url('image2.png') center/contain no-repeat; z-index: 1; opacity: 0.15; }
.vraie-tache-3::after { content: ''; position: absolute; width: 150%; height: 150%; background: url('image3.png') center/contain no-repeat; z-index: 1; opacity: 0.15; }

.picto-custom {
    width: 52px;
    height: 52px;
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}
.form-card:hover .picto-custom { transform: scale(1.12); color: var(--primary-color); }

.card-content-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.card-content-new h3 { color: var(--text-dark); font-size: 1.4rem; margin-bottom: 12px; font-weight: 800; }
.card-content-new p { color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }

.badge-blue, .badge-gold { 
    color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; margin-bottom: 15px; display: inline-block; 
}
.badge-blue { background-color: #4a8c9b; }
.badge-gold { background-color: #b89b6b; }

.btn-card-new { 
    background-color: #4a8c9b; color: var(--white); padding: 12px 25px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 0.95rem; 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: 10px 20px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; height: auto !important; align-items: center; }
    .navbar.scrolled { padding: 10px 20px; height: auto !important; }
    .mobile-menu-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; text-align: center; background: var(--white); padding: 20px 0; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-top: 10px; }
    .nav-links.active { display: flex; animation: fadeInDown 0.3s ease; }
    .nav-links > a { margin: 10px 0; margin-left: 0; font-size: 1.1rem; }
    
    /* Hero Accueil */
    .hero-content h1 { font-size: 2.5rem; }
    
    /* Grilles et Cartes (Corrige le chevauchement) */
    .formations-b-grid { grid-template-columns: 1fr; gap: 25px; }
    .form-card { flex-direction: column; text-align: center; padding: 20px; }
    .card-content-new { align-items: center; text-align: center; }
    
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-cards { gap: 20px !important; }
    .card { flex: 0 1 100% !important; max-width: 100%; }
    
    /* Sous-pages (Hero et Débordement Tache) */
    .hero-sub-content { flex-direction: column; text-align: center; }
    .hero-subpage { padding-top: 50px; }
    .hero-sub-img::before {
        width: 350px; height: 350px; right: -50px; top: 0;
    }
    
    /* Grille Avantages AAC */
    .avantages-new-grid {
        grid-template-columns: 1fr; gap: 25px;
    }
}

/* Fix du décalage des ancres (quand le menu fixed cache le titre) */
section[id], .section-container[id] {
    scroll-margin-top: 130px;
}

/* ============================================================
   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;
}
/* Animations au scroll */
/* L'état masqué n'est appliqué que si le JS tourne (classe .js posée par script.js).
   Sans ce garde-fou, une erreur JS laissait des sections entières invisibles. */
.js .animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.js .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .js .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* Alignement des cartes flex/grid pour eviter etirement */
.reglement-grid, .permis-grid, .feature-grid { align-items: start; }
.btn-primary-dark, .btn-primary, .btn-secondary, .btn-card { display: inline-flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; line-height: 1.5; gap: 10px; }

/* Espacement des boutons du hero */
.hero-buttons {
    margin-top: 40px;
}

/* Bouton Retour en haut */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; background: var(--primary-color); color: white; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 999; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-5px); color: white; }
