/* =====================================================================
   LA LOUPE — Média d'information professionnel
   Design : Broadsheet moderne, Couleurs RDC (Bleu, Jaune, Rouge, Blanc)
   Header : FIXE et toujours visible
   ===================================================================== */

/* --- Variables --- */
:root {
    /* Couleurs principales RDC 🇨🇩 */
    --rdc-blue: #0033A0;
    --rdc-yellow: #FCD116;
    --rdc-red: #CE1126;
    
    /* Couleurs UI dérivées */
    --blue-primary: #1d3557;
    --blue-accent: #0033A0;
    --blue-light: #457b9d;
    
    /* Fonds */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0f1f33;
    
    /* Textes */
    --text-main: #222222;
    --text-muted: #6c757d;
    
    /* Bordures */
    --border-color: #e0e0e0;
    
    /* Typographie */
    --font-sans: 'Roboto', 'Archivo', sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Transitions */
    --transition: 0.25s ease;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    
    /* Hauteur du header (sera ajustée par JS) */
    --header-height: 90px;
}

/* --- Mode Sombre --- */
[data-theme="dark"] {
    --bg-white: #121212;
    --bg-light: #1e1e1e;
    --bg-dark: #000000;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --blue-primary: #e0e0e0;
    --blue-accent: #457b9d;
    --blue-light: #6c9bc0;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
    font-size: 17px;
    /* ✅ Compensation pour le header fixe */
    padding-top: var(--header-height);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease, padding-top 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--rdc-red); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--blue-primary);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

/* --- Accessibilité --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--blue-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-fluid { padding: 0 15px; }

/* --- Utilitaires --- */
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }

/* =========================================
   BOUTONS
   ========================================= */
.default-btn, button, input[type="submit"] {
    background: var(--blue-accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border-radius: 4px;
}
.default-btn:hover, button:hover, input[type="submit"]:hover {
    background: var(--rdc-red);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* =========================================
   TOP BAR
   ========================================= */
.topbar {
    background: var(--blue-accent);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    /* Le topbar fait partie du header fixe, donc il est dans le flux normal */
    position: relative;
    z-index: 1001;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: #fff; margin-left: 15px; }
.topbar a:hover { color: var(--rdc-yellow); }

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.edition-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: capitalize;
}
.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    transition: color 0.2s;
}
.topbar-link:hover { color: var(--rdc-yellow); }

/* =========================================
   HEADER (Masthead) — FIXED & TOUJOURS VISIBLE
   ========================================= */
.masthead {
    background: var(--bg-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: none;
}

/* Ligne tricolore BLEU - JAUNE - ROUGE */
.masthead::after {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(to right,
        var(--rdc-blue) 0%,
        var(--rdc-blue) 33.33%,
        var(--rdc-yellow) 33.33%,
        var(--rdc-yellow) 66.66%,
        var(--rdc-red) 66.66%,
        var(--rdc-red) 100%
    );
    width: 100%;
}

.masthead-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

/* Hamburger */
.mh-left { display: flex; align-items: center; }
.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--blue-primary);
    transition: 0.3s;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo Central */
.nameplate { text-align: center; }
.nameplate a { display: block; }
.nameplate .the {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--rdc-red);
    margin-bottom: 2px;
}
.nameplate .word {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 0.9;
    color: var(--blue-primary);
    letter-spacing: -1px;
}
.nameplate .sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Logo AM-Tech */
.amtech-link {
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-right: 10px;
}
.amtech-link:hover { opacity: 1; }
.amtech-logo { height: 28px; width: auto; }
.logo-img { max-height: 50px; width: auto; display: inline-block; }

/* Kebab + Thème */
.mh-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue-primary);
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}
.theme-toggle:hover { background: var(--bg-light); color: var(--rdc-red); }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
:root:not([data-theme="dark"]) .sun-icon { display: block; }
:root:not([data-theme="dark"]) .moon-icon { display: none; }

/* Kebab Menu */
.kebab-menu { position: relative; }
.kebab-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--blue-primary);
    border-radius: 50%;
    transition: var(--transition);
}
.kebab-btn:hover { background: var(--bg-light); color: var(--rdc-red); }

.kebab-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    padding: 0.5rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: 0.2s;
    border-radius: 6px;
    border-top: 3px solid var(--rdc-yellow);
}
.kebab-dropdown.is-open {
    opacity: 1;
    transform: translateY(5px);
    pointer-events: auto;
}

.kebab-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.kebab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 4px;
    transition: var(--transition);
}
.kebab-item:hover { background: var(--bg-light); color: var(--rdc-red); }
.kebab-item svg, .kebab-item i { color: var(--text-muted); flex-shrink: 0; }
.kebab-item:hover svg, .kebab-item:hover i { color: var(--rdc-red); }

