/* css/style.css */

/* =========================================
   RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: var(--line-height-tight);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1 {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    letter-spacing: -1px;
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
}

.subtitle {
    font-size: var(--font-size-xl);
    font-weight: 300;
    letter-spacing: 2px;
}

.subtitle-small {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-xs);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary,
.btn-outline,
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--color-text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}

.btn-outline-light:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary-dark);
}

/* =========================================
   HEADER
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.4rem 0;
    transition: all var(--transition-base);
}

.main-header.scrolled {
    padding: 0.35rem 0;
    background-color: rgba(78, 28, 93, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* =========================================
   UTILITIES
   ========================================= */
.text-light {
    color: var(--color-text-light) !important;
}

.bg-primary-dark {
    background-color: var(--color-primary-dark) !important;
}

.mt-none {
    margin-top: 0 !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mt-sm {
    margin-top: var(--space-sm) !important;
}

.mt-md {
    margin-top: var(--space-md) !important;
}

.mb-lg {
    margin-bottom: var(--space-lg) !important;
}

.pt-2xl {
    padding-top: var(--space-2xl) !important;
}

.fs-lg {
    font-size: var(--font-size-lg) !important;
}

.fs-2xl {
    font-size: var(--font-size-2xl) !important;
}

.fs-3xl {
    font-size: var(--font-size-3xl) !important;
}

.max-800 {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ls-normal {
    text-transform: none !important;
    line-height: 1.4 !important;
}

.reveal-delay-1 {
    transition-delay: 0.1s !important;
}

.reveal-delay-2 {
    transition-delay: 0.2s !important;
}

.reveal-delay-3 {
    transition-delay: 0.3s !important;
}

.reveal-delay-35 {
    transition-delay: 0.35s !important;
}

.reveal-btn-footer {
    cursor: pointer;
    opacity: 0.6;
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
}

.reveal-btn-footer:hover {
    opacity: 1;
}

.hero-overlay-dark {
    background: rgba(0, 0, 0, 0.4) !important;
}

.d-none-mobile {
    display: block;
}

.d-block-mobile {
    display: none;
}

@media (max-width: 992px) {
    .d-none-mobile {
        display: none !important;
    }

    .d-block-mobile {
        display: block !important;
    }
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo a:hover {
    transform: scale(1.02);
}

.headphone-icon {
    width: 28px;
    height: 28px;
}

.nav-left ul,
.nav-right ul {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-left a,
.nav-right a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-left a:hover,
.nav-right a:hover {
    color: #fff;
    text-decoration: underline !important;
}

.nav-left a::after,
.nav-right a:not(.btn-outline-small)::after {
    content: none;
}

.btn-outline-small {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    color: white !important;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-outline-small:hover {
    background-color: white;
    color: var(--color-primary) !important;
    border-color: white;
    text-decoration: none !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-light);
    transition: var(--transition-fast);
}

.mobile-nav-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.4), var(--color-primary-dark));
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 1rem;
    color: var(--color-text-light);
}

.hero-content h1,
.hero-content p {
    color: var(--color-text-light) !important;
}

.hero-content h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    letter-spacing: 4px;
    margin-bottom: var(--space-lg);
    font-weight: 300;
    color: white !important;
    opacity: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-channels {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.channel-info {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 4rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.channel-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    color: white;
    opacity: 0.9;
}

.lights-wrapper {
    display: flex;
    gap: 4rem;
    margin-top: 1rem;
    padding-bottom: 0;
}

.channel {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    opacity: 0.1;
    background-color: currentColor;
    box-shadow: 0 0 0px currentColor;
    animation: sequentialPulse 3s infinite ease-in-out;
}

.dot-red {
    color: var(--color-channel-red);
    animation-delay: 0s;
}

.dot-blue {
    color: var(--color-channel-blue);
    animation-delay: 1s;
}

.dot-green {
    color: var(--color-channel-green);
    animation-delay: 2s;
}

@keyframes sequentialPulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.1;
        box-shadow: 0 0 0px currentColor;
    }

    20%,
    33.33% {
        transform: scale(1.1);
        opacity: 0.9;
        box-shadow: 0 0 40px currentColor, 0 0 15px currentColor;
    }

    53.33%,
    80% {
        transform: scale(0.9);
        opacity: 0.1;
        box-shadow: 0 0 0px currentColor;
    }
}

