/* ============================================
   VARIABLES φ-HARMONIQUES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --phi: 1.618;
    --primary: #1a2a4e;      /* Bleu profond */
    --accent-gold: #c9a961;  /* Or */
    --accent-blue: #4a90e2;  /* Bleu clair LUZ */
    --light: #f8f9fa;
    --dark: #0a0a0a;
    --black: #000000;
    --bordeaux: #b22222;     /* Rouge bordeaux plus vif (Firebrick) */
    --light-gold: #d4af37;
    --white: #ffffff;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', Arial, sans-serif;
    background-color: var(--black);
    color: var(--accent-gold);
    line-height: calc(1.5 * var(--phi));
    overflow-x: hidden;
}

/* ============================================
   HEADER / MENU NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bordeaux);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 100%; /* Pleine largeur pour espacer logo et onglets */
    margin: 0 auto;
    padding: 1rem 3rem; /* Plus de padding horizontal */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    color: white; /* Logo blanc sur toutes les pages */
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

.site-nav {
    display: flex;
    gap: calc(1.618rem);
    align-items: center;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.3rem 1rem; /* Réduit hauteur onglets */
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-gold);
}

.nav-link.active {
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-gold);
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bordeaux);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .site-nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 0;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    padding-top: calc(4rem + 70px); /* Compense hauteur header */
    background-color: var(--black);
}

/* ============================================
   VIDÉO LUZ CENTRÉE
   ============================================ */
.video-container {
    width: 100%;
    max-width: 400px; /* Réduit de 1/3 (600px → 400px) */
    aspect-ratio: 1 / 1; /* Format carré */
    margin-bottom: 3rem;
    margin-top: -3rem; /* Remonte la vidéo plus haut */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.luz-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback pendant chargement */
.video-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(201, 169, 97, 0.3);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   PLACEHOLDER VIDÉO (si vidéo absente)
   ============================================ */
.video-placeholder {
    position: absolute;
    inset: 0;
    display: none; /* Caché par défaut - s'affiche seulement si vidéo fail */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(26, 42, 78, 0.3) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(10px);
}

.placeholder-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.placeholder-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.shape-pulse {
    animation: shapePulse 2s ease-in-out infinite;
}

.pulse-center {
    animation: centerPulse 1.5s ease-in-out infinite;
}

@keyframes shapePulse {
    0%, 100% {
        opacity: 0.6;
        stroke-width: 2;
    }
    50% {
        opacity: 1;
        stroke-width: 3;
    }
}

@keyframes centerPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.placeholder-text {
    font-family: 'Audiowide', cursive;
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3em;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.placeholder-subtext {
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 1rem;
    color: var(--accent-gold);
    opacity: 0.7;
    letter-spacing: 0.1em;
}

/* ============================================
   TITRES HERO
   ============================================ */
.hero-title {
    font-family: 'Audiowide', cursive;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 400;
    color: #d4af37; /* Or brillant comme logo LUZ */
    text-align: center;
    margin-bottom: 2rem;
    max-width: 900px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    color: var(--accent-gold);
    text-align: center;
    opacity: 0.85;
    max-width: 800px;
    line-height: calc(1.6 * var(--phi));
    margin-bottom: 4rem;
}

/* ============================================
   BIFURCATION SECTION
   ============================================ */
.bifurcation {
    padding: calc(3rem * var(--phi)) 2rem;
    background-color: var(--black);
}

.path-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: calc(2rem * var(--phi));
}

/* ============================================
   PATH CARDS
   ============================================ */
.path {
    background: rgba(30, 20, 40, 0.6); /* Fond plus sombre */
    border: 3px solid #e91e63; /* Bordure rose/rouge vif comme dans l'image */
    border-radius: 12px;
    padding: calc(2rem * var(--phi));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3); /* Lueur rose */
}

.path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-gold) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.path:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.5); /* Lueur rose plus forte au survol */
    background: rgba(233, 30, 99, 0.12);
    border-color: #ff1a8c; /* Bordure encore plus vive au survol */
}

.path:hover::before {
    opacity: 1;
}

/* ============================================
   PATH CONTENT
   ============================================ */
.path-content {
    text-align: center;
}

.path-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(201, 169, 97, 0.5));
}

.path h2 {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.path-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--light-gold);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.path-description {
    margin-bottom: 2.5rem;
}

.path-description p {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
    opacity: 0.85;
}

/* ============================================
   PATH BUTTONS
   ============================================ */
.path-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%);
    color: var(--black);
    text-decoration: none;
    font-family: 'Tahoma', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.3);
}

.path-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.5);
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--accent-gold) 100%);
}

/* ============================================
   FOOTER BORDEAUX
   ============================================ */
.footer {
    background-color: var(--bordeaux);
    color: var(--accent-gold);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: calc(4rem * var(--phi));
}

.footer p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-links {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .video-container {
        max-width: 60vw; /* Réduit aussi sur mobile */
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .bifurcation {
        padding: 2rem 1rem;
    }

    .path {
        padding: 2rem;
    }

    .path h2 {
        font-size: 2rem;
    }

    .path-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .video-container {
        max-width: 70%; /* Plus petit sur très petits écrans */
    }

    .hero-subtitle br {
        display: none; /* Texte sur une ligne mobile */
    }

    .path-btn {
        width: 100%;
        padding: 1.25rem;
    }
}

/* ============================================
   ANIMATIONS ENTRÉE
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title,
.hero-subtitle,
.path {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    animation-delay: 0.4s;
    opacity: 0;
}

.path:nth-child(1) {
    animation-delay: 0.6s;
    opacity: 0;
}

.path:nth-child(2) {
    animation-delay: 0.8s;
    opacity: 0;
}
