:root {
    --rouge: #c81e2a;
    /* rouge primaire (plus doux que #ff0000) */
    --rouge-fonce: #7c1019;
    /* bordeaux pour textes/titres (contraste) */
    --rouge-pale: #fbeff0;
    /* fonds clairs rosés */
    --rouge-band: linear-gradient(135deg, #c81e2a, #8f1620);
    /* dégradé cartes */
    --or: #e0a52e;
    /* accent secondaire (remplace #FFD700) */
    --fond: #fbf7f6;
    /* fond de page crème chaud */
    --blanc: #ffffff;
    --texte: #2b2b2b;
    --texte-doux: #5c5c5c;
    --liseret: 1px solid rgba(200, 30, 42, 0.16);
    --ombre-douce: 0 4px 18px rgba(0, 0, 0, 0.07);
    --ombre-hover: 0 12px 30px rgba(0, 0, 0, 0.14);
    --rayon: 16px;
    --rayon-petit: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--fond);
    background-image: linear-gradient(180deg, #fdf1ef 0%, var(--fond) 340px);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--texte);
    line-height: 1.6;
}

h1,
h2,
h3,
.navbar-logo {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

/* ============================================================
   Barre de navigation
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(200, 30, 42, 0.14);
    z-index: 1000;
    padding: 13px 0;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rouge-fonce);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease;
}

.navbar-logo:hover {
    transform: scale(1.04);
}

.navbar-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-sizing: border-box;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.navbar-item a {
    text-decoration: none;
    color: var(--rouge-fonce);
    font-weight: 600;
    font-size: 1rem;
    padding: 9px 16px;
    border-radius: 25px;
    transition: background 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-item a:hover {
    background: var(--rouge);
    color: #fff;
}

.navbar-item.active a {
    background: var(--rouge);
    color: #fff;
}

.navbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--rouge-pale);
    border-radius: 50%;
    color: var(--rouge);
    font-size: 1.05rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--rouge);
    color: #fff;
    transform: translateY(-2px);
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--rouge);
    transition: 0.3s;
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

@media (max-width: 820px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 45px;
        transition: left 0.3s ease;
        gap: 16px;
        z-index: 999;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-social {
        margin-top: 30px;
    }

    .navbar-item a {
        font-size: 1.25rem;
        padding: 13px 24px;
    }
}

/* ============================================================
   Conteneur & en-tête (hero) avec photo
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    position: relative;
    text-align: center;
    padding: 70px 20px;
    margin-top: 84px;
    /* fond rouge de secours si la photo d'en-tête est absente */
    background-color: var(--rouge-fonce);
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 40px;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
}

/* voile sombre pour la lisibilité du texte blanc */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 0, 0, 0.38), rgba(15, 0, 0, 0.55));
    border-radius: inherit;
    z-index: 0;
}

.header>* {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    letter-spacing: 1px;
}

.logo-img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px;
    box-sizing: border-box;
    margin-top: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.logo-img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

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

@keyframes fadeInUp {
    from {
        transform: translateY(24px);
        opacity: 0;
    }

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

/* ============================================================
   Sections de contenu
   ============================================================ */
.content-section {
    background: var(--blanc);
    border-radius: var(--rayon);
    padding: 44px;
    margin-bottom: 28px;
    box-shadow: var(--ombre-douce);
    animation: fadeInUp 0.7s ease-out both;
}

.content-section:nth-child(2) {
    animation-delay: 0.1s;
}

.content-section:nth-child(3) {
    animation-delay: 0.2s;
}

.content-section:nth-child(4) {
    animation-delay: 0.3s;
}

.content-section:nth-child(5) {
    animation-delay: 0.4s;
}

.content-section:nth-child(6) {
    animation-delay: 0.5s;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rouge-fonce);
    margin-bottom: 26px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--rouge), var(--rouge-fonce));
    border-radius: 2px;
}

.section-content {
    font-size: 1.06rem;
    line-height: 1.75;
    text-align: center;
    margin-bottom: 12px;
    color: var(--texte);
}

.intro-column {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 0;
}

/* ============================================================
   Index — boutons de navigation sur photo + contact
   ============================================================ */
.navigation-section {
    position: relative;
    background-color: var(--rouge-fonce);
    background-size: cover;
    background-position: center 50%;
}

.navigation-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 0, 0, 0.45);
    border-radius: inherit;
    z-index: 0;
}

.navigation-section>* {
    position: relative;
    z-index: 1;
}

.navigation-section .section-title,
.navigation-section .section-title::after {
    color: #fff;
}

