/* ============================================
       CSS VARIABLES — DESIGN TOKENS
       ============================================ */
:root {
    --color-bg: #FFE4CB;
    --color-pink: #F93067;
    --color-salmon: #ECA384;
    --color-cream: #FFF3EB;
    --color-dark: #1A202C;
    --color-brown: #5C363C;
    --color-white: #FFFFFF;
    --color-gray: #718096;
    --color-highlight: rgba(236, 163, 132, 0.82);

    --font-display: 'Roboto', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Poppins', sans-serif;

    --max-width: 1400px;
    --section-padding: 80px 0;
    --border-radius: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
       LENIS SMOOTH SCROLL
       ============================================ */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-pink);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
}

#backToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background: var(--color-salmon);
    transform: translateY(-5px);
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

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

/* ============================================
       SHARED COMPONENTS
       ============================================ */
.section-line {
    width: 69px;
    height: 5px;
    background: var(--color-pink);
    border-radius: 3px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-dark);
}

.hero-text-wrapper {
    position: relative;
    display: inline-block;
    padding: 10px 40px;
    z-index: 10;
    margin: 0 auto;
}

.hero-text-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/fond-titre.png') center/100% 100% no-repeat;
    opacity: 1;
    border-radius: 12px;
    z-index: -1;
}

.bg-echos {
    /* Legacy class for text color only if needed, logic moved to wrapper */
    color: var(--color-pink);
}

.section-title strong {
    font-weight: 700;
    display: block;
    color: var(--color-pink);
    position: relative;
    width: fit-content;
}

.section-title strong::after {
    /* Removed absolute underline to support multiline text */
    content: none;
}

.section-title strong {
    font-weight: 700;
    display: inline;
    color: var(--color-pink);
    position: relative;
    background-image: linear-gradient(var(--color-salmon), var(--color-salmon));
    background-size: 100% 12px;
    background-position: 0 82%;
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-bottom: 2px;
}

.highlight-bar {
    position: relative;
    display: inline;
}

.highlight-bar::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 12px;
    background: var(--color-highlight);
    z-index: -1;
    border-radius: 2px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-pink);
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 14px;
}

.link-arrow svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

/* ============================================
       ANIMATIONS
       ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes float {

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

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
       NAVBAR
       ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled,
.navbar.menu-open {
    background: #1A202C;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-pink);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-logo {
    opacity: 0;
    transition: var(--transition);
    display: block;
    width: 140px;
    height: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo-file {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Filter to colorize black image to #F93067 (Pink) */
    filter: invert(30%) sepia(99%) saturate(1868%) hue-rotate(324deg) brightness(96%) contrast(96%);
}

/* Mobile menu overlay hidden by default on desktop via media query */
@media (min-width: 769px) {
    #mobile-menu-overlay {
        display: none !important;
    }
}

/* Sun decoration removed */

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-sun-bottom,
.navbar.menu-open .nav-logo {
    opacity: 1;
}

.navbar.menu-open .nav-logo-file {
    /* Red/Pink filter for open menu state */
    filter: invert(30%) sepia(99%) saturate(1868%) hue-rotate(324deg) brightness(96%) contrast(96%);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    width: 28px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
       HERO SECTION
       ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    overflow: hidden;
    padding: 0 24px;
    /* Ensure space on sides */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(255, 228, 203, 0.82) 85%,
            rgba(255, 228, 203, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-ensemble {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

}

.hero-logo {
    width: clamp(280px, 60vw, 900px);
    /* Adjusted min width and responsiveness */
    max-height: 40vh;
    /* Prevent overflowing vertically */
    margin: 0 auto -20px auto;
    position: relative;
    z-index: 1;

    /* Animation moved to group */
    filter: drop-shadow(0 0 25px rgba(253, 208, 0, 0.6));
}

.hero-floating-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: float 4s ease-in-out infinite;
}

.hero-texte {
    width: clamp(280px, 45vw, 500px);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
    display: block;
    /* Ensure image behaves block-like inside wrapper */
}

.hero-dates {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vh, 4rem);
    /* Responsive font based on height */
    font-weight: 900;
    color: var(--color-white);

    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    margin-top: 10px;
}

.hero-scroll-indicator {
    /* Hidden globally as requested */
    display: none;
}

/* ============================================
       COUNTDOWN SECTION
       ============================================ */
.countdown-section {
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
}

.countdown-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-pink);
    margin-bottom: 2em;
    /* Relative to title font-size — scales on mobile & desktop */
    position: relative;
}

.countdown-title span {
    /* Multiline underline effect moved here */
    background-image: linear-gradient(var(--color-highlight), var(--color-highlight));
    background-size: 100% 12px;
    background-position: 0 82%;
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-bottom: 2px;
}

.countdown-title::after {
    content: none;
    /* Removed absolute underline */
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 3vw, 32px);
    position: relative;
}

