body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
    transition: background-color 0.5s ease;
}

body.loaded {
    background-color: #e0f7fa;
}

header {
    background-color: #3b82f6;
    color: white;
    padding: 0.5em;
    text-align: center;
    transition: background-color 0.5s ease;
}

header:hover {
    background-color: #2563eb;
}

nav {
    margin-bottom: 20px;
    background-color: #1e40af;
    color: white;
    padding: 0.5em;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #93c5fd;
}

.container {
    margin-top: 60px;
    padding: 20px;
    max-width: 800px;
    margin: auto;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: scale(1.01);
}

.news {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.news:hover {
    background-color: #e5e7eb;
    transform: translateX(5px);
}

.news:last-child {
    border-bottom: none;
}

.news img {
    border-radius: 10px;
    width: 120px;
    height: 160px;
    margin-right: 15px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.news img:hover {
    transform: rotate(10deg);
}

.news-img {
    width: 120px;
    height: 160px;
    object-fit: cover;
}

h2 {
    color: #374151;
}

.pdf-link {
    margin-top: 10px;
    display: block;
    color: #0288d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pdf-link:hover {
    color: #01579b;
    text-decoration: underline;
}

p {
    text-align: justify
}

.header-title {
    text-align: center; /* Centre le titre et la description */
}

.header-title span {
    font-size: 2rem; /* Taille du titre */
    font-weight: bold;
    color: white;
    display: block;
    margin-bottom: 0.2em; /* Espacement ajusté */
}

.subtitle {
    font-size: 0.9rem; /* Taille pour la sous-ligne */
    color: #f1f5f9; /* Contraste sur le fond bleu */
    margin-top: 0; /* Pas d’espace supplémentaire */
    font-style: italic;
    text-align: center; /* Centre la ligne descriptive */
}

nav a.active {
    color: #93c5fd;
}

nav a {
    transition: all 0.3s ease;
}

nav a:hover {
    color: #0288d1;
    text-decoration: underline;
}

footer {
    background-color: #1e40af;
    color: white;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);

}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
    text-align: center; /* Centre la ligne descriptive */

}

.footer-container {
    color: white; /* Texte du pied de page en blanc */
    text-align: center;
}

.footer-container a.social-link {
    display: inline-block;
    margin-top: 10px;
    color: white; /* Texte du lien en blanc */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}


.footer-container a.social-link:hover img {
    transform: scale(1.1); /* Agrandit légèrement l'icône au survol */
}

.footer-container a.social-link:hover {
    color: #93c5fd; /* Couleur de texte légèrement plus claire au survol */
}