/* =========================================
   INTRO BANNER
   ========================================= */
.intro-banner {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--space-lg) 0;
    text-align: center;
}

.intro-banner .highlight-text {
    font-size: var(--font-size-2xl);
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    padding: var(--space-sm);
}

.feature-item svg {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

.feature-item p {
    color: var(--color-text-light);
    font-size: var(--font-size-base);
    opacity: 0.9;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    padding: var(--space-2xl) 0;
    background-color: var(--color-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
}

.about-image .image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: var(--radius-lg);
    background-image: url('../assets/images/about-group.jpg');
    /* People connecting at event */
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.about-image .image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* subtle inner border */
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
    padding: 250px 0 150px;
    background-image: url('../assets/images/c0bc1a2-16fe-f366-f163-780d124aa7_de7aa0a3-f6c9-445b-a34c-2c81495cb06e.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
}

/* Dark overlay for parallax section readability */
.how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 20, 0.55);
    pointer-events: none;
    z-index: 1;
}

.how-it-works .container {
    position: relative;
    z-index: 2;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

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

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

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* Floating card animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    margin-bottom: 30px;
    animation: float 5s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

.floating-card.card-answer {
    animation-delay: -2.5s;
}

.floating-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(78, 28, 93, 0.3);
}

.floating-card h2 {
    color: var(--color-primary-dark);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-top: 10px;
}

.floating-card h3 {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.floating-card p {
    color: var(--color-text-main);
    margin-bottom: 15px;
}

.btn-outline-dark {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #575757;
    color: #575757;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.btn-outline-dark:hover {
    background: #575757;
    color: white;
}

@media (max-width: 991px) {

    .col-4,
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .how-it-works {
        padding: 100px 0;
    }

    .floating-card {
        animation: none;
    }
}

.info-card {
    background-color: var(--color-bg-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    max-width: 600px;
    box-shadow: var(--shadow-lg);
}

.info-card h2 {
    color: var(--color-primary-dark);
}

.info-card h3 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--color-text-main);
}

