/* =========================================================
   TEAM PAGE - ENEREV
   Responsive desktop / tablette / mobile
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1E1E1E !important;
    font-family: 'Nunito', sans-serif !important;
    line-height: 1.6;
    background-color: #FFFFFF;
}

::selection {
    color: #FFFFFF;
    background-color: #079992;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0 !important;
}

p {
    color: #1E1E1E;
}

h1,
h2,
h3 {
    font-family: 'Lora', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --color-primary: #079992;
    --color-primary-dark: #16897E;
    --color-secondary: #ff7300;
    --color-dark: #1E1E1E;
    --color-gray: #6B7280;
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-crema: #f4f1ec;

    --font-title: 'Lora', sans-serif;
    --font-text: 'Nunito', sans-serif;

    --container-width: 1280px;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-card: 18px;

    --transition-fast: 0.25s ease;
    --transition: 0.4s ease;
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

.user-is-tabbing a:focus,
.user-is-tabbing button:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}


/* =========================================================
   CONTAINER GLOBAL
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}


/* =========================================================
   SECTIONS
   ========================================================= */

section {
    padding: 4.5rem 0;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.btn {
    display: inline-block;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-green {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 0.9rem 1.8rem;

    color: #FFFFFF;
    background: var(--color-primary);

    border: 1px solid var(--color-primary);
    border-radius: 12px;

    font-weight: 600;

    transition: color 0.45s ease;
}

.btn-green::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: 0;
    left: 0;

    width: 0;
    height: 100%;

    background: var(--color-crema);

    transition: width 0.5s ease;
}

.btn-green:hover::before {
    width: 100%;
}

.btn-green:hover {
    color: var(--color-primary);
}

.fa-hand-point-right {
    margin-right: 0.75rem;
}


/* =========================================================
   HERO - INTRODUCTION
   ========================================================= */

.hero {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-title {
    display: flex;
    align-items: baseline;
    justify-content: center;

    margin: 0 3rem 4rem;

    color: var(--color-primary);

    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.25;

    text-align: center;
}

.estimate-logo {
    flex: 0 0 auto;
    max-width: 8rem;
    margin-right: 0.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 2.5rem;

    align-items: center;

    padding: 0 1.25rem;
}

.hero-content {
    min-width: 0;
}

.hero-text {
    margin: 1.5rem 0 2rem;

    color: var(--color-primary);

    font-size: 2rem;
    line-height: 1.25;
}

.hero-content p {
    margin-bottom: 1.25rem;

    color: var(--color-dark);

    text-align: justify;
}

.hero-content p:last-child {
    margin-bottom: 0;
}

.hero-visual {
    width: 100%;
}

.hero-visual img {
    width: 100%;
    height: auto;

    border-radius: var(--radius);

    object-fit: cover;
}


/* =========================================================
   HERO 2 - MISSION
   ========================================================= */

.hero-grid2 {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-content2 {
    width: 100%;
    text-align: justify;
}

.hero-text2 {
    margin-bottom: 3rem;

    color: var(--color-primary);

    font-size: 2rem;

    text-align: center;
}

.hero-content2 p {
    margin-bottom: 1.25rem;
}

.hero-content2 p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SECTION ÉQUIPE
   ========================================================= */

.team {
    width: 100%;
    background-color: var(--color-crema);
}


/* =========================================================
   CONTAINER ÉQUIPE
   ========================================================= */

#container_consumer {
    width: min(90%, 1280px);
    margin: 0 auto;
}


/* =========================================================
   TITRE "NOTRE ÉQUIPE"
   ========================================================= */

#experts_home {
    width: 100%;
    margin-bottom: 3rem;
}

#experts_home h1 {
    margin: 0;

    padding-bottom: 1rem;

    color: var(--color-primary);

    font-size: clamp(2rem, 3vw, 2.5rem);

    text-align: center;
}


/* =========================================================
   GRILLE DES EXPERTS
   ========================================================= */

#experts {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 2rem;

    width: 100%;
    margin: 0 auto 3rem;
}


/* =========================================================
   CARTE EXPERT
   ========================================================= */

