/* Reset et variables - Palette Vert + Or */
:root {
    --primary-color: #2d8659;
    --primary-dark: #1f5d3f;
    --primary-light: #4da878;
    --primary-darker: #154d33;
    --gold-color: #d4af37;
    --gold-dark: #b8941f;
    --gold-light: #e5c158;
    --accent-color: #d4af37;
    --text-dark: #1a1a1a;
    --text-medium: #444;
    --text-light: #666;
    --bg-light: #f5f7f6;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.14);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --gradient-primary: linear-gradient(135deg, #2d8659 0%, #1f5d3f 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    --gradient-green-gold: linear-gradient(135deg, #2d8659 0%, #d4af37 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

/* Container responsive */
.container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.top-bar {
    background: linear-gradient(90deg, #1a3a2a 0%, #2d5a3f 30%, #4a6b3a 60%, #6b7a3a 85%, #7a6b35 100%);
    padding: 7px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 4px;
    transition: color 0.3s, background 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
}

.top-bar a i {
    font-size: 0.68rem;
    opacity: 0.7;
}

.top-bar a:hover {
    color: var(--gold-color);
    background: rgba(255,255,255,0.08);
}

.top-bar .date-meteo {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar .date-meteo span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar .date-meteo i {
    color: var(--gold-color);
    font-size: 0.82rem;
}
/* ==============================
   FLASH INFO
   ============================== */
.flash-info {
    background: linear-gradient(90deg, #0f0f0f 0%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
    position: relative;
    z-index: 999;
}

.flash-info-content {
    display: flex;
    align-items: center;
    gap: 0;
    height: 42px;
    overflow: hidden;
}

.flash-label {
    background: var(--primary-dark);
    color: white;
    padding: 0 1.5rem;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.flash-live-dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-live 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.8);
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.flash-label-text {
    color: #ffffff;
    font-size: 0.7rem;
}

.flash-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    background: transparent;
}

.flash-ticker {
    position: relative;
    height: 100%;
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.flash-item {
    position: absolute;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    font-size: 0.82rem;
    color: #ffffff;
    font-weight: 400;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.flash-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.flash-separator {
    color: var(--gold-color);
    font-size: 1rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.flash-text {
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

.flash-item.active .flash-text:hover {
    color: var(--gold-color);
    transition: color 0.3s ease;
}

/* ==============================
   PARTNER BANNER
   ============================== */
.partners-section {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin-bottom: 0;
}

.partners-section .container {
    max-width: 100%;
    padding: 0;
}

.partners-banner {
    width: 100%;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
}

.partner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: var(--transition);
}

.partner-banner-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
    transition: var(--transition);
}

.partner-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.partners-banner:hover .partner-banner-image {
    transform: scale(1.02);
}

/* ==============================
   HEADER
   ============================== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
    min-height: 70px;
    position: relative;
}

/* Left: search */
.header-left {
    display: flex;
    align-items: center;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 16px;
    width: 100%;
    max-width: 260px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.header-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45,134,89,0.1);
}

.header-search .btn-search {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.header-search .btn-search:hover {
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
}
.header-search i {
    color: var(--text-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.header-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-dark);
    width: 100%;
}

.header-search-input::placeholder {
    color: var(--text-light);
    font-size: 0.82rem;
}

/* Center: logo */
.logo {
    text-align: center;
}

.logo a {
    display: inline-block;
}

.logo-img {
    max-height: 142px;
    max-width: 100%;
    width: auto;
    display: block;
    margin: 0 auto;
}

.logo-text {
    display: none;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.logo-text .logo-eco {
    color: var(--gold-color, #d4af37);
}
.logo-text .logo-logie {
    color: var(--primary-color, #2d8659);
}
.logo-text .logo-dotnet {
    color: #1565c0;
}

@media (max-width: 992px) {
    .logo .logo-img {
        display: none !important;
    }
    .logo .logo-text {
        display: inline-block !important;
    }
}

.logo-accent {
    color: var(--gold-color);
    font-weight: 800;
}

.tagline {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Right: infos + live button */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.header-infos {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.header-meteo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-meteo i {
    color: var(--gold-color);
    font-size: 0.9rem;
}

.header-bourse {
    color: var(--primary-dark);
    font-size: 0.82rem;
}

.header-bourse strong {
    font-weight: 700;
}

/* Live button */
.live-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: liveBlink 1s infinite;
    flex-shrink: 0;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.btn-search,
.btn-menu-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 0.6rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: 42px;
    height: 42px;
}

.btn-search:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(45,134,89,0.3);
}

/* Keep absolute position on hover */
.header-top > .btn-search:hover {
    transform: translateY(-50%);
}

/* Menu toggle - positioned right, hidden on desktop */
.btn-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.btn-menu-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%);
}

.btn-menu-toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.btn-menu-toggle:hover span {
    background: white;
}

/* ==============================
   NAVIGATION WITH SUBMENUS
   ============================== */
.main-nav {
    background: var(--primary-dark);
    padding: 0;
    border-top: 3px solid var(--gold-color);
}

/* Main nav list - NO overflow hidden so dropdowns can escape */
.main-nav ul,
.main-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.nav-list > li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-arrow {
    font-size: 0.55rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
    margin-left: 0.15rem;
}

.has-submenu:hover > .nav-link .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold-color);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-color);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* ---- Dropdown submenu ---- */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    min-width: 230px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 200;
    padding: 0.4rem 0;
    border-top: 3px solid var(--gold-color);
    /* Hidden by default */
    display: none;
}

/* Show on parent hover (desktop) */
.has-submenu:hover > .submenu {
    display: block;
    animation: submenuFadeIn 0.2s ease forwards;
}

@keyframes submenuFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.submenu li a {
    display: block;
    padding: 0.7rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--gold-color);
    padding-left: 1.5rem;
}

.submenu li + li {
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* ==============================
   MAIN SECTION (Hero + Sidebar)
   ============================== */
.main-section {
    padding: 2.5rem 0;
    background: var(--bg-light);
}

.main-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 120px;
}

.webtv-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold-color);
}

