/* ===========================================================================
   Dizpo — styles marketing (header, hero, features, footer).
   S'appuie sur base.css (variables couleurs + utilitaires). Couleurs = thème RN.
   =========================================================================== */

html { scroll-behavior: smooth; }
body { background-color: var(--background); }

/* Sticky footer : la page occupe au minimum toute la hauteur de l'écran et <main> grandit pour
   pousser le footer en bas, même quand le contenu est court (ex. page d'invitation sur grand écran). */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Le point accent de « Dizpo. » (réutilisable partout) */
.brand-dot { color: var(--accent); }

/* -------------------------- Header / navigation -------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    position: relative;
    z-index: 100;
}
.site-header .brand {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--text);
}
.nav-links a:hover { color: var(--accent); }

.btn {
    display: inline-block;
    border-radius: 10px;
    padding: 11px 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
    border: none;
}


/* Burger mobile */
.nav-toggle { display: none; background: transparent; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: all .25s ease; }

@media screen and (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        inset: 68px 0 auto 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--background);
        padding: 0 24px;
        /* Se déploie vers le BAS depuis SOUS le header (max-height + overflow:hidden) : le menu
           ne passe plus jamais par-dessus la barre du header, il en « sort » par en dessous. */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
        z-index: 50;
    }
    .nav-links.open {
        max-height: 380px;
        opacity: 1;
        padding: 12px 24px 22px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    }
    .nav-links a { display: block; width: 100%; padding: 12px 10px; }
    .nav-links .btn { width: 100%; margin-top: 6px; }
}

.btn-primary { background: var(--button); color: #fff !important; }
.btn-primary:hover { background: var(--button-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(45, 111, 224, 0.28); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #7d29a6; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(146, 52, 190, 0.28); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* -------------------------------- Hero ---------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 92px 0 80px;
    background:
        radial-gradient(1000px 480px at 50% -10%, var(--accent-soft), transparent 70%),
        var(--background);
}
.hero .eyebrow {
    display: inline-block;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid #e3cef2;
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 22px;
}
.hero h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -1px;
    max-width: 820px;
    margin: 0 auto;
}
.hero p.lead {
    font-size: clamp(1.02rem, 2.2vw, 1.22rem);
    color: var(--muted);
    max-width: 620px;
    margin: 22px auto 0;
    line-height: 1.6;
}
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.store-badges img { height: 52px; width: auto; transition: transform .2s ease; }
.store-badges a:hover img { transform: translateY(-2px) scale(1.03); }
.hero .reassurance { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }

/* ----------------------------- Sections --------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--page-bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: -0.5px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; line-height: 1.6; }

/* Grille de fonctionnalités */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media screen and (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 26px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 23, 29, 0.07); border-color: #dfe4ee; }
.feature-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    border-radius: 14px;
    background: var(--accent-soft);
    margin-bottom: 18px;
}
.feature-card h3 { font-weight: 600; font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

/* Étapes « comment ça marche » */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media screen and (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step-num {
    width: 46px; height: 46px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: 1.15rem;
}
.step h3 { font-weight: 600; font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

/* CTA final */
.cta {
    text-align: center;
    background: linear-gradient(135deg, #9234BE, #6d4bd6);
    border-radius: 26px;
    padding: 62px 28px;
    color: #fff;
    margin: 0 auto;
}
.cta h2 { color: #fff; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -0.5px; }
.cta p { color: rgba(255,255,255,0.9); margin-top: 14px; font-size: 1.05rem; }
.cta .store-badges { margin-top: 30px; }

/* -------------------------------- Footer -------------------------------- */
.site-footer {
    background: var(--text);
    color: #cfd3dc;
    padding: 54px 0 34px;
}
.site-footer .footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.site-footer .brand { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.6rem; color: #fff; }
.site-footer .footer-tag { color: #9aa0ad; margin-top: 8px; font-size: 0.92rem; max-width: 280px; line-height: 1.55; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; height: auto; }
.footer-col h4 { color: #fff; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: #b8bdc7; font-size: 0.95rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 40px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    color: #8b91a0; font-size: 0.86rem;
}

/* -------------------- Pages de contenu (privacy / CGU) ------------------- */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 24px 90px; }
.legal h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.5px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.legal h2 { font-weight: 600; font-size: 1.3rem; margin-top: 36px; margin-bottom: 10px; }
.legal p, .legal li { color: #3c4149; line-height: 1.7; font-size: 1rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--button); font-weight: 500; }
.legal a:hover { color: var(--accent); }

/* ----------------------------- Invitation ------------------------------- */
.invite-card { max-width: 560px; margin: 0 auto; text-align: center; padding-top: 12px; }
.invite-emoji { font-size: 3.2rem; line-height: 1; cursor: pointer; user-select: none; }
.invite-card h1 { font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.5px; margin-top: 14px; }
.invite-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.invite-event-name { font-weight: 700; font-size: 1.5rem; color: var(--accent); margin-top: 6px; }
.invite-dl { color: var(--muted); margin-top: 42px; }
.invite-card .store-badges { margin-top: 18px; }

/* ------------------------------- Page 404 ------------------------------- */
.error-page { text-align: center; padding: 88px 0 110px; }
.error-balloons { font-size: 3.4rem; line-height: 1; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-14px) rotate(4deg); }
}
.error-code {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 20vw, 10rem);
    line-height: 1;
    letter-spacing: -4px;
    color: var(--text);
    margin-top: 6px;
}
.error-page h1 { font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -0.5px; margin-top: 8px; }
.error-page p { color: var(--muted); margin: 16px auto 0; font-size: 1.08rem; line-height: 1.6; max-width: 520px; }
