/* Variables globales */
:root {
    --primary-color: #191815; /* Noir profond pour les titres */
    --secondary-color: #d72323; /* Rouge manuscrit */
    --text-color: #59544F; /* Gris foncé pour le texte */
    --light-bg: #F6F2E7; /* Fond principal */
    --light-text: #f1ede1;
    --light-bg-text: #F0EDE1;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    background: var(--light-bg);
    color: var(--text-color);
}

/* Header et Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
}

nav {
    position: relative;
    background: none;
    box-shadow: none;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: none;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-links {
    position: relative;
}

.nav-links li {

}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* MENU AVEC SOUS-MENUS */
.has-submenu {
    position: relative;
}
.has-submenu > a:after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 0.2em;
    vertical-align: middle;
}
.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 200px;
    background:rgba(0,0,0,0.7);
    box-shadow: 0 8px 32px rgba(25,24,21,0.18);
    border-radius: 0 0 8px 8px;
    z-index: 3000;
    padding: 0.7rem 0;
    list-style: none;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
    display: block;
}
.submenu li a {
    color: #fff;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    display: block;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-family: 'Rajdhani', Arial, sans-serif;
}
.submenu li a:hover {
    background: var(--secondary-color);
    color: #fff;
}
@media (max-width: 900px) {
    .submenu {
        display: none;
        position: static;
        background: transparent;
        padding-left: 1rem;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .submenu.active {
        display: block;
    }

    .has-submenu > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 0.5rem;
        float: right;
        transition: transform 0.3s ease;
    }

    .has-submenu > a.active::after {
        transform: rotate(180deg);
    }

    .submenu li a {
        color: rgba(255,255,255,0.8);
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .submenu li:last-child a {
        border-bottom: none;
    }
}

/* Hero Section */
.hero-img {
    position: relative;
    background: url('../img/SwissChessBoxing.jpg') center center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(25, 24, 21, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    display: block;
    align-items: center;
    padding: 0 1.5rem;
}

.hero-content .hero-logo {
    width: 280px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .accent {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--secondary-color);
    font-family: 'Homemade Apple', cursive;
    text-shadow: 0 4px 24px rgba(0,0,0,0.95);
}

.hero-title {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    color: var(--light-bg-text);
    text-shadow: 0 4px 24px rgba(0,0,0,0.95);
}

.cta-button {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 700;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 1rem 2.5rem;
    margin-top: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(25,24,21,0.08);
}

.cta-black {
    background: var(--primary-color);
    color: var(--white);
}

.cta-button.club-btn {
    background: var(--secondary-color);
    color: var(--white);
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    margin-top: 1rem;
}

/* Sections générales */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3em;
    line-height: 1em;
    color: var(--primary-color);
}

/* Grilles et cartes */
.rules-grid, .clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rule-card, .club-card, .event-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    color: var(--text-color);
    border: 1px solid #ece7dd;
}

.rule-card:hover, .club-card:hover, .event-card:hover {
    transform: translateY(-2px);
}

/* Formulaire de contact */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: #a32d1b;
}

/* Footer */
footer {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid #ece7dd;
}

.footer-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-color);
}

/* Accent manuscrit */
.accent {
    color: var(--secondary-color);
    font-family: 'Homemade Apple', cursive;
    font-size: 1.5rem;
    font-style: italic;
}

/* HEADER LOGO */
.header-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
    width: auto;
    transition: all 0.3s ease;
}

/* Style par défaut (petit logo) */
.header-logo-link img[src*="Logotype"] {
    height: 115px;
    margin-top: 49px;
}

/* Style pour le grand logo */
.header-logo-link img[src*="Large"] {
    height: 30px;
    margin-top: 0px;
}

