/* Gabarit commun des articles du blog (inclus par inc/article.php). */
    /* ── Palette locale (restaurée) : cette page sombre redéfinit des variables
   portant le même nom que la palette globale (--text, --border…) avec des
   valeurs opposées. Sans ce bloc, var(--text) devient du texte foncé sur
   fond sombre. ── */
:root {
  --navy: #060B16; --navy-card: #0C1222; --navy-light: #111A2E;
  --accent: #6C8AFF; --accent-dark: #4059DB; --accent-glow: rgba(108,138,255,.15);
  --green: #22C55E; --orange: #F59E0B; --red: #EF4444;
  --white: #FFF; --off-white: #E2E5ED; --gray: #7A8299; --text: #C8CDD8; --text-bright: #F1F3F7;
  --r: 12px; --r-lg: 16px; --max-w: 1200px;
  --border: rgba(255,255,255,.06);
}
/* ── Fond de page (restauré : rc.css définit un fond blanc par défaut,
   cette page doit garder son propre fond) ── */
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: #060B16; color: #C8CDD8; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* NAV */

/* HERO */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.hero-label { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(64,89,219,.2); padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.hero .container { text-align: center; }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.15; color: var(--white); margin-bottom: 20px; text-align: center; }
.hero h1 .hl { color: var(--accent); display: block; margin-top: 4px; }
.hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-author { display: flex; align-items: center; gap: 10px; }
.hero-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(64,89,219,.3); }
.hero-author-name { font-size: .85rem; font-weight: 600; color: var(--white); }
.hero-meta-dot { width: 4px; height: 4px; background: var(--gray); border-radius: 50%; }
.hero-meta-item { font-size: .78rem; color: var(--gray); }
.hero-image { margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.hero-image .img-placeholder { width: 100%; aspect-ratio: 21/9; background: var(--navy-light); display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: .85rem; gap: 8px; }
.hero-image .img-placeholder svg { width: 20px; height: 20px; opacity: .4; }

/* LAYOUT */
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0 80px; }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-label { font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sidebar-label svg { width: 14px; height: 14px; }
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 2px; }
.sidebar-nav a { display: block; padding: 8px 0 8px 16px; font-size: .8rem; color: var(--gray); transition: all .2s; border-radius: 8px; padding-left: 12px; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--accent); background: rgba(64,89,219,.08); }

/* CONTENT */
.article-content p { font-size: .95rem; color: var(--text); line-height: 1.85; margin-bottom: 20px; }
.article-content h2 { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--white); margin: 48px 0 16px; line-height: 1.2; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text-bright); margin: 32px 0 12px; line-height: 1.3; }
.article-content strong { color: var(--text-bright); }
.article-content p a, .article-content li a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* SECTION DIVIDER */

/* TAKEAWAY */
.takeaway { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 24px; margin: 28px 0; }
.takeaway-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.takeaway-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); padding: 4px 12px; border-radius: 100px; }
.takeaway-badge svg { width: 12px; height: 12px; }
.takeaway ul { list-style: none; }
.takeaway li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text); padding: 6px 0; }
.takeaway li::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }

/* QUOTE */
.quote-block { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; margin: 32px 0; }
.quote-marks { font-family: 'Oswald', sans-serif; font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 8px; opacity: .6; }
.quote-block blockquote { font-size: 1.05rem; font-weight: 500; color: var(--white); font-style: italic; line-height: 1.6; margin-bottom: 12px; }
.quote-block cite { font-size: .78rem; color: var(--accent); font-style: normal; font-weight: 600; }

