/* Global Styles & Variables */
:root {
    --primary-color: #0f172a;
    /* Dark Slate */
    --secondary-color: #d97706;
    /* Amber/Gold */
    --accent-color: #38bdf8;
    /* Sky Blue */
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background-color: #b45309;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

/* Navigation */
.navbar {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .logo img {
        height: 80px;
    }
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('assets/images/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Better for performance on mobile */
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding: 160px 0 80px;
}

@media (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero-content h1 {
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.hero-content p.hero-subtitle {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto 20px;
    opacity: 0.95;
    animation: fadeInUp 1.1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

.hero-btns {
    animation: fadeInUp 1.4s ease;
}

/* Features / What We Do */
.features {
    background-color: var(--bg-white);
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Animations au Défilement (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Amélioration Cartes Joueurs */
.player-card {
    position: relative;
}

.player-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.player-img-container {
    overflow: hidden;
    height: 350px;
}

.player-img-container.player-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #94a3b8;
    font-size: 5rem;
}

.player-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.player-card:hover .player-img {
    transform: scale(1.1);
}

.club-logo-mini {
    height: 25px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

        .hamburger[aria-expanded="true"] .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger[aria-expanded="true"] .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger[aria-expanded="true"] .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
    }
    
    .player-card {
        margin: 0 10px;
    }
}

/* Partners Section */
.partners {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.partner-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.partner-logo {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-item:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* iOS PWA Install Prompt */
#ios-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#ios-install-prompt .prompt-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#ios-install-prompt .prompt-text h3 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--primary-color);
}

#ios-install-prompt .prompt-text p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #475569;
    line-height: 1.4;
}

#ios-install-prompt .close-prompt {
    position: absolute;
    top: 5px;
    right: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    padding: 5px;
}

@keyframes slideUp {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================
   ACTUALITÉS & GOOGLE NEWS STYLES
   ========================================== */

.news-header {
    background-color: var(--primary-color);
    padding: 180px 0 60px;
    text-align: center;
    color: white;
}

.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0 20px;
}

.news-filter-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.news-search-box {
    position: relative;
    min-width: 260px;
}

.news-search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.news-search-box input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.news-search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.news-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    position: relative;
}

/* Video thumbnail in news cards */
.news-card-video-wrapper {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.news-card-video-wrapper video.news-card-img {
    object-fit: cover;
    height: 200px;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0.85;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.news-card:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.news-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.news-tag {
    background: rgba(217, 119, 6, 0.12);
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.35;
    font-weight: 700;
}

.news-card-excerpt {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: auto;
}

.news-read-btn {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.news-read-btn:hover {
    color: var(--primary-color);
}

/* Modal Article Detail Reader */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--secondary-color);
}

.modal-banner {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background-color: #0f172a;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 35px;
}

.modal-title {
    font-size: 1.85rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.modal-article-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}

.modal-article-text h3 {
    color: var(--primary-color);
    margin: 28px 0 14px;
    font-size: 1.3rem;
    font-weight: 700;
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;
}

.modal-article-text p {
    margin-bottom: 18px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.modal-share-bar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* ==========================================
   STYLE EDITORIAL DFCO — Article individuel
   ========================================== */

/* Modale / Vue article pleine page */
.modal-content.editorial-style {
    background: #ffffff;
    max-width: 900px;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    max-height: 90vh;
    position: relative;
}

.modal-content.editorial-style .modal-body {
    padding: 50px 25px 60px;
    max-width: 720px;
    margin: 0 auto;
}

/* En-tête article */
.post-header {
    text-align: center;
    margin-bottom: 35px;
    padding-top: 10px;
}

.post-date {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    position: relative;
}

.post-date::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--primary-color);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}

.post-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.post-categories li {
    display: inline-block;
    background: #f1f5f9;
    color: var(--primary-color);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* Média principal */
.post-media {
    margin: 30px 0 35px;
}

.post-media img#modal-img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background-color: #0f172a;
    border-radius: 12px;
    display: block;
}

/* Galerie d'images */
#modal-gallery-sec {
    margin-bottom: 20px;
}

#modal-gallery-sec .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

#modal-gallery-sec .gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    height: 280px;
    background: #0f172a;
    position: relative;
}

#modal-gallery-sec .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#modal-gallery-sec .gallery-item img:hover {
    transform: scale(1.02);
}

