/* ================================
   CROSSFIT CLERMONT L'HÉRAULT
   Feuille de style principale
   ================================ */

/* --- Variables CSS --- */
:root {
    --primary-red: #d90429;
    --dark-red: #8b0000;
    --dark-bg: #111111;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 3px;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98); /* Fond blanc quasi opaque */
    backdrop-filter: blur(10px);
    padding: 0.8rem 0; /* Un peu plus de padding pour l'élégance */
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); /* Ombre plus légère */
}

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

/* --- Agrandissement du Logo --- */
.logo-img {
    height: 80px; /* Passage de 60px à 80px pour plus d'impact */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); /* Petit effet au survol */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark); /* Texte noir sur fond blanc */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

/* Force le texte du bouton en blanc, même en thème clair */
.nav-menu a.btn-cta {
    color: var(--text-light) !important;
}

/* Optionnel : changement de couleur au survol pour plus de dynamisme */
.nav-menu a.btn-cta:hover {
    background-color: var(--dark-red);
    color: var(--text-light) !important;
}

/* Menu Hamburger Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
    background: var(--text-dark);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ================================
   HERO SECTIONS
   ================================ */

/* Hero Page d'Accueil (80vh) */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/couverture.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Hero Pages Internes (50vh) */
.hero-internal {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('images/couverture.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero-internal .hero-title {
    font-size: 5rem;
    margin-bottom: 0;
}

.hero-title span {
    color: var(--primary-red);
}

/* ================================
   SECTIONS COMMUNES
   ================================ */
.section-padding {
    padding: 100px 2rem;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
    text-transform: uppercase;
}

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

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

.content-section {
    padding: 100px 2rem;
    background: white;
}

.content-text {
    font-size: 1.15rem;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.highlight {
    color: var(--primary-red);
    font-weight: 700;
}

/* ================================
   PHILOSOPHIE & CONCEPT (Page d'accueil)
   ================================ */
.philosophie {
    background: white;
    text-align: center;
    padding: 100px 2rem 50px;
}

.philosophie-text {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #333;
    line-height: 2;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 1rem;
}

.concept-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 6px solid var(--primary-red);
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.concept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-red);
}

.concept-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

/* Alignement des logos sous la philosophie */
.philosophie-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap; /* Pour que ça passe sur deux lignes sur petit mobile si besoin */
}

.partner-logo {
    max-height: 200px; /* Taille contrôlée pour garder l'aspect "Elite" et discret */
    width: auto;
    filter: grayscale(100%); /* Optionnel : pour un look plus sobre et pro */
    opacity: 0.8;
    transition: 0.3s ease;
}

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

/* ================================
   NOS PROGRAMMES (Page d'accueil)
   ================================ */
.programs-section {
    background: var(--dark-bg);
    color: white;
}

.programs-grid {
    display: grid;
    /* On réduit le minmax à 240px pour que les 4 cartes rentrent sur une ligne si possible */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: #1a1a1a;
    padding: 3.5rem 2rem;
    border-radius: 20px;
    border: 1px solid #333;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.program-card:hover {
    transform: scale(1.03);
    border-color: var(--primary-red);
}

.program-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.program-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.program-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.program-features li::before {
    content: '✓';
    color: var(--primary-red);
    margin-right: 12px;
    font-weight: bold;
}

.kids-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