/* Responsive menu */
@media (max-width: 900px) {
    .header-logo {
        position: absolute;
        top: 18px;
        left: 32px;
        transform: none;
    }
    .header-logo-link img[src*="Logotype"],
    .header-logo-link img[src*="Large"] {
        height: 100px;
        margin-top: 0px;
        margin-left: 5px;
    }
    .nav-links {
        position: absolute;
        top: 95px;
        right: 0;
        flex-direction: column;
        background: rgba(25,24,21,0.97);
        width: 220px;
        padding: 2rem 1.5rem;
        border-radius: 0 0 0 16px;
        box-shadow: 0 8px 32px rgba(25,24,21,0.18);
        gap: 1.5rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s;
    }
    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .burger {
        display: flex;
    }
}

/* HISTOIRE EN DEUX COLONNES */
.histoire-block {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    background: var(--light-bg);
    margin-top: 0;
    padding-top: 6rem;
}
.histoire-img {
    flex: 1 1 530px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.histoire-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(25,24,21,0.10);
}
.histoire-texte,
.big-text {
    flex: 2 1 500px;
    display: block;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}
.histoire-texte h2,
h2.big-title {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 3.5rem;
    line-height: 1em;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--primary-color);
}

h2.big-title {
    text-transform: uppercase;
    font-size: 5.5rem;
}
.histoire-texte p {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-top: 1rem;
}

/* FOOTER LOGO BLANC */
.footer-logo {
    display: block;
    max-width: 180px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .histoire-block {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 4rem;
    }
    .histoire-img img {
        max-width: 320px;
    }
}
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
        margin-top: 2rem;
        text-align: center;
        max-width: 80%;
    }

    .hero-content .hero-logo {
        width: 200px;
        margin-bottom: 1.5rem;
    }

    .hero-content .accent {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 2rem;
        margin-top: 1rem;
    }

    .histoire-block {
        flex-direction: column;
        gap: 1rem;
        padding-top: 2rem;
    }
    .histoire-img img {
        max-width: 90vw;
    }
    nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .section {
        padding: 3rem 1rem;
    }
}


@media (min-width: 1070px) {
    .hidden-desktop {
        display: none !important;
    }
}

@media (max-width: 480px) {

    .hidden-desktop {
        display: block !important;
    }

    .hero-content {
        padding: 0 0.8rem;
        margin-top: 1.5rem;
    }

    .hero-content .hero-logo {
        width: 160px;
        margin-bottom: 1rem;
    }

    .hero-content .accent {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .hero-arrow {
        display:none !important;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.8rem;
    }
}

/* HEADER MODERNE */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(25, 24, 21, 0.85);
    box-shadow: 0 2px 16px rgba(25,24,21,0.08);
    transition: all 0.3s ease;
}

.main-header.home.large-logo {
    background: rgba(25, 24, 21, 0.85);
}

.main-header.home {
    background: rgba(25, 24, 21, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5em;
    position: relative;
}


.header-logo-link {
    display: flex;
    align-items: center;
    z-index: 100;
}
.header-logo {
    height: 25px;
    margin-top: 0px;
    margin-left: -14px;
    width: auto;
    display: block;
}
.main-nav {
    display: flex;
    align-items: center;
    position: relative;
}
.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    color: var(--white);
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0.5rem 0.2rem;
    transition: color 0.2s;
    position: relative;
    text-transform: uppercase;
}

.nav-links .submenu li a {
    padding-left: 1rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--secondary-color);
}
.nav-links .submenu li a.active::after,
.nav-links .submenu li a:hover::after {
    color: var(--secondary-color);
}

.nav-links .submenu li:hover a {
    color: var(--white);
}
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2200;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Responsive menu */
@media (max-width: 1070px) {
    .nav-links {
        position: absolute;
        top: 95px;
        right: 0;
        flex-direction: column;
        background: rgba(25,24,21,0.97);
        width: 220px;
        padding: 2rem 1.5rem;
        border-radius: 0 0 0 16px;
        box-shadow: 0 8px 32px rgba(25,24,21,0.18);
        gap: 1.5rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s;
    }
    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .burger {
        display: flex;
    }
}

