/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    /* Couleurs du Club */
    --primary-color: #FFD700; /* Jaune SDBB */
    --primary-dark: #E6C200;
    --secondary-color: #0033A0; /* Bleu SDBB */
    --secondary-dark: #002266;
    
    /* Couleurs neutres */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Dimensions et Espacements */
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

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

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

/* =========================================
   TYPOGRAPHY & UTILITIES
========================================= */
.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
}

.underline.center {
    margin: 0 auto 20px auto;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-large {
    padding: 15px 32px;
    font-size: 1.1rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.mt-3 {
    margin-top: 1.5rem;
}

.rounded-img {
    border-radius: var(--border-radius);
}

.shadow {
    box-shadow: var(--box-shadow);
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
#main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    overflow: visible;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
    background: transparent;
    mix-blend-mode: multiply;
}


.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.hero-logo-img {
    height: 120px; /* Légèrement réduit pour s'adapter à l'iPhone SE */
    width: auto;
    display: block;
    margin: 0 auto;
    background: transparent !important;
    
    /* On supprime ou écrase le mix-blend-mode qui fait planter Safari iOS */
    mix-blend-mode: normal !important; 
    
    /* On retire le filtre d'ombre qui peut accentuer le bug de rendu sur vieux iOS */
    filter: none !important; 
}

/* Logo du header (page d'accueil): enlever le fond blanc + agrandir */
#main-header .logo {
    height: 70px;
    width: auto;
    background: transparent;
    mix-blend-mode: multiply;
}




.club-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.main-nav .nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}


.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(10px);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-transform: none;
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    height: 80vh;
    min-height: 600px;
    background-image: url("../Logo-club/Baniere-club.png"); /* Bannière club (accueil) */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 51, 160, 0.9), rgba(0, 51, 160, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   QUICK LINKS (CARDS)
========================================= */
.news-slider {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    /* Espace vertical entre le slider et la zone de contenu suivante */
    margin: 20px 0 90px;
}

/* Espace entre le bouton "Voir toutes les actualités" et la grille en dessous */
.index-quick-links .mt-3 {
    margin-top: 2.5rem;
}



.news-slider-inner {
    width: 100%;
    height: 420px;
}


.news-slide {
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    transition: opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}



.news-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: calc(var(--border-radius) + 4px);
    transform-origin: center;
}


.news-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.news-slider-btn.prev { left: 14px; }
.news-slider-btn.next { right: 14px; }

.news-slider-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(0,0,0,0.2);
}

.news-dot.active {
    background: var(--primary-color);
}

/* Transition slider (news) */
.news-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
}



@media (max-width: 768px) {
    .news-slider-inner { height: 240px; }
}

.cards-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-img {
    height: 200px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.card-img img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

/* =========================================
   EVENTS THUMBNAILS + LIGHTBOX
========================================= */
.event-thumb {
    display: block;
}

/* Pour les affiches événements, on évite le rognage */
.event-lightbox .event-lightbox-img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
}

.event-thumb img {
    object-fit: contain;
}

/* On augmente légèrement la hauteur du rectangle pour mieux voir toute l'affiche */
.event-thumb {
    height: 260px;
}

.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-lightbox[aria-hidden="false"] {
    display: flex;
}

.event-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.event-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
} 


.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

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


.card-content .btn {
    align-self: flex-start;
}

/* =========================================
   INFO SECTION (Micro Basket)
========================================= */
.info-content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.info-text {
    flex: 1;
}

.info-image {
    flex: 1;
}

.check-list {
    margin-top: 20px;
}

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

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

/* =========================================
   LABELS SECTION
========================================= */
.labels-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.label-img {
    max-height: 150px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.label-img:hover {
    transform: scale(1.05);
}

/* =========================================
   PARTNERS SECTION (Marquee)
========================================= */
.partners-marquee {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    width: 150px; /* Fixed width for consistency */
    height: 100px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
    transition: all 0.3s ease;
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 25px)); /* Adapts based on JS duplication */ }
}

