/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Variables de couleurs - à personnaliser selon l'identité du lycée */
:root {
    --couleur-primaire: #4c7ced;      /* Bleu foncé - à ajuster selon les couleurs du lycée */
    --couleur-secondaire: #f0f0f0;    /* Gris très clair */
    --couleur-accent: #e63946;        /* Rouge pour les accents */
    --couleur-texte: #333333;         /* Gris foncé pour le texte */
    --couleur-footer: #2c3e50;        /* Bleu-gris foncé pour le pied de page */
}

body {
    line-height: 1.6;
    color: var(--couleur-texte);
    background-color: #fff;
}

/* En-tête */
header {
    background-color: var(--couleur-primaire);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

#titre {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(270deg, cyan, magenta, yellow, cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: danse 5s infinite alternate ease-in-out;
    transition: transform 0.3s ease;
    background-size: 200% 200%;
}

 /* Animation pour le dégradé animé */
 @keyframes danse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.active {
    border-bottom: 3px solid white;
}

/* Bannière */
.banniere {
    height: 500px;
    background-image: url('images/logo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.banniere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.banniere-contenu {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.banniere-contenu h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banniere-contenu p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background-color: var(--couleur-accent);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c1272d;
}

/* Contenu principal */
.contenu {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-titre {
    text-align: center;
    margin-bottom: 40px;
}

.section-titre h2 {
    font-size: 2.2rem;
    color: var(--couleur-primaire);
    margin-bottom: 15px;
}

.section-titre p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Actualités */
.actualites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.actualite {
    background-color: var(--couleur-secondaire);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.actualite:hover {
    transform: translateY(-5px);
}

.actualite-img {
    height: 200px;
    overflow: hidden;
}

.actualite-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.actualite:hover .actualite-img img {
    transform: scale(1.1);
}

.actualite-contenu {
    padding: 20px;
}

.actualite-date {
    display: inline-block;
    background-color: var(--couleur-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.actualite-contenu h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.actualite-contenu p {
    color: #666;
    margin-bottom: 15px;
}

.lire-plus {
    display: inline-block;
    color: var(--couleur-primaire);
    font-weight: bold;
    font-size: 2rem;
    text-decoration: none;
    background: linear-gradient(45deg, aliceblue, gray);
    border-radius: 20px;
    padding: 20px;
}

/* Chiffres clés */
.chiffres {
    background-color: var(--couleur-primaire);
    color: white;
    padding: 70px 0;
    margin: 70px 0;
}

.chiffres-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.chiffre {
    margin: 20px;
    flex: 1;
    min-width: 200px;
}

.chiffre-nombre {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.chiffre-texte {
    font-size: 1.1rem;
}

/* Agenda */
.evenements {
    margin-bottom: 70px;
}

.evenement {
    display: flex;
    margin-bottom: 25px;
    background-color: var(--couleur-secondaire);
    border-radius: 8px;
    overflow: hidden;
}

.evenement-date {
    background-color: var(--couleur-primaire);
    color: white;
    padding: 15px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.evenement-jour {
    font-size: 1.8rem;
}

.evenement-mois {
    font-size: 1rem;
    text-transform: uppercase;
}

.evenement-details {
    padding: 20px;
    flex-grow: 1;
}

.evenement-details h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.evenement-heure {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Pied de page */
footer {
    background-color: var(--couleur-footer);
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-colonne h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-colonne h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--couleur-accent);
}

.footer-colonne p,
.footer-colonne address {
    margin-bottom: 15px;
    font-style: normal;
}

.footer-colonne ul {
    list-style: none;
}

.footer-colonne ul li {
    margin-bottom: 10px;
}

.footer-colonne ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: block;    
}

.footer-colonne ul li a:hover {
    color: white;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-bas {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .banniere {
        height: 400px;
    }

    .banniere-contenu h2 {
        font-size: 2rem;
    }

    .chiffre {
        flex-basis: 40%;
    }

    .evenement {
        flex-direction: column;
    }

    .evenement-date {
        flex-direction: row;
        justify-content: center;
        padding: 10px;
    }

    .evenement-jour {
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }

    .banniere-contenu h2 {
        font-size: 1.8rem;
    }

    .chiffre {
        flex-basis: 100%;
    }
}

#logo {
    border-radius: 50%;
}

address a {
    text-decoration: none;
    color: bisque;
    transition: color 0.3s;
    font-size: 0.9rem;
    &:hover {
        color: white;
        text-decoration: underline;
        transform: scale(1.1);
        transition: transform 0.3s;
    }
}