/* ==========================================================================
   1. VARIABLES & RESET GLOBALS
   ========================================================================== */
:root {
    --accent: #E61E2A;
    --accent-hover: #b8141e;
    --bg-white: #ffffff;
    --text-dark: #121212;
    --text-muted: #6e6e73;
    --light-gray: #f5f5f7;
    --border-color: #e5e5ea;
    --radius-premium: 16px;
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Surlignement exact à la couleur du logo VAFM */
::selection {
    background-color: #dd0000f7; /* Le rouge bordeaux de la vague */
    color: #ffffff;            /* Texte blanc lisible */
}

::-moz-selection {
    background-color: #dd0000f7;
    color: #ffffff;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
    padding-bottom: 120px;
}

/* Désactive le clic sur les éléments du carrousel si la classe .is-admin est absente du body */
body:not(.is-admin) .carousel-item {
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   2. CHARGEMENT (LOADER SCREEN)
   ========================================================================== */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: 9999999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    width: 130px;
    margin-bottom: 25px;
    animation: pulseLogo 1.5s infinite var(--transition-smooth);
}

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

.loader-bar-container {
    width: 240px;
    height: 3px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    animation: loaderBarFill 1.4s ease-in-out infinite;
}

@keyframes loaderBarFill {
    0% { width: 0%; }
    60% { width: 85%; }
    100% { width: 100%; }
}

/* ==========================================================================
   BARRE ADMIN - DESIGN MINIMALISTE & MENU DÉROULANT
   ========================================================================== */
.admin-top-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #0a0a0a !important; /* Noir profond mat */
    border-bottom: 1px solid #222222 !important; /* Ligne de séparation très fine */
    color: #ededed !important;
    padding: 10px 5% !important;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: none !important;
}

body.admin-logged-in .admin-top-bar { 
    display: flex !important; 
}

/* Texte de statut sobre avec petit point mat */
.admin-top-bar .admin-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: #a1a1aa !important; /* Gris sobre */
}

/* Petit point rouge discret (non animé) */
.admin-top-bar .admin-status::before {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    background-color: #e50914 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- DROPDOWN PUBLICATION --- */
.publish-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Bouton déclencheur */
.publish-dropdown-btn {
    background: #18181b !important;
    color: #ffffff !important;
    border: 1px solid #27272a !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.publish-dropdown-btn:hover {
    background: #27272a !important;
    border-color: #3f3f46 !important;
}

/* Animation de la flèche (Pointe vers le haut par défaut, tourne vers le bas au clic) */
.dropdown-arrow {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.publish-dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menu déroulant */
.publish-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.publish-dropdown-container.open .publish-menu {
    display: block !important;
    animation: fadeInMenu 0.15s ease-out;
}

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

.publish-menu-header {
    padding: 6px 8px 4px 8px;
    font-size: 9px;
    font-weight: 700;
    color: #71717a;
    letter-spacing: 0.8px;
}

.publish-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: #e4e4e7;
}

.publish-menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.publish-menu-divider {
    height: 1px;
    background: #27272a;
    margin: 4px 0;
}

/* Boutons dans le menu */
.btn-publish-section {
    background: #27272a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background 0.15s ease !important;
}

.btn-publish-section:hover {
    background: #e50914 !important; /* Passe au rouge au survol */
}

.btn-publish-all {
    background: #e50914 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.btn-publish-all:hover {
    background: #b20710 !important;
}

/* ==========================================================================
   BOUTONS D'AJOUT DANS LES SECTIONS (+ Ajouter un membre / article / etc.)
   ========================================================================== */

/* Masquer tous les boutons UI admin par défaut si l'utilisateur n'est pas connecté */
.admin-editable-ui {
    display: none !important;
}

/* Affichage lorsque la classe admin-logged-in est sur <body> */
body.admin-logged-in .admin-editable-ui {
    display: inline-flex !important;
}

.add-btn {
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e4e4e7 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.add-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Placement spécifique pour le bouton "+ Ajouter une slide" dans le Carrousel */
.hero-section {
    position: relative;
}

body.admin-logged-in .hero-add {
    display: inline-flex !important;
    position: absolute !important;
    bottom: 25px !important; /* Positionné en bas */
    right: 25px !important;  /* Positionné à droite */
    z-index: 50 !important;  /* Au-dessus des éléments du carrousel */
}
/* ==========================================================================
   HEADER & NAVIGATION - EFFET SURVOL ROUGE (HOVER)
   ========================================================================== */

/* Structure de base des liens du menu */
.nav-link, 
header nav a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Changement de couleur du texte au survol */
.nav-link:hover, 
header nav a:hover {
    color: #E50914; /* Rouge VAFM */
}

/* Création de la barre rouge sous le bouton (masquée par défaut) */
.nav-link::after, 
header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #E50914; /* Rouge VAFM */
    border-radius: 2px;
    transition: all 0.2s ease-in-out;
    transform: translateX(-50%);
}

/* Animation : apparition et étirement de la barre au survol */
.nav-link:hover::after, 
header nav a:hover::after,
.nav-link.active::after,
header nav a.active::after {
    width: 80%; /* Largeur de la barre sous le texte */
}

/* ==========================================================================
   4. NAVIGATION BARRE (HEADER)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px); z-index: 999;
    border-bottom: 1px solid var(--border-color);
    transition: top 0.3s var(--transition-smooth);
}

body.admin-logged-in .navbar { 
    top: 50px; 
}

.nav-logo { 
    height: 100px; 
    object-fit: contain; 
}

.nav-links a {
    text-decoration: none; 
    color: var(--text-dark);
    font-weight: 600; 
    margin-left: 30px; 
    font-size: 14px;
    position: relative; 
    padding: 6px 0;
}

.nav-links a.active::after {
    content: ""; 
    position: absolute; 
    bottom: 0; left: 0; 
    width: 100%; height: 2px; 
    background: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge-container { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: var(--light-gray); 
    padding: 6px 16px; 
    border-radius: 50px; 
    border: 1px solid var(--border-color); 
    cursor: pointer; 
    height: 42px; 
}

.user-avatar { 
    width: 24px; height: 24px; 
    background: var(--accent); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-size: 11px; 
    font-weight: 700; 
}

.user-name-label { 
    font-size: 13px; 
    font-weight: 600; 
}

.btn-live {
    background: var(--accent); color: #fff; border: none; padding: 12px 24px;
    border-radius: 50px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 30, 42, 0.2); transition: all 0.3s var(--transition-smooth);
}

.btn-live:hover { 
    background: var(--accent-hover); transform: translateY(-1px); 
}

.btn-secondary {
    background: var(--light-gray); color: var(--text-dark); border: 1px solid var(--border-color);
    padding: 12px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s;
}

.btn-secondary:hover { 
    background: #e5e5ea; 
}

/* ==========================================================================
   5. CONTENUS (HERO CARROUSEL & GRILLES)
   ========================================================================== */

/* Section Carrousel */
.hero-section { 
    width: 100%; 
    height: 75vh; 
    margin-top: 80px; 
    background: #000; 
    position: relative; 
}

body.admin-logged-in .hero-section { 
    margin-top: 130px; 
}

.swiper { 
    width: 100%; 
    height: 100%; 
}

/* Diapositives */
.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
    background: #101015;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
}

/* Image de fond */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}

.swiper-slide-active .slide-bg { 
    transform: scale(1.04); 
}

/* Fondu sombre */
.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 85%);
    z-index: 2;
    pointer-events: none;
}

/* Conteneur Texte du Carrousel */
.slide-content {
    position: relative;
    z-index: 3;
    padding: 40px 5%;
    width: 100%;
    max-width: 800px;
    color: #ffffff;
    box-sizing: border-box;
}

.slide-content h1 { 
    font-size: 3.2rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 15px; 
    letter-spacing: -1px; 
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p { 
    font-size: 1.15rem; 
    color: #e0e0e0; 
    margin-bottom: 25px; 
    line-height: 1.5; 
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Alignement des Boutons */
.slide-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-more {
    background: #ffffff; 
    color: #000000; 
    padding: 12px 26px; 
    text-decoration: none;
    border-radius: 8px; 
    font-weight: 700; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Sections & Grilles */
.section { 
    padding: 80px 5%; 
    position: relative; 
}

.alt-bg { 
    background: var(--light-gray); 
}

.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; 
}

.section-header h2 { 
    font-size: 2rem; 
    font-weight: 800; 
    letter-spacing: -0.5px; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px; 
}

.team-grid { 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
}

/* Cartes des Grilles */
.card {
    background: #ffffff; 
    border-radius: var(--radius-premium); 
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); 
    border: 1px solid var(--border-color);
    transition: all 0.4s var(--transition-smooth); 
    position: relative; 
    cursor: pointer;
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
}

.card-img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
}

