/* =========================================================
   COMMITTEE.CSS
   Reprend le rendu de Pagecommite.css, sans aucune dépendance JS.
   Le fond "particules" du canvas est remplacé par un fond
   d'étoiles pur CSS (radial-gradients + animation CSS).
   ========================================================= */

/* ================= GLOBAL ================= */
body {
    margin: 0;
    background-color: transparent;
    overflow-x: hidden;
    font-family: 'Lora', serif;
    color: white;
    position: relative;
}

*, *::before, *::after {
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/* ================= FOND ÉTOILÉ ANIMÉ (canvas, voir stars.js) ================= */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ================= ESPACEUR SOUS LA NAVBAR FIXE ================= */
/* Hauteur desktop ; mobile.css redéfinit .buffer à 60px en dessous de 767px */
.buffer {
    height: 90px;
}

/* ================= TITRE ================= */
.title-separateur {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    z-index: 2;
}

.title-content-wrapper {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: block;
    font-size: 1em;
    letter-spacing: 4px;
    color: #ddd;
    text-transform: uppercase;
    margin-bottom: 10px;
    animation: fadeIn 1.5s ease forwards;
}

.title {
    font-size: 3.5em;
    font-weight: 700;
    letter-spacing: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    animation: fadeIn 1.5s ease forwards;
}

.line {
    display: block;
    width: 100px;
    height: 3px;
    background-color: #fff;
    margin: 0 15px;
    animation: fadeInLine 1.5s ease forwards;
}

.nombre-romain {
    color: transparent;
    -webkit-text-stroke: 1px white;
    font-style: italic;
    margin: 0 15px;
}

.subtitle {
    font-size: 1.8em;
    font-style: italic;
    margin-top: 15px;
    color: #ddd;
    animation: fadeInUp 2s ease forwards;
}

/* ================= PHOTO DE GROUPE ================= */
.group-photo-section {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 80px;
}

.group-photo-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.group-photo-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.group-photo-container:hover img {
    transform: scale(1.02);
}

.group-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-left: 40px;
    padding-bottom: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.group-photo-container:hover .group-caption {
    opacity: 1;
}

.group-caption .top-content {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.group-caption .bottom-content {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ================= CARTES INDIVIDUELLES ================= */
.committee-section {
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.container.limit-width {
    max-width: 1200px;
}

.card {
    position: relative;
    width: 340px;
    height: 500px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.171);
    border-color: rgba(255, 255, 255, 0.212);
}

.card .content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0.8;
    transition: 0.5s;
    width: 100%;
}

.card:hover .content {
    opacity: 1;
}

.card .img {
    position: relative;
    width: 280px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .img img {
    transform: scale(1.1);
}

.cardContent {
    text-align: center;
}

.cardContent h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 1px;
    color: white;
}

.cardContent h3 span {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-style: normal;
    letter-spacing: 2px;
}

.major-text {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 8px;
}

/* ================= RÉSEAUX SOCIAUX ================= */
.sci {
    position: absolute;
    top: 50px;
    right: 20px;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 10;
}

.sci li {
    margin-bottom: 15px;
    transform: translateX(50px);
    opacity: 0;
    transition: 0.5s;
}

.sci li:nth-child(1) { transition-delay: 0.1s; }
.sci li:nth-child(2) { transition-delay: 0.2s; }

.card:hover .sci li {
    transform: translateX(0);
    opacity: 1;
}

.sci li a {
    font-size: 20px;
    color: rgb(255, 255, 255);
    transition: color 0.3s, background 0.3s;
    display: flex;
    background: rgb(0, 0, 0);
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.sci li a:hover {
    color: #ffffff91;
    background: rgba(255, 255, 255, 0.374);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInLine { from { width: 0; opacity: 0; } to { width: 100px; opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .title { flex-direction: column; font-size: 2.2em; }
    .line { width: 60px; margin: 10px 0; }
    .group-photo-container { border-radius: 0; border: none; }

    .group-caption {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent);
    }

    .sci li {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 400px) {
    .card {
        width: 90% !important;
        height: auto !important;
        min-height: 450px;
        margin: 0 auto;
    }

    .card .img {
        width: 100% !important;
        height: 300px;
    }

    .container {
        gap: 30px;
        padding: 10px;
    }

    .title {
        font-size: 1.8em !important;
        flex-direction: column;
    }

    .line {
        display: none;
    }
}