/* ============================================
   GONZOKRAFT - STYLES PRINCIPAUX (REFACTORED)
   Fichier: /assets/css/styles.css
   Version: 2.0 - Optimized & Consolidated
   ============================================ */

/* === FONTS === */
@font-face {
    font-family: 'BowlbyOne';
    src: url('../fonts/BowlbyOneSC-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* === PREVENT HORIZONTAL OVERFLOW === */
html, body {
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* === PAGE WRAPPERS (Reusable) === */
.page-wrapper--compact {
    min-height: 60vh;
}

/* === STICKY FOOTER LAYOUT === */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Compensation du header fixed */
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px); /* 100vh moins la hauteur du header */
}

/* Main content prend tout l'espace disponible */
main,
.page-wrapper,
.search-page {
    flex: 1 0 auto;
}

/* Footer ne s'étend pas */
.footer {
    flex-shrink: 0;
}

/* ============================================
   HERO SECTION & CAROUSEL
   ============================================ */

.hero-section {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    /* DÉGRADÉ D'OPACITÉ appliqué sur TOUT le conteneur */
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 1) 40%, 
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0) 88%);
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 1) 40%, 
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0) 88%);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%; /* 100% au lieu de 88% */
    object-fit: cover;
    /* Plus de mask-image ici */
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border: 2px solid var(--color-border-accent);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

/* === CAROUSEL DOTS NAVIGATION === */
.carousel-dots {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-dot.active {
    background: var(--color-accent);
    width: 32px;
    border-radius: 6px;
}

/* Hero content overlay */
.hero-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
}

.hero-title {
    font-size: clamp(var(--font-size-4xl), 6vw, var(--font-size-6xl));
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.hero-title .title-white {
    color: var(--color-text);
}

.hero-title .title-gradient {
    background: var(--gradient-accent);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(var(--font-size-base), 2vw, var(--font-size-xl));
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   FILTER TAGS (Scrollable horizontal)
   ============================================ */

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    max-width: 100%;
    overflow: hidden;
}

.filter-tags::-webkit-scrollbar {
    height: 6px;
}

.filter-tags::-webkit-scrollbar-track {
    background: rgba(143, 132, 160, 0.1);
    border-radius: var(--radius-full);
}

.filter-tags::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

.filter-tags::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

.filter-tag {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(49, 44, 62, 0.4);
    border: 1px solid rgba(143, 132, 160, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.filter-tag:hover {
    background: rgba(49, 44, 62, 0.6);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.tag {
    display: inline-block;
    padding: 10px var(--spacing-xl);
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

.tag.active {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
    color: var(--color-text) !important;
    border-color: #9b59b6 !important;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 4px 16px rgba(155, 89, 182, 0.3);
}

/* === TAG ACTIF EN VIOLET === */
.tag-active,
.filter-tag-active {
    background: var(--color-purple-dark) !important;
    color: var(--color-text) !important;
    border-color: var(--color-purple-light) !important;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 4px 16px rgba(143, 132, 160, 0.3);
}

/* === DURÉE VIDÉO EN COIN === */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--color-black);
    color: var(--color-text);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    z-index: 5;
    backdrop-filter: blur(5px);
    opacity: 0.85;
    transition: opacity var(--transition-base);
}

.video-card:hover .video-duration {
    opacity: 1;
}

/* ============================================
   LIGNE ROUGE DE SÉPARATION
   ============================================ */

.separator-red {
    border: 0;
    height: 0px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-accent) 20%, 
        var(--color-accent) 80%, 
        transparent 100%);
    margin: var(--spacing-2xl) 0;
    box-shadow: 0 0 20px rgba(233, 31, 79, 0.6),
                0 0 40px rgba(233, 31, 79, 0.3);
    position: relative;
}

.separator-red::before,
.separator-red::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}

.separator-red::before {
    left: 20%;
}

.separator-red::after {
    right: 20%;
}

/* ============================================
   VIDEO GRID
   ============================================ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

/* ============================================
   VIDEO CARD
   ============================================ */

.video-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out both;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-accent);
}

.video-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.video-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gradient-card);
}

.video-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-card:hover .video-thumb::after {
    opacity: 1;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumb img {
    transform: scale(1.08);
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
    background: var(--color-accent);
}

/* === FAVORITE DISCRET === */
.favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text);
    opacity: 0;              /* ← MODIFIÉ : 0 au lieu de 0.8 */
    visibility: hidden;      /* ← AJOUTÉ : caché par défaut */
}

/* Apparaît au hover de la video-card */
.video-card:hover .favorite {   /* ← AJOUTÉ */
    opacity: 1;
    visibility: visible;
}