.card-body { 
    padding: 25px; 
}

.card-body h3 { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 10px; 
}

.card-body p { 
    color: var(--text-muted); 
    font-size: 14px; 
    line-height: 1.6; 
}

/* --- ACTUALITÉS : IMAGE TOTALE + TEXTE DESSUS + BOUTONS ACTION SVG --- */
#news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 18px !important;
}

#news-grid .card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: var(--radius-premium, 16px) !important;
    height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    cursor: pointer !important;
    background: #000 !important;
}

#news-grid .card::after,
#news-grid .card::before {
    content: none !important;
    display: none !important;
}

#news-grid .card img, 
#news-grid .card .card-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* <--- Affiche l'image complète sans déformation */
    object-position: center !important;
    z-index: 1 !important;
    opacity: 1 !important;
    filter: none !important;
    transition: transform 0.6s ease !important;
}

#news-grid .card:hover img, 
#news-grid .card:hover .card-img {
    transform: scale(1.04) !important;
}

#news-grid .card .card-body {
    position: relative !important;
    z-index: 3 !important;
    padding: 14px 16px 42px 16px !important; /* Dégagement en bas pour la barre d'action */
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
}

#news-grid .card .card-body h3 {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

#news-grid .card .card-body p {
    color: #f1f1f6 !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    max-height: 2.7em;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95) !important;
}

#news-grid .card .date {
    display: block !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #ff334b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
}

/* BOUTONS D'ACTION (SVG + Effet Flou) */
#news-grid .card-actions {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    display: flex !important;
    gap: 6px !important;
    z-index: 10 !important;
}

.vafm-card-btn {
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
}

.vafm-card-btn:hover {
    background: rgba(0, 0, 0, 0.85) !important;
    transform: scale(1.05) !important;
}

.vafm-card-btn.liked {
    color: #ff334b !important;
    border-color: rgba(255, 51, 75, 0.5) !important;
}

/* --- SUB-SECTIONS ACTUALITÉS --- */
.news-subsection {
    margin-bottom: 35px;
}

.subsection-title {
    color: #111827 !important; /* Noir / Gris très sombre */
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Application du style de carte sur la grille des top likes */
#top-liked-news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 18px !important;
}

#top-liked-news-grid .card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: var(--radius-premium, 16px) !important;
    height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    cursor: pointer !important;
    background: #000 !important;
}

#top-liked-news-grid .card img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 1 !important;
}

#top-liked-news-grid .card .card-body {
    position: relative !important;
    z-index: 3 !important;
    padding: 14px 16px 42px 16px !important;
    background: transparent !important;
}

#top-liked-news-grid .card .card-body h3 {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.95) !important;
}

#top-liked-news-grid .card .card-body p {
    color: #f1f1f6 !important;
    font-size: 0.82rem !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.95) !important;
}

/* --- HOMOGÉNÉISATION DU STYLE SUR TOUTES LES SOUS-SECTIONS ACTUS --- */

/* Uniformisation des grilles d'actualités */
#top-liked-news-grid,
#recent-news-grid,
#old-news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 18px !important;
}

/* Style uniforme pour les cartes d'actualités */
#top-liked-news-grid .card,
#recent-news-grid .card,
#old-news-grid .card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: var(--radius-premium, 16px) !important;
    height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    background: #000000 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

#top-liked-news-grid .card:hover,
#recent-news-grid .card:hover,
#old-news-grid .card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Image en arrière-plan intégrale avec zoom léger au survol */
#top-liked-news-grid .card .card-img,
#recent-news-grid .card .card-img,
#old-news-grid .card .card-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* <--- Passage de cover à contain */
    object-position: center !important;
    z-index: 1 !important;
    transition: transform 0.4s ease !important;
}

#top-liked-news-grid .card:hover .card-img,
#recent-news-grid .card:hover .card-img,
#old-news-grid .card:hover .card-img {
    transform: scale(1.05) !important;
}

/* Dégradé sombre au-dessus de l'image pour lisibilité du texte */
#top-liked-news-grid .card::after,
#recent-news-grid .card::after,
#old-news-grid .card::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.95) 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Contenu textuel positionné au premier plan */
#top-liked-news-grid .card .card-body,
#recent-news-grid .card .card-body,
#old-news-grid .card .card-body {
    position: relative !important;
    z-index: 3 !important;
    padding: 14px 16px 42px 16px !important;
    background: transparent !important;
}

#top-liked-news-grid .card .card-body .date,
#recent-news-grid .card .card-body .date,
#old-news-grid .card .card-body .date {
    display: inline-block !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 4px !important;
}

#top-liked-news-grid .card .card-body h3,
#recent-news-grid .card .card-body h3,
#old-news-grid .card .card-body h3 {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95) !important;
}

#top-liked-news-grid .card .card-body p,
#recent-news-grid .card .card-body p,
#old-news-grid .card .card-body p {
    color: #f1f1f6 !important;
    font-size: 0.82rem !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95) !important;
}

/* Barre d'actions (like / partage) intégrée en bas de carte */
#top-liked-news-grid .card .card-actions,
#recent-news-grid .card .card-actions,
#old-news-grid .card .card-actions {
    position: absolute !important;
    bottom: 10px !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 4 !important;
    display: flex !important;
    gap: 8px !important;
}

/* Espacement propre entre le titre de la sous-section et les cartes */
.team-sub-section {
    margin-top: 30px; /* Espace au-dessus de chaque sous-section */
    margin-bottom: 25px;
}

.team-sub-title {
    margin-bottom: 20px !important; /* Espace entre le texte du titre et la grille de vignettes */
    font-size: 1.25rem;
    font-weight: 700;
}

/* ==========================================================================
   6. FENÊTRES MODALES & FORMULAIRES DE BASE
   ========================================================================== */
.modal {
    display: none; position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(15px); z-index: 10000;
    justify-content: center; align-items: center; padding: 20px;
}

.modal-content {
    background: #fff; padding: 40px; border-radius: 24px; width: 100%; max-width: 440px;
    position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: modalPop 0.4s var(--transition-smooth);
}

@keyframes modalPop { 
    from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } 
}

.close-btn { 
    position: absolute; top: 20px; right: 20px; background: none; border:none; 
    font-size: 20px; cursor: pointer; color: var(--text-muted); z-index: 100; 
}

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-group input, .input-group textarea { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--border-color); font-size: 15px; outline: none; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--accent); }
.btn-submit { width: 100%; background: #000; color:#fff; border:none; padding: 14px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 10px; }
.auth-switch { margin-top: 20px; font-size: 13px; text-align: center; }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ==========================================================================
   7. PAGE ARTICLE DÉDIÉE (#article-modal)
   ========================================================================== */
#article-modal {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding-top: 146px; /* Header fixe (80px) + bandeau dédicaces (36px) */
    padding-bottom: 140px;
    background: #f8f9fa;
    position: relative;
    z-index: 100;
}

body.admin-logged-in #article-modal {
    padding-top: 196px;
}

.article-page-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-wrapper {
    background: #ffffff;
    border-radius: var(--radius-premium);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.btn-back {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.btn-back:hover {
    background: #f0f0f5;
    transform: translateX(-3px);
}

.article-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f5;
    color: #333;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.article-hero-media {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
}

.article-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.article-content p {
    margin-bottom: 20px;
}

.article-admin-controls {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   CORRECTION ACCESSIBILITÉ MODALE VS LECTEUR AUDIO
   ========================================================================== */

/* 1. S'assurer que le fond obscurci et la modale passent AU-DESSUS du lecteur */
.modal, 
#card-editor-modal,
#auth-modal {
    z-index: 99999 !important; /* Supérieur au z-index du lecteur radio */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 2. Limiter la hauteur de la boîte modale et activer le scroll interne */
.modal-content,
#card-editor-modal .modal-content {
    max-height: 85vh; /* Maximum 85% de la hauteur de l'écran */
    overflow-y: auto;  /* Permet de scroller si l'image ou le texte est grand */
    padding-bottom: 30px; /* Marge interne en bas pour respirer */
}

/* 3. Ajuster le lecteur pour qu'il reste en dessous des fenêtres modales */
.vafm-player-toolbar,
#vafm-audio-player,
[class*="player"] {
    z-index: 9990; /* Légèrement inférieur à la modale */
}

/* Empêche le défilement de se propager à la page arrière-plan */
.modal,
.modal-content,
#card-editor-modal .modal-content {
    overscroll-behavior: contain;
}