/* FOOTER MODERNE */
.main-footer {
    background: #191815;
    color: var(--white);
    padding: 3rem 2rem 1.5rem 2rem;
}
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 2rem;
}
.footer-logo {
    max-width: 60px;
    margin-bottom: 1rem;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.footer-nav li a {
    color: var(--white);
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
    text-transform: uppercase;
}
.footer-nav li a:hover {
    color: var(--secondary-color);
}
.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2rem;
}
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    font-size: 1rem;
    color: #e0e0e0;
}
.footer-contact i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}
.copyright {
    font-size: 0.95rem;
    color: #bdbdbd;
    margin-top: 0.5rem;
}
@media (max-width: 600px) {
    .footer-nav {
        gap: 1rem;
        font-size: 0.95rem;
    }
    .footer-contact {
        gap: 1rem;
        font-size: 0.95rem;
    }
    .footer-logo {
        max-width: 60px;
    }
}

/* SECTION ANIMATION CHESSBOXING */
.animation-chessboxing {
    background: var(--light-bg);
    padding: 5rem 2rem 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.animation-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.chessboard-anim {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    flex: 1 1 200px !important;
}
.svg-chessboard {
    z-index: 1;
    box-shadow: 0 4px 24px rgba(25,24,21,0.10);
    border-radius: 10px;
    border: solid 2px white;
    overflow: hidden;
    border-radius: 5px;
}
.svg-glove {
    position: absolute;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(193,58,36,0.12));
}
.glove-left {
    left: -40px;
    top: 40px;
    animation: gloveLeftAnim 2.2s infinite alternate cubic-bezier(.7,.2,.3,1.1);
}
.glove-right {
    right: -40px;
    top: 100px;
    animation: gloveRightAnim 2.2s infinite alternate-reverse cubic-bezier(.7,.2,.3,1.1);
}
@keyframes gloveLeftAnim {
    0% { transform: translateY(0) rotate(-18deg) scale(1); }
    60% { transform: translateY(-18px) rotate(-8deg) scale(1.08); }
    100% { transform: translateY(0) rotate(-18deg) scale(1); }
}
@keyframes gloveRightAnim {
    0% { transform: translateY(0) rotate(18deg) scale(1); }
    60% { transform: translateY(-18px) rotate(8deg) scale(1.08); }
    100% { transform: translateY(0) rotate(18deg) scale(1); }
}
.chess-piece {
    opacity: 0;
    transform: scale(0.7);
    animation: piecePop 1.2s forwards;
}
.piece1 { animation-delay: 0.2s; }
.piece2 { animation-delay: 0.5s; }
.piece3 { animation-delay: 0.8s; }
@keyframes piecePop {
    0% { opacity: 0; transform: scale(0.7); }
    60% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}
