/* ═══════════════════════════════════════════════════════════════
   TEAMS.CSS — Page Équipes
   ADN : fond blanc, Anton watermark, #097eeb, Poppins
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ══ SECTION HEADER (réutilise ev-text-section) ═══════════════ */
.ev-text-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    position: relative;
    padding: 70px 15% 60px;
    background: #f4f4f4;
}
.ev-text-section .watermark {
    position: absolute;
    font-size: 220px;
    font-family: 'Anton', sans-serif;
    color: #dadada;
    z-index: 0;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
.ev-text-section h2 {
    font-size: 1.9rem;
    position: relative;
    z-index: 1;
    color: #111;
}

/* ══ SOUS-TITRE ════════════════════════════════════════════════ */
.teams-sub {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 32px;
}

/* ══ CAROUSEL MASCULIN ════════════════════════════════════════ */
.teams-carousel-section {
    background: #f4f4f4;
    padding: 20px 0 60px;
}

.teams-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.teams-track-outer {
    flex: 1;
    overflow: hidden;
}

.teams-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

/* ══ CARTE ÉQUIPE ══════════════════════════════════════════════ */
.team-card {
    flex-shrink: 0;
    width: 220px;
    height: 360px; /* hauteur totale fixe */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 8px 32px rgba(0,0,0,0.07);
    border: 1px solid #ececec;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(9,126,235,0.18);
}

.tc-img {
    position: relative;
    flex: 0 0 50%; /* 50% de la hauteur de la carte */
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4fe, #dbeafe);
}
.tc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}
.team-card:hover .tc-img img { transform: scale(1.04); }

.tc-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #097eeb;
    background: linear-gradient(135deg, #e8f4fe, #dbeafe);
}

/* Overlay au hover */
.tc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(9,126,235,0.82), transparent);
    display: flex; align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}
.team-card:hover .tc-overlay { opacity: 1; }
.tc-overlay span {
    color: #fff; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
}

/* Coming soon style */
.team-card.coming-soon .tc-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}

/* Corps carte */
.tc-body {
    flex: 0 0 50%; /* 50% de la hauteur */
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tc-nom {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.tc-nom::before {
    content: '';
    display: inline-block;
    width: 3px; height: 16px;
    background: var(--bar, #097eeb);
    border-radius: 2px;
    flex-shrink: 0;
}
.tc-div {
    font-size: 0.72rem;
    font-weight: 700;
    color: #097eeb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.tc-coach {
    font-size: 0.74rem;
    color: #888;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tc-coach i { font-size: 0.65rem; }

/* ══ FLÈCHES CAROUSEL ══════════════════════════════════════════ */
.teams-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #111;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 10;
}
.teams-arrow:hover { background: #097eeb; color: #fff; border-color: #097eeb; }
.teams-prev { left: 8px; }
.teams-next { right: 8px; }

/* ══ SECTION FÉMININES ════════════════════════════════════════ */
.teams-girls-section {
    background: #f4f4f4;
    padding: 20px 6% 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teams-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* Cartes féminines */
.team-card-grid {
    width: 220px;
    height: 340px;
    flex-shrink: 0;
}
.team-card-grid .tc-img {
    flex: 0 0 50%;
}

/* Responsive grille équipes filles */
@media (max-width: 900px) {
    .team-card-grid { width: 180px; height: 290px; }
}
@media (max-width: 700px) {
    .teams-grid { gap: 12px; }
    .team-card-grid { width: 155px; height: 260px; }
}
@media (max-width: 520px) {
    /* 2 cartes par ligne sur petit mobile */
    .teams-grid { gap: 10px; padding: 0 4%; box-sizing: border-box; width: 100%; }
    .team-card-grid { width: calc(50% - 5px); height: 240px; }
}
@media (max-width: 380px) {
    .team-card-grid { width: calc(50% - 5px); height: 200px; }
}

/* ══ TOAST COMING SOON ═════════════════════════════════════════ */
.cs-toast {
    position: fixed;
    bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    pointer-events: none;
}
.cs-toast i { color: #097eeb; }
.cs-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .teams-carousel-wrap { padding: 0 48px; }
    .team-card { width: 190px; }
    .team-card-grid { width: 220px; }
}
@media (max-width: 600px) {
    .ev-text-section { padding: 50px 8% 40px; }
    .ev-text-section .watermark { font-size: 120px; }
    .ev-text-section h2 { font-size: 1.4rem; }
    .teams-carousel-wrap { padding: 0 36px; }
    .team-card { width: 160px; }
    .team-card-grid { width: 160px; }
    .tc-img { height: 160px; }
    .team-card-grid .tc-img { height: 180px; }
}
