/**
 * Hero Section — Cinematic Full-Screen
 */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-gray-900);
}

/* ── Background layers ── */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg--image {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero__bg--gradient {
    background: linear-gradient(135deg, var(--color-royal-950) 0%, var(--color-royal-900) 50%, #1a1f6e 100%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 15, 40, 0.55) 0%,
        rgba(10, 15, 40, 0.70) 50%,
        rgba(10, 15, 40, 0.92) 100%
    );
}

.hero__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ── Main content ── */
.hero__content {
    position: relative;
    z-index: 3;
    padding-top: calc(5rem + var(--space-3xl));
    padding-bottom: calc(var(--space-3xl) + 5rem);
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4375rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
}

.hero__badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-accent-warm);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    /* Le seul 700 plein écran du site : c'est lui qui doit peser le plus.
       À 5.5rem, Clash demande -0.04em pour que les mots forment un bloc. */
    font-weight: var(--fw-display);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    color: var(--color-accent-warm);
    -webkit-text-stroke: 0;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 540px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

/* CTA buttons */
.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero__cta--primary {
    background: var(--color-accent-warm);
    color: var(--color-gray-900);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35);
}

.hero__cta--primary:hover {
    background: var(--color-accent-warm-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.45);
    color: var(--color-gray-900);
}

.hero__cta--primary svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.hero__cta--primary:hover svg {
    transform: translateX(3px);
}

.hero__cta--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.hero__cta--secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ── Stats row ── */
.hero__stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    justify-content: center;
}

.hero__stat {
    text-align: center;
    padding: 0 1.5rem;
}

.hero__stat-divider {
    width: 1px;
    height: 2rem;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.hero__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero__stat-label {
    display: block;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* ── Match bar ── */
.hero__matchbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: var(--color-accent-warm);
    padding: 0.75rem 0;
}

.hero__matchbar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero__matchbar-inner {
        flex-wrap: nowrap;
        gap: 2rem;
    }
}

.hero__matchbar-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero__matchbar-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero__matchbar-teams {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-gray-900);
    flex-shrink: 0;
}

.hero__matchbar-vs {
    font-size: 0.6875rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.45);
    letter-spacing: 0.1em;
}

.hero__matchbar-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 600;
    flex: 1;
}

.hero__matchbar-info svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

/* Countdown inside matchbar */
.hero__matchbar-countdown {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    flex-shrink: 0;
}

.hero__countdown-unit {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.hero__countdown-unit span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-gray-900);
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: right;
}

.hero__countdown-unit em {
    font-style: normal;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.05em;
    margin-left: 1px;
}

.hero__countdown-sep {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.35);
    line-height: 1;
    margin-bottom: 3px;
}

/* ── Scroll indicator ── */
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.hero:has(.hero__matchbar) .hero__scroll {
    bottom: calc(2.5rem + 3rem);
}

.hero__scroll-text {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 767px) {
    .hero__scroll { display: none; }
}

/* ── Reveal animations ── */
.hbcg-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: reveal-up 0.7s ease forwards;
}

.hbcg-reveal--delay-1 { animation-delay: 0.1s; }
.hbcg-reveal--delay-2 { animation-delay: 0.25s; }
.hbcg-reveal--delay-3 { animation-delay: 0.4s; }
.hbcg-reveal--delay-4 { animation-delay: 0.55s; }

@keyframes reveal-up {
    to { opacity: 1; transform: translateY(0); }
}
