/* ================================
   VARIABLES CSS - Charte Graphique Clair&Net
   ================================ */
:root {
    /* Couleurs principales */
    --bleu-nuit: #0E2954;
    --dore-clair: #E0C097;
    --blanc-pur: #FFFFFF;
    --noir-profond: #000000;
    
    /* Couleurs secondaires */
    --bleu-hover: #1a3d6f;
    --dore-hover: #d4b280;
    --gris-clair: #f5f5f5;
    --gris-moyen: #e0e0e0;
    --gris-texte: #333333;
    --gris-leger: #666666;
    
    /* Typographie */
    --font-titre: 'Poppins', sans-serif;
    --font-texte: 'Open Sans', sans-serif;
    
    /* Espacements */
    --container-max: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(14, 41, 84, 0.08);
    --shadow-md: 0 4px 16px rgba(14, 41, 84, 0.12);
    --shadow-lg: 0 8px 32px rgba(14, 41, 84, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-texte);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gris-texte);
    background-color: var(--blanc-pur);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ================================
   CONTENEURS
   ================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ================================
   HEADER / NAVIGATION
   ================================ */
.header {
    background-color: var(--blanc-pur);
    border-bottom: 1px solid var(--gris-moyen);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo-text {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--bleu-nuit);
}

.logo-and {
    color: var(--dore-clair);
    font-weight: 700;
}

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

.nav-link {
    font-family: var(--font-texte);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gris-texte);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bleu-nuit);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--dore-clair);
}

.btn-primary-small {
    background-color: var(--bleu-nuit);
    color: var(--blanc-pur);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary-small:hover {
    background-color: var(--dore-clair);
    color: var(--bleu-nuit);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--bleu-nuit);
    cursor: pointer;
}

/* ================================
   HERO SECTION
   ================================ */
.blog-hero {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #1a3d6f 100%);
    color: var(--blanc-pur);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(224, 192, 151, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(224, 192, 151, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-titre);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dore-clair);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.3rem;
}

/* ================================
   FILTRES
   ================================ */
.blog-filters {
    background-color: var(--gris-clair);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--gris-moyen);
}

.filters-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background-color: var(--blanc-pur);
    color: var(--gris-texte);
    border: 2px solid var(--gris-moyen);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-texte);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--dore-clair);
    color: var(--bleu-nuit);
}

.filter-btn.active {
    background-color: var(--bleu-nuit);
    color: var(--blanc-pur);
    border-color: var(--bleu-nuit);
}

/* ================================
   GRILLE D'ARTICLES
   ================================ */
.blog-main {
    padding: var(--spacing-xl) 0;
    min-height: 500px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-lg);
}

/* ================================
   CARTE D'ARTICLE
   ================================ */
.article-card {
    background-color: var(--blanc-pur);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.article-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #1a3d6f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-image::before {
    content: '📝';
    font-size: 4rem;
    opacity: 0.2;
}

.article-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--dore-clair);
    color: var(--bleu-nuit);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.article-card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--gris-leger);
}

.article-card-title {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--bleu-nuit);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.article-card-excerpt {
    color: var(--gris-texte);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.article-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.tag {
    background-color: var(--gris-clair);
    color: var(--gris-leger);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bleu-nuit);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.article-card-link:hover {
    color: var(--dore-clair);
    gap: 0.8rem;
}

.article-card-link svg {
    transition: transform 0.3s ease;
}

.article-card-link:hover svg {
    transform: translateX(4px);
}

/* ================================
   ARTICLES À VENIR
   ================================ */
.article-card.coming-soon {
    opacity: 0.7;
}

.article-card.coming-soon .article-card-image {
    background: linear-gradient(135deg, var(--gris-moyen) 0%, var(--gris-clair) 100%);
}

.placeholder-image {
    position: relative;
}

.placeholder-text {
    position: absolute;
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--gris-leger);
    z-index: 1;
}

.article-card.coming-soon .article-card-title {
    color: var(--gris-leger);
}

/* ================================
   MESSAGE AUCUN RÉSULTAT
   ================================ */
.no-results {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.no-results h3 {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    color: var(--bleu-nuit);
    margin-bottom: var(--spacing-sm);
}

.no-results p {
    color: var(--gris-leger);
    margin-bottom: var(--spacing-md);
}

/* ================================
   SECTION NEWSLETTER
   ================================ */
.newsletter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-xl) 0;
    border-top: 3px solid var(--dore-clair);
}

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

.newsletter-text h2 {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 2rem;
    color: var(--bleu-nuit);
    margin-bottom: var(--spacing-sm);
}

.newsletter-text p {
    color: var(--gris-leger);
    margin-bottom: var(--spacing-lg);
}

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

.newsletter-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--gris-moyen);
    border-radius: var(--radius-sm);
    font-family: var(--font-texte);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.newsletter-privacy {
    margin-top: var(--spacing-sm);
    color: var(--gris-leger);
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #1a3d6f 100%);
    color: var(--blanc-pur);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.btn-primary-large {
    display: inline-block;
    background-color: var(--dore-clair);
    color: var(--bleu-nuit);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary-large:hover {
    background-color: var(--blanc-pur);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-large {
    display: inline-block;
    background-color: transparent;
    color: var(--blanc-pur);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--blanc-pur);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-secondary-large:hover {
    background-color: var(--blanc-pur);
    color: var(--bleu-nuit);
    transform: translateY(-3px);
}

.cta-guarantee {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: var(--spacing-sm);
}


/* ================================
   FOOTER - EXACT DU SITE PRINCIPAL
   ================================ */
.footer {
    background: #0E2954;
    color: #FFFFFF;
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 64px;
}

.footer-col.brand {
    max-width: 350px;
}

.footer-logo {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.footer-logo span:first-child {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
}

.gold {
    color: #E0C097;
}

.tagline {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E0C097;
    font-weight: 600;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #E0C097;
    color: #0E2954;
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #E0C097;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: #E0C097;
    transform: translateX(5px);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list svg {
    width: 18px;
    height: 18px;
    color: #E0C097;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #E0C097;
}

.legal-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-col.brand {
        max-width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}


/* ================================
   BOUTONS GÉNÉRIQUES
   ================================ */
.btn-primary {
    display: inline-block;
    background-color: var(--bleu-nuit);
    color: var(--blanc-pur);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--dore-clair);
    color: var(--bleu-nuit);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ================================
   RESPONSIVE - TABLETTE
   ================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .burger-menu {
        display: block;
    }
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .filters-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* ================================
   UTILITIES
   ================================ */
.hidden {
    display: none !important;
}