/* ============================================================
   VCM — Vélo Club Montaigu
   style.css — Thème noir / jaune
   Organisé par : Base → Layout → Composants → Pages → Responsive
   ============================================================ */

/* ===== 1. VARIABLES ===== */
:root {
    --black:      #0a0a0a;
    --dark:       #1a1a1a;
    --yellow:     #f7ee34;
    --yellow-dim: #c9c020;
    --red:        #d9342a;
    --white:      #ffffff;
    --gray-light: #dadada;
    --gray:       #6c757d;
    --border:     #2e2e2e;
}

/* ===== 2. BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--gray-light);
    color: var(--black);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
}

/* ===== 3. LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

/* ===== 4. HEADER & NAVIGATION ===== */
.site-header {
    background: var(--black);
    color: var(--white);
    border-bottom: 4px solid var(--yellow);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
}

.site-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 50px;
}

.site-header .logo img {
    height: 58px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.03em;
}

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

/* ===== 5. FOOTER ===== */
.site-footer {
    background: var(--black);
    color: var(--gray);
    text-align: center;
    padding: 30px 20px;
    border-top: 4px solid var(--yellow);
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 6px;
}

.footer-legal a {
    color: var(--gray);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--yellow);
}

.footer-legal span {
    margin: 0 8px;
}

/* ===== 6. TITRES DE SECTION ===== */
.section-title {
    font-size: 2.2rem;
    color: var(--black);
    text-align: center;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 12px auto 30px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* ===== 7. BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--yellow);
    color: var(--black);
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}

.btn:hover {
    background: var(--yellow-dim);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #333;
}

.btn-small {
    display: inline-block;
    padding: 7px 18px;
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-small:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--yellow);
}

/* ===== 8. HERO ===== */
.hero {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 100%),
        url('../images/banniere_accueil.png') center 65% / cover no-repeat;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    border-bottom: 4px solid var(--yellow);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.hero-small {
    padding: 50px 0;
}

.hero-small h1 {
    font-size: 2.2rem;
}

/* Hero avec image de fond (VTT / Route) */
.hero-route {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.45)),
        url('../images/route/route-st-george.PNG') center 40% / cover no-repeat;
}

.hero-vtt {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.45)),
        url('../images/VTT/vtt2.jpg') center 40% / cover no-repeat;
}

/* ===== 9. PAGE ACCUEIL ===== */

/* Sponsors preview */
.sponsors-preview {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin: 40px 0;
    border-top: 4px solid var(--yellow);
}

.sponsors-preview .text-center {
    margin-top: 30px;
}

/* Grille logos (accueil uniquement) */
.sponsors-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-box {
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 1;
    transition: transform 0.3s;
}

.sponsor-logo-box img:hover {
    transform: scale(1.05);
}

/* Nos sections */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.section-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 8px;
    border-top: 4px solid var(--yellow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}

.section-card:hover {
    transform: translateY(-6px);
}

/* Carte discipline VTT avec image */
.discipline-card {
    padding: 0;           /* on retire le padding global : l'image doit coller au bord */
    overflow: hidden;     /* pour que l'image respecte le border-radius de la carte */
    text-align: center;
}

/* Zone image en haut de la carte */
.discipline-card-image {
    width: 100%;
    height: 222px;        /* hauteur fixe identique pour toutes les cartes */
    overflow: hidden;
}

.discipline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* recadre l'image sans la déformer */
    display: block;
    transition: transform 0.4s ease;
}

.discipline-card:hover .discipline-card-image img {
    transform: scale(1.05); /* léger zoom au survol pour la dynamique */
}

/* Corps de la carte (badge + titre + texte) */
.discipline-card-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.discipline-card-body h3 {
    color: var(--black);
    font-size: 1.3rem;
    margin: 0;
}