/* =========================================
   FOOTER
========================================= */
.main-footer {
    background-color: var(--secondary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    background-color: white; /* To make the PNG pop if it has dark text */
    padding: 10px;
    border-radius: 5px;
}

.brand-col p {
    color: #cccccc;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-dark);
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cccccc;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #cccccc;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999999;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #999999;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   RESPONSIVE DESIGN (Media Queries)
========================================= */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .info-content-wrapper {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }

    /* Ajustements header / logo (éviter rognage) */
    #main-header {
        padding: 6px 0;
    }

    .header-container {
        align-items: center;
    }

    /* Le header sticky se contraint sur mobile : on évite la hauteur fixe */
    #main-header .logo {
        height: auto;
        max-height: 72px;
        width: auto;
        object-fit: contain;
        display: block;
        /* Détourage visuel (si le png a encore un fond/contour sur mobile) */
        background: transparent;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Sécurise le conteneur : éviter rognage vertical */
    .logo-container {
        height: auto;
        align-items: center;
        gap: 10px;
    }


    /* Page Qui sommes-nous */
    .grid-2 { grid-template-columns: 1fr; }
    .side-card { margin-bottom: 30px; }

    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        transition: 0.4s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background-color: var(--bg-light);
        display: none; /* Controlled by JS on mobile */
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .header-actions .btn {
        display: none; /* Hide top right button on mobile */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* =========================================
   ANIMATIONS
========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple cards */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Enhanced Button Hover effects */
.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}
.btn-secondary:hover {
    box-shadow: 0 4px 15px rgba(0, 51, 160, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   INTERNAL PAGES SPECIFIC STYLES
========================================= */
/* Titres internes : style plus basique / uniforme */
.page-header {
    background: transparent;
    color: inherit;
    padding: 100px 0 40px;
    text-align: center;
    position: relative;
    overflow: visible;
}


/* Bandeau bleu discret pour que le titre se démarque */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--secondary-color);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}


.page-header h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Bannière en fond du titre (page présentation SDBB) */
.about-title-banner {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    z-index: 1;
}

.about-title-banner::before {
    content: '';
    position: absolute;
    inset: -70px -110px -55px -110px;
    background-image: url("../Logo-club/Baniere-club.png");
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: saturate(1.1);
    z-index: -1;
    border-radius: 20px;
}

.about-title-banner::after {
    content: '';
    position: absolute;
    inset: -40px -60px -30px -60px;

    background: linear-gradient(to right, rgba(0, 51, 160, 0.70), rgba(0, 51, 160, 0.10));
    opacity: 0.35;
    z-index: -1;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .about-title-banner::before,
    .about-title-banner::after {
        inset: -22px -22px -18px -22px;
        border-radius: 14px;
    }

    .about-title-banner {
        font-size: 2.6rem;
    }
}





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

.content-section {
    padding: 60px 0;
}

/* Grid for Info and Council */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    align-items: start;
}

/* Side Card (Qui sommes-nous) */
/* .page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
} */

.page-header-badge i {
    color: var(--primary-color);
}

.page-header-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 26px;
}

.page-header-actions .btn {
    box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

.page-header-actions .btn:hover {
    transform: translateY(-3px);
}

.side-card {

    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: 30px 26px;
    border: 1px solid rgba(0,0,0,0.06);
}

.side-card-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.side-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.side-stats li {
    list-style: none;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(0, 51, 160, 0.08));
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.side-stats li:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.10);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.24), rgba(0, 51, 160, 0.12));
}


.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(0, 51, 160, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.stat-icon i {
    font-size: 1.15rem;
}

/* (Désactivé) Décorations supplémentaires du header interne */
.page-header .container {
    position: relative;
}



/* Mise en dynamique des textes de la carte */
.side-stats strong {
    letter-spacing: 0.2px;
}

/* =========================================
   BOUTIQUE - Accès direct catalogue
========================================= */
html {
    scroll-behavior: smooth;
}

/* Compenser le header sticky */
#catalogue {
    scroll-margin-top: 110px;
}

.boutique-catalogue-cta {
    width: 100%;
    max-width: 520px;
}

.boutique-catalogue-sub {
    margin-top: 10px;
    color: var(--text-light);
    font-weight: 500;
}



.side-cta .btn {
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.side-cta .btn:hover {
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
    transform: translateY(-2px);
}

.content-card h2.section-heading {
    position: relative;
}

.content-card h2.section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 72px;
    height: 4px;
    /* background: var(--primary-color); */
    border-radius: 999px;
}


.side-stats strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1rem;
}

.side-stats small {
    display: block;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 500;
}

.side-cta {
    margin-top: 22px;
}

.content-section {
    padding: 70px 0;
}

.content-card {
    background: rgba(255,255,255,0.95);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 28px;
}


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

.member-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: contain;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}

/* Équipes : images en plein cadre (pas rognées par les bordures du bloc) */
.page-header + .content-section .member-card {
    overflow: visible;
}

.page-header + .content-section .member-card img {
    width: 100% !important;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: var(--border-radius) !important;
    border: none !important;
    display: block;
    margin: 0 auto 20px;
}


.member-card h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.member-card .role {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- Contact Form Styles --- */
.contact-section {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.contact-form-container {
    width: 100%;
    max-width: 800px;
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
}

.contact-form .input-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-form label .required {
    color: #E30613; /* Red to stand out cleanly */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 51, 160, 0.2);
}

/* Commissions Section */
.commissions-container {
    width: 100%;
}

.commissions-container h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.commission-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.commission-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

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

.commission-item .icon-box {
    background-color: rgba(0, 51, 160, 0.1);
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.commission-details h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.commission-details p {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.commission-details a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.commission-details a::before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.commission-details a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* =========================================
   Tonic / Basket En Marchant (page dédiée)
========================================= */
.tonic-page {
    padding-bottom: 60px;
}

.tonic-hero {
    margin: 0 auto;
    max-width: 1100px;
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.10), rgba(255, 215, 0, 0.14));
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    padding: 28px 22px;
    overflow: hidden;
    position: relative;
}

.tonic-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.35), rgba(0, 51, 160, 0));
    pointer-events: none;
}

