/* ============================
   DRUM Articles - Stylesheet
   ============================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #f4f4f4;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: #e67e22; text-decoration: none; transition: color .2s; }
a:hover { color: #d35400; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1.3; color: #222; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.header-top { background: #333; color: #aaa; font-size: .82rem; padding: 6px 0; }
.header-top a { color: #ccc; }
.header-top a:hover { color: #fff; }
.header-mid { padding: 20px 0; text-align: center; }
.logo img { height: 50px; width: auto; margin: 0 auto; }
.header-nav { background: #fff; border-top: 1px solid #eee; border-bottom: 2px solid #e67e22; }
.header-nav .container { display: flex; align-items: center; justify-content: center; }
.main-nav ul { display: flex; gap: 0; }
.main-nav a {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    color: #333;
    padding: 14px 16px;
    transition: background .2s, color .2s;
    letter-spacing: .3px;
}
.main-nav a:hover, .main-nav a.active { background: #e67e22; color: #fff; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: #333; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Hero */
.hero { text-align: center; padding: 40px 0 20px; }
.hero h1 { font-size: 2rem; margin-bottom: 8px; }
.hero h1 strong { color: #e67e22; }
.hero p { font-size: 1.05rem; color: #666; }

/* Cards Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin: 20px 0 40px;
}
.articles-grid--small { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.10); }
.card-image { display: block; overflow: hidden; aspect-ratio: 860/655; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 18px; }
.card-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.card-category a { color: #fff; }
.card-body time { display: block; font-size: .8rem; color: #999; margin: 6px 0; }
.card-body h2, .card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-body h2 a, .card-body h3 a { color: #222; }
.card-body h2 a:hover, .card-body h3 a:hover { color: #e67e22; }
.card-body p { font-size: .9rem; color: #666; line-height: 1.5; }

/* Article Single */
.article-single { max-width: 800px; margin: 0 auto; padding: 20px 0; }
.article-header { margin-bottom: 20px; }
.article-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.article-category a { color: #fff; }
.article-header h1 { font-size: 1.9rem; margin-bottom: 8px; }
.article-header time { font-size: .88rem; color: #999; }
.article-image { margin: 15px 0 25px; border-radius: 8px; overflow: hidden; }

.article-content { font-size: 1.02rem; line-height: 1.8; }
.article-content h2 { font-size: 1.4rem; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #eee; }
.article-content h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 12px 0; padding-left: 25px; }
.article-content li { margin-bottom: 6px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content strong { color: #222; }

/* Lire aussi */
.lire-aussi {
    background: #f9f9f9;
    border-left: 4px solid #e67e22;
    padding: 12px 18px;
    margin: 18px 0;
    border-radius: 0 4px 4px 0;
}
.lire-aussi strong { color: #333; }
.lire-aussi a { color: #222; font-weight: 700; }
.lire-aussi a:hover { color: #e67e22; }

/* Internal links box */
.article-internal-links {
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    margin: 30px 0;
    border-left: 4px solid #e67e22;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.article-internal-links h3 { font-size: 1.05rem; margin-bottom: 10px; }
.article-internal-links ul { list-style: none; padding: 0; }
.article-internal-links li { margin-bottom: 6px; }
.article-internal-links a { font-weight: 600; }
.article-internal-links a::before { content: '\2192 '; }

/* Related */
.related-articles { margin: 40px 0 20px; }
.related-articles h2 { font-size: 1.3rem; margin-bottom: 16px; text-align: center; }

/* Category */
.category-header { text-align: center; padding: 30px 0 15px; }
.category-header h1 { font-size: 1.9rem; margin-bottom: 8px; }
.category-description { font-size: 1.05rem; color: #666; max-width: 600px; margin: 0 auto 8px; }
.article-count { font-size: .85rem; color: #999; }

/* Breadcrumb */
.breadcrumb { font-size: .84rem; color: #999; padding: 15px 0; }
.breadcrumb a { color: #e67e22; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 25px 0 40px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border-radius: 4px; font-weight: 700; font-size: .9rem; }
.pagination a { background: #fff; color: #333; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.pagination a:hover { background: #e67e22; color: #fff; }
.pagination .current { background: #e67e22; color: #fff; }

/* Page content */
.page-content { max-width: 800px; margin: 25px auto; padding: 0 0 30px; }
.page-content h1 { font-size: 1.9rem; margin-bottom: 20px; }
.page-content h2 { font-size: 1.3rem; margin: 25px 0 10px; color: #e67e22; }
.page-content p { margin-bottom: 12px; line-height: 1.8; }
.page-content ul { padding-left: 20px; margin: 8px 0 16px; }
.page-content li { margin-bottom: 5px; }
.sitemap-section { margin-bottom: 20px; }
.sitemap-section ul { list-style: disc; padding-left: 25px; }

/* 404 */
.page-404 { text-align: center; padding: 50px 0; }
.page-404 h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-404 p { font-size: 1.1rem; color: #666; margin-bottom: 20px; }
.actions-404 { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 4px; font-weight: 700; background: #e67e22; color: #fff; }
.btn:hover { background: #d35400; color: #fff; }
.btn--outline { background: transparent; border: 2px solid #e67e22; color: #e67e22; }
.btn--outline:hover { background: #e67e22; color: #fff; }

/* Footer */
.site-footer { background: #333; color: #aaa; padding: 20px 0; margin-top: 40px; text-align: center; }
.footer-content { font-size: .9rem; }
.footer-content a { color: #ccc; }
.footer-content a:hover { color: #e67e22; }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 25px; right: 25px; width: 40px; height: 40px;
    background: #e67e22; color: #fff; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #d35400; color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .header-nav .container { justify-content: flex-start; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 6px 15px rgba(0,0,0,.08); z-index: 100; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; }
    .articles-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.5rem; }
    .article-header h1 { font-size: 1.4rem; }
    .actions-404 { flex-direction: column; align-items: center; }
}
