/* Page d'accueil de nidora.family — palette tirée de src/theme/tokens.ts
   (sage = action, clay et amber = chaleur, cream = fond), poussée plus vive.
   Thème clair seulement, même quand le téléphone est en mode sombre.
   Feuille séparée de style.css : les pages légales gardent la leur. */
:root {
  --bg: #FBF7F0; --surface: #FFFFFF; --raised: #F3ECE1; --line: #E6DCCD;
  --text: #1C1917; --text-2: #4F4842; --text-3: #857C70;
  --sage: #3F6040; --sage-mid: #5C845C; --sage-soft: #E3EDE1; --sage-pop: #7A9E7A;
  --clay: #C0603F; --clay-soft: #FBE6DC;
  --amber: #D99B33; --amber-soft: #FCEFD3;
  --berry: #8E5A9E; --berry-soft: #F1E6F4;
  --blob-1: #FFD99A; --blob-2: #C9E4C2; --blob-3: #F8C7B2;
  --ink: #1F2B20; --on-ink: #F7F4EF;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--sage-mid); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; margin: 0 auto; }

/* En-tête */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px);
             -webkit-backdrop-filter: blur(12px);
             background: color-mix(in srgb, var(--bg) 80%, transparent); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between;
                   gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none;
         color: var(--text); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: .55rem; }
nav.top { display: flex; align-items: center; gap: 1.3rem; }
nav.top a { color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
nav.top a:hover { color: var(--text); }
nav.top .pill { background: var(--text); color: var(--bg); padding: .5rem 1rem;
                 border-radius: 999px; font-weight: 600; }
@media (max-width: 44rem) { nav.top .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.blobs { position: absolute; inset: -8rem -14rem auto auto; width: 60rem; height: 44rem;
         pointer-events: none; z-index: 0; filter: blur(48px); opacity: 1; }
.blobs span { position: absolute; border-radius: 50%; }
.blobs span:nth-child(1) { width: 30rem; height: 30rem; background: var(--blob-1); left: 18rem; top: 0; }
.blobs span:nth-child(2) { width: 24rem; height: 24rem; background: var(--blob-2); left: 4rem; top: 16rem; }
.blobs span:nth-child(3) { width: 20rem; height: 20rem; background: var(--blob-3); left: 32rem; top: 20rem; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center;
             grid-template-columns: 1.1fr .9fr; }
/* Deux colonnes dès la tablette : le téléphone reste à côté du texte. */
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr auto; gap: 2rem; } .phone { width: 17rem; } }
@media (max-width: 46rem) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } .phone { width: 19rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem;
           font-weight: 600; padding: .35rem .8rem; border-radius: 999px;
           background: var(--amber-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--amber); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.02; margin: 1.2rem 0 0; }
h1 em, h2 em { font-style: italic; color: var(--clay); }
.lede { font-size: 1.22rem; color: var(--text-2); max-width: 32rem; margin: 1.3rem 0 0; }
.lede b { color: var(--text); }
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cta { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
       font-weight: 600; padding: .9rem 1.4rem; border-radius: 999px; font-size: 1rem; }
.cta.primary { background: var(--text); color: var(--bg); }
.cta.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.cta svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 30rem) { .ctas .cta { width: 100%; justify-content: center; } }
.zone { color: var(--text-3); font-size: .92rem; margin: 1rem 0 0; }

/* Maquette de téléphone */
.stage { position: relative; display: flex; justify-content: center; padding: 1rem 0;
         width: fit-content; max-width: 100%; margin: 0 auto; }
.phone { width: 19rem; max-width: 100%; background: var(--surface); border-radius: 2.4rem;
         padding: .7rem; border: 1px solid var(--line);
         box-shadow: 0 30px 60px -20px rgba(60, 40, 20, .35); }
