/* ══════════════════════════════════════════════════════════════════
   LA CHARPENTE DES PAGES LEGALES
   ══════════════════════════════════════════════════════════════════

   Extraite de `mentions-legales.html`, qui la portait en propre.
   Les quatre pages ajoutees le 19/09/2026 (confidentialite, cookies,
   conditions, suppression) etaient nues : fond blanc, aucun menu,
   aucun pied de page. On y arrivait par un lien et on avait
   l'impression d'etre parti ailleurs — ce qui, sur une page qui parle
   de donnees personnelles, fait douter d'etre chez le bon
   interlocuteur.

   UNE SEULE COPIE, PARTAGEE. Cinq copies d'une meme feuille finissent
   par diverger, et on corrige alors trois fois sur quatre.
   ══════════════════════════════════════════════════════════════════ */

/* --- Styles de Base --- */
        :root {
            --primary-theme: #00BCD4; 
            --primary-theme-rgb: 0, 188, 212;
            --accent-theme: #FF2E63;
            --accent-theme1: #005c5a;
            --secondary-theme: #B2EBF2;
            --light-theme: #E0F7FA;
            --cream-white: #F0F8FF;
            --dark-theme: #006064;
            --truck-wave-gradient: linear-gradient(135deg, #FF2E63 0%, #880E4F 100%);
            --truck-bg-gradient: radial-gradient(circle at center, #26C6DA 0%, #0097A7 100%);
            --white: #FFFFFF;
            --black: #2C2C2C;
            --gray: #6B6B6B;
            --light-gray: #F8F8F8;
            --font-primary: 'Playfair Display', serif;
            --font-secondary: 'Inter', sans-serif;
            --spacing-xs: 0.5rem;
            --spacing-sm: 1rem;
            --spacing-md: 1.5rem;
            --spacing-lg: 2rem;
            --spacing-xl: 3rem;
            --spacing-xxl: 4rem;
            --transition-medium: 0.4s ease;
            --shadow-light: 0 2px 15px rgba(0, 188, 212, 0.1);
            --shadow-heavy: 0 8px 35px rgba(0, 96, 100, 0.2);
            --radius-lg: 20px;
            --radius-full: 50px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        /* Correction globale anti-débordement */
        html { scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }
        body { font-family: var(--font-secondary); line-height: 1.6; color: var(--black); background-color: var(--cream-white); max-width: 100vw; overflow-x: hidden; }
        img, input, textarea { max-width: 100%; height: auto; }
        
        .container { max-width: 1000px; margin: 0 auto; padding: 0 var(--spacing-md); position: relative; z-index: 2; }
        section { padding: var(--spacing-xxl) 0; overflow: hidden; position: relative; }

        .parallax-bg { position: relative; background-color: var(--cream-white); z-index: 0; }
        .parallax-bg::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: var(--truck-bg-gradient); background-attachment: fixed; opacity: 0.15; }
        
        .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
        .reveal.visible { opacity: 1; transform: translateY(0); }

        /* --- Navbar --- */
        .navbar { position: fixed; top: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); z-index: 1000; transition: all var(--transition-medium); border-bottom: 1px solid rgba(0, 188, 212, 0.2); }
        .navbar.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-medium); }
        .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); display: flex; align-items: center; justify-content: space-between; height: 80px; }
        .nav-logo { display: flex; align-items: center; gap: var(--spacing-sm); text-decoration: none; }
        .logo-image { height: 50px; width: auto; transition: transform var(--transition-medium); }
        .logo-image:hover { transform: rotate(5deg) scale(1.05); }
        .logo-text { font-family: var(--font-primary); font-size: 1.8rem; font-weight: 700; color: var(--dark-theme); line-height: 1; }
        .logo-container .lib { color: var(--dark-theme); }
        .logo-container .rte { color: var(--accent-theme1); font-style: normal; }
        .logo-container .by-suzanne { color: var(--primary-theme); font-family: 'Dancing Script', cursive; font-size: 1rem; margin-top: 0; display:block; }
        .nav-menu { display: flex; list-style: none; gap: var(--spacing-lg); }
        .nav-link { text-decoration: none; color: var(--gray); font-weight: 500; transition: all 0.2s ease; position: relative; padding: var(--spacing-xs) 0; }
        .nav-link:hover { color: var(--primary-theme); }
        .hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
        .bar { width: 25px; height: 3px; background: var(--dark-theme); transition: all 0.2s ease; border-radius: 2px; }

        /* --- En-tête de page --- */
        .page-header-section { padding: 160px 0 6rem 0; text-align: center; background: var(--truck-bg-gradient); color: white; margin-bottom: var(--spacing-lg); }
        .page-header-section .section-title { font-family: var(--font-primary); font-size: 2.8rem; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); margin-bottom: var(--spacing-md); }
        .page-header-section .section-subtitle { color: rgba(255,255,255,0.9); font-weight: 500; font-size: 1.2rem; }

        /* --- Contenu Légal --- */
        .legal-card {
            background: var(--white);
            padding: var(--spacing-xl);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-heavy);
            border: 1px solid var(--secondary-theme);
            /* Très important : empêche les URL très longues de casser la page sur mobile */
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        .legal-card h2 {
            font-family: var(--font-primary);
            color: var(--dark-theme);
            font-size: 1.8rem;
            margin-top: var(--spacing-xl);
            margin-bottom: var(--spacing-sm);
            padding-bottom: 10px;
            border-bottom: 2px solid var(--light-theme);
        }
        .legal-card h2:first-child { margin-top: 0; }
        .legal-card p, .legal-card ul {
            color: var(--gray);
            margin-bottom: var(--spacing-md);
            line-height: 1.8;
            font-size: 1.05rem;
        }
        .legal-card ul { padding-left: 20px; }
        .legal-card a {
            color: var(--primary-theme);
            text-decoration: none;
            font-weight: 500;
        }
        .legal-card a:hover { text-decoration: underline; }

        /* --- Footer --- */
        .footer { background: var(--primary-theme); color: #ffffff; padding: var(--spacing-xxl) 0 var(--spacing-lg); margin-top: var(--spacing-xxl); }
        .footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: var(--spacing-xxl); margin-bottom: var(--spacing-xl); }
        .footer-brand .logo-text { color: var(--white); }
        .footer-brand .rte { color: var(--dark-theme); }
        .footer-description { color: #ffffff; margin-top: 10px; }
        .footer-links { display: grid; grid-template-columns: repeat(3, 1fr); color: #ffffff; }
        .footer-column .footer-title { font-family: var(--font-primary); color: var(--dark-theme); margin-bottom: var(--spacing-md); }
        .footer-list { list-style: none; padding: 0; }
        .footer-list li { margin-bottom: var(--spacing-xs); }
        .footer-link { text-decoration: none; color: #ffffff; transition: color 0.2s ease; }
        .footer-link:hover { color: var(--dark-theme); }
        .social-links { display: flex; gap: var(--spacing-md); list-style: none; padding: 0; }
        .social-link { color: var(--primary-theme); background: white; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; font-size: 1.1rem; transition: transform 0.2s ease; }
        .social-link:hover { transform: scale(1.1) translateY(-2px); }
        .footer-bottom { border-top: 1px solid rgba(255,255,255, 0.3); padding-top: var(--spacing-lg); text-align: center; font-size: 0.9rem; color: #ffffff; }
        .footer .nav-logo { align-items: center; }

        /* =========================================
           --- RESPONSIVITÉ PARFAITEMENT CALIBRÉE ---
           ========================================= */

        @media (max-width: 1024px) {
            .footer-content { grid-template-columns: 1fr; text-align: center; gap: var(--spacing-lg); }
            .footer .nav-logo { margin: 0 auto; justify-content: center; }
            .social-links { justify-content: center; }
        }

        @media (max-width: 768px) {
            section { padding: var(--spacing-lg) 0; }
            .page-header-section { padding-top: 120px; padding-bottom: var(--spacing-lg); margin-bottom: var(--spacing-md); }
            
            .nav-container { height: 70px; }
            .logo-image { height: 40px; }
            .nav-logo .logo-text { font-size: 1.5rem; }
            
            .nav-menu { 
                position: fixed; left: -100%; top: 70px; flex-direction: column; 
                background: var(--white); width: 100%; text-align: center; 
                transition: 0.3s; padding: var(--spacing-lg) 0; gap: var(--spacing-lg); 
                box-shadow: var(--shadow-medium); 
                height: calc(100vh - 70px); overflow-y: auto;
            }
            .nav-menu.active { left: 0; }
            
            .hamburger { display: flex; }
            .hamburger.active .bar:nth-child(2) { opacity: 0; }
            .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
            .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
            
            .footer-links { grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); }
            
            .page-header-section .section-title { font-size: 2.2rem; }
            .legal-card { padding: var(--spacing-lg); }
        }

        @media (max-width: 480px) {
            .container, .nav-container { padding: 0 10px; }
            
            .nav-logo .logo-text { font-size: 1.2rem !important; }
            .page-header-section .section-title { font-size: 1.8rem !important; }
            .page-header-section .section-subtitle { font-size: 0.95rem; line-height: 1.4; padding: 0 5px; }
            
            .legal-card { padding: var(--spacing-md); }
            .legal-card h2 { font-size: 1.4rem; }
            .legal-card p, .legal-card ul { font-size: 0.95rem; }
            
            .footer-links { grid-template-columns: 1fr; }
        }
