/*
================================
1. Réinitialisation et Variables
================================
*/
:root {
    /* Couleurs : Bleu (principal) et Vert (accent/titres) */
    --primary-color: #003366;      /* Bleu Marine Profond */
    --secondary-color: #009966;    /* Vert Émeraude (Accent, Titres, CTA) */
    --highlight-color: #ffcc00;    /* Jaune vif (Surlignage spécifique) */
    --background-light: #f4f7f9;   /* Fond gris très clair */
    --text-dark: #333;
    --text-light: #fff;

    /* Typographie */
    --font-primary: 'Poppins', sans-serif;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    /* FLEXBOX pour centrer le contenu de la page */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* ================================
2. Éléments Généraux
================================
*/
.main-content {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Les titres passent en vert */
h1, h2, h3 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: var(--secondary-color); /* VERT pour les titres */
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 10px;
}

/* Soulignement de style pour les titres H2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color); /* Vert */
    margin: 10px auto 0;
}

p {
    margin-bottom: 1em;
}

/* Mise en évidence du texte gras (Bleu) */
strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Nombres de statistiques en vert */
.stat-number {
    color: var(--secondary-color); /* Vert */
    font-weight: 700;
}

.content-section {
    padding: 60px 0;
}

/* Boutons d'appel à l'action (CTA) en Vert */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color); /* Vert */
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-color); /* Bleu Marine au survol */
    transform: translateY(-2px);
}

.large-cta {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* Section de fond (Hero et Contact) en Bleu */
.highlight-bg {
    background-color: var(--primary-color); /* Bleu Marine */
    color: var(--text-light);
    padding: 40px;
}

.highlight-bg h2, .highlight-bg p {
    color: var(--text-light);
}

/* ================================
3. HEADER (Flexbox)
================================
*/
.main-header {
    background-color: var(--primary-color); /* Bleu Marine */
    color: var(--text-light);
    padding: 15px 20px;
    /* FLEXBOX pour aligner le logo et la navigation */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: color 0.3s;
}

.main-nav a:hover:not(.cta-button) {
    color: var(--highlight-color); /* Jaune */
}

/* ================================
4. HERO SECTION
================================
*/
.hero-section {
    background-color: var(--primary-color); /* Bleu Marine */
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 0;
}

.hero-section h1 {
    color: var(--text-light); /* Le H1 du hero reste Blanc/Clair pour le contraste */
    margin: 0.2em 0;
    font-size: 3.5rem;
}

.hero-section .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.tagline {
    font-weight: 600;
    color: var(--highlight-color); /* Jaune */
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ================================
5. ABOUT SECTION (Grid pour les statistiques)
================================
*/
.about-section {
    text-align: center;
}

.stats-grid {
    /* GRID pour une mise en page en colonnes */
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.stat-item {
    background-color: var(--text-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* ================================
6. PROGRAM SECTION (Flexbox pour les cartes)
================================
*/
.program-section {
    background-color: var(--background-light);
    text-align: center;
}

.conf-cards-container {
    /* FLEXBOX pour disposer les cartes horizontalement */
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.conf-card {
    flex: 1;
    max-width: 350px;
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--secondary-color); /* Vert */
}

.conf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.conf-card h3 {
    color: var(--secondary-color); /* Vert pour les sous-titres de cartes */
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-tag {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--primary-color); /* Bleu Marine */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 15px;
}

.highlighted-card {
    /* Carte mise en évidence avec la couleur 'highlight' */
    border-top: 5px solid var(--highlight-color); /* Jaune */
}

/* ================================
7. PRACTICAL SECTION (Grid pour les informations)
================================
*/
.practical-section {
    text-align: center;
}

.practical-info-grid {
    /* GRID pour une structure organisée d'informations */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.info-block {
    background-color: var(--text-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color); /* Bleu Marine */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.info-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color); /* Bleu Marine */
    margin-bottom: 10px;
}

.detail {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* ================================
8. CONTACT SECTION
================================
*/
.contact-section {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form select {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.submit-button {
    background-color: var(--highlight-color); /* Jaune */
    color: var(--text-dark);
}

.submit-button:hover {
    background-color: #ffb800;
    transform: translateY(-2px);
}

/* ================================
9. FOOTER
================================
*/
.main-footer {
    background-color: var(--text-dark);
    color: #ccc;
    text-align: center;
    padding: 20px 20px;
    font-size: 0.9rem;
    border-top: 5px solid var(--secondary-color); /* Vert */
    width: 100%;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--text-light);
}

/* ================================
10. RESPONSIVE DESIGN (@media Query)
================================
*/

@media (max-width: 768px) {
    /* Réglages pour les petits écrans... */
    .main-header {
        flex-direction: column;
        padding: 10px;
    }

    .main-nav {
        margin-top: 10px;
        /* FLEXBOX pour centrer et espacer les liens */
        display: flex;
        justify-content: space-around;
        width: 100%;
        padding: 5px 0;
    }

    .main-nav a {
        margin: 0 5px;
        font-size: 0.9rem;
        padding: 5px;
    }
    
    .cta-button {
        padding: 8px 15px;
    }

    /* Hero Section */
    .hero-section {
        padding: 80px 20px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .subtitle {
        font-size: 1.1rem;
    }

    /* About Section (Grid) */
    .stats-grid {
        grid-template-columns: 1fr 1fr; 
    }

    /* Program Section (Flexbox) */
    .conf-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .conf-card {
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* Practical Info Grid */
    .practical-info-grid {
        gap: 20px;
    }

    /* Contact Form */
    .highlight-bg {
        padding: 30px 20px;
    }
}