.screen { background: var(--bg); border-radius: 1.9rem; overflow: hidden; padding: 1rem .9rem 1.1rem; }
.search { display: flex; align-items: center; gap: .5rem; background: var(--surface);
          border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem;
          font-size: .8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo { height: 7.5rem; border-radius: 1rem; margin-top: .8rem; overflow: hidden;
         background: #FBE3C2 url(/cafe.svg) center / cover no-repeat; }
.place-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin: .8rem 0 0; }
.place-meta { font-size: .78rem; color: var(--text-3); margin: .1rem 0 .7rem; }
.attr { display: flex; flex-wrap: wrap; column-gap: .55rem; row-gap: .1rem; align-items: center; background: var(--surface);
        border-radius: .8rem; padding: .5rem .7rem; margin-top: .4rem; font-size: .82rem; }
.attr b { font-weight: 600; white-space: nowrap; }
.attr i { white-space: nowrap; margin-left: auto; font-style: normal; font-size: .72rem; color: var(--text-3); text-align: right; }
.attr .ic { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center;
            font-size: .72rem; flex: none; }
.attr.ok .ic { background: var(--sage-pop); color: #fff; }
.attr.ok i { color: var(--sage-mid); font-weight: 600; }
.attr.est .ic { border: 2px dashed var(--amber); color: var(--amber); }
.attr.est i { color: var(--amber); font-weight: 600; }
.attr.unk .ic { background: var(--raised); color: var(--text-3); }
.attr.unk i { color: var(--clay); font-weight: 600; }

.float { position: absolute; background: var(--surface); border: 1px solid var(--line);
         border-radius: 1rem; padding: .6rem .85rem; font-size: .8rem; font-weight: 600;
         box-shadow: 0 16px 30px -14px rgba(60, 40, 20, .35); display: flex; align-items: center; gap: .5rem; }
.float small { display: block; font-weight: 500; color: var(--text-3); font-size: .72rem; }
.float .big { font-size: 1.4rem; }
.float.f1 { right: calc(100% - 1.5rem); top: 9rem; transform: rotate(-4deg); white-space: nowrap; }
.float.f2 { left: calc(100% - 1rem); bottom: 5.5rem; transform: rotate(3deg); white-space: nowrap; }
@media (max-width: 56rem) {
  .float.f1 { right: auto; left: -.25rem; top: -1rem; }
  .float.f2 { left: auto; right: -.25rem; bottom: -1rem; }
}

/* Sections */
section { padding: 4.5rem 0; }
.sec-head { text-align: center; max-width: 44rem; margin: 0 auto 2.8rem; }
.sec-head p { text-wrap: balance; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
       text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; }
.tag.sage { background: var(--sage-soft); color: var(--sage); }
.tag.clay { background: var(--clay-soft); color: var(--clay); }
.tag.amber { background: var(--amber-soft); color: var(--text); }
.tag.berry { background: var(--berry-soft); color: var(--berry); }
h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: .9rem 0 0; }
.sec-head p { color: var(--text-2); font-size: 1.1rem; margin: 1rem 0 0; }

/* Avant / avec Nidora */
.moments { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 56rem) { .moment .before, .moment .after { padding-left: 1.1rem; padding-right: 1.1rem; } }
@media (max-width: 46rem) { .moments { grid-template-columns: 1fr; max-width: 34rem; margin: 0 auto; } }
.moment { display: flex; flex-direction: column; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.moment .before { flex: 1; background: var(--clay-soft); padding: 1.3rem 1.4rem 1.1rem; }
.moment .after { background: var(--sage-soft); padding: 1.1rem 1.4rem 1.4rem; }
.moment .label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.moment .before .label { color: var(--clay); }
.moment .after .label { color: var(--sage); }
.moment .emoji { font-size: 2rem; display: block; margin-bottom: .4rem; }
.moment h3 { font-family: var(--serif); font-size: 1.35rem; margin: .2rem 0 .35rem; }
.moment p { margin: .35rem 0 0; color: var(--text-2); }

/* Comment ça marche */
.how { background: var(--raised); border-radius: 2.5rem; padding: 4.5rem 0; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
        padding: 2.2rem clamp(1.25rem, 5vw, 4rem); }
.step:nth-child(odd) .step-ui { order: -1; }
@media (max-width: 56rem) { .step { gap: 1.8rem; } }
@media (max-width: 46rem) {
  .step { grid-template-columns: 1fr; gap: 1.6rem; max-width: 34rem; margin: 0 auto; }
  .step:nth-child(odd) .step-ui { order: 0; }
}
.num { font-family: var(--serif); font-size: 1rem; font-weight: 800; display: inline-flex;
       align-items: center; gap: .6rem; }
.num span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .7rem;
            color: #fff; font-size: 1rem; }
.num.sage span { background: var(--sage-pop); }
.num.amber span { background: var(--amber); }
.num.clay span { background: var(--clay); }
.num.sage { color: var(--sage); } .num.amber { color: var(--amber); } .num.clay { color: var(--clay); }
.step h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.12;
           margin: .8rem 0 .6rem; letter-spacing: -0.02em; }
.step p { color: var(--text-2); font-size: 1.05rem; margin: 0; }
.step-ui { width: 100%; max-width: 28rem; justify-self: center; background: var(--surface); border-radius: 1.6rem; padding: 1.3rem; border: 1px solid var(--line);
           box-shadow: 0 24px 50px -28px rgba(60, 40, 20, .4); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600;
        padding: .42rem .75rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.chip.on { background: var(--sage); color: var(--bg); border-color: var(--sage); }
.map { height: 9rem; border-radius: 1rem; margin-top: .9rem; position: relative; overflow: hidden;
       background:
         radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--sage-pop) 30%, transparent) 0 3.5rem, transparent 3.6rem),
         linear-gradient(90deg, transparent 48%, var(--line) 48% 52%, transparent 52%),
         linear-gradient(0deg, transparent 58%, var(--line) 58% 62%, transparent 62%),
         linear-gradient(160deg, var(--sage-soft), var(--amber-soft)); }
.pin { position: absolute; width: 1.9rem; height: 1.9rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
       display: grid; place-items: center; box-shadow: 0 6px 12px -4px rgba(0,0,0,.3); }