.countdown-board {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 72px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.countdown-board::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-pink), #FDD000, var(--color-salmon), var(--color-pink));
    border-radius: 26px;
    z-index: -1;
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.countdown-numbers {
    display: flex;
    gap: clamp(16px, 3vw, 40px);
    align-items: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-value {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #FDD000;
    line-height: 1;
    text-shadow: 0 0 20px rgba(253, 208, 0, 0.5);
    min-width: 2ch;
    text-align: center;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: clamp(0.6rem, 1.5vw, 0.85rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
}

.countdown-sep {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-pink);
    animation: pulse 1s ease-in-out infinite;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-bottom: 28px;
    /* Offset for the label below the numbers */
}

.countdown-decor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(80px, 12vw, 160px);
    opacity: 0.6;
    pointer-events: none;
}

.countdown-decor-left {
    left: -8%;
}

.countdown-decor-right {
    right: -8%;
}

/* Decorative elements around countdown */
.decor-vinyl {
    width: clamp(60px, 10vw, 120px);
    height: clamp(60px, 10vw, 120px);
    border-radius: 50%;
    background: conic-gradient(from 0deg, #111, #333, #111, #333, #111);
    position: relative;
    flex-shrink: 0;
}

.decor-vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 25%;
    border-radius: 50%;
    background: var(--color-pink);
}

.decor-vinyl::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8%;
    height: 8%;
    border-radius: 50%;
    background: var(--color-dark);
    z-index: 1;
}

/* Cloud decorations */
.cloud-decor {
    position: absolute;
    width: 120px;
    height: 60px;
    opacity: 0.3;
}

.cloud-decor svg {
    fill: #E3F2FF;
}

/* About Slider */
.about-viewport {
    overflow: hidden;
}

.about-track {
    display: flex;
    width: 200%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-slide {
    width: 50%;
    /* 50% of 200% track = 100% of viewport */
    flex-shrink: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: stretch;
    }

    .about-slide {
        min-width: 0;
    }
}



/* ============================================
       ABOUT SECTION — "C'est quoi"
       ============================================ */
.about-section {
    padding: var(--section-padding);
    position: relative;
}

.pink-dot {
    position: absolute;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: var(--color-pink);
    left: -52px;
    top: 40px;
    z-index: 0;
    pointer-events: none;
}

/* .about-section .container grid is now handled by .about-panel.active above */

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-pink);
    line-height: 2;
}

.about-description {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-gray);
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
}

.about-image-wrapper {
    position: relative;
}

.about-image-bg {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--color-salmon);
    border-radius: 50px;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img,
.about-image>div {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Pink decorative dot */
.pink-dot {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--color-pink);
    border-radius: 50%;
    left: -50px;
    top: -30px;
    z-index: -1;
}

/* ============================================
       CAROUSEL / RENCONTRES SECTION
       ============================================ */
.rencontres-section {
    padding: 60px 0 40px;
}

.rencontres-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.carousel-controls {
    display: flex;
    gap: 16px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--color-pink);
    background: transparent;
    color: var(--color-pink);
}

.carousel-btn:hover,
.carousel-btn:active,
.carousel-btn.clicked {
    background: var(--color-pink);
    color: var(--color-white);
    transform: scale(1.1);
}

.carousel-btn.active {
    /* Removed default active style */
    background: transparent;
    color: var(--color-pink);
    box-shadow: none;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
       SPONSORS SECTION — Film Strip
       ============================================ */
.wave-separator {
    width: 100%;
    line-height: 0;
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    font-size: 0;
}

.wave-separator img {
    width: 100%;
    height: 100px;
    display: block;
}

.wave-separator-bottom {
    background: var(--color-bg);
}

.sponsors-section {
    padding: 0;
    background: transparent;
    overflow: hidden;
    text-align: center;
}

.sponsors-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    padding: 30px 0 0;
    margin-bottom: -10px;
    position: relative;
    z-index: 1;
}

/* Film strip wrapper */
.film-strip-wrapper {
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.film-strip {
    background: #1a1a1a;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Sprocket holes */
.sprocket-row {
    width: 100%;
    height: 12px;
    /* Reduced specific sprocket height */
    display: block;
}

/* Film track */
.film-track-container {
    overflow: hidden;
    padding: 8px 0;
    /* Reduced padding */
    background: #111;
}

.film-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    /* Precise centering calculation */
    padding-left: calc(50vw - 12.5vw - 12px);
    /* Assuming 25vw average width + gap corrections */
}

.film-frame {
    flex: 0 0 25vw;
    /* Desktop standard */
    min-width: 250px;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    background: #FFFFFF;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    /* Reduced internal padding */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-frame:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.film-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-name {
    font-family: var(--font-body);
    color: #333;
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
       APP SECTION
       ============================================ */
.app-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

/* Wavy background decorations */
.wave-decor {
    position: absolute;
    width: 110%;
    left: -5%;
    height: 300px;
    opacity: 0.15;
    pointer-events: none;
}

.wave-decor-top {
    top: -100px;
}

.wave-decor-bottom {
    bottom: -100px;
    transform: rotate(180deg);
}

.app-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: clamp(240px, 28vw, 320px);
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 0 8px #1a1a2e,
        0 0 0 10px #333;
}

.phone-screen {
    width: 100%;
    aspect-ratio: 9 / 19;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 10px;
}

.phone-screen img {
    width: 60%;
}

.phone-floating-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: float 4s ease-in-out infinite;
    /* Animate the wrapper instead of image */
}

