/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales */
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --accent-color: #FF9800;
    
    /* Couleurs neutres */
    --text-dark: #2C3E50;
    --text-medium: #546E7A;
    --text-light: #7A8B95;
    --bg-light: #F5F7F9;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    
    /* Couleurs d'état */
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-medium);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .nav-menu {
        gap: var(--spacing-sm);
        font-size: 0.9rem;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
}

/* ===== DISCLAIMER BANNER ===== */
.disclaimer-banner {
    background: #FFF3E0;
    border-bottom: 3px solid var(--accent-color);
    padding: var(--spacing-md) 0;
}

.disclaimer-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-content p {
    margin: 0;
    color: var(--text-dark);
}

.disclaimer-content a {
    color: var(--primary-dark);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 768px) {
    .disclaimer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
}

/* ===== SECTIONS ===== */
.intro-section,
.topics-section,
.newsletter-section,
.about-section,
.articles-section {
    margin: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2.25rem;
    color: var(--text-dark);
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto var(--spacing-md);
    color: var(--text-medium);
}

/* ===== GRID LAYOUT ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-highlight {
    border-top: 4px solid var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem;
}

.card p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.card-list {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding: 0;
}

.card-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-medium);
    position: relative;
    padding-left: var(--spacing-md);
}

.card-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.card-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    margin: var(--spacing-2xl) 0;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    color: white;
}

.newsletter-content h2 {
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.newsletter-content p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.benefits-list {
    list-style: none;
    max-width: 600px;
    margin: var(--spacing-lg) auto;
    padding: 0;
}

.benefits-list li {
    padding: var(--spacing-sm) 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.newsletter-form {
    max-width: 600px;
    margin: var(--spacing-xl) auto;
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: none;
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

.newsletter-privacy {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .newsletter-box {
        padding: var(--spacing-lg);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.about-text {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.about-disclaimer h3 {
    color: var(--warning-color);
    margin-bottom: var(--spacing-md);
}

.disclaimer-box {
    background: #FFF3E0;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--warning-color);
}

.disclaimer-box p {
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    color: var(--text-dark);
}

.disclaimer-box ul {
    margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-lg);
    color: var(--text-medium);
}

.disclaimer-box li {
    margin-bottom: var(--spacing-xs);
}

.disclaimer-cta {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--primary-dark);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ===== ARTICLES SECTION ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.article-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-category {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.article-card p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.article-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.footer-disclaimer {
    font-size: 0.85rem;
    font-style: italic;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-2xl: 3rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }
    
    body {
        font-size: 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
