@charset "utf-8";

/* CSS COMPLET - PAVILLON666.FR */

/* --- VARIABLES & COULEURS --- */
:root {
    --primary-red: #990000;
    --text-white: #ffffff;
    --bg-black: #000000;
    --gray-dark: #1a1a1a;
    --gray-light: #cccccc;
    /* 0.7 = assombrissement à 70%. Augmente à 0.8 pour plus sombre, baisse à 0.6 pour plus clair */
    --overlay-dark: rgba(0, 0, 0, 0.9); 
}

/* --- RESET TOTAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    color: var(--text-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    
    /* --- FOND GÉNÉRAL (Commun à toutes les pages) --- */
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), 
                url('https://www.pavillon666.fr/images/p666-header2026.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* L'image reste fixe au scroll */
    background-color: var(--bg-black);
}

/* --- ÉLÉMENTS DE BASE --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- UTILITAIRES DE MISE EN PAGE --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ANIMATIONS --- */
@keyframes tracking-in-expand {
    0% { letter-spacing: -0.5em; opacity: 0; }
    40% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* --- STYLE CONTENU --- */
.home-content {
    padding: 40px 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-left: 5px solid var(--primary-red);
    border-right: 5px solid var(--primary-red);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* --- STYLES HEADER --- */
header {
    background: url('https://www.pavillon666.fr/images/p666-header2026.webp') no-repeat center center;
    background-size: cover;
    width: 100%;
}

.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.75);
}

.main-nav {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 4px solid var(--primary-red);
    position: relative;
}

.nav-links {
    display: flex;
    justify-content: center;
}

.nav-links > li { position: relative; }

.nav-links a {
    display: block;
    padding: 18px 22px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-links > li:hover > a {
    background: var(--primary-red);
}

/* --- GRILLE HOME (PC) --- */
.home-top-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.pub-container, .videos-container {
    min-width: 0; 
    overflow: visible; /* Permet au tooltip de s'afficher */
}

.home-compteurs-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* --- STYLES FOOTER --- */
footer {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 50px;
    border-top: 4px solid var(--primary-red);
    background: url('https://www.pavillon666.fr/images/p666-header2026.webp') no-repeat center center;
    background-size: cover;
}

.footer-overlay {
    background: rgba(0, 0, 0, 0.85);
    width: 100%;
    padding: 40px 0 20px 0;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav a {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    padding: 5px 10px;
}

.footer-nav a:hover {
    color: var(--primary-red) !important;
}

.copyrights {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 30px;
    padding: 20px 20px 0 20px;
    border-top: 1px solid #222;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .home-top-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        display: none;
        width: 100%;
        background: #000;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }
}


#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-red); /* Utilise ta variable rouge */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    opacity: 0; /* Caché par défaut */
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #fff;
    color: var(--primary-red);
    transform: translateY(-5px); /* Petit effet de saut au survol */
}

#backToTop .arrow {
    line-height: 1;
}