/* --- VARIABLES --- */
:root {
    --primary-color: #2C5370;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    
    /* Typographie */
    --font-heading: 'Merriweather', serif; 
    --font-body: 'Inter', sans-serif;
}

/* Base */
.article-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-body);
    color: var(--text-color);
}

/* 1. HEADER (Alignement Gauche) */
.article-header-block {
    text-align: left; /* Alignement GAUCHE */
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.breadcrumb {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    font-weight: 600;
}
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb .cat { color: var(--primary-color); }
.breadcrumb .sep { margin: 0 5px; }

.main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    color: #111;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: flex-start; /* Alignement GAUCHE */
    gap: 25px;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap; /* Pour le mobile */
}

.meta-item i { margin-right: 6px; color: #999; }
.updated-date { color: var(--primary-color); font-style: italic; }

/* 2. IMAGE */
.article-featured-image {
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
}
.article-featured-image img { width: 100%; height: auto; display: block; }

/* 3. LAYOUT (Contenu | Ligne | Sidebar) */
.article-content-wrapper {
    display: grid;
    /* 1fr (texte) + 1px (ligne) + 200px (sidebar) */
    grid-template-columns: 1fr 1px 200px; 
    gap: 40px;
    margin-bottom: 60px;
}

/* Diviseur Vertical */
.vertical-divider {
    background-color: var(--border-color);
    width: 1px;
    height: 100%;
}

/* Corps du texte */
.article-body {
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    color: #222;
}
.article-body p { margin-bottom: 25px; }
.article-body .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #444;
    font-style: italic;
    margin-bottom: 30px;
}
.article-body h2 { 
    font-family: var(--font-heading); 
    font-size: 1.8rem; 
    margin-top: 40px; 
    margin-bottom: 20px; 
}
.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-top: 30px;
    color: #333;
}
.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-family: var(--font-heading);
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 20px;
}

/* 4. SIDEBAR PARTAGE (Nouveau Design) */
.share-sidebar {
    height: 100%;
}

.sticky-widget {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 10px 0;
    font-weight: 700;
}

/* Boutons Partage (Ligne complète : Icône + Texte) */
.share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 0;
    width: 100%;
    font-family: var(--font-body);
}

.icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color); /* Couleur Bleu Ideal DIY */
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.share-row:hover .icon-wrap {
    background: var(--primary-color);
    color: #fff;
}

.share-row:hover .label {
    color: var(--primary-color);
}

.copy-feedback {
    font-size: 0.8rem;
    color: #27ae60;
    opacity: 0;
    transition: opacity 0.3s;
    margin-top: 5px;
    font-weight: 600;
}
.copy-feedback.show { opacity: 1; }

/* 5. Author Box */
.author-box {
    background: #f4f6f8;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 60px auto;
}

.author-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 5px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.author-expertise {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.author-info p {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* 6. Articles Similaires */
.related-posts {
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    margin-top: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #111;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    display: flex;
    flex-direction: column;
}

.related-thumb {
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #eee;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-thumb img { transform: scale(1.05); }

.meta-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.related-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.related-card h4 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.related-card:hover h4 a { color: var(--primary-color); }

.related-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* --- MOBILE FRIENDLY (Media Queries) --- */
@media (max-width: 900px) {
    /* Layout Colonne Unique */
    .article-content-wrapper {
        display: flex;
        flex-direction: column;
    }

    /* Cacher ligne verticale */
    .vertical-divider { display: none; }

    /* Sidebar passe en BAS */
    .share-sidebar {
        order: 2; /* Après le contenu */
        border-top: 1px solid var(--border-color);
        padding-top: 30px;
        margin-top: 30px;
    }

    .sticky-widget {
        position: static;
        flex-direction: row; /* Horizontal */
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 10px;
    }
    
    .share-header {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    /* Boutons compacts sur mobile */
    .share-row {
        width: auto;
        background: #f9f9f9;
        padding: 8px 12px;
        border-radius: 20px;
    }
    .icon-wrap { width: 24px; height: 24px; background: transparent; font-size: 1.1rem; }
    
    /* Autres ajustements */
    .main-title { font-size: 2rem; }
    .author-box { flex-direction: column; text-align: center; gap: 15px; }
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    /* Sur très petit écran, on cache les labels partage, garde icônes */
    .share-row .label { display: none; }
    .share-row { padding: 0; background: none; }
    .icon-wrap { width: 40px; height: 40px; background: #f0f2f5; font-size: 1.2rem; }
}
