/* legal-pages.css - Style uniforme pour les pages légales de Fidiz */

/* Styles généraux */
.legal-page {
    color: #333;
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

/* Hero section avec dégradé moderne */
.legal-hero {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, #5956E9 0%, #9345FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.legal-hero h1 {
    color: white;
    font-size: 3.5rem;
    text-align: center;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.legal-hero h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
}

/* Container principal */
.legal-content {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 50px;
    margin: -80px 20px 0;
    position: relative;
    z-index: 10;
}

/* Sections */
.legal-section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.legal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: #5956E9;
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #5956E9, #9345FE);
    border-radius: 3px;
}

/* Cards */
.legal-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.legal-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.legal-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.legal-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #666;
}

.legal-card ul li::before {
    content: "•";
    color: #9345FE;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Date de mise à jour */
.last-update {
    text-align: right;
    color: #999;
    font-size: 0.9rem;
    margin-top: -30px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
    .legal-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        height: 240px;
    }
    
    .legal-hero h1 {
        font-size: 2.5rem;
    }
    
    .legal-container {
        padding: 30px;
        margin: -60px 15px 0;
    }
    
    .legal-section h2 {
        font-size: 1.75rem;
    }
    
    .legal-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .legal-hero {
        height: 200px;
    }
    
    .legal-hero h1 {
        font-size: 2rem;
    }
    
    .legal-container {
        padding: 25px;
        margin: -50px 10px 0;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-card {
        padding: 20px;
    }
}

/* Animation au scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Script JavaScript pour l'animation au scroll */
/* 
Pour utiliser ce script, ajoutez le code suivant à la fin de vos pages légales :

<script>
    // Animation des sections au scroll
    document.addEventListener('DOMContentLoaded', function() {
        const sections = document.querySelectorAll('.legal-section');
        
        // Fonction pour vérifier si un élément est visible dans la fenêtre
        function isElementInViewport(el) {
            const rect = el.getBoundingClientRect();
            return (
                rect.top <= (window.innerHeight || document.documentElement.clientHeight) * 0.8
            );
        }
        
        // Fonction pour ajouter la classe visible aux sections visibles
        function handleScroll() {
            sections.forEach(section => {
                if (isElementInViewport(section)) {
                    section.classList.add('visible');
                }
            });
        }
        
        // Vérifier les sections visibles au chargement
        handleScroll();
        
        // Vérifier les sections visibles au scroll
        window.addEventListener('scroll', handleScroll);
    });
</script>
*/ 