.headphone-lights {
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.headphone-lights p {
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.lights-wrapper {
    display: flex;
    gap: 1rem;
}

.light {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: var(--font-size-sm);
}

.light::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.light.red::before {
    background-color: var(--color-channel-red);
    box-shadow: 0 0 8px var(--color-channel-red);
}

.light.blue::before {
    background-color: var(--color-channel-blue);
    box-shadow: 0 0 8px var(--color-channel-blue);
}

.light.green::before {
    background-color: var(--color-channel-green);
    box-shadow: 0 0 8px var(--color-channel-green);
}

/* =========================================
   SERVICES CARDS
   ========================================= */
.services-cards {
    padding: var(--space-2xl) 0;
    background-color: var(--color-bg-darker);
    position: relative;
    overflow: hidden;
}

.services-cards::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(78, 28, 93, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 2;
}

.card {
    background-color: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--color-text-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(78, 28, 93, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-image {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(26, 26, 26, 0.8) 70%, var(--color-bg-dark) 100%);
}

.bg-equipement {
    background-image: url('../assets/images/card-equipement.jpg');
}

.bg-evenement {
    background-image: url('../assets/images/card-evenement.jpg');
}

.bg-lieux {
    background-image: url('../assets/images/card-lieux.jpg');
}

.bg-equipement-support {
    background-image: url('../assets/images/card-lieux.jpg');
}

.bg-prise-charge {
    background-image: url('../assets/images/card-evenement.jpg');
}

.bg-municipalites {
    background-image: url('../assets/images/services-municipalites.jpg');
}

.card-content {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    margin-bottom: var(--space-xs);
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.card .btn-outline-light {
    width: 100%;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

blockquote {
    font-size: var(--font-size-xl);
    font-style: italic;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
}

cite {
    font-weight: 700;
    color: var(--color-text-main);
    font-style: normal;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dots .dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    font-size: var(--font-size-lg);
    font-weight: 900;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-xs);
    margin-top: var(--space-sm);
}

/* =========================================
   ANIMATIONS & UTILITIES
   ========================================= */
/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

.fade-up {
    transform: translateY(50px);
}

.reveal.fade-left.active,
.reveal.fade-right.active,
.reveal.fade-up.active {
    transform: translate(0, 0);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .intro-features {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image .image-wrapper {
        min-height: 400px;
    }
}

@media (max-width: 768px) {

    .nav-left,
    .nav-right {
        display: none;
        /* Hide desktop nav */
    }

    .mobile-menu-btn {
        display: flex;
        /* Show mobile menu icon */
    }

    .cards-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }

    .intro-banner .highlight-text {
        font-size: var(--font-size-xl);
    }

    .info-card {
        padding: var(--space-md);
    }
}

/* =========================================
   SUBPAGE UTILITIES
   ========================================= */
.hero-services,
.hero-histoire,
.hero-fiche,
.hero-photos {
    min-height: 400px;
    height: 60vh;
}

.hero-services {
    background-image: url('../assets/images/hero-services.jpg');
}

.hero-histoire {
    background-image: url('../assets/images/hero-histoire.jpg');
}

.hero-fiche {
    background-image: url('../assets/images/hero-fiche.jpg');
}

.hero-photos {
    background-image: url('../assets/images/hero-photos.jpg');
}

/* =========================================
   CONTACT FORM & PREMIUM COMPONENTS
   ========================================= */
.contact-section {
    background-color: var(--color-bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-xl) + 70px) 0 var(--space-xl);
}

.contact-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    align-items: stretch;
    max-width: 1050px;
    margin: 0 auto;
}

.contact-image-side {
    background-size: cover;
    background-position: center top;
    min-height: 560px;
    position: relative;
    border-radius: 0;
}

.contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
    padding: 2.5rem var(--space-md);
    text-align: center;
}

.contact-form-side {
    padding: var(--space-md) var(--space-lg);
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-bg-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #eee;
    border-radius: var(--radius-md);
    font-family: var(--font-family-main);
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(78, 28, 93, 0.1);
}

.premium-glow {
    box-shadow: 0 10px 20px rgba(78, 28, 93, 0.2);
    transition: all var(--transition-base);
}

.premium-glow:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Contact responsive */
@media (max-width: 768px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-image-side {
        min-height: 300px;
    }

    .contact-form-side {
        padding: var(--space-md);
    }
}

/* Video Background Utility */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-light);
    transition: all 0.3s ease;
}