.favorite:hover {
    background: var(--color-accent);
    transform: scale(1.1);
    border-color: var(--color-accent);
}

.favorite.active {
    background: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
    animation: pulse 0.6s ease;
    opacity: 1;               /* ← Garde l'opacité 1 quand actif */
    visibility: visible;      /* ← AJOUTÉ : reste visible quand actif */
}

.video-card h3 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    padding: var(--spacing-md) var(--spacing-lg) 3px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    line-height: 1.5;
}

.video-meta {
    font-size: var(--font-size-sm);
    color: var(--color-accent) !important;  /* Force le rouge */
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    line-height: 1.5;
    font-weight: var(--font-weight-medium);
}

/* ============================================
   REUSABLE COMPONENTS
   ============================================ */

/* === SECTION BOX (Generic container) === */
.section-box {
    background: var(--color-background-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(143, 132, 160, 0.2);
}

.section-box__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* 120→100 */
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stats-grid__item {
    background: rgba(49, 44, 62, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(143, 132, 160, 0.2);
}

.stats-grid__label {
    font-size: var(--font-size-sm);
    color: var(--color-purple-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stats-grid__value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

/* === TIMELINE COMPONENT === */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.timeline__item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(49, 44, 62, 0.3);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
    transition: all var(--transition-base);
}

.timeline__item:hover {
    background: rgba(49, 44, 62, 0.5);
    transform: translateX(4px);
}

.timeline__timestamp {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    min-width: 80px;
}

.timeline__content {
    flex: 1;
}

.timeline__title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 4px;
    color: var(--color-text);
}

.timeline__description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* === PERFORMERS LIST === */
.performers-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.performers-list__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
    transition: transform var(--transition-base);
}

.performers-list__item:hover {
    transform: translateY(-4px);
}

.performers-list__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
}

.performers-list__item:hover .performers-list__avatar {
    border-color: var(--color-accent-hover);
    box-shadow: var(--shadow-accent);
}

.performers-list__name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    transition: color var(--transition-base);
}

.performers-list__name:hover {
    color: var(--color-accent);
}

.performer-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* === SEARCH COMPONENTS === */
.search-hero {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.search-hero__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.search-hero__icon {
    width: 36px;
    height: 36px;
    color: var(--color-accent);
}

.search-hero__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.search-form {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.search-form__input-wrapper {
    position: relative;
    flex: 1;
}

.search-form__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-purple-light);
    pointer-events: none;
}

.search-form__icon svg {
    width: 20px;
    height: 20px;
}

.search-form__input {
    width: 100%;
    height: 52px;
    padding: 0 var(--spacing-lg) 0 54px;
    background: rgba(37, 37, 37, 0.8);
    border: 2px solid rgba(143, 132, 160, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.search-form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 16px rgba(233, 31, 79, 0.2);
}

.search-form__input::placeholder {
    color: var(--color-text-muted);
}

.search-form__submit {
    height: 52px;
    padding: 0 var(--spacing-2xl);
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.search-form__submit:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 20px rgba(233, 31, 79, 0.4);
}

.search-results__header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.search-results__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 4px;
}

