/* GALSEN CHAMPIONSHIP — vibe site-wide (fun · flow · excitant)
   Contenu inchangé — uniquement atmosphère, motion, interactions. */

::selection {
    background: rgba(240, 196, 25, 0.45);
    color: var(--dark-color);
}

/* —— Buttons : punch —— */
.btn {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(240, 196, 25, 0.35);
}

.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 122, 61, 0.18);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* —— Page headers : entrée cinéma —— */
.page-header {
    isolation: isolate;
}

.page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    background-size: 220% 100%;
    animation: vibeStripe 7s linear infinite;
    z-index: 3;
}

.page-header-content .kicker {
    animation: vibeRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.page-header-content h1 {
    animation: vibeRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.page-header-content > p {
    animation: vibeRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.page-header-content .breadcrumb {
    animation: vibeRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@keyframes vibeRise {
    from {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes vibeStripe {
    to { background-position: 220% 0; }
}

/* —— Section titles —— */
.section-title::after {
    width: 0;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-header.is-inview .section-title::after,
.section-title.is-inview::after {
    width: 72px;
}

.section-header {
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-header.vibe-prep {
    opacity: 0;
    transform: translateY(28px);
}

.section-header.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* —— Soft tabs —— */
.soft-tab {
    position: relative;
    border-radius: 999px;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.3s ease;
}

.soft-tab:hover {
    transform: translateY(-2px);
}

.soft-tab.active {
    background: var(--dark-color);
    color: var(--accent-color);
    border-color: var(--dark-color);
    box-shadow: 0 8px 20px rgba(11, 26, 18, 0.2);
    transform: translateY(-1px);
}

/* —— Metrics / cards lift —— */
.metric-box,
.info-card,
.path-step,
.zone-panel,
.award-item,
.pool-block,
.stats-board,
.score-card,
.promo-card,
.ybs-card,
.invest-card,
.quote {
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.metric-box:hover,
.info-card:hover,
.path-step:hover,
.score-card:hover,
.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(11, 26, 18, 0.1);
}

/* —— Flow reveal (JS adds .vibe-prep / .is-inview) —— */
.vibe-flow.vibe-prep {
    opacity: 0;
    transform: translateY(32px) scale(0.985);
    filter: blur(2px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.75s ease;
}

.vibe-flow.is-inview {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.vibe-flow.vibe-d1 { transition-delay: 0.08s; }
.vibe-flow.vibe-d2 { transition-delay: 0.16s; }
.vibe-flow.vibe-d3 { transition-delay: 0.24s; }
.vibe-flow.vibe-d4 { transition-delay: 0.32s; }

/* —— Quote / CTA bands —— */
.quote-band {
    position: relative;
    overflow: hidden;
}

.quote-band::before {
    content: '“';
    position: absolute;
    top: -0.15em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 14rem);
    line-height: 1;
    color: rgba(240, 196, 25, 0.08);
    pointer-events: none;
    user-select: none;
}

.quote-band blockquote {
    position: relative;
    z-index: 1;
    animation: vibePulseSoft 5s ease-in-out infinite;
}

@keyframes vibePulseSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.cta-strip {
    position: relative;
    overflow: hidden;
}

.cta-strip::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(240, 196, 25, 0.18), transparent 65%);
    animation: vibeDrift 9s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes vibeDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(18%, 8%); }
}

.cta-strip h2,
.cta-strip p,
.cta-strip .btn {
    position: relative;
    z-index: 1;
}

/* —— Media live badge —— */
.media-live-badge {
    animation: vibeLive 1.6s ease-in-out infinite;
}

@keyframes vibeLive {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(225, 29, 46, 0); }
}

.media-live-badge i {
    animation: vibeBlink 1.2s steps(2) infinite;
}

@keyframes vibeBlink {
    50% { opacity: 0.35; }
}

/* —— Socials —— */
.social-link {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, color 0.25s ease !important;
}

.social-link:hover {
    transform: translateY(-4px) rotate(-6deg) scale(1.08);
}

/* —— Footer watermark breath —— */
.footer::after {
    animation: vibeWatermark 10s ease-in-out infinite alternate;
}

@keyframes vibeWatermark {
    from { opacity: 0.7; letter-spacing: 0.06em; }
    to { opacity: 1; letter-spacing: 0.1em; }
}

/* —— Classement / reward polish —— */
.classement-table tbody tr {
    transition: background 0.25s ease, transform 0.25s ease;
}

.classement-table tbody tr:hover {
    transform: scale(1.01);
}

.stats-list li:first-child {
    animation: vibeGoldPulse 2.8s ease-in-out infinite;
}

@keyframes vibeGoldPulse {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(240, 196, 25, 0); }
    50% { box-shadow: inset 0 0 0 1px rgba(240, 196, 25, 0.45); }
}

.award-item:hover .award-media img,
.hero-portrait:hover img {
    transform: scale(1.04);
}

.award-media img,
.hero-portrait img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Legal toolbar stickier feel —— */
.legal-toolbar {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* —— Registration / forms focus —— */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.15);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* —— Path steps : pulse gold when lit —— */
.path-step.is-inview .path-num,
.path-step.is-visible .path-num {
    animation: vibeNumPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.path-track.is-inview .path-step:nth-child(1) .path-num { animation-delay: 0.05s; }
.path-track.is-inview .path-step:nth-child(2) .path-num { animation-delay: 0.12s; }
.path-track.is-inview .path-step:nth-child(3) .path-num { animation-delay: 0.2s; }
.path-track.is-inview .path-step:nth-child(4) .path-num { animation-delay: 0.28s; }
.path-track.is-inview .path-step:nth-child(5) .path-num { animation-delay: 0.36s; }

@keyframes vibeNumPop {
    from { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.12); }
    to { transform: scale(1); opacity: 1; }
}

/* —— Soft tabs : horizontal energy —— */
.soft-tabs {
    scrollbar-width: none;
}
.soft-tabs::-webkit-scrollbar { display: none; }

/* —— Match rows / boards —— */
.match-row {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}
.match-row:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 24px rgba(11, 26, 18, 0.08);
}
.match-row.is-live {
    animation: vibeLiveRow 2.2s ease-in-out infinite;
}
@keyframes vibeLiveRow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(225, 29, 46, 0); }
}

/* —— Cup / pillars / finance —— */
.cup-pillar,
.cup-finance article,
.cup-metric,
.cup-format-list li {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.cup-pillar:hover,
.cup-finance article:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(11, 26, 18, 0.12);
}
.cup-hero-band .cup-hero-brand {
    animation: vibeRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.cup-hero-band .cup-hero-lead {
    animation: vibeRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}
.cup-hero-band .hero-buttons {
    animation: vibeRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.cup-hero-band .cup-metrics {
    animation: vibeRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}
.cup-metric strong {
    animation: vibeGoldPulse 3.2s ease-in-out infinite;
}

/* —— Zone shine (uses ::before — ::after is gradient overlay) —— */
.zone-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(240, 196, 25, 0.18) 50%, transparent 60%);
    transform: translateX(-130%);
    transition: transform 0.85s ease;
    pointer-events: none;
    z-index: 2;
}
.zone-panel:hover::before {
    transform: translateX(130%);
}

/* —— Pulse metrics bounce —— */
.pulse-metric.is-pop strong {
    animation: vibeCountBounce 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes vibeCountBounce {
    from { transform: scale(0.7); opacity: 0.4; }
    70% { transform: scale(1.08); }
    to { transform: scale(1); opacity: 1; }
}

/* —— Tier / partner cards —— */
.tier,
.partner-logo-orb {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(11, 26, 18, 0.1);
}
.partner-logo-orb:hover {
    transform: scale(1.06) rotate(-3deg);
}

/* —— Nav CTA spark —— */
.cta-btn {
    position: relative;
}
.cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-color), transparent, var(--accent-color));
    background-size: 200% 100%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: vibeStripe 3s linear infinite;
}
.cta-btn:hover::before { opacity: 0.55; }

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
    .page-header-content .kicker,
    .page-header-content h1,
    .page-header-content > p,
    .page-header-content .breadcrumb,
    .quote-band blockquote,
    .media-live-badge,
    .media-live-badge i,
    .footer::after,
    .stats-list li:first-child,
    .cta-strip::before,
    .page-header::after,
    .path-step.is-inview .path-num,
    .match-row.is-live,
    .cup-hero-band .cup-hero-brand,
    .cup-hero-band .cup-hero-lead,
    .cup-hero-band .hero-buttons,
    .cup-hero-band .cup-metrics,
    .cup-metric strong,
    .pulse-metric.is-pop strong,
    .cta-btn::before {
        animation: none !important;
    }

    .vibe-flow.vibe-prep,
    .section-header.vibe-prep {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .btn::after,
    .zone-panel::before {
        display: none;
    }
}
