/* Site public Blabla : accueil + pages légales. Complète base.css (tokens), voir DESIGN.md.
   Thème clair uniquement. Les seules couleurs en dur sont celles de l'illustration du hero (maquette iPhone). */

main.pub { max-width: none; margin: 0; padding: 0; }
.pub-wrap { max-width: var(--w-page); margin: 0 auto; padding-left: var(--s4); padding-right: var(--s4); }
.center { text-align: center; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: var(--r-pill); font-weight: 500; }
.skip:focus { top: 8px; text-decoration: none; }

/* ─── En-tête translucide ───────────────────────────────── */
.pub-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline); }
.pub-header-in { display: flex; align-items: center; gap: var(--s5); height: 52px; }
.pub-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 1.125rem; letter-spacing: -.03em; text-decoration: none; flex: none; }
.pub-brand:hover { text-decoration: none; }
.pub-brand svg { width: 26px; height: 26px; flex: none; }
.pub-nav { display: flex; gap: var(--s5); flex: 1; justify-content: center; }
.pub-nav a, .pub-login { color: var(--text); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.pub-nav a:hover, .pub-login:hover { text-decoration: underline; }
.pub-actions { display: flex; align-items: center; gap: var(--s4); flex: none; }

/* ─── Hero ──────────────────────────────────────────────── */
.hero { padding: var(--s8) 0 var(--s7); overflow: hidden; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .eyebrow { margin-bottom: var(--s4); }
.hero .display { margin: 0 0 var(--s5); max-width: 15em; }
.hero-lead { max-width: 36em; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin: var(--s6) 0 var(--s4); }
.proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); color: var(--muted); }
.proof li { display: inline-flex; align-items: center; gap: 6px; }
.tick { color: var(--accent-ink); flex: none; }

/* Maquette : tout est en em, la taille suit la largeur de l'écran. */
.hero-visual { margin: var(--s7) 0 0; width: 100%; display: flex; flex-direction: column; align-items: center;
  font-size: clamp(9px, calc((100vw - 32px) / 30), 18px); }
.phones { position: relative; display: flex; align-items: flex-start; padding: 1em 0 2em; text-align: start; }
.phones::before { content: ""; position: absolute; inset: -4em -8em; z-index: -1;
  background: none; }
.phone { position: relative; width: 15em; aspect-ratio: 9 / 18.6; flex: none; padding: .45em; border-radius: 2.6em;
  background: var(--text); box-shadow: inset 0 0 0 .12em rgba(255, 255, 255, .12); }
.phone-post { transform: rotate(-3deg); z-index: 1; }
.phone-dm { margin-left: -1.5em; margin-top: 3.2em; transform: rotate(3deg); z-index: 2; }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.15em; background: var(--bg); color: var(--text);
  font-size: .62em; line-height: 1.35; display: flex; flex-direction: column; }
.island { position: absolute; top: .9em; left: 50%; width: 5.6em; height: 1.6em; margin-left: -2.8em; border-radius: 1em; background: var(--text); }
.status { display: flex; justify-content: space-between; align-items: center; padding: 1.05em 2.2em .6em; font-weight: 500; font-size: .95em; }
.status-r { display: inline-flex; gap: .25em; align-items: flex-end; }
.status-r i { display: block; width: .3em; background: var(--text); border-radius: .1em; }
.status-r i:nth-child(1) { height: .5em; } .status-r i:nth-child(2) { height: .75em; } .status-r i:nth-child(3) { height: 1em; }
.av { width: 2.4em; height: 2.4em; border-radius: 50%; flex: none; display: inline-block; }
.av-shop { background: var(--text); box-shadow: 0 0 0 .15em var(--bg), 0 0 0 .3em var(--accent); }
.av-salma { background: var(--hairline); }
.av-nadia { background: var(--stone); }
.screen b { font-weight: 500; }
.screen small { display: block; color: var(--muted); font-size: .85em; }

