/* ═══════════════════════════════
   HOME PAGE — page-specific styles
   Shared base: u21-common.css
   ═══════════════════════════════ */

main {
    background-color: var(--night2);
}

main section {
    padding: 2rem 1rem;
}

@media (min-width: 576px) { main section { padding: 2rem 1.5rem; } }
@media (min-width: 768px) { main section { padding: 2rem 2.5rem; } }
@media (min-width: 1024px) { main section { padding: 2rem 5rem; } }
@media (min-width: 1200px) { main section { padding: 2rem 10rem; } }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; overflow: hidden; text-align: center;
    background: var(--night);
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(204, 0, 0, 0.35) 0%, transparent 65%),
                radial-gradient(ellipse 40% 30% at 80% 90%, rgba(150, 0, 0, 0.15) 0%, transparent 60%),
                linear-gradient(rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.88)),
                url('/img/home/is_new.jpg');
    background-size: auto, auto, auto, auto 100%;
    background-position: center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

.hero-grid {
    position: absolute; inset: 0; z-index: 0; opacity: 0.025;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 59px, var(--night) 60px),
                      repeating-linear-gradient(90deg, transparent, transparent 59px, var(--night2) 60px);
}

.hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: 3px; color: var(--red);
    text-transform: uppercase; margin-bottom: 20px;
    position: relative; z-index: 1;
    opacity: 0; animation: fadeUp .55s .15s forwards;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 10vw, 7rem); line-height: .92; letter-spacing: 1px;
    position: relative; z-index: 1; width: 100%; padding: 0 0.5rem;
    opacity: 0; animation: fadeUp .55s .3s forwards;
}
.hero-title .accent { color: var(--red); }

.hero-sub {
    max-width: 520px; color: var(--muted); font-size: 14px;
    margin: 16px auto 0; padding: 0 1rem;
    position: relative; z-index: 1;
    opacity: 0; animation: fadeUp .55s .45s forwards;
}
@media (min-width: 576px) { .hero-sub { font-size: 15px; padding: 0; } }
@media (min-width: 768px) { .hero-sub { font-size: 16px; margin: 20px auto 0; } }

/* Profile cards */
.profile-cards {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    margin-top: 40px; position: relative; z-index: 1;
    opacity: 0; animation: fadeUp .55s .6s forwards;
}
@media (min-width: 576px) {
    .profile-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 52px; }
}

.profile-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 24px 20px; width: 100%; max-width: 320px;
    text-align: left; cursor: pointer; text-decoration: none; color: var(--white);
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
@media (min-width: 576px) { .profile-card { padding: 32px 28px; width: 250px; max-width: none; } }

.profile-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.profile-card:hover { border-color: rgba(204, 0, 0, .5); transform: translateY(-5px); box-shadow: 0 20px 48px rgba(204, 0, 0, .15); }
.profile-card:hover::after { transform: scaleX(1); }

.profile-icon { font-size: 34px; margin-bottom: 16px; }
.profile-label {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px;
    color: var(--red); text-transform: uppercase; margin-bottom: 7px;
}
.profile-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.profile-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.profile-cta {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
    font-size: 13px; font-weight: 700; color: var(--red);
    text-transform: uppercase; letter-spacing: .5px; transition: gap .2s;
}
.profile-card:hover .profile-cta { gap: 10px; }

/* Stats strip */
.stats-strip {
    display: flex; flex-wrap: wrap; margin-top: 40px;
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
    position: relative; z-index: 1;
    opacity: 0; animation: fadeUp .55s .75s forwards;
}
.stat-item {
    flex: 1 0 45%; padding: 16px 12px;
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center;
}
.stat-item:nth-child(even) { border-right: none; }
.stat-item:nth-child(n+3) { border-bottom: none; }
@media (min-width: 576px) { .stats-strip { margin-top: 60px; } .stat-item { padding: 20px 28px; } }
@media (min-width: 768px) {
    .stats-strip { flex-wrap: nowrap; }
    .stat-item { flex: 1; border-bottom: none; }
    .stat-item:nth-child(even) { border-right: 1px solid var(--border); }
    .stat-item:last-child { border-right: none; }
}
.stat-num {
    font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--red); line-height: 1;
}
.stat-label { font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: .5px; }
@media (min-width: 576px) { .stat-num { font-size: 32px; } .stat-label { font-size: 11px; } }
@media (min-width: 768px) { .stat-num { font-size: 36px; } }