.chessboxing-anim-text {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
}
.chessboxing-anim-text .accent {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.chessboxing-anim-text h2 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 2.1rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.15;
}
@media (max-width: 900px) {
    .animation-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    .chessboxing-anim-text {
        align-items: center;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .chessboard-anim {
        width: 140px;
        height: 140px;
    }
    .svg-chessboard {
        width: 120px;
        height: 120px;
    }
    .animation-chessboxing {
        padding: 2.5rem 0.5rem 2rem 0.5rem;
    }
    .chessboard-anim {
        margin: 0px auto;
    }
}

/* CLUBS PARTENAIRES MODERNE */
.clubs-section {
    background: var(--light-bg);
    padding: 6rem 2rem;
}

.clubs-design {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.club-card.club-modern {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.club-card.club-modern:hover {
}

.club-card.club-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grecaptcha-badge {
    display: none;
}

.club-card.club-modern:hover img {
}

.club-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(to top, rgba(25,24,21,0.95) 0%, rgba(25,24,21,0.8) 50%, rgba(25,24,21,0) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.club-info h3 {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.club-btn {
    font-size: 1rem;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 6px;
    text-transform: uppercase;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
}

.club-card.club-modern:hover .club-btn {
    opacity: 1;
    transform: translateY(0);
}

.club-btn:hover {
    background: #fff;
    color: var(--secondary-color);
}

@media (max-width: 1100px) {
    .clubs-design {
        gap: 1.5rem;
    }
    
    .club-card.club-modern {
        width: 340px;
        height: 420px;
    }
    
    .club-info h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .clubs-section {
        padding: 4rem 1rem;
    }
    
    .club-card.club-modern {
        width: 100%;
        height: 380px;
    }
    
    .club-info {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .club-info h3 {
        font-size: 1.8rem;
    }
    
    .club-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-hero .hero-content .accent {
        font-size: 1.2rem;
}

/* COMBATS MODERNE */
.combats-section {
    background: var(--light-bg);
}
.combats-design {
    margin-top: 2.5rem;
    overflow-x: auto;
}
.combats-design table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(25,24,21,0.10);
    overflow: hidden;
    min-width: 700px;
    font-size: 1rem;
}
.combats-design thead tr {
    background: var(--primary-color);
    color: var(--white);
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
}
.combats-design th, .combats-design td {
    padding: 1.1rem 1.2rem;
    text-align: left;
}
.combats-design tbody tr:nth-child(even) {
    background: #f6f6f6;
}
.combats-design tbody tr:nth-child(odd) {
    background: #fff;
}
.combats-design .score {
    font-weight: bold;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.05em;
    margin: 0 2px;
    padding: 2px 6px;
    border-radius: 4px;
}
.combats-design .score.win {
    color: #1bbf3a;
}
.combats-design .score.lose {
    color: #e74c3c;
}
.combats-design .score.draw {
    color: #2b60de;
}
.combats-design .result-badge {
    display: inline-block;
    padding: 0.3em 0.9em;
    border-radius: 12px;
    font-size: 0.98em;
    font-weight: 700;
    color: #fff;
    background: #e74c3c;
    margin-right: 0.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.combats-design .result-badge.victoire {
    background: #1bbf3a;
}
.combats-design .result-badge.nul {
    background: #f39c12;
}
@media (max-width: 900px) {
    .combats-design table {
        min-width: 500px;
        font-size: 0.95rem;
    }
}
@media (max-width: 600px) {
    .combats-design {
        padding: 0 0.2rem;
    }
    .combats-design table {
        min-width: 350px;
        font-size: 0.92rem;
    }
    .combats-design th, .combats-design td {
        padding: 0.7rem 0.5rem;
    }
}

/* Table mobile : affichage en bloc (cards) */
@media (max-width: 480px) {
    .combats-design table,
    .combats-design thead,
    .combats-design tbody,
    .combats-design th,
    .combats-design td,
    .combats-design tr {
        display: block;
        width: 100%;
    }
    .combats-design thead {
        display: none;
    }
    .combats-design tr {
        background: var(--white);
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(25,24,21,0.08);
        padding: 1rem 0.7rem;
    }
    .combats-design td {
        padding: 0.5rem 0.7rem;
        text-align: left;
        position: relative;
    }
    .combats-design td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--secondary-color);
        display: block;
        margin-bottom: 0.2rem;
        font-size: 0.95em;
    }
}

/* SECTION CHIFFRES FEDERATION */
.federation-chiffres-section {
    background: var(--secondary-color);
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}
.federation-chiffres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    flex: 1 1 480px;
    min-width: 320px;
    max-width: 600px;
    background: var(--secondary-color);
    position: relative;
}
.federation-chiffre-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1.2rem 2.2rem 1.2rem;
    color: #fff;
    position: relative;
    min-width: 160px;
}
.federation-chiffres-grid > .federation-chiffre-item {
    border-right: 1px solid rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.25);
}
.federation-chiffres-grid > .federation-chiffre-item:nth-child(2),
.federation-chiffres-grid > .federation-chiffre-item:nth-child(4) {
    border-right: none;
}
.federation-chiffres-grid > .federation-chiffre-item:nth-child(3),
.federation-chiffres-grid > .federation-chiffre-item:nth-child(4) {
    border-bottom: none;
}
.chiffre {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}
.chiffre-label.manuscrit {
    font-family: 'Homemade Apple', cursive;
    font-size: 2.1rem;
    color: var(--light-text);
    margin-bottom: 0.2rem;
    font-weight: 400;
}
.chiffre-desc {
    font-size: 1.05rem;
    color: var(--light-text);
    opacity: 0.92;
    font-family: 'Arial', sans-serif;
    margin-top: 0.2rem;
    text-align: center;
}
.federation-texte {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--light-bg);
    padding: 3.5rem 2.5rem;
    min-width: 320px;
    max-width: 600px;
}
.federation-texte h2 {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}
.federation-texte p {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.6;
}
@media (max-width: 1100px) {
    .federation-chiffres-section {
        flex-direction: column;
        align-items: stretch;
    }
    .federation-chiffres-grid, .federation-texte {
        max-width: 100vw;
    }
}
@media (max-width: 700px) {
    .federation-chiffres-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    .federation-chiffres-grid > .federation-chiffre-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.18);
    }
    .federation-chiffres-grid > .federation-chiffre-item:last-child {
        border-bottom: none;
    }
    .federation-texte {
        padding: 2.2rem 1rem;
    }
}