.tonic-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tonic-hero-title {
    margin-top: 12px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.tonic-hero-subtitle {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 820px;
}

.tonic-hero-ctas {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tonic-tabs {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tab-btn {
    border: 2px solid rgba(0, 0, 0, 0.00);
    background: rgba(255, 255, 255, 0.75);
    color: var(--secondary-color);
    padding: 12px 18px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.75);
}

.tab-btn[aria-selected="true"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 215, 0, 0.55));
    border-color: rgba(255, 215, 0, 0.85);
    color: var(--secondary-dark);
}

.tonic-panels {
    margin-top: 18px;
}

.tab-content {
    display: none;
    animation: tonicFadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes tonicFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-card {
    background: rgba(255,255,255,0.95);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 26px 22px;
}

.card-header-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.section-heading {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.lead {
    margin-top: 14px;
    color: var(--text-color);
    font-size: 1.05rem;
}

.grid-2 {
    margin-top: 20px;
}

.program-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.06), rgba(255, 215, 0, 0.10));
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.program-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.program-card .muted {
    color: var(--text-light);
    margin-bottom: 12px;
}

.gallery-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gallery-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0,0,0,0.04);
    margin: 0;
}

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

.gallery-card figcaption {
    padding: 10px 10px;
    color: var(--text-light);
    font-weight: 600;
}

@media (max-width: 768px) {
    .tonic-hero-title { font-size: 1.7rem; }
    .gallery-row { grid-template-columns: 1fr; }
    .tonic-rules { padding: 0; }
}

/* Règles Basket en Marchant */
.tonic-rules-title {
    margin-top: 2px;
}

.tonic-rules {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* Accordéon (moins de défilement) */
.tonic-rule {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.03);
}

.tonic-rule-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    cursor: pointer;
    border: 0;
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.06), rgba(255, 215, 0, 0.10));
}

.tonic-rule-toggle:focus {
    outline: 3px solid rgba(255, 215, 0, 0.35);
    outline-offset: 2px;
}

.tonic-rule-toggle h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tonic-rule-num {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 215, 0, 0.30);
    color: var(--secondary-dark);
    font-weight: 900;
    flex-shrink: 0;
}

.tonic-rule-body {
    padding: 0 14px 14px;
}

.tonic-rule-body-inner {
    padding-top: 10px;
}

.tonic-rule-body[hidden] {
    display: none !important;
}

.tonic-rule-body p {
    color: var(--text-light);
    margin: 0 0 10px;
}


@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px 20px;
    }

    .commission-list {
        grid-template-columns: 1fr;
    }
}

/* Désactive l'effet masqué du scroll uniquement pour la section Hero sur mobile */
@media (max-width: 768px) {
    .hero-content.animate-on-scroll {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* On supprime aussi le mix-blend-mode sur mobile qui cause le rectangle blanc */
    .hero-logo-img {
        mix-blend-mode: normal !important;
        background: transparent !important;
        height: 110px; /* Légère réduction pour s'adapter à l'iPhone */
    }
}

/* Styles spécifiques pour l'iPhone SE et les très petits écrans (375px et moins) */
@media (max-width: 375px) {
    
    /* 1. On force le mini-logo du header à rester petit et discret */
    #main-header .logo {
        max-height: 45px !important; /* On réduit sa hauteur pour qu'il ne pousse pas le reste */
        width: auto;
    }

    /* 2. On empêche le conteneur du haut de casser la mise en page */
    .header-container {
        display: flex !important;
        flex-direction: row !important; /* Force l'alignement horizontal (Logo à gauche, Menu à droite) */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 10px !important;
    }

    /* 3. Ajustement de la section Hero pour l'iPhone SE */
    .hero {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        min-height: auto !important; /* Supprime la contrainte de hauteur qui étouffe le logo */
    }

    /* 4. On ajuste la taille du grand logo du milieu pour qu'il rentre pile dans l'écran */
    .hero-logo-img {
        height: 85px !important; /* Taille parfaite pour l'écran de l'iPhone SE */
        width: auto !important;
        mix-blend-mode: normal !important;
        filter: none !important; /* Enlève l'ombre qui peut bugger sur les vieux iOS */
    }

    /* 5. On réduit un peu le titre pour laisser de la place au logo */
    .hero-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: calc(100vh - 60px) !important; /* S'adapte dynamiquement à l'écran du téléphone */
        padding: 30px 0 !important;
    }
}