/* Variables - Charte Graphique PULSE */
:root {
    --pulse-black: #0D0D0D;        /* Noir profond - couleur principale */
    --pulse-yellow: #FFC845;       /* Jaune safran - couleur d'accent */
    --pulse-beige: #2C3E50;        /* Bleu/gris sombre - couleur de soutien */
    --pulse-ivory: #F6F5F2;        /* Ivoire - couleur principale */
}

/* Styles globaux pour les liens */
a {
    color: inherit;
    text-decoration: none;
}

a:not(.nav-logo):not(.btn):not([class*="bg-"]):not([class*="text-pulse-yellow"]) {
    color: var(--pulse-beige);
    transition: color 0.3s ease;
}

a:not(.nav-logo):not(.btn):not([class*="bg-"]):not([class*="text-pulse-yellow"]):hover {
    color: var(--pulse-yellow);
}

/* Focus visible avec beige minéral */
*:focus-visible {
    outline: 2px solid var(--pulse-beige);
    outline-offset: 2px;
}

/* Classes utilitaires pour les fonds */
.bg-pulse-beige {
    background-color: var(--pulse-beige);
    color: white !important;
}

.bg-pulse-beige *:not(.text-pulse-yellow):not(.bg-pulse-black):not(.bg-pulse-black *) {
    color: white !important;
}

.bg-pulse-beige h1,
.bg-pulse-beige h2,
.bg-pulse-beige h3,
.bg-pulse-beige h4,
.bg-pulse-beige p,
.bg-pulse-beige li,
.bg-pulse-beige span:not(.text-pulse-yellow) {
    color: white !important;
}

.bg-pulse-beige .text-gray-200,
.bg-pulse-beige .text-gray-300,
.bg-pulse-beige .text-gray-400 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-pulse-beige-light {
    background-color: rgba(216, 207, 196, 0.1);
}

.border-pulse-beige {
    border-color: var(--pulse-beige);
}

/* Forcer le texte blanc dans les cartes noires même si elles sont dans un fond beige */
.bg-pulse-black {
    background-color: var(--pulse-black) !important;
}

.bg-pulse-black h1:not(.text-pulse-yellow),
.bg-pulse-black h2:not(.text-pulse-yellow),
.bg-pulse-black h3:not(.text-pulse-yellow),
.bg-pulse-black h4:not(.text-pulse-yellow),
.bg-pulse-black p:not(.text-pulse-yellow),
.bg-pulse-black li:not(.text-pulse-yellow),
.bg-pulse-black div:not(.text-pulse-yellow) {
    color: white !important;
}

.bg-pulse-black .text-white {
    color: white !important;
}

/* Préserver le jaune partout */
.text-pulse-yellow,
.bg-pulse-black .text-pulse-yellow,
.bg-pulse-beige .text-pulse-yellow {
    color: var(--pulse-yellow) !important;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--pulse-black);
    color: #ffffff;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 0;
}

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.25rem;
    text-transform: uppercase;
    color: var(--pulse-yellow);
    letter-spacing: 0.15em;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/salle-principale.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Zones Section */
.zones-section {
    padding: 6rem 0;
    background-color: var(--pulse-black);
}

.zone-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.zone-card:hover {
    transform: translateY(-5px);
}

.zone-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6));
}

.zone-hyrox {
    background-image: url('images/hyrox-1.jpg');
    background-size: cover;
    background-position: center;
}

.zone-fitness {
    background-image: url('images/fitness-1.jpg');
    background-size: cover;
    background-position: center;
}

.zone-musculation {
    background-image: url('images/musculation-tractions.jpg');
    background-size: cover;
    background-position: center;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.95), rgba(17, 17, 17, 0.98));
}

.pricing-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(17, 17, 17, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.pricing-card.featured {
    position: relative;
}

.pricing-card.featured::before {
    content: none;
    right: 1rem;
    background: var(--pulse-yellow);
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    z-index: 2;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-badge {
    display: inline-block;
    background: var(--pulse-yellow);
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pulse-yellow);
    margin: 1.5rem 0 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-duration {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.pricing-features {
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.pricing-feature svg {
    margin-right: 1rem;
    color: var(--pulse-yellow);
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-card .pricing-cta {
    background-color: var(--pulse-yellow);
    color: black;
}

.pricing-card .pricing-cta:hover {
    background-color: #f4c800;
}

/* Mobile Menu */
#mobile-menu {
    width: 260px;
    max-width: 80vw;
    background: #0D0D0D;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

#mobile-menu.mobile-menu-open {
    transform: translateX(0) !important;
}

#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu li a {
    display: block;
    padding: 14px 16px;
    font-size: 17px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

#mobile-menu li a:hover,
#mobile-menu li a:active {
    background-color: rgba(255, 200, 69, 0.15);
    color: #FFC845;
}

#mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
    z-index: 99;
}

#mobile-menu-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Modal */
#reservation-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

#reservation-modal.hidden {
    display: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-pulse-yellow {
    color: var(--pulse-yellow);
}

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

.text-black {
    color: black;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-card {
        min-height: auto;
        padding: 2rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
}