/* SECTION CONTACT EN DEUX COLONNES */
.contact-section {
    background: var(--light-bg);
    padding: 5rem 2rem 4rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-col {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(25,24,21,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
    position: relative;
}

.contact-col:hover {
    box-shadow: 0 8px 32px rgba(215,35,35,0.13);
    transform: translateY(-4px) scale(1.03);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(25,24,21,0.10);
}

.contact-col h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-info-link {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
    margin-top: 0.2rem;
    display: inline-block;
}

.contact-info-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-col {
        padding: 2rem 1rem;
    }
}

/* SECTION EVENEMENTS MODERNE */
.evenements-section {
    background: var(--light-bg);
    padding-bottom: 0;
}
.evenements-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}
.evenement-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(25,24,21,0.10);
    overflow: hidden;
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.evenement-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(193,58,36,0.13);
}
.evenement-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ece7dd;
}
.evenement-content {
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}
.evenement-content h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}
.evenement-date {
    font-size: 1.05rem;
    color: var(--secondary-color);
    font-weight: 700;
}
.evenement-lieu {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.evenement-btn {
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 5px;
    text-transform: uppercase;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.evenement-btn:hover {
    background: #a32d1b;
}
@media (max-width: 1100px) {
    .evenements-grid {
        gap: 1.2rem;
    }
    .evenement-card {
        width: 90vw;
        max-width: 350px;
    }
}

/* SECTION INSCRIVEZ-VOUS (améliorée full width, centré, fond noir hors image) */
.inscription-section {
    padding: 0;
    margin: 0;
    margin-top: 100px;
}
.inscription-bg {
    width: 100vw;
    min-height: 340px;
    background: #191815 url(/img/background-chessboxing.jpg) center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.inscription-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(25, 24, 21, 0.2);
    z-index: 1;
}
.inscription-content {
    color: #fff;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem 4rem 2rem;
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.inscription-content h2 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.inscription-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.inscription-btn {
    background: var(--secondary-color);
    color: #fff;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(25,24,21,0.08);
    text-decoration: none;
}
.inscription-btn:hover {
    background: #a32d1b;
}
@media (max-width: 700px) {
    .inscription-content {
        padding: 2.2rem 0.5rem 2.2rem 0.5rem;
    }
    .inscription-bg {
        min-height: 220px;
    }
}

.gesp-logo {
    height: 35px;
}


.center.forced {
    display: block;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 700px) {
    .center {
        display: block;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* HERO SLIDER */
.hero-slider-section {
    position: relative;
    padding: 0;
    margin: 0;
}
.hero-slider {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    min-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(.7,.2,.3,1.1);
    background: url('/img/SwissChessBoxing.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}
.hero-slide:nth-child(2) {
    background: url('/img/photos/swisschess_charles.jpeg') center center/cover no-repeat;
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(25,24,21,0.7);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-arrow-left { left: 2vw; }
.hero-arrow-right { right: 2vw; }
.hero-arrow:hover { background: var(--secondary-color); }
@media (max-width: 700px) {
    .hero-arrow { font-size: 1.7rem; width: 36px; height: 36px; }
    .hero-arrow-left { left: 1vw; }
    .hero-arrow-right { right: 1vw; }
}

/* SCROLL SMOOTH PERSONNALISÉ */
html {
    scroll-behavior: auto !important;
}

/* POPUP ACCUEIL */
.popup-accueil {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.popup-accueil.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(25,24,21,0.95);
    z-index: 1;
    backdrop-filter: blur(8px);
}

.popup-content {
    position: relative;
    z-index: 2;
    width: 90vw;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-close {
    position: absolute;
    top: -4rem;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 3;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    transform: rotate(90deg);
}

.popup-video {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.popup-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .popup-accueil .popup-content {
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .popup-accueil .popup-close {
        position: fixed;
        top: 15px;
        right: 15px;
        background: var(--secondary-color);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .popup-accueil .popup-close:hover {
        transform: rotate(90deg);
        background: #a32d1b;
    }

    .popup-accueil .popup-overlay {
        cursor: pointer;
    }
}

/* SECTION RÈGLES */
.regles-section {
    background: var(--light-bg);
    padding: 6rem 2rem;
}

.regles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.regle-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(25,24,21,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.regle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(25,24,21,0.15);
}

.regle-content {
    padding: 2.5rem 2rem;
}

.regle-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
}

.regle-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.regle-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Liste des formats */
.formats-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.formats-list li {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(25,24,21,0.03);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.formats-list li:hover {
    background: rgba(25,24,21,0.06);
}

.format-title {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.format-desc {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
}

/* Liste des victoires */
.victoire-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.victoire-type {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.victoire-type:hover {
    transform: translateY(-2px);
    background: var(--secondary-color);
}

.note {
    font-size: 0.95rem;
    color: var(--text-color);
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(25,24,21,0.1);
}

@media (max-width: 768px) {
    .nav-links .submenu li a {
        padding-left: 3rem;
    }
}

@media (max-width: 768px) {
    .regles-section {
        padding: 4rem 1rem;
    }

    .regle-content {
        padding: 2rem 1.5rem;
    }

    .regle-content h3 {
        font-size: 1.6rem;
    }

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

@media (max-width: 480px) {
    .victoire-list {
        grid-template-columns: 1fr;
    }
}

/* Ajouter ces styles pour une meilleure expérience de défilement */
.smooth-scroll {
    will-change: scroll-position;
}

/* Améliorer la visibilité des sections cibles */
section:target {
    animation: highlight 1s ease-out;
}

@keyframes highlight {
    0% { background-color: rgba(215, 35, 35, 0.1); }
    100% { background-color: transparent; }
}

/* SECTION VIDEO CHESSBOXING */
.video-chessboxing-section {
    background: var(--light-bg);
    padding: 6rem 2rem;
    text-align: center;
}

.video-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(25,24,21,0.18);
    background: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(215,35,35,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-chessboxing-section {
        padding: 4rem 1rem;
    }
    
    .video-container {
        margin-top: 2rem;
    }
}

/* Style pour la navigation mobile */
@media (max-width: 1070px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 1000;
        transition: all 0.3s ease-in-out;
        padding: 2rem;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
        padding-left: 2em;
        padding-right: 2em;
        padding-top: 0px;
    }

    .has-submenu > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 0.5rem;
        float: right;
    }

    .submenu {
        position: static;
        background: transparent;
        padding-left: 1rem;
        display: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .submenu.active {
        display: block;
    }

    .submenu li a {
        color: rgba(255,255,255,0.8);
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Burger Menu */
    .burger {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background: transparent;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--secondary-color);
    }

    .burger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: white;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Close button */
    .nav-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Animation pour le menu */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Mise à jour des styles pour la section contact */
.contact-infos-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.08rem;
}

.contact-info-item:hover {
    color: var(--secondary-color);
}

.contact-info-item i {
    color: var(--secondary-color);
    font-size: 1.2em;
    min-width: 22px;
}

@media (max-width: 768px) {
    .contact-infos-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* SECTION INSTAGRAM */
.instagram-section {
    background: var(--light-bg);
    padding: 5rem 2rem;
}

.instagram-container {
    max-width: 1200px;
    margin: 0 auto;
}

.instagram-header {
    text-align: center;
    margin-bottom: 3rem;
}

.instagram-header h2 {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: translateY(-5px);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25,24,21,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.instagram-overlay p {
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.instagram-footer {
    text-align: center;
    margin-top: 2rem;
}

.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.instagram-follow-btn:hover {
    background: #a32d1b;
}

.instagram-error {
    text-align: center;
    color: var(--text-color);
    grid-column: 1 / -1;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(25,24,21,0.10);
}

@media (max-width: 1024px) {
    .instagram-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instagram-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .instagram-feed {
        grid-template-columns: 1fr;
    }
}

/* POPUP INSCRIPTION */
.popup-inscription {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.popup-inscription.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-inscription .popup-content {
    position: relative;
    z-index: 2;
    width: 90vw;
    max-width: 600px;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(25,24,21,0.18);
}

.popup-inscription-content h2 {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.popup-inscription .form-group {
    margin-bottom: 1.2rem;
}

.popup-inscription input,
.popup-inscription select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Rajdhani', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.popup-inscription input:focus,
.popup-inscription select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.popup-inscription .submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.popup-inscription .submit-button:hover {
    background: #a32d1b;
}

@media (max-width: 768px) {
    .popup-inscription .popup-content {
        padding: 2rem 1.5rem;
    }
    
    .popup-inscription-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .contact-projet-container {
        flex-direction: column;
        padding: 0 0.5rem;
    }
    .chessboard-anim,
    .contact-projet-content {
        padding: 2rem 1rem;
        min-width: 0;
    }
    .contact-projet-content h2 {
        text-align: center;
    }
    .contact-projet-content button {
        align-self: center;
    }
}

@media (min-width: 900px) {
    .contact-projet-content {
	    margin-top: 3.5rem;	
    }
}



/* Grille du formulaire popup : 2 colonnes sur desktop, 1 sur mobile */
.popup-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
    width: 100%;
}

.popup-form-grid .form-group {
    margin-bottom: 0;
}

.popup-form-grid .full-width {
    grid-column: 1 / -1;
}

.popup-inscription-content {
    width: 100%;
}

@media (max-width: 700px) {

    .popup-inscription {
        margin:0px;
        display:block;
        width: 100%;
    }
    .popup-form-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem 0;
        padding: 0;
    }
    .popup-inscription-content {
        padding: 0px !important;
        width: 100%;
        margin-top: 30px;
    }
    .popup-inscription .popup-content {
        width: 100%;
        border-radius: 0px;
    }
    .popup-inscription input,
    .popup-inscription select {
        font-size: 1rem;
        padding: 0.7rem 0.7rem;
    }
    .submit-button {
        font-size: 1rem;
        padding: 0.9rem 0.7rem;
    }

    .popup-close {
        position: fixed;
        border-radius: 0px;
        background: var(--secondary-color);
        color: white;
        border: none;
        cursor: pointer;
        border-radius: 50%;
        padding: 0.5rem;

        top: 1rem;
        right: 1rem;
        width:50px;
        height:50px;
    }
}

/* SECTION PARTENAIRES */
.partners-section {
    background: var(--light-bg);
    padding: 4rem 2rem;
    overflow: hidden;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
}

.partners-slider.has-scroll .partners-track {
    animation: scroll 20s linear infinite;
}

.partners-track {
    display: flex;
    width: fit-content;
    gap: 2rem;
}

.partner-item {
    flex: 0 0 200px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

.partners-slide {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    animation: slideIn 1s ease-out;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 4));
    }
}

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

/* Responsive */
@media (max-width: 768px) {

   
    
    .partners-section {
        padding: 2rem 1rem;
    }
    
    .partners-slider {
        width: 100%;
        overflow: hidden;
        position: relative;
        min-height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .partners-track {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        min-height: 120px;
    }
    .partner-item {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 80vw;
        max-width: 220px;
        min-width: 120px;
        opacity: 0;
        transition: opacity 0.5s;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
        padding: 0;
        pointer-events: none;
    }
    .partner-item.active {
        opacity: 1;
        z-index: 2;
        position: absolute;
        pointer-events: auto;
    }
    .partner-item img {
        width: 100%;
        height: auto;
        max-height: 90px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        filter: grayscale(100%);
        transition: filter 0.3s;
    }
    .partner-item.active img {
        filter: grayscale(0%);
    }
}

@media (max-width: 480px) {
    .partner-item {
        flex: 0 0 100%;
        padding: 0.5rem;
    }

    .partners-track {
        gap: 0;
    }
    .main-header.home {
        background: transparent !important;
        box-shadow: none;
    }
    .main-header.home.large-logo .header-logo-link {
        display:none;
    }

    .contact-projet-content {
        padding-top: 0px !important;
    }

    .contact-section {
        padding-top: 3em;
        padding-bottom: 3em;
    }

    .regles-section {
        padding-top: 0px;
    }

    .histoire-block {
        padding-bottom:2em;
    }
}

@media (max-width: 1070px) {
    .submenu {
        display: none;
    }
    .submenu.active {
        display: block;
    }
}

/* Desktop : affichage au hover */
@media (min-width: 992px) {
    .nav-links .submenu {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        min-width: 200px;
        background:rgba(0,0,0,0.7);
        box-shadow: 0 8px 32px rgba(25,24,21,0.18);
        border-radius: 0 0 8px 8px;
        z-index: 3000;
        padding: 0.7rem 0;
        list-style: none;
    }
    .nav-links li.has-submenu:hover > .submenu,
    .nav-links li.has-submenu:focus-within > .submenu {
        display: block;
    }
}

/* Mobile : affichage uniquement si .active, PAS de hover */
@media (max-width: 1070px) {
    .nav-links .submenu {
        display: none;
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-links .submenu.active {
        display: block;
    }
}

.club-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background-color:white;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
}



.clubs-list-section {
    padding: 4rem 0;
}

.club-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.club-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.club-item p {
    margin-bottom: 0.5rem;
}

.club-item i {
    color: var(--secondary-color);
    width: 20px;
    margin-right: 10px;
}

.light-header {
    background: rgba(0,0,0,0,0.5);
    box-shadow: 0 2px 16px rgba(25,24,21,0.08);
}
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    text-decoration: none;
    transition: background 0.2s;
    margin: 1rem 0 1rem 1rem;
}
.back-btn:hover {
    background: #a32d1b;
}
.back-arrow {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.page-container {
    margin-top: 50px;
    padding: 1em 2em;
}

.section h2 {
    text-transform: uppercase;
}

.light-header .header-container {
    padding:0px;
}

@media (max-width: 1350px) {
    .header-container {
        padding:1.5em 0em;
    }

    .nav-links li a {
        font-size: 0.9em;
    }

    .header-container nav:last-child {
        margin-right:0px !important;
    }

    .header-container nav:first-child {
        margin-left:0px !important;
    }
}

@media (max-width: 1070px) {
    .header-container {
        padding:2em 0em;
    }
    .burger {
        top: 0.6rem !important;
        width:45px;
        height:45px;
    }
}

/* Responsive menu */
@media (min-width: 400px) and (max-width: 900px) {
    .header-logo {
        position: absolute;
        top: 18px;
        left: 32px;
        transform: none;
    }


    .header-logo-link img[src*="Logotype"] {
        height: 100px !important;
        margin-top: 0px;
        margin-left: 5px;
    }

    .header-logo-link img[src*="Large"] {
        height: 30px !important;
        margin-top: 0px;
        margin-left: -3px;
    }
}