/* Hamburger to X Animation */
.mobile-nav-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 992px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        padding: 0 var(--space-md);
    }

    .nav-left,
    .nav-right {
        display: none;
        /* Hide standard nav on mobile */
    }

    .main-header.mobile-nav-open {
        background: var(--color-bg-dark);
        height: 100vh;
    }

    .main-header.mobile-nav-open .header-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 3rem 1rem 4rem;
        height: 100%;
        overflow-y: auto;
        gap: 1.5rem;
    }

    /* Use display contents to flatten the flex hierarchy for ordering */
    .main-header.mobile-nav-open .nav-left,
    .main-header.mobile-nav-open .nav-right,
    .main-header.mobile-nav-open nav ul {
        display: contents;
    }

    .main-header.mobile-nav-open .logo-group {
        order: 1;
        margin-bottom: 1rem;
    }

    .main-header.mobile-nav-open .logo {
        margin-bottom: 0;
    }

    /* Link ordering */
    .main-header.mobile-nav-open .nav-left li:nth-child(1) { order: 2; }
    .main-header.mobile-nav-open .nav-left li:nth-child(2) { order: 3; }
    .main-header.mobile-nav-open .nav-left li:nth-child(3) { order: 4; }
    
    .main-header.mobile-nav-open .nav-right li:nth-child(2) { order: 5; } /* PHOTOTHÈQUE */
    .main-header.mobile-nav-open .nav-right li:nth-child(3) { order: 6; } /* CONTACT */
    
    /* Private reservation button at the bottom */
    .main-header.mobile-nav-open .nav-right li:nth-child(1) {
        order: 7;
        width: 100%;
        max-width: 320px;
    }

    .main-header.mobile-nav-open .nav-right li:nth-child(1) a {
        display: block;
        padding: 0.8rem 1.5rem;
        border: 1px solid white;
        border-radius: var(--radius-sm);
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }

    .main-header.mobile-nav-open .nav-right li:nth-child(1) a:hover {
        background: white;
        color: var(--color-bg-dark);
    }

    /* Put X at the bottom */
    .main-header.mobile-nav-open .mobile-menu-btn {
        order: 8;
        margin-top: 2rem;
    }


    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
    }

    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    .card-image {
        height: 300px !important;
    }

    .hero-content {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

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

    section {
        padding: var(--space-lg) 0;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .hero-channels {
        margin-top: 1rem;
    }
}

/* Fix for large empty spaces */
section:empty {
    display: none;
}

.intro-banner .container {
    max-width: 900px;
}


/* =========================================
   NOTRE HISTOIRE — PAGE STYLES
   ========================================= */

/* Hero */
.hero-histoire-wrap {
    position: relative;
    height: 65vh;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-histoire-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/hero-histoire.jpg');
    background-size: cover;
    background-position: center 30%;
}

.hero-histoire-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(55, 18, 67, 0.55) 60%,
            rgba(26, 26, 26, 0.95) 100%);
}

.hero-histoire-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 70px;
}

.hero-histoire-content .eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    opacity: 0.9;
    display: block;
    margin-bottom: 16px;
}

.hero-histoire-content h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    color: white;
    font-weight: 900;
    letter-spacing: -1px;
    max-width: 760px;
}


/* Mission & Vision Sections */
.histoire-section {
    padding: 120px 0;
    background: white;
}

.histoire-section.dark {
    background: var(--color-bg-dark);
    color: white;
}

.histoire-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.histoire-text .label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 24px;
}

.dark .histoire-text .label {
    color: var(--color-primary-light);
}

.histoire-text h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    color: var(--color-bg-dark);
    margin-bottom: 16px;
    font-weight: 900;
}

.dark .histoire-text h2 {
    color: white;
}

.histoire-divider {
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 32px 0;
    border-radius: 2px;
}

.dark .histoire-divider {
    background: var(--color-primary-light);
}

.histoire-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.dark .histoire-text p {
    color: rgba(255, 255, 255, 0.75);
}

.histoire-image-frame {
    position: relative;
    z-index: 1;
}

.histoire-image-frame img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

/* Frame accents */
.histoire-image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.2;
}

.dark .histoire-image-frame::before {
    display: none;
}

.vision-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.vision-corner.tl {
    top: -15px;
    left: -15px;
    border-top: 4px solid var(--color-primary-light);
    border-left: 4px solid var(--color-primary-light);
    border-radius: var(--radius-sm) 0 0 0;
}

.vision-corner.br {
    bottom: -15px;
    right: -15px;
    border-bottom: 4px solid var(--color-primary-light);
    border-right: 4px solid var(--color-primary-light);
    border-radius: 0 0 var(--radius-sm) 0;
}

/* Values */
.values-wrap {
    background: #f8f9fa;
    padding: 120px 0;
}

.values-header {
    text-align: center;
    margin-bottom: 80px;
}

.values-header .label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 20px;
}