.kids-details.active {
    max-height: 200px; /* Ajuste selon le contenu */
    opacity: 1;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.price-kids {
    font-size: 1.8rem;
    font-family: 'Bebas Neue', cursive;
    color: var(--primary-red);
}

.price-kids span { font-size: 0.9rem; color: #ccc; }

.duration-kids { font-weight: 700; margin: 0.5rem 0; }

.payment-note {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Ajustement de la carte pour qu'elle respire */
.program-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* ================================
   TARIFS (Page d'accueil)
   ================================ */
.pricing {
    background: var(--dark-bg);
    padding-top: 0;
    padding-bottom: 120px;
    text-align: center;
    color: white;
}

.price-card {
    display: inline-block;
    padding: 4rem 5rem;
    border: 2px solid var(--primary-red);
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
}

.price-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.8;
}

.price-number {
    font-size: 6rem;
    font-family: 'Bebas Neue', cursive;
    color: var(--primary-red);
    line-height: 0.9;
}

/* ================================
   INSTAGRAM (Page d'accueil)
   ================================ */
.insta-section {
    background: white;
    text-align: center;
    padding: 100px 2rem;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 3rem auto;
}

.insta-item {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(217, 4, 41, 0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

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

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

.btn-insta {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* ================================
   TÉMOIGNAGES (Page d'accueil)
   ================================ */
.testimonials {
    background: var(--dark-bg);
    color: white;
    text-align: center;
}

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

.testimonial-card {
    background: #1a1a1a;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    border: 1px solid #333;
    transition: 0.4s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #555;
}

.stars {
    color: #ffc107;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* ================================
   CONTACT (Page d'accueil)
   ================================ */
.contact-section {
    background: white;
    padding: 100px 2rem;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
    align-items: start;
}

.contact-info-side {
    padding-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
}

.contact-form-box {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

.btn-form {
    width: 100%;
    margin-top: 1rem;
}

.map-container {
    margin-top: 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
}

/* ================================
   DISCIPLINES (Page Définition)
   ================================ */
.discipline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 60px 0;
}

/* --- Mise à jour pour les cartes avec IMAGES --- */

.discipline-card {
    background: white;
    /* On enlève le padding global pour que l'image touche les bords */
    padding: 0 0 2rem 0; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 6px solid var(--primary-red);
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden; /* Important pour que l'image suive l'arrondi des coins */
}

/* Nouveau : Conteneur de l'image */
.discipline-img {
    width: 100%;
    height: 250px; /* Hauteur fixe pour aligner toutes les cartes */
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Nouveau : Style de l'image */
.discipline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit la zone sans être déformée */
    transition: transform 0.5s ease;
}

/* Effet Zoom au survol */
.discipline-card:hover .discipline-img img {
    transform: scale(1.05);
}

.discipline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-red);
}

/* On remet le padding (espacement) uniquement sur le titre et le texte */
.discipline-card h3, 
.discipline-card p {
    padding: 0 1.5rem; 
}

.discipline-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ================================
   HISTOIRE (Page Définition)
   ================================ */
.history-section {
    background: var(--dark-bg);
    color: white;
    padding: 100px 2rem;
    text-align: center;
}

.history-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote {
    font-size: 2rem;
    font-family: 'Bebas Neue', cursive;
    color: var(--primary-red);
    margin: 30px 0;
    letter-spacing: 1px;
}

/* ================================
   MOUVEMENTS FONDAMENTAUX (Page Fondations)
   ================================ */
.movements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 60px 0;
}

.movement-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 6px solid var(--primary-red);
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.movement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-red);
}

.movement-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.movement-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   LIGHTBOX (Page Fondations)
   ================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 0 30px rgba(217, 4, 41, 0.3);
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-red);
}

/* ================================
   PROGRAMME DÉTAILS (Page Fondations)
   ================================ */
.program-details {
    background: var(--dark-bg);
    color: white;
    padding: 100px 2rem;
    text-align: center;
}

.program-box {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-list {
    list-style: none;
    text-align: left;
    margin: 30px 0;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.step-list i {
    color: var(--primary-red);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ================================
   BOUTONS
   ================================ */
.btn-cta {
    background: var(--primary-red);
    color: white;
    padding: 1.2rem 2.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.4);
}

/* ================================
   BOUTON RETOUR EN HAUT
   ================================ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: none;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--dark-red);
    transform: translateY(-5px);
}

/* ================================
   BOUTON CONTACT FLOTTANT
   ================================ */

#floatingContact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-red);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(217, 4, 41, 0.4);
    transition: 0.4s ease;
}

#floatingContact:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--dark-red);
}

/* Sur mobile, on peut ne garder que l'icône pour plus de discrétion */
@media (max-width: 600px) {
    #floatingContact span {
        display: none;
    }
    #floatingContact {
        padding: 0;
        bottom: 30px; /* Aligné sur la hauteur du bouton retour en haut */
        left: 30px;   /* Aligné sur la marge du bouton retour en haut */
        width: 50px;  /* Même largeur que #backToTop */
        height: 50px; /* Même hauteur que #backToTop */
        justify-content: center; /* Centre l'icône mail */
        border-radius: 50%; /* On le rend rond comme l'autre */
    }
    #floatingContact i {
        font-size: 1.5rem; /* Même taille d'icône que la flèche */
    }
}