/* CHECKLIST */
.checklist { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 24px; margin: 24px 0; }
.checklist-title { font-family: 'Oswald', sans-serif; font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.checklist ul { list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text); padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.checklist li:last-child { border-bottom: none; }
.checklist li .check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(64,89,219,.4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; color: var(--green); font-size: .7rem; }

/* SOURCE CARD */
.source-card { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 20px; margin: 20px 0; display: flex; align-items: flex-start; gap: 12px; }
.source-card-icon { width: 32px; height: 32px; background: var(--accent-glow); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.source-card-icon svg { width: 16px; height: 16px; color: var(--accent); }
.source-card-text { font-size: .82rem; color: var(--gray); line-height: 1.5; }
.source-card-text strong { color: var(--text-bright); }
.source-card-text a { color: var(--accent); font-weight: 600; }
.source-card-text a:hover { text-decoration: underline; }

/* IMAGE PLACEHOLDER */
.img-block { border-radius: var(--r); overflow: hidden; margin: 28px 0; border: 1px solid var(--border); }
.img-block .placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-card) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--gray); }
.img-block .placeholder svg { width: 32px; height: 32px; opacity: .3; }
.img-block .placeholder span { font-size: .78rem; opacity: .6; }
.img-block img { width: 100%; height: auto; display: block; object-fit: cover; }
.img-block figcaption { padding: 10px 16px; font-size: .75rem; color: var(--gray); background: var(--navy-card); border-top: 1px solid var(--border); }

/* INLINE CTA */
.inline-cta { background: var(--navy-card); border: 1px solid rgba(64,89,219,.15); border-radius: var(--r); padding: 28px; text-align: center; margin: 36px 0; }
.inline-cta p { font-size: .88rem; color: var(--gray); margin-bottom: 16px !important; }
.inline-cta p strong { color: var(--white); }
.inline-cta .btn { font-size: .82rem; padding: 10px 22px; }
/* AUTHOR CARD */

/* CTA BANNER */
.cta-banner { background: linear-gradient(135deg, #0D1530 0%, #131B3A 50%, #0D1530 100%); border-radius: var(--r-lg); padding: 56px 40px; text-align: center; margin: 0 0 64px; position: relative; overflow: hidden; border: 1px solid var(--border); }
.cta-banner::before { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(64,89,219,.1) 0%, transparent 60%); pointer-events: none; }
.cta-banner-title { font-family: 'Oswald', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--white); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-banner-title span { color: var(--accent); }
.cta-banner-sub { font-size: .88rem; color: var(--gray); margin-bottom: 28px; max-width: 50ch; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-banner-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
/* FOOTER */

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 1.7rem; }
  .cta-banner { padding: 40px 24px; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
}
  
/* ── Styles restaurés (retirés par erreur lors de la centralisation) ── */
.mobile-menu a:hover { color: var(--accent); }
/* SECTION DIVIDER */
.section-divider { display: flex; align-items: center; gap: 16px; margin: 56px 0 24px; padding: 20px 0; border-top: 1px solid var(--border); }
.section-divider-num { width: 44px; height: 44px; background: var(--accent); color: #fff; font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-divider-text { font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--white); text-transform: uppercase; line-height: 1.2; }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(64,89,219,.3); flex-shrink: 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-left svg { width: 22px; height: 22px; color: var(--accent); }
.footer-left span { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .9rem; color: var(--white); }
.footer-center { display: flex; gap: 24px; }
.footer-center a { font-size: .78rem; color: var(--gray); transition: color .2s; }
.footer-center a:hover { color: var(--white); }
.footer-right { display: flex; gap: 10px; }
.footer-right a { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: var(--gray); transition: all .2s; }
.footer-right a:hover { background: var(--accent); color: #fff; }
.footer-right a svg { width: 14px; height: 14px; }
.footer-copy { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .72rem; color: rgba(255,255,255,.25); }
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-center { flex-wrap: wrap; justify-content: center; }
}

/* TABLEAU DE SÉANCES (une ligne par exercice, défilement horizontal sur téléphone) */
.week-table { overflow-x: auto; margin: 20px 0 28px; border: 1px solid var(--border); border-radius: var(--r); }
.week-table table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.week-table caption { text-align: left; padding: 14px 16px 6px; font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white); background: var(--navy-card); }
.week-table th, .week-table td { padding: 10px 16px; text-align: left; border-top: 1px solid var(--border); }
.week-table th { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); font-weight: 600; background: var(--navy-card); }
.week-table td { color: var(--text); }
.week-table td:first-child { color: var(--text-bright); font-weight: 500; }
@media (max-width: 600px) {
  .week-table table { font-size: .8rem; }
  .week-table th, .week-table td { padding: 9px 10px; }
  .week-table th { letter-spacing: .04em; }
}