.card_expert {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    overflow: hidden;

    background-color: var(--color-primary);

    border: 1px solid var(--color-primary);
    border-radius: var(--radius-card);

    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s cubic-bezier(0, 0, 0.5, 1),
        box-shadow 0.3s ease;
}

.card_expert:hover {
    transform: translateY(-5px);

    box-shadow:
        2px 10px 25px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   PHOTO EXPERT
   ========================================================= */

#card_expert_img {
    display: flex;
    align-items: flex-end;
    justify-content: center;

    width: 100%;
    height: clamp(280px, 25vw, 390px);

    overflow: hidden;

    background-color: var(--color-primary);
}

#card_expert_img img {
    width: auto;
    height: 100%;
    max-width: 100%;

    object-fit: contain;
    object-position: center bottom;
}


/* =========================================================
   CORPS DE CARTE
   ========================================================= */

#card_expert_body {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-height: 190px;

    padding: 1.25rem;

    background-color: var(--color-white);

    text-align: center;
}


/* =========================================================
   NOM
   ========================================================= */

#card_expert_title {
    margin: 0 0 0.35rem;

    color: var(--color-dark);

    font-family: var(--font-title);

    font-size: clamp(1.25rem, 2vw, 1.55rem);

    line-height: 1.2;
}


/* =========================================================
   POSTE
   ========================================================= */

.card_expert_poste {
    margin-bottom: 1.25rem;

    color: var(--color-primary);

    font-size: 1rem;
    font-weight: 700;

    line-height: 1.35;
}


/* =========================================================
   LOGOS EXPÉRIENCES
   ========================================================= */

.expert_xp {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 1rem;

    width: 100%;
    min-height: 55px;

    margin-top: auto;
}

.xp {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27%;
    max-width: 100px;
}

#xp_wsp {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 18%;
    max-width: 75px;
}

.xp img,
#xp_wsp img {
    width: 100%;
    height: auto;
    max-height: 45px;

    object-fit: contain;
}


/* =========================================================
   CONTACT / LINKEDIN
   ========================================================= */

.expert_contact {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 0.75rem;
}

#div_linkedin {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0.25rem;

    padding: 0.5rem;

    background-color: rgba(31, 168, 154, 0.12);

    border-radius: 12px;

    filter:
        brightness(0)
        saturate(100%)
        invert(36%)
        sepia(94%)
        saturate(2574%)
        hue-rotate(154deg)
        brightness(95%)
        contrast(94%);

    transition:
        transform var(--transition-fast),
        filter var(--transition-fast);
}

#div_linkedin:hover {
    transform: translateY(-2px);

    filter:
        brightness(0)
        saturate(50%)
        invert(72%)
        sepia(100%)
        saturate(5000%)
        hue-rotate(154deg)
        brightness(95%)
        contrast(94%);
}

#div_linkedin a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}

#div_linkedin img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   CURSUS
   ========================================================= */

#cursus {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 2rem;

    width: 100%;
    margin: 0 auto;
}

.div-cursus {
    width: 100%;
    padding: 0 0.5rem;

    text-align: justify;
}

.div-cursus p {
    margin: 0;

    color: var(--color-dark);

    font-size: 1rem;
    line-height: 1.65;
}

.name-cursus {
    min-height: 3rem;

    text-align: center;
}


/* =========================================================
   CTA ÉQUIPE
   ========================================================= */

.process-cta {
    margin-top: 3rem;

    text-align: center;
}


/* =========================================================
   FOOTER TEAM / GOOGLE MAPS
   ========================================================= */

.footer-team {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;

    padding: 0;

    background-color: var(--color-crema);

    overflow: hidden;
}

.footer-team iframe {
    display: block;

    width: min(100%, 600px);
    height: 450px;

    border: 0;
}


/* =========================================================
   TABLETTE LARGE
   1100px → 1250px
   ========================================================= */

@media screen and (max-width: 1250px) {

    #container_consumer {
        width: min(92%, 1100px);
    }

    #experts {
        gap: 1.5rem;
    }

    #card_expert_img {
        height: clamp(250px, 27vw, 330px);
    }

    #card_expert_body {
        padding: 1rem;
    }

    #card_expert_title {
        font-size: 1.25rem;
    }

    .card_expert_poste {
        font-size: 0.9rem;
    }

    .expert_xp {
        gap: 0.6rem;
    }

    .div-cursus {
        padding: 0;
    }
}