/* Scroll hint */
.scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 1; display: flex; flex-direction: column; align-items: center;
    animation: bounce 2.2s infinite;
}
.scroll-hint span {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, var(--red), transparent);
}
@media (max-width: 575px) { .scroll-hint { display: none; } }

/* ── SCOUTING ── */
.scouting-section { background: var(--night2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.scouting-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .scouting-inner { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (min-width: 1024px) { .scouting-inner { gap: 60px; } }
.scouting-sub { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 12px 0 20px; }
@media (min-width: 576px) { .scouting-sub { font-size: 15px; margin: 16px 0 24px; } }
@media (min-width: 768px) { .scouting-sub { font-size: 16px; } }
.scouting-levels { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.scouting-levels .dot { color: var(--red); }
.scouting-btn {
    display: inline-block; padding: 14px 24px; font-size: 13px; font-weight: 800;
    letter-spacing: 1px; border-radius: 4px; text-decoration: none; width: 100%; text-align: center;
}
@media (min-width: 576px) { .scouting-btn { width: auto; padding: 16px 32px; font-size: 14px; } }

/* Scout dashboard */
.scout-dashboard { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.scout-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--card2); }
.scout-live { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--red); letter-spacing: 1px; animation: pulse 1.5s infinite; }
.scout-title-sm { font-size: 12px; color: var(--muted); font-weight: 500; }
.scout-players { padding: 8px 0; }
.scout-player-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background .2s; }
.scout-player-row:last-child { border-bottom: none; }
.scout-player-row:hover { background: var(--card2); }
.scout-player-row.featured { background: rgba(204, 0, 0, 0.06); }
.scout-player-row.locked { opacity: .5; }
.scout-rank { font-family: 'Bebas Neue', sans-serif; font-size: 16px; color: var(--red); width: 22px; flex-shrink: 0; }
.scout-info { flex: 1; min-width: 0; }
.scout-name { font-size: 14px; font-weight: 600; }
.scout-detail { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.scout-score { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--red); flex-shrink: 0; }
.scout-score.muted-score, .scout-rank.muted-score { color: var(--muted); font-size: 14px; }
.scout-footer-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--card2); font-size: 12px; color: var(--muted); }
.scout-footer-bar a { color: var(--red); text-decoration: none; font-weight: 700; }

/* ── VIDÉOS ── */
.videos-section { background: var(--night2); }
.videos-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 576px) { .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .videos-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.video-card {
    border-radius: 10px; overflow: hidden; background: var(--card);
    border: 1px solid var(--border); cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--card2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .4); transition: background .2s; }
