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

:root {
    --cream: #fdf8f2;
    --warm: #f9efe0;
    --blush: #f4c5a8;
    --lilac: #c8b9d8;
    --sky: #a8c4d8;
    --sun: #f5d06a;
    --sage: #b8c9a3;
    --text-dark: #2e2a26;
    --text-mid: #6b5f54;
    --text-light: #9e8f82;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    font-family: "Nunito", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ── BLOBS DE FOND ── */
.blob-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* Parallax via custom properties (--dx, --dy set by JS) */
.blob-bg.b1 {
    width: 520px;
    height: 520px;
    background: var(--lilac);
    top: -120px;
    right: -100px;
    --dx: 0px;
    --dy: 0px;
    animation: drift1 18s ease-in-out infinite;
    transform: translate(var(--dx), var(--dy));
}
.blob-bg.b2 {
    width: 400px;
    height: 400px;
    background: var(--blush);
    bottom: -80px;
    left: -100px;
    --dx: 0px;
    --dy: 0px;
    animation: drift2 22s ease-in-out infinite;
    transform: translate(var(--dx), var(--dy));
}
.blob-bg.b3 {
    width: 300px;
    height: 300px;
    background: var(--sun);
    top: 45%;
    left: 50%;
    --dx: 0px;
    --dy: 0px;
    animation: drift3 16s ease-in-out infinite;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)));
}

@keyframes drift1 {
    0%,
    100% {
        transform: translate(var(--dx), var(--dy)) scale(1);
    }
    50% {
        transform: translate(calc(30px + var(--dx)), calc(40px + var(--dy)))
            scale(1.08);
    }
}
@keyframes drift2 {
    0%,
    100% {
        transform: translate(var(--dx), var(--dy)) scale(1);
    }
    50% {
        transform: translate(calc(-20px + var(--dx)), calc(-30px + var(--dy)))
            scale(1.05);
    }
}
@keyframes drift3 {
    0%,
    100% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
            scale(1);
    }
    50% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
            scale(1.12);
    }
}

/* ── LAYOUT ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── NAV ── */
nav {
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    animation: fadeDown 0.8s 0.2s ease forwards;
}
nav .logo {
    height: 56px;
}
nav .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

/* ── LANG SWITCHER ── */
.lang-switcher {
    display: flex;
    gap: 2px;
    align-items: center;
    padding-left: 16px;
    border-left: 1px solid rgba(200, 185, 216, 0.45);
}
.lang-btn {
    background: none;
    border: 1.5px solid transparent;
    font-family: "Nunito", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 7px;
    border-radius: 20px;
    line-height: 1;
    transition:
        color 0.2s,
        border-color 0.2s,
        background 0.2s;
}
.lang-btn:hover {
    color: var(--text-dark);
}
.lang-btn.active {
    color: var(--text-dark);
    border-color: rgba(200, 185, 216, 0.6);
    background: rgba(200, 185, 216, 0.2);
}
.mobile-menu .lang-switcher {
    border-left: none;
    padding-left: 0;
    margin-top: 8px;
    border-top: 1px solid rgba(200, 185, 216, 0.45);
    padding-top: 20px;
    gap: 8px;
}
.mobile-menu .lang-btn {
    font-size: 13px;
    padding: 6px 14px;
}
nav .nav-links a {
    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}
nav .nav-links a:hover {
    color: var(--text-dark);
}

/* ── HAMBURGER MOBILE ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu.open {
    display: flex;
    opacity: 1;
}
.mobile-menu a {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu a:hover {
    color: var(--text-dark);
}
.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
}

/* ── HERO ── */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 32px 100px;
    position: relative;
}

