/* ===============
   PAGE ÉQUIPE
=============== */

section {
    margin: 0;
}

.equipe-page {
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Image par défaut si aucune image n'est définie */
.hero-section:not([style]) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                linear-gradient(to right, #2c3e50, #3498db);
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    z-index: 2;
}

/* Notre Histoire */
.notre-histoire {
    padding: 80px 0;
    background: #2a2a2a;
    color: white;
}

.histoire-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.section-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    font-family: 'Frank Ruhl Libre', serif;
}

.histoire-text {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
}

.histoire-text p {
    margin-bottom: 20px;
}

/* Notre Équipe */
.notre-equipe {
    padding: 80px 0;
}

.section-title-center {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-family: 'Frank Ruhl Libre', serif;
}

.category-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 60px 0 40px 0;
    text-transform: uppercase;
}

/* Grilles */
.team-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

.direction-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Carte Membre Direction */
.team-member-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
}

.member-photo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.linkedin-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #0077b5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.linkedin-badge:hover {
    background: #006097;
}

.member-role {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.member-name {
    font-size: 26px;
    font-weight: bold;
    margin: 8px 0;
    font-family: 'Frank Ruhl Libre', serif;
}

.member-school {
    display: block;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grand Rédacteur */
.grand-redacteur {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.grand-redacteur-card {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
    max-width: 600px;
}

.grand-photo {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.grand-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.grand-info {
    text-align: left;
}

.grand-role {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.grand-name {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
    font-family: 'Frank Ruhl Libre', serif;
}

.grand-school {
    display: block;
    font-size: 16px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rédacteurs Grid */
.redacteurs-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.redacteur-card {
    text-align: center;
}

.redacteur-photo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.redacteur-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    border-radius: 50%;
}

.redacteur-card:hover .redacteur-photo img {
    filter: grayscale(0%);
}

.linkedin-badge-small {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: #0077b5;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.linkedin-badge-small:hover {
    background: #006097;
}

.redacteur-role {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.redacteur-name {
    font-size: 18px;
    font-weight: 600;
    margin: 5px 0;
}

.redacteur-school {
    display: block;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
}

/* Section Rédaction */
.redaction-section {
    margin-bottom: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .histoire-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .category-title {
        text-align: center;
    }

    .direction-grid {
        grid-template-columns: 1fr;
    }

    .grand-redacteur-card {
        flex-direction: column;
        text-align: center;
    }

    .grand-info {
        text-align: center;
    }

    .grand-name {
        font-size: 28px;
    }

    .redacteurs-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .category-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 300px;
    }

    .hero-title {
        font-size: 28px;
    }

    .notre-histoire {
        padding: 40px 0;
    }

    .notre-equipe {
        padding: 40px 0;
    }

    .section-title-center {
        font-size: 32px;
    }

    .member-photo {
        width: 150px;
        height: 150px;
    }

    .grand-photo {
        width: 150px;
        height: 150px;
    }

    .redacteurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}