/*
  JADE Resto (page temporaire, 04/11/2026). Charte à jour (refonte Claude Design, jade-resto-tokens.css) :
  Baloo 2 (titres, montants) + Plus Jakarta Sans (texte), vert JADE #0A7A55, vert profond #0B2E28, fond #F6FAF8.
  Logo à jour : « JadeLogoV2 », piste e5 (le J avec sa pierre #00A676 ; le J en #0B2E28 sur fond clair, en blanc sur fond foncé).
  Partagé par /resto/ (français) et /resto/en/ (anglais).
*/
:root {
  --brand: #0a7a55;
  --brand-soft: #e6f2ec;
  --brand-ink: #0b5e43;
  --gem: #00a676;
  --deep: #0b2e28;
  --deep-2: #0f3a32;
  --bg: #f6faf8;
  --surface: #ffffff;
  --ink: #14201a;
  --muted: #56675e;
  --line: #e1e8e4;
  --line-strong: #c9d4ce;
  --soft: #f1f5f3;
  --on-deep: #eef4f0;
  --on-deep-dim: #b9cdc4;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --r: 18px;
  --shadow: 0 10px 28px rgba(20, 32, 26, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--gem); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 17px; color: var(--muted); max-width: 640px; margin-top: 16px; }

/* Logo à jour (piste e5) */
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.brand svg { display: block; flex: none; }
.brand .word { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: .02em; line-height: 1; color: var(--deep); padding-top: 3px; }
.on-deep .brand .word { color: #fff; }

/* Boutons (48 px minimum) ; un seul appel principal : WhatsApp. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 18px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero .btn-primary { background: var(--gem); color: var(--deep); }
.hero .btn-primary:hover { filter: brightness(1.08); }
.hero .btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* En-tête : fond clair, logo duo */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.offers { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.offers a { min-height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); }
.offers a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20,32,26,.12); }
.site-header nav.sections { display: none; gap: 24px; margin-left: auto; }
.site-header nav.sections a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.site-header nav.sections a:hover { color: var(--ink); }
.lang { margin-left: auto; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; color: var(--ink); }
.lang:hover { border-color: var(--brand); color: var(--brand); }
.site-header .btn { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 14px; display: none; }
@media (max-width: 400px) { .offers a { padding: 0 9px; } .brand .word { font-size: 22px; } }
@media (min-width: 960px) { .site-header nav.sections { display: flex; } .lang { margin-left: 8px; } .site-header .btn { display: inline-flex; } }

