:root {
    /* --- Colors --- */
    --primary: #FF6600;
    /* Vibrant Orange */
    --primary-dark: #cc5200;
    --primary-light: #ff8533;

    --secondary: #000000;
    /* Pure Black */
    --secondary-light: #1a1a1a;

    --accent: #ffffff;

    --text-main: #121212;
    --text-light: #666666;
    --text-white: #ffffff;

    --bg-light: #f8f9fa;
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #ff8c00 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);

    /* --- Typography --- */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* --- Spacing --- */
    --container-width: 1200px;
    --header-height: 80px;

    /* --- UI Elements --- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease;
}

/* --- Resets & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.text-primary {
    color: var(--primary) !important;
}

.text-white {
    color: var(--text-white) !important;
}

.text-center {
    text-align: center;
}

.bg-dark {
    background-color: var(--bg-dark);
    color: white;
}

.bg-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--secondary);
}

/* --- Header / Navigation (PSG Style) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    /* Dark semi-transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: flex-start;
    /* Aligné à gauche */
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 50px;
    /* Espace entre le logo et le menu */
}

.logo-container img {
    height: 50px;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg');
    /* Placeholder image needed */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: var(--header-height);
}

.hero h2 {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeInUp 1.2s ease forwards;
}

/* --- Cards (News/Features) --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h3 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon-box {
    padding: 30px;
    text-align: center;
    background: var(--bg-light);
}

.feature-card h4 {
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

/* --- Next Match Section (Banner) --- */
.next-match-banner {
    background: var(--secondary);
    color: white;
    padding: 60px 0;
    text-align: center;
    background-image: var(--gradient-dark);
}

.match-score-board {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.team-logo {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    object-fit: contain;
}

.vs-badge {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- Footer --- */
footer {
    background: var(--bg-darker);
    color: #aeaeae;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-content ul li {
    margin-bottom: 12px;
}

.footer-content ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    background: black;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HAMBURGER BUTTON (hidden on desktop)
   ============================================ */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 6px;
    transition: background 0.3s;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   MOBILE DROPDOWN MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: rgba(0, 0, 0, 0.95);
    flex-shrink: 0;
}

.mobile-menu-header .logo-text h1 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

.mobile-menu-header .logo-text span {
    font-size: 0.65rem;
    color: var(--primary);
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav ul li a {
    display: block;
    padding: 18px 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav ul li a:hover {
    background: #f8f8f8;
    color: var(--primary);
    padding-left: 32px;
}

.mobile-nav ul li a.active {
    color: var(--primary);
    border-left: 3px solid var(--primary);
    background: rgba(255, 102, 0, 0.04);
}

.mobile-menu.open .mobile-nav ul li {
    animation: mobileSlideIn 0.35s ease forwards;
    opacity: 0;
}

.mobile-menu.open .mobile-nav ul li:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-menu.open .mobile-nav ul li:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-menu.open .mobile-nav ul li:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-menu.open .mobile-nav ul li:nth-child(4) {
    animation-delay: 0.2s;
}

.mobile-menu.open .mobile-nav ul li:nth-child(5) {
    animation-delay: 0.25s;
}

.mobile-menu.open .mobile-nav ul li:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-cta {
    padding: 20px 25px;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.open {
    display: block;
    opacity: 1;
}

/* ============================================
   RESPONSIVE — max 991px
   ============================================ */
@media (max-width: 991px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-desktop {
        display: none;
    }

    .navbar {
        justify-content: space-between;
    }

    .logo-container {
        margin-right: 0;
    }

    .logo-container img {
        height: 42px;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text span {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .hero h2 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .section-title h3 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 20px 40px;
    }
}

/* ============================================
   RESPONSIVE — max 576px
   ============================================ */
@media (max-width: 576px) {
    header {
        height: 65px;
    }

    .logo-container img {
        height: 36px;
    }

    .logo-text h1 {
        font-size: 0.85rem;
    }

    .hero {
        height: 80vh;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.8rem;
    }

    .section-title h3 {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .match-score-board {
        gap: 15px;
    }

    .team-logo {
        width: 55px;
        height: 55px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 15px 30px;
    }

    footer {
        padding-top: 40px;
    }
}