.values-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--color-bg-dark);
    font-weight: 900;
    letter-spacing: -1px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 6px solid var(--color-primary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.value-card:nth-child(2) {
    border-bottom-color: var(--color-primary-light);
}

.value-card:nth-child(3) {
    border-bottom-color: var(--color-accent);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(78, 28, 93, 0.06);
}

.value-card h3 {
    color: var(--color-bg-dark);
    font-size: 1.6rem;
    margin-bottom: 18px;
    font-weight: 900;
}

.value-card p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

/* CTA */
.histoire-cta {
    background: var(--color-primary);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.histoire-cta h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 20px;
    font-weight: 900;
    color: white;
}

.histoire-cta p {
    font-size: 1.2rem;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 991px) {
    .histoire-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .histoire-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .vision-image-frame {
        order: -1;
    }

    .values-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* =========================================
   FICHE TECHNIQUE — PAGE STYLES
   ========================================= */

.hero-fiche {
    height: 50vh;
    min-height: 400px;
}

.technical-details {
    background-color: var(--color-bg-dark);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(78, 28, 93, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(106, 42, 126, 0.1) 0%, transparent 50%);
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
}

.technical-details::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.tech-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.tech-header .label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    display: block;
    margin-bottom: 20px;
}

.tech-header h2 {
    color: white;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
    font-weight: 900;
}

.tech-header p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stats Bar */
.tech-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(26, 26, 26, 0.6);
    padding: 40px 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stat-val {
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-val span {
    font-size: 0.5em;
    margin-left: 2px;
    vertical-align: middle;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

/* Equipment Cards */
.equip-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.equip-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    flex: 1 1 320px;
    max-width: 380px;
}

.equip-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.equip-card-header {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.equip-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.equip-card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.equip-card-body {
    padding: 30px;
    flex-grow: 1;
}

.spec-note {
    margin-top: 16px;
    font-size: 0.88rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
    line-height: 1.5;
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.spec-label {
    padding: 16px 16px 16px 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    width: 40%;
    vertical-align: middle;
    font-weight: 700;
}

.spec-value {
    padding: 16px 0;
    color: white;
    font-size: 1.05rem;
    font-weight: 400;
    vertical-align: middle;
    line-height: 1.4;
}

/* CONTACT — PAGE STYLES */
.contact-section {
    padding: 140px 0 100px;
    background: #f8f9fa;
}

.contact-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-image-side {
    position: relative;
    background-size: cover;
    background-position: 25% center;
    min-height: 100%;
}

.contact-form-side {
    padding: 60px 70px;
}

.contact-form-side h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
    color: var(--color-bg-dark);
    font-weight: 900;
    letter-spacing: -1px;
}

.contact-form-side p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* Success/Error States */
#form-success,
#form-error {
    padding: 24px 30px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    font-size: 0.95rem;
    display: none;
}

#form-success {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
    color: #2e7d32;
}

#form-error {
    background: #fce4ec;
    border-left: 5px solid #e91e63;
    color: #c62828;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.quick-contact-info strong {
    transition: color 0.3s ease;
}