.webtv-widget-vod {
    border-top-color: #3498db;
}
.webtv-widget-vod .webtv-header i {
    color: #3498db;
}

.webtv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

.webtv-header i {
    color: var(--gold-color);
    margin-right: 0.5rem;
}

.live-indicator {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    animation: pulse 2s infinite;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.webtv-player {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.webtv-embed-inline {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.webtv-embed-inline iframe,
.webtv-embed-inline video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder-small {
    aspect-ratio: 16/9;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.75rem;
    min-height: 200px;
    width: 100%;
    position: relative;
}

.video-placeholder-small::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.video-placeholder-small i {
    font-size: 3.5rem;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.video-placeholder-small p {
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.webtv-info {
    padding: 0.85rem 1rem;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewers-count {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.watch-btn {
    background: var(--gold-color);
    color: var(--primary-dark);
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.watch-btn:hover {
    background: var(--gold-dark);
    transform: scale(1.05);
}

/* Popular Widget */
.popular-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.popular-widget h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.popular-widget h3 i {
    color: var(--gold-color);
    margin-right: 0.5rem;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.popular-item:hover {
    background: rgba(45, 134, 89, 0.06);
    border-color: rgba(45, 134, 89, 0.15);
    transform: translateX(4px);
}

.popular-number {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.popular-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.popular-views {
    font-size: 0.75rem;
    color: var(--text-light);
}

.popular-likes {
    font-size: 0.75rem;
    color: var(--text-light);
}

.popular-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0.5rem 0;
}

/* Main Column */
.main-column {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    width: 100%;
    overflow-x: hidden;
}

.section-header-inline {
    margin-bottom: 1.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 3px solid var(--gold-color);
}

.section-header-inline .section-title {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header-inline .section-title i {
    color: var(--gold-color);
}

/* Articles Slider */
.articles-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.slider-track {
    position: relative;
    min-height: 380px;
}

.slide-article {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.slide-article.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.slide-article-image {
    width: 100%;
    aspect-ratio: 16/8;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.slide-article-content .article-category {
    background: var(--gold-color);
    color: var(--primary-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.slide-article-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Slider navigation buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: var(--primary-dark);
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: background 0.3s, transform 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* Slider dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: var(--primary-dark);
}

/* Ad Banner */
.ad-banner {
    margin-top: 4.5rem;
    background: #f8f9fa;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    padding: 6px 0 4px;
    background: #f0f0f0;
    font-weight: 500;
}

.ad-content {
    padding: 0;
}

.ad-content a {
    display: block;
}

.ad-img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-placeholder {
    padding: 3.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.ad-placeholder i {
    font-size: 2rem;
    color: var(--border-color);
}

.ad-placeholder p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.ad-placeholder span {
    font-size: 0.72rem;
    color: #bbb;
}

/* Keep old main-article styles for compatibility */
.main-article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.main-article-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.main-article-content .article-category {
    background: var(--gold-color);
    color: var(--primary-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.85rem;
}

.main-article-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta i {
    color: var(--gold-color);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.65rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(45,134,89,0.25);
}

.read-more-btn:hover {
    background: var(--primary-darker);
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(45,134,89,0.35);
}

/* ==============================
   CONTENT SECTIONS
   ============================== */
.main-content {
    padding: 3rem 0 1rem;
}

.content-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 3px solid var(--gold-color);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.section-icon {
    font-size: 1.75rem;
    color: var(--gold-color);
}

.section-header .section-title {
    color: var(--text-dark);
    font-size: 1.75rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.view-all:hover {
    color: var(--gold-color);
    gap: 0.75rem;
    transform: translateX(3px);
}

/* ==============================
   ARTICLES GRID
   ============================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.article-card.featured-card {
    grid-column: span 1;
}

.article-card .article-image {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.article-card .article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
    transition: var(--transition);
}

.article-card:hover .article-image::after {
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.25) 100%);
}

.article-image {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover .image-overlay {
    opacity: 1;
}

.article-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Badge catégorie dans les détails de l'article — largeur fonction du contenu */
.article-meta-category-badge {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color, #2d8659);
    background: rgba(45, 134, 89, 0.12);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.article-meta-category-badge:hover {
    background: rgba(45, 134, 89, 0.2);
    color: var(--primary-color, #1f5d3f);
}
.article-meta-category-badge i {
    margin-right: 0.35rem;
}

.article-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-date,
.article-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.45;
    transition: color 0.3s ease;
}

.article-card:hover h3 {
    color: var(--primary-color);
}

.article-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.article-tags {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(45, 134, 89, 0.08);
    color: var(--primary-color);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(45, 134, 89, 0.15);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.article-stats {
    display: flex;
    gap: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: auto;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-stats i {
    color: var(--gold-color);
}

/* ==============================
   ARCHIVE SECTION
   ============================== */
.archive-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.archive-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(45, 134, 89, 0.04);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(45, 134, 89, 0.04);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.archive-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.archive-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.archive-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.92);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.archive-item:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-overlay i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-left: 3px;
}

.archive-type {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.archive-duration {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

.archive-info {
    padding: 1.1rem;
}

.archive-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    line-height: 1.45;
}

.archive-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.archive-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==============================
   SEARCH OVERLAY
   ============================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-box {
    transform: translateY(0);
}

.search-box input {
    width: 100%;
    border: 2px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.search-box-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #133326 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    max-height: 160px;
    width: 200px;
    filter: brightness(0) invert(1);
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 i {
    color: var(--gold-color);
    font-size: 0.85rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-color);
}

.footer-section h3 .logo-accent {
    color: var(--gold-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li > i {
    color: var(--gold-color);
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.footer-links a i {
    color: var(--gold-color);
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

.footer-links a:hover {
    color: var(--gold-color);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--gold-color);
    color: var(--primary-dark);
    border-color: var(--gold-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ==============================
   SCROLL TO TOP BUTTON
   ============================== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(45,134,89,0.35);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(45,134,89,0.45);
}

/* ==============================
   RESPONSIVE - LARGE DESKTOP (1400px+)
   ============================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* ==============================
   RESPONSIVE - DESKTOP (1024-1200px)
   ============================== */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

/* ==============================
   RESPONSIVE - TABLET (768-1024px)
   ============================== */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .nav-link {
        padding: 0.85rem 0.7rem;
        font-size: 0.7rem;
        letter-spacing: 0.4px;
    }

    .nav-arrow {
        font-size: 0.5rem;
    }

    .logo-img {
        max-height: 100px;
    }

    .header-search {
        max-width: 200px;
    }

    .header-infos {
        display: none;
    }

    .live-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ==============================
   RESPONSIVE - MOBILE (max 768px)
   ============================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Mobile Nav */
    .btn-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 500;
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list > li {
        width: 100%;
        text-align: left;
    }

    .nav-link {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: space-between;
    }

    .nav-link::after {
        display: none;
    }

    .nav-arrow {
        font-size: 0.65rem;
        opacity: 0.5;
    }

    .has-submenu.submenu-open > .nav-link .nav-arrow {
        transform: rotate(180deg);
        opacity: 1;
        color: var(--gold-color);
    }

    /* Mobile submenu: override desktop hover */
    .has-submenu:hover > .submenu {
        display: none;
        animation: none;
    }

    .submenu {
        position: static !important;
        transform: none !important;
        background: rgba(0,0,0,0.2);
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-top: none;
        padding: 0;
        display: none !important;
        animation: none;
    }

    .has-submenu.submenu-open > .submenu {
        display: block !important;
    }

    .submenu li a {
        color: rgba(255,255,255,0.8);
        padding: 0.75rem 1.5rem 0.75rem 2.5rem;
        font-size: 0.82rem;
        border-left: none;
    }

    .submenu li a:hover {
        background: rgba(255,255,255,0.06);
        color: var(--gold-color);
        border-left: none;
        padding-left: 2.75rem;
    }

    .submenu li + li {
        border-top-color: rgba(255,255,255,0.06);
    }

    /* Top bar Mobile */
    .top-bar {
        flex-direction: column;
        gap: 5px;
        padding: 8px 16px;
        font-size: 0.7rem;
        text-align: center;
    }

    .top-bar-nav {
        gap: 2px;
    }

    .top-bar a {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .top-bar .date-meteo {
        gap: 12px;
        font-size: 0.7rem;
    }

    /* Flash Info Mobile */
    .flash-info-content {
        height: 38px;
    }

    .flash-label {
        padding: 0 1rem;
        font-size: 0.65rem;
    }

    .flash-item {
        font-size: 0.75rem;
        left: 1rem;
    }

    .flash-text {
        font-size: 0.75rem;
    }

    /* Partner Banner */
    .partners-banner {
        max-height: 180px;
    }

    /* Header */
    .header-top {
        grid-template-columns: auto 1fr auto;
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .header-left,
    .header-search {
        display: none;
    }

    .header-right {
        display: none;
    }

    .logo-img {
        max-height: 50px;
    }

    .logo {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .tagline {
        font-size: 0.68rem;
        letter-spacing: 1.5px;
    }

    /* Layout */
    .main-section {
        padding: 1.5rem 0;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
        order: -1;
    }

    .webtv-widget,
    .popular-widget {
        padding: 1.25rem;
    }

    .video-placeholder-small {
        min-height: 200px;
    }

    .video-placeholder-small i {
        font-size: 2.5rem;
    }

    .webtv-header {
        font-size: 1.05rem;
    }

    .main-column {
        padding: 1.25rem;
    }

    .main-article-content h1 {
        font-size: 1.4rem;
    }

    .article-excerpt {
        font-size: 0.92rem;
    }

    /* Articles Grid */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-card {
        display: grid;
        grid-template-columns: 140px 1fr;
        border-radius: var(--radius-md);
    }

    .article-card.featured-card {
        grid-template-columns: 1fr;
    }

    .article-card:not(.featured-card) .article-image {
        aspect-ratio: 1;
        height: 100%;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }

    .article-card:not(.featured-card) .article-body {
        padding: 1rem;
    }

    .article-card:not(.featured-card) h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .article-card:not(.featured-card) p {
        display: none;
    }

    .article-card:not(.featured-card) .article-tags {
        display: none;
    }

    .article-card:not(.featured-card) .article-meta-top {
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
    }

    .article-card:not(.featured-card) .article-stats {
        font-size: 0.78rem;
        gap: 1rem;
        padding-top: 0.6rem;
    }

    /* Archive */
    .archive-content {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tab-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.88rem;
    }

    /* Sections */
    .main-content {
        padding: 2rem 0 0.5rem;
    }

    .content-section {
        margin-bottom: 3rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .section-header .section-title {
        font-size: 1.4rem;
    }

    .section-icon {
        font-size: 1.4rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links a {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    /* Scroll top */
    .scroll-top-btn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }
}

/* ==============================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ============================== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-img {
        max-height: 40px;
    }

    .tagline {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .header-top {
        padding: 0.65rem 0;
    }

    .btn-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 0.45rem;
    }

    .flash-info-content {
        height: 34px;
    }

    .flash-label {
        padding: 0 0.75rem;
        font-size: 0.6rem;
        gap: 0.4rem;
    }

    .flash-live-dot {
        width: 6px;
        height: 6px;
    }

    .flash-item {
        font-size: 0.7rem;
        left: 0.75rem;
    }

    .partners-banner {
        max-height: 140px;
    }

    .main-section {
        padding: 1rem 0;
    }

    .main-column {
        padding: 1rem;
    }

    .main-article-content h1 {
        font-size: 1.2rem;
    }

    .section-header-inline .section-title {
        font-size: 1.25rem;
    }

    .webtv-widget,
    .popular-widget {
        padding: 1rem;
    }

    .video-placeholder-small {
        min-height: 170px;
    }

    .video-placeholder-small i {
        font-size: 2rem;
    }

    .video-placeholder-small p {
        font-size: 0.85rem;
    }

    .webtv-info {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
        padding: 0.75rem;
    }

    .watch-btn {
        width: 100%;
        text-align: center;
    }

    .article-card {
        grid-template-columns: 120px 1fr;
    }

    .article-card.featured-card {
        grid-template-columns: 1fr;
    }

    .article-card:not(.featured-card) .article-body {
        padding: 0.85rem;
    }

    .article-card:not(.featured-card) h3 {
        font-size: 0.88rem;
    }

    .section-header .section-title {
        font-size: 1.25rem;
    }

    .section-icon {
        font-size: 1.25rem;
    }

    .archive-content {
        padding: 1rem;
    }

    .tab-btn {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }

    .read-more-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }
}

/* ==============================
   SMOOTH SCROLL & ACCESSIBILITY
   ============================== */
html {
    scroll-behavior: smooth;
}

.nav-link:focus-visible,
.btn-search:focus-visible,
.btn-menu-toggle:focus-visible,
.tab-btn:focus-visible,
.play-btn:focus-visible,
.read-more-btn:focus-visible,
.watch-btn:focus-visible {
    outline: 3px solid var(--gold-color);
    outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==============================
   LOADING ANIMATIONS
   ============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Bouton J'aime (page article) */
.article-like-wrap {
    margin-left: 0.25rem;
}

.article-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.article-like-btn:hover:not(:disabled) {
    border-color: var(--gold-color);
    color: var(--gold-dark);
    background: rgba(212, 175, 55, 0.08);
}

.article-like-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.article-like-btn:focus-visible {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

.article-like-btn i {
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.article-like-btn:hover:not(:disabled) i {
    transform: scale(1.1);
}

.article-like-btn.liked,
.article-like-btn:disabled {
    border-color: var(--gold-color);
    color: var(--gold-dark);
    background: rgba(212, 175, 55, 0.12);
    cursor: default;
}

.article-like-btn.liked i,
.article-like-btn:disabled i {
    font-weight: 900;
}

/* Page détail article - contenu enrichi et vidéos */
.article-full {
    max-width: 100%;
}
.article-full .article-body {
    padding: 0;
    display: block;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-medium, #444);
}
.article-full .article-body > *:first-child { margin-top: 0; }
.article-full .article-body > *:last-child { margin-bottom: 0; }
.article-full .article-body p {
    margin: 0 0 1.25rem;
    color: inherit;
}
.article-full .article-body h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
    color: var(--text-dark, #1a1a1a);
    font-weight: 700;
    line-height: 1.3;
}
.article-full .article-body h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-dark, #1a1a1a);
    font-weight: 600;
}
.article-full .article-body h4 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-dark, #1a1a1a);
    font-weight: 600;
}
.article-full .article-body ul,
.article-full .article-body ol {
    margin: 0 0 1.25rem 1.5rem;
    padding: 0;
}
.article-full .article-body li {
    margin-bottom: 0.4rem;
}
.article-full .article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary-color, #2d8659);
    background: rgba(45, 134, 89, 0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-medium, #444);
}
.article-full .article-body a {
    color: var(--primary-color, #2d8659);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-full .article-body a:hover {
    color: var(--primary-dark, #1f5d3f);
}
.article-full .article-body strong { font-weight: 700; }
.article-full .article-body em { font-style: italic; }
.article-full .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}
/* Vidéos (Quill .ql-video ou iframe direct) - hauteur correcte 16:9 */
.article-full .article-body .ql-video,
.article-full .article-body .ql-video-wrapper,
.article-full .article-body .video-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 12px;
    background: #000;
}
.article-full .article-body .ql-video iframe,
.article-full .article-body .ql-video-wrapper iframe,
.article-full .article-body .video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}
/* Paragraphe contenant uniquement une iframe (certains éditeurs) */
.article-full .article-body p.ql-align-center,
.article-full .article-body .ql-align-center {
    text-align: center;
}

/* Page article : barre latérale droite */
.article-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}
.article-main {
    min-width: 0;
}
.article-sidebar {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-block {
    background: var(--bg-light, #f5f7f6);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-md, 12px);
    padding: 1rem;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0,0,0,0.06));
}
.sidebar-block-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-medium, #444);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color, #2d8659);
}
.sidebar-pub-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-height: 250px;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-light, #666);
    font-size: 0.9rem;
}
.sidebar-pub-placeholder small { font-size: 0.75rem; opacity: 0.8; }

/* Popup « À lire aussi » — encart fixe angle droit bas */
.read-also-popup {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 380px;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 1.25rem 1.25rem;
    z-index: 900;
    opacity: 0;
    transform: translate(20px, 20px) scale(0.96);
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}
.read-also-popup.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    visibility: visible;
    pointer-events: auto;
}
.read-also-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #555;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.read-also-popup-close:hover {
    background: rgba(0,0,0,0.1);
    color: #1a1a1a;
}
.read-also-popup-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}
.read-also-popup-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.read-also-popup-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border-color: var(--primary-color, #2d8659);
}
.read-also-popup-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}
.read-also-popup-body {
    padding: 0.85rem 0;
}
.read-also-popup-body h4 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark, #1a1a1a);
}
.read-also-popup-card:hover .read-also-popup-body h4 {
    color: var(--primary-color, #2d8659);
}
.read-also-popup-date {
    font-size: 0.85rem;
    color: var(--text-light, #666);
}
@media (max-width: 480px) {
    .read-also-popup {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
    }
}

/* Encart « Articles suggérés » page d'accueil — angle droit bas, au chargement et au milieu du scroll */
.home-suggested-popup {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 1.25rem 1.25rem;
    z-index: 900;
    opacity: 0;
    transform: translate(20px, 20px) scale(0.96);
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}
.home-suggested-popup.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    visibility: visible;
    pointer-events: auto;
}
.home-suggested-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #555;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.home-suggested-popup-close:hover {
    background: rgba(0,0,0,0.1);
    color: #1a1a1a;
}
.home-suggested-popup-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}
.home-suggested-popup-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 380px;
    overflow-y: auto;
}
.home-suggested-popup-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 0.5rem 0;
    border: 1px solid transparent;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.home-suggested-popup-card:hover {
    border-color: rgba(45, 134, 89, 0.3);
    background: rgba(45, 134, 89, 0.05);
}
.home-suggested-popup-thumb {
    width: 72px;
    min-width: 72px;
    height: 48px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}
.home-suggested-popup-body {
    min-width: 0;
}
.home-suggested-popup-body h4 {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark, #1a1a1a);
}
.home-suggested-popup-card:hover .home-suggested-popup-body h4 {
    color: var(--primary-color, #2d8659);
}
.home-suggested-popup-date {
    font-size: 0.75rem;
    color: var(--text-light, #666);
}
@media (max-width: 480px) {
    .home-suggested-popup {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
    }
}

.sidebar-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-categories-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.sidebar-categories-list li:last-child { border-bottom: none; }
.sidebar-categories-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium, #444);
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
}
.sidebar-categories-list a:hover {
    color: var(--primary-color, #2d8659);
}
.sidebar-categories-list .sidebar-cat-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color, #2d8659);
    background: rgba(45, 134, 89, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
}
@media (max-width: 992px) {
    .article-page-wrap {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .sidebar-suggestion {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
@media (max-width: 640px) {
    .article-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Bannière cookies - bien visible en bas de l'écran */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    color: #f0f0f0;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -6px 30px rgba(0,0,0,0.35);
    border-top: 4px solid var(--primary-color, #2d8659);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
}
.cookie-consent.is-visible {
    display: flex;
    animation: cookie-banner-in 0.35s ease-out;
}
@keyframes cookie-banner-in {
    from { transform: translateY(100%); opacity: 0.9; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    max-width: 720px;
}
.cookie-consent-text a {
    color: var(--gold-light, #e5c158);
    text-decoration: underline;
    font-weight: 500;
}
.cookie-consent-text a:hover {
    color: #fff;
}
.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.cookie-consent-accept {
    padding: 0.65rem 1.5rem;
    background: var(--primary-color, #2d8659);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(45, 134, 89, 0.4);
}
.cookie-consent-accept:hover {
    background: var(--primary-dark, #1f5d3f);
}
@media (max-width: 640px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }
    .cookie-consent-text { min-width: 0; }
}
