/* ========== PAGE ÉQUIPE ========== */

/* ========== TEAM DETAIL SECTION ========== */
.team-detail-section {
    padding: 0;
    background: white;
    display: flex;
    min-height: calc(100vh - 60px);
}

.team-member {
    flex: 1;
    position: relative;
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.contact-link{
    font-size: 1.5rem;
}
.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

/* Mickaël - gauche avec dégradé vers la droite */
.team-member:first-child::before {
    left: 0;
    background-image: url('./photo/mikael.jpg');
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    transform: scale(1.2) translateY(-5%) translateX(25%);
}

/* Étienne - droite avec dégradé vers la gauche */
.team-member:last-child::before {
    right: 0;
    background-image: url('./photo/etienne.jpg');
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    transform: scaleX(-1);
}

.team-member.reverse {
    background: linear-gradient(to left, #f8fafb, #ffffff);
    width: fit-content;
}

.member-photo {
    display: none;
}

.member-info {
    position: relative;
    z-index: 1;
    max-width: 600px;
    background: transparent;
    padding: 3rem;
    border-radius: 20px;
    
}

.member-info h2 {
    color: #2c5f6f;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.member-info .title {
    color: #5a8a96;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.member-info h3 {
    color: #2c5f6f;
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.member-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.member-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.member-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5a8a96;
    font-weight: bold;
}

.member-info .bio {
    background: #f0f5f7;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #5a8a96;
    margin-top: 2rem;
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
}

.separator {
    display: none;
}

/* ========== VALUES SECTION ========== */
.values-section {
    background: linear-gradient(to bottom, #f0f5f7, #ffffff);
    padding: 4rem 2rem;
}

.values-section h2 {
    color: #2c5f6f;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #2c5f6f;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* ========== RESPONSIVE BASE ========== */
@media (max-width: 1000px) {
    /* Adjust team section for tablets */
    .team-detail-section {
        flex-direction: column;
        min-height: auto;
    }
    
    .team-member {
        padding: 3rem 2rem;
        min-height: 60vh;
    }
    
    /* Adjust background positioning for smaller screens */
    .team-member:first-child::before {
        transform: scale(1.3) translateY(-10%) translateX(15%);
    }
    
    .team-member:last-child::before {
        transform: scaleX(-1) scale(1.2);
    }
    
    .member-info {
        padding: 2rem;
        max-width: 100%;
    }
    
    nav {
        flex-wrap: wrap;
        padding: 1rem;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .nav-links {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .nav-links button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .btn-appointment {
        order: 3;
        width: auto;
    }

    .hero {
        padding-top: 10rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .team-member {
        padding: 2rem 1rem;
        min-height: 50vh;
    }
    
    /* Further adjust background for mobile */
    .team-member:first-child::before {
        transform: scale(1.5) translateY(-5%) translateX(10%);
        opacity: 0.4;
    }
    
    .team-member:last-child::before {
        transform: scaleX(-1) scale(1.4);
        opacity: 0.4;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-info h2 {
        font-size: 1.8rem;
    }
    
    .member-info .title {
        font-size: 1rem;
    }
    
    .nav-links button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .btn-appointment {
        padding: 0.6rem 1.2rem;
        font-size: 14px;
    }
}