.discipline-card-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.section-icon img {
    width: 60%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 25px;
    border: 2px solid var(--yellow);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.section-card h3 {
    color: var(--black);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

/* Calendrier */
.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
}

.calendrier-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.calendrier-table th {
    background: var(--black);
    color: var(--yellow);
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.calendrier-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

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

.calendrier-table tr:hover td {
    background: #f5f5f5;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge-route {
    background: var(--yellow);
    color: var(--black);
}

.badge-vtt {
    background: var(--dark);
    color: var(--yellow);
}

/* ===== 10. PAGE SPONSORS ===== */
.sponsors-section {
    background: var(--gray-light);
}

/* Grille cards sponsors (page sponsors) */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.sponsor-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--yellow);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.sponsor-card:hover {
    transform: translateY(-3px);
}

.sponsor-card-logo {
    flex-shrink: 0;
    width: 90px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sponsor-info {
    flex: 1;
}

.sponsor-name {
    font-size: 1.1rem;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 4px;
}

.sponsor-domaine {
    font-size: 0.85rem;
    color: var(--yellow-dim);
    font-weight: 600;
    margin-bottom: 6px;
}

.sponsor-presentation {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

/* Bouton "Visiter le site" sur les cartes sponsors/partenaires */
.sponsor-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 16px;
    background: transparent;
    color: var(--black);
    font-weight: 600;
    font-size: 0.82rem;
    border: 1.5px solid var(--yellow-dim);
    border-radius: 20px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sponsor-link::after {
    content: '↗';
    font-size: 0.95em;
    transition: transform 0.2s;
}

.sponsor-link:hover {
    background: var(--yellow);
    border-color: var(--yellow);
}

.sponsor-link:hover::after {
    transform: translate(2px, -2px);
}

/* CTA devenir sponsor */
.cta-section {
    background: var(--black);
    color: var(--white);
    text-align: center;
    border-top: 4px solid var(--yellow);
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--yellow);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* ===== 11. PAGE VTT & ROUTE ===== */

/* Présentation */
.presentation-section {
    background: var(--white);
}

.presentation-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.presentation-text {
    flex: 1;
}

.presentation-text h2 {
    color: var(--black);
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.presentation-image {
    flex: 1;
}

.presentation-image-small {
    flex: 0 0 35%;
    max-width: 35%;
}

@media (max-width: 900px) {
    .presentation-image-small {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .presentation-image-small img {
        width: 100%;
        height: 260px;
        object-fit: cover;
    }
}

.presentation-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Coachs */
.coachs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.coach-card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    border-top: 3px solid var(--yellow);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.coach-card:hover {
    transform: translateY(-4px);
}

.coach-photo img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid var(--yellow);
}

.coach-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.coach-role {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
}

/* Informations pratiques */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.info-block h3 {
    color: var(--black);
    font-size: 1.2rem;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 8px;
}

.parcours-item,
.entrainement-item {
    background: var(--white);
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid var(--yellow);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.parcours-item h4 {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 4px;
}

/* ===== 12. PAGE HISTOIRE ===== */
.histoire-section {
    background: var(--white);
}

.histoire-content {
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.histoire-content .intro {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 36px;
    padding-left: 16px;
    border-left: 4px solid var(--yellow);
    line-height: 1.7;
}

.histoire-content p {
    margin-bottom: 22px;
    color: #333;
}

.histoire-galerie {
    max-width: 800px;
    margin: 0 auto;
}

.histoire-galerie h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--black);
    font-size: 1.4rem;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.photo-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== 13. PAGE 404 ===== */
.page-404 {
    padding: 100px 20px;
    text-align: center;
    background: var(--white);
}

.page-404 h1 {
    font-size: 5rem;
    color: var(--yellow);
    font-weight: 900;
    margin-bottom: 16px;
}

.page-404 p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* ===== 14. RESPONSIVE ===== */
/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Croix quand ouvert */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 800px) {
    .site-header .header-container {
        flex-direction: row;
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        border-top: 3px solid var(--yellow);
        z-index: 150;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .main-nav a {
        display: block;
        padding: 14px 24px;
        border-radius: 0;
        font-size: 1rem;
        border-bottom: 1px solid #2a2a2a;
    }

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

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

    .hero-small h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 50px 0;
    }

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

    .presentation-content {
        flex-direction: column;
    }

    .sponsors-logos-grid {
        gap: 14px;
    }

    .sponsor-logo-box {
        width: 110px;
        height: 55px;
    }

    .sponsors-grid,
    .coachs-grid,
    .info-grid,
    .sections-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 15. CARROUSEL SPONSORS ===== */
.sponsors-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 16px 0;
}

/* Dégradés de fondu sur les bords */
.sponsors-carousel-wrapper::before,
.sponsors-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sponsors-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.sponsors-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.sponsors-carousel-track {
    display: flex;
    gap: 16px;
    align-items: center;
    width: max-content;
    animation: carousel-scroll 35s linear infinite;
}

.sponsors-carousel-wrapper:hover .sponsors-carousel-track {
    animation-play-state: paused;
}

.carousel-item {
    flex-shrink: 0;
    width: 190px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    border: 1.5px solid #e8e8e8;
    padding: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.carousel-item:hover {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(217, 52, 42, 0.12), 0 4px 12px rgba(217, 52, 42, 0.1);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 1;
    transition: transform 0.3s;
}

.carousel-item:hover img {
    transform: scale(1.08);
}

@keyframes carousel-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 16. SPONSOR CARD — hover sur toute la card ===== */
.sponsor-card:hover .sponsor-card-logo img {
    filter: grayscale(0);
    opacity: 1;
}

.sponsor-card-logo img {
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.3s, opacity 0.3s;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== 17. COACHS EN CERCLE ===== */
.coachs-cercle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.coach-cercle-item {
    display: flex;
    justify-content: center;
}

.coach-cercle-card {
    background: var(--white);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    border-top: 3px solid var(--yellow);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    width: 210px;
    transition: transform 0.2s;
}

.coach-cercle-card:hover {
    transform: translateY(-6px);
}

.coach-cercle-card .coach-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid var(--yellow);
}

/* ===== 18. CATEGORIES NAV (Route) ===== */
.categories-section {
    background: var(--white);
}

.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.cat-btn {
    padding: 10px 20px;
    border: 2px solid var(--black);
    background: transparent;
    color: var(--black);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.03em;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

.cat-panel {
    display: none;
}

.cat-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.cat-panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 40px;
    border-left: 4px solid var(--yellow);
}

.cat-panel-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 16px;
}

.cat-panel-text ul {
    list-style: none;
    margin-bottom: 20px;
}

.cat-panel-text ul li {
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #333;
}

.cat-panel-text ul li::before {
    content: '→ ';
    color: var(--yellow-dim);
    font-weight: 700;
}

.cat-entrainement {
    background: var(--black);
    color: var(--yellow);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 16px;
}

.cat-panel-image .photo-placeholder {
    height: 220px;
    border-radius: 8px;
    font-size: 1rem;
}

/* ===== 19. HISTOIRE — blocs alternés ===== */
.histoire-bloc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.histoire-bloc-reverse {
    direction: rtl;
}

.histoire-bloc-reverse > * {
    direction: ltr;
}

.histoire-bloc-text h2 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 16px;
}

.histoire-annee {
    background: var(--yellow);
    color: var(--black);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 900;
    margin-left: 10px;
    vertical-align: middle;
}

.histoire-bloc-text p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 14px;
}

.histoire-bloc-image .photo-placeholder {
    height: 260px;
    border-radius: 10px;
    font-size: 1rem;
}

/* ===== 20. FACEBOOK WIDGET ===== */
.facebook-widget {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.facebook-link {
    margin-top: 16px;
}

/* ===== RESPONSIVE AJOUTS ===== */
@media (max-width: 768px) {
    .cat-panel-content {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .histoire-bloc,
    .histoire-bloc-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 24px;
        margin-bottom: 50px;
    }

    .coachs-cercle {
        gap: 16px;
    }

    .coach-cercle-card {
        width: 150px;
    }

    .categories-nav {
        gap: 6px;
    }

    .cat-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}
/* ===== 21. FOOTER ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0 30px;
    text-align: left;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 12px;
    line-height: 1.7;
}

.footer-logo {
    height: 75px;
    width: auto;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--yellow);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

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

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links a,
.footer-contact a {
    color: var(--gray);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--yellow);
}

.footer-contact p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact i {
    margin-right: 6px;
    color: var(--yellow);
    font-size: 0.85rem;
}

.footer-social {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--yellow);
    font-size: 1.3rem;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.footer-social a i {
    display: inline-block;
    line-height: 1;
}

.footer-social-fb {
    color: var(--yellow);
}

.footer-social-ig {
    color: var(--yellow);
}

.footer-social a:hover {
    color: #fff;
    transform: scale(1.15);
}

.footer-social-fb:hover {
    color: #1877f2 !important;
    background: transparent !important;
}

.footer-social-ig:hover {
    color: #e1306c !important;
    background: transparent !important;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #555;
}

/* ===== 22. BUREAU ===== */
.bureau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.bureau-card {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bureau-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.bureau-avatar {
    font-size: 2.4rem;
    color: var(--yellow-dim);
    flex-shrink: 0;
    line-height: 1;
}

.bureau-poste {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 4px;
}

.bureau-nom {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
}

.bureau-nom em {
    font-style: italic;
    color: var(--gray);
    font-weight: 400;
}

.bureau-email {
    font-size: 0.82rem;
    color: var(--gray);
    word-break: break-all;
}

.bureau-email i {
    margin-right: 4px;
}

.bureau-infos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.info-block-card {
    background: var(--white);
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    border-top: 4px solid var(--yellow);
}

.info-block-card i {
    font-size: 1.8rem;
    color: var(--yellow-dim);
    margin-bottom: 12px;
}

.info-block-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.info-block-card p,
.info-block-card a {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== 23. ENGAGEMENT — FORMULAIRE ===== */
.engagement-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.engagement-form {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e8e8e8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    color: var(--black);
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow-dim);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #c0392b;
}

.required-note {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 24px;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-success {
    background: #eafaf1;
    border-left: 4px solid #27ae60;
    color: #1e8449;
}

.alert-success i {
    margin-right: 8px;
}

.alert-error {
    background: #fdf3f3;
    border-left: 4px solid #e74c3c;
    color: #922b21;
}

.alert-error ul {
    margin: 0;
    padding-left: 18px;
}

/* ===== 24. RESPONSIVE — NOUVEAUX COMPOSANTS ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .engagement-form {
        padding: 24px 20px;
    }

    .bureau-grid {
        grid-template-columns: 1fr;
    }

    .bureau-infos-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 25. BOUTONS RÉSEAUX SOCIAUX (Actualités) ===== */
.actu-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-facebook:hover {
    background: #1558b0;
    color: #fff;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.btn-instagram:hover {
    opacity: 0.88;
    color: #fff;
}

/* ===== 26. BUREAU — PHOTO INTERACTIVE ===== */
.bureau-photo-wrapper {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: visible;
    line-height: 0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.bureau-photo-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    border-radius: 10px;
}

.bureau-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}

.bureau-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--yellow);
    border: 2px solid var(--black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 4;
    transition: transform 0.2s, background 0.2s;
}

.bureau-dot:hover,
.bureau-dot.active {
    transform: translate(-50%, -50%) scale(1.4);
    background: var(--red);
    border-color: var(--white);
}

.bureau-tooltip {
    position: absolute;
    background: var(--black);
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
    transform: translateX(-50%) translateY(-100%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1.4;
    text-align: center;
}

.bureau-tooltip.visible {
    opacity: 1;
}

.bureau-tooltip span {
    display: block;
    color: var(--white);
    font-weight: 400;
    font-size: 0.75rem;
}

.bureau-tooltip.above {
    transform: translateX(-50%) translateY(-100%);
}

/* Légende sous la photo */
.bureau-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 24px;
    justify-content: center;
}

.bureau-legende-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    color: var(--gray);
    transition: color 0.2s;
}

.bureau-legende-item.active {
    color: var(--black);
}

.bureau-legende-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    border: 1.5px solid var(--black);
    flex-shrink: 0;
    transition: background 0.2s;
}

.bureau-legende-item.active .bureau-legende-dot {
    background: var(--red);
}

@media (max-width: 768px) {
    .bureau-dot {
        width: 12px;
        height: 12px;
    }

    .bureau-tooltip {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .bureau-legende {
        gap: 8px 14px;
    }

    .bureau-legende-item {
        font-size: 0.82rem;
    }
}

/* ===== 25. CARROUSEL — boutons nav ===== */
.sponsors-carousel-wrapper {
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: var(--black);
    color: var(--yellow);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsors-carousel-wrapper:hover .carousel-nav {
    opacity: 1;
    pointer-events: auto;
}

.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

.carousel-nav:hover {
    background: var(--red);
    color: var(--white);
}

/* ===== 26. FOOTER — icônes réseaux sociaux ===== */

/* ===== 27. FOOTER RESPONSIVE amélioré ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-brand p { margin-top: 8px; }

    .footer-social {
        justify-content: center;
    }
}

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

/* ===== 28. ROUTE — catégories encadrants & multi-photos ===== */
.cat-entraineurs {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cat-entraineur-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Zone photos multiple */
.cat-panel-photos {
    flex: 1;
    min-width: 240px;
}

.cat-photos-grid {
    display: grid;
    gap: 8px;
    height: 100%;
}

/* 1 photo : pleine largeur */
.cat-photos-1 {
    grid-template-columns: 1fr;
}

/* 2 photos : côte à côte */
.cat-photos-2 {
    grid-template-columns: 1fr 1fr;
}

/* 3 photos : 1 grande + 2 petites */
.cat-photos-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 186px 186px;
}

.cat-photos-3 .cat-photo-item:first-child {
    grid-row: 1 / 3;
}

.cat-photo-item {
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

/* Hauteur fixe uniquement pour 1 et 2 photos (pas 3, gérée par les rows ci-dessus) */
.cat-photos-1 .cat-photo-item {
    height: 420px;
}

.cat-photos-2 .cat-photo-item {
    height: 380px;
}

.cat-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cat-photo-item:hover img {
    transform: scale(1.04);
}

.cat-photos-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: #f0f0f0;
    border-radius: 8px;
    color: #aaa;
    border: 2px dashed #ccc;
    gap: 8px;
}

.cat-photos-placeholder span {
    font-size: 2rem;
}

.cat-photos-placeholder p {
    font-size: 0.85rem;
    margin: 0;
}

/* ===== 29. BUREAU — tooltip toujours en dessous + légende hover ===== */
.bureau-tooltip {
    transform: translateX(-50%) translateY(0);
}

.bureau-legende-item {
    cursor: pointer;
    transition: color 0.2s, font-weight 0.1s;
}

.bureau-legende-item:hover,
.bureau-legende-item.active {
    color: var(--black);
    font-weight: 700;
}

.bureau-legende-item:hover .bureau-legende-dot,
.bureau-legende-item.active .bureau-legende-dot {
    background: var(--red);
    transform: scale(1.3);
}

.bureau-legende-dot {
    transition: background 0.2s, transform 0.2s;
}

/* ===== 27. DIAPORAMA VTT ===== */
.vtt-slider-section {
    padding-bottom: 50px;
    overflow: hidden;
}

.vtt-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.vtt-slider-wrapper::before,
.vtt-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.vtt-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.vtt-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.vtt-slider-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: vtt-scroll 40s linear infinite;
    padding: 16px 0;
}

.vtt-slider-wrapper:hover .vtt-slider-track {
    animation-play-state: paused;
}

.vtt-slide {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vtt-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

@keyframes vtt-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .vtt-slide {
        width: 240px;
        height: 160px;
    }
}

/* ===== 28. LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--yellow);
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: none;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* Curseur pointer sur les photos cliquables */
.vtt-slide img,
.cat-photo-item img {
    cursor: pointer;
}

/* ===== HISTOIRE — double image ===== */
.histoire-bloc-image-double {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
 
.histoire-bloc-image-double img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .histoire-bloc-image-double {
        flex-direction: column;
    }

    .histoire-bloc-image-double img {
        width: 100%;
        height: auto;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
}
 
/* ===== VTT SLIDER — images verticales (portrait) ===== */
.vtt-slide.vtt-slide-vertical {
    width: 148px;
    height: 220px;
}

@media (max-width: 768px) {
    .vtt-slide.vtt-slide-vertical {
        width: 107px;
        height: 160px;
    }
}