@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    background: #ffffff;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

header img {
    width: 60px;
    height: auto;
}

.webmail-link {
    font-size: 1em;
    font-weight: 500;
    color: #0073e6;
    text-decoration: none;
    background: #e0e0e0;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.webmail-link:hover {
    background: #d0d0d0;
}

header h1 {
    font-size: 2em;
    font-weight: 700;
    color: #0073e6;
    margin: 0;
}

.hero {
    text-align: center;
    padding: 30px 20px; /* Bande bleue plus fine */
    background: #0073e6;
    color: #ffffff;
    animation: fadeIn 1.2s ease-in-out;
}

.hero p {
    font-size: 1.3em;
    margin-top: 10px;
}

.container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 40px 20px;
    animation: fadeIn 1.2s ease-in-out;
}

.link {
    text-decoration: none;
    color: #333;
    width: 280px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.link:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.link img {
    width: 100%;
    height: auto;
    display: block;
}

.link p {
    text-align: center;
    font-size: 1.2em;
    font-weight: 500;
    padding: 15px 10px;
    margin: 0;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

/* Nouvelle section Contactez-nous */
.contact-band {
    margin-top: 40px;
}

.contact-header {
    text-align: center;
    padding: 20px;
    background: #0073e6;
    color: #ffffff;
}

.contact-header h2 {
    font-size: 2em;
    margin: 0;
}

.contact-info {
    padding: 20px;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #333;
}

.contact-info a {
    color: #0073e6;
    text-decoration: none;
    margin-right: 10px;
}

.contact-info a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
    font-size: 0.9em;
    color: #666;
    animation: fadeIn 1.2s ease-in-out;
}

footer p {
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }
}
/* Ajoutez ceci à votre fichier styles.css */

.contact-band {
    background-color: #f5f5f5;
    padding: 20px;
    margin-top: 30px;
}

.contact-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section, .pedagogical-links {
    flex: 1;
    padding: 0 20px;
}

.contact-header, .links-header {
    text-align: center;
    margin-bottom: 20px;
}

.contact-info p, .links-info p {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.contact-info a, .links-info a {
    margin-right: 10px;
    color: #333;
}

.fas {
    font-size: 1.2em;
}
/* Styles existants */
.contact-band {
    background-color: #f5f5f5;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.contact-info p {
    display: inline-block;
    margin: 15px;
    text-align: left;
}

.contact-info a {
    color: #333;
    margin-right: 8px;
}

/* Nouveaux styles pour la section pédagogique */
.pedagogical-band {
    background-color: #1e88e5; /* Bleu */
    color: white;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.pedagogical-info p {
    display: inline-block;
    margin: 15px;
    text-align: left;
}

.pedagogical-info a {
    color: white;
    margin-right: 8px;
}

.pedagogical-info a:hover {
    color: #bbdefb; /* Bleu clair au survol */
}




/* Nouveaux styles pour la section aperc*/
.aperc-band {
    background-color: #1e88e5; /* Bleu */
    color: white;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.aperc-info p {
    display: inline-block;
    margin: 15px;
    text-align: left;
}

.aperc-info a {
    color: white;
    margin-right: 8px;
}

.aperc-info a:hover {
    color: #bbdefb; /* Bleu clair au survol */
}

/* Styles communs aux deux sections */
.contact-header h2, .pedagogical-header h2 , .aperc-header h2{
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* Styles pour la section Niveaux Scolaires */
.levels-band {
    background-color: #0073e6; /* Bleu comme Contactez-nous */
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.levels-header h2 {
    font-size: 2em;
    margin: 0 0 20px 0;
    color: white;
}

.levels-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #ffffff;
    animation: fadeIn 1.2s ease-in-out;
}

.level-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.level-link {
    text-decoration: none;
    color: #333;
    width: 250px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.level-link:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.level-link img {
    width: 100%;
    height: auto;
    display: block;
}

.level-link p {
    text-align: center;
    font-size: 1.2em;
    font-weight: 500;
    padding: 15px 10px;
    margin: 0;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .levels-container {
        flex-direction: column;
        align-items: center;
    }
    
    .level-column {
        width: 100%;
    }
    
    .level-link {
        width: 100%;
        max-width: 280px;
    }
}

/* Styles pour la page Maternelle - Version horizontale */
.maternelle-band {
    background-color: #0073e6;
    color: white;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.maternelle-header h2 {
    font-size: 2em;
    margin: 0;
    color: white;
}

.maternelle-container {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* Empêcher le retour à la ligne */
    gap: 20px;
    padding: 40px 20px;
    overflow-x: auto; /* Permettre le défilement horizontal si nécessaire */
    animation: fadeIn 1.2s ease-in-out;
    max-width: 1200px;
    margin: 0 auto;
}

.maternelle-card {
    min-width: 300px; /* Largeur minimale pour chaque carte */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0; /* Empêcher le rétrécissement */
}

.maternelle-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.maternelle-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.maternelle-content {
    padding: 15px;
    text-align: center;
}

.maternelle-content h3 {
    color: #0073e6;
    margin: 10px 0;
    font-size: 1.3em;
}

.maternelle-content p {
    color: #555;
    line-height: 1.5;
    font-size: 0.95em;
}

@media (max-width: 900px) {
    .maternelle-container {
        justify-content: flex-start; /* Alignement à gauche pour mobile */
        padding: 20px 10px;
    }
    
    .maternelle-card {
        min-width: 280px;
    }
}
/* Styles pour la nouvelle organisation */
.bloc-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
    flex-wrap: wrap;
}

.vertical-card {
    width: 30%;
    min-width: 300px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.primaire-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #1e88e5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.primaire-link:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vertical-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .bloc-container {
        flex-direction: column;
        align-items: center;
    }
    .vertical-card {
        width: 100%;
        max-width: 400px;
    }
}
/* Styles pour la bannière de préinscription */
.preinscription-banner {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    color: white;
    animation: pulse 2s infinite;
}

.preinscription-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: transform 0.3s;
}

.preinscription-link:hover {
    transform: scale(1.05);
    color: #fff;
}

.preinscription-link i {
    margin-right: 15px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(30, 136, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0); }
}