/* ==========================================================================
   CSS Moderne et Élégant pour la page Vie de Campus - VERSION AMÉLIORÉE
   ========================================================================== */

/* ... (Le début du CSS : notification, animations, hero, structure reste identique) ... */
/* ==========================================================================
   -1. Notification de Mise à Jour ...
   0. Animations et Transitions Globales ...
   1. Hero Section ...
   2. Structure générale et titres ...
   ========================================================================== */
.update-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    background-color: #ffe082;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    
    opacity: 0;
    transform: translate(-50%, -20px);
    pointer-events: none;
    
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.update-notification.is-visible {
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: auto;
}
.update-notification.is-hidden {
    opacity: 0;
    transform: translate(-50%, -40px);
    pointer-events: none;
}
.update-notification p {
    margin: 0;
    font-size: 0.9rem;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-load {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.campus-hero {
    position: relative;
    height: 55vh;
    min-height: 350px;
    width: 100%;
    background-size: cover;
    background-position: center 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    animation: fadeIn 1.5s ease;
}
.campus-hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(13, 33, 73, 0.8) 0%, rgba(13, 33, 73, 0.2) 100%);
    z-index: 1;
}
.campus-hero__content {
    position: relative;
    z-index: 2;
    padding: 0 var(--spacing-m);
}
.campus-hero h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0;
}

.title-overlay {
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 2px 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        -2px 0 0 #000,
        4px 4px 8px rgba(0,0,0,0.5);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.campus-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-top: var(--spacing-s);
    opacity: 0.9;
    font-weight: 300;
}
.page-container {
    padding-top: calc(var(--spacing-xl) * 1.5);
    padding-bottom: calc(var(--spacing-xl) * 1.5);
}
.campus-section {
    margin-bottom: calc(var(--spacing-xl) * 2.5);
}
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: calc(var(--spacing-xl) * 1.5);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    border-radius: 2px;
}
/* ==========================================================================
   3. Timeline des Événements (Aucun changement majeur)
   ========================================================================== */
#events {
    background-color: #f8f9fa;
    padding: var(--spacing-xl);
    border-radius: var(--radius-large, 16px);
}
.events-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-l);
    max-width: 800px;
    margin: 0 auto;
}
.event-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
    background: var(--color-background);
    border-radius: var(--radius);
    padding: var(--spacing-m);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}
.event-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}
.event-card__date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #da1010;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    transition: transform 0.3s ease;
}
.event-card:hover .event-card__date { transform: rotate(-10deg); }
.event-card__date .day { font-size: 2.2rem; line-height: 1; }
.event-card__date .month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.event-card__content { display: flex; flex-direction: column; align-items: flex-start; flex-grow: 1; }
.event-card__title { font-size: 1.3rem; font-weight: 600; margin: 0 0 4px 0; color: var(--color-primary-dark); }
.event-card__description { font-size: 0.95rem; line-height: 1.5; color: #555; margin: 0; }
.events-loading, .events-empty, .events-error { text-align: center; font-style: italic; color: #7f8c8d; padding: var(--spacing-l); }


/* ==========================================================================
   4. Grille des Clubs - AMÉLIORÉE
   ========================================================================== */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-l);
}
.club-card {
    border-radius: var(--radius-large, 16px);
    padding: var(--spacing-l);
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}
.club-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}
/* Palette de couleurs pastel (conservée) */
.club-card:nth-child(6n + 1) { background-color: #e3f2fd; } .club-card:nth-child(6n + 2) { background-color: #e8f5e9; } .club-card:nth-child(6n + 3) { background-color: #fff3e0; } .club-card:nth-child(6n + 4) { background-color: #f3e5f5; } .club-card:nth-child(6n + 5) { background-color: #ffebee; } .club-card:nth-child(6n + 6) { background-color: #e0f7fa; }

/* Styles pour les icônes Font Awesome */
.club-card__icon {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-m);
    line-height: 1;
    color: var(--color-primary-dark);
    opacity: 0.7;
}

