/* ==========================================================================
   style-cgv.css
   FIX HEADER & NAVIGATION (Cohérence globale 2026)
   ========================================================================== */

#common-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000; /* Priorité maximale sur le scroll */
    background-color: rgba(17, 17, 17, 0.6); /* Légèrement plus sombre pour la lisibilité sur texte */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#common-header header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 40px !important;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 80px;
}

.header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}

.header-logo img {
    max-height: 50px;
    width: auto;
}

.nav-menu, .header-icons {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    z-index: 10001; /* Assure que les icônes restent cliquables */
}

/* Correction spécifique pour le menu latéral sur pages longues */
#side-menu {
    position: fixed !important; /* Force la position fixe pour accompagner le scroll */
    z-index: 10002 !important; /* Au-dessus du header */
}

/* ==========================================================================
   2. STYLE GÉNÉRAL & STRUCTURE CGV
   ========================================================================== */

body {
    background-color: #111; /* Fond noir profond identique aux autres pages */
    color: #e0e0e0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
}

.content-wrapper {
    padding-top: 160px; 
    padding-bottom: 100px;
    max-width: 850px; 
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
}

/* Fil d'ariane (Breadcrumb) */
.breadcrumb {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fff;
}

/* ==========================================================================
   3. TYPOGRAPHIE ET CONTENU
   ========================================================================== */

.cgv-title {
    font-size: 1.6rem;
    font-weight: 300; 
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    color: #fff;
    text-align: center;
}

.cgv-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    margin-top: 50px;
    margin-bottom: 20px;
}

.cgv-text p {
    margin-bottom: 25px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7); 
}

/* Bloc d'informations légales */
.cgv-infos {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 60px;
    font-size: 0.85rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ==========================================================================
   4. FORMULAIRE DE RÉTRACTATION & BOUTONS
   ========================================================================== */

.retractation-container {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 30px;
    background: rgba(255, 255, 255, 0.01);
    margin: 40px 0;
}

.form-label {
    display: block;
    margin-bottom: 15px; 
    color: #fff; 
    font-weight: 600; 
    font-size: 0.75rem; 
    letter-spacing: 1px;
    text-transform: uppercase;
}

.retractation-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

.print-section {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.print-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 14px 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.print-btn:hover {
    background: #ffffff;
    color: #111;
    transform: translateY(-2px);
}

/* ==========================================================================
   5. RESPONSIVE & PRINT
   ========================================================================== */

@media (max-width: 768px) {
    #common-header header { padding: 10px 20px !important; height: 70px; }
    .content-wrapper { padding-top: 130px; }
    .info-grid { grid-template-columns: 1fr; }
    .cgv-title { font-size: 1.4rem; letter-spacing: 4px; }
}

@media print {
    #common-header, #common-footer, .print-section, .breadcrumb {
        display: none !important;
    }
    body { background: white !important; color: black !important; }
    .content-wrapper { padding: 0; margin: 0; max-width: 100%; }
    .cgv-infos { background: #f9f9f9 !important; border: 1px solid #eee !important; color: #000 !important; }
    .cgv-title, .cgv-text h3, .cgv-text p, .form-label { color: #000 !important; }
    .retractation-container { border: 1px solid #ccc !important; }
}