/* =========================================================================
   Coparentality — feuille de styles du site vitrine
   Palette reprise de l'application (src/styles/colors.ts) pour que le site
   et l'app se ressemblent : teal principal, corail en accent chaud, jaune
   pour les badges.
   Aucune ressource externe (ni police Google, ni CDN) : la CNIL assimile le
   chargement de Google Fonts à un transfert de données hors UE, ce qui
   contredirait la promesse de confidentialité du produit.
   ========================================================================= */

:root {
    --teal: #2A9D8F;
    --teal-dark: #1B7A6F;
    --teal-darker: #14584F;
    --coral: #EF6F5E;
    --coral-dark: #D9543F;
    --yellow: #F4C95D;

    --ink: #0F172A;
    --body: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --bg: #F9FAFB;
    --surface: #FFFFFF;
    --tint: #F1F7F6;

    --radius-s: 10px;
    --radius: 16px;
    --radius-l: 24px;
    --radius-xl: 32px;

    --shadow-s: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 4px 16px rgba(15, 23, 42, .07);
    --shadow-l: 0 18px 50px rgba(15, 23, 42, .13);

    --wrap: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
a { color: var(--teal-dark); }
/* `height: auto` est indispensable : les <img> portent leurs attributs
   width/height (bon pour éviter les sauts de mise en page au chargement),
   et sans cette règle la hauteur de l'attribut l'emporte sur le ratio,
   ce qui étire verticalement les captures. */
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 700; }

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
    position: absolute; left: -9999px;
    background: var(--ink); color: #fff;
    padding: 12px 20px; border-radius: 0 0 var(--radius-s) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

.eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--teal-dark);
    background: var(--tint);
    border: 1px solid #D7E9E6;
    padding: 6px 14px; border-radius: 999px;
    margin-bottom: 20px;
}

.lede { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }

/* ── Boutons ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: inherit; font-weight: 700; font-size: 1rem;
    padding: 15px 28px;
    border-radius: 999px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(42, 157, 143, .32); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(42, 157, 143, .38); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--tint); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-light:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }

/* ── En-tête ──────────────────────────────────────────────────────────── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex; align-items: center; gap: 28px;
    min-height: 74px;
}
.brand {
    display: flex; align-items: center; gap: 11px;
    font-weight: 800; font-size: 1.12rem; color: var(--ink);
    text-decoration: none; letter-spacing: -.02em;
    margin-right: auto;
}
.brand img { width: 38px; height: 38px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
    color: var(--body); text-decoration: none;
    font-size: .96rem; font-weight: 600;
}
.nav a:hover { color: var(--teal-dark); }
.nav .btn { padding: 11px 22px; font-size: .93rem; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
    .site-header .wrap { flex-wrap: wrap; gap: 14px; }
    .nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0;
        background: var(--tint); border: 1px solid var(--line);
        border-radius: 12px; cursor: pointer; color: var(--ink);
    }
    .nav {
        display: none; order: 3;
        width: 100%; flex-direction: column; align-items: stretch;
        gap: 4px; padding: 8px 0 18px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .nav .btn { margin-top: 12px; border-bottom: 0; justify-content: center; }
}

/* ── Héros ────────────────────────────────────────────────────────────── */

.hero {
    /* Le héros est un <section> : sans cette remise à zéro il cumulerait le
       padding générique des sections et celui, plus fin, de son propre .wrap. */
    padding: 0;
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 520px at 88% -10%, rgba(244, 201, 93, .20), transparent 60%),
        radial-gradient(900px 480px at 8% 8%, rgba(42, 157, 143, .13), transparent 62%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}
