/* Avis Facile — feuille de style commune (app + landing) */
:root{
  --bg:#EDEBE6; --bg-content:#FBFAF6; --surface:#FFFDF9;
  --border:#E4E1D9; --border-soft:#EDEBE6; --border-strong:#DDD9CF;
  --ink:#14170F; --ink-2:#4A4C42; --muted:#7C7869; --faint:#9A9689;
  --green:#1B5E43; --green-dark:#12402E; --green-soft:#EEF3EF; --green-text:#4E7A5F; --green-pale:#9CBFAB;
  --gold:#F5C451; --gold-soft:#FBF3E2; --gold-text:#8A6A16; --gold-strong:#B0721A;
  --dark:#14170F; --dark-2:#1F231A; --dark-3:#262B20; --dark-4:#2E332A; --dark-5:#3A4034;
  --r-sm:8px; --r-md:10px; --r-lg:14px; --r-xl:18px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg-content);font-family:"Instrument Sans",system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
a{color:var(--green);text-decoration:none}
a:hover{color:var(--green-dark)}
input,button,select,textarea{font:inherit;color:inherit}
::placeholder{color:var(--faint)}
h1,h2,h3{margin:0}
.serif{font-family:"Instrument Serif",serif;letter-spacing:-.01em}

/* ---------- Shell application ---------- */
.app{display:flex;min-height:100vh;background:var(--bg-content)}
.sidebar{width:232px;flex-shrink:0;background:var(--dark);color:#E9E7E0;padding:22px 14px;display:flex;flex-direction:column;gap:24px}
.sidebar__brand{display:flex;align-items:center;gap:10px;padding:0 10px;font-size:15px;font-weight:600}
.badge-square{width:30px;height:30px;border-radius:9px;background:var(--green);display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--surface)}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{display:flex;align-items:center;gap:10px;border-radius:9px;padding:11px 12px;font-size:14px;color:#B9B5A9;transition:background .12s ease}
.nav a:hover{background:var(--dark-2);color:#E9E7E0}
.nav a.is-active{background:var(--dark-3);color:var(--surface)}
.nav .count{margin-left:auto;font-size:11px;background:var(--dark-5);border-radius:999px;padding:2px 7px;color:#E9E7E0}
.credits{margin:0 6px;padding:14px;border-radius:12px;background:var(--dark-2);color:#E9E7E0;display:block}
.credits__row{display:flex;justify-content:space-between;font-size:12px;color:var(--faint)}
.credits__track{height:5px;border-radius:3px;background:var(--dark-4);margin-top:10px;overflow:hidden}
.credits__fill{height:100%;background:var(--gold)}
.account{display:flex;align-items:center;gap:10px;padding:0 10px}
.avatar{width:30px;height:30px;border-radius:999px;background:var(--green);color:var(--surface);display:grid;place-items:center;font-size:12px;flex-shrink:0}
.account__name{font-size:13px}
.account__company{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.main{flex:1;min-width:0;padding:28px 32px 48px}
.page-eyebrow{font-size:13px;color:var(--muted)}
.page-title{font-family:"Instrument Serif",serif;font-size:34px;line-height:1.15}

/* ---------- Blocs communs ---------- */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:22px}
.card--dark{background:var(--dark);color:#F3F1EA;border:none}
.grid{display:grid;gap:16px}
.grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.stack{display:flex;flex-direction:column;gap:20px}
.row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.spacer{flex:1}
.section-title{font-size:15px;font-weight:600}
.muted{color:var(--muted)}
.small{font-size:13px}
.tiny{font-size:12px}

.btn{border:none;border-radius:var(--r-md);padding:13px 20px;font-size:15px;font-weight:600;cursor:pointer;display:inline-block;text-align:center}
.btn--primary{background:var(--green);color:var(--surface)}
.btn--primary:hover{background:var(--green-dark);color:var(--surface)}
.btn--ghost{background:transparent;border:1px solid var(--border);color:var(--ink)}
.btn--ghost:hover{background:#F3F1EA}
.btn--quiet{background:var(--border-soft);color:var(--faint);cursor:default}
.btn--sm{padding:9px 14px;font-size:13px}
.tag{font-size:11px;font-weight:600;padding:4px 10px;border-radius:999px}
.tag--green{background:var(--green-soft);color:var(--green)}
.tag--gold{background:var(--gold-soft);color:var(--gold-text)}
.notice{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--r-md);background:var(--gold-soft);font-size:13px}
.notice__mark{color:var(--gold-strong)}
.meter{height:10px;border-radius:5px;background:var(--border-soft);margin-top:8px;overflow:hidden}
.meter__fill{height:100%;background:var(--green);transition:width .3s ease}
.meter__fill--warn{background:var(--gold)}
.meter__fill--pale{background:var(--green-pale)}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label{font-size:12px;color:var(--muted)}
.field input,.field select,.field textarea{border:1px solid var(--border);border-radius:var(--r-md);padding:11px 12px;font-size:14px;background:var(--bg-content);width:100%}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);outline:none}
.field--full{grid-column:span 2}
.switch{display:flex;gap:4px;background:var(--border-soft);padding:4px;border-radius:999px}
.switch a,.switch button{border:none;background:transparent;border-radius:999px;padding:9px 15px;font-size:13px;font-weight:600;color:#5C5A50;cursor:pointer}
.switch .is-active{background:var(--dark);color:var(--surface)}

/* ---------- KPI ---------- */
.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;transition:transform .15s ease,box-shadow .15s ease}
.kpi:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(20,23,15,.07)}
.kpi__label{font-size:13px;color:var(--muted)}
.kpi__value{font-size:38px;letter-spacing:-.03em;line-height:1;margin-top:10px}
.kpi__star{color:var(--gold);font-size:22px;margin-left:6px}
.kpi__sub{font-size:13px;color:var(--muted);margin-top:8px}
.kpi__sub--warn{color:var(--gold-strong)}

/* ---------- Graphique 12 mois ---------- */
.chart{display:flex;align-items:flex-end;gap:8px;height:210px;margin-top:22px}
.chart__col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;height:100%;justify-content:flex-end}
.chart__count{font-size:12px;font-weight:600;opacity:.35;transition:opacity .15s ease}
.chart__bar{width:100%;border-radius:6px 6px 3px 3px;background:var(--green);transition:background .15s ease}
.chart__bar--empty{background:#DFDCD3}
.chart__month{font-size:11px;color:var(--faint)}
.chart__col:hover .chart__count{opacity:1}
.chart__col:hover .chart__bar{background:var(--dark)}
.chart__col:hover .chart__month{color:var(--ink)}
.chart__note{margin-top:18px;padding-top:16px;border-top:1px solid var(--border-soft);font-size:13px;color:var(--muted)}

/* ---------- Avis ---------- */
.review{display:flex;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--border-soft)}
.review__name{font-size:14px;font-weight:600}
.review__stars{color:var(--gold);font-size:12px}
.review__text{font-size:13px;color:var(--ink-2);margin-top:4px;line-height:1.5;text-wrap:pretty}
.review__state{font-size:12px;margin-top:6px;color:var(--gold-strong)}
.review__state--done{color:var(--green-text)}

/* ---------- Plans ---------- */
.plan{display:flex;flex-direction:column;border-radius:12px;padding:22px;background:var(--bg-content);border:1px solid var(--border);min-height:340px}
.plan--current,.plan--featured{border:1.5px solid var(--green)}
.plan__name{font-size:18px;font-weight:600}
.plan__price{font-family:"Instrument Serif",serif;font-size:36px;line-height:1}
.plan__period{font-size:14px;color:var(--muted)}
.plan__target{font-size:13px;color:var(--muted);margin-top:6px}
.plan__features{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-direction:column;gap:9px}
.plan__features li{display:flex;gap:10px;font-size:14px;align-items:flex-start}
.plan__features li::before{content:"✓";color:var(--green)}
.plan__cta{margin-top:20px}

/* ---------- Toasts ---------- */
.toasts{position:fixed;right:24px;bottom:24px;display:flex;flex-direction:column;gap:10px;align-items:flex-end;z-index:50}
.toast{display:flex;align-items:center;gap:10px;background:var(--dark);color:#F3F1EA;border-radius:var(--r-md);padding:13px 16px;font-size:14px;max-width:380px;box-shadow:0 12px 28px rgba(20,23,15,.24);animation:toast-in .22s ease}
.toast__icon{color:var(--gold)}
@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

/* ---------- Visite guidée ---------- */
.tour{position:fixed;inset:0;background:rgba(20,23,15,.55);display:grid;place-items:center;padding:32px;z-index:60}
.tour[hidden]{display:none}
.tour__card{background:var(--surface);border-radius:16px;padding:32px;width:100%;max-width:520px;box-shadow:0 24px 60px rgba(20,23,15,.28)}
.tour__dots{display:flex;align-items:center;gap:8px}
.tour__dot{width:7px;height:7px;border-radius:999px;background:#DFDCD3;transition:width .2s ease}
.tour__dot.is-active{width:22px;background:var(--green)}
.tour__step{font-size:12px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-top:24px}
.tour__title{font-family:"Instrument Serif",serif;font-size:30px;line-height:1.15;margin-top:8px;text-wrap:pretty}
.tour__body{font-size:15px;line-height:1.6;color:var(--ink-2);margin-top:12px;text-wrap:pretty}
.tour__actions{display:flex;align-items:center;gap:12px;margin-top:28px}
.tour__skip{background:transparent;border:none;font-size:13px;color:var(--muted);cursor:pointer;margin-left:auto}

/* ---------- Landing ---------- */
.lp-header{position:sticky;top:0;z-index:10;background:rgba(251,250,246,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.wrap{max-width:1120px;margin:0 auto;padding:0 28px}
.lp-header .wrap{display:flex;align-items:center;gap:16px;padding-top:16px;padding-bottom:16px}
.lp-nav{display:flex;align-items:center;gap:22px}
.lp-nav a{font-size:14px;color:var(--ink-2)}
.lp-nav a.btn--primary{color:var(--surface)}
.lp-nav a.btn--primary:hover{color:var(--surface)}
.lp-footer__links a:hover{color:var(--ink)}
.lp-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:56px;align-items:center;padding:84px 0 72px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;background:var(--green-soft);font-size:13px;color:var(--green)}
.lp-h1{font-family:"Instrument Serif",serif;font-size:62px;line-height:1.05;letter-spacing:-.02em;margin-top:22px;text-wrap:pretty}
.lp-lead{font-size:18px;line-height:1.6;color:var(--ink-2);margin-top:22px;max-width:520px;text-wrap:pretty}
.lp-reassure{display:flex;gap:22px;margin-top:26px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.phone{background:var(--dark-4);border-radius:32px;padding:12px 10px 20px;width:272px}
.phone__notch{height:18px;display:grid;place-items:center}
.phone__notch span{width:62px;height:5px;border-radius:3px;background:#4A5043;display:block}
.phone__screen{background:var(--surface);border-radius:24px;padding:16px 13px;min-height:300px;display:flex;flex-direction:column;gap:11px}
.bubble{background:var(--border-soft);border-radius:15px 15px 15px 4px;padding:12px 14px;font-size:13px;line-height:1.55;text-wrap:pretty}
.bubble--link{align-self:flex-start;background:var(--green-soft);border-radius:4px 15px 15px 15px;padding:11px 14px;font-size:12px;color:var(--green)}
.lp-band{background:var(--dark);color:#F3F1EA}
.lp-band .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding-top:56px;padding-bottom:56px}
.lp-band__num{font-family:"Instrument Serif",serif;font-size:40px;line-height:1}
.lp-band__txt{font-size:14px;color:#B9B5A9;margin-top:10px;line-height:1.55;text-wrap:pretty}
.lp-band div+div{border-left:1px solid var(--dark-4);padding-left:32px}
.lp-section{padding-top:88px}
.lp-eyebrow{font-size:13px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.lp-h2{font-family:"Instrument Serif",serif;font-size:42px;line-height:1.1;margin-top:12px}
.step{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:26px;display:flex;flex-direction:column;gap:12px}
.step__n{width:32px;height:32px;border-radius:999px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-size:14px;font-weight:600}
.step__title{font-size:18px;font-weight:600}
.step__body{font-size:14px;line-height:1.6;color:var(--ink-2);text-wrap:pretty}
.feature{border-top:1px solid var(--border);padding-top:22px}
.feature__title{font-size:17px;font-weight:600}
.feature__body{font-size:14px;line-height:1.6;color:var(--ink-2);margin-top:8px;max-width:460px;text-wrap:pretty}
.faq{border-top:1px solid var(--border);margin-top:32px}
.faq__item{border-bottom:1px solid var(--border)}
.faq__q{width:100%;text-align:left;background:transparent;border:none;cursor:pointer;padding:22px 0;display:flex;align-items:center;gap:16px;font-size:17px;font-weight:600}
.faq__sign{margin-left:auto;font-size:20px;color:var(--muted);transition:transform .18s ease}
.faq__item.is-open .faq__sign{transform:rotate(45deg)}
.faq__a{display:none;font-size:15px;line-height:1.65;color:var(--ink-2);padding:0 60px 24px 0;max-width:760px;text-wrap:pretty}
.faq__item.is-open .faq__a{display:block}
.lp-cta{background:var(--dark);color:#F3F1EA;border-radius:20px;padding:56px 44px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:44px;align-items:center;margin-top:88px}
.lp-cta h2{font-family:"Instrument Serif",serif;font-size:44px;line-height:1.08;text-wrap:pretty}
.lp-cta p{font-size:16px;line-height:1.6;color:#B9B5A9;margin-top:18px;max-width:420px;text-wrap:pretty}
.signup{background:var(--surface);border-radius:16px;padding:26px;display:flex;flex-direction:column;gap:14px}
.signup input{border:1px solid var(--border);border-radius:var(--r-md);padding:14px;font-size:15px;background:var(--bg-content);color:var(--ink)}
.or{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--faint)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--border-soft)}
.lp-footer{border-top:1px solid var(--border);margin-top:64px;padding-top:28px;padding-bottom:56px}
.lp-footer__links{display:flex;gap:22px;font-size:13px;flex-wrap:wrap;margin-left:auto}
.lp-footer__links a{color:var(--muted)}


/* ============================================================
   Tableaux .t-row, modèles, avis, zone de dépôt — DESKTOP
   (le bloc mobile plus bas les transforme en cartes)
   ============================================================ */
.t-table{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden}
.t-head{display:flex;align-items:center;gap:14px;padding:13px 18px;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;background:var(--bg-content);border-bottom:1px solid var(--border)}
.t-row{display:flex;align-items:center;gap:14px;padding:14px 18px;font-size:14px;border-bottom:1px solid var(--border-soft)}
.t-row:last-child{border-bottom:none}
.t-row:hover{background:var(--bg-content)}
.t-row__main{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-cell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2)}
.t-row__action{display:flex;gap:8px;justify-content:flex-end;flex-shrink:0}
.t-row__meta{display:none}
.t-row__ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tag--grey{background:var(--border-soft);color:var(--muted)}
.btn--dark{background:var(--dark);color:var(--surface)}
.btn--dark:hover{background:#000;color:var(--surface)}
.btn--danger{color:#9A3B2F;border-color:#E4D3CF}
.btn--danger:hover{background:#F8EDEB}

.dropzone{border:1.5px dashed #C9C4B6;border-radius:16px;background:var(--surface);padding:44px 24px;text-align:center}
.dropzone__title{font-size:17px;font-weight:600}
.dropzone__body{font-size:14px;color:var(--muted);margin-top:8px;max-width:520px;margin-left:auto;margin-right:auto;line-height:1.55;text-wrap:pretty}
.dropzone__formats{display:flex;gap:8px;justify-content:center;margin-top:16px}
.dropzone__formats span{font-size:12px;color:var(--muted);padding:5px 10px;border-radius:999px;background:var(--border-soft)}

.tpl{display:flex;flex-direction:column;gap:12px}
.tpl__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tpl__name{font-size:16px;font-weight:600}
.tpl__body{font-size:14px;line-height:1.55;color:var(--ink-2);background:var(--bg-content);border:1px solid var(--border-soft);border-radius:var(--r-md);padding:14px;text-wrap:pretty}
.tpl__actions{display:flex;gap:8px;align-items:center}
.tpl__actions form{display:contents}

.filters{display:flex;gap:8px;flex-wrap:wrap}
.filters__chip{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:14px;color:var(--ink)}
.filters__chip span{font-size:12px;color:var(--muted)}
.filters__chip.is-active{background:var(--green);border-color:var(--green);color:var(--surface)}
.filters__chip.is-active span{color:rgba(255,253,249,.75)}

.rv{display:flex;flex-direction:column;gap:12px}
.rv__head{display:flex;align-items:center;gap:12px}
.rv__who{min-width:0}
.rv__author{font-size:15px;font-weight:600}
.rv__meta{display:flex;align-items:center;gap:8px;margin-top:2px}
.rv__state{margin-left:auto;flex-shrink:0}
.rv__text{font-size:14px;line-height:1.6;color:var(--ink);text-wrap:pretty}
.rv__reply{background:var(--bg-content);border:1px solid var(--border-soft);border-radius:var(--r-md);padding:14px}
.rv__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}


/* ============================================================
   Hero vert plein — le premier écran doit avoir du caractère
   ============================================================ */
.lp-hero--dark{background:var(--green);color:#F1F5F2;margin-top:0}
.lp-hero--dark .lp-h1{color:#FFFDF9}
.lp-hero--dark .lp-lead{color:#C9DCD1}
.lp-hero--dark .pill{background:rgba(245,196,81,.16);color:var(--gold)}
.lp-hero--dark .lp-reassure{color:#9FBBAB}
.lp-hero--dark .btn--primary{background:var(--gold);color:#14170F}
.lp-hero--dark .btn--primary:hover{background:#E9B63C;color:#14170F}
.lp-hero--dark .btn--ghost{border-color:rgba(255,253,249,.32);color:#FFFDF9;background:transparent}
.lp-hero--dark .btn--ghost:hover{background:rgba(255,253,249,.1);color:#FFFDF9}
.lp-hero--dark .phone{background:#14170F}
.lp-hero__mock{background:rgba(20,23,15,.28);border:1px solid rgba(255,253,249,.14);border-radius:20px;padding:30px;display:flex;flex-direction:column;align-items:center;gap:16px}
.lp-hero__mocklabel{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:#9FBBAB}
.lp-hero__mockfoot{font-size:13px;color:#C9DCD1;text-align:center;max-width:260px}
.lp-header--onhero{background:var(--green);border-bottom:1px solid rgba(255,253,249,.14)}
.lp-header--onhero .sidebar__brand{color:#FFFDF9}
.lp-header--onhero .lp-nav a:not(.btn){color:#C9DCD1}
.lp-header--onhero .lp-burger{border-color:rgba(255,253,249,.32);color:#FFFDF9}

/* Chiffres : jaune, compacts, alignés sur une ligne */
.lp-band__row{display:flex;align-items:baseline;gap:16px}
.lp-band__num{font-family:"Instrument Serif",serif;font-size:44px;line-height:1;color:var(--gold);flex-shrink:0}
.lp-band__txt{font-size:15px;color:#D6D3CA;line-height:1.5;margin-top:0;text-wrap:pretty}

/* Étapes : pastille pleine, carte plus franche */
.step{border-color:#DDD9CF}
.step__n{background:var(--green);color:var(--surface);width:34px;height:34px;font-size:15px}
.step--dark{background:var(--dark);border-color:var(--dark)}
.step--dark .step__title{color:#FFFDF9}
.step--dark .step__body{color:#B9B5A9}
.step--dark .step__n{background:var(--gold);color:#14170F}



/* ============================================================
   LANDING — registre « grasse géométrique sur fond clair »
   Plus Jakarta Sans en 800 pour les titres, accents en vert,
   phrase d'accroche en italique. Portée : body.landing.
   ============================================================ */
body.landing{font-family:"Plus Jakarta Sans","Instrument Sans",system-ui,sans-serif;background:var(--surface)}
.landing .lp-h1,.landing .lp-h2,.landing .lp-cta h2,.landing .lp-band__num,
.landing .plan__price,.landing .lp-hero__mockfoot strong{font-family:"Plus Jakarta Sans",system-ui,sans-serif}
.landing .lp-h1{font-size:68px;font-weight:800;letter-spacing:-.035em;line-height:1.02;text-align:center;margin:0}
.landing .lp-h2{font-size:46px;font-weight:800;letter-spacing:-.03em;line-height:1.05;text-align:center}
.landing .lp-cta h2{font-size:46px;font-weight:800;letter-spacing:-.03em;line-height:1.06}
.landing .accent{color:var(--green)}
.landing .accent-i{color:var(--green);font-style:italic}
.landing .lp-eyebrow{text-align:center;color:var(--green);font-weight:700;font-size:12px;letter-spacing:.14em}
.landing .lp-lead{font-size:20px;line-height:1.55;color:#5C5F55;text-align:center;max-width:660px;margin:22px auto 0}
.landing .plan__price{font-weight:800;letter-spacing:-.03em}
.landing .step__title,.landing .feature__title,.landing .faq__q,.landing .plan__name{font-weight:700;letter-spacing:-.01em}

/* Hero clair, centré, halo discret en haut */
.lp-hero--light{background:
  radial-gradient(900px 420px at 50% -140px, #E8EFF3 0%, rgba(232,239,243,0) 70%),
  var(--surface)}
.landing .lp-hero{grid-template-columns:minmax(0,1fr);gap:34px;justify-items:center;padding:76px 0 72px;text-align:center}
.landing .lp-hero > div{width:100%}
.landing .lp-hero .pill{margin:0 auto;display:flex;width:fit-content;background:var(--green-soft);color:var(--green);font-weight:600}
.landing .lp-hero .row{justify-content:center;margin-top:30px}
.landing .lp-reassure{justify-content:center}
.landing .lp-hero__mock{background:var(--bg-content);border:1px solid var(--border);max-width:420px;margin:0 auto}
.landing .lp-hero__mocklabel{color:var(--muted)}
.landing .lp-hero__mockfoot{color:var(--ink-2)}
.landing .lp-hero .phone{background:var(--dark)}
.landing .btn--primary{background:var(--green);color:var(--surface);border-radius:12px;font-weight:700}
.landing .btn--primary:hover{background:var(--green-dark);color:var(--surface)}
.landing .btn--ghost{border-color:var(--border-strong);font-weight:600}

/* En-tête clair */
.landing .lp-header{background:rgba(255,253,249,.92);border-bottom:1px solid var(--border)}
.landing .sidebar__brand{color:var(--ink);font-weight:800;font-size:19px;letter-spacing:-.02em}
.landing .lp-nav a:not(.btn){color:#5C5F55;font-weight:500}
.landing .lp-nav a:not(.btn):hover{color:var(--ink)}
.landing .lp-burger{border-color:var(--border);color:var(--ink)}

/* Chiffres sur fond clair, gros et verts */
.landing .lp-band{background:var(--bg-content);border-top:1px solid var(--border);border-bottom:1px solid var(--border);color:var(--ink)}
.landing .lp-band .wrap{padding-top:52px;padding-bottom:52px}
.landing .lp-band__row{flex-direction:column;align-items:flex-start;gap:6px}
.landing .lp-band__num{font-size:60px;font-weight:800;letter-spacing:-.04em;color:var(--green)}
.landing .lp-band__txt{color:#5C5F55;font-size:16px}
.landing .lp-band div+div{border-left:1px solid var(--border);padding-left:32px}

/* Cartes plus franches, ombre douce */
.landing .step,.landing .plan,.landing .signup{border-radius:20px;box-shadow:0 1px 2px rgba(20,23,15,.04)}
.landing .step__n{background:var(--green-soft);color:var(--green);font-weight:800;border-radius:12px}
.landing .step--dark{background:var(--dark)}
.landing .step--dark .step__n{background:var(--gold);color:#14170F}
.landing .faq{border-top-color:var(--border)}
.landing .lp-cta{background:var(--dark)}

/* ============================================================
   ANIMATIONS — landing. Tout est désactivé si l'utilisateur
   a demandé « réduire les animations » (bloc en fin de section).
   ============================================================ */

/* Entrée du hero, en cascade */
@keyframes rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px) scale(.985) } to { opacity: 1; transform: translateY(0) scale(1) } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6) } 60% { transform: scale(1.15) } 100% { opacity: 1; transform: scale(1) } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.96) } to { opacity: 1; transform: translateY(0) scale(1) } }
@keyframes blink { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }
@keyframes shimmer { 0% { transform: translateX(-120%) } 100% { transform: translateX(220%) } }

.anim { opacity: 0; animation: rise .62s cubic-bezier(.2,.7,.3,1) forwards; }
.anim-1 { animation-delay: .05s } .anim-2 { animation-delay: .14s }
.anim-3 { animation-delay: .23s } .anim-4 { animation-delay: .32s }
.anim-5 { animation-delay: .41s } .anim-6 { animation-delay: .50s }

/* Révélation au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s } .reveal-d2 { transition-delay: .16s }
.reveal-d3 { transition-delay: .24s } .reveal-d4 { transition-delay: .32s }

/* Maquette téléphone : le SMS arrive sous les yeux du visiteur */
.phone { animation: riseIn .8s cubic-bezier(.2,.7,.3,1) .3s both; }
.phone__seq > * { opacity: 0; }
.phone__seq.is-playing > * { animation: bubbleIn .5s cubic-bezier(.2,.7,.3,1) forwards; }
.phone__seq.is-playing > *:nth-child(1) { animation-delay: .1s }
.phone__seq.is-playing > *:nth-child(2) { animation-delay: 1.0s }
.phone__seq.is-playing > *:nth-child(3) { animation-delay: 1.9s }
.phone__seq.is-playing > *:nth-child(4) { animation-delay: 2.1s }
.phone__seq.is-playing > *:nth-child(5) { animation-delay: 2.4s }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 5px; height: 5px; border-radius: 999px; background: var(--faint); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s } .typing i:nth-child(3) { animation-delay: .36s }
.stars-fill span { opacity: .18; transition: opacity .28s ease; }
.stars-fill.is-lit span { opacity: 1; }
.stars-fill.is-lit span:nth-child(2) { transition-delay: .12s }
.stars-fill.is-lit span:nth-child(3) { transition-delay: .24s }
.stars-fill.is-lit span:nth-child(4) { transition-delay: .36s }
.stars-fill.is-lit span:nth-child(5) { transition-delay: .48s }

/* Chiffres qui montent */
.lp-band__num { font-variant-numeric: tabular-nums; }

/* Réactions au survol et au toucher */
.step, .kpi, .plan, .card { transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease; }
.step:hover, .plan:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,23,15,.08); }
.btn { transition: transform .12s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.btn:active { transform: scale(.975); }
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-120%);
}
.btn--primary:hover::after { animation: shimmer 1s ease; }
.filters__chip, .faq__q, .tabbar a { transition: background .16s ease, color .16s ease; }
.t-row { transition: background .16s ease; }

/* FAQ dépliée en douceur */
.faq__a { display: block; max-height: 0; opacity: 0; overflow: hidden; padding-bottom: 0;
  transition: max-height .34s cubic-bezier(.2,.7,.3,1), opacity .22s ease, padding-bottom .34s ease; }
.faq__item.is-open .faq__a { max-height: 340px; opacity: 1; padding-bottom: 24px; }

/* CTA collant : apparaît quand le hero est passé */
.sticky-cta { transform: translateY(110%); transition: transform .32s cubic-bezier(.2,.7,.3,1); }
.sticky-cta.is-in { transform: translateY(0); }

/* Ancres douces */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .phone, .phone__seq.is-playing > * { animation: none !important; opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .stars-fill span { opacity: 1 !important; }
  .sticky-cta { transform: none !important; }
  .step:hover, .plan:hover { transform: none; }
  .btn--primary:hover::after { animation: none; }
}

/* ============================================================
   MOBILE — le cas principal : le patron sur son téléphone.
   Cibles tactiles 48px, barre d'onglets en bas, tableaux en cartes.
   ============================================================ */

/* Éléments propres au mobile, masqués par défaut */
.topbar, .tabbar, .drawer, .sticky-cta, .lp-burger { display: none; }

@media (max-width: 900px) {

  /* ---------- Shell ---------- */
  .app { flex-direction: column; min-height: 100dvh; }
  .sidebar { display: none; }
  .main { padding: 16px 16px 96px; }        /* place pour la tabbar */

  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 20;
    padding: 12px 16px; background: rgba(251,250,246,.94);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
  }
  .topbar__title { font-size: 16px; font-weight: 600; }
  .topbar__credits {
    margin-left: auto; display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--muted);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 7px 12px; min-height: 34px;
  }
  .topbar__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }

  /* ---------- Barre d'onglets ---------- */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; min-height: 56px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 10px; color: var(--faint); border-radius: 10px;
  }
  .tabbar a.is-active { color: var(--ink); background: var(--border-soft); }
  .tabbar__glyph { font-size: 17px; line-height: 1; }
  .tabbar a.is-primary { color: var(--green); }
  .tabbar .count {
    position: absolute; transform: translate(14px, -12px);
    font-size: 9px; font-weight: 700; background: var(--gold); color: var(--ink);
    border-radius: 999px; padding: 1px 5px;
  }

  /* ---------- Tiroir « Plus » ---------- */
  .drawer { display: block; position: fixed; inset: 0; z-index: 40; }
  .drawer[hidden] { display: none; }
  .drawer__veil { position: absolute; inset: 0; background: rgba(20,23,15,.5); }
  .drawer__sheet {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: var(--surface); border-radius: 18px 18px 0 0;
    padding: 10px 12px calc(18px + env(safe-area-inset-bottom));
    animation: sheet-up .22s ease;
  }
  .drawer__handle { width: 44px; height: 4px; border-radius: 3px; background: #DFDCD3; margin: 6px auto 12px; }
  .drawer__sheet a, .drawer__sheet button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    min-height: 52px; padding: 0 12px; border: none; background: transparent;
    border-radius: 12px; font-size: 16px; color: var(--ink); text-align: left;
  }
  .drawer__sheet a.is-active { background: var(--border-soft); font-weight: 600; }
  .drawer__sheet .count { margin-left: auto; font-size: 11px; background: var(--border-soft); border-radius: 999px; padding: 3px 8px; color: var(--muted); }
  .drawer__account { display: flex; align-items: center; gap: 10px; padding: 14px 12px 6px; border-top: 1px solid var(--border-soft); margin-top: 8px; }
  @keyframes sheet-up { from { transform: translateY(20px); opacity: .6 } to { transform: translateY(0); opacity: 1 } }

  /* ---------- Titres et grilles ---------- */
  .page-title { font-size: 27px; }
  .card { padding: 18px; border-radius: 14px; }
  .stack { gap: 16px; }
  .grid, .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid[style] { grid-template-columns: minmax(0, 1fr) !important; }
  .field--full { grid-column: span 1; }

  .kpi { padding: 16px; }
  .kpi__value { font-size: 30px; }
  .kpi:hover { transform: none; box-shadow: none; }

  /* ---------- Boutons : pleine largeur, 48px ---------- */
  .btn { min-height: 48px; padding: 14px 20px; display: inline-flex; align-items: center; justify-content: center; }
  .btn--sm { min-height: 42px; padding: 10px 14px; }
  .btn--block, .row > form > .btn, .plan__cta { width: 100%; }
  .row { gap: 10px; }
  .row--actions { flex-direction: column; align-items: stretch; }
  .row--actions .btn { width: 100%; }

  /* ---------- Graphique : 12 mois tiennent, sans les compteurs ---------- */
  .chart { height: 150px; gap: 4px; margin-top: 16px; }
  .chart__count { display: none; }
  .chart__month { font-size: 9px; }
  .chart__bar { border-radius: 4px 4px 2px 2px; }
  .chart__col:nth-child(even) .chart__month { opacity: .45; }

  /* ---------- Tableaux transformés en cartes ---------- */
  .t-head { display: none; }
  .t-row {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
    padding: 14px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); margin-bottom: 10px;
  }
  .t-row__main { font-size: 15px; font-weight: 600; }
  .t-row__meta { font-size: 13px; color: var(--muted); grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; }
  .t-row__action { grid-row: 1; grid-column: 2; }
  .t-row__action .btn { min-height: 40px; }

  /* ---------- Plans ---------- */
  .plan { min-height: 0; padding: 20px; }
  .plan__price { font-size: 34px !important; }
  .switch { width: 100%; }
  .switch a, .switch button { flex: 1; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 10px; }

  /* ---------- Toasts et visite guidée ---------- */
  .toasts { left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; }
  .tour { padding: 0; align-items: end; }
  .tour__card { border-radius: 18px 18px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); max-width: none; }
  .tour__title { font-size: 25px; }
  .tour__actions { flex-direction: column-reverse; align-items: stretch; }
  .tour__actions .btn { width: 100%; }

  /* ============ LANDING ============ */
  .lp-header .wrap { padding: 12px 18px; }
  .lp-nav a:not(.btn) { display: none; }
  .lp-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: transparent; font-size: 18px; }
  .wrap { padding: 0 18px; }
  .lp-hero, .landing .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 34px 0 40px; }
  .landing .lp-h1 { font-size: 40px; letter-spacing: -0.03em; }
  .landing .lp-h2, .landing .lp-cta h2 { font-size: 31px; }
  .landing .lp-lead { font-size: 17px; margin-top: 16px; }
  .landing .lp-band .wrap { padding-top: 8px; padding-bottom: 8px; }
  .landing .lp-band__num { font-size: 46px; }
  .landing .lp-band div + div { border-left: none; padding-left: 0; border-top: 1px solid var(--border); }
  .landing .lp-band__txt { font-size: 15px; }
  .lp-h1 { font-size: 38px; margin-top: 16px; line-height: 1.03; }
  .lp-lead { font-size: 16px; margin-top: 14px; }
  .lp-reassure { gap: 10px; margin-top: 16px; font-size: 12px; }
  .lp-hero__mock { padding: 20px 16px; border-radius: 18px; }
  .lp-hero .row { flex-direction: column; align-items: stretch; }
  .lp-hero .row .btn { width: 100%; }
  .phone { width: 100%; max-width: 300px; }
  .lp-band .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; padding-bottom: 28px; }
  .lp-band div + div { border-left: none; padding-left: 0; border-top: 1px solid var(--dark-4); }
  .lp-band > .wrap > div { padding: 18px 0; }
  .lp-band__row { gap: 14px; align-items: baseline; }
  .lp-band__num { font-size: 38px; min-width: 96px; }
  .lp-band__txt { font-size: 14px; }
  .step { padding: 20px; }
  .step__title { font-size: 17px; }
  .lp-section { padding-top: 56px; }
  .lp-h2 { font-size: 30px; }
  .lp-section .row { align-items: stretch; }
  .faq__q { padding: 18px 0; font-size: 16px; min-height: 56px; }
  .faq__a { padding: 0 0 20px; font-size: 15px; }
  .lp-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; margin-top: 56px; border-radius: 18px; }
  .lp-cta h2 { font-size: 30px; }
  .signup { padding: 20px; }
  .signup input { min-height: 50px; }
  .lp-footer { margin-top: 40px; padding-bottom: 100px; }
  .lp-footer .row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lp-footer__links { margin-left: 0; }

  /* ---------- Vues Clients / Modèles / Avis en mobile ---------- */
  .t-table { background: transparent; border: none; border-radius: 0; overflow: visible; }
  .t-cell { display: none; }
  .t-row {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
    padding: 14px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); margin-bottom: 10px;
  }
  .t-row:hover { background: var(--surface); }
  .t-row__main { font-size: 15px; flex: none !important; white-space: normal; }
  .t-row__tag { grid-row: 1; grid-column: 2; flex: none !important; }
  .t-row__meta { display: flex; flex-direction: column; gap: 3px; grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .t-row__meta a { color: var(--muted); }
  .t-row__action { grid-column: 1 / -1; width: auto !important; justify-content: stretch; gap: 8px; margin-top: 4px; }
  .t-row__action .btn { flex: 1; min-height: 44px; }

  .dropzone { padding: 32px 18px; }
  .dropzone__formats { flex-wrap: wrap; }

  .tpl__body { font-size: 14px; padding: 12px; }
  .tpl__actions { flex-wrap: wrap; gap: 8px; }
  .tpl__actions .btn { flex: 1; min-width: 96px; }

  .filters { overflow-x: auto; flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 2px; }
  .filters__chip { flex-shrink: 0; min-height: 44px; }

  .rv__head { flex-wrap: wrap; }
  .rv__state { margin-left: 0; order: 3; }
  .rv__who { flex: 1; }
  .rv__actions .btn { width: 100%; }
  .rv__actions form { width: 100%; }

  /* CTA collant : la conversion sans remonter la page */
  .sticky-cta {
    display: flex; align-items: center; gap: 12px;
    will-change: transform;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(251,250,246,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .sticky-cta__price { font-size: 12px; color: var(--muted); line-height: 1.3; }
  .sticky-cta .btn { flex: 1; max-width: 220px; }
}

@media (max-width: 380px) {
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .lp-h1 { font-size: 31px; }
  .tabbar a { font-size: 9px; }
}

/* Modules complementaires */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--bg)}
.auth-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);box-shadow:0 18px 40px rgba(20,23,15,.1);padding:36px 30px}
.auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.auth-title{font-family:"Instrument Serif",serif;font-size:28px;margin-bottom:6px}
.auth-sub{font-size:13px;color:var(--muted);margin-bottom:22px}
.alert-error{background:#FBE9E7;border:1px solid #F3C9C2;color:#9C3B2E;padding:10px 12px;border-radius:var(--r-md);font-size:13px;margin-bottom:16px}
.alert-success{background:var(--green-soft);border:1px solid #b6d4c0;color:var(--green);padding:10px 14px;border-radius:var(--r-md);font-size:13px;margin-bottom:18px}
.auth-hint{margin-top:18px;padding-top:16px;border-top:1px solid var(--border-soft);font-size:12px;color:var(--muted);text-align:center}
.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted);font-size:12px}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:var(--border-soft)}
.btn-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 16px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);font-size:15px;font-weight:600;color:var(--ink);text-decoration:none;cursor:pointer}
.btn-google:hover{background:var(--bg);color:var(--ink)}
.input{width:100%;padding:12px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg-content);font:inherit;color:var(--ink)}
.input:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px var(--green-soft)}
.btn-block{width:100%}
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th{text-align:left;font-weight:600;font-size:12px;color:var(--muted);padding:10px 16px;background:var(--bg);border-bottom:1px solid var(--border-soft)}
.table td{padding:11px 16px;border-bottom:1px solid var(--border-soft);color:var(--ink-2)}
.table tbody tr:last-child td{border-bottom:none}
.c-name{font-weight:600;color:var(--ink)}
code{font-size:12px;background:var(--bg);padding:1px 5px;border-radius:4px}
.pagination{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--border-soft)}
.dropzone{border:2px dashed var(--border);border-radius:var(--r-lg);padding:32px 20px;text-align:center}
.dropzone.drag-over{border-color:var(--green);background:var(--green-soft)}
.dropzone-inner{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted)}
.dropzone-label{font-weight:600;color:var(--ink-2)}
.dropzone-formats{font-size:12px;color:var(--faint)}
.dropzone-ready{display:flex;flex-direction:column;gap:4px;align-items:center}
.tip-card{background:var(--gold-soft);border-color:#e8d59a}
.tip-title{font-weight:700;margin-bottom:10px}
.tip-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink-2)}
.var-row{display:flex;align-items:center;gap:6px;margin-bottom:8px;flex-wrap:wrap}
.var-btn{background:var(--green-soft);color:var(--green);border:1px solid #cfe0d5;border-radius:999px;padding:3px 10px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.counter{margin-top:6px;font-size:12px;color:var(--muted)}
.counter-warn{color:var(--gold-strong);font-weight:600}
.sms-bubble{background:var(--green-soft);border-radius:14px 14px 14px 4px;padding:12px 14px;font-size:13px;line-height:1.5;white-space:pre-wrap}
.check-row{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2);cursor:pointer}
.tpl-preview{font-size:13px;color:var(--ink-2);background:var(--bg);border-radius:var(--r-sm);padding:10px 12px;white-space:pre-wrap}
.link-green{color:var(--green);font-weight:600}
.link-btn{background:none;border:none;color:var(--green);font:inherit;cursor:pointer;font-weight:600;padding:0}
.btn-danger{color:#9C3B2E}
.filter-tabs{display:flex;gap:6px;flex-wrap:wrap}
.filter-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;border:1px solid var(--border);font-size:13px;font-weight:500;color:var(--ink-2);text-decoration:none}
.filter-tab.is-active{background:var(--green);color:var(--surface);border-color:var(--green)}
.filter-count{font-size:11px;font-weight:700;background:rgba(255,255,255,.2);padding:1px 6px;border-radius:999px}
.campaign-card:hover{border-color:var(--green)}
.campaign-bar{display:flex;height:8px;border-radius:999px;background:var(--border-soft);overflow:hidden}
.bar-seg{height:100%}
.bar-converted{background:var(--green)}
.bar-opened{background:var(--gold)}
.bar-legend{display:flex;gap:12px;margin-top:8px;font-size:11px;color:var(--muted);align-items:center}
.bar-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:3px}
.bar-dot.bar-converted{background:var(--green)}
.bar-dot.bar-opened{background:var(--gold)}
.place-search-wrap{position:relative}
.place-results{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);box-shadow:0 8px 24px rgba(20,23,15,.12);z-index:50;max-height:280px;overflow-y:auto}
.place-result-item{display:flex;flex-direction:column;gap:2px;padding:10px 14px;cursor:pointer;border-bottom:1px solid var(--border-soft)}
.place-result-item:hover{background:var(--bg-content)}
.place-result-item strong{font-size:13px}
.place-result-item span{font-size:12px;color:var(--muted)}
.place-selected{display:flex;align-items:center;gap:8px;margin-top:8px;padding:8px 12px;background:var(--green-soft);border:1px solid #cfe0d5;border-radius:var(--r-md);font-size:13px;color:var(--green);font-weight:600}
.widget-code-block{display:flex;align-items:flex-start;gap:10px;background:var(--dark);border-radius:var(--r-md);padding:14px 16px}
.widget-code-block code{flex:1;font-family:monospace;font-size:12px;line-height:1.6;color:#C7C4B8;white-space:pre-wrap;word-break:break-all;background:none;padding:0}
.two-col{display:grid;grid-template-columns:1.15fr 1fr;gap:16px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:18px}
.stat-label{font-size:12px;color:var(--muted);margin-bottom:8px}
.stat-value{font-size:32px;letter-spacing:-.03em}
.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}
.badge-green{background:var(--green-soft);color:var(--green-text)}
.badge-amber{background:var(--gold-soft);color:var(--gold-text)}
.badge-grey{background:var(--border-soft);color:var(--muted)}
.btn-logout{display:block;width:100%;padding:10px;border:1px solid var(--dark-5);border-radius:var(--r-md);background:transparent;color:#B9B5A9;font:inherit;font-size:13px;cursor:pointer;text-align:center;margin-top:8px}
.btn-logout:hover{background:var(--dark-3);color:#E9E7E0}
@media(max-width:900px){.two-col,.stat-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,1fr)}}

/* =====================================================================
   Landing mobile fixes
   ===================================================================== */

/* Burger à gauche, logo au centre */
@media (max-width: 768px) {
  .lp-header .wrap { display: flex; align-items: center; }
  .lp-burger { order: -1; margin-right: 12px; }

  /* CTAs hero pleine largeur */
  .lp-hero .row { flex-direction: column; }
  .lp-hero .row .btn { width: 100%; text-align: center; }

  /* Features: séparation visuelle */
  .feature {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .feature:last-child { border-bottom: none; }

  /* Plans empilés */
  .lp-section .grid--2 { grid-template-columns: 1fr; }

  /* Signup form titre lisible */
  .signup div:first-child { color: var(--ink) !important; }

  /* Sticky CTA mobile plus compact */
  .sticky-cta { padding: 10px 16px; }
}

/* Features desktop: cartes avec bordure au lieu de bloc monolithique */
.feature {
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition: border-color .15s ease;
}
.feature:hover { border-color: var(--green); }

/* Tabbar SVG icons */
.tabbar__icon { width: 22px; height: 22px; flex-shrink: 0; }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; }
.tabbar__more { flex: 1; min-height: 56px; background: transparent; border: none; color: var(--faint); cursor: pointer; }

/* Drawer icons */
.drawer__sheet a { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 15px; text-decoration: none; color: var(--ink); }
.drawer__sheet a .tabbar__icon { width: 20px; height: 20px; color: var(--muted); }
.drawer__sheet a.is-active { color: var(--green); font-weight: 600; }
.drawer__sheet a.is-active .tabbar__icon { color: var(--green); }

/* Preset cards */
.preset-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.preset-card:hover { box-shadow: 0 2px 12px rgba(20,23,15,0.06); }
.preset-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
@media (max-width: 768px) { .grid--3 { grid-template-columns: 1fr !important; } }

/* Chart with cumulative line overlay */
.chart-wrap {
  position: relative;
  margin-top: 16px;
}
.chart-line {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  z-index: 2;
}
.chart {
  position: relative;
  z-index: 1;
}