/* floating shapes */
.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0;
    animation: shapeIn 0.8s ease forwards;
}
.s1 {
    width: 80px;
    height: 80px;
    background: var(--sun);
    top: 14%;
    left: 8%;
    animation-delay: 0.9s;
    border-radius: 50%;
    transform: rotate(-15deg);
}
.s2 {
    width: 55px;
    height: 55px;
    background: var(--lilac);
    top: 22%;
    right: 10%;
    animation-delay: 1.1s;
    border-radius: 40% 60%;
}
.s3 {
    width: 45px;
    height: 45px;
    background: var(--sky);
    bottom: 24%;
    left: 12%;
    animation-delay: 1.3s;
    border-radius: 50%;
}
.s4 {
    width: 65px;
    height: 65px;
    background: var(--blush);
    bottom: 18%;
    right: 8%;
    animation-delay: 1s;
}
.s5 {
    width: 35px;
    height: 35px;
    background: var(--sage);
    top: 42%;
    left: 5%;
    animation-delay: 1.4s;
    border-radius: 50%;
}

@keyframes shapeIn {
    from {
        opacity: 0;
        transform: scale(0.4) rotate(20deg);
    }
    to {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
}

.floating {
    animation: floatY 5s ease-in-out infinite;
}
.floating:nth-child(2) {
    animation-delay: 0.8s;
}
.floating:nth-child(3) {
    animation-delay: 1.6s;
}
.floating:nth-child(4) {
    animation-delay: 2.4s;
}
@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* eyebrow */
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    background: rgba(200, 185, 216, 0.25);
    padding: 6px 18px;
    border-radius: 40px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.7s 0.4s ease forwards;
}

/* question principale */
h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.18;
    color: var(--text-dark);
    max-width: 820px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s ease forwards;
}
h1 em {
    font-style: italic;
    color: #8a6fa8;
}

/* sous-titre */
.sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 52px;
    opacity: 0;
    animation: fadeUp 0.8s 0.85s ease forwards;
}
.sub strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* CTA */
.cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.8s 1.1s ease forwards;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text-dark);
    color: var(--cream);
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s;
    box-shadow: 0 8px 32px rgba(46, 42, 38, 0.18);
}
.btn-main:hover {
    background: #8a6fa8;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(138, 111, 168, 0.35);
}
.btn-main .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-size: 14px;
    transition: transform 0.25s ease;
}
.btn-main:hover .arrow {
    transform: translateX(4px);
}

.hint {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

/* ── PILLS ── */
.pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 64px;
    opacity: 0;
    animation: fadeUp 0.8s 1.35s ease forwards;
}
.pill {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(200, 185, 216, 0.5);
    color: var(--text-mid);
    backdrop-filter: blur(6px);
}
.pill span {
    margin-right: 6px;
}

/* ── WAITLIST FORM ── */
.waitlist-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 420px;
    opacity: 0;
    animation: fadeUp 0.8s 1.1s ease forwards;
}

.input-field {
    width: 100%;
    padding: 16px 24px;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(200, 185, 216, 0.4);
    border-radius: 60px;
    outline: none;
    backdrop-filter: blur(6px);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}
.input-field::placeholder {
    color: var(--text-light);
}
.input-field:focus {
    border-color: var(--lilac);
    box-shadow: 0 0 0 3px rgba(200, 185, 216, 0.3);
}

.waitlist-form .btn-main {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.waitlist-form .hint {
    margin-top: 4px;
}

/* ── SUCCESS MESSAGE ── */
.success-message {
    text-align: center;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sage);
    color: white;
    font-size: 24px;
    margin-bottom: 24px;
}

.success-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.success-text {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
}

.error-message {
    text-align: center;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.error-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.error-text {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ── CONTACT FORM ── */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    opacity: 0;
    animation: fadeUp 0.8s 1.1s ease forwards;
}

.contact-form .btn-main {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.contact-form .hint {
    margin-top: 4px;
}

.textarea-field {
    border-radius: 24px;
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* ── FOOTER ── */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-light);
    font-family: "Nunito", sans-serif;
}

/* ── KEYFRAMES ── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    nav {
        padding: 20px 24px;
    }
    nav .logo {
        height: 40px;
    }
    nav .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero {
        padding: 40px 20px 80px;
    }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
