/**
 * Équipe Page Styles - Thibierge Notaires
 */

/* =============================================
   PAGE LAYOUT
============================================= */

.equipe-page {
    padding: 0;
    margin: 0;
}

/* =============================================
   HERO SECTION
============================================= */

.equipe-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../../images/hero_notaire-scaled.webp');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
}

/* Overlay sombre sur le hero — assure la lisibilité du titre et du texte */
.equipe-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.equipe-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter-desktop);
}

.equipe-hero__title {
    font-family: var(--font-magnetik);
    font-weight: 200;
    font-size: 81.37px;
    line-height: 90px;
    color: #fff;
    margin: 0 0 28px;
}

.equipe-hero__text {
    font-family: var(--font-magnetik);
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    color: #fff;
    max-width: 458px;
    margin: 0 auto;
}

.equipe-hero__arrow {
    position: relative;
    z-index: 2;
    margin-top: 70px;
    cursor: pointer;
    animation: equipe-bounce 2s ease-in-out infinite;
}

.equipe-hero__arrow svg {
    display: block;
    width: 54px;
    height: 54px;
    transition: transform 0.3s ease;
}

.equipe-hero__arrow:hover svg {
    transform: translateY(5px);
}

@keyframes equipe-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* =============================================
   ORGANISATION SECTION
============================================= */

.equipe-organisation {
    padding: 0;
    background: #fff;
}

.equipe-organisation__wrapper {
    display: flex;
    max-width: 1333px;
    margin: -143px auto 0;
    position: relative;
    z-index: 2;
}

.equipe-organisation__card {
    flex: 0 0 50%;
    background: #fff;
    border: 1px solid #eff2f6;
    height: 286px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.equipe-organisation__card--left {
    padding: 56px 60px;
}

.equipe-organisation__card--right {
    padding: 56px 60px;
    display: flex;
    align-items: center;
}

.equipe-organisation__surtitre {
    font-family: var(--font-geometos);
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 12px;
}

.equipe-organisation__titre {
    font-family: var(--font-bodoni);
    font-weight: 400;
    font-style: italic;
    font-size: 36px;
    line-height: 1.32;
    color: var(--color-text-dark);
    margin: 0;
}

.equipe-organisation__texte {
    font-family: var(--font-magnetik);
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 505px;
}

/* =============================================
   TEAM SECTIONS (Common)
============================================= */

.equipe-section {
    position: relative;
    padding: 80px 0;
    background: #fff;
}

.equipe-section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 0 var(--gutter-desktop);
}

.equipe-section__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-geometos);
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #A3ACB5;
    margin: 0 0 16px;
}

.equipe-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 21px;
    background: var(--color-accent);
    border-radius: 50%;
    font-family: var(--font-geometos);
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.7px;
    color: #fff;
}

.equipe-section__description {
    font-family: var(--font-magnetik);
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    color: var(--color-text-muted);
    margin: 0;
}

/* =============================================
   COMEX GRID (3 columns, larger cards)
============================================= */

.equipe-grid--comex {
    display: grid;
    grid-template-columns: repeat(3, 343px);
    gap: 15px 19px;
    justify-content: center;
    padding: 0 var(--gutter-desktop);
}

.equipe-card--comex {
    position: relative;
    cursor: pointer;
}

.equipe-card--comex .equipe-card__image {
    position: relative;
    width: 343px;
    height: 492px;
    overflow: hidden;
}

.equipe-card--comex .equipe-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipe-card--comex:hover .equipe-card__image img {
    transform: scale(1.05);
}

.equipe-card--comex .equipe-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    text-align: center;
}

.equipe-card--comex .equipe-card__name {
    font-family: var(--font-bodoni);
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    line-height: 1.32;
    color: #fff;
    margin: 0 0 4px;
}

.equipe-card--comex .equipe-card__name span {
    font-style: normal;
    text-transform: uppercase;
}

.equipe-card--comex .equipe-card__specialites {
    font-family: var(--font-magnetik);
    font-weight: 200;
    font-size: 14px;
    line-height: 18px;
    color: #fff;
    margin: 0;
}

/* =============================================
   ASSOCIES GRID (5 columns, full width)
============================================= */

.equipe-section--associes {
    position: relative;
    z-index: 2;
    background: transparent;
}

.equipe-grid--associes {
    position: relative;
    z-index: 3;
}

.equipe-grid--associes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 19px;
    padding: 0 var(--gutter-desktop);
}

