/* =========================================================
   SECTION ÉQUIPE
========================================================= */

.team-section {
    position: relative;
    padding: 90px 20px 100px;
    background: #ffffff;
    overflow: hidden;
}

.team-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.team-header {
    max-width: 900px;
    margin: 0 auto 55px;
    text-align: center;
}

.team-eyebrow {
    display: inline-block;
    margin-bottom: 12px;

    color: #e87d25;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-header h2 {
    margin: 0 0 18px;

    color: #151515;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.team-header p {
    max-width: 820px;
    margin: 0 auto;

    color: #707070;
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   GRID
========================================================= */

.team-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 28px 24px;
}


/* =========================================================
   CARTE
========================================================= */

.team-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #eeeeee;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.team-card:hover {
    transform: translateY(-8px);

    border-color: rgba(232, 125, 37, 0.25);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.11);
}


/* =========================================================
   PHOTO
========================================================= */

.team-photo {
    position: relative;

    width: 100%;
    height: 300px;

    overflow: hidden;

    background: #eeeeee;
}

.team-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transition:
        transform 0.6s cubic-bezier(.2, .7, .2, 1),
        filter 0.4s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.06);
    filter: brightness(0.78);
}


/* =========================================================
   OVERLAY
========================================================= */

.team-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.45));

    opacity: 0;

    transition: opacity 0.35s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}


/* =========================================================
   LINKEDIN
========================================================= */

.linkedin-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    color: #ffffff;
    background: #0a66c2;

    border-radius: 50%;

    text-decoration: none;

    transform: translateY(15px) scale(0.75);

    opacity: 0;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.4s cubic-bezier(.2, .8, .2, 1),
        opacity 0.3s ease,
        background 0.25s ease;
}

.team-card:hover .linkedin-link {
    transform: translateY(0) scale(1);
    opacity: 1;

    transition-delay: 0.08s;
}

.linkedin-link:hover {
    background: #004182;

    transform: translateY(0) scale(1.08);
}

.linkedin-link svg {
    width: 23px;
    height: 23px;

    fill: currentColor;
}


/* =========================================================
   INFORMATIONS
========================================================= */

.team-info {
    min-height: 105px;

    padding: 20px 18px 22px;

    text-align: center;

    background: #ffffff;
}

.team-info h3 {
    margin: 0 0 8px;

    color: #202020;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.team-info p {
    margin: 0 auto;

    max-width: 230px;

    color: #858585;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   EFFET LIGNE ORANGE
========================================================= */

.team-card::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 3px;

    background: #e87d25;

    transform: translateX(-50%);

    transition: width 0.35s ease;
}

.team-card:hover::after {
    width: 55%;
}


/* =========================================================
   RESPONSIVE - TABLETTE
========================================================= */

@media (max-width: 1050px) {

    .team-section {
        padding: 75px 20px 80px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .team-photo {
        height: 270px;
    }
}


/* =========================================================
   RESPONSIVE - PETITE TABLETTE
========================================================= */

@media (max-width: 780px) {

    .team-section {
        padding: 65px 18px 70px;
    }

    .team-header {
        margin-bottom: 40px;
    }

    .team-header p {
        font-size: 13px;
        line-height: 1.75;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-photo {
        height: 280px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 520px) {

    .team-section {
        padding: 55px 15px 60px;
    }

    .team-header {
        margin-bottom: 35px;
    }

    .team-eyebrow {
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .team-header h2 {
        font-size: 27px;
    }

    .team-header p {
        font-size: 12.5px;
    }

    .team-grid {
        grid-template-columns: 1fr;

        max-width: 360px;
        margin: 0 auto;
    }

    .team-photo {
        height: 360px;
    }

    .team-info {
        min-height: auto;
        padding: 20px 18px 24px;
    }

    .team-info h3 {
        font-size: 16px;
    }

    .team-info p {
        font-size: 12px;
        max-width: 280px;
    }
}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

.linkedin-link:focus-visible {
    outline: 3px solid rgba(10, 102, 194, 0.35);
    outline-offset: 4px;
}

.team-card:focus-within {
    border-color: rgba(10, 102, 194, 0.35);
}


/* =========================================================
   REDUCTION DES ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .team-card,
    .team-photo img,
    .team-overlay,
    .linkedin-link,
    .team-card::after {
        transition: none !important;
    }

    .team-card:hover {
        transform: none;
    }

    .team-card:hover .team-photo img {
        transform: none;
    }
}