/* Global Styles */
:root {
    --color-brand: #be185d;
    --color-cta: #18be79;
    --text-muted: #666;
    --border: #e0e0e0;
    --font-main: Bahnschrift, 'Arial Black', 'Helvetica Neue', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
}

.table-responsive,
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

a {
    color: var(--color-brand);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.6;
    margin-top: 0;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 400;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

strong {
    font-weight: 700;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .grid,
    [class*='grid'] {
        grid-template-columns: 1fr !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}
=== FICHIER: js/home.js ===
// Smooth scrolling for anchor links
document.addEventListener('DOMContentLoaded', function() {
    // Smooth scroll for all links with hash
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function(e) {
            const href = this.getAttribute('href');
            if (href !== '#') {
                e.preventDefault();
                const target = document.querySelector(href);
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            }
        });
    });
    
    // Newsletter form handling (example - would connect to backend in real implementation)
    const newsletterForm = document.querySelector('.newsletter-form');
    if (newsletterForm) {
        newsletterForm.addEventListener('submit', function(e) {
            e.preventDefault();
            const emailInput = this.querySelector('input[name="email"]');
            const email = emailInput.value.trim();
            
            if (email && email.includes('@')) {
                // In a real implementation, this would send to a server
                // For now, just show a thank you message
                const formGroup = this.querySelector('.form-group');
                const originalContent = formGroup.innerHTML;
                
                formGroup.innerHTML = '<p style="color: var(--color-cta); font-weight: 700;">Merci pour votre inscription !</p>';
                
                // Reset form after 3 seconds
                setTimeout(() => {
                    formGroup.innerHTML = originalContent;
                    emailInput.value = '';
                }, 3000);
            }
        });
    }
});
=== FICHIER FIN ===

// Note: Le fichier siteconfig.php doit être créé séparément avec les configurations nécessaires.
// Les images référencées (/images/logo.png, /images/hero-background.jpg, etc.) doivent être fournies ou remplacées par des placeholders.
// Le design respecte strictement la règle des 2 couleurs (brand: #be185d, CTA: #18be79) et toutes les autres contraintes techniques.
// Le footer est épuré, sans balises Hn, avec CSS inline.
// La navigation utilise le hack CSS checkbox pour le menu hamburger sans JavaScript.
// Toutes les corrections V5.1 sont appliquées.

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .categories-grid,
    .articles-grid,
    .tips-grid,
    .footer-grid {
        gap: 1.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .about-section,
    .categories-section,
    .articles-section,
    .tips-section,
    .newsletter-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .about-section,
    .categories-section,
    .articles-section,
    .tips-section,
    .newsletter-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .footer-section {
        padding: 1.5rem 0;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
}