/* XeweulTech — ajustements site public */

/* ─── Équipe — carousel 3 par ligne ─── */
.team-area .team-slides {
    position: relative;
    padding: 0 48px 40px;
}

.team-area .team-slides .owl-stage-outer {
    padding: 8px 0 16px;
}

.team-area .team-slides .item {
    height: 100%;
}

.team-area .team-slides .team-flip-card {
    margin: 0 auto;
    max-width: 380px;
}

.team-area .team-slides .owl-nav {
    margin: 0;
}

.team-area .team-slides .owl-nav button.owl-prev,
.team-area .team-slides .owl-nav button.owl-next {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    font-size: 1.35rem !important;
    line-height: 44px !important;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.team-area .team-slides .owl-nav button.owl-prev:hover,
.team-area .team-slides .owl-nav button.owl-next:hover {
    background: linear-gradient(135deg, #ff69b4, #feb302) !important;
    color: #fff !important;
}

.team-area .team-slides .owl-nav button.owl-prev {
    left: 0;
}

.team-area .team-slides .owl-nav button.owl-next {
    right: 0;
}

.team-area .team-slides .owl-dots {
    margin-top: 8px;
}

.team-area .team-slides .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    transition: transform 0.25s ease, background 0.25s ease;
}

.team-area .team-slides .owl-dots .owl-dot.active span,
.team-area .team-slides .owl-dots .owl-dot:hover span {
    background: #feb302;
    transform: scale(1.15);
}

/* Placeholders homme.png / femme.png : même rendu que les photos */
.team-area .team-flip-photo img {
    object-fit: cover;
    object-position: center top;
}

/* ─── Cartes équipe — flip 3D ─── */
.team-area .team-flip-col {
    margin-bottom: 30px;
}

.team-area .team-flip-card {
    perspective: 1400px;
    height: 100%;
    min-height: 520px;
    cursor: pointer;
    outline: none;
}

.team-area .team-flip-card:focus-visible .team-flip-inner {
    box-shadow: 0 0 0 3px rgba(254, 179, 2, 0.55), 0 20px 50px rgba(0, 0, 0, 0.18);
}

.team-area .team-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    transition: transform 0.85s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.team-area .team-flip-card:hover .team-flip-inner,
.team-area .team-flip-card:focus-within .team-flip-inner,
.team-area .team-flip-card.is-flipped .team-flip-inner {
    transform: rotateY(180deg);
}

@media (hover: hover) {
    .team-area .team-flip-card.is-flipped .team-flip-inner {
        transform: rotateY(180deg);
    }
}

.team-area .team-flip-front,
.team-area .team-flip-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.team-area .team-flip-front {
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.team-area .team-flip-card--lead .team-flip-front {
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.2);
}

.team-area .team-flip-card--lead .team-flip-front::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #ff69b4, #feb302);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

.team-area .team-flip-photo {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f2f8;
}

.team-area .team-flip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.85s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.team-area .team-flip-card:hover .team-flip-photo img {
    transform: scale(1.04);
}

.team-area .team-flip-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

.team-area .team-flip-hint i {
    font-size: 0.95rem;
    animation: team-hint-spin 2.5s linear infinite;
}

.team-area .team-flip-card:hover .team-flip-hint,
.team-area .team-flip-card:focus-within .team-flip-hint {
    opacity: 1;
}

@keyframes team-hint-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.team-area .team-flip-front-info {
    flex-shrink: 0;
    padding: 20px 18px 22px;
    text-align: center;
}

.team-area .team-flip-front-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.team-area .team-flip-front-info .team-role--name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.team-area .team-flip-front-info .team-role {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #feb302;
    margin-bottom: 4px;
}

.team-area .team-flip-card--lead .team-flip-front-info .team-role {
    color: #ff69b4;
}

.team-area .team-flip-front-info .team-tagline {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

/* Face arrière */
.team-area .team-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    color: #f8fafc;
}

.team-area .team-flip-back-inner {
    height: 100%;
    padding: 16px 18px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 179, 2, 0.5) transparent;
}

.team-area .team-flip-back-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-area .team-flip-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ff69b4, #feb302);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.team-area .team-flip-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 2px solid #1e293b;
}

.team-area .team-flip-back-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    line-height: 1.25;
}

.team-area .team-flip-back-header .team-flip-badge {
    margin-bottom: 0;
}

.team-area .team-flip-back-inner::-webkit-scrollbar {
    width: 4px;
}

.team-area .team-flip-back-inner::-webkit-scrollbar-thumb {
    background: rgba(254, 179, 2, 0.45);
    border-radius: 4px;
}

.team-area .team-flip-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff69b4, #feb302);
    color: #0f172a;
}

.team-area .team-flip-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #feb302;
    margin: 0 0 6px;
}

.team-area .team-flip-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.team-area .team-flip-highlights li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 5px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.team-area .team-flip-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #feb302;
}

.team-area .team-flip-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.team-area .team-flip-tech span {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fde68a;
    border: 1px solid rgba(254, 179, 2, 0.25);
}

.team-area .team-flip-contact {
    font-size: 0.7rem;
    line-height: 1.55;
    margin-bottom: 10px;
}

.team-area .team-flip-contact a {
    color: #fde68a;
    text-decoration: none;
    word-break: break-all;
}

.team-area .team-flip-contact a:hover {
    color: #ff69b4;
}

.team-area .team-flip-contact i {
    margin-right: 5px;
    color: #feb302;
    vertical-align: middle;
}

.team-area .team-flip-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.team-area .team-flip-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.team-area .team-flip-social a:hover {
    background: #feb302;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Anciennes règles single-team-card (autres pages éventuelles) */
.team-area .single-team-card .team-image {
    aspect-ratio: 3 / 4;
    min-height: 380px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f0f2f8;
}

.team-area .single-team-card .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.team-area .single-team-card .team-content h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.team-area .single-team-card .team-content span {
    display: block;
    line-height: 1.45;
    min-height: 3.2em;
    font-size: 0.88rem;
}

.team-area .single-team-card.team-card--lead .team-content span {
    color: #ff69b4;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .team-area .team-flip-inner,
    .team-area .team-flip-photo img {
        transition: none;
    }

    .team-area .team-flip-hint i {
        animation: none;
    }
}

@media (max-width: 767px) {
    .team-area .team-slides {
        padding: 0 36px 36px;
    }

    .team-area .team-slides .owl-nav button.owl-prev,
    .team-area .team-slides .owl-nav button.owl-next {
        width: 36px;
        height: 36px;
        line-height: 36px !important;
        font-size: 1.1rem !important;
    }

    .team-area .team-flip-card,
    .team-area .team-flip-inner {
        min-height: 480px;
    }

    .team-area .team-flip-hint {
        opacity: 1;
        font-size: 0.68rem;
    }
}