/* ==========================================================================
   8. LECTEUR FLOATING ULTRA-PREMIUM
   ========================================================================== */
.vafm-player-premium {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    height: 75px !important;
    background: #131316 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 40px !important;
    z-index: 2147483647 !important; /* Valeur maximale possible en CSS */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: visible !important;
}

.player-watermark {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: url('VAFM logo rouge.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none; 
    z-index: 1;
    border-radius: 16px;
}

.player-left { 
    display: flex !important; 
    align-items: center !important; 
    width: 40% !important;
    overflow: visible !important; 
    z-index: 2; 
}

.cover-container {
    width: 160px !important; 
    height: 160px !important;
    margin-top: -60px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    overflow: visible !important;
    z-index: 10;
}

#track-cover { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: contain !important; 
}

.metadata-block { display: flex; flex-direction: column; justify-content: center; color: #ffffff; margin-left: 15px; }

.liquid-container-fx {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    pointer-events: none;
    z-index: 99998;
    filter: contrast(25) cubic-bezier(0, 0, 1, 1);
    display: none;
}

.liquid-drop {
    position: absolute;
    bottom: 0;
    left: 50%;
    background: #131316;
    border-radius: 50%;
    filter: blur(10px);
    transform: translateX(-50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.player-center { 
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.control-play-btn { 
    background: transparent !important; 
    border: none !important; 
    cursor: pointer !important; 
    padding: 0 !important; 
    width: 45px !important;
    height: 45px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
}

.icon-play, .icon-pause { 
    width: 45px !important; 
    height: 45px !important; 
    fill: #ffffff !important; 
    position: absolute !important;
}

.control-play-btn .icon-pause { display: none !important; }
.control-play-btn.playing .icon-play { display: none !important; }
.control-play-btn.playing .icon-pause { display: block !important; }

.player-right { 
    width: 40% !important; 
    display: flex !important; 
    justify-content: flex-end !important; 
    align-items: center !important; 
    z-index: 2; 
}

.style-selector { display: flex !important; gap: 6px !important; cursor: pointer !important; }
.style-bar { width: 10px !important; height: 25px !important; background: #333339 !important; border-radius: 2px !important; transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important; }
.style-bar:hover { background: var(--accent) !important; }

/* ==========================================================================
   9. DESIGN ADMIN & MODALE PREMIUM
   ========================================================================== */

/* Barre Admin Supérieure */
.admin-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 12px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.admin-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.admin-status {
    color: #ff3355;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff3355;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff3355;
}

/* Style des Cartes en Mode Édition */
.card {
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.draft-card {
    border: 2px dashed #ff9900 !important;
    opacity: 0.85;
}
.card-status-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
}
.tag-published { background: rgba(0, 230, 118, 0.2); color: #00e676; border: 1px solid #00e676; }
.tag-draft { background: rgba(255, 153, 0, 0.2); color: #ff9900; border: 1px solid #ff9900; }

/* Boutons d'Action sur les Cartes & Articles */
.card-admin-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.btn-admin-action {
    background: rgba(20, 20, 28, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-admin-action:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}
.btn-admin-action.btn-unpublish {
    border-color: #ff9900;
    color: #ff9900;
}
.btn-admin-action.btn-unpublish:hover {
    background: #ff9900;
    color: black;
}
.btn-admin-action.btn-publish {
    border-color: #00e676;
    color: #00e676;
}
.btn-admin-action.btn-publish:hover {
    background: #00e676;
    color: black;
}
.btn-admin-action.btn-delete {
    border-color: #ff3355;
    color: #ff3355;
}
.btn-admin-action.btn-delete:hover {
    background: #ff3355;
    color: white;
}

/* ==========================================================================
   MODALE ÉDITEUR D'ACTUS — VERSION SOIGNÉE (thème sombre cohérent)
   ========================================================================== */
#card-editor-modal .editor-modal-content {
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    max-width: 560px;
    width: 92%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Liseré d'accent en haut de la carte, pour ancrer le thème visuel de VAFM.
   Arrondi aux mêmes coins que la carte plutôt que de compter sur
   overflow:hidden sur le parent — sinon ça bloque le scroll interne
   nécessaire quand une image est ajoutée (voir bug "boutons inaccessibles"). */
#card-editor-modal .editor-modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, var(--accent), #ff5f6d);
}

#card-editor-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#card-editor-modal .modal-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

#card-editor-modal .close-btn {
    position: static;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    transition: all 0.2s ease;
}

#card-editor-modal .close-btn:hover {
    background: var(--accent);
    color: #ffffff;
    transform: rotate(90deg);
}

#card-editor-modal .input-group {
    margin-bottom: 22px;
}

#card-editor-modal .input-group label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

#card-editor-modal .input-group input,
#card-editor-modal .input-group textarea,
#card-editor-modal .input-group select {
    width: 100%;
    box-sizing: border-box;
    background: #0e0e13;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f2f2f5;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#card-editor-modal .input-group input::placeholder,
#card-editor-modal .input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#card-editor-modal .input-group input:focus,
#card-editor-modal .input-group textarea:focus,
#card-editor-modal .input-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 30, 42, 0.18);
}

#card-editor-modal .input-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
}

#card-editor-modal .input-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

/* Glisser-Déposer Modernisé */
#card-editor-modal .drop-zone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    background: #0e0e13;
    cursor: pointer;
    transition: all 0.2s ease;
}

#card-editor-modal .drop-zone:hover,
#card-editor-modal .drop-zone--over {
    border-color: var(--accent);
    background: rgba(230, 30, 42, 0.06);
}

#card-editor-modal .drop-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    filter: grayscale(1) brightness(1.6);
    opacity: 0.85;
}

#card-editor-modal .drop-zone-prompt {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

#card-editor-modal .drop-zone-prompt u {
    color: #ffffff;
    text-decoration-color: var(--accent);
}

/* Le vrai input file n'a pas besoin d'être visible : le clic est géré
   par le conteneur .drop-zone (voir onclick sur la div). pointer-events:none
   est indispensable ici : sans ça, le clic déclenche l'input DEUX FOIS
   (une fois directement sur l'input superposé, une fois via le onclick du
   parent qui appelle aussi .click()), ce qui rouvre/annule le dialogue et
   empêche le fichier choisi de s'appliquer.
   Un input file visible cassait aussi le design (bouton système + texte
   superposés au message de la zone de dépôt). */
#card-editor-modal .drop-zone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

#card-editor-modal .file-preview {
    margin-top: 16px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-height: 190px;
}

#card-editor-modal .file-preview:empty {
    margin-top: 0;
}

#card-editor-modal .file-preview img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

#card-editor-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

#card-editor-modal .modal-actions .btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#card-editor-modal .modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

#card-editor-modal .btn-submit {
    flex: 2;
    background: linear-gradient(135deg, var(--accent), #b8141e);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(230, 30, 42, 0.35);
    transition: all 0.2s ease;
    margin-top: 0;
}

#card-editor-modal .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(230, 30, 42, 0.45);
}

#card-editor-modal .btn-submit:active {
    transform: translateY(0);
}

/* Scrollbar discrète pour le contenu de la modale sur les longs textes */
#card-editor-modal .editor-modal-content::-webkit-scrollbar {
    width: 8px;
}
#card-editor-modal .editor-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

/* Modale Éditeur Sublimée */
.editor-modal-content {
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    max-width: 550px;
    width: 92%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
}
.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

