/* --- VARIABLES ET BASES --- */
:root {
    --primary-color: #00cc99;
    --dark-blue: #333366;
    --light-grey: #f8f9fa;
    --text-dark: #1a1a1a;
    --white: #ffffff;
}

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

body { 
    font-family: 'Alata', sans-serif; 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

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

/* --- HEADER --- */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0; 
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

.nav-menu { 
    margin-left: auto; 
    margin-right: 30px; 
}

.nav-menu ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
}

.nav-menu ul li a { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-size: 0.95rem; 
    transition: color 0.3s; 
}

.nav-menu ul li a:hover { 
    color: var(--primary-color); 
}

/* --- BOUTONS --- */
.btn-catalogue {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-catalogue:hover { 
    transform: translateY(-2px); 
    filter: brightness(1.1); 
}

.btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* --- SECTION HERO --- */
.hero-section { 
    background-color: var(--light-grey); 
    padding: 60px 0; 
}

.hero-title { 
    font-family: 'Roboto Slab', serif; 
    text-align: center; 
    font-size: clamp(1.8rem, 5vw, 2.8rem); 
    margin-bottom: 50px; 
}

.hero-content { 
    display: flex; 
    gap: 60px; 
    align-items: center; 
}

.hero-image img { 
    width: 100%; 
    max-width: 500px; 
    border-radius: 10px; 
}

.hero-text { flex: 1; }
.hero-text p { font-size: 1.1rem; margin-bottom: 25px; }

/* --- SECTION STATISTIQUES --- */
.stats-section { 
    background-color: var(--dark-blue); 
    color: var(--white); 
    padding: 80px 0; 
}

.stats-main-title { 
    text-align: center; 
    margin-bottom: 50px; 
    font-weight: 400; 
}

.stats-grid { 
    display: flex; 
    gap: 20px; 
}

.stat-card {
    flex: 1;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number { 
    font-size: 3.5rem; 
    font-weight: bold; 
    color: var(--primary-color); 
    line-height: 1; 
    margin-bottom: 15px; 
}

/* --- PARTENAIRES --- */
.partners-section { padding: 40px 0; text-align: center; }
.partners-flex { display: flex; justify-content: center; gap: 60px; align-items: center; }
.partner-logo { height: 80px; opacity: 0.8; }

/* --- FOOTER --- */
.footer-top { 
    background-color: var(--primary-color); 
    padding: 40px 0; 
}

.footer-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* AJUSTEMENT DU LOGO FOOTER */
.footer-logo-sigle {
    height: 50px; /* Taille réduite du logo */
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-contact { 
    background: #000; 
    color: #fff; 
    padding: 15px 35px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
}

.footer-bottom { 
    background: #000; 
    color: #fff; 
    padding: 15px 0; 
    font-size: 0.85rem; 
}

.footer-bottom a { 
    color: #fff; 
    text-decoration: underline; 
}

/* --- MENU HAMBURGER & RESPONSIVE --- */
.menu-checkbox { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    padding: 7px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span { 
    width: 100%; 
    height: 3px; 
    background: white; 
    transition: 0.3s; 
}

.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 992px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0; 
        left: 0;
        width: 100%; 
        height: 100vh;
        background: var(--primary-color);
        margin: 0;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1500;
    }

    .menu-checkbox:checked ~ .nav-menu { 
        display: flex; 
    }

    .nav-menu ul { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px; 
    }

    .nav-menu ul li a { 
        color: white; 
        font-size: 1.8rem; 
        font-weight: bold; 
    }
    
    .nav-menu .btn-catalogue {
        background: white;
        color: var(--primary-color);
        font-size: 1.2rem;
        padding: 15px 40px;
    }

    .hero-content { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .stats-grid { 
        flex-direction: column; 
    }
    
    .footer-flex { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center; 
    }
}

/* --- PAGE FINANCEMENTS (Version Attractive) --- */
.finance-intro {
    padding: 80px 0 50px;
    background-color: var(--white);
    text-align: center;
}

.finance-main-title {
    font-family: 'Roboto Slab', serif;
    color: var(--dark-blue); /* Titre principal en bleu nuit pour le contraste */
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.finance-grid-section {
    padding-bottom: 80px;
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.finance-card {
    background: var(--primary-color); /* Fond vert émeraude */
    padding: 45px 35px;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 204, 153, 0.2); /* Ombre légère verte */
}

.finance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.finance-title {
    color: #000; /* Titres en noir pour une lisibilité maximale */
    font-family: 'Roboto Slab', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.finance-desc {
    color: var(--white); /* Texte en blanc */
    font-size: 1.05rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.finance-list {
    list-style: none;
}

.finance-list li {
    color: var(--white); /* Texte des puces en blanc */
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.finance-list li strong {
    color: #000; /* Les points clés en gras passent en noir pour ressortir */
}

.finance-list li::before {
    content: "✓"; /* On remplace la puce par un check pour le côté positif */
    color: #000;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .finance-grid { grid-template-columns: 1fr; }
    .finance-main-title { font-size: 2rem; }
}


/* --- PAGE CONTACT HARMONISÉE --- */
.contact-page {
    background-color: var(--light-grey); /* Même gris clair que la page d'accueil */
    padding: 100px 0;
    min-height: 80vh;
}

.contact-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-title {
    font-family: 'Roboto Slab', serif; /* Même police que le titre accueil */
    color: var(--primary-color); /* Titre en vert */
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.contact-subtitle a {
    color: #1a1a1a; /* Noir par défaut */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-subtitle a:hover {
    color: var(--primary-color); /* Vert au survol */
}

/* Espacement entre les blocs du formulaire */
.form-group {
    margin-bottom: 35px; /* Augmentation de l'espace entre chaque champ */
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 12px; /* Plus d'espace entre le libellé et le champ */
    color: #333;
    font-weight: bold;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 18px; /* Champs plus hauts pour plus de confort visuel */
    border: 1px solid #ddd;
    background-color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 4px; /* Un très léger arrondi pour la modernité */
}

/* Espacement spécifique pour la case à cocher */
.form-checkbox {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 40px; /* Espace avant le bouton envoyer */
    align-items: flex-start;
}

/* Changement du highlight bleu en vert au clic */
.form-group input:focus, 
.form-group textarea:focus {
    border: 2px solid var(--primary-color);
}

.btn-submit {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 15px 60px;
    font-weight: bold;
    cursor: pointer;
    float: right;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container { flex-direction: column; gap: 40px; }
    .contact-title { font-size: 2.2rem; }
    .btn-submit { width: 100%; float: none; }
}





/* --- PAGE MENTIONS LÉGALES --- */
.legal-page {
    background-color: var(--white); /* Fond blanc pour une lecture claire */
    padding: 80px 0;
    line-height: 1.7;
}

.legal-container {
    max-width: 800px; /* On réduit la largeur pour le confort de lecture */
    margin: 0 auto;
}

.legal-main-title {
    font-family: 'Roboto Slab', serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-title {
    font-family: 'Roboto Slab', serif;
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.legal-section h3 {
    font-size: 1.1rem;
    margin: 25px 0 10px 0;
    color: var(--primary-color);
}

.legal-section p {
    margin-bottom: 15px;
    color: #444;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section ul li {
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-separator {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 50px 0;
}

.legal-update {
    font-style: italic;
    font-size: 0.9rem;
    color: #888;
    margin-top: 60px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-main-title { font-size: 1.8rem; }
    .legal-title { font-size: 1.3rem; }
}





/* --- PAGE FAQ --- */
.faq-page {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-main-title {
    font-family: 'Roboto Slab', serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: left;
}

.faq-container {
    max-width: 90%; /* Lignes séparatrices à 90% */
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Alata', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: left;
    transition: all 0.3s ease; /* Animation au survol */
}

.faq-question:hover {
    color: var(--primary-color);
    padding-left: 10px; /* Petit effet de décalage au survol */
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Le + devient un x */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Effet amorti élégant */
}

.faq-answer p {
    padding-bottom: 25px;
    line-height: 1.6;
    color: #555;
    font-size: 1.05rem;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Hauteur suffisante pour le texte */
}




/* --- PAGE FORMATIONS --- */
.formations-page {
    background-color: var(--light-grey); /* Même fond que l'index */
    padding-bottom: 80px;
}

.formations-intro {
    padding: 80px 0 40px;
    text-align: center;
}

.formations-main-title {
    font-family: 'Roboto Slab', serif;
    color: var(--text-dark);
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grille de 3 blocs par ligne */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.formation-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.card-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #555;
}

/* Adaptation du bouton pour la carte */
.formation-card .btn-catalogue {
    align-self: flex-start;
    text-align: center;
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .formations-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 blocs par ligne sur tablette */
    }
}

@media (max-width: 650px) {
    .formations-grid {
        grid-template-columns: 1fr; /* 1 bloc par ligne sur mobile */
    }
    .formations-main-title {
        font-size: 2rem;
    }
}


/* --- STYLES POPUP (MODAL) --- */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-modal:hover { color: var(--primary-color); }

.modal-body h2 {
    font-family: 'Roboto Slab', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-body p { font-size: 1.1rem; color: #444; }