/* Blog Article Styles - Basé sur le design principal */

:root {
    /* Couleurs principales */
    --primary-green: #2d5a27;
    --secondary-green: #4a7c59;
    --accent-green: #7fb069;
    
    /* Couleurs naturelles */
    --primary-beige: #f5e6d3;
    --warm-beige: #e8d5b7;
    --earth-brown: #8b7355;
    --clay-brown: #a0896c;
    
    /* Couleurs neutres */
    --cream: #faf8f5;
    --warm-white: #ffffff;
    --charcoal: #2c2c2c;
    --medium-gray: #666666;
    --light-gray: #e5e5e5;
    
    /* Couleurs d'état */
    --success: #5cb85c;
    --warning: #f0ad4e;
    --error: #d9534f;
    --info: #5bc0de;
}

html {
    forced-color-adjust: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header simplifié pour articles */
.header {
    background: var(--warm-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-green);
}

.logo-certif {
    font-size: 0.8em;
    color: var(--earth-brown);
    font-weight: 600;
}

.contact-cta {
    background: var(--primary-green);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-cta:hover {
    background: var(--secondary-green);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--primary-beige);
    padding: 15px 0;
    font-size: 0.9em;
}

.breadcrumb a {
    color: var(--earth-brown);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-green);
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 30c-5 0-10 5-10 10s5 10 10 10 10-5 10-10-5-10-10-10zm-20 20c-3 0-5 2-5 5s2 5 5 5 5-2 5-5-2-5-5-5zm40 0c-3 0-5 2-5 5s2 5 5 5 5-2 5-5-2-5-5-5z" fill="white"/></svg>') repeat;
    opacity: 0.1;
}