/* Glisser-Déposer Modernisé */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    background: #0e0e13;
    cursor: pointer;
    transition: all 0.2s ease;
}
.drop-zone:hover, .drop-zone--over {
    border-color: #ff0033;
    background: rgba(255, 0, 51, 0.05);
}
.drop-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}
.file-preview {
    margin-top: 12px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-height: 180px;
}
.file-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* CONTENEUR PARENT FIXÉ SUR TOUTE LA HAUTEUR DU VIEWPORT */
    .canva-workspace {
        width: 100% !important;
        min-height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background-color: #f4f4f7 !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* BANDE BLANCHE PROLONGÉE DE TOUT EN HAUT À TOUT EN BAS */
    .canva-document {
        width: 100% !important;
        max-width: 850px !important;
        min-height: 100vh !important; /* Force le bloc à faire TOUTE la hauteur de la fenêtre */
        margin: 0 auto !important;
        background: #ffffff !important;
        
        /* Aucune bordure ni arrondi haut/bas */
        border-radius: 0 !important;
        border-top: none !important;
        border-bottom: none !important;
        
        /* Marge interne haute et basse (pour scroller confortablement au-dessus du player) */
        padding: 40px 50px 180px 50px !important;
        box-sizing: border-box !important;
        
        /* Ombres et bordures EXCLUSIVEMENT sur les côtés gauche et droit */
        border-left: 1px solid #e0e0e8 !important;
        border-right: 1px solid #e0e0e8 !important;
        box-shadow: -15px 0 25px -10px rgba(0, 0, 0, 0.07), 15px 0 25px -10px rgba(0, 0, 0, 0.07) !important;
    }

/* ==========================================================================
   RESTITUTION DU FOND BLANC POUR LE SITE
   ========================================================================== */
html, body {
    background-color: #f4f4f7 !important; /* Le fond clair d'origine */
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   FOOTER SOBRE ET COMPACT
   ========================================================================== */
footer#main-footer {
    width: 100% !important;
    background: #18181c !important;
    color: #a1a1aa !important;

    /* Piques plus aiguës, désordonnées et asymétriques */
    clip-path: polygon(
        0% 55px, 
        3% 15px, 
        6% 65px, 
        10% 0px, 
        14% 45px, 
        17% 20px, 
        21% 70px, 
        26% 10px, 
        30% 50px, 
        34% 5px, 
        38% 60px, 
        43% 25px, 
        47% 75px, 
        51% 0px, 
        55% 40px, 
        59% 15px, 
        63% 65px, 
        68% 8px, 
        72% 55px, 
        76% 20px, 
        80% 70px, 
        85% 5px, 
        89% 45px, 
        93% 15px, 
        97% 60px, 
        100% 30px, 
        100% 100%, 
        0% 100%
    ) !important;

    /* Marge supérieure ajustée pour la hauteur des piques */
    margin-top: -50px !important;
    padding: 85px 20px 90px 20px !important;
    border-top: none !important;
    box-sizing: border-box !important;
}

/* Adaptation responsive pour mobiles (écrans < 768px) */
@media (max-width: 768px) {
    footer#main-footer {
        /* Moins de piques, plus larges et moins hauts */
        clip-path: polygon(
            0% 15px, 
            12% 45px, 
            25% 25px, 
            38% 55px, 
            50% 35px, 
            63% 60px, 
            75% 20px, 
            88% 45px, 
            100% 25px, 
            100% 100%, 
            0% 100%
        ) !important;

        margin-top: -40px !important;
        padding: 70px 15px 80px 15px !important;
    }
}

.footer-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: center !important;
}

/* LOGO IMAGE EN GRIS SOBRE */
.footer-logo-img {
    height: 180px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%) opacity(0.9) !important;
    transition: filter 0.3s ease !important;
}

/* LIENS DU FOOTER */
.footer-links {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.footer-links a {
    color: #8e8e93 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.footer-links a:hover {
    color: #ffffff !important;
}

.footer-dot {
    color: #3a3a3c !important;
}

.footer-copy {
    font-size: 0.75rem !important;
    color: #a0a0a0 !important;
}

/* ==========================================================================
   8. LECTEUR FLOATING (CENTRÉ DÉROULÉ, ENROULEMENT VERS LE LOGO)
   ========================================================================== */

/* ÉTAT DÉROULÉ (PAR DÉFAUT - CENTRÉ) */
.vafm-player-premium {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    width: calc(100% - 40px) !important;
    max-width: 1050px !important;
    height: 75px !important;
    
    background: #131316 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 30px !important;
    z-index: 99999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    /* 🚀 ANIMATION D'ENROULEMENT / DÉROULEMENT SANS DÉPLACER LE LOGO */
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                max-width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
    will-change: width, max-width, left, transform;
}

/* LE LOGO CONSERVE SA TAILLE ET SA POSITION EXACTE */
.player-left { 
    display: flex !important; 
    align-items: center !important; 
    z-index: 2; 
    flex-shrink: 0 !important;
}

.cover-container {
    width: 140px !important; 
    height: 140px !important;
    margin-top: -50px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    z-index: 10;
}

#track-cover { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: contain !important; 
}

/* ÉLÉMENTS INTERNES */
.metadata-block,
.player-center,
.player-right,
.player-watermark { 
    transition: opacity 0.25s ease !important;
}

/* ==========================================================================
   ÉTAT ENROULÉ : LA BARRE SE RETRACTE, IL NE RESTE QUE LE LOGO IMMOBILE
   ========================================================================== */

.vafm-player-premium.player-collapsed {
    /* Maintient le bord gauche EXACTEMENT là où se trouve le logo en mode centré */
    left: calc(50% - 525px) !important;
    transform: translateX(0) !important;
    
    width: 140px !important;
    max-width: 140px !important;
    
    /* SUPPRESSION COMPLÈTE DE L'OVALE / CONTOUR */
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Ajustement sur petit écran pour garder le logo aligné si la fenêtre est réduite */
@media (max-width: 1090px) {
    .vafm-player-premium.player-collapsed {
        left: 20px !important;
    }
}

/* Masque le reste du lecteur pour ne laisser dépasser que le logo pur */
.vafm-player-premium.player-collapsed .metadata-block,
.vafm-player-premium.player-collapsed .player-center,
.vafm-player-premium.player-collapsed .player-right,
.vafm-player-premium.player-collapsed .player-watermark {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Limite la taille des cartes d'actualités et tronque le texte long */
.grid .card {
    display: flex;
    flex-direction: column;
    max-height: 480px;
    overflow: hidden;
    border-radius: 12px;
}

.grid .card .card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.grid .card .card-body {
    padding: 16px;
    overflow: hidden;
    display: -webkit-box;
    --webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* ==========================================================================
   ADAPTATION MOBILE - VAFM
   ========================================================================== */

@media screen and (max-width: 768px) {
    
    /* ----------------------------------------------------------------------
       1. HEADER CLEAN (Maintient exactement le style PC de .navbar)
       ---------------------------------------------------------------------- */
    header.navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 16px !important;
        /* Aucun changement sur la couleur/fond pour conserver le design PC */
    }

    /* Masquer le menu de liens (Accueil, Actualités, Émissions, Animateurs) */
    .nav-links {
        display: none !important;
    }

   /* ----------------------------------------------------------------------
   BOUTON PROFIL MOBILE - BONHOMME SVG SANS ÉCHEC
   ---------------------------------------------------------------------- */
@media screen and (max-width: 768px) {

    /* 1. On masque TOUT ce qu'il y a à l'intérieur du bouton (texte, spans, etc.) */
    #user-profile-zone .btn-secondary *,
    #user-profile-zone .btn-login * {
        display: none !important;
    }

    /* 2. Style du conteneur du bouton (transparent, taille fixe) */
    #user-profile-zone .btn-secondary,
    #user-profile-zone .btn-login {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 36px !important;
        height: 36px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /* Cache le texte brut qui traîne sans balise */
        font-size: 0 !important;
        color: transparent !important;
        position: relative !important;
    }

    /* 3. On dessine l'icône Bonhomme directement en CSS (SVG via background) */
    #user-profile-zone .btn-secondary::before,
    #user-profile-zone .btn-login::before {
        content: "" !important;
        display: block !important;
        width: 26px !important;
        height: 26px !important;
        background-color: #18181b !important; /* Couleur du bonhomme (Noir/Sombre) */
        /* Masque SVG de l'utilisateur */
        -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>") no-repeat center / contain !important;
        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>") no-repeat center / contain !important;
    }

    /* 4. Si l'utilisateur est CONNECTÉ (Avatar avec l'initiale) */
    .user-avatar-btn {
        background: transparent !important;
        border: none !important;
    }
    
    .user-avatar {
        font-size: 1rem !important;
        color: #ffffff !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: #e50914 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
    }
}

    /* ----------------------------------------------------------------------
       3. GRILLES & CONTENU (1 seule colonne)
       ---------------------------------------------------------------------- */
    #content {
        padding-bottom: 110px !important; /* Dégage la place sous le lecteur floating */
    }

    .grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

   /* ----------------------------------------------------------------------
   LECTEUR MOBILE - BOUTON TOUT À DROITE + TEXTE PROPRE SANS BUG
   ---------------------------------------------------------------------- */
