/* ========================================== */
/* STRUCTURE GLOBALE POUR TOUTES LES PAGES */
/* ========================================== */
.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem;
    background-color: white;
    color: #333;
    min-height: calc(100vh - 150px - 120px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.legal-container h1 {
    font-family: 'Parkinsans', cursive;
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #A40000;
    text-align: center;
    line-height: 1.3;
}

.legal-container h1 br {
    display: block;
    content: "";
    margin-bottom: 0.5rem;
}

.legal-container h2 {
    font-family: 'Parkinsans', cursive;
    font-size: 1.8rem;
    color: #A40000;
    margin: 2.5rem 0 1.5rem;
}

.legal-container p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
}

.legal-container a {
    color: #A40000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.legal-container a:hover {
    color: #DC0000;
    text-decoration: underline;
}

/* ========================================== */
/* STYLES SPÉCIFIQUES À LA PAGE ACTUS */
/* ========================================== */

.actus-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.actus-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    font-family: 'Parkinsans', cursive;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.article-card {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.card-overlay time {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.9);
}

.card-overlay h2 {
    font-family: 'Parkinsans', cursive;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.card-overlay p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Animation au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.3s; }
.article-card:nth-child(3) { animation-delay: 0.5s; }
.article-card:nth-child(4) { animation-delay: 0.7s; }

/* Responsive */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .article-card {
        height: 250px;
    }
    
    .card-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .card-overlay h2 {
        font-size: 1.3rem;
    }

/* ========================================== */
/* STYLES EXISTANTS POUR AUTRES PAGES */
/* ========================================== */
.legal-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
}

.privacy-content section {
    margin-bottom: 3rem;
}

.privacy-content h2 {
    font-size: 1.6rem;
    color: #A40000;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(164, 0, 0, 0.2);
}

.privacy-content ul {
    margin: 1.5rem 0 2rem 2rem;
    list-style-type: square;
}

.privacy-content li {
    margin-bottom: 0.7rem;
    padding-left: 0.5rem;
}

.privacy-content li::before {
    content: none;
}

.email-link {
    font-weight: 700;
    border-bottom: 1px dashed #A40000;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.sitemap-section {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sitemap-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sitemap-section h2 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(164, 0, 0, 0.2);
}

.sitemap-icon {
    width: 24px;
    height: 24px;
    fill: #A40000;
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 0.8rem;
    padding-left: 0;
}

.sitemap-links li::before {
    content: none;
}

.sitemap-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: #333;
    font-weight: 500;
}

.sitemap-links a::before {
    content: "→";
    color: #A40000;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.sitemap-links a:hover {
    color: #A40000;
    padding-left: 5px;
}

.sitemap-links a:hover::before {
    transform: translateX(5px);
}

.sitemap-notice {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed #ddd;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* ========================================== */
/* RESPONSIVE DESIGN */
/* ========================================== */
@media (max-width: 900px) {
    .legal-container {
        padding: 3.5rem;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .legal-container {
        padding: 3rem;
        min-height: calc(100vh - 120px - 100px);
    }
    
    .legal-container h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .privacy-content h2 {
        font-size: 1.4rem;
    }
    
    .practical-info-grid {
        grid-template-columns: 1fr;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .event-cta {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .legal-container {
        padding: 2.5rem 2rem;
        width: 95%;
    }
    
    .legal-container h1 {
        font-size: 2rem;
    }
    
    .privacy-content ul {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 2rem 1.5rem;
    }
    
    .legal-container h1 {
        font-size: 1.8rem;
        padding-bottom: 1rem;
    }
    
    .sitemap-section {
        padding: 1.5rem;
    }
    
    .sitemap-section h2 {
        font-size: 1.3rem;
    }
    
    .sitemap-icon {
        width: 20px;
        height: 20px;
    }
}
