/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors — pitch energy, Senegal palette */
    --primary-color: #007a3d;
    --primary-deep: #004d27;
    --secondary-color: #e11d2e;
    --accent-color: #f0c419;
    --dark-color: #0b1a12;
    --light-color: #ffffff;
    --surface: #eef5f0;
    --gray-color: #eef5f0;
    --text-dark: #142018;
    --text-light: #4a5c52;
    --border-color: #d5e3da;

    --senegal-gradient: linear-gradient(105deg, #007a3d 0%, #0b1a12 55%, #e11d2e 100%);
    --senegal-gradient-135: linear-gradient(135deg, #007a3d 0%, #f0c419 48%, #e11d2e 100%);
    --pitch-glow: radial-gradient(ellipse at 30% 20%, rgba(240, 196, 25, 0.18), transparent 50%),
                  radial-gradient(ellipse at 80% 80%, rgba(0, 122, 61, 0.35), transparent 45%);

    /* Typography — athletic display + clean body */
    --font-primary: 'Syne', sans-serif;
    --font-secondary: 'Outfit', sans-serif;
    --font-display: 'Bebas Neue', 'Syne', sans-serif;

    --section-padding: 100px 0;
    --container-padding: 0 24px;
    --radius: 6px;

    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--light-color);
}

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

.navbar img.logo-img,
.nav-logo img,
.footer-logo img {
    max-width: none !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center;
    clip-path: circle(50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--senegal-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark-color);
    border-color: var(--accent-color);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.hero .btn-secondary,
.join-band .btn-secondary {
    color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-secondary:hover,
.join-band .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    --scroll-progress: 0%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1000;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    border-bottom: 1px solid rgba(11, 26, 18, 0.06);
    transform: translateY(0);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    background-size: 200% 100%;
    animation: navStripe 6s linear infinite;
}

.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: var(--scroll-progress);
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    box-shadow: 0 0 12px rgba(240, 196, 25, 0.45);
    transition: width 0.08s linear;
    z-index: 2;
}

@keyframes navStripe {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 36px rgba(11, 26, 18, 0.12);
}

.navbar.nav-compact .nav-container {
    height: 60px;
}

.navbar.nav-compact .logo-img,
.navbar.nav-compact .nav-logo img {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
}

.navbar.nav-compact .logo-text {
    font-size: 1.1rem;
}

.navbar.nav-compact .cta-btn {
    padding: 0.45rem 1rem !important;
    font-size: 0.78rem;
}

.navbar.nav-hidden:not(.nav-shown) {
    transform: translateY(-110%);
}

.navbar.nav-shown,
.navbar.nav-hidden.nav-shown {
    transform: translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.logo-img,
.footer-logo img,
.nav-logo img {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(240, 196, 25, 0.55);
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    clip-path: circle(50%);
    -webkit-clip-path: circle(50%);
}

.nav-logo:hover .logo-img,
.nav-logo:hover img {
    transform: rotate(-8deg) scale(1.06);
    box-shadow: 0 0 0 4px rgba(240, 196, 25, 0.35);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.32rem;
    letter-spacing: 0.06em;
    color: var(--primary-deep);
    -webkit-text-fill-color: unset;
    background: none;
    line-height: 1;
    transition: color 0.25s ease;
}

.nav-logo:hover .logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
    padding: 0.55rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-menu > li > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.75rem;
    right: 0.75rem;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-menu > li > .nav-link:hover::after,
.nav-menu > li > .nav-link.active::after,
.nav-item-dropdown.open > .nav-link::after,
.nav-item-dropdown.has-active > .nav-link::after {
    transform: scaleX(1);
}

.nav-item-dropdown > .nav-link.has-caret {
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-item-dropdown:hover > .nav-link.has-caret,
.nav-item-dropdown.open > .nav-link.has-caret,
.nav-item-dropdown.has-active > .nav-link.has-caret {
    background: rgba(0, 122, 61, 0.08);
    color: var(--primary-color);
}

.nav-item-dropdown > .nav-link.has-caret .nav-caret {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item-dropdown:hover > .nav-link .nav-caret,
.nav-item-dropdown.open > .nav-link .nav-caret {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    min-width: 240px;
    background: #fff;
    border: 1px solid rgba(0, 122, 61, 0.12);
    border-radius: 12px;
    box-shadow:
        0 18px 40px rgba(11, 26, 18, 0.16),
        0 0 0 1px rgba(240, 196, 25, 0.12);
    padding: 0.55rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px) scale(0.96);
    transform-origin: top center;
    transition:
        opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.28s ease;
    z-index: 1100;
    overflow: hidden;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 100%;
    animation: navStripe 4s linear infinite;
}

.nav-item-dropdown:hover > .nav-dropdown,
.nav-item-dropdown.open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.84rem;
    border-radius: 8px;
    position: relative;
    opacity: 0;
    transform: translateX(-10px);
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        padding-left 0.22s ease;
}

.nav-item-dropdown:hover > .nav-dropdown a,
.nav-item-dropdown.open > .nav-dropdown a {
    opacity: 1;
    transform: translateX(0);
}

.nav-item-dropdown:hover > .nav-dropdown a:nth-child(1),
.nav-item-dropdown.open > .nav-dropdown a:nth-child(1) { transition-delay: 0.04s; }
.nav-item-dropdown:hover > .nav-dropdown a:nth-child(2),
.nav-item-dropdown.open > .nav-dropdown a:nth-child(2) { transition-delay: 0.08s; }
.nav-item-dropdown:hover > .nav-dropdown a:nth-child(3),
.nav-item-dropdown.open > .nav-dropdown a:nth-child(3) { transition-delay: 0.12s; }
.nav-item-dropdown:hover > .nav-dropdown a:nth-child(4),
.nav-item-dropdown.open > .nav-dropdown a:nth-child(4) { transition-delay: 0.16s; }
.nav-item-dropdown:hover > .nav-dropdown a:nth-child(5),
.nav-item-dropdown.open > .nav-dropdown a:nth-child(5) { transition-delay: 0.2s; }

.nav-dropdown a::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-color);
    flex-shrink: 0;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    background: linear-gradient(90deg, rgba(0, 122, 61, 0.1), rgba(240, 196, 25, 0.12));
    color: var(--primary-deep);
    padding-left: 1.05rem;
}

