/* Celtics de l'Ouest - Modern Design 2025 */
:root {
    --celtics-green: #008040;
    /* Classic Celtics Green */
    --celtics-dark: #004d26;
    --celtics-light: #2ecc71;
    --accent-gold: #f1c40f;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1400px;
    /* Increased from 1200px */
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    /* Reduced padding */
}

/* Hide mobile footer on desktop */
.nav-footer {
    display: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    /* Reduced from 1.5rem */
    font-weight: 800;
    color: var(--celtics-green);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    position: relative;
    z-index: 2001;
}

.logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
    /* Reduced from 30px */
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    font-size: 0.95rem;
    /* Slightly smaller text */
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* ... existing nav-link styles ... */

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--celtics-green);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--celtics-green);
}

.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 1100;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-link:hover {
    background-color: var(--light-gray);
    color: var(--celtics-green);
}

.nav-item-dropdown:hover .dropdown-menu {
    display: flex;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    /* Larger icon */
    cursor: pointer;
    position: relative;
    z-index: 3000;
    /* Extremely high to stay on top */
    padding: 10px;
    /* Larger hit area */
    color: var(--text-dark);
    transition: 0.3s;
}

.menu-toggle:hover {
    color: var(--celtics-green);
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1579952363873-27f3bade9f55?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn-primary,
.btn-secondary,
.btn {
    padding: 22px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--celtics-green);
    color: var(--white);
    border-color: var(--celtics-green);
}

.btn-secondary {
    background-color: #7f8c8d;
    color: var(--white);
    border-color: #7f8c8d;
}

.btn-primary:hover {
    background-color: #00642a;
    border-color: #00642a;
}

/* Increased section spacing */
.section {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--white);

}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--celtics-green);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* News / Alert */
.news-alert {
    background: linear-gradient(135deg, var(--celtics-green), var(--celtics-light));
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.news-alert h3 {
    margin-bottom: 10px;
}

/* Teams Grid */
.teams-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    border-left: 5px solid var(--celtics-green);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-header {
    background-color: var(--celtics-green);
    color: white;
    padding: 20px;
    min-width: 250px;
    text-align: center;
    font-weight: 700;
}

.team-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-league {
    display: flex;
    align-items: center;
    gap: 15px;
}

.league-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* Committee Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.board-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--celtics-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.board-card:hover {
    transform: translateY(-5px);
}

.board-card img,
.board-card .board-img-empty {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--celtics-green);
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2.5rem;
}

.board-card .role {
    color: var(--celtics-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}

.board-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}


/* Contact & Map */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--celtics-green);
    margin-right: 15px;
    width: 30px;
}

.map-wrapper {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-card);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 80px 0 120px;
    border-top: 5px solid var(--celtics-green);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--celtics-green);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
}