.navigation-section .section-title::after {
    background: #fff;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.nav-button {
    display: block;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 34px 28px;
    text-decoration: none;
    color: var(--texte);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-button:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.nav-button i {
    font-size: 2.8rem;
    color: var(--rouge);
    display: block;
    margin-bottom: 16px;
}

.nav-button h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rouge-fonce);
    margin-bottom: 10px;
}

.nav-button p {
    font-size: 1rem;
    color: var(--texte-doux);
    line-height: 1.55;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.contact-item {
    padding: 22px;
    background: var(--rouge-pale);
    border: 1px solid rgba(200, 30, 42, 0.12);
    border-radius: var(--rayon-petit);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: var(--ombre-hover);
}

.contact-item a {
    text-decoration: none;
    color: inherit;
}

.contact-item i {
    font-size: 1.9rem;
    color: var(--rouge);
    margin-bottom: 12px;
}

.contact-item:hover i {
    color: var(--rouge);
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rouge-fonce);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--texte-doux);
    font-size: 0.98rem;
}

/* ============================================================
   Sports — grille de cartes
   ============================================================ */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.sport-card {
    background: #fff;
    border: var(--liseret);
    border-top: 4px solid var(--rouge);
    border-radius: var(--rayon-petit);
    padding: 26px 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sport-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-hover);
}

.sport-card img {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px auto;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
}

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

.sport-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rouge-fonce);
    margin-bottom: 8px;
}

.sport-card p {
    font-size: 0.98rem;
    color: var(--texte-doux);
    line-height: 1.55;
}

.sport-card strong {
    color: var(--rouge);
}

/* Section rouge "Manque d'informations ?" */
.cta-red {
    background: var(--rouge-band);
    color: #fff;
    text-align: center;
    padding: 48px 40px;
}

.cta-red .section-title,
.cta-red .section-title::after {
    color: #fff;
}

.cta-red .section-title::after {
    background: #fff;
}

.cta-red p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-blanc {
    display: inline-block;
    padding: 13px 36px;
    background: #fff;
    color: var(--rouge-fonce);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.02rem;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-blanc:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.btn-blanc i {
    margin-right: 8px;
    color: var(--rouge);
}

/* ============================================================
   Événements — cartes
   ============================================================ */
.events-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 30px;
}

.event-item {
    background: #fff;
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: var(--ombre-douce);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-hover);
}

.event-item::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--rouge-band);
}

.event-header {
    background: var(--rouge-band);
    padding: 18px 28px;
    text-align: center;
}

.event-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.event-content {
    padding: 26px 30px;
    background: #fff;
}

.event-description {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--texte);
    text-align: left;
}

.event-description strong {
    color: var(--rouge-fonce);
}

/* ============================================================
   Équipe — cartes membres
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
    margin-top: 34px;
    justify-items: center;
}

.team-member {
    width: 250px;
    max-width: 100%;
    height: 300px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--rouge);
    box-shadow: var(--ombre-douce);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-hover);
}

.member-photo {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--rouge-pale), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.member-photo i {
    font-size: 4rem;
    color: rgba(200, 30, 42, 0.35);
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(200, 30, 42, 0.12);
    padding: 13px 12px;
    text-align: center;
}

.member-name {
    font-size: 1.03rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 3px;
    line-height: 1.25;
}

.member-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rouge);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.bureau-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rouge-fonce);
    text-align: center;
    margin-bottom: 14px;
    position: relative;
}

.bureau-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, var(--rouge), var(--rouge-fonce));
    border-radius: 2px;
}

/* ============================================================
   Pied de page
   ============================================================ */
.site-footer {
    max-width: 1200px;
    margin: 34px auto 28px;
    padding: 26px 20px;
    text-align: center;
    background: var(--blanc);
    border-radius: var(--rayon);
    box-shadow: var(--ombre-douce);
}

.site-footer .footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.site-footer p {
    color: var(--texte-doux);
    font-size: 0.92rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .events-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .container {
        padding: 15px;
    }

    .content-section {
        padding: 24px;
    }

    .header {
        padding: 54px 16px;
        margin-top: 78px;
    }

    .event-header {
        padding: 15px 20px;
    }

    .event-title {
        font-size: 1.35rem;
    }

    .event-content {
        padding: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 34px auto 0;
    }

    .team-member {
        width: 100%;
        max-width: 280px;
    }

    .cta-red {
        padding: 36px 24px;
    }
}

/* Accessibilité : coupe les animations si demandé par l'utilisateur */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }

    html {
        scroll-behavior: auto;
    }
}