/* =========================================================
   TABLETTE
   768px → 1099px
   ========================================================= */

@media screen and (max-width: 1099px) {

    section {
        padding: 4rem 0;
    }

    /* HERO */

    .hero-title {
        margin-right: 2rem;
        margin-left: 2rem;
        margin-bottom: 3.5rem;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-text,
    .hero-text2 {
        font-size: 1.8rem;
    }

    .hero-content p,
    .hero-content2 p {
        font-size: 0.98rem;
    }


    /* ÉQUIPE */

    #container_consumer {
        width: min(92%, 1000px);
    }

    #experts_home {
        margin-bottom: 2.5rem;
    }

    #experts {
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    #card_expert_img {
        height: 260px;
    }

    #card_expert_body {
        min-height: 185px;
        padding: 1rem 0.75rem;
    }

    #card_expert_title {
        font-size: 1.15rem;
    }

    .card_expert_poste {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .expert_xp {
        min-height: 48px;
        gap: 0.4rem;
    }

    .xp {
        max-width: 80px;
    }

    #xp_wsp {
        max-width: 55px;
    }

    .xp img,
    #xp_wsp img {
        max-height: 38px;
    }

    #div_linkedin {
        width: 42px;
        height: 42px;
    }


    /* CURSUS */

    #cursus {
        gap: 1.25rem;
    }

    .div-cursus p {
        font-size: 0.95rem;
    }


    /* MAP */

    .footer-team iframe {
        height: 400px;
    }
}


/* =========================================================
   MOBILE
   < 768px
   ========================================================= */

@media screen and (max-width: 767px) {

    section {
        padding: 3.5rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {
        width: 100%;
    }

    .hero-title {
        display: block;

        margin: 0 auto 2.5rem;

        padding: 0 1rem;

        font-size: clamp(1.65rem, 6vw, 2rem);

        line-height: 1.3;
    }

    .estimate-logo {
        display: none;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;

        gap: 2rem;

        width: 100%;

        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        width: 100%;
    }

    .hero-text {
        margin: 0 0 1.5rem;

        font-size: clamp(1.5rem, 6vw, 1.8rem);

        text-align: center;
    }

    .hero-content p {
        margin-bottom: 1rem;

        font-size: 0.98rem;

        line-height: 1.65;

        text-align: left;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-visual img {
        width: 100%;
        height: auto;
    }


    /* =====================================================
       MISSION
       ===================================================== */

    .hero-grid2 {
        width: 100%;
        padding: 0 1rem;
    }

    .hero-text2 {
        margin-bottom: 1.75rem;

        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    .hero-content2 p {
        margin-bottom: 1rem;

        font-size: 0.98rem;
        line-height: 1.65;

        text-align: left;
    }


    /* =====================================================
       ÉQUIPE
       ===================================================== */

    #container_consumer {
        width: 100%;
        max-width: 600px;

        padding-left: 1rem;
        padding-right: 1rem;
    }

    #experts_home {
        margin-bottom: 2rem;
    }

    #experts_home h1 {
        padding-bottom: 0;

        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }


    /* =====================================================
       CARTES
       ===================================================== */

    #experts {
        display: flex;
        flex-direction: column;

        gap: 1.75rem;

        width: 100%;

        margin-bottom: 2.5rem;
    }

    .card_expert {
        width: 100%;
        max-width: 480px;

        margin: 0 auto;
    }


    /* ordre souhaité sur mobile */

    #expert_ap {
        order: 1;
    }

    #expert_pjp {
        order: 2;
    }

    #expert_td {
        order: 3;
    }


    /* =====================================================
       PHOTOS
       ===================================================== */

    #card_expert_img {
        height: clamp(280px, 75vw, 360px);
    }

    #card_expert_img img {
        max-width: 100%;
    }


    /* =====================================================
       CORPS DES CARTES
       ===================================================== */

    #card_expert_body {
        min-height: 0;

        padding: 1.25rem 1rem 1.15rem;
    }

    #card_expert_title {
        margin-bottom: 0.35rem;

        font-size: 1.4rem;
    }

    .card_expert_poste {
        margin-bottom: 1.25rem;

        font-size: 0.95rem;
    }


    /* =====================================================
       LOGOS
       ===================================================== */

    .expert_xp {
        min-height: 50px;

        gap: 1rem;
    }

    .xp {
        width: 28%;
        max-width: 100px;
    }

    #xp_wsp {
        width: 20%;
        max-width: 70px;
    }

    .xp img,
    #xp_wsp img {
        max-height: 42px;
    }


    /* =====================================================
       LINKEDIN
       ===================================================== */

    .expert_contact {
        margin-top: 0.75rem;
    }

    #div_linkedin {
        width: 44px;
        height: 44px;
    }


    /* =====================================================
       CURSUS
       ===================================================== */

    #cursus {
        display: flex;
        flex-direction: column;

        gap: 1.5rem;

        width: 100%;
    }

    .div-cursus {
        width: 100%;

        padding: 0;

        text-align: left;
    }

    .div-cursus p {
        font-size: 0.97rem;
        line-height: 1.65;

        text-align: left;
    }


    /* =====================================================
       CTA
       ===================================================== */

    .process-cta {
        margin-top: 2.5rem;
    }

    .process-cta .btn-green {
        width: 100%;
        max-width: 420px;

        padding: 0.9rem 1.25rem;

        font-size: 0.95rem;
    }


    /* =====================================================
       GOOGLE MAPS
       ===================================================== */

    .footer-team {
        padding: 0;
    }

    .footer-team iframe {
        width: 100%;
        height: 360px;
    }
}


