/* ===== LAYOUT ÉQUIPE ÉDITORIALE ===== */
.equipe-layout {
    display: flex;
    gap: 40px;
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.equipe-main {
    flex: 1 1 70%;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    min-width: 300px;
    box-sizing: border-box;
}

.equipe-grid { display: flex; flex-direction: column; gap: 20px; }

.equipe-card {
    display: flex; align-items: center;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: box-shadow 0.3s ease;
}
.equipe-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.equipe-photo {
    flex-shrink: 0; width: 130px; height: 130px; background-color: #e0e0e0;
    border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 20px;
}
.photo-profil { width: 130%; height: 130%; object-fit: cover; border-radius: 50%; }

.equipe-infos { flex-grow: 1; }
.equipe-card h3 { font-size: 18px; margin: 10px 0; color: #222; }
.equipe-card p { margin: 0; color: #555; font-size: 14px; }

/* ===== MODAL PHOTO ÉQUIPE ===== */
.modal-photo {
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(18, 21, 37, 0.86); display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity 0.2s;
}
.modal-photo img { max-width: 340px; max-height: 75vh; border-radius: 16px; box-shadow: 0 8px 48px rgba(0,0,0,0.23); background: #fff; margin-bottom: 20px; }
.modal-photo-close {
    position: absolute; right: 22px; top: 16px; color: #fff; font-size: 2.6rem; font-weight: 700; cursor: pointer; z-index: 10001; background: rgba(0,0,0,0.15); border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; transition: background 0.18s;
}
.modal-photo-close:hover { background: rgba(255,0,0,0.28); }

/* ======= NOUVEAU NOM (remplace .main-content) ======= */
.equipe-main-content {
    width: 70%;
    padding: 40px;
    background: #fff0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
    box-sizing: border-box;
}

/* ============================== */
/* 🔹 RESPONSIVE – ÉQUIPE ÉDITORIALE */
/* ============================== */

/* Tablettes & moyens écrans */
@media (max-width: 992px) {
    .equipe-layout {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }

    .equipe-main,
    .equipe-main-content {
        flex: 1 1 100%;
        width: 100%;
        padding: 30px;
        min-width: 0;
    }

    .equipe-card {
        flex-direction: row;
        align-items: center;
    }

    .equipe-photo {
        width: 110px;
        height: 110px;
        margin: 0 15px 0 0;
    }

    .photo-profil {
        width: 120%;
        height: 120%;
    }
}

/* Smartphones standards */
@media (max-width: 768px) {
    .equipe-layout {
        padding: 30px 15px;
        gap: 25px;
    }

    .equipe-main,
    .equipe-main-content {
        padding: 24px;
    }

    .equipe-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .equipe-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto 15px auto;
    }

    .equipe-infos { text-align: center; }

    .equipe-card h3 { font-size: 16px; }
    .equipe-card p  { font-size: 13px; }
}

/* Petits smartphones */
@media (max-width: 480px) {
    .equipe-main,
    .equipe-main-content {
        padding: 20px;
    }

    .equipe-card { padding: 15px; }

    .equipe-photo { width: 100px; height: 100px; }

    .photo-profil { width: 110%; height: 110%; }
}

/* ============================== */
/* 🔹 RESPONSIVE MODAL PHOTO */
/* ============================== */
@media (max-width: 768px) {
    .modal-photo img { max-width: 280px; max-height: 65vh; }
    .modal-photo-close {
        width: 42px; height: 42px; font-size: 2.2rem; right: 15px; top: 12px;
    }
}

@media (max-width: 480px) {
    .modal-photo img { max-width: 240px; max-height: 60vh; }
    .modal-photo-close {
        width: 38px; height: 38px; font-size: 2rem; right: 12px; top: 10px;
    }
}