/* ============================================
   LSDJ - Under Construction Landing Page
   Fully Responsive — No Vertical Scroll
   ============================================ */

:root {
    --primary: #234954;
    --secondary: #a9df51;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --glass: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.5);
}

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

html,
body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, rgba(169, 223, 81, 0.06) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(35, 73, 84, 0.06) 0, transparent 50%);
    color: var(--text-dark);
    line-height: 1.4;
    overflow: hidden;
}

/* ===================== SPLASH SCREEN ===================== */
.splash-screen {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.login-brand-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-line {
    position: absolute;
    width: 90%;
    height: 2px;
    background: var(--secondary);
    top: 60%;
    left: 5%;
    transform: scaleX(0);
    transform-origin: center;
    animation: drawLine 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.brand-top-content {
    position: absolute;
    bottom: 40%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.login-logo {
    width: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: logoRaise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards, pulse 3s ease-in-out 3.5s infinite;
}

.text-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.les-container,
.saveurs-container,
.jardin-container {
    overflow: hidden;
}

.stack-les {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideFromLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}

.stack-saveurs {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 0.85;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    animation: textRaise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.du-jardin-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.text-du {
    display: inline-block;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px) rotate(-90deg);
    animation: duSequence 0.8s cubic-bezier(0.45, 0, 0.55, 1) 1.8s forwards;
}

.text-jardin {
    display: inline-block;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 0.85;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideFromLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) 2.6s forwards;
}

.slogan-row {
    position: absolute;
    top: calc(60% + 15px);
    font-family: 'Dancing Script', cursive;
    font-size: 18px;
    color: var(--secondary);
    opacity: 0;
    animation: fadeIn 0.6s ease-out 3.0s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 3.2s forwards;
}

.scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.mouse {
    width: 16px;
    height: 26px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--secondary);
    left: 50%;
    transform: translateX(-50%);
    top: 4px;
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes drawLine {
    to {
        transform: scaleX(1);
    }
}

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

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

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

@keyframes duSequence {
    0% {
        opacity: 0;
        transform: translateY(30px) rotate(0deg);
    }

    40% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(-90deg);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse {

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

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

@keyframes scrollMouse {
    0% {
        opacity: 1;
        top: 4px;
    }

    100% {
        opacity: 0;
        top: 18px;
    }
}

/* ===================== MAIN LAYOUT ===================== */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 10px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.main-content.fade-in {
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* ===================== HEADER ===================== */
.header {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.logo-small {
    margin-bottom: 8px;
}

.logo-small img {
    height: 38px;
}

.brand-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 12px;
    white-space: nowrap;
}

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

.status-main {
    background: #fef08a;
    color: #854d0e;
    padding: 3px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #fdec6e;
}

/* ===================== FLOATING BADGES ===================== */
.status-milestones {
    position: fixed;
    top: 30px;
    right: 20px;
    display: none;
    /* Hidden by default — mobile only */
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
    z-index: 2000;
}

.milestone-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 50px;
    text-decoration: none;
    background: var(--primary);
    border: 2px solid var(--secondary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    transform: rotate(-30deg);
    transform-origin: center right;
}

.milestone-badge:hover {
    transform: rotate(0deg) translateX(-8px);
    background: var(--secondary);
    border-color: var(--primary);
}

.m-lsdj {
    font-size: 9px;
    font-weight: 900;
    color: #cbd5e1;
    letter-spacing: 1px;
}

.milestone-badge svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.m-value {
    font-size: 12px;
    font-weight: 900;
    color: white;
}

.milestone-badge:hover .m-lsdj,
.milestone-badge:hover svg,
.milestone-badge:hover .m-value {
    color: var(--primary);
}

/* ===================== SLIDER WRAPPER ===================== */
.slider-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cards-slider {
    display: flex;
    gap: 15px;
    flex: 1;
    padding: 5px 2px;
    cursor: grab;
    user-select: none;
    min-height: 0;
}

.cards-slider.grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* ===================== STORE CARDS ===================== */
.store-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 0;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 130px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.store-card:hover .card-image img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.status-badge.open {
    background: rgba(169, 223, 81, 0.9);
    color: #1e3a1f;
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.opening-notice {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(35, 73, 84, 0.9);
    color: white;
    padding: 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}

.card-content {
    padding: 11px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
    overflow: hidden;
}

.store-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.store-address {
    font-size: 10px;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.2;
}

.store-address svg {
    flex-shrink: 0;
}

.maps-link {
    display: flex;
    align-items: center;
    color: var(--secondary);
    transition: all 0.2s ease;
}

.maps-link:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.store-contact-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 7px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
}

.contact-link svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-link.disabled {
    color: #94a3b8;
}

.store-hours h3 {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.store-hours ul {
    list-style: none;
}

.store-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #334155;
}

.store-hours li span:last-child {
    font-weight: 600;
}

/* Coming Soon Card */
.store-card.coming-soon {
    pointer-events: none;
}

.store-card.coming-soon .card-image,
.store-card.coming-soon .card-content {
    filter: blur(4px);
    opacity: 0.6;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.coming-soon-overlay span {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    transform: rotate(-5deg);
    border: 2px solid var(--secondary);
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 4px;
    flex-shrink: 0;
}

.dot {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 18px;
    background: var(--secondary);
    border-radius: 4px;
}

/* Nav buttons (only tablet) */
.nav-btn {
    display: none;
}

/* Footer */
footer {
    flex-shrink: 0;
    text-align: center;
    padding: 8px 0;
    color: #94a3b8;
    font-size: 10px;
    border-top: 1px solid rgba(226, 232, 240, 0.4);
}

/* ===================== DESKTOP (≥1024px): 5 cards in row ===================== */
@media (min-width: 1024px) {
    .main-content {
        padding: 24px 32px 12px;
    }

    .header {
        margin-bottom: 24px;
    }

    .brand-title {
        font-size: 42px;
        margin-bottom: 14px;
    }

    .cards-slider {
        overflow: visible;
        justify-content: center;
        align-items: center;
        /* Center cards vertically in the slider space */
        gap: 18px;
    }

    .store-card {
        flex: 0 0 250px;
        /* Uniform width */
        height: 440px;
        /* Fixed height as requested */
    }

    .card-image {
        height: 160px;
    }

    .card-content {
        padding: 16px;
        gap: 8px;
    }

    .store-name {
        font-size: 18px;
    }

    .store-address,
    .contact-link,
    .store-hours li {
        font-size: 11px;
    }

    .slider-dots {
        display: none;
    }
}

/* ===================== TABLET (769px–1023px): 2 cards + scroll ===================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .brand-title {
        font-size: 30px;
    }

    .cards-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .cards-slider::-webkit-scrollbar {
        display: none;
    }

    .store-card {
        min-width: calc(50% - 8px);
        flex: none;
        scroll-snap-align: start;
    }

    .card-image {
        height: 150px;
    }
}

/* ===================== MOBILE (≤768px): 1 card fills screen ===================== */
@media (max-width: 768px) {

    html,
    body {
        overflow: hidden;
    }

    .main-content {
        padding: 14px 14px 0;
        height: 100dvh;
        /* Use dvh for mobile browsers with dynamic toolbars */
    }

    .header {
        margin-bottom: 10px;
    }

    .logo-small {
        margin-bottom: 6px;
    }

    .logo-small img {
        height: 28px;
    }

    .brand-title {
        font-size: 21px;
        margin-bottom: 6px;
    }

    .construction-status {
        gap: 5px;
    }

    .status-main {
        font-size: 10px;
        padding: 2px 10px;
    }

    /* Floating badges — mobile only */
    .status-milestones {
        display: flex;
        top: 16px;
        right: 12px;
        gap: 8px;
    }

    .milestone-badge {
        padding: 5px 10px;
        gap: 6px;
        transform: rotate(-30deg) scale(0.75);
    }

    /* Slider: fills all remaining space */
    .cards-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 10px;
    }

    .cards-slider::-webkit-scrollbar {
        display: none;
    }

    .store-card {
        min-width: 100%;
        flex: none;
        scroll-snap-align: center;
    }

    /* Bigger photo on mobile */
    .card-image {
        height: 52%;
        flex-shrink: 0;
    }

    .card-content {
        padding: 12px;
        gap: 6px;
    }

    .store-name {
        font-size: 18px;
    }

    .store-address,
    .contact-link,
    .store-hours li {
        font-size: 11px;
    }

    .store-hours h3 {
        font-size: 9px;
    }

    .slider-dots {
        padding: 5px 0 2px;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    .brand-title {
        font-size: 18px;
    }

    .card-image {
        height: 45%;
    }

    .card-content {
        padding: 10px;
        gap: 4px;
    }

    .store-name {
        font-size: 16px;
    }
}