.pin::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #fff; }
.pin.a { background: var(--sage-pop); left: 18%; top: 22%; }
.pin.b { background: var(--clay); left: 62%; top: 48%; }
.pin.c { background: var(--amber); left: 38%; top: 60%; }
.ask { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: .2rem 0 .9rem; }
.answers { display: flex; flex-wrap: wrap; gap: .5rem; }
.answers span { flex: 1; text-align: center; padding: .65rem .9rem; border-radius: .9rem; font-weight: 600;
                font-size: .9rem; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.answers span.yes { background: var(--sage); color: var(--bg); border-color: var(--sage); }
.thanks { margin-top: .9rem; font-size: .85rem; color: var(--sage-mid); font-weight: 600; }

/* Tous les critères */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 46rem) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 30rem) { .bento { grid-template-columns: 1fr; } }
.tile { border-radius: 1.3rem; padding: 1.2rem 1.3rem; display: flex; gap: .9rem; align-items: center; }
.tile .e { font-size: 1.7rem; width: 3rem; height: 3rem; border-radius: .9rem; background: var(--surface);
           display: grid; place-items: center; flex: none; }
.tile b { display: block; font-size: 1.02rem; }
.tile span { color: var(--text-2); font-size: .9rem; }
.tile.sage { background: var(--sage-soft); } .tile.amber { background: var(--amber-soft); }
.tile.clay { background: var(--clay-soft); } .tile.berry { background: var(--berry-soft); }
.cats { justify-content: center; margin-top: 1.8rem; }

/* Bandeau partage */
.band { background: var(--ink); color: var(--on-ink); border-radius: 2.5rem; padding: 4rem clamp(1.25rem, 5vw, 4rem);
        position: relative; overflow: hidden; text-align: center; }
.band::before, .band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
.band::before { width: 22rem; height: 22rem; background: #5C845C; left: -6rem; top: -8rem; }
.band::after { width: 18rem; height: 18rem; background: #C0603F; right: -5rem; bottom: -8rem; }
.band > * { position: relative; z-index: 1; }
.band h2 { color: #FFFFFF; margin: 0 auto; max-width: 36rem; }
.band h2 em { color: #F0BE63; }
.band p { color: #D9D3CA; max-width: 34rem; margin: 1rem auto 0; font-size: 1.1rem; }
.band .cta { margin-top: 2rem; background: #FFFFFF; color: #1C1917; }

/* Blog (aperçu) */
.posts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.posts > * { flex: 0 1 calc((100% - 2.4rem) / 3); min-width: 16rem; }
@media (max-width: 46rem) { .posts > * { flex-basis: 100%; max-width: 34rem; } }
.post-card { display: block; text-decoration: none; color: var(--text); background: var(--surface);
             border: 1px solid var(--line); border-radius: 1.4rem; padding: 1.4rem; }
.post-card:hover { border-color: var(--sage-pop); }
.post-card time { font-size: .8rem; color: var(--text-3); }
.post-card h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; margin: .4rem 0 .5rem; }
.post-card p { color: var(--text-2); font-size: .95rem; margin: 0; }
.more-link { text-align: center; margin-top: 1.6rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 1.05rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
               display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 0; color: var(--text-2); }
.contact { background: var(--sage-soft); border-radius: 1.4rem; padding: 1.4rem 1.6rem; margin-top: 1.8rem; }
.contact p { margin: 0; }
.contact p + p { margin-top: .35rem; color: var(--text-2); }

footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 3rem;
         color: var(--text-3); font-size: .9rem; }
footer a { color: var(--text-2); margin-right: 1.1rem; }
footer p { margin: .8rem 0 0; }

/* Blog */
.blog-list h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-top: .9rem; }
.empty { text-align: center; color: var(--text-3); }
.article { padding: 3rem 0 2rem; }
.article h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 1rem 0 0; }
.back { font-size: .9rem; text-decoration: none; font-weight: 600; }
.article-meta { color: var(--text-3); font-size: .9rem; margin: .6rem 0 1.6rem; }
.cover { width: 100%; border-radius: 1.4rem; margin-bottom: 1.6rem; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 2.2rem 0 .6rem; }
.prose h3 { font-size: 1.25rem; margin: 1.6rem 0 .4rem; }
.prose p, .prose li { color: var(--text-2); }
.prose img { max-width: 100%; border-radius: 1rem; }
.prose blockquote { margin: 1.4rem 0; padding: .2rem 1.2rem; border-left: 4px solid var(--amber); }
.article-cta { background: var(--sage-soft); border-radius: 1.6rem; padding: 1.6rem; margin: 3rem 0 0; }
.article-cta p { margin: 0 0 1.2rem; color: var(--text-2); }
.article-cta strong { color: var(--text); }
.article-faq { padding: 2.5rem 0 0; }
.article-faq h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 1rem; }
.prose a { color: var(--sage); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose strong { color: var(--text); }
.soon { cursor: default; }
