/* ============================================
   AGENDA - DESIGN MODERNE 2026 (CORRIGÉ)
   ============================================ */

:root {

    --primary: #0f172a;
    --primary-dark: #020617;
    --primary-light: #1e2937;
    --accent: #e11d48;
    --accent-light: #f43f5e;
    --accent-dark: #be123c;
    --neutral: #64748b;
    --neutral-light: #f1f5f9;
    --background: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --light: #f8fafc;
    --gray: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius: 1rem;
    --radius-sm: 0.75rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== HERO ==================== */
.page-title-section {
    padding: 5rem 0 5rem;
    background: linear-gradient(135deg, #1E215B 0%, #1e3a8a 100%);
    color: var(--neutral);
    position: relative;
    overflow: hidden;
    clip-path: ellipse(110% 100% at 50% 0%);

}

.page-title-section::before {
    content: '';
    position: absolute;
    top: -0%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-agenda {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: white;
}

.hero-agenda .highlight {
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subhead {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.genre-tag.hero-badge {
    display: inline-block;
    padding: 0.6em 1.2em;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    border: 1px solid rgba(255, 255, 255, 0.25);

    transition: all 0.3s ease;
    cursor: default;
}

/* Effet au survol */
.genre-tag.hero-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 10px rgba(255, 180, 80, 0.4);
}

/* Variante plus sombre (optionnel) */
.genre-tag.hero-badge.dark {
    background: linear-gradient(135deg, #1f1f1f, #3a3a3a);
    color: #f5f5f5;
}

.badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;

    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: all 0.25s ease;
}

.badge:hover {
    box-shadow:
        0 0 10px rgba(168, 85, 247, 0.3),
        0 0 20px rgba(99, 102, 241, 0.2);

    border-color: rgba(255, 255, 255, 0.35);
}

/* ==================== FEATURED EVENT ==================== */
/* 1. La Section (Conteneur parent) */
.featured-section.shifted-up {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* 2. La Carte (Le bloc blanc) */
.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: var(--transition);
    position: relative;
}

.featured-card:hover {
    box-shadow: 0 30px 70px -15px rgba(30, 64, 175, 0.25);
}

/* 3. Zone Image */
.featured-img {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.featured-img-content {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-img-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #AD0C2D;
    color: white;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-card:hover .featured-img img {

    box-shadow: 0 30px 80px -15px rgba(225, 29, 72, 0.22);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.75), transparent 60%);
}

/* 4. Zone Info (Texte) */
.featured-info {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

/* Nouveau : En-tête interne avec le H2 */
.featured-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-heading-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(23, 22, 56, 0.3);
    transition: all 0.3s ease;
}

.section-heading-small i {
    color: var(--accent);
}

/* 5. Éléments de contenu */
.featured-title {

    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.featured-desc {
    color: var(--primary);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

/* Le badge "Événement phare" (Positionné par rapport à l'en-tête interne maintenant) */
.featured-badge {
    background: linear-gradient(135deg, #c026d3, #db2777);
    color: white;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(192, 38, 211, 0.2);
}

/* Pills de date et catégorie */
.featured-eyebrow {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.featured-date-pill {
    background: #dbeafe;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* --- RESPONSIVE : Mobile & Tablettes --- */
@media (max-width: 768px) {

    .featured-section.shifted-up {
        margin-top: -20px;
        padding: 0 15px 2rem 15px;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-img {
        min-height: 250px;
    }

    .featured-info {
        padding: 1.5rem;
    }

    .featured-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-badge {
        position: relative;
        top: 0;
        right: 0;
        width: fit-content;
    }
}

/* ==================== FILTRES MODERNES ==================== */
.filter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e2937 100%);
    padding: 2.5rem 0;
    position: relative;
    margin-top: 2rem;
}

.filter-section .container {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    padding: 20px 24px;
}

.filter-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.cat-btn {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.cat-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.15),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cat-btn:hover::before {
    opacity: 1;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);

    box-shadow:
        0 0 10px rgba(168, 85, 247, 0.25),
        0 0 20px rgba(99, 102, 241, 0.15);

    transform: translateY(-2px);
}

.cat-btn.active {
    background: linear-gradient(135deg, #e11d48, #c026d3);
    border-color: #e11d48;
    color: white;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
}

.filter-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input-wrap {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.filter-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.filter-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.2);
}

.filter-input-wrap i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

.filter-select {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.2);
}

.btn-search {
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-results-count {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

/* ==================== EVENTS GRID ==================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    padding: 2rem 0;
}

.event-card {
    background: white;
    width: 100%;
    /* SUPPRIME height: 100% */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray);
}

.event-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* ou contain selon ton besoin */
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Badges événements */
.event-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}



.event-badge.upcoming {
    background: #f59e0b;
}

.event-badge.hot {
    background: #ef4444;
}

.event-badge.sold-out {
    background: #6b7280;
}

.event-badge.limited {
    background: #eab308;
}

.event-badge.new {
    background: #10b981;
}

.event-badge.premium {
    background: #8b5cf6;
}

.event-badge.free {
    background: #22c55e;
}

/* Conteneur image */
.event-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    /* Hauteur fixe pour toutes les images */
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 12px 12px 0 0;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Force l'image à couvrir tout l'espace sans déformation */
    object-position: center;
    /* Centre l'image */

}


/* Optionnel : effet au survol */
.event-image-container:hover .event-image {
    transform: scale(1.05);
}

/* Pour les images qui ne se chargent pas */
.event-image-container .event-image[src=""] {
    display: none;
}

/* Fallback pour les images manquantes */
.event-image-container::after {
    content: "🎵";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.5;
    pointer-events: none;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.event-card:hover .event-image-container img {
    transform: scale(1.07);
}

/* Catégorie */
.event-category {
    display: inline-block;
    background: var(--accent);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--neutral-light);
    margin-bottom: 12px;
}

/* Détails */
.event-details {
    padding: 1.6rem;
}

.event-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.event-name-link {
    text-decoration: none;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--primary-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.event-price {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.event-price .price-amount {
    color: var(--primary);
}

.event-price .price-label {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--text-muted);
}

.event-price.free .price-amount {
    color: #22c55e;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 9999px;
    padding: 10px 22px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    background: transparent;
}

.event-link:hover {
    gap: 12px;
    color: var(--accent);
    color: var(--neutral);
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-reset-small {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
}

/* Load more */
.load-more-wrap {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.featured-cta {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, #ff4d6d, #7b2cbf);
    color: white;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(123, 44, 191, 0.3);
    transition: all 0.3s ease;
}

.featured-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(123, 44, 191, 0.5);
}

.featured-cta:active {
    transform: scale(0.97);
}


/* Responsive */
@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-section.shifted-up {
        margin-top: -20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-input-wrap {
        min-width: auto;
    }

    .filter-select {
        width: 100%;
    }

    .btn-reset {
        justify-content: center;
    }
}

/* ==================== HERO AMÉLIORÉ ==================== */

.festival-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 6rem 1rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Overlay plus profond */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(225, 29, 72, 0.4) 50%,
            rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

/* Particules animées */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content-centered {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

/* Badges */
.hero-badge-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-badge.secondary {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.8), rgba(192, 38, 211, 0.8));
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-badge i {
    font-size: 1.1rem;
}

/* Titre principal */
.festival-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #fff, #f43f5e, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sous-titre */
.festival-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}



.separator-dot {
    margin: 0 0.8rem;
    color: var(--neutral-light);
}

/* Compteur amélioré */
.countdown-widget {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.countdown-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 60px;
    padding: 0.8rem 2rem;
}

.countdown-widget i {
    font-size: 2rem;
    color: #f43f5e;
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.countdown-digits {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
}

.countdown-days {
    font-size: 2rem;
    font-weight: 800;
    color: #f43f5e;
    line-height: 1;
}

.countdown-unit {
    font-size: 0.9rem;
    font-weight: 500;
}


/* Boutons CTA */
.hero-cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.btn-agenda {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-agenda:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.6);
    gap: 0.8rem;
}

.btn-agenda:active {
    transform: translateY(0) scale(0.98);
}

.btn-agenda-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-agenda-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    gap: 0.8rem;
}

.btn-agenda-secondary:active {
    transform: translateY(0);
}

/* Indicateur de scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.hero-scroll-indicator i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .festival-hero {
        min-height: auto;
        padding: 3rem 1rem;
        background-attachment: scroll;
    }

    .hero-content-centered {
        width: 100%;
        padding: 0;
    }

    .festival-title {
        font-size: 1.8rem !important;
        word-break: break-word;
    }

    .festival-subtitle {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .separator-dot {
        display: none;
    }

    .countdown-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.8rem 1.2rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 2rem auto;
    }

    .btn-agenda,
    .btn-agenda-secondary {
        justify-content: center;
        width: 100%;
    }

    .hero-scroll-indicator {
        position: relative;
        bottom: 0;
        margin-top: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet glassmorphism au survol des badges */
.hero-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Layout principal */
.festival-page-content {
    padding: 3rem 0;
}



.festival-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .festival-layout {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.festival-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.section-title-fest {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.section-title-fest i {
    color: var(--accent);
    font-size: 1.8rem;
}

.day-highlight {
    background: #fef9e6;
    border-left: 5px solid var(--accent);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1.5rem;
}

.day-highlight-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.day-highlight-title i {
    color: var(--accent);
}

/* Onglets programmation */
.tabs-container {
    margin-top: 1rem;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--gray);
    margin-bottom: 1.5rem;
}

.tab-link {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.tab-link.active {
    color: var(--primary);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-pane {
    display: block;
}

.tab-pane[hidden] {
    display: none;
}

.lineup-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    padding: 0;
}

.lineup-list li {
    background: var(--light);
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.lineup-list li:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .caption {
    opacity: 1;
}

.gallery-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary-outline {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    border: 2px solid var(--primary);
    color: white;
}

/* Boutons principaux */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #c026d3);
    color: white;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.35);
    border: 1px solid rgba(225, 29, 72, 0.45);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 15px 40px rgba(225, 29, 72, 0.45);
}


/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-subtitle {
    margin: 1rem;
    font-size: 1.1rem;
}

.sidebar-widget.glass {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.8rem;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    color: #fff;
    position: relative;
}

/* léger reflet */
.sidebar-widget.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

/* Titre */
.widget-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Liste */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* effet hover glass */
.info-list li:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Icônes */
.info-icon {
    font-size: 1.2rem;
    color: #E6F1FB;
    background-color: var(--accent-dark);
    padding: 6px;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    margin-top: 4px;
}

.info-icon-top {
    color: var(--accent);
    width: 36px;
    height: 36px;
}

/* Texte */
.info-list strong {
    color: var(--primary-dark);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 1px;
}

.info-list span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Bloc tarifs spécial */
.info-list .pricing {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 600px) {
    .sidebar-widget.glass {
        padding: 1.2rem;
    }

     .tabs-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .tab-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .lineup-list {
    grid-template-columns: 1fr; /* une seule colonne sur mobile */
    gap: 0.5rem;
  }
  
  .lineup-list li {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
}

@media (max-width: 992px) {
  .festival-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .festival-section {
    padding: 1.2rem;
  }
  
  .section-title-fest {
    font-size: 1.4rem;
  }
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-sm);
}

.partnership-widget {
    text-align: center;
}

.partner-logo {
    display: block;
    margin: 0 auto;
    max-width: 150px;
}

/* Compteur */
.countdown-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    color: #fff;
    font-weight: 600;
    margin-top: 0.75rem;
}

.countdown-days {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0.2rem;
}

/* ── Organizer Benefits ── */
.organizer-benefits {
    padding: 3rem 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.benefit-card {
    background: var(--color-background-primary, #fff);
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s;
}

.benefit-card:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.benefit-card .icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #E6F1FB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #185FA5;
}

.benefit-card h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

.benefit-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Carte mise en avant */
.highlight-card {
    background: var(--primary);
    border-color: #185FA5;
}

.highlight-card h4 {
    color: #E6F1FB;
    font-size: 16px;
}

.highlight-card p {
    color: #B5D4F4;
}

/* Bouton */
.btn.btn-primary {
    display: inline-block;
    margin-top: auto;
    padding: 0.55rem 1.1rem;
    background: #fff;
    color: #185FA5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: fit-content;
    transition: opacity 0.15s;
    letter-spacing: 0.3px;
}

.btn.btn-primary:hover {
    opacity: 0.88;
}

/* ── Map Section ── */
.map-section {
    padding: 2.5rem 1rem;
}

#eventMap {
    height: 450px;
    border-radius: 12px;
    border: 0.3em solid rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.lightbox-overlay {
    display: none;
    /* Caché par défaut */
    position: fixed;
    z-index: 9999;
    /* Au-dessus de tout */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Fond noir transparent */
}

.lightbox-overlay.active {
    display: flex;
    /* S'affiche quand on clique */
    justify-content: center;
    align-items: center;
}

.logo-cma {
    width: 120px;
    height: auto;
    margin-top: 1rem;
}

/*  promotions */
/* CARD */
.promotion-afficheur-pro {
    position: relative;
    background: linear-gradient(135deg, #0f172a, #020617);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.6rem;
    color: #f1f5f9;
    text-align: center;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5);

    overflow: hidden;
    transition: all 0.3s ease;
}

/* Glow marketing */
.promotion-afficheur-pro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(244, 63, 94, 0.25), transparent 70%);
    pointer-events: none;
}

/* HOVER */
.promotion-afficheur-pro:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* BADGE */
.promotion-badge {
    position: absolute;
    top: 12px;
    right: -35px;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 2.5rem;
    transform: rotate(45deg);
    letter-spacing: 0.05em;

    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.4);
}

/* HEADER */
.promo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(244, 63, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.promo-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

/* TEXTE */
.promo-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.promo-text strong {
    color: #f43f5e;
}

/* LISTE */
.promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.promo-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #e2e8f0;
    justify-content: center;
}

.promo-list li i {
    color: #22c55e;
}

/* CTA ULTRA CONVERSION */
.promo-cta {
    display: block;
    width: 100%;
    padding: 0.9rem;

    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);

    text-decoration: none;

    box-shadow: 0 12px 25px rgba(244, 63, 94, 0.45);
    transition: all 0.25s ease;

    animation: pulse 2s infinite;
}

/* Effet pulsation CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(244, 63, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
}

.promo-cta:hover {
    transform: scale(1.03);
}

/* NOTE URGENCE */
.promo-note {
    font-size: 0.75rem;
    color: #f43f5e;
    margin-top: 0.8rem;
    font-weight: 500;
}

/* ==================== CARROUSEL MODERNE ==================== */

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    width: 100%;
    cursor: grab;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .slide-caption {
    transform: translateY(0);
}

/* Boutons de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.carousel-btn:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 16px;
}

.next-btn {
    right: 16px;
}

/* Dots / indicateurs */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    width: 28px;
    border-radius: 8px;
    background: var(--accent);
}

