/* --- VARIABLES ET RESET --- */
:root {
    --gold: #d4af37;
    --gold-light: #f1d592;
    --black: #0a0a0a;
    --dark-grey: #1a1a1a;
    --white: #ffffff;
    --max-width: 1100px;
    --section-padding: 0 5%;
}

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

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* Espace pour le menu fixe */
}

/* --- BANDEAU EN SURIMPRESSION (RIBBON) --- */
.ribbon-new {
    position: absolute;
    top: 40px;
    left: -10px;
    z-index: 100;
    text-decoration: none; /* Enlève le soulignement du lien */
    cursor: pointer;
}

.ribbon-new span {
    background: var(--gold);
    color: #000;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 10px 30px;
    display: block;
    transform: rotate(-15deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 1px;
    transition: 0.3s;
    
    animation: pulse-gold 2s infinite;
}

/* Effet au survol pour montrer que c'est cliquable */
.ribbon-new:hover span {
    background: var(--white);
    color: var(--black);
    transform: rotate(-15deg) scale(1.1);
}

@keyframes pulse-gold {
    0% { transform: rotate(-15deg) scale(1); }
    50% { transform: rotate(-15deg) scale(1.05); }
    100% { transform: rotate(-15deg) scale(1); }
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    background: rgba(10, 10, 10, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    height: 70px;
}

.nav-brand { 
    position: absolute;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-top { height: 45px; width: auto; }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    align-items: center;
    margin: 0 auto;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--white); 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
    transition: 0.3s; 
}

.nav-links a:hover { color: var(--gold); }

/* --- SOUS-MENU (DROPDOWN) --- */
.dropdown-container { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #111;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.8);
    z-index: 10000;
    border: 1px solid var(--gold);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-container:hover .dropdown-content { display: block; }

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    text-transform: none;
    border-bottom: 1px solid #222;
}

/* --- BOUTON LOGIN --- */
.btn-login { 
    border: 1px solid var(--gold); 
    padding: 8px 20px; 
    border-radius: 4px; 
    color: var(--gold) !important; 
    font-weight: bold;
}
.btn-login:hover { background: var(--gold); color: var(--black) !important; }

/*specifique a acceuil et index */
 /* --- HERO SECTION --- */
        .hero {
            position: relative;
            padding: 100px 5% 80px; /* Ajusté car le body a déjà un padding-top */
            text-align: center;
            background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
        }

        .hero h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); text-transform: uppercase; margin-bottom: 20px; }
        .hero h1 span { color: var(--gold); }

        .virtualpb-definition {
            max-width: 800px;
            margin: 0 auto 50px;
            font-size: 1.2rem;
            color: #ccc;
            font-weight: 300;
            line-height: 1.4;
        }
        .virtualpb-definition b { color: var(--gold); font-weight: bold; }

        .process-container { max-width: 1100px; margin: 0 auto 50px; }
        .process-flow { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px; }
        .step-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(212, 175, 55, 0.3); padding: 25px 20px; border-radius: 15px; flex: 1; transition: 0.3s; }
        .step-box:hover { border-color: var(--gold); transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); }
        .step-box i { font-size: 2rem; color: var(--gold); margin-bottom: 15px; }
        .step-box h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
        .step-box p { font-size: 0.85rem; color: #aaa; line-height: 1.4; }
        .arrow { color: var(--gold); font-size: 1.5rem; opacity: 0.5; }
        .arrow-down { text-align: center; color: var(--gold); font-size: 1.5rem; opacity: 0.5; margin: 10px 0; }

        .download-highlight {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: rgba(212, 175, 55, 0.1);
            padding: 10px 25px;
            border-radius: 50px;
            border: 1px dashed var(--gold);
            color: var(--gold-light);
            font-weight: bold;
            font-size: 0.95rem;
            margin-bottom: 40px;
        }

        .cta-main { background: var(--gold); color: black; padding: 18px 45px; text-decoration: none; border-radius: 5px; font-weight: bold; text-transform: uppercase; transition: 0.3s; display: inline-block; }
        .cta-main:hover { background: var(--white); transform: scale(1.05); }

        /* --- SECTION IMAGES --- */
        .image-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 60px 5%; }
        .img-card { background: #151515; border-radius: 12px; overflow: hidden; border: 1px solid #222; transition: 0.4s; cursor: pointer; }
        .img-card img { width: 100%; height: 300px; object-fit: contain; background: #000; padding: 15px; }
        .img-caption { padding: 15px; background: var(--dark-grey); text-align: center; color: var(--gold); font-weight: bold; text-transform: uppercase; font-size: 0.85rem; min-height: 80px; display: flex; align-items: center; justify-content: center; }

        /* --- FORMULES --- */
        .section-title { text-align: center; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; font-size: 1.8rem; }
        .section-subtitle { text-align: center; color: #888; font-style: italic; margin-bottom: 50px; font-size: 0.9rem; letter-spacing: 1px; }
        .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 0 5% 100px; }
        .card { background: #111; padding: 40px 30px; border-radius: 15px; text-align: center; border: 1px solid #222; transition: 0.3s; position: relative; }
        .card.featured { border: 2px solid var(--gold); transform: scale(1.05); z-index: 2; }
        .card i { font-size: 3.5rem; color: var(--gold); margin-bottom: 25px; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4)); }
        
        .badge-lancement {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--gold);
            color: black;
            padding: 4px 15px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: bold;
            text-transform: uppercase;
            white-space: nowrap;
            box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        }
		
		