.nav-dropdown a:hover::before,
.nav-dropdown a.active::before {
    background: var(--accent-color);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(240, 196, 25, 0.25);
}

/* Keep Championnat menu exciting when header is compact on scroll */
.navbar.nav-compact .nav-dropdown {
    top: calc(100% + 0.35rem);
    box-shadow: 0 16px 36px rgba(11, 26, 18, 0.18);
}

.navbar.scrolled .nav-item-dropdown:hover > .nav-link.has-caret,
.navbar.scrolled .nav-item-dropdown.open > .nav-link.has-caret {
    background: rgba(240, 196, 25, 0.14);
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a050 100%);
    color: var(--light-color) !important;
    padding: 0.6rem 1.2rem !important;
    margin-left: 0.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-family: var(--font-primary);
    font-size: 0.84rem;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 18px rgba(0, 122, 61, 0.28);
    animation: ctaPulse 2.4s ease-in-out infinite;
}

.cta-btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffe066 100%);
    color: var(--dark-color) !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(240, 196, 25, 0.35);
    animation: none;
}

.nav-menu > li > .cta-btn::after {
    display: none;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(0, 122, 61, 0.28); }
    50% { box-shadow: 0 6px 22px rgba(0, 122, 61, 0.45), 0 0 0 6px rgba(0, 122, 61, 0.1); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero — full-bleed, brand-first composition */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 28%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 7s ease-out;
    will-change: opacity, transform;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.06);
    animation: heroKenBurns 18s ease-out forwards;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(11, 26, 18, 0.4) 0%, rgba(11, 26, 18, 0.45) 35%, rgba(11, 26, 18, 0.92) 100%),
        linear-gradient(90deg, rgba(0, 77, 39, 0.5) 0%, transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 12vh;
    color: var(--light-color);
}

.hero-inner {
    max-width: 920px;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 11vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    margin: 0 0 1.25rem;
    color: var(--light-color);
    opacity: 0;
    transform: translateY(28px);
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-brand span {
    display: block;
    color: var(--accent-color);
}

.hero-headline {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 2.6vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    max-width: 22ch;
    margin: 0 0 0.85rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 38ch;
    margin: 0 0 2rem;
    opacity: 0;
    transform: translateY(16px);
    animation: heroReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(16px);
    animation: heroReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    opacity: 0;
    animation: heroReveal 0.8s ease 1.1s forwards;
    cursor: default;
}

.hero-scroll::before {
    content: '';
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    position: relative;
}

.hero-scroll::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--accent-color);
    animation: scrollDot 1.5s ease-in-out infinite;
}

.hero-scroll i {
    animation: scrollBounce 1.6s ease-in-out infinite;
    color: var(--accent-color);
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

@keyframes heroKenBurns {
    to { transform: scale(1); }
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.highlight {
    color: var(--accent-color);
}

/* Page Header - Base Styles */
.page-header {
    background: var(--senegal-gradient-135);
    color: var(--light-color);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--accent-color);
}

/* Section Filters - Base Styles */
.schedule-filters,
.news-filters {
    padding: 40px 0;
    background: var(--gray-color);
    border-bottom: 1px solid var(--border-color);
}

.filters-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-select,
.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    background: var(--light-color);
    color: var(--text-dark);
    transition: var(--transition);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 133, 63, 0.1);
}

