/* =========================================
   BUDOKAN ACADEMY - PREMIUM THEME
   Modern, Clean, High-End Design
   ========================================= */

:root {
    --primary-red: #D32F2F;
    --primary-dark: #111111;
    --accent-gold: #C5A059;
    --text-dark: #1f2937;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-stats-premium {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .hero-stats-premium {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }
}

/* =========================================
   PREMIUM HEADER
   ========================================= */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    /* Opaque white by default */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.premium-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.premium-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    /* Context for mobile menu */
    height: 100%;
}

/* Logo Area */
.premium-header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-dark);
    z-index: 1101;
    /* Above mobile menu */
}

/* Logo Area */
.premium-header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-dark);
    z-index: 1101;
    /* Above mobile menu */
}

.premium-header .logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.premium-header.scrolled .logo img {
    height: 42px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation */
.premium-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link-premium {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link-premium:hover,
.nav-link-premium.active {
    color: var(--primary-red);
}

.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link-premium:hover::after,
.nav-link-premium.active::after {
    width: 100%;
}

.nav-link-premium.highlighted {
    background: rgba(211, 47, 47, 0.08);
    color: var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-link-premium.highlighted::after {
    display: none;
    /* Remove default underline for highlighted items */
}

.nav-link-premium.highlighted:hover {
    background: rgba(211, 47, 47, 0.15);
    color: var(--primary-red);
}

/* Button Inscription */
.btn-inscription-premium {
    background: linear-gradient(135deg, #D32F2F 0%, #b71c1c 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-inscription-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(211, 47, 47, 0.3);
    background: linear-gradient(135deg, #E53935 0%, #c62828 100%);
}

/* Dropdown Menu */
.premium-dropdown {
    position: relative;
    padding: 0.5rem 0;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.premium-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.premium-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: var(--primary-red);
    transform: translateX(5px);
}

/* Mobile Toggle */
.mobile-toggle-premium {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1101;
    /* Above mobile menu */
}

.mobile-toggle-premium span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================
   PREMIUM MOBILE MENU
   ========================================= */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .premium-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        /* Leave some space to see the overlay */
        max-width: 400px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top */
        align-items: center;
        padding: 5rem 2rem 2rem;
        z-index: 1250;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0);
        visibility: hidden;
    }

    .premium-nav.active {
        right: 0;
        transform: translateX(0);
        visibility: visible;
    }

    /* Ensure nav is hidden correctly when not active */
    .premium-nav:not(.active) {
        transform: translateX(100%);
        visibility: hidden;
        right: 0;
        /* Keep it positioned */
    }

    .mobile-toggle-premium {
        display: flex !important;
        z-index: 1400 !important;
        /* Always on top */
        margin-left: auto;
        padding: 0;
        width: 30px;
        height: 24px;
        position: relative;
        justify-content: space-between;
    }

    .mobile-toggle-premium span {
        width: 100%;
        height: 3px;
        /* Softer/thicker */
        background-color: var(--primary-dark);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: absolute;
        left: 0;
    }

    .mobile-toggle-premium span:nth-child(1) {
        top: 0;
    }

    .mobile-toggle-premium span:nth-child(2) {
        top: 10px;
    }

    .mobile-toggle-premium span:nth-child(3) {
        top: 20px;
    }

    /* Active State (X) - FIXED position */
    .mobile-toggle-premium.active {
        position: fixed;
        top: 25px;
        right: 25px;
    }

    .mobile-toggle-premium.active span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
        /* Smoother X */
        background-color: var(--primary-red);
    }

    .mobile-toggle-premium.active span:nth-child(2) {
        opacity: 0;
        left: -20px;
        /* Fly out effect */
    }

    .mobile-toggle-premium.active span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
        background-color: var(--primary-red);
    }

    /* Mobile Dropdown Override */
    .premium-dropdown {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .dropdown-trigger {
        justify-content: center;
        width: 100%;
        padding: 1rem 0.75rem;
        /* More padding */
        font-size: 1.1rem;
        color: #4b5563;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
    }

    .dropdown-content {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        box-shadow: none !important;
        border: none;
        background: rgba(249, 250, 251, 0.5);
        /* Slight contrast */
        display: none;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0;
        margin-top: 5px;
        border-radius: 8px;
    }

    .premium-dropdown.active .dropdown-content {
        display: block;
    }

    .premium-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown-content a {
        padding: 0.8rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-link-premium {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    /* Staggered Animation for links */
    .premium-nav.active .nav-link-premium {
        opacity: 1;
        transform: translateY(0);
    }

    .premium-nav.active .nav-link-premium:nth-child(1) {
        transition-delay: 0.1s;
    }

    .premium-nav.active .nav-link-premium:nth-child(2) {
        transition-delay: 0.15s;
    }

    .premium-nav.active .nav-link-premium:nth-child(3) {
        transition-delay: 0.2s;
    }

    .premium-nav.active .nav-link-premium:nth-child(4) {
        transition-delay: 0.25s;
    }

    .premium-nav.active .nav-link-premium:nth-child(5) {
        transition-delay: 0.3s;
    }

    .premium-nav.active .nav-link-premium:nth-child(6) {
        transition-delay: 0.35s;
    }

    .btn-inscription-premium {
        margin-top: 2rem;
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
        opacity: 0;
        transform: translateY(20px);
    }

    .premium-nav.active .btn-inscription-premium {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.4s;
    }

    /* Lock body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Elevate header when menu is open to cover announcement bar */
    body.menu-open .premium-header {
        z-index: 1300 !important;
    }
}

/* =========================================
   PREMIUM FOOTER
   ========================================= */
.premium-footer {
    background: #0f172a;
    /* Très sombre bleuté pour moderne */
    color: #e2e8f0;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Ornaments */
.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-grid {
    display: grid;
    margin-bottom: 4rem;
}

/* Update regular footer grid to accommodate partner */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.partner-img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px;
    transition: transform 0.3s ease;
    display: block;
    margin-top: 0.5rem;
}

.partner-img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

/* Links Section */
.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link::before {
    content: '›';
    color: var(--primary-red);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-link:hover::before {
    opacity: 1;
}

/* Contact Info */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #94a3b8;
}

.contact-icon {
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================
   ACTUALITÉS CARD IMPROVEMENTS
   ========================================= */
.text-only-card-content {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.big-quote-icon {
    font-size: 3rem;
    color: rgba(211, 47, 47, 0.1);
    margin-bottom: 1rem;
    line-height: 1;
}

.text-highlight {
    font-size: 1.15rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    /* Fix for long URLs */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* SEO Links Section */
.seo-links-section {
    background: #f8fafc;
    padding: 4rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.seo-links-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.seo-col h4 {
    font-size: 1rem;
    color: #111;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seo-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-col li {
    margin-bottom: 0.8rem;
}

.seo-col a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.seo-col a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* =========================================
   SEARCH INPUT STYLING
   ========================================= */
.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 10px 15px -3px rgba(211, 47, 47, 0.1), 0 4px 6px -2px rgba(211, 47, 47, 0.05);
    background: #fff;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.search-box input:focus+.search-icon {
    opacity: 1;
}

/* =========================================
   REACTIONS Z-INDEX FIX
   ========================================= */
/* Ensure the reactions container allows popup overflow */
.reactions-wrapper {
    position: relative;
    z-index: 10;
}

/* The actual reaction button */
.reaction-btn {
    position: relative;
    z-index: 1;
}

/* The popup container (emoji picker) */
.emoji-picker-popup {
    z-index: 9999 !important;
    /* Force high z-index */
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   HOMEPAGE NEWS SECTION
   ========================================= */
.homepage-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.homepage-news-card {
    background: white;
    border-radius: 20px;
    /* overflow: hidden;  REMOVED for z-index popup */
    position: relative;
    /* Ensure z-index context works */
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.homepage-news-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: top;
    background: #f1f5f9;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Album Grid Styles for Homepage */
.homepage-album-grid {
    height: 220px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
}

.homepage-album-item {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.homepage-album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.homepage-news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.homepage-news-date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.homepage-news.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    /* Fix for long URLs */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.homepage-news-text {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fix for long URLs */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.homepage-news-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;

    align-items: center;
}

/* Fix Text Visibility for Light Background */


.judo-section h2 {
    font-weight: 800;
}

/* Fix Actualites Card Overflow for Reactions */
.news-card {
    overflow: visible !important;
}

/* =========================================
   PREMIUM STATS SECTION (Judo.php)
   ========================================= */
.premium-stats-container {
    margin: 3rem 0;
    padding: 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.premium-stats-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.highlight-red {
    color: #D32F2F;
    position: relative;
    display: inline-block;
}

.highlight-red::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #D32F2F;
    opacity: 0.2;
}

.premium-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.p-stat-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.p-stat-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #D32F2F;
}

.p-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #D32F2F;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.p-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.p-stat-card.highlight {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
}

.p-stat-card.highlight .p-stat-number,
.p-stat-card.highlight .p-stat-label {
    color: white;
}

/* =========================================
   PREMIUM HERO FIX
   ========================================= */
.premium-hero {
    position: relative;
    /* Header is fixed (~80px), so add generous padding-top */
    padding-top: 180px;
    padding-bottom: 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #111;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 0.4) 50%, #111 100%);
    z-index: 2;
}

.hero-content-premium {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;

    /* Premium Glass Dark Background */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);

    /* Gold Border Gradient */
    border: 1px solid transparent;
    border-radius: 50px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    /* Typography */
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;

    /* Gold Text Gradient */
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 40%, #b38728 70%, #fbf5b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Effects */
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(179, 135, 40, 0.15);
}

.badge-text {
    /* Ensure only text gets the gradient */
    display: inline-block;
}

.badge-icon {
    font-size: 1.2rem;
    /* Optional: Undo text gradient for the emoji if needed, or keep it */
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-title-premium {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle-premium {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient-red {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@media (max-width: 768px) {
    .premium-hero {
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-title-premium {
        font-size: 2.5rem;
    }
}

/* =========================================
   ADDITIONAL HERO STYLES (Restored & Enhanced)
   ========================================= */

.hero-actions-premium {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
    /* Ensure clickable */
}

.btn-hero-primary {
    background: linear-gradient(135deg, #D32F2F 0%, #a50e0e 100%);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.6);
    background: linear-gradient(135deg, #ff4444 0%, #c62828 100%);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    border-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-stats-premium {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 10;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    /* Larger */
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

/* Optional: Make the numbers gold? */
/* .stat-value {
   background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
} */

.stat-label {
    font-size: 0.9rem;
    color: #e2e8f0;
    /* Clear light gray */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .premium-hero {
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-title-premium {
        font-size: 2.5rem;
    }

    .hero-stats-premium {
        flex-direction: column;
        gap: 2rem;
        padding-top: 2rem;
    }

    .stat-divider {
        display: none;
    }
}

/* =========================================
   HISTOIRE SECTION STYLES
   ========================================= */
.historique-block {
    margin: 4rem 0;
    padding: 2.5rem;
    background: #ffffff;
    border-left: 6px solid #C5A059;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.historique-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.historique-icon {
    font-size: 2rem;
}

.historique-header h3 {
    color: #1e293b;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.historique-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.historique-text .text-red {
    color: #D32F2F;
}

.historique-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.historique-footer blockquote {
    font-style: italic;
    color: #C5A059;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

/* =========================================
   MOBILE RESPONSIVE TWEAKS FOR JUDO SECTION
   ========================================= */
@media (max-width: 992px) {
    .judo-content {
        grid-template-columns: 1fr !important;
        /* Force single column on tablet/mobile */
        gap: 3rem;
    }

    .judo-info h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .judo-description {
        text-align: center;
    }

    .historique-block {
        margin: 3rem 0;
    }
}

@media (max-width: 768px) {
    .historique-block {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .historique-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .historique-header h3 {
        font-size: 1.5rem;
    }

    .premium-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Start with 2 cols */
        gap: 1rem;
    }

    .p-stat-card {
        padding: 1rem 0.5rem;
    }

    .p-stat-number {
        font-size: 1.5rem;
    }

    .judo-image {
        gap: 1rem;
        margin-top: 2rem;
        /* Ensure cards are readable */
    }

    .judo-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .premium-stats-grid {
        grid-template-columns: 1fr !important;
        /* 1 col on small phones */
    }

    .judo-image {
        grid-template-columns: 1fr !important;
        /* 1 col on small phones */
    }

    .historique-header h3 {
        font-size: 1.3rem;
    }
}