/* =====================================================================
   Page de présentation BookyChat (bookychat.com) — voir DESIGN.md
   Calme et pro, couleur lagon, toujours en blanc. Boutons noirs avec
   flèche (style 3, page de présentation).
   ===================================================================== */
:root {
  --k: #0D4F6B; --k-hi: #0A4058; --k-soft: #EAF3F5; --k-clair: #9FD3E3; --corail: #E86F51;
  --ink: #16202A; --muted: #5B6672; --line: #DCE3E8; --bg: #FFFFFF; --doux: #F6F8F9; --ok: #1F7A4A;
  --titre: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --texte: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--texte); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--k); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--k); outline-offset: 3px; border-radius: 6px; }
.cadre { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.saut { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.saut:focus { left: 12px; }
section { padding-block: 88px; scroll-margin-top: 72px; }   /* l'en-tête collant ne cache pas les titres */

/* boutons : style 3, noir avec flèche (assorti au logo) */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s; }
.bouton:hover { background: #2B3744; }
.fleche { display: inline-grid; place-items: center; transition: transform .2s; }
.bouton:hover .fleche { transform: translateX(3px); }
.fleche svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bouton-petit { height: 42px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
.bouton-plein { width: 100%; }
.bouton-blanc { background: #fff; color: var(--ink); }
.bouton-blanc:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.lien-fort { font-weight: 600; text-underline-offset: 4px; }

/* en-tête */
.tete { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top); }
.tete-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--titre); font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.logo b { font-weight: 700; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--k); }
.burger { display: none; }
@media (max-width: 860px) {
  .tete-cta { display: none; }
  .burger { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
  .burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left)) 16px; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--doux); }
}

