/* ================================
   VARIABLES CSS - Charte Graphique Clair&Net
   ================================ */
:root {
    /* Couleurs principales */
    --bleu-nuit: #0E2954;
    --dore-clair: #E0C097;
    --blanc-pur: #FFFFFF;
    --noir-profond: #000000;
    
    /* Couleurs secondaires et nuances */
    --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.8;
    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;
}

a:hover {
    color: var(--dore-clair);
}

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

.container-article {
    max-width: 860px;
    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);
}

/* ================================
   BREADCRUMB
   ================================ */
.breadcrumb {
    background-color: var(--gris-clair);
    padding: var(--spacing-sm) 0;
}

.breadcrumb-link {
    font-size: 0.9rem;
    color: var(--gris-leger);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-link:hover {
    color: var(--bleu-nuit);
}

/* ================================
   ARTICLE - HEADER
   ================================ */
.article-main {
    background-color: var(--blanc-pur);
    padding: var(--spacing-lg) 0;
}

.article-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--gris-leger);
}

.article-category {
    background-color: var(--dore-clair);
    color: var(--bleu-nuit);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.article-date,
.article-reading-time {
    color: var(--gris-leger);
}

.article-title {
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--bleu-nuit);
    margin: var(--spacing-md) 0;
}

.article-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gris-leger);
    max-width: 720px;
    margin: 0 auto;
}

/* ================================
   ARTICLE - HERO IMAGE
   ================================ */
.article-hero {
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-hero-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #1a3d6f 100%);
    position: relative;
}

.article-hero-image::before {
    content: '🌐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    opacity: 0.2;
}

/* ================================
   ARTICLE - CONTENU
   ================================ */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gris-texte);
}

.article-content h2 {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--bleu-nuit);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    line-height: 1.3;
}

.article-content h3 {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--bleu-nuit);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.article-content h4 {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--bleu-nuit);
    margin: var(--spacing-sm) 0;
}

.article-content p {
    margin-bottom: var(--spacing-md);
}

.article-content strong {
    color: var(--bleu-nuit);
    font-weight: 600;
}

.article-section {
    margin-bottom: var(--spacing-xl);
}

/* ================================
   LISTES
   ================================ */
.article-list {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-md);
}

.article-list li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-xs);
}

.article-list li::marker {
    color: var(--dore-clair);
    font-size: 1.2em;
}

/* ================================
   BOÎTES DE MISE EN AVANT
   ================================ */
.intro-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--dore-clair);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin: var(--spacing-lg) 0;
}

.highlight-box {
    background-color: #fff8f0;
    border: 2px solid var(--dore-clair);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.highlight-box p {
    margin: 0;
    color: var(--bleu-nuit);
}

/* ================================
   CALL-TO-ACTION BOXES
   ================================ */
.cta-box {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #1a3d6f 100%);
    color: var(--blanc-pur);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-lg);
}

.cta-box h3 {
    color: var(--blanc-pur);
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.final-cta {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #1a3d6f 100%);
    color: var(--blanc-pur);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    text-align: center;
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-lg);
}

.final-cta h3 {
    color: var(--blanc-pur);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

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

.cta-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
}

/* ================================
   BOUTONS
   ================================ */
.btn-primary {
    display: inline-block;
    background-color: var(--dore-clair);
    color: var(--bleu-nuit);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

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

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

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

/* ================================
   TABLEAU DE COMPARAISON
   ================================ */
.comparison-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.comparison-item {
    background-color: var(--gris-clair);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--gris-moyen);
}

.comparison-item.highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 2px solid var(--dore-clair);
    box-shadow: var(--shadow-md);
}

.comparison-item h4 {
    color: var(--bleu-nuit);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.comparison-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dore-clair);
    font-weight: bold;
}

.comparison-item.highlight li::before {
    color: var(--bleu-nuit);
}

/* ================================
   SECTION CONCLUSION
   ================================ */
.conclusion-section {
    border-top: 3px solid var(--dore-clair);
    padding-top: var(--spacing-lg);
}

/* ================================
   FAQ SECTION
   ================================ */
.faq-section {
    background-color: var(--gris-clair);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.faq-item {
    background-color: var(--blanc-pur);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--blanc-pur);
    border: none;
    text-align: left;
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--bleu-nuit);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--dore-clair);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: var(--spacing-md);
    border-top: 1px solid var(--gris-moyen);
}

.faq-answer p {
    color: var(--gris-texte);
    line-height: 1.7;
}

/* ================================
   ARTICLES LIÉS
   ================================ */
.related-articles {
    margin: var(--spacing-xl) 0;
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--gris-moyen);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.related-card {
    background-color: var(--blanc-pur);
    border: 1px solid var(--gris-moyen);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--dore-clair);
}

.related-category {
    display: inline-block;
    background-color: var(--gris-clair);
    color: var(--bleu-nuit);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.related-card h3 {
    font-size: 1.2rem;
    color: var(--bleu-nuit);
    margin: var(--spacing-sm) 0;
}

.related-card p {
    color: var(--gris-leger);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.related-link {
    color: var(--dore-clair);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.related-link:hover {
    color: var(--bleu-nuit);
}


/* ================================
   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;
    }
}


/* ================================
   RESPONSIVE - TABLET
   ================================ */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-hero-image {
        height: 300px;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: var(--spacing-sm);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-subtitle {
        font-size: 1rem;
    }
    
    .article-hero-image {
        height: 250px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .nav {
        display: none; /* Pour mobile, implémentez un menu burger */
    }
    
    .final-cta h3 {
        font-size: 1.5rem;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ANIMATIONS & TRANSITIONS
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-section {
    animation: fadeIn 0.6s ease-out;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .header,
    .breadcrumb,
    .cta-box,
    .final-cta,
    .related-articles,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .article-title {
        font-size: 24pt;
    }
}