/* --- Style pour l'image du fondateur --- */
.history-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.founder-img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Image ronde */
    border: 3px solid var(--primary-red);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Style pour le blocage de la carte */
.map-overlay {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ================================
   MENTIONS LÉGALES
   ================================ */
.legal-content {
            padding: 120px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}
.legal-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 30px;
}
.legal-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-top: 40px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    margin-bottom: 15px;
}
.legal-content p, .legal-content li {
    color: #333;
    margin-bottom: 15px;
}

/* ================================
   FOOTER
   ================================ */
footer {
    padding: 60px 2rem;
    text-align: center;
    background: #000;
    color: #dfdfdf;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 800px) {
    .menu-toggle {
        display: flex;
    }
    
    .logo-img {
        height: 65px; /* On le réduit un peu sur mobile pour garder de l'espace écran */
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98) !important; 
        border-bottom: 2px solid #eee;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    /* Liens en noir pour la lisibilité sur fond blanc */
    .nav-menu a {
        color: var(--text-dark) !important;
        font-size: 1.1rem; /* Un peu plus grand pour le confort tactile */
    }

    /* On garde le bouton d'action bien visible */
    .nav-menu .btn-cta {
        color: white !important;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-internal .hero-title {
        font-size: 3rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .history-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .history-header .section-title {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .price-number {
        font-size: 4rem;
    }

    .price-card {
        padding: 3rem 2rem;
    }

    .philosophie-logos {
        gap: 1.5rem;
    }
    .partner-logo {
        max-height: 60px; /* Plus petit sur mobile */
    }
}

@media (prefers-color-scheme: dark) {
    /* On garde le fond du site sombre */
    body {
        background-color: #111;
        color: #ffffff;
    }

    .navbar {
        background: rgba(0, 0, 0, 0.95);
    }

    .nav-menu {
        background: rgba(0, 0, 0, 0.95) !important;
        border: none !important;
    }

    .nav-menu a {
        color: var(--text-light) !important;
    }

    .menu-toggle span {
        background: white;
    }

    /* On force les sections de texte à être lisibles sur fond noir */
    .philosophie,
    .contact-section,
    .content-section,
    .history-section, 
    .insta-section {
        background-color: #111 !important;
    }

    /* C'est ici qu'on règle ton souci : on garde les cartes claires */
    .concept-card, .discipline-card, .movement-card {
        background-color: #ffffff !important; /* On force le fond blanc */
        color: #1a1a1a !important; /* On force le texte noir pour qu'il soit lisible sur le blanc */
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1); /* Ombre légère pour le relief */
    }

    /* On s'assure que les paragraphes hors cartes sont bien blancs */
    .philosophie-text, .content-text, .section-title {
        color: #ffffff !important;
    }

    /* On ajuste le formulaire pour qu'il reste utilisable */
    .contact-form-box {
        background-color: #1a1a1a;
        border: 1px solid #333;
    }
    
    .form-group label {
        color: #ffffff;
    }

    /* Le titre @crossfitclermontlherault devient alors parfaitement visible en blanc */
    .section-title {
        color: #ffffff !important;
    }

    /* Optionnel : On peut aussi ajuster la couleur du bouton Instagram pour qu'il tranche mieux */
    .btn-insta {
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    }

    .legal-content p, .legal-content li {
        color: #d1d1d1 !important; /* Gris clair pour le texte */
    }

    .map-overlay {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .map-overlay p {
        color: white !important;
    }
}