.search-results__query {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

.search-results__query-text {
    color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
}

.search-results__count {
    font-size: var(--font-size-sm);
    color: var(--color-purple-light);
    margin-top: 4px;
}

.results-section {
    margin-bottom: var(--spacing-2xl);
}

.results-section__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-section__count {
    font-size: var(--font-size-base);
    color: var(--color-purple-light);
    font-weight: var(--font-weight-semibold);
}

.no-results {
    text-align: center;
    padding: var(--spacing-2xl);
    background: rgba(37, 37, 37, 0.4);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(143, 132, 160, 0.3);
}

.no-results__icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.no-results__title {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.no-results__text {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

/* ============================================
   BANNER
   ============================================ */

.banner {
    background: var(--color-accent);
    padding: var(--spacing-2xl) 0;
    margin: var(--spacing-3xl) 0;
    text-align: center;
    box-shadow: var(--shadow-accent);
    animation: fadeInScale 0.8s ease-out 0.4s both;
}

.banner p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0;
}

/* ============================================
   FEATURED SECTION
   ============================================ */

.featured-section {
    padding: var(--spacing-3xl) 0;
    background: rgba(49, 44, 62, 0.3);
    backdrop-filter: blur(10px);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    padding: var(--spacing-3xl);
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.featured-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    color: var(--color-text);
}

.featured-content p {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.featured-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gradient-card);
    box-shadow: var(--shadow-card);
}

.featured-image img,
.placeholder-featured {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
    padding: var(--spacing-3xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.gallery-item {
    position: relative;
    border: 3px solid var(--color-accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base);
    aspect-ratio: 1;
    background: var(--gradient-card);
    box-shadow: var(--shadow-card);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-card-hover);
}

.gallery-item img,
.placeholder-gallery {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px var(--spacing-2xl);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text);
    box-shadow: 0 4px 12px rgba(233, 31, 79, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-background);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-light:hover {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-lg {
    padding: 16px var(--spacing-2xl);
    font-size: var(--font-size-md);
}

/* Loading state modifier */
.btn--loading {
    color: transparent;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-3xl) 0;
}


/* ============================================
   PLACEHOLDERS
   ============================================ */

.placeholder-image,
.placeholder-thumb,
.placeholder-featured,
.placeholder-gallery {
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-image::before,
.placeholder-thumb::before,
.placeholder-featured::before,
.placeholder-gallery::before {
    content: '🎬';
    font-size: 48px;
    opacity: 0.3;
}

/* ============================================
   RESPONSIVE - TABLET (768px - 1024px)
   ============================================ */

@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-carousel {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-content {
        bottom: 10%;
    }
    
    .featured-card {
        padding: var(--spacing-2xl);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline__item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .timeline__timestamp {
        min-width: auto;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (< 768px)
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 var(--container-padding-mobile);
    }
    
    /* Hero */
    .hero-section {
        padding: var(--spacing-md) 0;
    }
    
    .hero-carousel {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content {
        bottom: 8%;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .carousel-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 24px;
    }
    
    /* Limit tags on mobile */
    .filter-tags {
        gap: 8px;
    }
    
    .filter-tag {
        padding: 8px 16px;
        font-size: var(--font-size-xs);
    }
    
    .tag {
        font-size: var(--font-size-xs);
        padding: 8px var(--spacing-md);
    }
    
    /* Video Grid - 1 colonne */
    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .video-card h3 {
        font-size: var(--font-size-md);
    }
    
    .favorite {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    /* Banner */
    .banner {
        padding: var(--spacing-lg) 0;
        margin: var(--spacing-xl) 0;
    }
    
    .banner p {
        font-size: var(--font-size-base);
    }
    
    /* Featured */
    .featured-section {
        padding: var(--spacing-xl) 0;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
        padding: var(--spacing-xl);
        gap: var(--spacing-xl);
    }
    
    .featured-content h2 {
        font-size: var(--font-size-2xl);
    }
    
    .featured-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .featured-buttons .btn {
        width: 100%;
    }
    
    .featured-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    /* Pagination */
    .pagination {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .pagination .btn {
        width: 100%;
    }
    
    /* Section Box */
    .section-box {
        padding: var(--spacing-md);
    }
    
    .section-box__title {
        font-size: var(--font-size-xl);
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Timeline */
    .timeline__item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .timeline__timestamp {
        min-width: auto;
    }
    
    /* Performers List */
    .performers-list {
        justify-content: center;
    }
    
    .performers-list__avatar {
        width: 80px;
        height: 80px;
    }
    
    /* Search */
    .search-hero__title {
        font-size: var(--font-size-2xl);
    }
    
    .search-hero__icon {
        width: 28px;
        height: 28px;
    }
    
    .search-form {
        flex-direction: column;
        margin-bottom: var(--spacing-lg);
    }
    
    .search-form__input,
    .search-form__submit {
        width: 100%;
        height: 48px;
    }
    
    .results-section {
        margin-bottom: var(--spacing-xl);
    }

    .performer-title {
        font-size: var(--font-size-2xl); /* Plus petit en mobile */
    }
}

/* ============================================
   RESPONSIVE - LARGE SCREENS (1600px+)
   ============================================ */

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   RESPONSIVE - SMALL SCREENS (480px-)
   ============================================ */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 colonnes en très petit écran */
    }
}

/* === RESPONSIVE - Limit visible tags === */
@media (max-width: 480px) {
    .filter-tag:nth-child(n+6) {
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .filter-tag:nth-child(n+8) {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .filter-tag:nth-child(n+10) {
        display: none;
    }
}

/* ==================================================
   LAZY LOADING DES GIFS pour les thumbs des vidéos
   ================================================== */

/* Lazy loading GIF au hover */
.video-thumb {
    position: relative;
}

.video-thumb__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    opacity: 1;
}

.video-thumb__gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Quand le GIF est prêt, on fait la transition */
.video-thumb.gif-ready .video-thumb__gif {
    opacity: 1;
}

.video-thumb.gif-ready .video-thumb__poster {
    opacity: 0;
}