/* ============================================
   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 */
    --pale-gold: #f4e4c1;    /* Or pâle */
    --accent-blue: #4a90e2;  /* Bleu clair LUZ */
    --light: #f8f9fa;
    --dark: #0a0a0a;
    --black: #000000;
    --bordeaux: #8B1538;     /* Rouge bordeaux */
    --light-gold: #c9a961;
    --white: #ffffff;
    --color-or-primaire: #c9a961;
    --color-or-clair: #FFC87C;
    --color-or-fonce: #B8941E;
    --color-noir: #0A0A0A;
    --color-marbre: #1A1A1A;
    --color-rouge: #8B1538;
    --color-rouge-fonce: #660F28;
}

/* ============================================
   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
   ============================================ */

/* Header principal - 110px hauteur, ROUGE VIF */
header,
.header,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    padding: 10px 30px !important;
    background: linear-gradient(135deg, #b22222, #8b0000) !important;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-button {
    background: white !important;
    color: #c41e3a !important;
    border: 2px solid #c9a961 !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 1em !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    cursor: pointer !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1001 !important;
    position: absolute !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.home-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4) !important;
}

/* Logo plaque marbre GRANDE 320x100px */
.site-logo,
.logo,
header .logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.logo a,
.site-logo,
.logo-plaque {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 380px;
    height: 110px;
    padding: 10px 25px;
    background: linear-gradient(145deg, #1A1A1A, #2a2a2a, #111);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Vis dorées via pseudo-elements */
.logo a::before,
.logo a::after,
.site-logo::before,
.site-logo::after,
.logo-plaque::before,
.logo-plaque::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #c9a961, #FFC87C);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 3px rgba(212, 175, 55, 0.3);
}

.logo a::before,
.site-logo::before,
.logo-plaque::before {
    top: 10px;
    left: 10px;
}

.logo a::after,
.site-logo::after,
.logo-plaque::after {
    top: 10px;
    right: 10px;
}

/* Effet lumineux BLANC au survol */
.logo a:hover,
.site-logo:hover,
.logo-plaque:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.logo-plaque:hover img,
.site-logo:hover img,
.logo a:hover img {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

/* Texte logo */
.logo-plaque .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c9a961;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    position: relative;
    z-index: 1;
}

.logo img,
.logo-image,
header .logo img,
.site-logo img,
.logo-plaque img {
    height: 220px !important;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo img:hover,
.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

/* Navigation compacte - 14px */
nav,
.site-nav,
.navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-wrap: nowrap;
}

nav a,
.nav-link,
header nav a,
.navigation a,
.menu-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
}

nav a:hover,
.nav-link:hover,
header nav a:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    border-bottom: 3px solid #ffffff;
    padding-bottom: 5px;
}

nav a.active,
.nav-link.active {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    color: #ffffff;
}

/* 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 */

/* Desktop (992-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    nav a,
    .nav-link {
        font-size: 12px !important;
        padding: 6px 10px;
    }

    .logo-plaque,
    .logo a,
    .site-logo {
        width: 160px;
        height: 50px;
    }

    .logo-plaque .logo-text {
        font-size: 19px;
    }
}

/* Tablet (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    nav a,
    .nav-link {
        font-size: 11px !important;
        padding: 6px 8px;
    }

    .logo-plaque,
    .logo a,
    .site-logo {
        width: 140px;
        height: 45px;
    }

    .logo-plaque .logo-text {
        font-size: 17px;
    }
}

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

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #b22222, #8b0000);
        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 !important;
        border-radius: 0;
        font-size: 14px !important;
    }

    .logo-plaque,
    .logo a,
    .site-logo {
        width: 140px;
        height: 45px;
    }

    .logo-plaque .logo-text {
        font-size: 17px;
    }
}

/* Mobile Small (<480px) */
@media (max-width: 480px) {
    header,
    .site-header {
        padding: 5px 15px !important;
    }

    .logo-plaque,
    .logo a,
    .site-logo {
        width: 120px;
        height: 40px;
    }

    .logo-plaque .logo-text {
        font-size: 15px;
    }
}

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

/* Banner Stats */
.hero-stats-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    margin-top: 15px;
    color: #c9a961;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Tahoma', Arial, sans-serif;
    text-align: center;
    letter-spacing: 1px;
    flex-wrap: wrap;
}

.hero-stats-banner .stat-separator {
    color: rgba(212, 175, 55, 0.5);
}

/* Bouton vidéo centré et agrandi */
.hero-video-btn-center {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.hero-video-btn-center a {
    display: inline-block;
    width: 250px;
    padding: 16px 32px;
    font-size: 18px;
    font-family: 'Tahoma', Arial, sans-serif;
    font-weight: 600;
    color: #c9a961;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
    border: 2px solid #c9a961;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.hero-video-btn-center a:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   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: var(--pale-gold); /* 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: linear-gradient(135deg, #b22222, #8b0000);
    color: var(--accent-gold);
    padding: 2rem;
    text-align: center;
    margin-top: calc(4rem * var(--phi));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-top: 2px solid var(--accent-gold);
}

.footer-social {
    max-width: 600px;
    margin: 0 auto;
}

.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;
}

/* ============================================
   FOOTER - BOUTONS SOCIAUX DORÉS
   ============================================ */

.footer-social {
    text-align: center;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    max-width: 600px;
}

.footer-social h3 {
    color: var(--pale-gold);
    font-size: 20px;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

.social-hint {
    color: #cccccc;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--pale-gold), #b8941e);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid #c9a961;
}

.social-link svg {
    width: 26px;
    height: 26px;
    color: #1a1a1a;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.social-tagline {
    font-style: italic;
    color: #888;
    font-size: 13px;
    margin-top: 15px;
}

/* Responsive mysteries */
@media (max-width: 768px) {
    .mystery-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .mystery-buttons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .mystery-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .mystery-buttons {
        gap: 12px;
    }

    .mystery-hint {
        font-size: 12px;
    }
}

/* ============================================
   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;
}