.quick-contact-info strong:hover {
    color: var(--color-primary-dark) !important;
}

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

    .contact-image-side {
        height: 350px;
    }

    .contact-form-side {
        padding: 50px 30px;
    }

    .tech-stats-bar {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* =========================================
   PHOTOS — PAGE STYLES
   ========================================= */
.gallery-grid-section {
    padding: 120px 0 60px;
    background: var(--color-bg-darker);
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    background: var(--color-bg-darker);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(55, 18, 67, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.video-section {
    padding: 80px 0 100px;
    background: var(--color-bg-dark);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    padding-top: 56.25%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.text-white {
    color: white !important;
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.55) !important;
}

.text-primary-light {
    color: var(--color-primary-light) !important;
}

.mb-50 {
    margin-bottom: 50px !important;
}

.mb-44 {
    margin-bottom: 44px !important;
}

.mb-22 {
    margin-bottom: 22px !important;
}

.mb-18 {
    margin-bottom: 18px !important;
}

.mb-14 {
    margin-bottom: 14px !important;
}

.mt-56 {
    margin-top: 56px !important;
}

.divider-center {
    width: 50px;
    height: 3px;
    background: var(--color-primary-light);
    margin: 0 auto 22px;
}

.label-small {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-bg-dark);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.text-large-block {
    display: block;
    font-size: 1.1rem;
    color: var(--color-bg-dark);
}

.text-reveal-inline {
    color: var(--color-primary);
    cursor: pointer;
    border-bottom: 1px dashed var(--color-primary);
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.text-reveal-inline:hover {
    opacity: 0.8;
}

.quick-contact-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-primary-light-rgba);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary-light);
}

.w-full {
    width: 100% !important;
}

.d-none {
    display: none !important;
}

.border-none {
    border: none !important;
}

.label-caps {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
}

.border-primary {
    border-top: 6px solid var(--color-primary) !important;
}

.border-accent {
    border-top: 6px solid var(--color-accent) !important;
}

.border-primary-dark {
    border-top: 6px solid var(--color-primary-dark) !important;
}

.border-dark-blue {
    border-top: 6px solid #1a3a6e !important;
}

.dot-base {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-glow-red {
    background: var(--color-channel-red);
    box-shadow: 0 0 8px var(--color-channel-red);
}

.dot-glow-blue {
    background: var(--color-channel-blue);
    box-shadow: 0 0 8px var(--color-channel-blue);
}

.dot-glow-green {
    background: var(--color-channel-green);
    box-shadow: 0 0 8px var(--color-channel-green);
}

.text-success {
    color: var(--color-channel-green) !important;
}

.fs-xs-tight {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}

.fs-xs {
    font-size: 0.85rem !important;
}

.fs-base {
    font-size: 1rem !important;
}

.btn-wide {
    padding: 1.25rem 3.5rem !important;
}

@media (max-width: 768px) {
    .photo-gallery-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    /* Subpage Hero Adjustments */
    .hero-services,
    .hero-histoire,
    .hero-fiche,
    .hero-photos {
        min-height: 300px;
        height: 50vh;
    }


    .histoire-section {
        padding: 60px 0;
    }

    .values-wrap {
        padding: 60px 0;
    }

    .histoire-cta {
        padding: 60px 0;
    }

    /* Fiche Technique Spacing */
    .technical-details {
        padding: 80px 0 60px;
    }

    .tech-header {
        margin-bottom: 40px;
    }

    .tech-stats-bar {
        margin-bottom: 40px;
    }

    /* Photos Section Spacing */
    .gallery-grid-section {
        padding: 60px 0 40px;
    }

    .video-section {
        padding: 40px 0 60px;
    }
}

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

.opacity-90 {
    opacity: 0.9 !important;
}

/* Form Fallback Classes */
.form-fallback-msg {
    margin-top: 15px !important;
    font-weight: 700 !important;
    color: var(--color-bg-dark) !important;
}

.form-fallback-code {
    background: white !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin-top: 5px !important;
    font-family: monospace !important;
    font-size: 0.85rem !important;
    user-select: all !important;
    color: #333 !important;
}

.form-fallback-footer {
    margin-top: 15px !important;
    font-size: 0.9rem !important;
}

.form-fallback-link {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
}

/* Version Tag Styling */
.version-tag {
    font-size: 0.72rem;
    opacity: 0.45;
    margin-top: 0.75rem;
    display: block;
    font-family: monospace;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

/* =========================================
   PHOTO GALLERY MODAL (CAROUSEL)
   ========================================= */
.gallery-modal, .video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.show, .video-modal.show {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* Modal Controls */
.modal-close,
.modal-prev,
.modal-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover,
.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-close {
    top: 20px;
    right: 30px;
    width: 44px;
    height: 44px;
}

.modal-prev,
.modal-next {
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
}
.modal-prev:hover,
.modal-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* Interaction pointers for desktop only */
@media (min-width: 769px) {
    .gallery-item {
        cursor: pointer;
    }
}

/* Hide modal on mobile devices where we use standard scrolling */
@media (max-width: 768px) {
    .gallery-modal, .video-modal {
        display: none !important;
    }
}