.club-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 var(--spacing-xs) 0;
    flex-grow: 1; /* Permet aux cartes d'avoir la même hauteur */
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.club-card__president {
    font-size: 0.9rem;
    font-weight: 400;
    color: #7f8c8d;
    margin: 0 0 var(--spacing-l) 0;
    font-style: italic;
}
.club-card__join-link {
    display: inline-block;
    font-weight: 500;
    color: #34495e;
    background-color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 22px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 85%;
    box-sizing: border-box;
}
.club-card__join-link:hover {
    background-color: #fff;
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* ==========================================================================
   NOUVEAU : Section Témoignages
   ========================================================================== */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.testimonial-card {
    flex: 0 0 100%;
    background-color: #f8f9fa;
    border-radius: var(--radius-large);
    padding: var(--spacing-xl);
    text-align: center;
    opacity: 0.5;
    transform: scale(0.95);
    transition: opacity 0.5s, transform 0.5s;
}
.testimonial-card.is-active {
    opacity: 1;
    transform: scale(1);
}
.testimonial-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-m);
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.testimonial-quote {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #333;
    margin: 0 0 var(--spacing-m) 0;
    line-height: 1.6;
}
.testimonial-quote::before { content: '“'; }
.testimonial-quote::after { content: '”'; }

.testimonial-author {
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0;
}
.testimonial-major {
    color: #7f8c8d;
    font-size: 0.9rem;
}
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: var(--spacing-l);
}
.testimonial-nav-btn {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.testimonial-nav-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}


/* ==========================================================================
   5. Galerie d'Images (Aucun changement)
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--spacing-m); }
.gallery-item { display: block; position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-light); height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 33, 73, 0.6); color: #fff; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; font-weight: 600; opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* ==========================================================================
   6. Section Services du Campus - AMÉLIORÉE
   ========================================================================== */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-l);
}
.service-item {
    background-color: var(--color-background);
    padding: var(--spacing-l);
    border-radius: var(--radius);
    border: 1px solid #e0e6ed;
    text-decoration: none;
    display: flex;
    flex-direction: column; /* Changé pour un meilleur alignement */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--spacing-m);
    transition: all 0.3s ease-in-out;
    min-height: 150px; /* Hauteur minimale */
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}
/* Style pour les icônes Font Awesome */
.service-item .service-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}
.service-item:hover .service-icon {
    transform: scale(1.2) rotate(-10deg);
}
.service-item p {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}


/* ==========================================================================
   NOUVEAU : Section Plan du Campus
   ========================================================================== */
.map-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.map-btn {
    margin-top: var(--spacing-l);
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background-color: var(--color-vibrant-orange);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background-color: #e08c00;
}

/* ==========================================================================
   NOUVEAU : Section Guide Pratique (FAQ)
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e0e6ed;
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item {
    border-bottom: 1px solid #e0e6ed;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-m);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    color: var(--color-text-dark);
    cursor: pointer;
}
.faq-question:hover {
    background-color: #f8f9fa;
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
    margin: 0;
    padding: 0 var(--spacing-m) var(--spacing-m) var(--spacing-m);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}
.faq-item.active .faq-answer {
    padding-bottom: var(--spacing-m);
    max-height: 200px; /* Ajuster si le contenu est plus long */
}

/* ==========================================================================
   7. Responsive (Amélioré)
   ========================================================================== */
@media (max-width: 768px) {
    .events-timeline {
        padding-left: 0;
    }
    .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-m);
    }
    .event-card__content {
        align-items: center;
    }
    .testimonial-card {
        padding: var(--spacing-l);
    }
}

@media (max-width: 500px) {
    #events {
        padding: var(--spacing-l);
    }
    .club-card__name {
        font-size: 1.1rem;
    }
    .service-item p {
        font-size: 1rem;
    }
}