@media screen and (max-width: 768px) {

    footer.vafm-player-premium {
        position: fixed !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 24px) !important;
        max-width: 460px !important;
        height: 60px !important;
        padding: 8px 16px !important;
        box-sizing: border-box !important;
        z-index: 99999 !important;
        
        /* Force l'alignement : Texte à gauche, Bouton à droite */
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important; 
        border-radius: 14px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }

    /* 1. On cache TOUT ce qui prend de la place inutilement à droite et à gauche */
    .cover-container, 
    .player-right, 
    .style-selector {
        display: none !important;
    }

    /* 2. Zone texte : prend TOUT l'espace disponible de gauche jusqu au bouton */
    .player-left {
        flex: 1 1 auto !important;
        min-width: 0 !important; /* Permet au texte de se restreindre sans pousser */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        margin-right: 12px !important;
    }

    .metadata-block {
        width: 100% !important;
        min-width: 0 !important;
    }

    #marquee {
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Titre : Pas d'animation buggée, coupe propre avec "..." si trop long */
    #current-track {
        display: block !important;
        font-weight: 700 !important;
        font-size: 0.95rem !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        animation: none !important; /* Annule l'animation de défilement */
    }

    .track-artist {
        font-size: 0.8rem !important;
        color: #b0b0b5 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    /* 3. Bouton Play / Pause : Collé et bloqué TOUT À DROITE */
    .player-center {
        flex: 0 0 auto !important; /* Ne s'étire pas, reste à sa taille */
        margin-left: auto !important; /* Pousse le bouton à l'extrême droite */
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .control-play-btn {
        width: 42px !important;
        height: 42px !important;
    }
}
}

/* Poignée Drag & Drop placée en bas à droite */
.drag-handle {
    position: absolute;
    bottom: 12px;
    right: 12px;
    top: auto;
    left: auto;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: grab;
    z-index: 10;
    font-size: 14px;
    user-select: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.drag-handle:hover {
    background: rgba(229, 9, 20, 0.85); /* Rouge VAFM au survol */
    transform: scale(1.05);
}

.drag-handle:active {
    cursor: grabbing;
}

/* Effet sur la carte qu'on déplace */
.sortable-ghost {
    opacity: 0.3;
    transform: scale(0.98);
    border: 2px dashed #e50914 !important;
}

.article-meta {
    margin-bottom: 20px;
    color: #a1a1aa;
    font-size: 0.9em;
}

.article-date {
    display: block;
    margin-bottom: 4px;
}

.article-author {
    margin: 0;
    color: #e50914; /* Rouge VAFM */
    font-weight: 500;
}

/* 1. Assurer le positionnement du conteneur */
.publish-dropdown-container {
    position: relative !important;
    display: inline-block;
}

/* 2. Style par défaut du menu (caché) */
.publish-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background-color: #18181c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 999999;
}

/* 3. QUAND LE MENU EST ACTIF (Force l'affichage) */
.publish-menu.active {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    animation: fadeInMenu 0.15s ease-out;
}

/* Petite animation fluide (optionnel) */
@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- STYLE DU PANNEAU D'HISTORIQUE --- */
.vafm-history-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(24, 24, 28, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px 14px 0 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.4s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    z-index: 99999;
}

.vafm-player-toolbar.history-active .vafm-history-panel {
    max-height: 300px;
    opacity: 1;
    padding: 15px 20px;
}

.vafm-history-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E50914;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vafm-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}

.vafm-history-list::-webkit-scrollbar {
    width: 4px;
}
.vafm-history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.vafm-history-item {
    font-size: 0.82rem;
    color: #e0e0e6;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vafm-history-item:last-child {
    border-bottom: none;
}

.vafm-history-time {
    font-size: 0.7rem;
    color: #8e8e93;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- LARGEur ET ALIGNEMENT DU LECTEUR --- */
.vafm-player-toolbar {
    position: fixed !important;
    width: 700px !important;
    max-width: 92vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vafm-player-toolbar.history-active {
    width: 750px !important;
    max-width: 95vw !important;
}

/* Bouton des 3 points forcé tout à fait à droite */
.vafm-history-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #b0b0bb;
    transition: all 0.2s ease;
    margin-left: auto !important;
    flex-shrink: 0;
    z-index: 100000;
}

.vafm-history-toggle-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    color: #ffffff;
    border-color: rgba(229, 9, 20, 0.4);
}

.vafm-history-toggle-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ----------------------------------------------------------------------
   section video
   ---------------------------------------------------------------------- */

.vafm-videos-section {
    padding: 60px 0 !important; /* Retire le padding horizontal de la section principale */
    max-width: 100% !important;
    margin: 0 auto !important;
    font-family: inherit;
    box-sizing: border-box;
}

.vafm-videos-header,
.vafm-videos-container {
    padding-left: 5% !important; /* Force le même alignement à 5% que les titres des autres sections */
    padding-right: 5% !important;
    box-sizing: border-box;
}

.vafm-videos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.vafm-videos-title {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #111115;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vafm-videos-title::before {
    content: '';
    display: block;
    width: 10px;
    height: 24px;
    border-radius: 4px;
}

.vafm-add-video-btn {
    background: #ffffff;
    color: #111115;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.vafm-add-video-btn:hover {
    background: #f4f4f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.vafm-videos-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-top: 10px;
    padding-bottom: 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.vafm-videos-container::-webkit-scrollbar {
    height: 6px;
}

.vafm-videos-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

/* --- STYLE PROPRE DES CARTES VIDÉOS --- */
.vafm-video-card {
    flex: 0 0 220px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden !important;
    position: relative;
    scroll-snap-align: start;
    background: #121218;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vafm-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.25);
}

.vafm-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Zone cliquable pour lancer la vidéo */
.vafm-video-click-zone {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 1;
}

/* Overlay esthétique confiné dans la carte */
.vafm-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.85) 85%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    z-index: 2;
    border-radius: 20px;
}

.vafm-video-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

/* Correction de l'en-tête de la carte vidéo */
.vafm-video-header-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

/* S'assure que le badge de statut reste à gauche */
.vafm-video-header-info .card-status-tag {
    position: static !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Regroupe les boutons Publier/Supprimer et les décale tout à droite */
.vafm-video-admin-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: static !important;
    margin-left: auto !important;
}

.vafm-video-footer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vafm-video-caption {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vafm-video-date {
    font-size: 0.72rem;
    color: #a0a0ab;
    font-weight: 500;
}

.vafm-video-admin-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Modales d'upload */
.vafm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.vafm-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.vafm-modal-box {
    background: #181822;
    color: #fff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
}

.vafm-dropzone {
    border: 2px dashed rgba(255,255,255,0.2);
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.2s;
}

.vafm-dropzone:hover {
    border-color: #E50914;
}

.vafm-modal-box input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background: #111115;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.vafm-modal-submit {
    width: 100%;
    background: #E50914;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* --- LECTEUR MODAL STYLE TIKTOK / REELS (PARFAITEMENT CENTRÉ) --- */
.vafm-tiktok-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vafm-tiktok-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.vafm-tiktok-wrapper {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    max-width: 400px !important;
    height: 85vh !important;
    max-height: 780px !important;
    background: #000 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 9, 20, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
}

.vafm-tiktok-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    cursor: pointer !important;
}

.vafm-tiktok-close-btn {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 20 !important;
    transition: transform 0.2s, background 0.2s !important;
}

.vafm-tiktok-close-btn:hover {
    transform: scale(1.1) !important;
    background: rgba(229, 9, 20, 0.85) !important;
}

