:root {
    --deep-blue: #0a192f;
    --hydro-cyan: #0dcaf0;
}

body { 
    font-family: 'Open Sans', sans-serif; 
    background-color: #fcfcfc; 
}

/* Hero Photo de Groupe */
.group-hero {
    height: 145vh;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)),
                url('../source/image-contact/grp.jpg') center bottom/cover;
    margin-top: 0;
    padding-top: 80px;
}

/* Section Équipe */
.team-section {
    margin-top: 0px;
    /* 1. On réduit le padding du haut (était 40px) pour remonter le titre */
    padding-top: 20px; 
    /* 2. IMPORTANT : On ajoute un gros padding en bas. 
       Cela permet de scroller plus loin pour que le footer ne cache pas 
       les membres du bas (positions 1 et 5) */
    padding-bottom: 150px; 
    overflow: hidden;
    background-color: #fcfcfc;
}

/* --- Modification de l'espacement Titre / Bulles --- */
.arc-container {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    /* 3. On passe de 80px à -50px (ou -80px). 
       Cela "tire" tout l'arc vers le haut, plus près du titre "Notre Équipe". */
    margin-top: -60px; 
}

/* Rayon augmenté pour écarter les membres */
.member-slot {
    position: absolute;
    bottom: -400px;
    left: 50%;
    width: 40px;
    height: 850px; 
    transform-origin: bottom center;
    pointer-events: none;
}

.member-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    text-align: center;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.member-card:hover {
    z-index: 10;
    transform: translateX(-50%) scale(1.1);
}

/* Images agrandies */
.member-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: 10px auto;
    display: block;
}

.member-name {
    background-color: var(--deep-blue);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.member-role { font-weight: 700; color: var(--deep-blue); font-size: 1rem; margin-top: 5px; }
.member-expertise { color: var(--hydro-cyan); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Angles de l'arc */
.position-1 { transform: translateX(-50%) rotate(-45deg); }
.position-1 .member-card { transform: translateX(-50%) rotate(45deg); }

.position-2 { transform: translateX(-50%) rotate(-22.5deg); }
.position-2 .member-card { transform: translateX(-50%) rotate(22.5deg); }

.position-3 { transform: translateX(-50%) rotate(0deg); z-index: 5; }

.position-4 { transform: translateX(-50%) rotate(22.5deg); }
.position-4 .member-card { transform: translateX(-50%) rotate(-22.5deg); }

.position-5 { transform: translateX(-50%) rotate(45deg); }
.position-5 .member-card { transform: translateX(-50%) rotate(-45deg); }

/* Footer & Nav */
.custom-nav { background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px); }

#dynamic-footer {
    /* Le reste ne change pas */
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 80px; /* Note la hauteur */
    background: var(--deep-blue);
    border-top: 2px solid var(--hydro-cyan);
    transition: bottom 0.5s ease;
    z-index: 9999;
}

#dynamic-footer.visible {
    bottom: 0 !important;
}

.texte_footer { color: #f0f2f5; font-size: 0.8rem; }
.f-link { color: white; text-decoration: none; font-size: 0.75rem; font-weight: 700; opacity: 0.6; }

/* --- RESPONSIVE CONTACT / TEAM --- */

/* Tablette et Mobile (moins de 992px) */
@media (max-width: 992px) {
    
    /* 1. Réduire la hauteur énorme du Hero */
    .group-hero {
        height: 60vh; /* Au lieu de 145vh */
        padding-top: 100px;
    }
    
    .group-hero h1 {
        font-size: 2rem;
    }

    /* 2. DÉSACTIVER L'EFFET D'ARC */
    .arc-container {
        height: auto;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px; /* Espace entre les membres */
    }

    /* Réinitialiser les positions absolues et rotations */
    .member-slot {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        height: auto;
        transform: none !important; /* Annule toutes les rotations des slots */
        margin-bottom: 20px;
    }

    .member-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important; /* Annule les contre-rotations des cartes */
        width: 100%;
        max-width: 300px; /* Largeur max pour faire joli */
        margin: 0 auto; /* Centrer */
    }

    /* Ajustement section */
    .team-section {
        padding-bottom: 100px; /* Espace pour le footer */
    }
}

/* Petit Mobile */
@media (max-width: 576px) {
    .member-img {
        width: 130px;
        height: 130px;
    }
    
    .member-name {
        font-size: 1rem;
    }
}