/* =========================================
   1. RESET & BASE & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Varela+Round&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* COULEURS PRINCIPALES */
    --kumon-blue: #7dcff9;   /* Bleu Ciel Vif (Thème) */
    --kumon-dark: #333333;   /* Gris Foncé (Texte) */
    
    /* COULEURS D'ACTION (BOUTONS) */
    --kumon-cta: #ffb200;    /* Jaune Or */
    --kumon-accent: #008CBA; /* Bleu Profond (Liens) */
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--kumon-dark);
    
    /* FOND DÉGRADÉ FIXE (LUMINEUX) */
    background: linear-gradient(to bottom, #dff6fc 0%, #ffffff 100%);
    background-attachment: fixed; /* Le fond ne bouge pas au scroll */
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Varela Round', sans-serif;
    color: var(--kumon-dark);
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* =========================================
   2. UTILITAIRES & BOUTONS (DESIGN JAUNE)
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 60px 0; }
.text-center { text-align: center; }

/* BOUTONS (Nouveau Style Jaune & Gris) */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700; /* Gras */
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--kumon-cta);
    color: var(--kumon-dark); /* Texte Gris sur fond Jaune */
    border: 2px solid var(--kumon-cta);
}

.btn-primary:hover {
    background-color: white;
    color: var(--kumon-dark);
    border-color: var(--kumon-cta);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 178, 0, 0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-full { width: 100%; }

.text-link {
    color: var(--kumon-accent);
    font-weight: bold;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.site-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Navigation Principale */
.main-nav > ul { 
    display: flex; 
    gap: 25px; 
    align-items: center;
}

.main-nav li { position: relative; }

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    padding: 10px 0;
    display: block;
}

.main-nav a:hover, .main-nav a.active-link {
    color: var(--kumon-accent);
}

/* Menu Déroulant */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    border-radius: 8px;
    z-index: 9999;
    flex-direction: column;
    padding: 10px 0;
    border-top: 3px solid var(--kumon-blue);
}

.dropdown-menu li { width: 100%; }

.dropdown-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-menu li a:hover {
    background-color: #f0f9fb;
    color: var(--kumon-blue);
}

.dropdown:hover .dropdown-menu { display: flex; }

/* =========================================
   4. BANDEAUX DE PAGES (SIMPLIFIÉS)
   ========================================= */
/* On enlève les fonds colorés pour laisser voir le dégradé du body */
.page-header {
    padding: 60px 0 40px 0;
    text-align: center;
    background: transparent; /* Transparent ! */
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
    color: var(--kumon-blue); /* Le titre devient Bleu pour ressortir */
    text-shadow: 2px 2px 0px white; /* Petit contour blanc subtil */
}

.breadcrumb {
    font-size: 0.95rem;
    color: #777;
    margin-top: 15px;
    font-weight: 600;
}

/* =========================================
   5. CONTENU GÉNÉRAL (ACCUEIL & PAGES)
   ========================================= */
.page-content {
    margin-bottom: 80px;
}

/* Intro Blocks */
.intro-block {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-block h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--kumon-dark);
}

/* Hero Section (Accueil) */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 60px; /* Espace après le hero */
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; color: white; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 30px; }

/* =========================================
   6. MODULES SPÉCIFIQUES (MATHS, ANGLAIS, NIVEAUX)
   ========================================= */

/* Grilles Générales (Cards) */
.pillars-grid, .age-benefits-grid, .maths-benefits, .pillars-4-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

/* Configuration des colonnes responsive */
.pillars-grid, .age-benefits-grid, .pillars-4-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.maths-benefits {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Style des Cartes (Fond Blanc pour contraster avec le body) */
.pillar-card, .age-benefit-card, .benefit-item, .pillar-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Ombre douce */
    border: 1px solid rgba(255,255,255,0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

.pillar-card:hover, .age-benefit-card:hover, .pillar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(125, 207, 249, 0.2); /* Ombre bleutée au survol */
}

/* Icônes */
.icon-box, .benefit-icon, .icon-circle {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}
.icon-circle {
    width: 80px;
    height: 80px;
    background-color: #f0f9fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--kumon-blue);
    font-size: 2.5rem;
}

/* Timeline (Maths/Anglais) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 20px;
    border-radius: 2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 12px;
    background-color: white;
    border: 4px solid var(--kumon-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-content {
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--kumon-blue);
}
.tag {
    display: inline-block;
    background: #eefbfd;
    color: var(--kumon-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 10px;
}

/* =========================================
   7. PAGE TARIFS & CONTACT & CENTRE
   ========================================= */

/* Tarifs Cards */
.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 350px;
    position: relative;
    border: 1px solid #fff;
}
.featured-card {
    transform: scale(1.05);
    border: 2px solid var(--kumon-blue);
    box-shadow: 0 20px 40px rgba(125, 207, 249, 0.2);
    z-index: 2;
}
.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--kumon-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--kumon-dark);
    font-family: 'Varela Round', sans-serif;
    margin: 10px 0;
}

/* Contact Grid */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.info-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid var(--kumon-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* Formulaires */
.kumon-form input, .kumon-form select, .kumon-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    margin-bottom: 20px;
    background: #fafafa;
}
.kumon-form input:focus, .kumon-form textarea:focus {
    border-color: var(--kumon-blue);
    background: white;
    outline: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Bio Instructeur (Page Centre) */
.instructor-bio-section {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    align-items: center;
}
.photo-placeholder {
    width: 100%;
    height: 350px;
    background-color: #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.bio-image { flex: 1; }
.bio-text { flex: 1.5; }

/* Galerie et Journée Type */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.steps-flow {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.step {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--kumon-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-weight: bold;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: #222;
    color: #ccc;
    padding-top: 60px;
    margin-top: 80px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--kumon-blue); }
.footer-bottom {
    background: #111;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* =========================================
   9. RESPONSIVE (MOBILE)
   ========================================= */
.mobile-menu-toggle { display: none; }

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .main-nav.active { display: block; }
    .main-nav > ul { flex-direction: column; text-align: center; }
    
    .cta-header { display: none; }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        border-top: none;
    }
    .dropdown:hover .dropdown-menu { display: flex; }

    /* Ajustements Grids Mobile */
    .contact-wrapper, .instructor-bio-section { grid-template-columns: 1fr; flex-direction: column; }
    .pricing-grid { flex-direction: column; }
    .featured-card { transform: scale(1); }
    .form-row { grid-template-columns: 1fr; }
    .steps-flow { flex-direction: column; }
    .step { width: 100%; }
    
    .page-header h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
}