/* ----- Style général ----- */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f8fa;  /* Couleur de fond douce */
    color: #333;
    line-height: 1.7;
}

/* ----- En-tête ----- */
header {
    background: linear-gradient(135deg, #66bb6a, #26a69a); /* Couleurs vertes */
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInHeader 0.8s ease-out;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Animation de l'en-tête */
@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Contenu principal ----- */
div > section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

/* ----- Titre de section ----- */
section h2 {
    font-size: 2rem;
    color: #26a69a;  /* Couleur verte pour les titres */
    border-left: 5px solid #66bb6a;  /* Bordure verte claire */
    padding-left: 1rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInFromLeft 0.6s forwards;
}

/* Animation de l'entrée des titres */
@keyframes fadeInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----- Cartes des écoles ----- */
section:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

section:nth-of-type(2) > div {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 6px solid #26a69a;  /* Bordure de couleur verte */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCard 0.8s forwards;
}

section:nth-of-type(2) > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre des écoles */
section:nth-of-type(2) h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #66bb6a;  /* Un vert plus doux pour les titres des écoles */
}

/* Info contact sous forme de bulle */
section:nth-of-type(2) p a {
    background-color: #e8f5e9;  /* Fond très léger */
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    color: #26a69a;  /* Vert mint pour les liens */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

section:nth-of-type(2) p a:hover {
    background-color: #c8e6c9;  /* Légère transition vers un vert plus clair */
}

/* Numéro de téléphone sous forme de badge */
section:nth-of-type(2) p:last-child {
    background-color: #f1f8e9;  /* Fond légèrement jauni */
    padding: 0.5rem;
    border-left: 4px solid #66bb6a;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* ----- Dernière section avec CTA ----- */
.bottom-content section {
    background: linear-gradient(to right, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bottom-content section h2 {
    color: #26a69a;  /* Titre du CTA en vert */
}

/* Bouton "Nous contacter" sous forme de bulle */
.bottom-content section a {
    display: inline-block;
    background-color: #66bb6a;  /* Vert doux pour le bouton */
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.bottom-content section a:hover {
    background-color: #81c784;  /* Un vert un peu plus clair au survol */
    transform: scale(1.05);
}

/* ----- Pied de page (optionnel) ----- */
footer {
    background-color: #263238;
    color: #b0bec5;
    text-align: center;
    padding: 2rem 1rem;
}

/* ----- Responsive ----- */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1.1rem;
    }

    body {
        font-size: 0.95rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    section:nth-of-type(2) {
        grid-template-columns: 1fr;
    }
}