.kebab-divider { border: none; border-top: 1px solid var(--border-color); margin: 5px 0; }
.kebab-amtech { color: var(--blue-accent) !important; font-weight: 700 !important; }

/* =========================================
   MENU LATÉRAL (Sidebar Hamburger)
   ========================================= */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background: var(--bg-white);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 50px -30px rgba(0,0,0,0.5);
    overflow-y: auto;
    border-right: 4px solid var(--rdc-yellow);
}
.side-nav.is-open { transform: translateX(0); }

.side-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.side-nav-header .logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-primary);
}
.side-nav-close {
    background: none;
    border: none;
    color: var(--blue-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.side-nav-close:hover { color: var(--rdc-red); }

.side-nav-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.side-nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    padding: 0.6rem 0;
    transition: var(--transition);
}
.side-nav-links a:hover { color: var(--rdc-red); padding-left: 8px; }
.side-nav-separator {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
    list-style: none;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* =========================================
   BREAKING NEWS (Ticker)
   ========================================= */
.breaking-news-content {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.breaking-news-content > span {
    background: var(--rdc-red);
    color: #fff;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    border-radius: 2px;
}
.breaking-news-slider { flex: 1; padding-left: 15px; overflow: hidden; }
.breaking-news-slider .item p { margin: 0; font-size: 0.9rem; }
.breaking-news-slider a { color: var(--text-main); font-weight: 500; }
.breaking-news-slider a:hover { color: var(--rdc-red); }

/* =========================================
   SECTIONS & TITRES
   ========================================= */
.section-title {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--blue-primary);
    padding-bottom: 12px;
    position: relative;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--rdc-yellow);
}
.section-title h2 {
    font-size: 1.6rem;
    color: var(--blue-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

/* =========================================
   HERO (À la une)
   ========================================= */
.featured-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.featured-main {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 6px;
    transition: var(--transition);
    border-top: 4px solid var(--rdc-blue);
}
.featured-main:hover { box-shadow: var(--shadow-md); }
.featured-main img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}
.featured-main h2 { font-size: 1.8rem; margin-bottom: 10px; }
.featured-main h2 a { color: var(--blue-primary); }
.featured-main h2 a:hover { color: var(--rdc-red); }
.featured-main p { color: var(--text-muted); margin-bottom: 15px; }

.featured-side { display: flex; flex-direction: column; gap: 20px; }
.featured-side .side-article {
    display: flex;
    gap: 15px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 6px;
    transition: var(--transition);
    border-left: 3px solid var(--rdc-yellow);
}
.featured-side .side-article:hover { box-shadow: var(--shadow-sm); }
.featured-side .side-article img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}
.featured-side .side-content { flex: 1; }
.featured-side h3 { font-size: 1rem; margin: 5px 0 0; line-height: 1.3; }
.featured-side h3 a { color: var(--blue-primary); }
.featured-side h3 a:hover { color: var(--rdc-red); }
.featured-side .meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

.no-image-placeholder {
    width: 110px;
    height: 80px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
    border-radius: 4px;
}

/* =========================================
   GRILLE D'ARTICLES
   ========================================= */
.grid-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.single-blog-inner {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border-top: 3px solid var(--rdc-blue);
}
.single-blog-inner:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--rdc-red);
}
.single-blog-inner .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-light);
}
.single-blog-inner .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.single-blog-inner:hover .thumb img { transform: scale(1.05); }
.single-blog-inner .details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.single-blog-inner .details h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.single-blog-inner .details h4 a { color: var(--blue-primary); }
.single-blog-inner .details h4 a:hover { color: var(--rdc-red); }
.single-blog-inner .details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex: 1;
}

.read-more-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rdc-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    display: inline-block;
}
.read-more-btn:hover { color: var(--blue-primary); }

/* =========================================
   BADGE CATÉGORIE
   ========================================= */
.genre-badge {
    display: inline-block;
    background: var(--rdc-blue);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
    background: var(--bg-light);
    padding: 25px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 3px solid var(--rdc-yellow);
}
.stats-bar .stat-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.stats-bar .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rdc-blue);
    margin-bottom: 5px;
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.pagination-area .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
}
.pagination-area .page-numbers:hover {
    background: var(--bg-light);
    border-color: var(--rdc-red);
    color: var(--rdc-red);
}
.pagination-area .page-numbers.current {
    background: var(--rdc-blue);
    border-color: var(--rdc-blue);
    color: #fff;
    font-weight: 700;
}
.pagination-area .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    color: var(--text-muted);
}

/* =========================================
   ARTICLE PAGE
   ========================================= */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}