.footer-col p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: 0.3s;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background: var(--celtics-green);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a0a0;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--celtics-green);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile / Tablet Responsive Adjustment */
@media (max-width: 1100px) {

    /* Increased breakpoint from 768px to 1100px */
    .logo {
        z-index: 2001;
        position: relative;
        max-width: 80%;
        /* Don't crowd the burger */
        font-size: 1rem;
        /* Smaller text on small screens */
    }

    .menu-toggle {
        display: block;
        z-index: 3000;
        position: relative;
        flex-shrink: 0;
        /* Don't let it be squashed */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 100px 30px 40px;
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        transform: translateX(-100%);
        /* Start off-screen */
        gap: 0;
        overflow-y: auto;
        display: flex;
        z-index: 2500;
        visibility: hidden;
        /* Prevent interaction when closed */
        opacity: 0;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    .nav-menu>li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu .nav-link {
        padding: 15px 0;
        display: block;
        width: 100%;
        font-size: 1.2rem;
    }

    /* Remove the underline on mobile */
    .nav-menu .nav-link::after {
        display: none;
    }

    /* Keep active link green */
    .nav-menu .nav-link.active {
        color: var(--celtics-green);
    }

    .nav-item-dropdown {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        align-items: center;
        padding: 0;
        background: rgba(0, 128, 64, 0.05);
        margin-top: 0;
        border-radius: 0;
        width: 100%;
        gap: 0;
    }

    /* Disable hover effect on mobile so touch doesn't trigger it */
    .nav-item-dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Only show when toggled via JS */
    .dropdown-menu.active {
        display: flex !important;
    }

    .dropdown-link {
        padding: 12px 20px;
        text-align: center;
        font-size: 1.05rem;
        width: 100%;
        font-weight: 500;
        border-top: 1px solid rgba(0, 128, 64, 0.1);
    }

    .nav-footer {
        width: 100%;
        margin-top: auto;
        padding-top: 40px;
        text-align: center;
        border-top: 2px solid var(--celtics-green);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .nav-footer-info {
        font-size: 0.9rem;
        color: #666;
    }

    .nav-footer-socials {
        display: flex;
        justify-content: center;
        gap: 20px;
        font-size: 1.5rem;
    }

    .nav-footer-socials a {
        color: var(--celtics-green);
    }





    .hero-content h1 {
        font-size: 2.5rem;
    }

    .team-body {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: column;
        border-left: none;
        border-top: 5px solid var(--celtics-green);
    }

    .team-header {
        width: 100%;
    }
}

/* Inscription CTA */
.cta-section {
    background: linear-gradient(rgba(0, 128, 64, 0.9), rgba(0, 77, 38, 0.9)), url('https://images.unsplash.com/photo-1551958219-acbc608c6377?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    color: var(--white);
}

.cta-section .btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    border-color: var(--accent-gold);
    font-size: 1.1rem;
    padding: 15px 40px;
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Values Section */
.values-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.values-content h3 {
    font-size: 2rem;
    color: var(--celtics-green);
    margin-bottom: 20px;
}

.values-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Spectator Code Grid */
.spectator-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.code-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--celtics-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
}

@media (max-width: 768px) {

    .spectator-code-grid,
    .committee-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    /* Keep sponsors on 1 column */
    #sponsors-container {
        grid-template-columns: 1fr !important;
    }


    .code-card,
    .board-card,
    .referee-card {
        padding: 15px;
    }

    .code-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .board-card img,
    .board-card .board-img-empty,
    .referee-card img,
    .referee-card .ref-img-empty {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .board-card h3,
    .referee-card h3 {
        font-size: 1rem;
    }

    .board-card .role {
        font-size: 0.75rem;
    }

    /* Mobile Truncation Utility */
    .mobile-hidden {
        display: none !important;
    }
}

.btn-show-more {
    display: none;
    margin: 20px auto 0;
    background: transparent;
    border: 2px solid var(--celtics-green);
    color: var(--celtics-green);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .btn-show-more {
        display: inline-block;
    }
}


.code-card p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Documents / Doc Box */
.documents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
}

.doc-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.doc-box h3 {
    color: var(--celtics-green);
    margin-bottom: 15px;
}

.doc-box p {
    margin-bottom: 25px;
    /* Increased margin for spacing above button */
    color: #555;
    line-height: 1.6;
}

.doc-box .btn-primary {
    display: inline-block;
    /* Ensure margin applies */
}

/* Referee Cards */
.referee-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
    border-left: 5px solid var(--celtics-green);
}

.referee-card img,
.referee-card .ref-img-empty {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--celtics-green);
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
}

.referee-card h3 {
    font-size: 1rem;
    margin: 0;
}

/* Floating Sponsor Banner */
.sponsor-banner-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.banner-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--celtics-green);
    margin-right: 20px;
    white-space: nowrap;
    border-right: 2px solid rgba(0, 128, 64, 0.2);
    padding-right: 20px;
}

.sponsor-track {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    flex-grow: 1;
}

.sponsor-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.banner-sponsor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    transition: 0.3s;
}

.banner-sponsor-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.banner-sponsor-item img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.banner-sponsor-item span {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.banner-close {
    margin-left: 20px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.banner-close:hover {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .banner-title {
        display: none;
    }

    .sponsor-banner-footer {
        width: 95%;
        padding: 8px 15px;
        bottom: 10px;
    }
}

/* --- Boutique Button --- */
.big-btn {
    padding: 15px 40px !important;
    font-size: 1.2rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 160, 85, 0.4);
    transition: all 0.3s ease;
}

.big-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 160, 85, 0.6);
}

/* --- Loader Animation --- */
#boutique-loader {
    animation: fadeIn 0.5s ease-in-out;
}