body {
    background: rgb(174, 102, 102);
    background-image: url("https://www.transparenttextures.com/patterns/cartographer.png");
    font-family: Arial, sans-serif;
    text-align: center;
}

.bagel-fat-one-regular {
    font-family: "Bagel Fat One", system-ui;
    font-weight: 400;
    font-style: normal;
}

.card {
    border: 1px solid #e0e0e0; /* Bordure subtile */
    border-radius: 15px; /* Bordure arrondie pour un effet plus doux */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Ombre douce */
    background: #f8f9fa; /* Fond clair pour les cartes */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation au survol */
}

.card:hover {
    transform: translateY(-5px); /* Effet de déplacement au survol */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2); /* Ombre plus marquée au survol */
}

.card-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #8b0000; /* Rouge foncé pour les titres */
    margin-bottom: 15px; /* Espace sous le titre */
}

.card-body p {
    font-size: 1em;
    color: #333; /* Texte sombre pour une meilleure lisibilité */
    margin-bottom: 10px; /* Espace entre les lignes */
}

.card-body p strong {
    color: #720f1c; /* Rouge légèrement plus clair pour les éléments clés */
}

.blog {
    background-color: #f9f9f9;
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5em;
    text-align: center;
    color: #da8190;
    margin-bottom: 30px;
}

.article {
    background-color: #f7d6d6;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.article h3 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.8em;
    color: #8b0000; /* Couleur rouge foncé */
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.article h3 a {
    text-decoration: none;
    color: inherit;
}

.article h3 a:hover {
    color: #aa3548; /* Couleur au survol */
}

.article p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.article:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

#calendar {
    margin: 50px auto;
    max-width: 900px;
    text-align: center;
}

h2 {
    font-family: 'Arial', sans-serif;
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colonnes (une pour chaque jour de la semaine) */
    gap: 10px;
    justify-items: center;
}

.calendar-day {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ecd6e2;
    background-color: #f7e5ec;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background-color: #dbb0bd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.date {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.event-time {
    font-size: 0.9em;
    color: #f7d9d9;
}

.calendar-day p {
    margin: 5px 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espace entre le logo et le contenu centré */
    padding: 10px 20px;
}

.logo {
    height: 50px;
    width: auto;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacement entre les liens */
}

nav li {
    display: inline-block;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

/* Effet de survol */
nav a:hover {
    background: #8b0000;
}

nav a.active {
    background: #8b0000 !important;
    font-weight: bold;
    color: white !important;
}

h1 {
    color: darkred;
    font-size: 70px;
    margin-bottom: 10px;
    text-align: center;
}

header h2 {
    font-size: 1.5em;
    font-weight: normal;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

th, td {
    border: 1px solid rgb(117, 17, 17);
    padding: 10px;
    text-align: center;
}

th {
    background: blanchedalmond;
    color: darkred;
    font-weight: bold;
}

thead {
    background: bisque;
}

tbody tr:nth-child(odd) {
    background: beige;
}

tbody tr:nth-child(even) {
    background: rgb(255, 239, 219);
}

form {
    text-align: center;
    margin: 20px auto;
    width: 50%;
}

label {
    display: block;
    font-size: 1.2em;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    margin-top: 10px;
    background: #720f1c;
    color: white;
    padding: 10px 15px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: #6b0a22;
}

.images {
    width: 90%;
    max-width: 1080px; /* Limite la largeur à 1080px */
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne quand l'écran est trop petit */
    justify-content: space-between; /* Espacement entre les images */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espacement entre les images */
    justify-content: center;
}

.image {
    flex: 1 1 calc(33.33% - 10px); /* 3 images par ligne */
    text-align: center;
}

.image img {
    width: 100%; /* Remplit l'espace disponible */
    height: 200px; /* Hauteur fixe pour toutes les images */
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}

footer {
    background-color: #ffa5a5;
    background-image: url("https://www.transparenttextures.com/patterns/cartographer.png");
    padding: 20px 0;
    text-align: center;
}

.partners {
    max-width: 1080px;
    display: flex;
    justify-content: center; /* Centre les cartes horizontalement */
    gap: 20px; /* Ajoute un espacement entre les cartes */
    flex-wrap: wrap; /* Permet aux cartes de se réorganiser sur plusieurs lignes si nécessaire */
    margin: 0 auto; /* Centre le conteneur */
}

/* Style de chaque carte partenaire */
.partner {
    width: 25%; /* Les cartes occupent 25% de la largeur du container */
    height: 250px;
    background: #f8d7da;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Centre le contenu dans la carte */
.partner a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centre verticalement */
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

/* Effet au survol */
.partner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Permet que l'image et le texte soient bien affichés */
.partner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.partner p {
    font-size: 1.2em;
    color: #8b0000; /* Change la couleur du texte au survol */
    text-align: center;
    margin-top: 10px;
}

/* Effet au survol des liens */
.partner a:hover {
    color: #8b0000; /* Change la couleur du texte au survol */
    text-decoration: underline; /* Ajoute un soulignement */
}

.testimonials {
    max-width: 800px;
    margin: 30px auto; /* Centrer la section */
    padding: 10px;
    background: #a8726c;
    border-radius: 10px;
    text-align: center;
}

h2 {
    font-size: 2em;
    color: #8b0000;
    margin-bottom: 20px;
}

.testimonial-bubble {
    margin-bottom: 15px;
    padding: 10px;
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.5;
    position: relative;
}

/* Style du nom de l'élève */
.testimonial-bubble h3 {
    font-size: 1em;
    color: #8b0000;
    margin-bottom: 5px;
}

/* Ajoute des guillemets avant et après les avis */
.testimonial-bubble p::before,
.testimonial-bubble p::after {
    content: '“'; /* Guillemets français */
    font-size: 1.5em;
    color: #8b0000;
    font-weight: bold;
}

.testimonial-bubble p::after {
    content: '”';
}

.resultat-recherche {
    color: #d871a1; /* Couleur bleue pour le résultat de la recherche */
    font-size: 1.5rem;
    font-weight: bold;
}

/* Changer la couleur du texte d'erreur */
.erreur-recherche {
    color: #a54a53; /* Couleur rouge pour l'erreur */
    font-size: 1.25rem;
}

.bouton {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.bouton .btn-primary {
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: #a54a53;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.bouton .btn-primary:hover {
    background-color: #a54a53;
    transform: scale(1.05);
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #a54a53;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.table-container {
    width: 80%;
    margin: 0 auto;
    overflow-x: auto;
}