/* Vidéo */
#modal-video-sec iframe,
#modal-video-sec video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

#modal-video-sec iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Contenu éditorial */
.wysiwyg {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #1e293b;
    margin-top: 10px;
}

.wysiwyg > p {
    margin-bottom: 22px;
}

/* Premier paragraphe mis en avant comme le DFCO */
.wysiwyg > p:first-of-type {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.wysiwyg strong {
    color: var(--primary-color);
    font-weight: 700;
}

.wysiwyg h3,
.wysiwyg h4 {
    color: var(--primary-color);
    margin: 32px 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
    border-left: 4px solid var(--secondary-color);
    padding-left: 14px;
    line-height: 1.3;
}

.wysiwyg blockquote {
    background: #fffbeb;
    border-left: 4px solid var(--secondary-color);
    padding: 20px 24px;
    margin: 28px 0;
    font-style: italic;
    color: #78350f;
    border-radius: 0 10px 10px 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.wysiwyg a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.wysiwyg a:hover {
    color: var(--primary-color);
}

.wysiwyg ul,
.wysiwyg ol {
    margin-bottom: 22px;
    padding-left: 25px;
}

.wysiwyg li {
    margin-bottom: 8px;
}

/* Barre de partage */
.post-share {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.share-label {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-color);
}

.post-share .social-links {
    display: flex;
    gap: 12px;
}

.post-share .social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--primary-color);
    font-size: 1.15rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.post-share .social-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.post-share .social-btn.facebook:hover {
    background: #1877f2;
}

.post-share .social-btn.whatsapp:hover {
    background: #25d366;
}

.post-share .social-btn.link:hover {
    background: var(--primary-color);
}

/* Articles liés */
.post-related {
    margin-top: 55px;
    padding-top: 10px;
}

.post-related h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.post-related h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.related-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.related-card .related-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-card .related-tag {
    display: inline-block;
    background: rgba(217, 119, 6, 0.12);
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    width: fit-content;
}

.related-card h4 {
    font-size: 1rem;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 8px;
    flex-grow: 1;
}

.related-card .related-date {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content.editorial-style .modal-body {
        padding: 35px 18px 45px;
    }

    .post-header {
        margin-bottom: 25px;
    }

    .post-title {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
    }

    .post-media {
        margin: 20px 0 25px;
    }

    .post-media img#modal-img {
        max-height: 320px;
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-content.editorial-style .modal-body {
        padding: 28px 15px 40px;
    }

    .wysiwyg {
        font-size: 1rem;
    }

    .wysiwyg > p:first-of-type {
        font-size: 1.1rem;
    }
}

/* ==========================================
   PAGE ARTICLE PLEINE PAGE
   ========================================== */

.article-page-section {
    padding: 40px 0 80px;
}

.article-back-link {
    margin-bottom: 30px;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.back-to-news:hover {
    color: var(--primary-color);
    transform: translateX(-4px);
}

.article-page.editorial-style {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 50px 25px 60px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
}

.article-page.editorial-style .post-media,
.article-page.editorial-style .post-content,
.article-page.editorial-style .post-share,
.article-page.editorial-style .post-related {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.article-page.editorial-style .post-header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 35px;
    padding-top: 10px;
}

.article-page.editorial-style #article-video {
    margin: 30px 0 35px;
}

.article-page.editorial-style #article-video iframe,
.article-page.editorial-style #article-video video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.article-page.editorial-style #article-video iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

@media (max-width: 768px) {
    .article-page.editorial-style {
        padding: 35px 18px 45px;
        border-radius: 16px;
    }

    .article-page.editorial-style .post-title {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
    }
}

@media (max-width: 480px) {
    .article-page.editorial-style {
        padding: 28px 15px 40px;
    }
}

/* Admin Dashboard Styles */
.admin-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin: 40px auto 60px;
    max-width: 800px;
    border: 1px solid #e2e8f0;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.code-output {
    background: #0f172a;
    color: #38bdf8;
    padding: 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    overflow-x: auto;
    margin-top: 15px;
    max-height: 300px;
}