.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}
.article-content p { margin-bottom: 1.5rem; }
.article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--blue-primary);
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}
.article-content blockquote {
    border-left: 4px solid var(--rdc-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    border-left: 4px solid var(--rdc-yellow);
}
.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rdc-blue);
    flex-shrink: 0;
}
.author-box .author-info h4 { margin: 0 0 5px; color: var(--blue-primary); font-size: 1.1rem; }
.author-box .author-role { font-size: 0.85rem; color: var(--rdc-red); font-weight: 600; margin-bottom: 10px; text-transform: capitalize; }
.author-box .author-bio { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 10px; font-style: italic; line-height: 1.5; }
.author-box .author-contact { display: flex; gap: 15px; font-size: 0.85rem; flex-wrap: wrap; }
.author-box .author-contact a { color: var(--rdc-blue); display: inline-flex; align-items: center; gap: 5px; }
.author-box .author-contact a:hover { color: var(--rdc-red); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget h4 {
    border-bottom: 2px solid var(--rdc-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    position: relative;
}
.sidebar-widget h4::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--rdc-yellow);
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget li img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sidebar-widget li h5 { font-size: 0.9rem; margin: 0 0 5px; line-height: 1.3; }
.sidebar-widget li h5 a { color: var(--blue-primary); }
.sidebar-widget li h5 a:hover { color: var(--rdc-red); }
.sidebar-widget li small { color: var(--text-muted); font-size: 0.75rem; }

/* =========================================
   FOOTER
   ========================================= */
.footer-area {
    background: var(--blue-primary);
    color: #fff;
    margin-top: 60px;
    border-top: 4px solid;
    border-image: linear-gradient(to right, var(--rdc-blue), var(--rdc-yellow), var(--rdc-red)) 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 50px 0;
}
.footer-col-brand { padding-right: 20px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.footer-logo img { max-height: 50px; width: auto; }
.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.footer-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--rdc-yellow);
}
.footer-desc { color: #b8c0cb; font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-desc strong { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #b8c0cb;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--rdc-red); color: #fff; transform: translateY(-2px); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b8c0cb; font-size: 0.9rem; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--rdc-yellow); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #b8c0cb;
    font-size: 0.9rem;
}
.footer-contact li svg { flex-shrink: 0; color: var(--rdc-yellow); margin-top: 3px; }
.footer-contact li a { color: #b8c0cb; transition: var(--transition); }
.footer-contact li a:hover { color: #fff; }
.footer-newsletter { display: flex; gap: 5px; margin-top: 10px; }
.footer-newsletter input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 4px 0 0 4px;
    font-size: 0.85rem;
}
.footer-newsletter input::placeholder { color: #8a929d; }
.footer-newsletter input:focus { outline: none; border-color: var(--rdc-yellow); }
.footer-newsletter button {
    padding: 10px 14px;
    background: var(--rdc-red);
    border: none;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-newsletter button:hover { background: var(--rdc-yellow); color: #000; }
.footer-bottom {
    background: var(--bg-dark);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.copyright { color: #8a929d; font-size: 0.8rem; }
.copyright strong { color: #fff; }
.footer-credit { color: #8a929d; font-size: 0.8rem; text-align: right; }
.footer-credit a { color: var(--rdc-yellow); font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* =========================================
   GO TOP
   ========================================= */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--rdc-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.go-top.active { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--rdc-yellow); color: #000; transform: translateY(-3px); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .featured-row { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .nameplate .word { font-size: 2rem; }
    .grid-articles { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --header-height: 80px; }
    .grid-articles { grid-template-columns: 1fr; }
    .featured-side .side-article img { width: 80px; height: 60px; }
    .topbar .container { flex-direction: column; gap: 5px; text-align: center; }
    .topbar a { margin-left: 0; }
    .topbar-left, .topbar-right { flex-wrap: wrap; justify-content: center; }
    .footer-social { justify-content: center; margin-top: 15px; }
    .copyright { text-align: center; }
    .footer-credit { text-align: center; }
    .amtech-link { display: none; }
}

@media (max-width: 600px) {
    :root { --header-height: 70px; }
    .masthead-inner { padding: 8px 12px; }
    .nameplate .word { font-size: 1.6rem; }
    .nameplate .the { font-size: 0.6rem; letter-spacing: 0.2em; }
    .nameplate .sub { font-size: 0.5rem; }
    .section-title h2 { font-size: 1.3rem; }
    .author-box { flex-direction: column; text-align: center; align-items: center; }
    .author-box .author-contact { justify-content: center; }
    .breaking-news-content { flex-direction: column; gap: 5px; }
    .breaking-news-content > span { margin-left: 0; }
    .breaking-news-slider { padding-left: 0; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .topbar { font-size: 11px; padding: 6px 0; }
    .topbar-right { flex-direction: column; gap: 3px; }
}

/* =========================================
   PRINT
   ========================================= */
@media print {
    .masthead, .topbar, .breaking-news-content, .sidebar, .footer-area, .go-top, .share-buttons { display: none; }
    .article-layout { grid-template-columns: 1fr; }
    body { padding-top: 0; }
}

/* =========================================
   iOS FIX pour position: fixed
   ========================================= */
@supports (-webkit-touch-callout: none) {
    .masthead {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}
/* =========================================
   PLAN DU SITE
   ========================================= */
.page-content h1 {
    color: var(--blue-primary);
    border-bottom: 2px solid var(--rdc-yellow);
}

.page-content .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-content .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
}

.page-content ul li a {
    transition: color 0.2s, padding-left 0.2s;
}

.page-content ul li a:hover {
    color: var(--rdc-red) !important;
    padding-left: 5px;
}

.page-content ul li a i {
    transition: transform 0.2s;
}

.page-content ul li a:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 767px) {
    .page-content h1 {
        font-size: 1.8rem;
    }
    .page-content .card-body h2 {
        font-size: 1.1rem;
    }
}
/* =========================================
   PAGES LÉGALES (mentions, confidentialité, à propos)
   ========================================= */
.page-content {
    padding: 40px 0;
    background: var(--bg-white);
}

.page-content h1 {
    color: var(--blue-primary);
    border-bottom: 3px solid var(--rdc-yellow);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.page-content h2 {
    color: var(--blue-primary);
    border-left: 4px solid var(--rdc-red);
    padding-left: 12px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    padding-left: 0;
    list-style: none;
}

.legal-content ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.legal-content ul li:last-child {
    border-bottom: none;
}

.legal-content a {
    color: var(--blue-accent);
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--rdc-red);
}

@media (max-width: 767px) {
    .page-content h1 {
        font-size: 1.8rem;
    }
    .page-content h2 {
        font-size: 1.15rem;
    }
    .legal-content {
        font-size: 0.95rem;
    }
}

/* =========================================
   PAGES LÉGALES
   ========================================= */
.page-content {
    padding: 40px 0;
    background: var(--bg-white);
}

.page-content h1 {
    color: var(--blue-primary);
    border-bottom: 3px solid var(--rdc-yellow);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.legal-content h2 {
    color: var(--blue-primary);
    border-left: 4px solid var(--rdc-red);
    padding-left: 12px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content a {
    color: var(--blue-accent);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--rdc-red);
}

@media (max-width: 767px) {
    .page-content h1 { font-size: 1.8rem; }
    .legal-content h2 { font-size: 1.15rem; }
    .legal-content { font-size: 0.95rem; }
}
/* =========================================
   PAGE CONTACT
   ========================================= */
.page-contact {
    padding: 40px 0;
    background: var(--bg-white);
}

.page-contact h1 {
    color: var(--blue-primary);
    border-bottom: 3px solid var(--rdc-yellow);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--blue-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

.contact-form .form-control {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-info-box a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-box a:hover {
    color: var(--rdc-red);
    text-decoration: underline;
}

/* Réseaux sociaux hover */
.contact-info-box a[style*="border-radius: 50%"]:hover {
    background: var(--rdc-red) !important;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 767px) {
    .page-contact h1 {
        font-size: 1.8rem;
    }
    .contact-info-box {
        padding: 20px !important;
    }
    .card-body {
        padding: 20px !important;
    }
}

/* =========================================
   BOUTONS AUTH (Connexion / Admin)
   ========================================= */
.btn-auth {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1.5px solid transparent;
    margin-right: 8px;
    font-family: var(--font-sans, 'Roboto', sans-serif);
}

.btn-auth i {
    font-size: 0.85rem;
}

/* Bouton Connexion (bleu, distinct) */
.btn-login {
    background: rgba(0, 51, 160, 0.06);
    color: var(--blue-primary, #1d3557);
    border-color: var(--blue-primary, #1d3557);
    box-shadow: 0 2px 6px rgba(0, 51, 160, 0.1);
}
.btn-login:hover {
    background: var(--blue-primary, #1d3557);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.25);
}

/* Bouton Admin (rouge, distinct) */
.btn-admin {
    background: var(--rdc-red, #CE1126);
    color: #fff;
    border-color: var(--rdc-red, #CE1126);
    box-shadow: 0 2px 6px rgba(206, 17, 38, 0.2);
}
.btn-admin:hover {
    background: #a30e1e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
}

/* Responsive : cacher le texte sur mobile */
@media (max-width: 767px) {
    .btn-text {
        display: none;
    }
    .btn-auth {
        padding: 8px 12px;
        margin-right: 5px;
    }
}

/* Le conteneur mh-right doit bien aligner tout */
.mh-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}