@media (max-width: 1100px) {
    .process-flow {
        flex-wrap: wrap;
        justify-content: center;
    }
    .process-flow .arrow {
        display: none;
    }
    .step-box {
        flex: 0 0 calc(33% - 20px);
        min-width: 200px;
    }
}


/* --- MOBILE --- */
.menu-toggle { display: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 992px) {
    .menu-toggle { display: block; position: absolute; right: 5%; }
    .nav-brand span { display: none; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: #0a0a0a;
        padding: 30px;
        border-bottom: 2px solid var(--gold);
    }

    .nav-links.active { display: flex; }
    .dropdown-content { position: static; display: block; transform: none; border: none; padding-left: 20px; }
}

@media (max-width: 768px) {
    /* Cadres process-flow en colonne */
    .process-flow {
        flex-direction: column;
        align-items: stretch;
    }
    .arrow {
        transform: rotate(90deg);
        text-align: center;
    }
    .step-box {
        width: 100%;
    }

    /* Grille la_night.php en 2 colonnes puis 1 */
    .night-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .night-grid {
        grid-template-columns: 1fr;
    }
    .card.featured {
        transform: scale(1);
    }
}
/* --- FORCE L'AFFICHAGE DES MODALES --- */
/* --- MODALS --- */
   
/* --- SECTION MODALES (IMAGE CLIC) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}



/* Centrage via .modal-dialog avec margin auto */
.modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    overflow: visible;
}

.modal-content {
    max-width: 80vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

#closeModalBtn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    color: #d4af37;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999999;
    line-height: 1;
    transition: 0.3s;
}

#closeModalBtn:hover {
    color: var(--white);
    transform: scale(1.1);
}

/* Animation d'ouverture */
.modal-dialog {
    animation: zoomIn 0.3s;
}
@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* --- MODALS mentions légales et cgv --- */
        #mentionsModal, #cguModal {
            display: none;
            position: fixed;
            z-index: 3000;
            left: 0; top: 0;
            width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.95);
            backdrop-filter: blur(5px);
        }

        .modal-legal-content {
            background-color: #111;
            margin: 5% auto;
            padding: 30px;
            border: 1px solid var(--gold);
            border-radius: 15px;
            width: 80%;
            max-width: 700px;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            color: #ccc;
        }

        .close-legal { position: absolute; right: 20px; top: 15px; color: var(--gold); font-size: 30px; font-weight: bold; cursor: pointer; }

        footer { padding: 50px 5%; background: #050505; text-align: center; border-top: 1px solid #1a1a1a; }