/* Home Page Styles */
.home-main {
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background-color: #fff;
    background-image: url('/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 30px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-cta);
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.btn-primary:hover {
    background-color: #15a36a;
    opacity: 1;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-brand);
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--color-brand);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background-color: var(--color-brand);
    color: white;
    opacity: 1;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 17px;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(190, 24, 93, 0.1);
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: white;
    padding: 32px 24px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(190, 24, 93, 0.12);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: rgba(190, 24, 93, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    color: var(--color-brand);
}

.category-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.category-card h3 a {
    color: #333;
}

.category-card h3 a:hover {
    color: var(--color-brand);
    opacity: 1;
}

.category-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background-color: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 10px 30px rgba(190, 24, 93, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 24px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: #333;
}

.article-card h3 a:hover {
    color: var(--color-brand);
    opacity: 1;
}

.article-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.view-all-articles {
    text-align: center;
    margin-top: 50px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: rgba(190, 24, 93, 0.04);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-text {
    color: #555;
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-brand);
}

.newsletter-btn {
    padding: 14px 28px;
    white-space: nowrap;
}

.newsletter-privacy {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Tips Section */
.tips-section {
    padding: 80px 0;
    background-color: #fff;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.tip-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    transition: border-color 0.3s;
}

.tip-card:hover {
    border-color: var(--color-brand);
}

.tip-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: var(--color-brand);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.tip-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #333;
    line-height: 1.4;
}

.tip-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 30px 15px;
    }
    
    .about-section,
    .categories-section,
    .articles-section,
    .newsletter-section,
    .tips-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .container {
        width: 92%;
        padding: 0 15px;
    }
    
    .categories-grid,
    .articles-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 4px;
    }
}
=== FICHIER: css/global.css ===
/* 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) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-section {
        min-height: 60vh;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .form-group {
        display: flex;
        gap: 10px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-title,
    .hero-title,
    .newsletter-title {
        line-height: 1.5;
    }

    .category-card {
        padding: 28px 20px;
    }

    .tip-card {
        padding: 28px 24px;
    }

    .article-content {
        padding: 20px;
    }

    .about-section,
    .categories-section,
    .articles-section,
    .newsletter-section,
    .tips-section {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-section {
        min-height: 50vh;
        padding: 30px 15px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .hero-cta {
        margin-top: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .about-text p {
        font-size: 16px;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 32px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        padding: 24px 18px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }

    .category-card h3 {
        font-size: 1.1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 20px;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-text {
        font-size: 16px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tip-card {
        padding: 28px 22px;
    }

    .tip-card h3 {
        font-size: 1.2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 28px;
        font-size: 15px;
    }

    .about-section,
    .categories-section,
    .articles-section,
    .newsletter-section,
    .tips-section {
        padding: 50px 0;
    }

    .view-all-articles {
        margin-top: 40px;
    }

    .container {
        width: 92%;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-section {
        min-height: 45vh;
        padding: 24px 12px;
    }

    .hero-content {
        padding: 24px 12px;
    }

    .hero-cta {
        margin-top: 20px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .about-section,
    .categories-section,
    .articles-section,
    .newsletter-section,
    .tips-section {
        padding: 40px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-text p {
        font-size: 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card {
        padding: 22px 16px;
    }

    .category-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .category-card p {
        font-size: 14px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-image {
        height: 160px;
    }

    .article-content {
        padding: 18px;
    }

    .article-meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .article-card h3 {
        font-size: 1.15rem;
    }

    .article-excerpt {
        font-size: 14px;
    }

    .newsletter-title {
        font-size: 1.3rem;
    }

    .newsletter-text {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .newsletter-content {
        padding: 0 10px;
    }

    .newsletter-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .newsletter-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tip-card {
        padding: 24px 18px;
    }

    .tip-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .tip-card p {
        font-size: 14px;
    }

    .tip-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
        top: -14px;
        left: 24px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .container {
        width: 94%;
        padding: 0 12px;
    }

    .view-all-articles {
        margin-top: 32px;
    }

    .about-image img {
        border-radius: 8px;
    }

    .category-icon {
        width: 46px;
        height: 46px;
    }
}