/*

Tooplate 2159 Mochi Space

https://www.tooplate.com/view/2159-mochi-space

*/

:root {
    --lavender: #f90000;
    --lavender-deep: #ffffff;
    --peachy: #ffffff;
    --peachy-deep: #ffffff;
    --mint: #E0F5EE;
    --mint-deep: #C5EBE0;
    --cream: #ffffff;
    --coral: #f50505;
    --coral-hover: #f70505;
    --sage: #A9C4B0;
    --text-dark: #000000;
    --text-light: #000000;
    --white: #f6f2f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Comfortaa', cursive;
}

/* Floating Background Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--lavender);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--peachy);
    top: 60%;
    right: -3%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--mint);
    top: 30%;
    right: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--lavender-deep);
    bottom: 10%;
    left: 20%;
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(20px, -30px) rotate(5deg) scale(1.05); }
    50% { transform: translate(-10px, 20px) rotate(-5deg) scale(0.95); }
    75% { transform: translate(30px, 10px) rotate(3deg) scale(1.02); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    z-index: 1000;
    background: rgba(255, 250, 245, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 30px;
    box-shadow: 0 5px 30px rgba(107, 82, 82, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: red;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-blob {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--peachy) 0%, var(--coral) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: blobPulse 3s ease-in-out infinite;
}

.logo-blob::before,
.logo-blob::after {
    content: '';
    position: absolute;
    background: var(--text-dark);
    border-radius: 50%;
}

.logo-blob::before {
    width: 6px;
    height: 8px;
    top: 35%;
    left: 25%;
}

.logo-blob::after {
    width: 6px;
    height: 8px;
    top: 35%;
    right: 25%;
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 18px;
    border-radius: 50px;
}

.nav-links a:hover {
    color: var(--coral);
    background: rgba(255, 155, 155, 0.15);
}

.nav-cta {
    background: var(--coral);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 155, 155, 0.4);
}

.nav-cta:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 155, 155, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 30px 60px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFDBDB;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #D97B7B;
    margin-bottom: 25px;
}

.hero-badge .sparkle {
    font-size: 1.1rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--coral) 0%, var(--sage) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(255, 155, 155, 0.4);
}

.btn-primary:hover {
    background: var(--coral-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 155, 155, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--lavender-deep);
}

.btn-secondary:hover {
    background: var(--lavender);
    border-color: var(--lavender);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}


/* Features Section */
.features {
    padding: 80px 30px;
    background: var(--white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--cream) 0%, transparent 100%);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5BA88B;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--cream);
    border-radius: 30px;
    padding: 25px;
    display: flex;
    gap: 30px;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 155, 155, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(93, 84, 117, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(93, 84, 117, 0.15);
}

.feature-image-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}






/* Testimonials */
.testimonials {
    padding: 80px 30px;
    background: var(--cream);
}


/* Download CTA */
.download-cta {
    padding: 80px 30px;
    background: linear-gradient(180deg, var(--peachy) 0%, var(--lavender) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-mochi {
    width: 150px;
    height: 130px;
    background: linear-gradient(180deg, #FFE5E5 0%, #FFCECE 50%, #FFB8B8 100%);
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    margin: 0 auto 40px;
    position: relative;
    animation: waveHello 2s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(255, 155, 155, 0.3);
}

.cta-mochi::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 25%;
    width: 15px;
    height: 20px;
    background: var(--text-dark);
    border-radius: 50%;
}

@keyframes waveHello {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}



.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #cdcbd1;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}



.app-btn-icon {
    font-size: 2rem;
}

.app-btn-text {
    text-align: left;
}

.app-btn-small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.app-btn-large {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #f90000 0%, #f90000 100%);
    color: var(--text-dark);
    padding: 60px 30px 30px;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    color: #646262;
    margin-bottom: 20px;
}

.footer-brand .logo-blob {
    background: linear-gradient(135deg, var(--peachy) 0%, var(--coral) 100%);
}

.footer-brand p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.7;
}

.footer-column h4 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-dark);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}


/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Active nav link */
.nav-links a.active {
    color: var(--coral);
    background: rgba(255, 155, 155, 0.2);
}


.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: var(--cream);
    z-index: 999;
    padding: 80px 25px 30px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(107, 82, 82, 0.2);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-menu-links li {
    margin-bottom: 6px;
}

.mobile-menu-links a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: var(--lavender);
    color: var(--coral);
}

.mobile-menu-cta {
    display: block;
    background: var(--coral);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 155, 155, 0.4);
    transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .features-grid {
        gap: 30px;
    }

    .feature-image {
        width: 160px;
        height: 160px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    nav {
        padding: 15px 30px;
    }

    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-overlay,
    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 100px 30px 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .mochi-main {
        top: 10px;
        right: 50%;
        transform: translateX(100px);
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .feature-card {
        flex-direction: row;
    }

    .feature-image {
        width: 150px;
        height: 150px;
    }

    .steps {
        flex-direction: column;
        gap: 50px;
    }

    .steps::before {
        display: none;
    }

    .preview-screens {
        flex-direction: column;
        align-items: center;
    }

    .preview-phone:nth-child(2) {
        transform: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-image {
        width: 200px;
        height: 200px;
    }

    .feature-content h3 {
        justify-content: center;
    }

    .phone-mockup {
        width: 320px;
        height: 640px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .download-cta h2 {
        font-size: 2.2rem;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 15px 20px;
    }

    .hero, .features, .how-it-works, .app-preview, .testimonials, .download-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-image {
        width: 180px;
        height: 180px;
    }

    footer {
        padding: 40px 20px 20px;
    }
}


/*Ajout */
/* Rend toute la carte cliquable */
.features-grid a.feature-card {
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Enlève le soulignement des liens */
    color: inherit;         /* Garde la couleur de texte normale */
    cursor: pointer;        /* Affiche la petite main au survol */
    position: relative;
    z-index: 1;
}

/* Empêche les images de bloquer le clic */
.feature-card img {
    pointer-events: none;
}

/* Optionnel : petit effet au survol pour montrer que c'est cliquable */
.features-grid a.feature-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}