.teams-page.home-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #b4d0ea;
    isolation: isolate;
}

.teams-content {
    position: relative;
    z-index: 2;
}

.home-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.home-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1512 / 1136;
    max-width: none;
    display: block;
}

.bubble-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bubble-dot {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    will-change: transform, opacity;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ========== HERO HEADER ========== */

.teams-hero-header {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 1rem;
    text-align: center;
    background: transparent;
}

.teams-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    width: fit-content;
    max-width: min(100%, 900px);
    margin: 0 auto;
    color: var(--theme-09);
}

.teams-hero-content::before,
.teams-hero-content::after {
    content: '';
    position: absolute;
    z-index: -1;
    opacity: 0.44;
    pointer-events: none;
}

.teams-hero-content::before {
    top: auto;
    bottom: -30px;
    left: -86px;
    width: 172px;
    height: 172px;
    background: url('/assets/images/decorations/fleur-assortiment.svg') no-repeat center;
    background-size: contain;
    transform: rotate(-18deg) scale(0.86);
}

.teams-hero-content::after {
    top: -20px;
    right: -74px;
    width: 184px;
    height: 184px;
    background: url('/assets/images/decorations/fleur-plate-bleue.svg') no-repeat center;
    background-size: contain;
    transform: rotate(18deg) scale(0.88);
}

.teams-hero-bg,
.teams-hero-overlay {
    display: none;
}

.teams-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid rgba(20, 69, 76, 0.12);
    color: #2f7d86;
    font-family: 'TikiTropicBold', sans-serif;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(20, 69, 76, 0.08);
}

.teams-hero-content h1 {
    margin: 0;
    font-family: 'TikiTropicBold', sans-serif;
    font-size: clamp(56px, 8vw, 112px);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--theme-09);
    position: relative;
    z-index: 1;
}

.teams-hero-subtitle {
    margin: 0;
    max-width: 860px;
    font-family: 'TikiTropicBold', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.35;
    color: #2f7d86;
}


/* ========== MAIN CONTENT ========== */

.team-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.5rem;
}

.teams-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 1rem clamp(4rem, 10vw, 8rem);
}

.teams-group-photo {
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding: 0.85rem;
    border-radius: 30px;
    background: rgba(255, 251, 242, 0.9);
    border: 2px solid rgba(20, 69, 76, 0.12);
    box-shadow: 0 4px 14px rgba(20, 69, 76, 0.1);
    max-width: 1140px;
}

.teams-group-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    object-fit: cover;
}

.teams-blobs {
    display: grid;
    gap: clamp(4rem, 8vw, 6rem);
}

/* ========== TEAM SECTION ========== */

.team-blob {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.team-blob:nth-child(even) {
    direction: rtl;
}

.team-blob:nth-child(even) > * {
    direction: ltr;
}

.team-blob-image-container {
    position: relative;
    width: 100%;
    min-height: 450px;
    border-radius: 32px;
    overflow: visible;
    box-shadow: 0 4px 14px rgba(20, 69, 76, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.team-image-decoration {
    position: absolute;
    width: clamp(84px, 11vw, 132px);
    height: clamp(84px, 11vw, 132px);
    object-fit: contain;
    pointer-events: none;
    opacity: 0.98;
    transform: translateY(0) scale(1) rotate(-7deg);
    filter: drop-shadow(0 3px 6px rgba(20, 69, 76, 0.16));
    z-index: 3;
}

.team-blob:nth-child(odd) .team-image-decoration {
    right: -32px;
    bottom: -28px;
}

.team-blob:nth-child(even) .team-image-decoration {
    left: -32px;
    bottom: -28px;
    transform: translateY(0) scale(1) rotate(7deg);
}

.team-blob-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

.team-blob-content {
    padding: clamp(1rem, 2vw, 2rem) 0;
}

.team-blob-title {
    margin: 0 0 1.2rem 0;
    font-family: 'TikiTropicBold', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--team-accent);
    line-height: 1.2;
}

.team-blob-description {
    margin: 0;
    font-family: 'CoopBl', sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
    color: #2f5a63;
}

.team-promises {
    margin-top: 0.8rem;
}

.team-promises-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
    color: #2f5a63;
    font-family: 'CoopBl', sans-serif;
    font-size: clamp(15px, 1.8vw, 20px);
    line-height: 1.5;
}

.team-promises-list li {
    margin: 0;
}

.team-members {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.team-members-title {
    margin: 0 0 0.55rem;
    font-family: 'TikiTropicBold', sans-serif;
    font-size: clamp(18px, 2.1vw, 24px);
    color: var(--team-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-members-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.team-member-item {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.45rem 0.76rem;
    border-radius: 14px;
    background: var(--team-accent);
    color: #fffdf7;
    font-family: 'CoopBl', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.team-member-name {
    font-size: 15px;
    line-height: 1.1;
}

.team-member-role {
    margin-top: 0.1rem;
    font-size: 12px;
    line-height: 1.1;
    color: rgba(255, 253, 247, 0.86);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1000px) {
    .team-blob {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 3rem);
    }

    .team-blob:nth-child(even) {
        direction: ltr;
    }

    .team-blob-image-container {
        min-height: 380px;
    }
}

@media (max-width: 680px) {
    .teams-main {
        padding: clamp(2rem, 6vw, 4rem) 1rem;
    }

    .teams-hero-content::before {
        width: 120px;
        height: 120px;
        top: auto;
        bottom: -14px;
        left: -34px;
    }

    .teams-hero-content::after {
        width: 132px;
        height: 132px;
        top: -14px;
        right: -14px;
    }

    .teams-blobs {
        gap: clamp(3rem, 6vw, 4rem);
    }

    .team-blob-image-container {
        min-height: 320px;
        border-radius: 24px;
    }

    .team-blob-title {
        font-size: 28px;
        margin-bottom: 1rem;
    }

    .team-blob-description {
        font-size: 16px;
    }

    .team-promises-list {
        font-size: 15px;
    }

    .team-image-decoration {
        width: 78px;
        height: 78px;
    }

    .team-members {
        padding: 0.72rem;
    }

    .team-member-item {
        font-size: 14px;
    }

    .team-member-name {
        font-size: 14px;
    }

    .team-member-role {
        font-size: 11px;
    }
}