/* Info Sections - Base Styles */
.registration-info,
.contact-info,
.partners-overview {
    padding: var(--section-padding);
    background: var(--light-color);
}

.info-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card,
.contact-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover,
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-icon,
.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--senegal-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--light-color);
    font-size: 1.5rem;
}

.info-card h3,
.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-card p,
.contact-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Categories Overview - Base Styles */
.categories-overview {
    padding: 60px 0 40px;
    background: var(--gray-color);
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-title {
    animation: fadeInUp 0.6s ease-out;
}

.section-header .section-subtitle {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Cards and Tables */
.card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.5rem;
    background: var(--gray-color);
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-color);
    border-top: 1px solid var(--border-color);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
}

.table tbody tr:hover {
    background: var(--gray-color);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--light-color);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 133, 63, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--light-color);
    cursor: pointer;
}

.form-check-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.form-error {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.form-success {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* About Preview Section */
.about-preview {
    padding: var(--section-padding);
    background: var(--gray-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.mission-list {
    list-style: none;
    margin-bottom: 2rem;
}

.mission-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.mission-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.categories {
    padding: var(--section-padding);
    background: var(--light-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--light-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--senegal-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: var(--light-color);
}

.category-card h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.pools {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pool {
    background: var(--gray-color);
    padding: 1rem;
    border-radius: 10px;
    flex: 1;
}

.pool h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Statistics Section */
.statistics {
    padding: var(--section-padding);
    background: var(--senegal-gradient-135);
    color: var(--light-color);
}

.statistics .section-title {
    color: var(--light-color);
}

.statistics .section-title::after {
    background: var(--accent-color);
}

.statistics .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Latest News Section */
.latest-news {
    padding: var(--section-padding);
    background: var(--gray-color);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 300px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-date {
    color: var(--text-light);
}

.news-category {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.news-card.featured .news-title {
    font-size: 1.6rem;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.news-link:hover {
    gap: 10px;
}

.news-footer {
    text-align: center;
}

/* Partners Section */
.partners {
    padding: var(--section-padding);
    background: var(--light-color);
}

.partners-slider {
    padding: 2rem 0;
}

.partner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 1rem;
}

.partner-slide img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
.footer {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(0, 122, 61, 0.35), transparent 45%),
        radial-gradient(ellipse at 90% 100%, rgba(225, 29, 46, 0.2), transparent 40%),
        linear-gradient(180deg, #10281a 0%, #0b1a12 100%);
    color: var(--light-color);
    padding: 4.25rem 0 0;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    background-size: 300% 100%;
    animation: navStripe 8s linear infinite;
}

.footer::after {
    content: 'GALSEN CHAMPIONSHIP';
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 9vw, 6.5rem);
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.035);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.1rem;
}

.footer-logo img {
    width: 56px;
    height: 56px;
    border-color: rgba(240, 196, 25, 0.55);
    box-shadow: 0 0 0 4px rgba(240, 196, 25, 0.12);
    transition: transform 0.35s ease;
}

.footer-logo:hover img {
    transform: rotate(8deg) scale(1.05);
}

.footer-logo span {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    color: var(--light-color);
    line-height: 1.1;
}

.footer-section > p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.35rem;
    line-height: 1.65;
    font-size: 0.98rem;
}

.footer-section > p::after {
    content: ' Le terrain des champions.';
    display: block;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.footer-section h4 {
    color: var(--light-color);
    margin-bottom: 1.1rem;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-section h4::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin-top: 0.55rem;
}

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

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 0.65rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-4px) scale(1.08);
}

.footer .contact-info {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.footer .contact-info p,
.footer .contact-info a {
    display: grid;
    grid-template-columns: 1rem 1fr;
    column-gap: 0.65rem;
    align-items: baseline;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.45;
    transition: color 0.2s ease;
    word-break: break-word;
}

.footer-section .contact-info p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer .contact-info a:hover {
    color: var(--accent-color);
}

.footer .contact-info i {
    color: var(--accent-color);
    width: 1rem;
    font-size: 0.85rem;
    text-align: center;
    line-height: inherit;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.18);
}

.footer-bottom p {
    margin: 0;
    letter-spacing: 0.02em;
}

/* Responsive Design - Import comprehensive responsive styles */
@import url('responsive.css');

/* Basic responsive utilities */
.hidden-mobile {
    display: block;
}

.visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
    
    .visible-mobile {
        display: block;
    }
}

/* Grid utilities for responsive layouts */
.grid-responsive {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Text responsive utilities */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.title-responsive {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Spacing responsive utilities */
.spacing-responsive {
    padding: clamp(1rem, 3vw, 3rem);
}

.margin-responsive {
    margin: clamp(1rem, 2vw, 2rem);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--light-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