.article-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.article-category {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.article-title {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.article-meta {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 30px;
}

.article-excerpt {
    font-size: 1.3em;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Article Content */
.article-wrapper {
    background: var(--warm-white);
    min-height: 100vh;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding: 80px 0;
    align-items: start;
}

.article-content {
    max-width: 800px;
}

/* Styles pour le contenu de l'article */
.article-content h1 {
    color: var(--primary-green);
    font-size: 2.5em;
    margin: 40px 0 25px;
    line-height: 1.3;
}

.article-content h2 {
    color: var(--primary-green);
    font-size: 2em;
    margin: 35px 0 20px;
    line-height: 1.4;
    border-bottom: 3px solid var(--primary-beige);
    padding-bottom: 10px;
}

.article-content h3 {
    color: var(--secondary-green);
    font-size: 1.5em;
    margin: 30px 0 15px;
    line-height: 1.4;
}

.article-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--charcoal);
}

.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.article-content blockquote {
    background: var(--primary-beige);
    border-left: 5px solid var(--accent-green);
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2em;
    border-radius: 0 10px 10px 0;
}

.article-content code {
    background: var(--light-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--primary-green);
}

.article-content pre {
    background: var(--charcoal);
    color: white;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content strong {
    color: var(--primary-green);
    font-weight: 600;
}

.article-content em {
    color: var(--secondary-green);
}

/* CTA dans l'article */
.article-cta {
    background: linear-gradient(135deg, var(--accent-green), var(--secondary-green));
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(127, 176, 105, 0.3);
}

.article-cta h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.article-cta p {
    color: white;
    opacity: 0.95;
    margin-bottom: 20px;
}

.article-cta-btn {
    background: white;
    color: var(--primary-green);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.article-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.article-image:hover {
    transform: scale(1.02);
}

.article-image-container {
    text-align: center;
    margin: 40px 0;
}

.image-caption {
    font-size: 0.9em;
    color: var(--medium-gray);
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .article-image {
        border-radius: 10px;
        margin: 20px 0;
    }
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--warm-white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 4px solid var(--accent-green);
}

.sidebar-title {
    color: var(--primary-green);
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.sidebar-contact {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    text-align: center;
}

.sidebar-contact .sidebar-title {
    color: white;
}

.sidebar-contact p {
    color: white;
    opacity: 0.95;
    margin-bottom: 20px;
}

.sidebar-contact-btn {
    background: white;
    color: var(--primary-green);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.sidebar-contact-btn:hover {
    transform: translateY(-2px);
}

.sidebar-toc ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-toc li {
    margin-bottom: 10px;
}

.sidebar-toc a {
    color: var(--earth-brown);
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-toc a:hover {
    background: var(--primary-beige);
    color: var(--primary-green);
    transform: translateX(5px);
}
.sidebar-toc a.active {
    background: var(--primary-beige);
    color: var(--primary-green);
    transform: translateX(5px);
    font-weight: 600;
}

/* Styles pour la section sources */
.sources-section {
    background: var(--warm-white);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 4px solid var(--secondary-green);
}

.sources-section h3 {
    color: var(--primary-green);
    font-size: 1.3em;
    margin: 25px 0 15px;
    font-weight: 600;
}

.sources-section h3:first-child {
    margin-top: 0;
}

.sources-section ul {
    margin-bottom: 25px;
}

.sources-section li {
    margin-bottom: 15px;
    padding: 12px;
    background: var(--primary-beige);
    border-radius: 8px;
    line-height: 1.6;
}

.sources-section li strong {
    color: var(--primary-green);
}

.sources-section li em {
    color: var(--secondary-green);
}

.sources-section li a::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    mask-size: contain;
    margin-right: 5px;
    vertical-align: middle;
    transition: background 0.3s ease;
}

.sources-section li a:hover::before {
    background: var(--primary-green);
}

/* Amélioration des blockquotes */
.article-content blockquote {
    position: relative;
    font-size: 1.1em;
}

.article-content blockquote::before {
    content: "💡";
    position: absolute;
    left: -10px;
    top: -5px;
    font-size: 1.5em;
}

/* Effet hover sur les CTA */
.article-cta {
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.article-cta:hover::before {
    left: 100%;
}

.related-articles {
    list-style: none;
    padding-left: 0;
}

.related-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted var(--light-gray);
}

.related-articles li:last-child {
    border-bottom: none;
}

.related-articles a {
    color: var(--earth-brown);
    text-decoration: none;
    font-weight: 500;
}

.related-articles a:hover {
    color: var(--primary-green);
}

/* Footer CTA */
.footer-cta {
    background: var(--primary-green);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.footer-cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.footer-cta p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary-green);
    padding: 18px 35px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-green);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }
    
    .article-title {
        font-size: 2.2em;
    }
    
    .article-content h1 {
        font-size: 2em;
    }
    
    .article-content h2 {
        font-size: 1.6em;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-cta {
        display: none;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
}

/* Mobile CTA fixe */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-green);
    padding: 15px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: flex;
        gap: 10px;
    }
    
    .mobile-cta a {
        flex: 1;
        text-align: center;
        padding: 12px;
        background: white;
        color: var(--primary-green);
        text-decoration: none;
        border-radius: 25px;
        font-weight: 600;
    }
}

/* Animation de scroll pour les ancres */
html {
    scroll-behavior: smooth;
}

/* Amélioration de la lisibilité */
.article-content {
    text-align: justify;
}

@media (max-width: 600px) {
    .article-content {
        text-align: left;
    }
}

/* Force l'affichage du hamburger sur mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        cursor: pointer !important;
        padding: 8px !important;
        z-index: 1001 !important;
        position: relative !important;
        background: none !important;
        border: none !important;
        width: 40px !important;
        height: 40px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hamburger span {
        width: 25px !important;
        height: 3px !important;
        background: var(--primary-green) !important;
        margin: 2px 0 !important;
        transition: all 0.3s ease !important;
        border-radius: 2px !important;
        display: block !important;
    }

    /* Menu mobile plein écran */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100vw !important;
        height: 100vh !important;
        background: var(--warm-white) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 40px !important;
        transition: left 0.3s ease !important;
        z-index: 1000 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-menu a {
        font-size: 1.5em !important;
        font-weight: 600 !important;
        color: var(--charcoal) !important;
        padding: 15px 30px !important;
        border-radius: 12px !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        display: block !important;
        min-width: 200px !important;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary-beige) !important;
        color: var(--primary-green) !important;
    }

    .nav-menu a.active::after {
        display: none !important;
    }

    .cta-header {
        display: none !important;
    }
}

/* Correction spécifique hauteur menu (override mobile-responsive.css) */
@media (max-width: 414px) {
    .nav-menu.active {
        max-height: 100vh !important;
        height: 100vh !important;
        overflow-y: auto !important;
    }
    
    .nav-menu {
        max-height: 0 !important;
        height: 100vh !important;
    }
}

/* iPhone SE et petits écrans */
@media (max-width: 375px) {
    .hamburger {
        width: 32px !important;
        height: 32px !important;
        padding: 5px !important;
    }

    .hamburger span {
        width: 20px !important;
        height: 2px !important;
    }

    .nav-menu {
        gap: 25px !important;
    }

    .nav-menu a {
        font-size: 1.2em !important;
        min-width: 160px !important;
    }
}