/* Article Page Styles */
.article-container {
    min-height: 100vh;
}

/* Styles supprimés car en conflit avec blog.css */

.breadcrumb {
    margin-bottom: 2rem;
    text-align: left;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-hover);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-date,
.article-category,
.article-read-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-category {
    color: var(--accent-color);
    font-weight: 600;
}

/* Styles supprimés car en conflit avec blog.css */

/* Styles supprimés car en conflit avec blog.css */

.article-content {
    padding: 4rem 2rem;
}

/* L’illustration d’article est portée par background-image sur .article-header (voir générateur).
   Ne pas dupliquer avec une <img> dans le hero — masquer les anciens blocs .article-image résiduels. */
.article-page .article-header .article-image {
    display: none !important;
}

.article-image {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* En arrière-plan */
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--light-gray);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.content-wrapper h2 {
    color: var(--primary-color);
    margin: 3rem 0 1.5rem 0;
    font-size: 1.8rem;
}

.content-wrapper ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.article-cta {
    background: var(--section-alt-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.related-articles {
    background: var(--section-alt-bg);
    padding: 4rem 2rem;
}

.related-articles h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-gray);
}

.related-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--light-gray);
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.related-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 6rem 1rem 3rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-content {
        padding: 2rem 1rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .content-wrapper p {
        font-size: 1rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
} 

/* Thème DictoQuest pour les pages article statiques */
.article-page .article-header {
    background: linear-gradient(160deg, rgba(46, 41, 68, 0.92) 0%, rgba(21, 54, 94, 0.86) 100%);
    margin-top: var(--nav-height);
}

.article-page .article-header::before {
    background: linear-gradient(160deg, rgba(31, 25, 56, 0.72) 0%, rgba(19, 44, 78, 0.68) 100%);
}

.article-page .article-header h1 {
    font-family: 'Cinzel Decorative', serif;
    /* Plancher 1,5rem : à 2rem, « APPLICATION » en capitales dépassait 320 px et se
       coupait au milieu du mot. Identique au-dessus de 760 px. */
    font-size: clamp(1.5rem, 4.2vw, 3rem);
    /* Un mot plus large que l'écran se coupe en français, avec son trait d'union. */
    -webkit-hyphens: auto;
    hyphens: auto;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.article-excerpt-wrapper {
    background: var(--parchment-light, #fffbef);
    padding: 1.75rem 2rem 0.25rem;
    border-bottom: 1px solid var(--parchment-dark, #e8d4a8);
}

.article-page .article-excerpt {
    font-family: 'Literata', Georgia, serif;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    font-style: normal; /* pas d'italique sur un passage long : il se lit moins bien */
    color: var(--ink-sepia, #4a3728);
    border-left: 3px solid var(--crimson, #8b1538);
    padding-left: 1rem;
    margin: 0 auto;
    max-width: 760px;
    line-height: 1.7;
}

.article-page .article-meta span {
    /* Fond sombre : sur la photo, le clair ne donnait que 3,6:1 (RGAA 3.2). */
    background: rgba(26, 18, 11, 0.55);
    border: 1px solid rgba(240, 221, 184, 0.35);
    color: #f6ecd9;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-page .article-meta .article-category {
    background: rgba(139, 21, 56, 0.18);
    border-color: rgba(139, 21, 56, 0.5);
    color: #ffdce7;
}

.article-page .article-content {
    padding: clamp(2rem, 4vw, 4rem) 2rem;
}

.article-page .content-wrapper {
    max-width: 840px;
    margin: 0 auto;
    background: rgba(255, 251, 239, 0.92);
    border: 1px solid var(--parchment-dark);
    border-radius: 14px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: 0 10px 30px var(--shadow-soft);
}

.article-page .content-wrapper p,
.article-page .content-wrapper li {
    color: var(--ink-sepia);
    font-family: 'Literata', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.75;
}

.article-page .content-wrapper h2,
.article-page .content-wrapper h3 {
    color: var(--crimson);
    font-family: 'Cinzel', serif;
}

.article-page .content-wrapper h2 {
    border-bottom: 1px solid rgba(139, 21, 56, 0.28);
    padding-bottom: 0.45rem;
}

.article-page .content-wrapper h3 {
    color: var(--crimson-dark);
}

.article-page .related-articles {
    background: linear-gradient(180deg, rgba(240, 221, 184, 0.36) 0%, rgba(232, 212, 168, 0.45) 100%);
}

.article-page .related-articles h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--royal-blue);
}

/* Lien retour liste du blog — sous le texte (pas de <nav> : le nav global site.css est position:fixed) */
.article-page .article-back-blog {
    position: static;
    width: 100%;
    max-width: 840px;
    margin: 1.5rem auto 0;
    padding: 0 0 0.25rem;
    text-align: center;
    clear: both;
}

.article-page .article-back-blog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--crimson);
    text-decoration: none;
    padding: 0.65rem 1.35rem;
    border: 2px solid rgba(139, 21, 56, 0.35);
    border-radius: 999px;
    background: rgba(255, 251, 239, 0.95);
    box-shadow: 0 4px 14px rgba(139, 21, 56, 0.12);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.article-page .article-back-blog-link:hover {
    background: var(--crimson);
    color: var(--parchment-light);
    border-color: var(--crimson);
    transform: translateY(-1px);
}

/* Un tableau d'article ne fait jamais défiler la page à 320 px (WCAG 1.4.10) :
   les cellules coupent leurs mots et resserrent leurs marges sur petit écran. */
.article-content table { max-width: 100%; }
.article-content th, .article-content td { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) {
    .article-content th, .article-content td { padding: .45rem !important; }
}

/* Sous 900 px, le menu du site n'est plus fixe : il occupe déjà sa hauteur dans la page.
   La marge qui le compensait laissait une bande vide de 124 à 136 px sous l'en-tête. */
@media (max-width: 900px) {
    .article-page .article-header { margin-top: 0; }
}

/* Captures d'écran dans les articles */
.article-figure { margin: 2rem 0; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--parchment-dark, #d8c7a3); }
.article-figure figcaption { margin-top: 0.5rem; font-size: 0.95rem; text-align: center; color: var(--text-light); }