.equipe-grid--associes .equipe-card--standard {
    flex: 0 0 301px;
    max-width: 301px;
}

/* =============================================
   STANDARD GRID (6 columns)
============================================= */

.equipe-grid--standard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 19px;
    padding: 0 var(--gutter-desktop);
}

.equipe-grid--standard .equipe-card--standard {
    flex: 0 0 301px;
    max-width: 301px;
}

.equipe-card--standard {
    position: relative;
    cursor: pointer;
}


.equipe-card--standard .equipe-card__image {
    position: relative;
    width: 100%;
    height: 523px;
    overflow: hidden;
}

.equipe-card--standard .equipe-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipe-card--standard:hover .equipe-card__image img {
    transform: scale(1.05);
}

.equipe-card--standard .equipe-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipe-card--standard:hover .equipe-card__image::after {
    opacity: 1;
}

.equipe-card--standard .equipe-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    text-align: center;
}

.equipe-card--standard .equipe-card__name {
    font-family: var(--font-bodoni);
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    line-height: 1.32;
    color: #fff;
    margin: 0 0 4px;
}

.equipe-card--standard .equipe-card__name span {
    font-style: normal;
    text-transform: uppercase;
}

.equipe-card--standard .equipe-card__specialites {
    font-family: var(--font-magnetik);
    font-weight: 200;
    font-size: 14px;
    line-height: 18px;
    color: #fff;
    margin: 0;
}

/* =============================================
   SUPPORT GRID (3 columns centered)
============================================= */

.equipe-grid--support {
    display: grid;
    grid-template-columns: repeat(3, 301px);
    gap: 19px;
    justify-content: center;
    padding: 0 var(--gutter-desktop);
}

/* =============================================
   CTA CARRIERES SECTION
============================================= */

.equipe-cta {
    display: flex;
    justify-content: center;
    padding: 0 var(--gutter-desktop);
    background: #fff;
}

.equipe-cta__wrapper {
    position: relative;
    width: 100%;
    max-width: 1478px;
    padding: 184px 60px;
    text-align: center;
    background-image: url('../../images/rectangle-45661-scaled.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Overlay sombre — assure la lisibilité du titre et du texte */
.equipe-cta__wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.equipe-cta__content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.equipe-cta__surtitre {
    font-family: var(--font-geometos);
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 24px;
}

.equipe-cta__titre {
    font-family: var(--font-bodoni);
    font-weight: 400;
    font-style: italic;
    font-size: 36px;
    line-height: 1.32;
    color: #fff;
    margin: 0 0 24px;
}

.equipe-cta__texte {
    font-family: var(--font-magnetik);
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    color: #fff;
    margin: 0 0 40px;
}

.equipe-cta__link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.equipe-cta__link-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 1px;
}

.equipe-cta__link-text {
    font-family: var(--font-magnetik);
    font-weight: 300;
    font-size: 18px;
    color: #fff;
    white-space: nowrap;
}

.equipe-cta__link-icon {
    width: 12px;
    height: 11px;
    color: #fff;
    transition: transform 0.3s ease;
}

.equipe-cta__link:hover .equipe-cta__link-icon {
    transform: translateX(4px);
}

.equipe-cta__link-line {
    position: relative;
    width: 100%;
    height: 1px;
    background-color: transparent;
    overflow: hidden;
}

.equipe-cta__link-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.equipe-cta__link:hover .equipe-cta__link-line::after {
    animation: lineWipeEquipeCta 0.5s ease;
}

@keyframes lineWipeEquipeCta {
    0% { transform: translateX(0); }
    50% { transform: translateX(100%); }
    50.01% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* =============================================
   NOTAIRE POPUP / MODAL
============================================= */

.notaire-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 1s, opacity 0.4s ease 0.6s;
}

.notaire-popup.is-open {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 0.4s ease;
}

.notaire-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    cursor: pointer;
    transition: background 0.4s ease 0.5s, backdrop-filter 0.4s ease 0.5s;
}

.notaire-popup.is-open .notaire-popup__overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    transition: background 0.6s ease, backdrop-filter 0.6s ease;
}