/* Ouverture : vert profond */
.hero { background: var(--deep); color: #fff; padding: 48px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .hero { padding-top: 80px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.hero .eyebrow { color: #6ee7b0; }
.hero h1 em { font-style: normal; color: #6ee7b0; }
.hero .lead { color: var(--on-deep-dim); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--on-deep-dim); font-size: 14px; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6ee7b0; }
.trust { display: flex; align-items: center; gap: 10px; margin: 26px 0 48px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; font-size: 13px; color: var(--on-deep-dim); max-width: 520px; }
.trust svg { flex: none; width: 22px; height: 22px; color: #6ee7b0; }
.trust b { color: #fff; font-weight: 700; }
.phone { position: relative; width: min(300px, 78vw); margin: 0 auto; border-radius: 40px 40px 0 0; padding: 12px 12px 0; background: var(--deep-2); box-shadow: 0 -10px 60px rgba(0,0,0,.35); }
.phone img { border-radius: 30px 30px 0 0; width: 100%; height: auto; aspect-ratio: 560 / 1212; object-fit: cover; object-position: top; max-height: 520px; }
.phone .tag { position: absolute; left: -14px; top: 62%; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); max-width: 190px; line-height: 1.35; }
.phone .tag b { display: block; color: var(--brand); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 380px) { .phone .tag { display: none; } }

/* Cartes */
.grid3 { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.alt .card { background: var(--bg); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin-top: 8px; }

/* Étapes du client */
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 36px; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 22px 76px; position: relative; min-height: 96px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 20px/42px var(--font-display); text-align: center; }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Visite des écrans (onglets) */
.tabs { display: flex; gap: 8px; margin-top: 30px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font: 700 15px var(--font-sans); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel { display: grid; gap: 28px; margin-top: 28px; align-items: start; }
.panel[hidden] { display: none; }
@media (min-width: 900px) { .panel { grid-template-columns: .9fr 1.1fr; gap: 48px; } .panel.wide { grid-template-columns: 1fr; } }
.panel ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.panel li { display: flex; gap: 12px; color: var(--muted); }
.panel li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.panel li b { color: var(--ink); }
.shot { background: var(--soft); border-radius: 24px; padding: 20px; display: flex; justify-content: center; }
.shot img { border-radius: 22px; box-shadow: var(--shadow); width: auto; height: auto; max-width: 100%; max-height: 560px; }
.shot.land img { border-radius: 14px; width: 100%; max-height: none; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Honnêteté */
.honest { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 760px) { .honest { grid-template-columns: repeat(3, 1fr); } }
.honest div { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 20px; background: var(--surface); }
.honest b { display: block; margin-bottom: 6px; }
.honest p { color: var(--muted); font-size: 15px; }

/* Prix et calcul */
.price-card { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 28px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .price-card { grid-template-columns: 1fr 1fr; padding: 40px; gap: 48px; } }
.amount { font: 800 clamp(44px, 9vw, 64px)/1 var(--font-display); color: var(--brand); }
.amount small { display: block; margin-top: 10px; font: 700 16px var(--font-sans); color: var(--muted); }
.pill { display: inline-flex; margin: 16px 6px 0 0; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; align-content: start; }
.price-card li { display: flex; gap: 12px; }
.price-card li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.calc { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bg); }
.calc label { display: block; font-weight: 700; margin-bottom: 10px; }
.calc .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.calc input { width: 160px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 700 18px var(--font-sans); padding: 0 14px; }
.calc input:focus { outline: 3px solid var(--gem); outline-offset: 1px; }
.calc .unit { color: var(--muted); font-weight: 700; }
.calc output { display: block; margin-top: 14px; font-size: 17px; min-height: 27px; }
.calc output b { color: var(--brand); }
.calc small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* Questions */
.faq { max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; }
summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; position: relative; min-height: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { padding: 0 20px 18px; color: var(--muted); }

/* Fin et pied de page (vert profond, logo en négatif) */
.final { text-align: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.site-footer { background: var(--deep); color: var(--on-deep-dim); padding: 40px 0 120px; font-size: 14px; }
@media (min-width: 960px) { .site-footer { padding-bottom: 48px; } }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer .foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }

/* Barre WhatsApp collée en bas (téléphone) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(246,250,248,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; }
.sticky.on { transform: none; }
.sticky .btn { width: 100%; }
@media (min-width: 960px) { .sticky { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ------------------------------------------------------------------
   Mouvement (04/11 soir, demande du fondateur : « trop figé »).
   Uniquement transform et opacity ; tout est coupé si le téléphone demande moins d'animations.
   Sans JavaScript, rien n'est caché (la classe .js est posée par le script en tête de page).
------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes shine { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }

/* Apparition au défilement, en cascade */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Ouverture : le titre monte, le téléphone flotte, une lueur respire derrière */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,166,118,.35), transparent 70%); animation: glow 7s ease-in-out infinite; }
.hero .eyebrow, .hero h1, .hero .lead, .hero .cta, .hero .facts, .hero .trust { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 { animation-delay: .08s; } .hero .lead { animation-delay: .18s; } .hero .cta { animation-delay: .28s; } .hero .facts { animation-delay: .38s; } .hero .trust { animation-delay: .46s; }
.phone { animation: rise 1s .2s cubic-bezier(.2,.8,.2,1) both; }
.phone-inner { position: relative; animation: float 6s 1.2s ease-in-out infinite; }

/* Le service en direct : des notifications qui défilent sur le téléphone */
.live { position: absolute; left: -18px; right: -18px; top: 46%; height: 132px; pointer-events: none; }
.live .note-chip { position: absolute; left: 0; display: flex; align-items: center; gap: 10px; max-width: 250px; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 14px 34px rgba(0,0,0,.28); font-size: 13px; font-weight: 700; line-height: 1.3; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); }
.live .note-chip:nth-child(even) { left: auto; right: 0; }
.live .note-chip.on { opacity: 1; transform: none; }
.live .note-chip.off { opacity: 0; transform: translateY(-14px) scale(.96); }
.note-chip i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 17px; background: var(--brand-soft); }
.note-chip small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 480px) { .live { left: -6px; right: -6px; top: 40%; } .live .note-chip { max-width: 225px; font-size: 12.5px; } }
@media (max-width: 330px) { .live { display: none; } }

/* Bouton principal : un reflet passe de temps en temps */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-20deg); animation: shine 5.5s 2s ease-in-out infinite; pointer-events: none; }
.btn { transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.97); }

/* Bandeau des établissements qui défile */
.ticker { background: var(--brand); color: #fff; overflow: hidden; white-space: nowrap; padding: 14px 0; font: 800 20px/1 var(--font-display); }
.ticker .track { display: inline-flex; gap: 40px; padding-right: 40px; animation: marquee 28s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 40px; }
.ticker span::after { content: '◆'; font-size: 12px; color: #6ee7b0; }

/* Cartes vivantes */
.card, .steps li, .honest div, details { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
@media (hover: hover) {
  .card:hover, .steps li:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
  .card:hover .ico { transform: rotate(-8deg) scale(1.08); }
  details:hover { border-color: var(--line-strong); }
}
.card .ico { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.steps li.in::before { animation: pop .6s calc(var(--i, 0) * 120ms + .2s) both; }
.steps li::after { content: ''; position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; }
.steps li.in::after { animation: ping 1.6s calc(var(--i, 0) * 120ms + .5s) ease-out 2; }

/* Écrans : changement d'onglet en fondu, barre de défilement automatique */
.panel:not([hidden]) > * { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.panel:not([hidden]) > *:nth-child(2) { animation-delay: .08s; }
.tabs button { position: relative; overflow: hidden; transition: background .2s, color .2s, border-color .2s; }
.tabs button .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #6ee7b0; transform-origin: left; transform: scaleX(0); }
.tabs.auto button[aria-selected='true'] .bar { animation: fill var(--tab-ms, 6000ms) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Prix : le montant compte, le résultat du calcul s'allume */
.calc output b { display: inline-block; }
.calc output.flash b { animation: pop .45s cubic-bezier(.2,.8,.2,1); }
details[open] p { animation: rise .35s cubic-bezier(.2,.8,.2,1); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero *, .phone, .phone-inner, .btn-primary::after, .ticker .track, .steps li::before, .steps li::after, .panel > *, .tabs button .bar, .calc output b, details p { animation: none !important; }
  .live .note-chip { transition: none; }
}