.ig-head { display: flex; align-items: center; gap: .7em; padding: .5em 1em .7em; }
.ig-head > span:nth-child(2) { flex: 1; min-width: 0; }
.ig-more { color: var(--muted); letter-spacing: .05em; }
.ig-photo { aspect-ratio: 1; background: var(--bg-alt); }
.ig-photo svg { display: block; width: 100%; height: 100%; }
.ig-actions { display: flex; gap: 1em; padding: .7em 1em .3em; }
.ig-actions svg { width: 1.9em; height: 1.9em; fill: none; stroke: var(--text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ig-caption { margin: 0; padding: .2em 1em .5em; }
.ig-comment { display: flex; align-items: center; gap: .6em; padding: .35em 1em; margin: 0 .5em; border-radius: .8em; }
.ig-comment .av { width: 2em; height: 2em; }
.ig-comment p { margin: 0; }
.ig-comment.c1 { background: var(--accent-soft); }
.ig-comment.reply { margin-left: 2.4em; color: var(--text-2); }

.dm-head { display: flex; align-items: center; gap: .7em; padding: .4em 1em .8em; border-bottom: 1px solid var(--hairline-soft); }
.dm-back { font-size: 2em; line-height: .8; color: var(--text); }
.dm-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .6em; padding: 1.2em 1em; }
.dm-context { align-self: center; margin: 0 0 .4em; color: var(--muted); font-size: .9em; text-align: center; }
.bubble { max-width: 85%; padding: .75em 1em; border-radius: 1.4em 1.4em 1.4em .4em; background: var(--fill); }
.bubble-card { width: 85%; border-radius: 1.4em; overflow: hidden; background: var(--bg); border: 1px solid var(--hairline-soft); display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 2 / 1;
  background: var(--island); }
.card-body { padding: .7em 1em .3em; }
.card-btn { margin: .5em .8em .8em; padding: .65em; border-radius: 9999px; text-align: center; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.dm-time { margin: .2em 0 0; color: var(--muted); font-size: .85em; }
.dm-input { margin: 0 1em 1.4em; padding: .8em 1.2em; border-radius: 2em; border: 1px solid var(--hairline); color: var(--muted); }

.toast { position: absolute; z-index: 3; right: -1.5em; top: 0; display: flex; align-items: center; gap: .6em; padding: .6em 1em .6em .6em;
  font-size: .78em; line-height: 1.3; border-radius: 1.2em; background: var(--bg); border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.toast small { display: block; color: var(--muted); }
.toast-ico { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .7em; background: var(--ok-soft); }
.toast-ico .tick { color: var(--ok); width: 1.3em; height: 1.3em; }

.hero-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6); margin-top: var(--s4); font-size: .875rem; color: var(--muted); }
.hero-legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.hero-legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: .75rem; }

/* ─── Bande de chiffres ─────────────────────────────────── */
.stats { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { padding: var(--s6) var(--s5); text-align: center; }
.stat-item + .stat-item { border-left: 1px solid var(--hairline-soft); }
.stat-v { margin: 0 0 var(--s1); font-size: 2.5rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.stat-d { margin: 0 auto; max-width: 18em; color: var(--muted); font-size: .9375rem; }

/* ─── Sections ──────────────────────────────────────────── */
.section { padding: var(--s8) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s7); }
.section-head .lead { margin: var(--s3) 0 0; }
.currency-switch { margin-top: var(--s5); }
.section-head .currency-switch + p { margin: var(--s2) 0 0; }
.section-title { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1; font-weight: 500; letter-spacing: -.03em; margin: 0; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.step { padding: var(--s7) var(--s6); border-radius: var(--r-xl); background: var(--bg-alt); }
.step-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--accent); color: var(--accent-ink); margin-bottom: var(--s5); }
.step-n { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
.step h3 { font-size: 1.25rem; margin-bottom: var(--s2); }
.step p { margin: 0; color: var(--text-2); }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.feature { background: var(--bg); border-radius: var(--r-xl); padding: var(--s6); }
.feature-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--bg-alt); color: var(--accent-ink); margin-bottom: var(--s4); }
.feature h3 { margin-bottom: var(--s2); }
.feature p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Pour qui */
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); }
.case { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border: 1px solid var(--hairline); border-radius: var(--r-xl); }
.case-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--text); }
.case b { display: block; font-size: 1.0625rem; margin-bottom: 2px; }
.case-d { display: block; color: var(--muted); font-size: .9375rem; }

/* Tarifs */
.signup-note { max-width: 720px; margin: calc(-1 * var(--s5)) auto var(--s6); text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; margin-bottom: var(--s5); }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--r-xl); padding: var(--s6) var(--s5) var(--s5); border: 2px solid transparent; }
.plan-hl { background: var(--accent); border-color: var(--accent); }
.plan-hl .plan-tag, .plan-hl .price-alt, .plan-hl .price-period { color: var(--text-2); }
.plan-hl .price { border-bottom-color: rgba(20, 20, 15, .2); }
.plan-hl .btn { background: var(--text); color: var(--bg-alt); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: var(--r-pill); background: var(--text); color: var(--accent); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: var(--s1); }
.plan-tag { color: var(--muted); font-size: .9375rem; margin: 0; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px var(--s2); margin: var(--s5) 0; padding-bottom: var(--s5); border-bottom: 1px solid var(--hairline-soft); }
.price-main { font-size: 2.75rem; font-weight: 500; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-alt { color: var(--muted); font-weight: 500; }
.price-period { color: var(--muted); font-size: .9375rem; flex-basis: 100%; }
.plan-list { list-style: none; padding: 0; margin: 0 0 var(--s6); flex: 1; }
.plan-list li { display: flex; gap: var(--s2); align-items: flex-start; padding: 6px 0; font-size: .9375rem; }
.plan-list .tick { margin-top: 2px; }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 44px; padding: var(--s5) 0; font-size: 1.1875rem; font-weight: 500; letter-spacing: -.015em; border-radius: var(--r-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 1.75px solid var(--muted); border-bottom: 1.75px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq details p { margin: calc(-1 * var(--s2)) 0 var(--s5); padding-right: var(--s6); color: var(--text-2); font-size: 1.0625rem; line-height: 1.55; }

/* Appel final : bande lime */
.section.final { background: var(--accent); }
.final .lead { color: var(--text-2); }
.final .btn:not(.secondary) { background: var(--text); color: var(--bg-alt); }
.final .btn.secondary { box-shadow: inset 0 0 0 1px var(--text); }
.final-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--text); color: var(--accent); margin-bottom: var(--s5); }
.final .lead { margin: var(--s4) 0 0; }
.final .hero-cta { margin-bottom: 0; }