.notaire-popup__container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.notaire-popup.is-open .notaire-popup__container {
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Decorative shapes */
.notaire-popup__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.notaire-popup__shape {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notaire-popup.is-open .notaire-popup__shape {
    opacity: 1;
    transition: opacity 0.8s ease 0.4s;
}

/* Position for non-COMEX (default) */
.notaire-popup__shape--1 {
    width: 1800px;
    height: auto;
    left: -700px;
    top: 405px;
}

/* Position for COMEX */
.notaire-popup--comex .notaire-popup__shape--1 {
    width: 1000px;
    left: 44px;
    top: -400px;
}

.notaire-popup__content {
    flex: 0 0 50%;
    padding: 171px 125px 80px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Staggered content animations */
.notaire-popup__type,
.notaire-popup__name,
.notaire-popup__specialites,
.notaire-popup__contact,
.notaire-popup__bio,
.notaire-popup__annee,
.notaire-popup__back {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Close animation - reverse stagger (annee → back) */
.notaire-popup__annee {
    transition-delay: 0s;
}
.notaire-popup__bio {
    transition-delay: 0.03s;
}
.notaire-popup__contact {
    transition-delay: 0.06s;
}
.notaire-popup__specialites {
    transition-delay: 0.09s;
}
.notaire-popup__name {
    transition-delay: 0.12s;
}
.notaire-popup__type {
    transition-delay: 0.15s;
}
.notaire-popup__back {
    transition-delay: 0.18s;
}

/* Open animation - forward stagger (back → annee) */
.notaire-popup.is-open .notaire-popup__back {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.notaire-popup.is-open .notaire-popup__type {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

.notaire-popup.is-open .notaire-popup__name {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.notaire-popup.is-open .notaire-popup__specialites {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.45s, transform 0.5s ease 0.45s;
}

.notaire-popup.is-open .notaire-popup__contact {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.notaire-popup.is-open .notaire-popup__bio {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s;
}

.notaire-popup.is-open .notaire-popup__annee {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

.notaire-popup__image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.notaire-popup__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.1);
    transition: transform 0.4s ease;
}

.notaire-popup.is-open .notaire-popup__image img {
    transform: scale(1);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Popup Header */
.notaire-popup__type {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-geometos);
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #A3ACB5;
    margin: 0 0 24px;
}

.notaire-popup__linkedin {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #0A66C2;
    transition: transform 0.3s ease;
}

.notaire-popup__linkedin:hover {
    transform: scale(1.2);
}

.notaire-popup__linkedin svg {
    width: 100%;
    height: 100%;
}

.notaire-popup__name {
    font-family: var(--font-bodoni);
    font-weight: 400;
    font-style: italic;
    font-size: 43.691px;
    line-height: 1.32;
    color: var(--color-text-dark);
    margin: 0 0 12px;
}

/* Prénom : hérite du parent (italique, casse normale "Hervé").
   Nom : romain + majuscules ("SARAZIN"). */
.notaire-popup__nom {
    font-style: normal;
    text-transform: uppercase;
}

.notaire-popup__specialites {
    font-family: var(--font-magnetik);
    font-weight: 200;
    font-size: 16px;
    line-height: 22px;
    color: #222F30;
    margin: 0 0 32px;
    max-width: 320px;
}

/* Contact Info */
.notaire-popup__contact {
    margin: 0 0 40px;
}

.notaire-popup__contact-item {
    font-family: var(--font-magnetik);
    font-weight: 200;
    font-size: 27.804px;
    line-height: 35.747px;
    color: var(--color-text-dark);
    margin: 0;
    display: block;
}

.notaire-popup__contact-item a {
    color: inherit;
    transition: color 0.3s ease;
}

.notaire-popup__contact-item a:hover {
    color: var(--color-primary);
}

/* Biography */
.notaire-popup__bio {
    font-family: var(--font-magnetik);
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    color: var(--color-text-muted);
}

.notaire-popup__bio p {
    margin: 0 0 20px;
}

.notaire-popup__bio p:last-child {
    margin-bottom: 0;
}

.notaire-popup__annee {
    font-family: var(--font-magnetik);
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: #72777B;
    margin: 20px 0 0;
}

/* Back Button — placé en premier dans le content,
   au-dessus de la fonction (notaire-popup__type) */
.notaire-popup__back {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 32px;
    width: fit-content;
}

.notaire-popup__back-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 1px;
}

.notaire-popup__back-icon {
    width: 12px;
    height: 11px;
    color: #1e1e1e;
    transition: transform 0.3s ease;
}

.notaire-popup__back:hover .notaire-popup__back-icon {
    transform: translateX(-4px);
}

.notaire-popup__back-text {
    font-family: var(--font-magnetik);
    font-weight: 300;
    font-size: 18px;
    color: #1e1e1e;
    white-space: nowrap;
}

.notaire-popup__back-line {
    position: relative;
    width: 100%;
    height: 1px;
    background-color: transparent;
    overflow: hidden;
}

.notaire-popup__back-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.notaire-popup__back:hover .notaire-popup__back-line::after {
    animation: lineWipePopupBack 0.5s ease;
}

@keyframes lineWipePopupBack {
    0% { transform: translateX(0); }
    50% { transform: translateX(-100%); }
    50.01% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

/* Body scroll lock */
body.notaire-popup-open {
    overflow: hidden;
}

/* =============================================
   DECORATIVE SHAPES
============================================= */

.equipe-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.equipe-shape--1 {
    left: -207px;
    top: 807px;
    width: 875px;
    height: 1370px;
}

.equipe-shape--2 {
    left: -80px;
    top: 2286px;
    width: 875px;
    height: 865px;
}

.equipe-shape--ellipse-1 {
    left: calc(37.5% - 1.72px);
    top: 1763px;
    width: 1240px;
    height: 2490px;
}

.equipe-shape--ellipse-2 {
    left: 10px;
    top: 1467px;
    width: 2123px;
    height: 3563px;
}

.equipe-section--comex {
    position: relative;
}

.equipe-grid--comex {
    position: relative;
    z-index: 3;
}

.equipe-section--comex::after {
    content: '';
    position: absolute;
    bottom: -257px;
    left: 83%;
    transform: translateX(-50%);
    width: 2000px;
    height: 1200px;
    background-image: url('../../shapes/shape-popup.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   RESPONSIVE - LARGE DESKTOP
============================================= */

@media (max-width: 1700px) {
    .equipe-grid--associes {
        gap: 19px;
    }

    .equipe-grid--associes .equipe-card--standard {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .equipe-grid--standard .equipe-card--standard {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

/* =============================================
   RESPONSIVE - TABLET
============================================= */

@media (max-width: 1439px) {
    .equipe-hero__title {
        font-size: 60px;
        line-height: 70px;
    }

    .equipe-grid--comex {
        grid-template-columns: repeat(3, 280px);
    }

    .equipe-card--comex .equipe-card__image {
        width: 280px;
        height: 400px;
    }

    .equipe-grid--associes {
        gap: 19px;
    }

    .equipe-grid--associes .equipe-card--standard {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .equipe-grid--standard .equipe-card--standard {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .equipe-grid--support {
        grid-template-columns: repeat(3, 240px);
    }
}

@media (max-width: 1200px) {
    .equipe-grid--associes {
        gap: 19px;
    }

    .equipe-grid--associes .equipe-card--standard {
        flex: 0 0 240px;
        max-width: 240px;
    }

    .equipe-grid--standard .equipe-card--standard {
        flex: 0 0 240px;
        max-width: 240px;
    }
}

@media (max-width: 1023px) {
    .equipe-hero {
        padding: 100px var(--gutter-tablet) 60px;
        min-height: 80vh;
    }

    .equipe-hero__title {
        font-size: 42px;
        line-height: 52px;
    }

    .equipe-hero__text {
        font-size: 16px;
        line-height: 26px;
    }

    .equipe-organisation__wrapper {
        flex-direction: column;
        margin: -80px var(--gutter-tablet) 0;
    }

    .equipe-organisation__card {
        flex: none;
        height: auto;
    }

    .equipe-organisation__card--left,
    .equipe-organisation__card--right {
        padding: 40px;
    }

    .equipe-section {
        padding: 60px 0;
    }

    .equipe-section__header {
        padding: 0 var(--gutter-tablet);
    }

    .equipe-grid--comex {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 var(--gutter-tablet);
    }

    .equipe-card--comex .equipe-card__image {
        width: 100%;
        height: 350px;
    }

    .equipe-grid--associes {
        gap: 19px;
        padding: 0 var(--gutter-tablet);
    }

    .equipe-grid--associes .equipe-card--standard {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .equipe-grid--standard {
        gap: 19px;
        padding: 0 var(--gutter-tablet);
    }

    .equipe-grid--standard .equipe-card--standard {
        flex: 0 0 calc(33.333% - 13px);
        max-width: calc(33.333% - 13px);
    }

    .equipe-card--standard .equipe-card__image {
        width: 100%;
        height: 380px;
    }

    .equipe-grid--support {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 var(--gutter-tablet);
    }

    /* Popup */
    .notaire-popup__container {
        flex-direction: column-reverse;
    }

    .notaire-popup__content {
        flex: 1;
        padding: 40px var(--gutter-tablet);
        overflow-y: auto;
    }

    .notaire-popup__image {
        flex: 0 0 55vh;
    }

    .notaire-popup__name {
        font-size: 32px;
    }

    .notaire-popup__contact-item {
        font-size: 18px;
        line-height: 26px;
    }
}

@media (max-width: 767px) {
    /* Hero mobile : même principe que la page Expertises
       (image plein écran + overlay sombre + texte blanc centré). */
    .equipe-hero {
        padding: 0 var(--gutter-mobile);
        min-height: 100vh;
        min-height: 100svh;
        height: 100vh;
        height: 100svh;
        justify-content: center;
        align-items: center;
    }
    .equipe-hero::before {
        display: block;
    }
    .equipe-hero__content {
        width: auto;
        max-width: 100%;
        padding: 0;
        background: transparent;
        text-align: center;
    }
    .equipe-hero__title {
        font-size: 36px;
        line-height: 44px;
        color: #fff;
        margin: 0 0 24px;
    }
    .equipe-hero__text {
        font-size: 15px;
        line-height: 24px;
        color: #fff;
        margin: 0 auto 60px;
    }
    .equipe-hero__arrow {
        display: block;
        position: absolute;
        bottom: 130px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }
    @keyframes equipe-bounce {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50%      { transform: translateX(-50%) translateY(10px); }
    }
    .equipe-hero__scroll {
        bottom: 40px;
        width: 40px;
        height: 40px;
    }
    .equipe-hero__scroll svg {
        width: 40px;
        height: 40px;
    }

    .equipe-organisation__wrapper {
        margin: -60px var(--gutter-mobile) 0;
    }

    .equipe-organisation__card--left,
    .equipe-organisation__card--right {
        padding: 24px;
    }

    .equipe-organisation__titre {
        font-size: 28px;
    }

    .equipe-organisation__texte {
        font-size: 16px;
        line-height: 26px;
    }

    .equipe-section {
        padding: 40px 0;
    }

    .equipe-section__header {
        padding: 0 var(--gutter-mobile);
        margin-bottom: 40px;
    }

    /* Sur mobile : badge 17 placé en dessous, texte centré sur 2 lignes propres */
    .equipe-section__label {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        line-height: 22px;
        gap: 12px;
        max-width: 100%;
    }
    .equipe-section__label .equipe-section__count {
        flex-shrink: 0;
        padding-top: 1px;
    }

    .equipe-section__description {
        font-size: 16px;
        line-height: 26px;
    }

    .equipe-grid--comex {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 0 var(--gutter-mobile);
    }

    .equipe-card--comex {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: 140px;
    }

    .equipe-card--comex .equipe-card__image {
        width: 100%;
        height: 280px;
    }

    .equipe-grid--associes {
        padding: 0 var(--gutter-mobile);
        gap: 12px;
    }

    .equipe-grid--associes .equipe-card--standard {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: 140px;
    }

    .equipe-grid--standard {
        gap: 12px;
        padding: 0 var(--gutter-mobile);
    }

    .equipe-grid--standard .equipe-card--standard {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: 140px;
    }

    .equipe-card--standard .equipe-card__image {
        height: 280px;
    }

    .equipe-card--standard .equipe-card__name {
        font-size: 18px;
    }

    .equipe-card--standard .equipe-card__specialites {
        font-size: 12px;
        line-height: 16px;
    }

    .equipe-grid--support {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 var(--gutter-mobile);
    }

    .equipe-cta {
        padding: 0 var(--gutter-mobile);
    }

    .equipe-cta__wrapper {
        padding: 80px 24px;
    }

    .equipe-cta__titre {
        font-size: 28px;
    }

    .equipe-cta__texte {
        font-size: 16px;
        line-height: 26px;
    }

    /* Popup Mobile */
    .notaire-popup__content {
        padding: 30px var(--gutter-mobile);
    }

    .notaire-popup__image {
        flex: 0 0 50vh;
    }

    .notaire-popup__type {
        font-size: 12px;
    }

    .notaire-popup__name {
        font-size: 26px;
    }

    .notaire-popup__specialites {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 20px;
    }

    .notaire-popup__contact-item {
        font-size: 16px;
        line-height: 24px;
    }

    .notaire-popup__bio {
        font-size: 15px;
        line-height: 26px;
    }
}
