/*
Theme Name: Festival starter theme
Theme URI: https://example.com/festival-theme
Author: Pascal / GAYAKOA
Author URI: https://example.com
Description: Thème WordPress événementiel inspiré du High Five Festival. Design sombre, hero plein écran, countdown, grille programme, soirées et partenaires. Entièrement personnalisable via le Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: festival-starter
Tags: one-column, custom-background, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready, event, festival
*/

/* ====== RESET & VARIABLES ====== */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-card: #1a1a1a;
    --white: #ffffff;
    --accent: #e63946;
    --accent-hover: #ff4d5a;
    --grey: #888888;
    --light-grey: #cccccc;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* ====== NAVIGATION ====== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.7rem 3rem;
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-branding .custom-logo {
    max-height: 45px;
    width: auto;
}

.site-branding .site-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin: 0;
}

.site-branding .site-title a {
    color: var(--white);
}

.site-branding .dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

/* Main navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--light-grey);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--white);
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--white);
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    width: 100%;
}

/* Sub-menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.8rem 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 0.5rem 1.5rem;
    display: block;
    font-size: 0.75rem;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation li {
    position: relative;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    display: block;
}

/* ====== HERO SECTION ====== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.3) 50%, rgba(230,57,70,0.15) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.95;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    animation: fadeUp 1s ease-out 0.2s both;
}

.hero-date .accent {
    color: var(--accent);
}

.hero-location {
    font-size: 1.1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--light-grey);
    margin-bottom: 2rem;
    animation: fadeUp 1s ease-out 0.5s both;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 1s ease-out 0.7s both;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s ease-out 0.9s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

/* ====== COUNTDOWN ====== */
.countdown-section {
    background: var(--dark);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(230,57,70,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    min-width: 130px;
    transition: var(--transition);
}

.countdown-item:hover {
    border-color: rgba(230,57,70,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.countdown-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--grey);
    margin-top: 0.5rem;
}

/* ====== EVENT GRID ====== */
.events-section {
    padding: 7rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header p {
    color: var(--grey);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card:hover img {
    transform: scale(1.1);
}

.event-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: var(--transition);
}

.event-card:hover .event-card-overlay {
    background: linear-gradient(to top, rgba(230,57,70,0.8) 0%, rgba(10,10,10,0.4) 50%, transparent 100%);
}

.event-card-category {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.event-card:hover .event-card-category {
    color: var(--white);
}

.event-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    line-height: 1.1;
}

.event-card-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.event-card:hover .event-card-desc {
    max-height: 100px;
}

/* ====== SOIREES ====== */
.soirees-section {
    background: var(--dark);
    padding: 7rem 3rem;
}

.soirees-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.soiree-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.soiree-card:hover {
    border-color: rgba(230,57,70,0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.soiree-card-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 2.5rem;
    gap: 2rem;
}

.soiree-day {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    min-width: 90px;
    text-align: center;
}

.soiree-day small {
    display: block;
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--grey);
}

.soiree-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.soiree-info p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.6;
}

.soiree-tag {
    display: inline-block;
    background: rgba(230,57,70,0.15);
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* ====== QUOTE ====== */
.quote-section {
    padding: 8rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '"';
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30rem;
    position: absolute;
    top: -5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.02);
    pointer-events: none;
}

.quote-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 3px;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.quote-text .highlight {
    color: var(--accent);
}

.quote-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ====== INFO CARDS ====== */
.info-section {
    padding: 5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
    display: block;
}

.info-card:hover {
    border-color: rgba(230,57,70,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.info-card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.info-card p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-card .arrow {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
}

.info-card:hover .arrow {
    transform: translateX(6px);
}

/* ====== PARTNERS ====== */
.partners-section {
    background: var(--dark);
    padding: 5rem 3rem;
    text-align: center;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.partners-logos img {
    max-height: 50px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: var(--transition);
}

.partners-logos img:hover {
    opacity: 1;
    filter: none;
}

/* ====== FOOTER ====== */
.site-footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 4rem 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-widget h4,
.widget-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-widget a,
.footer-widget li {
    display: block;
    color: var(--grey);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    list-style: none;
}

.footer-widget a:hover {
    color: var(--accent);
}

.footer-widget ul {
    padding: 0;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(230,57,70,0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--grey);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--grey);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ====== SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== ANIMATIONS ====== */
@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

@keyframes scrollDot {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ====== WORDPRESS DEFAULTS ====== */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--grey); font-size: 0.85rem; margin-top: 0.5rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* Page/Post content */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.entry-content p { margin-bottom: 1.5rem; color: var(--light-grey); }
.entry-content h2 { font-size: 2.5rem; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 1.8rem; margin: 1.5rem 0 0.8rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--light-grey); }
.entry-content a { color: var(--accent); }
.entry-content a:hover { color: var(--accent-hover); }
.entry-content img { border-radius: 8px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .soirees-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-header { padding: 1rem 1.5rem; }

    .main-navigation ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10,10,10,0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .main-navigation ul ul {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.5rem 0;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .events-section,
    .soirees-section,
    .quote-section,
    .info-section {
        padding: 4rem 1.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .countdown { gap: 1rem; }
    .countdown-item { padding: 1.5rem 1.8rem; min-width: 100px; }
    .countdown-number { font-size: 3rem; }
    .soiree-day { font-size: 3.5rem; }
    .footer-top { flex-direction: column; }
}
/* ====== COUNTDOWN MOBILE FIX ====== */
@media (max-width: 768px) {
    .countdown-section {
        padding: 2rem 0.5rem !important;
        overflow-x: hidden !important;
    }
    
    .countdown-container {
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }
    
    .countdown-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        padding: 0 !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .countdown-item {
        flex: 1 1 22% !important;
        min-width: 0 !important;
        max-width: 24% !important;
        padding: 0.5rem 0.1rem !important;
        background: rgba(26, 26, 26, 0.5) !important;
        border-radius: 4px !important;
    }
    
    .countdown-number {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        display: block !important;
        margin-bottom: 0.25rem !important;
    }
    
    .countdown-label {
        font-size: 0.5rem !important;
        letter-spacing: 0 !important;
        display: block !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }
    
    .countdown-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .countdown-subtitle {
        font-size: 0.7rem !important;
        margin-bottom: 1rem !important;
    }
}

/* iPhone SE et très petits écrans */
@media (max-width: 375px) {
    .countdown-grid {
        gap: 0.2rem !important;
    }
    
    .countdown-item {
        padding: 0.4rem 0.05rem !important;
    }
    
    .countdown-number {
        font-size: 1.2rem !important;
    }
    
    .countdown-label {
        font-size: 0.45rem !important;
    }
}