.video-card:hover .play-btn { background: rgba(0, 0, 0, .55); }
.play-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(204, 0, 0, .5); }
.play-circle svg { margin-left: 3px; }
.video-info { padding: 14px 16px; }
@media (min-width: 576px) { .video-info { padding: 18px 20px; } }
.video-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.5px; color: var(--red); text-transform: uppercase; margin-bottom: 8px; }
.video-title { font-size: 14px; font-weight: 600; line-height: 1.45; margin-bottom: 4px; }
.video-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── ACTUALITÉS ── */
.news-section { background: var(--night); }
.news-grid { display: flex; flex-direction: column; margin: 0 auto; justify-items: center; justify-content: center; gap: 1.5rem; }
@media (min-width: 768px) { .news-grid { flex-direction: row; gap: 2rem; } }
.news-featured {
    border-radius: 10px; overflow: hidden; background: var(--card);
    border: 1px solid var(--border); cursor: pointer; text-decoration: none; color: var(--white);
    transition: border-color .2s; display: flex; flex-direction: column; padding-bottom: 0.5rem;
    flex: 1 1 340px; min-width: 0;
}
.news-featured:hover { border-color: rgba(204, 0, 0, .5); }
.news-featured-img { aspect-ratio: 16/9; overflow: hidden; background: var(--card2); }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-featured:hover .news-featured-img img { transform: scale(1.04); }
.news-featured-body { padding: 1.25rem; flex: 1; }
@media (min-width: 576px) { .news-featured-body { padding: 1.5rem; } }
@media (min-width: 768px) { .news-featured-body { padding: 2rem; } }
.news-cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--red); text-transform: uppercase; margin-bottom: 0.5rem; }
.news-featured-body h3 { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
@media (min-width: 576px) { .news-featured-body h3 { font-size: 19px; } }
@media (min-width: 768px) { .news-featured-body h3 { font-size: 21px; } }
.news-featured-body p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.news-date { font-size: 12px; color: var(--muted); margin-top: 1rem; }
.news-list { display: flex; flex-direction: column; gap: 1rem; flex: 1 1 280px; min-width: 0; }
.news-item {
    display: flex; gap: 0.75rem; align-items: center; background: var(--card);
    border: 1px solid var(--border); border-radius: 9px; padding: 0.75rem;
    cursor: pointer; text-decoration: none; color: var(--white); transition: border-color .2s;
}
@media (min-width: 576px) { .news-item { gap: 1rem; padding: 1rem; } }
.news-item:hover { border-color: rgba(204, 0, 0, .4); }
.news-item-img { width: 4.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--card2); }
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-title { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item-date { font-size: 11px; color: var(--muted); margin-top: 0.375rem; }

/* ── MEDIA STRIP ── */
.media-strip {
    background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
}
@media (min-width: 768px) { .media-strip { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (min-width: 1024px) { .media-strip { gap: 60px; } }
.media-text .section-title { margin-bottom: 18px; }
.media-text p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 28px; }
.champs-list { display: flex; flex-wrap: wrap; gap: 10px; }
.champ-badge {
    background: var(--card2); border: 1px solid var(--border); border-radius: 4px;
    padding: 7px 16px; font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--muted); letter-spacing: .5px;
}
.media-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mstat {
    background: var(--night2); border: 1px solid var(--border); border-radius: 10px;
    padding: 22px 18px; text-align: center; position: relative; overflow: hidden;
}
.mstat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); }
.mstat .num { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--red); line-height: 1; }
@media (min-width: 576px) { .mstat .num { font-size: 40px; } }
@media (min-width: 768px) { .mstat .num { font-size: 46px; } }
.mstat p { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
@media (min-width: 576px) { .mstat p { font-size: 12px; } }

/* ── COACHES ── */
.coaches-section { background: var(--night2); padding-bottom: 3rem; }
@media (min-width: 576px) { .coaches-section { padding-bottom: 4rem; } }
@media (min-width: 768px) { .coaches-section { padding-bottom: 6rem; } }
.coaches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 576px) { .coaches-grid { gap: 16px; } }
@media (min-width: 768px) { .coaches-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .coaches-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.coach-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    padding: 16px 12px; display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 10px; position: relative;
    cursor: pointer; text-decoration: none; color: var(--white);
    transition: border-color .2s, transform .2s;
}
@media (min-width: 576px) { .coach-card { padding: 24px; gap: 12px; } }
.coach-card:hover { border-color: rgba(204, 0, 0, .4); transform: translateY(-3px); }
.coach-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); background: var(--card2); }
@media (min-width: 576px) { .coach-avatar { width: 72px; height: 72px; } }
.coach-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coach-certif { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; }
.coach-certif img { width: 100%; }
.coach-name { font-size: 13px; font-weight: 700; }
@media (min-width: 576px) { .coach-name { font-size: 15px; } }
.coach-role { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1px; color: var(--red); text-transform: uppercase; }
.coach-club { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.coach-club img { height: 18px; }
.coach-level { font-size: 11px; color: var(--muted); background: var(--card2); padding: 3px 10px; border-radius: 20px; }

.video-card {
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}
.videos-section .carousel-video-item {
    max-width: 15rem;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-preview-list {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-player-list {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay-list {
    bottom: 50px;
    left: 0;
    right: 0;
    padding: 10px;
    background: transparent;
    pointer-events: none;
    z-index: 10;
}

.video-overlay-list .video-player-name-link {
    pointer-events: auto;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-overlay-list .video-player-name-link:hover {
    color: #dc3545 !important;
    text-decoration: underline !important;
}

.video-like-container-list {
    top: 10px;
    right: 10px;
    pointer-events: auto;
    z-index: 11;
}

.video-like-button {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-like-button:hover {
    transform: scale(1.1);
}

.video-like-button.liked {
    color: #ff0000 !important;
}

.video-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-container-modal {
    background: #000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-modal video {
    max-height: 70vh;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.modal-video-info {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .video-preview-list {
        height: 300px;
    }
}