.vafm-tiktok-gradient-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.9) 85%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.vafm-tiktok-info {
    position: absolute !important;
    bottom: 20px !important;
    left: 18px !important;
    right: 80px !important;
    z-index: 10 !important;
    pointer-events: none !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

.vafm-tiktok-author {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

.vafm-tiktok-badge {
    background: #E50914 !important;
    color: #fff !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

.vafm-tiktok-caption-text {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.35 !important;
}

.vafm-tiktok-side-actions {
    position: absolute !important;
    bottom: 24px !important;
    right: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    z-index: 10 !important;
}

.vafm-tiktok-action-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
}

.vafm-tiktok-action-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.vafm-tiktok-action-btn:hover {
    transform: scale(1.12) !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

.vafm-tiktok-action-btn.liked {
    background: rgba(229, 9, 20, 0.25) !important;
    border-color: #E50914 !important;
    color: #E50914 !important;
}

.vafm-tiktok-action-count {
    font-size: 0.73rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.vafm-tiktok-progress-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    z-index: 12 !important;
}

.vafm-tiktok-progress-fill {
    height: 100% !important;
    width: 0% !important;
    background: #E50914 !important;
    transition: width 0.1s linear !important;
}

.vafm-tiktok-play-center {
    position: absolute !important;
    inset: 0 !important;
    margin: auto !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    pointer-events: none !important;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.vafm-tiktok-play-center.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* ==========================================================================
   REELS — DÉFILEMENT VERTICAL ENTRE VIDÉOS (au lieu de fermer/rouvrir)
   ========================================================================== */

.vafm-reels-scroll {
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    scroll-snap-type: y mandatory !important;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.vafm-reels-scroll::-webkit-scrollbar {
    display: none;
}

.vafm-reels-scroll.no-smooth {
    scroll-behavior: auto !important; /* pour le saut initial, sans animation parasite */
}

.vafm-reels-slide {
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
    overflow: hidden;
}

/* Petite indication de défilement, affichée brièvement à l'ouverture */
.vafm-reels-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: vafm-reels-hint-pulse 3.2s ease forwards;
    pointer-events: none;
}

@keyframes vafm-reels-hint-pulse {
    0% { opacity: 0; transform: translate(-50%, -6px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.vafm-tiktok-close-btn {
    z-index: 30 !important; /* toujours au-dessus des slides qui défilent */
}

.vafm-comments-drawer {
    position: absolute !important;
    bottom: -100% !important;
    left: 0 !important;
    width: 100% !important;
    height: 65% !important;
    background: #141419 !important;
    border-radius: 24px 24px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    z-index: 30 !important;
    display: flex !important;
    flex-direction: column !important;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8) !important;
}

.vafm-comments-drawer.open {
    bottom: 0 !important;
}

.vafm-comments-header {
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    color: #fff !important;
}

.vafm-comments-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.vafm-comment-item {
    display: flex !important;
    gap: 10px !important;
    font-size: 0.85rem !important;
}

.vafm-comment-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #E50914 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.vafm-comment-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.vafm-comment-user {
    font-weight: 700 !important;
    color: #fff !important;
}

.vafm-comment-text {
    color: #d1d1d6 !important;
    line-height: 1.35 !important;
}

.vafm-comments-input-zone {
    padding: 12px 16px 20px 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    gap: 10px !important;
}

.vafm-comments-input-zone input {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 10px 16px !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    outline: none !important;
}

.vafm-comments-send-btn {
    background: #E50914 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0 16px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
}

.vafm-share-toast {
    position: absolute !important;
    top: 75px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-20px) !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
    z-index: 40 !important;
}

.vafm-share-toast.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Notification "points gagnés" (roue, temps passé sur le site...) —
   coin haut-droit pour ne jamais gêner le lecteur audio fixé en bas. */
.vafm-points-toast {
    position: fixed;
    top: 116px; /* sous le header + bandeau dédicaces, voir style.css */
    right: 20px;
    max-width: 320px;
    background: linear-gradient(135deg, #E50914 0%, #a40710 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 999998; /* juste sous le lecteur audio, au-dessus du reste */
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vafm-points-toast.show {
    opacity: 1;
    transform: translateX(0);
}

@media screen and (max-width: 768px) {
    .vafm-points-toast {
        top: auto;
        bottom: 110px; /* au-dessus du lecteur audio sur mobile */
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

.vafm-video-header-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

.card-status-tag {
    flex-shrink: 0;
}

.vafm-video-admin-actions {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}

/* Nettoyage radical des débordements sur les coins arrondis */
.vafm-video-card {
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Force le masquage des angles sous WebKit/Safari */
    transform: translateZ(0);
}

.vafm-video-card img {
    border-radius: 20px !important;
}

.vafm-video-overlay {
    border-radius: 20px !important;
}

/* Empêche le scroll de la page arrière lorsque la pop-up est ouverte */
body.vafm-lock-scroll {
    overflow: hidden !important;
    touch-action: none;
}

/* ==========================================================================
   CORRECTION OVERFLOW GLOBAL (Anti-scroll horizontal)
   ========================================================================== */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.drawer-open {
  overflow: hidden !important;
}

/* Overlay d'arrière-plan */
.vafm-user-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vafm-user-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Conteneur principal du tiroir (Fond blanc) */
.vafm-user-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  border-left: 1px solid #e5e5ea;
  box-shadow: none; 
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  overflow: hidden; /* Empêche le logo filigrane de déborder */
}

/* Logo VAFM filigrane en arrière-plan */
.vafm-user-drawer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* Agrandie de 85% à 115% */
  height: 100%; /* Agrandie de 85% à 115% */
  background-image: url('VAFM logo rouge.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

/* Ombre quand le tiroir est actif */
.vafm-user-drawer.active {
  right: 0;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

/* Élargissement pour le prolongement vers la gauche (Niveau 2 sur Desktop) */
.vafm-user-drawer.sub-open {
  width: 640px;
  max-width: 95vw;
}

/* Panneaux internes (Passe sur transparent pour laisser voir le blanc et le logo) */
.drawer-panel {
  position: absolute;
  top: 0;
  width: 320px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-sizing: border-box;
}

/* Panneau Principal : collé sur le bord DROIT du tiroir */
.drawer-panel-main {
  right: 0;
  z-index: 2;
}

/* Sous-panneau (Paramètres) : collé à GAUCHE du panneau principal */
.drawer-panel-sub {
  left: 0;
  z-index: 1;
  border-right: 1px solid #e5e5ea;
  opacity: 0;
  pointer-events: none;
  background: #ffffff;
}

.vafm-user-drawer.sub-open .drawer-panel-sub {
  opacity: 1;
  pointer-events: auto;
}

/* En-tête */
.drawer-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5ea;
  background: rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E50914;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.3);
}

.drawer-user-details {
  display: flex;
  flex-direction: column;
}

.drawer-user-name {
  color: #121212;
  font-weight: 700;
  font-size: 0.95rem;
}

.drawer-user-role {
  color: #6e6e73;
  font-size: 0.75rem;
  font-weight: 500;
}

.drawer-close-btn,
.drawer-back-btn {
  background: #f0f0f2;
  border: none;
  color: #121212;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover,
.drawer-back-btn:hover {
  background: #e5e5ea;
  color: #000;
}

.sub-panel-title {
  color: #121212;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Corps du menu */
.drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.drawer-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6e6e73;
  margin: 12px 0 4px 4px;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-menu-item:hover {
  background: #eef0f4;
  border-color: #d1d1d6;
  transform: translateX(3px);
}

.drawer-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121212;
}

.drawer-text {
  display: flex;
  flex-direction: column;
}

.drawer-text .title {
  color: #121212;
  font-size: 0.85rem;
  font-weight: 600;
}

.drawer-text .sub {
  color: #6e6e73;
  font-size: 0.72rem;
}

.drawer-arrow {
  color: #121212;
  transition: transform 0.2s, color 0.2s;
}

.drawer-menu-item:hover .drawer-arrow {
  color: #e61e2a;
  transform: translateX(3px);
}

/* Éléments Danger (Suppression) */
.danger-item {
  border-color: rgba(229, 9, 20, 0.2);
  background: rgba(229, 9, 20, 0.05);
}

.danger-item:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
}

.danger-icon { color: #ff4d5e; }
.danger-text { color: #ff4d5e; }

/* Pied de menu */
.drawer-footer {
  padding: 20px;
  border-top: 1px solid #e5e5ea;
  position: relative;
  z-index: 1;
}

.btn-drawer-logout {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #fff0f1;
  border: 1px solid #ffcdd2;
  color: #e61e2a;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-logout:hover {
  background: #e61e2a;
  color: #fff;
}

/* Bouton Google */
.btn-google-auth {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1a202c;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  margin-top: 10px;
}

.btn-google-auth:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Séparateur 'ou' */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 12px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MOBILE RESPONSIVE (ÉCRANS <= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .vafm-user-drawer {
    width: 85vw !important;
    max-width: 320px !important;
    right: -100% !important;
  }

  .vafm-user-drawer.active {
    right: 0 !important;
  }

  .vafm-user-drawer.sub-open {
    width: 85vw !important;
    max-width: 320px !important;
  }

  .drawer-panel {
    width: 100% !important;
  }

  .vafm-user-drawer.sub-open .drawer-panel-main {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .vafm-user-drawer.sub-open .drawer-panel-sub {
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    border-right: none !important;
  }

  /* Remonte le bouton de déconnexion au-dessus du lecteur audio */
  .drawer-footer {
    padding-bottom: 110px !important;
  }
}

/* ==========================================================================
   CARROUSEL VAFM - ANIMATION DOUCE & FLÈCHES NOIRES ÉPURÉES
   ========================================================================== */

/* 1. Ralentissement de l'animation de défilement (passe à 0.6s avec une courbe plus douce) */
.vafm-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  background: transparent !important;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.vafm-carousel-track::-webkit-scrollbar {
  display: none !important;
}

/* Structure des pages et grille 4x2 */
#recent-news-grid.vafm-news-carousel-mode,
#old-news-grid.vafm-news-carousel-mode,
.vafm-news-carousel-mode {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.vafm-carousel-wrapper {
  position: relative !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  overflow: visible !important;
  padding: 10px 0 !important;
}

.vafm-carousel-page {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  scroll-snap-align: start !important;
  padding: 10px 5px !important;
  background: transparent !important;
}

.vafm-carousel-page-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, auto) !important;
  gap: 22px !important;
  width: 100% !important;
}

/* 2. Cartes propres sans aucune ombre grise au bas */
.vafm-news-carousel-mode .card,
.vafm-carousel-page-grid .card {
  width: 100% !important;
  height: 280px !important;
  background-color: #0b0b0e !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease !important;
}

.vafm-news-carousel-mode .card:hover,
.vafm-carousel-page-grid .card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(229, 9, 20, 0.6) !important;
  box-shadow: none !important;
}

/* 3. FLÈCHES NOIRES SANS ROND (Suppression du fond, du contour et des ombres) */
.vafm-carousel-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 50 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #000000 !important; /* Flèche en noir pur */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.vafm-carousel-btn svg {
  width: 28px !important;
  height: 28px !important;
  fill: #000000 !important; /* Force la couleur noire sur l'icône SVG de la flèche */
}

.vafm-carousel-btn.prev {
  left: -40px !important;
}

.vafm-carousel-btn.next {
  right: -40px !important;
}

.vafm-carousel-btn:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #E50914 !important; /* Petit effet rouge VAFM discret au survol de la flèche */
  transform: translateY(-50%) scale(1.15) !important;
}

.vafm-carousel-btn:hover svg {
  fill: #E50914 !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .vafm-carousel-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 650px) {
  .vafm-carousel-page-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .vafm-carousel-btn {
    display: none !important;
  }
}

/* EXTINCTION RADICALE DE LA BOITE / OMBRE SOUS LE CARROUSEL */
#recent-news-grid.vafm-news-carousel-mode .card,
#old-news-grid.vafm-news-carousel-mode .card,
.vafm-news-carousel-mode .card,
.vafm-carousel-page-grid .card {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  background-image: none !important;
}

#recent-news-grid.vafm-news-carousel-mode .card:hover,
#old-news-grid.vafm-news-carousel-mode .card:hover,
.vafm-news-carousel-mode .card:hover,
.vafm-carousel-page-grid .card:hover {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* Ralentissement prononcé de l'animation de défilement (1.2 secondes) */
.vafm-carousel-track {
  scroll-behavior: smooth !important;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* S'assure que le défilement par page utilise bien la même douceur */
.vafm-carousel-page {
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
}

.vafm-notif-banner {
  position: fixed;
  bottom: 90px; /* Au-dessus du lecteur audio */
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #E50914;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
  max-width: 90%;
  width: 480px;
}

.vafm-notif-content { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.btn-notif-primary { background: #E50914; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-notif-secondary { background: transparent; color: #aaa; border: none; padding: 8px 12px; cursor: pointer; }

/* Style du bandeau d'installation iOS */
.ios-prompt-card {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  background: #18181b;
  border: 1px solid #27272a;
  border-top: 3px solid #E50914; /* Rouge VAFM */
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  color: #f4f4f5;
  font-family: inherit;
}

.ios-prompt-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ios-prompt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ios-prompt-icon {
  font-size: 1.4rem;
}

.ios-prompt-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  padding-right: 15px;
}

.ios-prompt-subtitle {
  font-size: 0.82rem;
  color: #a1a1aa;
  margin: 0 0 10px 0;
}

.ios-prompt-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 0.83rem;
  color: #d4d4d8;
  line-height: 1.5;
}

.ios-prompt-steps li {
  margin-bottom: 6px;
}

.ios-prompt-steps li:last-child {
  margin-bottom: 0;
}

.share-icon {
  display: inline-block;
  background: #27272a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.btn-user-avatar {
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent; /* Supprime le rond gris */
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-user-avatar:hover {
  transform: scale(1.08);
  opacity: 0.8;
  background: transparent; /* Garde le fond transparent au survol */
}

/* Le rond rouge reste actif uniquement quand l'utilisateur est connecté */
.btn-user-avatar.logged-in {
  background: transparent;
  padding: 0;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Le fond rouge s'applique uniquement à l'initiale de secours */
.user-initial {
  width: 100%;
  height: 100%;
  background-color: #E50914;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 50%;
}

.btn-user-avatar.logged-in:hover {
  background: #c10711;
  opacity: 1;
}

/* Alignement du centre */
.nav-center-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* Transition d'effacement sur les liens du menu */
.nav-links {
  display: flex;
  gap: 24px;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}

/* Bouton Loupe */
.btn-search-trigger {
  background: transparent;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-search-trigger:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* =========================================================
   HEADER + BARRE DE RECHERCHE CENTRÉE
   ========================================================= */

header.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    box-sizing: border-box;
}

/* Logo à gauche */
header.navbar .logo-container {
    flex: 0 0 auto;
}

/* Menu au centre */
header.navbar .nav-center-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Actions à droite */
header.navbar .nav-actions {
    flex: 0 0 auto;
}

/* =========================================================
   BARRE DE RECHERCHE
   ========================================================= */

header.navbar .search-bar-container {
    position: absolute !important;

    left: 50% !important;
    top: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: 520px !important;
    max-width: 55vw !important;

    margin: 0 !important;
    padding: 0 12px !important;

    box-sizing: border-box;

    display: none;
    align-items: center;

    background: #ebebeb;
    border-radius: 24px;

    opacity: 0;
    visibility: hidden;

    z-index: 1001;
}

/* Quand la recherche est ouverte */
header.navbar .search-bar-container.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Input */
header.navbar .search-bar-container input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 42px 10px 12px !important;

    border: none !important;
    outline: none !important;
    background: transparent !important;
}

/* Croix */
header.navbar .btn-close-search {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    padding: 4px !important;
}

.search-bar-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  width: 0%;
  max-width: 520px;

  opacity: 0;
  visibility: hidden;

  display: flex;
  align-items: center;

  /* Contour */
  border: 1px solid #a8a8a8;
  border-radius: 24px;
  background: #fff;

  padding: 0 12px;

  box-sizing: border-box;

  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.25s;

  overflow: visible;
}

/* Contour de la barre de recherche */
.navbar .search-bar-container {
    border: 1px solid #cfcfcf !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.search-bar-container.active {
  width: 100%;
  opacity: 1;
  visibility: visible;
}

.search-bar-container input {
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1a1a1a;
  outline: none;
}

.btn-close-search {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
}

/* Menu déroulant des résultats de recherche */
.search-results-dropdown {
  position: absolute;
  top: 115%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 1000;
  padding: 8px 0;
}

.search-results-dropdown.active {
  display: flex;
}

.search-result-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  color: #1a1a1a;
}

.search-result-item:hover {
  background: #f5f5f7;
}

.search-result-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #E50914;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-no-result {
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

#home-logo-btn {
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#main-footer {
  background-color: #121214;
  color: #a0a0a0;
  padding: 40px 20px 90px 20px; /* Espace en bas pour le lecteur audio */
  font-family: system-ui, -apple-system, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* Force l'alignement de gauche à droite */
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: flex-start !important; /* Aligne parfaitement le haut de chaque colonne */
  gap: 40px;
}

/* Alignement global des colonnes */
.footer-col {
  flex: 1;
  text-align: left;
  padding-top: 70px; /* Décale CONTACT et INFORMATIONS vers le bas pour s'aligner avec l'image */
}

/* La première colonne (Logo) ne doit pas avoir de décalage */
.footer-brand {
  flex: 1.5;
  padding-top: 0 !important;
}

/* Ajuste la marge sous le logo */
.footer-logo-img {
  max-width: 130px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  margin-bottom: 16px;
  display: block;
}

.about-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cecece;
  margin: 0;
}

/* Titres des colonnes (ex: CONTACT, INFORMATIONS) */
.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0 !important; /* Annule tout décalage supérieur */
  margin-bottom: 16px;
  line-height: 1; /* Assure la même hauteur de ligne sur tous les titres */
}

/* Listes */
.footer-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-list li {
  margin: 0 0 10px 0;
}

.footer-list a {
  color: #c2c2c2;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #ffffff;
}

/* Textes et paragraphes dans les colonnes */
.footer-col p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
}

/* Bas du footer (Copyright) */
.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #222222;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: #bdbdbd;
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Couleurs officielles */
.social-icons a .fa-youtube {
  color: #FF0000;
}

.social-icons a .fa-tiktok {
  color: #ffffff;
  filter: drop-shadow(-2px -1px 0px #25F4EE) drop-shadow(2px 1px 0px #FE2C55);
}

.social-icons a .fa-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.social-icons a .fa-facebook-f {
  color: #1877F2;
}

/* Écran de maintenance sur fond blanc */
#maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff !important;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 999999 !important; /* Très élevé pour couvrir le site */
  padding: 20px;
  box-sizing: border-box;
}

#maintenance-overlay.hidden {
  display: none !important;
}

.maintenance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  width: 100%;
  margin-bottom: 80px; /* Espace pour laisser voir le lecteur en bas */
}

.maintenance-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 24px;
}