/* ─── Pied de page ──────────────────────────────────────── */
.pub-footer { background: var(--text); color: var(--bg-alt); padding: var(--s8) 0 var(--s6); font-size: .875rem; }
.pub-footer .muted, .pub-footer p { color: #b9b9b0; }
.pub-footer .caption { color: var(--hairline); }
.pub-footer a { color: var(--bg-alt); }
.pub-footer .pub-brand { color: var(--bg-alt); }
.pub-footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); }
.pub-footer-brand p { margin: var(--s3) 0 0; }
.pub-footer-col { display: flex; flex-direction: column; gap: var(--s2); }
.pub-footer-col .caption { margin: 0 0 var(--s1); }
.pub-footer-col a { color: var(--bg-alt); text-decoration: none; }
.pub-footer-col a:hover { text-decoration: underline; }
.pub-copy { margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 1px solid var(--island); }

/* ─── Pages légales ─────────────────────────────────────── */
.legal-head { background: var(--bg-alt); border-bottom: 1px solid var(--hairline); padding: var(--s7) 0 var(--s6); }
.legal-head h1 { margin-bottom: var(--s2); }
.legal-head p { margin: 0; }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: var(--s7); justify-content: center; padding-top: var(--s7); padding-bottom: var(--s8); }
.legal-grid.no-toc { grid-template-columns: minmax(0, 720px); }
.legal-head-in { max-width: calc(220px + 720px + var(--s7) + 2 * var(--s4)); }
.toc { position: sticky; top: 76px; align-self: start; }
.toc .caption { margin: 0 0 var(--s3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline-soft); }
.toc li a { text-decoration: none; display: block; padding: 5px 0 5px var(--s4); margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); font-size: .875rem; line-height: 1.35; }
.toc li a:hover { color: var(--text); border-left-color: var(--text); text-decoration: none; }
.legal-body { font-size: 1.0625rem; line-height: 1.65; color: var(--text); min-width: 0; }
.legal-body > p:first-child { font-size: 1.1875rem; color: var(--text-2); }
.legal-body h2 { font-size: 1.5rem; margin: 2em 0 .6em; padding-top: var(--s2); }
.legal-body h3 { font-size: 1.125rem; margin: 1.6em 0 .5em; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin-bottom: var(--s2); }
.legal-body li::marker { color: var(--muted); }
.legal-body code { font-size: .8em; word-break: normal; overflow-wrap: anywhere; }
.legal-status { margin: 0 0 var(--s6); }
.legal-status p { margin-bottom: 6px; }
.legal-status p:last-child { margin-bottom: 0; }

[dir="rtl"], [lang="ar"] { unicode-bidi: isolate; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1000px) {
  .legal-grid { grid-template-columns: minmax(0, 720px); gap: var(--s6); }
  .toc { position: static; background: var(--bg-alt); border-radius: var(--r-lg); padding: var(--s5); }
  .toc ol { border-left: 0; }
  .toc li a { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .features, .plans, .steps { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .plans { max-width: 560px; margin-left: auto; margin-right: auto; grid-template-columns: 1fr; }
  .pub-footer-in { grid-template-columns: 1fr 1fr; }
  .pub-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pub-nav { display: none; }
  .pub-header-in { justify-content: space-between; }
  .stats-in { grid-template-columns: 1fr; }
  .stat-item { padding: var(--s5) var(--s4); }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid var(--hairline-soft); }
}
@media (max-width: 640px) {
  .hero { padding-top: var(--s7); }
  .section { padding: var(--s7) 0; }
  .section-head { margin-bottom: var(--s6); }
  .features, .steps { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .case { flex-direction: row; }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .toast { right: 0; top: -1em; }
  .lead { font-size: 1.125rem; }
  .faq summary { font-size: 1.0625rem; }
  .faq details p { padding-right: 0; font-size: 1rem; }
  .legal-head { padding: var(--s6) 0 var(--s5); }
  .legal-grid { padding-top: var(--s6); }
  .legal-body { font-size: 1rem; }
  .legal-body > p:first-child { font-size: 1.0625rem; }
}
@media (max-width: 380px) {
  .pub-actions { gap: var(--s3); }
  .pub-login { font-size: .8125rem; }
}

/* Signaler un abus : champ piège invisible pour les robots, formulaire. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.report-form { max-width: 560px; }
.report-form textarea { width: 100%; }