.hero .wrap {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 56px; align-items: center;
    padding-top: 84px; padding-bottom: 84px;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent {
    background: linear-gradient(180deg, transparent 62%, rgba(244, 201, 93, .55) 62%);
}
.hero .lede { font-size: 1.25rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-note {
    display: flex; align-items: center; gap: 9px;
    font-size: .92rem; color: var(--muted);
}
.hero-note svg { flex: none; color: var(--teal); }

@media (max-width: 900px) {
    .hero .wrap {
        grid-template-columns: 1fr; gap: 48px;
        padding-top: 56px; padding-bottom: 56px;
    }
}

/* ── Cadre téléphone ──────────────────────────────────────────────────── */

.phone {
    position: relative;
    width: 100%; max-width: 300px; margin: 0 auto;
    background: #10201E;
    border-radius: 44px;
    padding: 11px;
    box-shadow: var(--shadow-l), 0 0 0 1.5px rgba(255, 255, 255, .1) inset;
}
.phone::after {                      /* encoche */
    content: ""; position: absolute;
    top: 20px; left: 50%; transform: translateX(-50%);
    width: 96px; height: 20px;
    background: #10201E; border-radius: 0 0 14px 14px;
    z-index: 2;
}
.phone img {
    width: 100%; border-radius: 34px;
    background: var(--teal-dark);
}

.phone-stack {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 22px; align-items: start;
}
.phone-stack .phone:first-child { margin-top: 34px; }

/* ── Sections ─────────────────────────────────────────────────────────── */

section { padding: 88px 0; }
section.tinted { background: var(--bg); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .lede { margin: 0 auto; }

/* ── Grille de fonctionnalités ────────────────────────────────────────── */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 30px;
    box-shadow: var(--shadow-s);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CFE3E0; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; color: var(--muted); }

.icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 15px;
    margin-bottom: 18px;
    background: var(--tint); color: var(--teal-dark);
}
.icon.coral { background: #FDEEEB; color: var(--coral-dark); }
.icon.yellow { background: #FEF6E2; color: #A9761B; }

/* ── Sections alternées avec capture ──────────────────────────────────── */

.feature {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.reverse .feature-media { order: -1; }

.feature ul { list-style: none; padding: 0; margin: 26px 0 0; }
.feature li {
    position: relative; padding-left: 32px; margin-bottom: 14px;
    color: var(--body);
}
.feature li::before {
    content: ""; position: absolute; left: 0; top: .45em;
    width: 19px; height: 19px; border-radius: 50%;
    background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B7A6F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 900px) {
    .feature { grid-template-columns: 1fr; gap: 40px; }
    .feature.reverse .feature-media { order: 0; }
    .feature + .feature { margin-top: 64px; }
}

/* ── Bandeau principe ─────────────────────────────────────────────────── */

.principle {
    background: linear-gradient(135deg, var(--teal-darker), var(--teal-dark) 55%, var(--teal));
    color: #fff; text-align: center;
    border-radius: var(--radius-xl);
    padding: 62px 40px;
}
.principle h2 { color: #fff; }
.principle p { color: rgba(255, 255, 255, .9); max-width: 66ch; margin-inline: auto; font-size: 1.1rem; }
.principle p:last-child { margin-bottom: 0; }

/* ── Confidentialité ──────────────────────────────────────────────────── */

.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.privacy-grid div {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
}
.privacy-grid strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.privacy-grid span { font-size: .92rem; color: var(--muted); }
@media (max-width: 940px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { max-width: 800px; margin: 0 auto; }
.faq details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: #CFE3E0; box-shadow: var(--shadow-s); }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 20px 56px 20px 24px; position: relative;
    font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 24px; top: 50%;
    width: 11px; height: 11px; margin-top: -6px;
    border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
    transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ── Appel à l'action ─────────────────────────────────────────────────── */

.cta {
    background: linear-gradient(135deg, var(--teal-darker), var(--teal-dark) 60%, #2A9D8F);
    color: #fff; text-align: center;
    padding: 92px 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 58ch; margin-inline: auto; }

.waitlist {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    max-width: 520px; margin: 32px auto 14px;
}
.waitlist input {
    flex: 1 1 260px; min-width: 0;
    font: inherit; font-size: 1rem;
    padding: 15px 20px;
    border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .14); color: #fff;
}
.waitlist input::placeholder { color: rgba(255, 255, 255, .7); }
.waitlist input:focus { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 2px; }
.waitlist .btn { background: #fff; color: var(--teal-darker); }
.waitlist .btn:hover { background: var(--yellow); color: var(--ink); }

.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.badge {
    display: inline-flex; align-items: center; gap: 11px;
    padding: 12px 22px; border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .08);
    color: #fff; font-size: .93rem; text-align: left;
    cursor: default;
}
.badge small { display: block; opacity: .75; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.badge b { font-size: 1rem; font-weight: 700; white-space: nowrap; }

/* ── Pages de repli des liens d'invitation ────────────────────── */

.landing{
    /* <section> : on annule le padding générique, la page gère le sien */
    padding: 0;
    background:
        radial-gradient(900px 460px at 50% -12%, rgba(42,157,143,.14), transparent 62%),
        var(--bg);
}
.landing .wrap{ max-width: 660px; text-align: center; padding-block: 72px; }
.landing .mark{
    width: 76px; height: 76px; margin: 0 auto 26px;
    border-radius: 22px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
}
.landing .mark img{ width: 48px; height: 48px; }
.landing .lede{ margin-inline: auto; }
.landing .steps{
    list-style: none; padding: 0; margin: 34px auto 0; max-width: 460px;
    text-align: left; display: grid; gap: 12px;
}
.landing .steps li{
    display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px 18px; font-size: .97rem;
}
.landing .steps b{
    font-family: inherit; font-size: .8rem; font-weight: 700;
    color: var(--teal-dark); background: var(--tint);
    border-radius: 6px; padding: 3px 9px; height: fit-content;
}
.landing .badges-dim{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.landing .badges-dim .badge{
    border-color: var(--line); background: var(--surface); color: var(--muted);
}
.landing .badges-dim .badge b{ color: var(--ink); }

/* ── Pied de page ─────────────────────────────────────────────────────── */

.site-footer { background: var(--ink); color: #94A3B8; padding: 64px 0 34px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #94A3B8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    margin-top: 44px; padding-top: 26px;
    border-top: 1px solid #1E293B;
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    font-size: .88rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Pages de contenu (légal) ─────────────────────────────────────────── */

.page-hero {
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 62px 0 54px;
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero .meta { color: var(--muted); font-size: .95rem; margin: 0; }

.prose { max-width: 780px; margin: 0 auto; padding: 62px 24px 96px; }
.prose h2 {
    font-size: 1.45rem; margin-top: 2.4em;
    padding-top: 1.6em; border-top: 1px solid var(--line);
}
.prose > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 2em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose hr { display: none; }
.prose table {
    width: 100%; border-collapse: collapse; margin: 1.6em 0;
    font-size: .93rem;
}
.prose th, .prose td {
    border: 1px solid var(--line); padding: 11px 14px;
    text-align: left; vertical-align: top;
}
.prose th { background: var(--tint); color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }

.toc {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 28px; margin-bottom: 44px;
}
.toc h2 { font-size: .82rem !important; text-transform: uppercase; letter-spacing: .11em;
          color: var(--muted); margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; }
.toc ol { margin: 0; padding-left: 20px; font-size: .95rem; }
.toc li { margin-bottom: 7px; }
