/**
 * ANNIVERSARY.CSS - Styles pour les 20 ans du VOV
 * 2006 - 2026
 *
 * Ce fichier peut être supprimé pour retirer tous les éléments anniversaire
 */

/* ==================== VARIABLES DORÉES ==================== */
:root {
    --color-gold: #FFD700;
    --color-gold-light: #FFED8A;
    --color-gold-dark: #B8860B;
    --color-gold-pale: #FFF8DC;
    --color-gold-shimmer: #F0E68C;
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    --gradient-gold-subtle: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-gold-strong: 0 0 40px rgba(255, 215, 0, 0.5);
}

/* ==================== BANNIÈRE 20 ANS (HORIZONTALE) ==================== */
.anniversary-banner {
    position: fixed;
    top: 7rem; /* Hauteur de la navbar */
    left: 0;
    right: 0;
    width: 100%;
    background: var(--gradient-gold);
    padding: 0.5rem 0;
    text-align: center;
    z-index: 49; /* Juste en dessous de la navbar (z-index: 50) */
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

/* Décaler le contenu du hero pour compenser la bannière fixe */
.anniversary-mode .hero-section {
    padding-top: 11rem; /* 8rem original + 3rem pour la bannière */
}

@media (min-width: 1024px) {
    .anniversary-mode .hero-section {
        padding-top: 15rem; /* 12rem original + 3rem pour la bannière */
    }
}

.anniversary-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: banner-shine 4s ease-in-out infinite;
}

@keyframes banner-shine {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(50%);
    }
}

.anniversary-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.anniversary-banner-icon {
    display: flex;
    align-items: center;
    color: #1a1a1a;
}

.anniversary-banner-icon i {
    width: 18px;
    height: 18px;
}

.anniversary-banner-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.anniversary-banner-text .highlight {
    font-weight: 700;
    color: #1a1a1a;
}

.anniversary-banner-years {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.7);
    padding-left: 1rem;
    border-left: 1px solid rgba(26, 26, 26, 0.2);
}

/* Version compacte sur mobile */
@media (max-width: 768px) {
    .anniversary-banner {
        top: 5rem; /* Navbar plus petite sur mobile */
        padding: 0.4rem 0;
    }
}

@media (max-width: 640px) {
    .anniversary-banner {
        top: 4rem;
    }

    .anniversary-banner-content {
        gap: 0.5rem;
    }

    .anniversary-banner-text {
        font-size: 0.85rem;
    }

    .anniversary-banner-years {
        display: none;
    }

    .anniversary-banner-icon {
        display: none;
    }
}

/* ==================== PARTICULES DORÉES ==================== */
.golden-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.golden-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    animation: golden-float 8s ease-in-out infinite;
    box-shadow: 0 0 6px var(--color-gold), 0 0 12px rgba(255, 215, 0, 0.5);
}

.golden-particle:nth-child(odd) {
    width: 4px;
    height: 4px;
    animation-duration: 10s;
}

.golden-particle:nth-child(3n) {
    width: 8px;
    height: 8px;
    animation-duration: 12s;
}

@keyframes golden-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(720deg);
    }
}

/* ==================== EFFET DORÉ SUR HERO ==================== */
.anniversary-mode .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-image: var(--gradient-gold) 1;
    pointer-events: none;
    z-index: 2;
    animation: hero-golden-pulse 4s ease-in-out infinite;
}

.anniversary-mode .hero-section::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 60%
    );
    background-size: 200% 200%;
    animation: hero-shimmer 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hero-golden-pulse {
    0%, 100% {
        box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: inset 0 0 60px rgba(255, 215, 0, 0.2);
    }
}

@keyframes hero-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Lueur dorée sur le glow existant du hero */
.anniversary-mode .hero-image-glow {
    background: radial-gradient(
        circle at center,
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 136, 0, 0.2) 30%,
        transparent 70%
    );
}

/* ==================== SECTION ANNIVERSAIRE - TIMELINE ==================== */
.anniversary-section {
    position: relative;
    background: linear-gradient(180deg, var(--color-dark-bg) 0%, #1a1f35 100%);
    overflow: hidden;
}

.anniversary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
}

.anniversary-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
}

.anniversary-header {
    text-align: center;
    margin-bottom: 4rem;
}

.anniversary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-gold);
    color: #1a1a1a;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-gold);
}

.anniversary-badge i {
    width: 18px;
    height: 18px;
}

.anniversary-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.anniversary-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline */
.anniversary-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.anniversary-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-gold);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border: 4px solid var(--color-dark-bg);
    border-radius: 50%;
    z-index: 2;
    box-shadow: var(--shadow-gold);
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold);
}

.timeline-content {
    flex: 1;
    max-width: calc(50% - 40px);
}

.timeline-card {
    background: var(--color-dark-card);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.timeline-card:hover {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

.timeline-card h4 {
    font-size: 1.25rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.timeline-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ==================== SECTION REMERCIEMENTS ==================== */
.anniversary-thanks {
    position: relative;
    background: linear-gradient(180deg, #1a1f35 0%, var(--color-dark-bg) 100%);
    text-align: center;
}

.thanks-header {
    margin-bottom: 3rem;
}

.thanks-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.thanks-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.thanks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.thanks-card {
    background: var(--color-dark-card);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    transition: all var(--transition-base);
}

.thanks-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.thanks-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-icon i {
    width: 28px;
    height: 28px;
    color: #1a1a1a;
}

.thanks-card h4 {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.thanks-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== CONFETTIS (optionnel) ==================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    animation: confetti-fall 4s linear forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ==================== TEXTE DORÉ UTILITAIRE ==================== */
.text-gold {
    color: var(--color-gold);
}

.gradient-gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .anniversary-title {
        font-size: 2.5rem;
    }

    .anniversary-timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-year {
        left: 20px;
        transform: none;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        text-align: left;
    }

    .thanks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .thanks-card {
        padding: 1.5rem 1rem;
    }

    /* Moins de particules sur mobile */
    .golden-particle:nth-child(n+10) {
        display: none;
    }
}

@media (max-width: 480px) {
    .thanks-grid {
        grid-template-columns: 1fr;
    }

    .anniversary-title {
        font-size: 2rem;
    }
}

/* ==================== RÉDUCTION ANIMATIONS ==================== */
@media (prefers-reduced-motion: reduce) {
    .golden-particle,
    .anniversary-banner::before,
    .anniversary-mode .hero-section::before,
    .anniversary-mode .hero-section::after {
        animation: none;
    }

    .golden-particle {
        opacity: 0.5;
    }
}