.maintenance-content h1 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 12px;
  font-weight: 700;
}

.maintenance-content p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 28px;
  line-height: 1.5;
}

.maintenance-btn {
  background-color: #ce0606;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Forcer le lecteur floating à rester AU-DESSUS du fond de maintenance */
footer.vafm-player-premium {
  z-index: 2147483647 !important; /* Priorité absolue sur l'écran de maintenance */
}

/* S'assurer que le header est la référence d'affichage */
.navbar {
    position: relative;
    z-index: 10000;
}

/* Bouton Hamburger : caché sur PC par défaut */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 10px;
    z-index: 10001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2.5px;
    background-color: #1c1c1e;
    border-radius: 4px;
    transition: all 0.25s ease-in-out;
}

/* Transformation en X au clic */
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* MENU DROPDOWN MOBILE */
.mobile-dropdown-menu {
    position: absolute;
    top: 100%; /* Se colle exactement sous le header */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    z-index: 999999; /* Passe au-dessus de tout le reste */
    box-sizing: border-box;

    display: none; /* Masqué par défaut */
}

/* Affichage forcé au clic */
.mobile-dropdown-menu.active {
    display: block !important;
}

/* Style du bouton d'action */
.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    background: #f4f4f6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-dropdown-menu a:active {
    background-color: #E50914;
    color: #ffffff;
}