.carousel-dot:hover {
    background: var(--accent-light);
    transform: scale(1.2);
}

.carousel-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    gap: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {

    .carousel-slide {
    aspect-ratio: 4 / 3; /* moins haut que 16/9 sur mobile */
  }
  
  .carousel-track {
    scroll-snap-type: x mandatory;
  }
  
  .carousel-btn {
    width: 32px;
    height: 32px;
    opacity: 0.8; /* toujours visible sur mobile */
  }
  
  .carousel-container:hover .carousel-btn {
    opacity: 0.8; /* maintient visible */
  }
  
  .slide-caption {
    font-size: 0.7rem;
    padding: 0.8rem 0.5rem 0.4rem;
  }

    .carousel-btn {
        width: 36px;
        height: 36px;
        opacity: 0.7;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .prev-btn {
        left: 8px;
    }

    .next-btn {
        right: 8px;
    }

    .slide-caption {
        font-size: 0.75rem;
        padding: 1rem 0.8rem 0.5rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 20px;
    }
}

/* Animation d'entrée pour le carrousel */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-container {
    animation: fadeSlideUp 0.6s ease-out;
}

/* == reseaux ==*/

.sidebar-widget-social .social-links {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;

    display: flex;
    flex-direction: column;
    gap: 10px;

}

.sidebar-widget-social:hover {
    transform: translateY(-2px);
}

.sidebar-widget-social h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: #2c3e50;
    color: white;
    transform: translateX(5px);
}

.social-link .icon {
    margin-right: 10px;
    font-size: 18px;
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.facebook:hover {
    background: #1877f2;
}