@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --bg-cream: #FFFBF5;
    --text-purple: #6B66FF;
    --accent-blue: #4A90E2;
    --shadow-color: #A09DFF;

    --font-display: 'Dela Gothic One', cursive;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide default cursor */

body {
    background-color: var(--bg-cream);
    color: var(--text-purple);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hide cursor on links too */

/* --- Custom Cursor --- */
.cursor-dot {
    width: 10px;
    height: 10px;
    background-color: var(--text-purple);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-purple);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.1s;
}

/* Hover State */
body:hover .cursor-dot {
    opacity: 1;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Link Hover Effect */
a:hover~.cursor-outline,
button:hover~.cursor-outline,
.card-retro:hover~.cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(107, 102, 255, 0.1);
    border-color: transparent;
}

/* --- Top Bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.brand-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--text-purple);
}

/* --- Hero Section --- */
.hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 2rem 5rem;
    position: relative;
}

.hero-super {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;

    /* Gradient Text */
    background: linear-gradient(90deg, #4A90E2, #6B66FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
    font-weight: 700;
}

.highlight-loop {
    position: relative;
    display: inline-block;
    /* Re-apply gradient explicitly because inline-block breaks parent clip */
    background: linear-gradient(90deg, #4A90E2, #6B66FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.highlight-loop::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 4px;
    background: #FF6B6B;
    border-radius: 2px;
    animation: loop-underline 2.5s ease-in-out infinite;
}

@keyframes loop-underline {
    0% {
        width: 0;
        opacity: 0;
    }

    20% {
        width: 0;
        opacity: 1;
    }

    80% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    text-transform: uppercase;
    color: white;
    /* Interior white */
    -webkit-text-stroke: 3px var(--text-purple);
    text-shadow:
        10px 10px 0px var(--shadow-color);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    transform: rotate(-2deg);
    animation: float-title 6s ease-in-out infinite;
}

.hero-title span {
    display: block;
}

/* Floating Pixel Icons */
.pixel-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
    animation: float 3s infinite ease-in-out;
    z-index: 1;
}

.icon-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 25%;
    right: 15%;
    animation-delay: 1.5s;
    font-size: 3rem;
}

.icon-3 {
    top: 30%;
    right: 25%;
    animation-delay: 0.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-title {

    0%,
    100% {
        transform: rotate(-2deg) translateY(0);
    }

    50% {
        transform: rotate(-1deg) translateY(-10px);
    }
}

/* --- Content Content --- */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    -webkit-text-stroke: 1px var(--text-purple);
    color: var(--bg-cream);
    text-shadow: 4px 4px 0px var(--text-purple);
}

.grid-funky {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.card-retro {
    border: 3px solid var(--text-purple);
    background: white;
    padding: 2rem;
    box-shadow: 10px 10px 0px var(--text-purple);
    transition: 0.2s;
}

.card-retro:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px var(--text-purple);
}

.card-retro ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.card-retro li {
    margin-bottom: 0.5rem;
}

.card-head {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--text-purple);
    padding-bottom: 0.5rem;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--accent-blue);
}

.btn-retro {
    display: inline-block;
    background: var(--text-purple);
    color: white;
    padding: 1rem 3rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    border: none;
    box-shadow: 6px 6px 0px var(--accent-blue);
    margin-top: 1rem;
    transition: 0.2s;
}

.btn-retro:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px var(--accent-blue);
}

/* Scroll Clock */
.scroll-clock {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--text-purple);
    border-radius: 50%;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    /* Subtle shadow initially */
    z-index: 990;
    padding: 2px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
}

.scroll-clock.expanded {
    width: 200px;
    border-radius: 50px;
}

.scroll-clock svg {
    transition: opacity 0.2s;
    min-width: 60px;
    /* Keep size stable */
}

.scroll-clock.expanded svg {
    opacity: 0;
    width: 0;
    min-width: 0;
    margin-right: 0;
}

.clock-phone {
    opacity: 0;
    color: var(--text-purple);
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 1.1rem;
    position: absolute;
    transition: opacity 0.3s 0.1s;
    /* Delay appearance */
}

.scroll-clock.expanded .clock-phone {
    opacity: 1;
}

.scroll-clock:hover {
    transform: scale(1.05);
}

.clock-hand {
    transform-origin: 50px 50px;
    /* Rotate around center of SVG (100x100 viewBox) */
    transition: transform 0.1s linear;
    /* Smooth but responsive */
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: -100px;
    /* Hidden initially */
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-purple);
    color: white !important;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    border: 3px solid white;
    box-shadow: 4px 4px 0px var(--accent-blue);
    z-index: 995;
    /* Above everything but nav/cursor */
    text-transform: uppercase;
    border-radius: 50px;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.sticky-cta:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 6px 6px 0px var(--accent-blue);
}

.sticky-cta.visible {
    bottom: 2rem;
}

@media (max-width: 768px) {

    /* Hide Text CTA on Mobile to favor WhatsApp */
    .sticky-cta {
        display: none !important;
    }

    .sticky-cta.visible {
        bottom: 1rem;
    }

    .scroll-clock {
        display: none !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    /* WhatsApp Button Mobile - Big & Beautiful */
    .whatsapp-float {
        display: flex !important;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        /* Floating more freely */
        width: 70px;
        height: 70px;
        background: #25D366;
        color: white;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        border: 3px solid white;
        animation: pulse-wa 2s infinite;
    }
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Default hidden */
.whatsapp-float {
    display: none;
}



/* Footer */
footer {
    text-align: center;
    padding: 5rem 0;
    font-family: var(--font-display);
    font-size: 1rem;
    background: white;
    border-top: 3px solid var(--text-purple);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Header Fix: Stack and Clean */
    .top-bar {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    /* Hide second child explicitly (The Dispo text) */
    .top-bar>div:nth-child(2) {
        display: none !important;
    }

    /* Hero Title Adjustment */
    .hero-title {
        font-size: 13vw;
        margin-bottom: 2rem;
        /* Reduced margin */
    }

    .hero-super {
        font-size: 1.1rem;
        /* Slightly larger */
        margin-bottom: 1.5rem;
        /* More space */
    }

    /* Hide distracting decorative icons */
    .icon-1,
    .icon-3 {
        display: none !important;
    }

    /* "C'est parti" Badge Positioning */
    .icon-2 {
        position: static !important;
        /* Force static flow */
        display: inline-block;
        margin: 0 auto 2rem;
        /* Spacing below title, above text */
        transform: rotate(-3deg) !important;
        width: auto;
        height: auto;
    }

    .hero-container {
        padding-top: 3.5rem;
        /* Balanced spacing */
    }
}

/* --- Hamburger Menu Logic --- */
.hamburger {
    display: none;
    /* Hidden on Desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above mobile menu overlay */
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-purple);
    border-radius: 2px;
    transition: 0.3s;
}

/* Animation Active */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Show on Mobile */

    .top-bar {
        flex-direction: row !important;
        /* Align Logo / Burger */
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Mobile Menu Overlay */
    .nav-links {
        display: flex !important;
        /* Force flex display */
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background: #FFFEF5;
        /* Matches body */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links a {
        font-size: 2rem;
        color: var(--text-purple);
    }

    /* Spacing Overrides - Adjusted Middle Ground */
    .hero-container {
        padding-top: 3rem !important;
    }

    .hero-super {
        margin-bottom: 2rem !important;
    }

    /* Bring "Ici c'est simple" higher up on mobile */
    #how {
        padding-top: 1rem !important;
    }
}