/* =========================================================
   PETITS MOBILES
   < 480px
   ========================================================= */

@media screen and (max-width: 479px) {

    section {
        padding: 3rem 0;
    }

    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }


    /* HERO */

    .hero-title {
        padding: 0 0.75rem;

        margin-bottom: 2rem;

        font-size: 1.55rem;
    }

    .hero-grid {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .hero-text {
        font-size: 1.45rem;
    }

    .hero-content p,
    .hero-content2 p {
        font-size: 0.94rem;
    }


    /* MISSION */

    .hero-text2 {
        font-size: 1.45rem;
    }


    /* ÉQUIPE */

    #container_consumer {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    #experts_home {
        margin-bottom: 1.75rem;
    }

    #experts_home h1 {
        font-size: 1.75rem;
    }

    #experts {
        gap: 1.5rem;
    }


    /* CARTES */

    .card_expert {
        border-radius: 16px;
    }

    #card_expert_img {
        height: 285px;
    }

    #card_expert_body {
        padding: 1rem 0.8rem;
    }

    #card_expert_title {
        font-size: 1.25rem;
    }

    .card_expert_poste {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }


    /* LOGOS */

    .expert_xp {
        gap: 0.65rem;
    }

    .xp {
        width: 29%;
    }

    #xp_wsp {
        width: 20%;
    }

    .xp img,
    #xp_wsp img {
        max-height: 36px;
    }


    /* LINKEDIN */

    #div_linkedin {
        width: 42px;
        height: 42px;
    }


    /* CURSUS */

    #cursus {
        gap: 1.25rem;
    }

    .div-cursus p {
        font-size: 0.93rem;
    }


    /* CTA */

    .process-cta {
        margin-top: 2rem;
    }

    .process-cta .btn-green {
        width: 100%;

        padding: 0.85rem 1rem;

        font-size: 0.9rem;
    }


    /* MAP */

    .footer-team iframe {
        height: 320px;
    }
}


/* =========================================================
   TRÈS PETITS ÉCRANS
   < 360px
   ========================================================= */

@media screen and (max-width: 359px) {

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-text,
    .hero-text2 {
        font-size: 1.35rem;
    }

    #experts_home h1 {
        font-size: 1.6rem;
    }

    #card_expert_img {
        height: 260px;
    }

    #card_expert_title {
        font-size: 1.15rem;
    }

    .card_expert_poste {
        font-size: 0.85rem;
    }

    .expert_xp {
        gap: 0.4rem;
    }

    .xp img,
    #xp_wsp img {
        max-height: 32px;
    }

    .div-cursus p {
        font-size: 0.9rem;
    }

    .footer-team iframe {
        height: 300px;
    }
}


/* =========================================================
   RÉDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}