/* Affichage du bouton sur mobile */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Suppression des marges supérieures */
body, #content {
    margin-top: 0;
    padding-top: 0;
}

.hero-section, #home {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Cache les liens de navigation quand la recherche s'ouvre */
.nav-links.hidden {
    display: none !important;
}

/* Zone centrale */
.nav-center-zone {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container de recherche (nettoyé de tout fond/ombre fantôme) */
.search-bar-container {
    display: none;
    width: 100%;
    max-width: 600px;
    position: relative; /* Indispensable pour caler la croix à l'intérieur */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.search-bar-container.active {
    display: flex !important;
}

/* Le champ de recherche */
.search-bar-container input {
    width: 100%;
    padding: 10px 42px 10px 18px; /* 42px à droite pour laisser de la place à la croix */
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background-color: #f5f5f7;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box; /* Évite que l'input ne déborde du container */
}

/* Bouton fermer (Croix) bien calé à l'intérieur */
.btn-close-search {
    position: absolute;
    right: 14px; /* Rentrée de quelques pixels vers la gauche pour épouser l'arrondi */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    z-index: 2;
}

.btn-close-search:hover {
    color: #000;
}

/* Panneau latéral du compte (sidebar) */
.user-sidebar, 
.account-drawer, 
#user-drawer, 
#auth-modal { /* Remplace par le sélecteur exact de ton panneau latéral */
    z-index: 2000 !important; /* Force le panneau à passer au-dessus de tout le reste */
}

/* Overlay sombre derrière le panneau (si présent) */
.drawer-overlay, 
.modal-overlay {
    z-index: 1999 !important;
}

/* Header principal */
header, 
.navbar {
    z-index: 1000; /* Valeur inférieure au panneau */
}

#news-page-spa {
    display: none;
    width: 100%;
    min-height: 100vh; /* S'assure de couvrir au moins toute la hauteur de l'écran */
    background-color: #ffffff; /* Ajuste selon ton thème (#09090b si thème sombre) */
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* Seul le header principal est fixé en haut */
header, 
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
}

/* On remet la zone centrale du menu en position normale dans le flexbox */
.nav-center-zone {
    position: static !important; /* Annule le fixed sur les boutons */
}

/* Décale le contenu principal sous la barre fixe + le bandeau dédicaces
   sans les cacher (80px header + 36px bandeau dédicaces) */
#content, 
#news-page-spa {
    padding-top: 116px;
}

/* Le header + le bandeau dédicaces descendent tous les deux de 50px quand la
   barre noire admin est active (voir body.admin-logged-in .navbar et
   .dedicaces-ticker) : il faut alors laisser d'autant plus de place en haut. */
body.admin-logged-in #content,
body.admin-logged-in #news-page-spa {
    padding-top: 166px;
}
/* ==========================================================================
   PAGINATION DU CARROUSEL HERO — indicateurs visuels uniquement
   (non cliquables/tactiles, cf. audit accessibilité "zones cibles tactiles")
   ========================================================================== */
.mainSwiper .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    transition: width 0.3s ease, background 0.3s ease !important;
    cursor: default !important;
    pointer-events: none !important;
}

.mainSwiper .swiper-pagination-bullet-active {
    width: 24px !important;
    background: #ffffff !important;
}

/* ==========================================================================
   SECTION JEUX & ROUE DE LA FORTUNE
   ========================================================================== */
.vafm-games-section {
    position: relative;
    margin-top: 40px;
}

.vafm-wheel-card {
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-premium, 16px);
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.vafm-wheel-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#vafmWheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.05);
}

.vafm-wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid #E50914;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.vafm-wheel-center-cap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: #09090b;
    border: 3px solid #E50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.vafm-wheel-center-cap img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.vafm-wheel-info {
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

.vafm-wheel-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #E50914;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.vafm-wheel-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.vafm-wheel-desc {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.vafm-wheel-spin-btn {
    background: #E50914;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.vafm-wheel-spin-btn:hover:not(:disabled) {
    background: #b8141e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.vafm-wheel-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vafm-wheel-result {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    display: none;
}

.vafm-wheel-result.win {
    display: block;
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.4);
    color: #00e676;
}

.vafm-wheel-result.loose {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d4d4d8;
}

@media (max-width: 768px) {
    .vafm-wheel-card {
        padding: 24px;
        gap: 30px;
    }
    .vafm-wheel-wrapper {
        width: 260px;
        height: 260px;
    }
}

.user-points-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #e50914; /* Rouges aux couleurs VAFM */
  font-weight: 600;
  background-color: rgba(229, 9, 20, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.user-points-badge strong {
  font-weight: 800;
}

.lien-jeu {
    color: #E50914;
}

.adsbygoogle {
    margin-left: 20px;
}