/* ouverture */
.hero { padding-block: 56px 88px; }
.hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.1fr .9fr; } .hero { padding-block: 72px 104px; } }
.sur { font-size: 13.5px; font-weight: 700; color: var(--k); letter-spacing: .02em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); letter-spacing: -.035em; line-height: 1.02; }
.hero h1 span { display: block; color: var(--k); }
.hero-sous { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-visuel { position: relative; background: var(--k); border-radius: 24px; padding: 36px 28px 30px; display: flex; flex-direction: column; min-width: 0; }

/* aperçus de l'app */
.ap-agenda, .ap-chat { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px 8px; min-width: 0; }
.ap-titre { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ap-titre span { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.ap-agenda ul { list-style: none; margin: 0; padding: 0; }
.ap-agenda li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #EEF2F4; font-size: 13px; color: var(--muted); }
.ap-agenda li:first-child { border-top: 0; }
.ap-h { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); width: 58px; flex: none; }
.ap-n { flex: 1; min-width: 0; }
.ap-n strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.ap-ok { width: 24px; height: 24px; border-radius: 50%; background: #E6F4EC; color: var(--ok); display: grid; place-items: center; flex: none; }
.ap-ok svg, .ap-pay-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ap-att { font-size: 11.5px; font-weight: 600; color: #fff; background: var(--k); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.ap-bulle { align-self: flex-end; margin-top: -18px; max-width: 280px; background: #DCF8C6; color: #1B2A1F; border-radius: 14px 14px 4px 14px; padding: 12px 14px 8px; font-size: 13.5px; line-height: 1.45; position: relative; }
.ap-h2 { display: block; text-align: right; font-size: 11px; color: #5D6B60; margin-top: 4px; }
.ap-pay { align-self: flex-start; margin: -10px 0 0 18px; position: relative; display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.ap-pay-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--corail); color: #fff; display: grid; place-items: center; flex: none; }
.ap-chat { background: #EFE7DD; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ap-chat-tete { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.ap-av { width: 26px; height: 26px; border-radius: 50%; background: var(--k); color: #fff; font-size: 10px; display: grid; place-items: center; }
.ap-b { max-width: 84%; padding: 8px 11px 6px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.ap-b.moi { align-self: flex-end; background: #DCF8C6; border-top-right-radius: 3px; }
.ap-b.elle { align-self: flex-start; background: #fff; border-top-left-radius: 3px; min-width: 70px; }
.ap-fac { padding-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.ap-l { display: flex; justify-content: space-between; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ap-m { color: var(--muted); }
.ap-t { border-top: 1px solid #EEF2F4; padding-top: 10px; font-weight: 700; font-size: 15px; }
.ap-wa { align-self: flex-start; background: #1f8f4e; color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 7px 11px; margin-top: 4px; }

/* pour qui */
.pourqui { padding-block: 0 72px; }
.petit-titre { font-size: 15px; font-family: var(--texte); font-weight: 700; letter-spacing: 0; color: var(--muted); }
.metiers { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.metiers li { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; }
.pourqui-note { margin-top: 20px; color: var(--muted); max-width: 720px; }

/* étapes */
.etapes { background: var(--doux); }
.etapes-liste { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 860px) { .etapes-liste { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.etapes-liste li { display: flex; flex-direction: column; gap: 10px; }
.num { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--k); color: var(--k); display: grid; place-items: center; font-weight: 700; font-family: var(--titre); }
.etapes-liste p { color: var(--muted); }

/* fonctionnalités */
.fonctions h2 { max-width: 620px; }
.fo { display: grid; gap: 32px; align-items: center; margin-top: 64px; }
@media (min-width: 900px) { .fo { grid-template-columns: 1fr 1fr; gap: 72px; } .fo.inverse .fo-txt { order: 2; } }
.fo-txt { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.fo-txt > p { color: var(--muted); font-size: 17px; }
.fo-visuel { background: var(--k); border-radius: 24px; padding: 32px; min-width: 0; }
.coches { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.coches li { position: relative; padding-left: 28px; font-size: 15px; }
.coches li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #E6F4EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10 16.5 18 8' fill='none' stroke='%231F7A4A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.bientot { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; color: #8A4B10; background: #FDF0DC; border-radius: 99px; padding: 1px 8px; vertical-align: 1px; }

/* fait pour Maurice */
.local { background: var(--k); color: #fff; }
.local-in { display: grid; gap: 36px; }
@media (min-width: 900px) { .local-in { grid-template-columns: .8fr 1.2fr; align-items: center; } }
.local p { color: rgba(255, 255, 255, .8); margin-top: 14px; font-size: 17px; }
.local-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.local-liste li { border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 16px 18px; color: rgba(255, 255, 255, .78); font-size: 14px; }
.local-liste strong { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }

/* tout inclus */
.inclus-in { max-width: 760px; }
.inclus p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* tarifs */
.tarifs { background: var(--doux); }
.ta-sous { margin-top: 12px; color: var(--muted); font-size: 17px; }
.ta-cartes { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 820px) { .ta-cartes { grid-template-columns: 1fr 1fr; max-width: 900px; } }
.ta { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.ta-fort { border-color: var(--k); box-shadow: 0 0 0 1px var(--k) inset; }
.ta h3 { font-size: 24px; }
.ta-pour { margin-top: -10px; color: var(--muted); font-size: 14.5px; }
.ta-prix { display: flex; align-items: baseline; gap: 4px; font-family: var(--titre); font-size: 48px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ta-prix .rs { font-size: 22px; }
.ta-prix .mois { font-family: var(--texte); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.ta-an { margin-top: -8px; font-size: 14px; color: var(--muted); }
.ta-quota { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ta-quota p { font-size: 15px; }
.ta-quota strong { font-family: var(--titre); font-size: 26px; margin-right: 4px; }
.ta-quota small { color: var(--muted); font-size: 13px; }
.ta-note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 900px; }

/* questions */
.questions-in { max-width: 820px; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--k); border-bottom: 2px solid var(--k); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* dernier appel */
.final { background: var(--ink); color: #fff; text-align: left; }
.final-in { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.final h2 { max-width: 720px; font-size: clamp(30px, 4.5vw, 46px); }
.final p { color: rgba(255, 255, 255, .75); }
.final a:not(.bouton) { color: #fff; text-decoration: underline; }

/* pied de page */
.pied { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom)); }
.pied-in { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.pied a { color: var(--muted); }
.pied b { color: var(--ink); }

@media (max-width: 520px) {
  section { padding-block: 64px; }
  .hero-visuel { padding: 24px 16px 20px; }
  .fo-visuel { padding: 18px; }
  .ap-bulle { max-width: 88%; }
  .ta { padding: 22px; }
}

/* ---------- accueil : téléphone avec conversations WhatsApp animées ---------- */
.tel-scene { background: #fff; padding: 40px 16px 30px; align-items: center; overflow: hidden; }
.tel { width: 100%; max-width: 300px; background: #16202A; border-radius: 44px; padding: 10px; position: relative; }
.tel-ecran { background: #EFE7DD; border-radius: 35px; height: 540px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.tel-encoche { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #16202A; z-index: 2; }
.wa-tete { display: flex; align-items: center; gap: 9px; padding: 42px 14px 11px 8px; background: #fff; border-bottom: 1px solid #E5E0D8; }
.wa-retour { width: 20px; height: 20px; fill: none; stroke: #16202A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; background: var(--k); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; transition: background .3s; }
.wa-qui { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wa-qui strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-qui span { font-size: 11.5px; color: var(--muted); }
.wa-fil { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px 10px 8px; overflow: hidden; }
.wa-b { max-width: 82%; padding: 7px 10px 5px; border-radius: 10px; font-size: 13px; line-height: 1.42; color: #1B2A1F; position: relative; animation: wa-entre .32s cubic-bezier(.2,.8,.3,1) both; }
.wa-b.pro { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.wa-b.cli { align-self: flex-end; background: #DCF8C6; border-top-right-radius: 3px; }
.wa-b small { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 10.5px; color: #6B776E; margin-top: 2px; }
.wa-b small svg { width: 15px; height: 11px; fill: none; stroke: var(--k); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-b .wa-lien { display: block; margin-top: 4px; color: var(--k); font-weight: 600; text-decoration: underline; }
.wa-b.carte { padding: 0; overflow: hidden; width: 82%; }
.wa-carte-h { background: var(--k); color: #fff; font-size: 12px; font-weight: 700; padding: 9px 11px; display: flex; justify-content: space-between; }
.wa-carte-c { padding: 8px 11px 5px; }
.wa-ecrit { align-self: flex-start; background: #fff; border-radius: 10px; border-top-left-radius: 3px; padding: 11px 12px; display: flex; gap: 4px; animation: wa-entre .25s both; }
.wa-ecrit.cli { align-self: flex-end; background: #DCF8C6; border-radius: 10px; border-top-right-radius: 3px; }
.wa-ecrit i { width: 6px; height: 6px; border-radius: 50%; background: #8A958D; animation: wa-point 1s infinite; }
.wa-ecrit i:nth-child(2) { animation-delay: .15s; } .wa-ecrit i:nth-child(3) { animation-delay: .3s; }
.wa-saisie { display: flex; align-items: center; gap: 8px; padding: 8px 10px 16px; }
.wa-saisie span { flex: 1; background: #fff; border-radius: 20px; padding: 8px 14px; font-size: 13px; color: #8A958D; }
.wa-saisie i { width: 34px; height: 34px; border-radius: 50%; background: #1f8f4e; flex: none; }
.wa-fil.sort { animation: wa-sort .35s ease both; }

.badge { position: absolute; display: inline-flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 10px 10px; font-weight: 700; font-size: 14.5px; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.3,1); z-index: 3; }
.badge.on { opacity: 1; transform: none; }
.badge-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.badge-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge-a { top: 26%; left: 4%; }
.badge-b { bottom: 17%; right: 4%; }
.tel-points { display: flex; gap: 6px; margin-top: 18px; }
.tel-points i { width: 7px; height: 7px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--k); transition: background .3s, width .3s; }
.tel-points i.on { background: var(--k); width: 20px; border-radius: 4px; }

@keyframes wa-entre { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wa-point { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes wa-sort { to { opacity: 0; transform: translateY(-10px); } }
@media (min-width: 960px) { .badge-a { left: -4%; } .badge-b { right: -4%; } .tel-scene { overflow: visible; } }
@media (max-width: 520px) { .tel-ecran { height: 500px; } .badge { font-size: 13px; padding: 8px 12px 8px 8px; } .badge-ico { width: 30px; height: 30px; } .badge-a { left: 2%; top: 22%; } .badge-b { right: 2%; } }
@media (prefers-reduced-motion: reduce) { .wa-b, .wa-ecrit, .wa-fil.sort { animation: none; } .badge { transition: none; } }

.ta-periode { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ta-periode button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 16px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.ta-periode button span { font-size: 12px; font-weight: 700; color: var(--k); }
.ta-periode button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ta-periode button[aria-pressed="true"] span { color: #fff; }
.ta-periode + .ta-cartes { margin-top: 20px; }