/* Remove individual animation from image */
.phone-screen img:last-child {
    width: 80%;
    animation: none;
}

.app-text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-description {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-gray);
}

.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.store-btn svg {
    width: 28px;
    height: 28px;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.store-btn-text small {
    font-size: 0.65rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn-text span {
    font-size: 1.05rem;
    font-weight: 700;
}

/* ============================================
       FOOTER
       ============================================ */
.footer {
    background: var(--color-salmon);
    border-radius: 120px 120px 0 0;
    padding: 80px 24px 40px;
    text-align: center;
    position: relative;
    margin-top: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto 32px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.footer-logo-sun {
    width: clamp(200px, 30vw, 360px);
}

.footer-logo-text {
    width: clamp(180px, 25vw, 300px);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-link {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(249, 48, 103, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-pink);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(249, 48, 103, 0.4);
}

.social-link svg {
    width: 28px;
    height: 28px;
    color: var(--color-cream);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-links a {
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--color-cream);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: var(--color-brown);
    opacity: 0.8;
}

/* ============================================
       RESPONSIVE
       ============================================ */
@media (max-width: 968px) {
    .about-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .app-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .phone-mockup {
        order: -1;
    }

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

    .app-text-content {
        align-items: flex-start;
        text-align: left;
    }

    .store-buttons {
        align-self: center;
        /* Center buttons while keeping text left-aligned */
        justify-content: center;
        width: 100%;
        /* Ensure full width for centering */
    }
}

/* Desktop hiding rule for mobile menu */
#mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {

    /* Mobile specific centering fixes */
    .film-frame {
        flex: 0 0 70vw;
        /* Occupy 70% width */
        min-width: 0;
        max-width: none;
    }

    .film-track {
        /* (100vw - 70vw) / 2 = 15vw padding */
        padding-left: 15vw;
    }

    .hero {
        justify-content: center;
        padding-top: 0;
        padding-bottom: 25vh;
        /* Push content up significantly */
    }

    .nav-links {
        display: none;
    }

    .hero-logo {
        margin-bottom: -10px;
        /* Touching/Slight overlap (-10px), less than desktop (-20px) */
    }

    .nav-hamburger {
        display: flex;
        margin-left: auto;
        width: 40px;
        height: 40px;
        background: url('echos-dete-soleil.svg') no-repeat center/contain;
        /* transform: rotate(-90deg); Reverted rotation */
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
        border: none;
        cursor: pointer;
        transition: transform 0.5s ease-in-out;
    }

    .navbar.scrolled .nav-hamburger,
    .navbar.menu-open .nav-hamburger {
        /* Use a subtler float animation (1/3 strength) */
        animation: floatSubtle 4s ease-in-out infinite;
    }

    @keyframes floatSubtle {

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

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

        /* Reduced from typical 20px */
    }

    /* Ensure logo text is pink/red when background is present (scrolled or menu open) */
    .navbar.scrolled .nav-logo-file,
    .navbar.menu-open .nav-logo-file {
        filter: invert(30%) sepia(99%) saturate(1868%) hue-rotate(324deg) brightness(96%) contrast(96%);
    }

    #mobile-menu-overlay {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: auto;
        background: #1A202C;
        /* Fully opaque dark blue */
        z-index: 999;
        padding: 32px 24px;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        /* Subtle separator */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

        /* Animation: Fade down */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #mobile-menu-overlay a {
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--color-white);
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 8px;
        transition: background 0.2s ease, color 0.2s ease;
        width: 100%;
        text-align: center;
        max-width: 200px;
    }

    #mobile-menu-overlay a:hover,
    #mobile-menu-overlay a:active {
        background: rgba(255, 255, 255, 0.05);
        color: var(--color-pink);
    }

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

    /* .countdown-title::after {
        display: none; 
    } - Restored underline as requested */

    .decor-vinyl {
        display: none;
    }

    .rencontres-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer {
        border-radius: 60px 60px 0 0;
    }
}

@media (max-width: 480px) {
    .countdown-numbers {
        gap: 12px;
    }

    .countdown-board {
        padding: 24px 20px;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}