/* ==========================================================================
   Location — feuille de style
   Direction « clair épuré » : fond gris très clair, cartes blanches,
   une carte noire pour le chiffre du mois, un seul bleu électrique.
   Police : Onest (fichier local).
   ========================================================================== */
@font-face{font-family:"Onest";src:url(onest.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";src:url(onest-ext.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- jetons ---------- */
:root{
  color-scheme:light;
  --fond:#F5F5F7; --carte:#FFFFFF; --carte-2:#FAFAFB; --creux:#EFEFF3; --creux-2:#E6E6EC;
  --texte:#0A0A0B; --texte-2:#6E6E78; --texte-3:#9A9AA3;
  --filet:#E6E6EB; --filet-2:#D4D4DC;
  --bleu:#3B5BFF; --bleu-f:#2A47E6; --bleu-c:#EEF1FF; --bleu-t:#3049D9;
  --noir:#0A0A0B; --noir-2:#2A2A2E;
  --ok:#17803F; --ok-bg:#E8F8EE;
  --warn:#9A5B00; --warn-bg:#FFF4DC;
  --bad:#E5343D; --bad-bg:#FFF1F1;
  --anneau:0 1px 2px rgba(10,10,20,.04),0 0 0 1px rgba(10,10,20,.045);
  --ombre:0 24px 60px rgba(10,10,25,.16),0 0 0 1px rgba(10,10,20,.05);
  --voile:rgba(10,10,15,.42);
  --f:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --r:20px; --r-m:14px; --r-s:12px; --r-xs:8px;
  --side:252px; --g:36px; --max:1180px;
  /* anciens noms, encore utilisés par quelques styles en ligne */
  --ink:var(--texte); --muted:var(--texte-2); --line:var(--filet); --rule:var(--filet-2); --accent:var(--bleu); --accent-soft:var(--bleu-c);
  --sunk:var(--creux); --bg:var(--fond); --paper:var(--carte); --card:var(--carte); --terre:var(--bleu);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --fond:#0B0B0E; --carte:#16161A; --carte-2:#1A1A1F; --creux:#212127; --creux-2:#2A2A31;
  --texte:#F2F2F5; --texte-2:#A0A0AA; --texte-3:#6E6E78;
  --filet:#26262C; --filet-2:#36363E;
  --bleu:#6B82FF; --bleu-f:#8296FF; --bleu-c:#1C2142; --bleu-t:#A9B7FF;
  --noir:#3B5BFF; --noir-2:#5570FF;
  --ok:#4ADE80; --ok-bg:#12281B;
  --warn:#FBBF24; --warn-bg:#2C2310;
  --bad:#FF6B73; --bad-bg:#2E1416;
  --anneau:0 0 0 1px rgba(255,255,255,.06);
  --ombre:0 24px 60px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.07);
  --voile:rgba(0,0,0,.6);
}

/* ---------- socle ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--fond);overflow-x:clip;max-width:100%}
body{margin:0;min-height:100vh;min-height:100dvh;color:var(--texte);background:var(--fond);font:400 15px/1.55 var(--f);font-feature-settings:"ss01";
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;overflow-x:clip;overscroll-behavior-y:none}
[hidden]{display:none!important}
h1,h2,h3,h4,p,dl,dd,figure,ol,ul{margin:0}
h2{font:600 1.75rem/1.12 var(--f);letter-spacing:-.03em;text-wrap:balance}
h3{font:600 1.06rem/1.3 var(--f);letter-spacing:-.012em}
h4{font:600 .98rem/1.3 var(--f)}
a{color:var(--bleu-t);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
strong,b{font-weight:600}
img,svg{max-width:100%}
::selection{background:var(--bleu);color:#fff}
:focus-visible{outline:2px solid var(--bleu);outline-offset:2px;border-radius:6px}
button,a,select,summary,label,.chip{touch-action:manipulation}
.wrap{min-width:0}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.spread{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap}
.two{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;align-items:start}
.muted{color:var(--texte-2)}
.small{font-size:.86rem}
.num{font-variant-numeric:tabular-nums;font-weight:500}
.eyebrow{font-size:.84rem;font-weight:500;color:var(--texte-2)}
p.bad,small.bad{color:var(--bad)}
.status{color:var(--texte-2);font-size:.86rem}
@media (max-width:860px){.two{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* la marque : un carré noir et son carré bleu */
.mark{position:relative;display:inline-block;flex:none;width:28px;height:28px;border-radius:8px;background:var(--noir)}
.mark::after{content:"";position:absolute;inset:8.5px;border-radius:3px;background:#3B5BFF}
html[data-theme="dark"] .mark{background:#fff}

/* ==========================================================================
   COQUILLE
   ========================================================================== */
#topbar{z-index:30;background:var(--fond)}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand::before{content:"";flex:none;width:28px;height:28px;border-radius:8px;background:var(--noir) linear-gradient(#3B5BFF,#3B5BFF) center/11px 11px no-repeat}
html[data-theme="dark"] .brand::before{background-color:#fff}
.brand h1{font:700 1.15rem/1 var(--f);letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
#roleLabel{font-size:.8rem;color:var(--texte-2);white-space:nowrap}
#roleLabel:empty{display:none}
#topbar .top>.row{flex-wrap:nowrap;gap:2px}
#topbar .top>.row>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:40px;height:40px;padding:0 10px;border:0;border-radius:var(--r-s);background:none;color:var(--texte);font:500 .88rem/1 var(--f);box-shadow:none}
#topbar .top>.row>button:hover{background:var(--carte);box-shadow:var(--anneau)}
#topbar .top>.row svg{width:19px;height:19px;flex:none}
#btnInstall{white-space:nowrap}
.bell{position:relative}
#bellCount{position:absolute;top:3px;right:2px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--bleu);color:#fff;font:600 .68rem/17px var(--f);text-align:center;box-shadow:0 0 0 2px var(--fond)}
#userEmail{color:var(--texte-2);font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* liens de navigation */
#nav a,#nav .ddbtn{display:flex;align-items:center;gap:8px;color:var(--texte-2);text-decoration:none;line-height:1.2}
#nav a{min-height:36px;padding:7px 12px;border-radius:10px;font-size:.93rem;font-weight:500}
#nav a:hover{color:var(--texte);background:var(--creux)}
#nav a[aria-current="page"]{background:var(--carte);color:var(--texte);font-weight:600;box-shadow:var(--anneau)}
#nav .ddbtn{padding:18px 12px 6px;border:0;background:none;font-size:.78rem;font-weight:500;color:var(--texte-3);cursor:default;box-shadow:none}
#nav .ddbtn svg,#nav .ddbtn .count{display:none}
#nav .ddmenu{display:flex;flex-direction:column;gap:1px}
.count,#tabbar .badge{display:inline-block;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--bleu);color:#fff;font:600 .72rem/20px var(--f);text-align:center;font-style:normal}
#nav .count,#nav .lock{margin-left:auto}
.lock{font-size:.78em;opacity:.6}

/* ordinateur : colonne à gauche */
@media (min-width:1024px){
  #topbar{position:fixed;inset:0 auto 0 0;width:var(--side)}
  #topbar>.wrap{height:100%;display:flex;flex-direction:column;padding:26px 14px 14px}
  #topbar .top{display:contents}
  #topbar .brand{order:1;padding:0 12px 22px}
  #nav{order:2;flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:1px;padding:2px 2px 12px;scrollbar-width:thin}
  #topbar .top>.row{order:3;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--filet)}
  #userEmail{order:-1;flex:1 0 100%;padding:0 12px 8px}
  #btnLogout{margin-left:auto}
  #topbar:not([hidden])~main#app{margin-left:var(--side)}
  #notifPanel{position:fixed;left:calc(var(--side) + 10px);bottom:14px;width:440px;max-height:min(78vh,640px)}
}
/* téléphone et tablette : barre du haut + barre du bas */
@media (max-width:1023.98px){
  :root{--g:22px}
  #topbar{position:sticky;top:0;padding-top:env(safe-area-inset-top,0px);background:color-mix(in srgb,var(--fond) 82%,transparent);-webkit-backdrop-filter:saturate(1.6) blur(18px);backdrop-filter:saturate(1.6) blur(18px);border-bottom:1px solid var(--filet)}
  #topbar>.wrap{padding:0 max(8px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px))}
  #topbar .top{display:flex;align-items:center;justify-content:space-between;gap:8px;height:58px}
  #nav,#userEmail,#btnLogout .lbl{display:none}
  body[data-role="locataire"] #btnLogout .lbl{display:inline}
  body[data-role="locataire"] #topbar:has(#btnInstall:not([hidden])) #btnLogout .lbl{display:none}
  #topbar .top>.row>button{min-width:44px;height:44px}
  #notifPanel{position:fixed;top:calc(62px + env(safe-area-inset-top,0px));left:8px;right:8px;max-height:min(72dvh,600px)}
}
@media (max-width:560px){:root{--g:16px}}

#tabbar,#moreSheet{display:none}
@media (max-width:1023.98px){
  body.has-tabbar{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
  body.has-tabbar #tabbar{display:flex;position:fixed;inset:auto 0 0 0;z-index:25;padding:0 4px env(safe-area-inset-bottom,0px);border-top:1px solid var(--filet);
    background:color-mix(in srgb,var(--carte) 86%,transparent);-webkit-backdrop-filter:saturate(1.6) blur(18px);backdrop-filter:saturate(1.6) blur(18px)}
  #tabbar a,#tabbar button{flex:1 1 0;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:64px;padding:9px 2px 7px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--texte-3);font:500 .7rem/1.1 var(--f);text-decoration:none}
  #tabbar a span,#tabbar button span{white-space:nowrap}
  #tabbar svg{width:23px;height:23px}
  #tabbar a[aria-current="page"],#tabbar button.on{color:var(--bleu)}
  #tabbar .badge{position:absolute;top:6px;left:calc(50% + 5px);min-width:17px;height:17px;padding:0 4px;font-size:.65rem;line-height:17px}
  #moreSheet:not([hidden]){display:grid;position:fixed;left:8px;right:8px;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:26;gap:1px;padding:8px;border-radius:var(--r);background:var(--carte);box-shadow:var(--ombre);
    max-height:calc(100dvh - 150px - env(safe-area-inset-bottom,0px) - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;align-content:start}
  #moreSheet a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:10px 12px;border-radius:var(--r-s);color:var(--texte);text-decoration:none;font-weight:500}
  #moreSheet a:active,#moreSheet a[aria-current="page"]{background:var(--creux)}
  #moreSheet .out{position:sticky;bottom:-8px;display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:50px;margin-top:6px;padding:12px;border:0;border-top:1px solid var(--filet);border-radius:0;background:var(--carte);color:var(--bad);font:500 1rem var(--f);box-shadow:none}
  #moreSheet .out svg{width:21px;height:21px;flex:none}
  body.has-tabbar #toast{bottom:calc(78px + env(safe-area-inset-bottom,0px))}
}
#topbar[hidden]~#tabbar,#topbar[hidden]~#moreSheet,body:has(.landing) #tabbar,body:has(.landing) #moreSheet{display:none!important}

/* notifications */
#notifPanel{z-index:40;overflow:auto;padding:6px 0 8px;border-radius:var(--r);background:var(--carte);box-shadow:var(--ombre)}
#notifPanel .nhead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px 8px}
#notifPanel .nhead h3{font-size:1.2rem;letter-spacing:-.02em}
#notifPanel .ntitle{padding:12px 18px 6px;font-size:.8rem;font-weight:500;color:var(--texte-3)}
.nitem{position:relative;display:block;width:calc(100% - 12px);margin:0 6px;text-align:left;padding:11px 12px 11px 30px;border:0;border-radius:var(--r-s);background:none;color:inherit;font:inherit;line-height:1.4;cursor:pointer;box-shadow:none}
.nitem:hover{background:var(--creux)}
.nitem::before{content:"";position:absolute;left:13px;top:17px;width:7px;height:7px;border-radius:50%;background:var(--filet-2)}
.nitem.new::before{background:var(--bleu)}
.nitem.alert::before{background:#F5A524}
.nitem strong{display:block;font-size:.95rem;font-weight:500}
.nitem.new strong,.nitem.alert strong{font-weight:600}
.nitem span{display:block;margin-top:2px;font-size:.9rem;color:var(--texte-2);overflow-wrap:anywhere}
.nitem small{display:block;margin-top:4px;font-size:.78rem;color:var(--texte-3)}
#notifPanel .nempty{padding:26px 18px;text-align:center;color:var(--texte-2)}

/* contenu */
main#app{display:grid;gap:16px;align-content:start;min-width:0;padding:0 var(--g) 96px}
#app>*{min-width:0}
#app>:not(.landing):not(.mfa-page){width:100%;max-width:var(--max);margin-inline:auto}
#app>:first-child:not(.landing):not(.mfa-page){margin-top:30px}
@media (min-width:1024px){main#app{padding-top:10px}}
@media (max-width:1023.98px){main#app{gap:14px;padding-bottom:40px}#app>:first-child:not(.landing):not(.mfa-page){margin-top:18px}}

/* en-tête de page : grand titre, actions à droite */
.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:14px 20px;flex-wrap:wrap;padding:8px 0 6px}
#app>.spread:first-child{padding:8px 0 6px;align-items:flex-end}
h2.pagehead{display:block}
.pagehead h2,h2.pagehead,#app>.spread:first-child>h2{font:600 clamp(1.9rem,3.2vw,2.6rem)/1.05 var(--f);letter-spacing:-.04em;overflow-wrap:anywhere}
.pagehead .ph-t{min-width:0;flex:1 1 300px}
.pagehead p{margin-top:8px;max-width:64ch;color:var(--texte-2);font-size:1rem}
.pagehead .row{gap:8px}
@media (max-width:720px){
  .pagehead>button,.pagehead>select,#app>.spread:first-child>button{width:100%}
  .pagehead .row,#app>.spread:first-child>.row{width:100%}
  .pagehead .row>button,#app>.spread:first-child>.row>button{flex:1 1 auto}
  .pagehead .row>button[aria-label],#app>.spread:first-child>.row>button[aria-label]{flex:0 0 46px;padding:0}
  .pagehead .row>strong,#app>.spread:first-child>.row>strong{flex:1;text-align:center;min-width:0!important}
}

/* écran d'ouverture */
#splash{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:var(--fond);animation:spOut .3s .95s ease forwards}
.sp-in{display:flex;flex-direction:column;align-items:center;gap:16px;color:var(--texte)}
.sp-m{position:relative;width:64px;height:64px;border-radius:18px;background:var(--noir);animation:spPop .5s cubic-bezier(.2,.9,.25,1.2) both}
.sp-m::after{content:"";position:absolute;inset:20px;border-radius:6px;background:#3B5BFF;animation:spPop .45s .18s cubic-bezier(.2,.9,.25,1.3) both}
.sp-t{font:700 1.5rem/1 var(--f);letter-spacing:-.03em;animation:spIn .4s .3s ease both}
@keyframes spPop{from{transform:scale(0)}to{transform:none}}
@keyframes spIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes spOut{to{opacity:0;visibility:hidden}}
@media (prefers-reduced-motion:reduce){#splash{display:none}}

/* chargement */
.sk{display:grid;gap:16px;padding-top:30px}
.sk-b{border-radius:var(--r);background:linear-gradient(90deg,var(--creux) 25%,var(--carte) 50%,var(--creux) 75%);background-size:200% 100%;animation:skel 1.3s linear infinite}
.sk-hero{height:70px;max-width:420px}
.sk-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.sk-tile{height:118px}
.sk-panel{height:260px}
@keyframes skel{to{background-position:-200% 0}}
@keyframes spin{to{transform:rotate(360deg)}}

/* ==========================================================================
   COMPOSANTS
   ========================================================================== */
/* boutons */
button,.btn{font:500 .92rem/1.2 var(--f);padding:10px 16px;border-radius:var(--r-s);border:0;background:var(--carte);color:var(--texte);box-shadow:var(--anneau);cursor:pointer;max-width:100%;
  transition:background-color .12s,box-shadow .12s,color .12s,transform .08s}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none!important}
button:hover:not(:disabled),.btn:hover{background:var(--carte-2);box-shadow:0 1px 2px rgba(10,10,20,.06),0 0 0 1px rgba(10,10,20,.1)}
button:active:not(:disabled){transform:scale(.98)}
button.primary,.btn.primary{background:var(--bleu);color:#fff;font-weight:600;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 6px 16px rgba(59,91,255,.28)}
button.primary:hover:not(:disabled),.btn.primary:hover{background:var(--bleu-f);box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 8px 20px rgba(59,91,255,.34)}
button.ghost{padding:10px 10px;background:none;box-shadow:none;color:var(--bleu-t)}
button.ghost:hover:not(:disabled){background:var(--bleu-c);box-shadow:none}
button.danger{color:var(--bad)}
button.danger:hover:not(:disabled){background:var(--bad-bg)}
button.armed,button[data-armed="1"]{background:var(--bad)!important;color:#fff!important;box-shadow:none!important}
button:disabled{opacity:.42;cursor:default;box-shadow:var(--anneau)}
button.primary:disabled{box-shadow:none}
button.busy{position:relative;pointer-events:none;color:transparent!important}
button.busy::after{content:"";position:absolute;inset:0;margin:auto;width:17px;height:17px;border-radius:50%;border:2.5px solid var(--filet-2);border-top-color:var(--texte);animation:spin .7s linear infinite}
button.primary.busy::after{border-color:rgba(255,255,255,.35);border-top-color:#fff}
.ripple{display:none}
a.more{font-weight:500;font-size:.9rem;white-space:nowrap}
.photo-btn{align-self:flex-start;display:inline-block;padding:9px 14px;border-radius:var(--r-s);background:var(--creux);font-size:.9rem;font-weight:500;cursor:pointer}
.photo-btn:hover{background:var(--creux-2)}

/* champs */
select,input,textarea{font:inherit;color:var(--texte);background-color:var(--carte);border:1px solid var(--filet-2);border-radius:var(--r-s);padding:10px 13px;width:100%;min-height:44px;transition:border-color .12s,box-shadow .12s}
select:hover,input:hover,textarea:hover{border-color:var(--texte-3)}
select:focus,input:focus,textarea:focus{outline:0;border-color:var(--bleu);box-shadow:0 0 0 4px color-mix(in srgb,var(--bleu) 18%,transparent)}
::placeholder{color:var(--texte-3);opacity:1}
textarea{min-height:92px;resize:vertical;line-height:1.45}
select{-webkit-appearance:none;appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239A9AA3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
select.compact{width:auto}
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;padding:0;margin:0;flex:none;accent-color:var(--bleu);box-shadow:none}
input[type=file]{padding:9px 10px;font-size:.9rem;background-color:var(--creux);border-style:dashed}
input[type=file]::file-selector-button{margin-right:12px;padding:7px 12px;border:0;border-radius:var(--r-xs);background:var(--noir);color:#fff;font:500 .85rem var(--f);cursor:pointer}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.field,.fields>label{display:grid;gap:6px;min-width:0;align-content:start}
.field.full,.fields>label.full{grid-column:1/-1}
.field label,.fields>label{font-size:.88rem;font-weight:500;line-height:1.3}
.check{display:flex;gap:10px;align-items:center;font-weight:400!important;cursor:pointer;min-height:30px}
.fields .fsec{grid-column:1/-1;margin-top:10px;padding-top:18px;border-top:1px solid var(--filet);font-size:1.1rem;letter-spacing:-.02em}
.fields .fsec:first-child{margin-top:0;padding-top:0;border-top:0}
.err{color:var(--bad);background:var(--bad-bg);border-radius:var(--r-s);padding:10px 13px;font-size:.9rem;font-weight:500}
.searchbar{position:relative}
.searchbar input{padding-left:44px;border-color:transparent;box-shadow:var(--anneau);min-height:48px;border-radius:var(--r-m)}
.searchbar input:focus{border-color:var(--bleu)}
.searchbar::before{content:"";position:absolute;left:16px;top:50%;width:17px;height:17px;transform:translateY(-50%);pointer-events:none;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9AA3' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")}
@media (max-width:460px){.fields{grid-template-columns:1fr}}

/* sélecteurs */
.seg{display:inline-flex;flex-wrap:wrap;gap:3px;padding:3px;border-radius:var(--r-s);background:var(--creux)}
.seg button{padding:8px 14px;border-radius:9px;background:none;box-shadow:none;color:var(--texte-2)}
.seg button:hover:not(:disabled){background:none;color:var(--texte);box-shadow:none}
.seg button.on{background:var(--carte);color:var(--texte);font-weight:600;box-shadow:0 1px 3px rgba(10,10,20,.1)}
.typechoix{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.typecard{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:90px;padding:15px 16px;text-align:left;border-radius:var(--r-m)}
.typecard strong{font-size:1rem}
.typecard span{font-size:.85rem;font-weight:400;line-height:1.35;color:var(--texte-2)}
.typecard.on{box-shadow:0 0 0 2px var(--bleu);background:var(--bleu-c)}
.check.opt{width:100%;padding:11px 14px;border-radius:var(--r-s);background:var(--carte);box-shadow:var(--anneau)}
.check.opt:has(input:checked){box-shadow:0 0 0 2px var(--bleu);background:var(--bleu-c)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:8px 14px;border-radius:99px}
.chip.on{background:var(--noir);color:#fff;box-shadow:none}
@media (max-width:640px){.typechoix{grid-template-columns:1fr}}

/* surfaces */
.panel{display:grid;gap:14px;align-content:start;min-width:0;padding:22px 24px;background:var(--carte);border-radius:var(--r);box-shadow:var(--anneau)}
.panel>h3,.panel>.spread>h3{font-size:1.06rem}
.panel .panel{background:var(--carte-2);box-shadow:var(--anneau)}
@media (max-width:720px){.panel{padding:18px 16px}}

/* chiffres clés : des cartes séparées */
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tiles.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.tile{min-width:0;display:grid;gap:4px;align-content:start;padding:20px 22px;background:var(--carte);border-radius:var(--r);box-shadow:var(--anneau)}
.tile .eyebrow{font-size:.84rem}
.tile .v{margin-top:6px;font:600 clamp(1.7rem,2.6vw,2.3rem)/1.05 var(--f);font-variant-numeric:tabular-nums;letter-spacing:-.045em;overflow-wrap:anywhere}
.tile.alert{background:var(--bad-bg);box-shadow:none}
.tile.alert .v{color:var(--bad)}
.bar{height:8px;border-radius:99px;overflow:hidden;background:var(--creux)}
.bar i{display:block;height:100%;border-radius:99px;background:var(--bleu)}
.tile .bar{margin-top:10px}
/* la carte noire : le chiffre du mois sur le tableau de bord */
#app[data-vue="tableau"] .tiles>.tile:nth-child(2){background:var(--noir);color:#fff;box-shadow:0 12px 30px rgba(10,10,20,.18)}
#app[data-vue="tableau"] .tiles>.tile:nth-child(2) .eyebrow,#app[data-vue="tableau"] .tiles>.tile:nth-child(2) .small{color:rgba(255,255,255,.62)}
#app[data-vue="tableau"] .tiles>.tile:nth-child(2) .bar{background:rgba(255,255,255,.14)}
#app[data-vue="tableau"] .tiles>.tile:nth-child(2) .bar i{background:#3B5BFF}
html[data-theme="dark"] #app[data-vue="tableau"] .tiles>.tile:nth-child(2) .bar i{background:#fff}
@media (max-width:900px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.tiles,.tiles.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tiles.three>.tile:first-child{grid-column:1/-1}.tile{padding:16px}.tile .v{font-size:1.6rem}}

/* tableaux */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;min-width:560px}
th{padding:8px 12px;text-align:left;font-size:.8rem;font-weight:500;color:var(--texte-3);border-bottom:1px solid var(--filet);white-space:nowrap}
td{padding:14px 12px;border-bottom:1px solid var(--filet);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:var(--carte-2)}
td.r,th.r{text-align:right}
td.num,td .num{font-variant-numeric:tabular-nums}
tfoot td{font-weight:600;border-top:1px solid var(--filet-2);border-bottom:0}
tr.grp td{padding:18px 12px 8px;background:none!important;font-size:.9rem}
tr.grp:first-child td{padding-top:6px}
.grp-t{margin:12px 0 2px;font-size:.9rem;font-weight:600}

/* listes */
.list{display:grid}
.item{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--filet)}
.item:first-child{border-top:0;padding-top:4px}
.item:last-child{padding-bottom:2px}
.item .main{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.item .main strong{font-weight:600}
.item .rep{margin-top:8px;padding:10px 12px;border-radius:var(--r-s);background:var(--creux)}
.date{min-width:86px;font-variant-numeric:tabular-nums;font-size:.86rem;font-weight:500;color:var(--texte-2)}
dl{display:grid;grid-template-columns:auto 1fr}
dt,dd{display:flex;align-items:center;padding:11px 0;border-top:1px solid var(--filet)}
dt{padding-right:20px;font-size:.9rem;color:var(--texte-2)}
dd{justify-content:flex-end;text-align:right;font-weight:500}
dt:first-of-type,dt:first-of-type+dd{border-top:0}

/* étiquettes */
.pill{display:inline-block;padding:4px 10px;border-radius:99px;font-size:.78rem;font-weight:600;line-height:1.3;white-space:nowrap;max-width:100%}
.pill.ok{background:var(--ok-bg);color:var(--ok)}
.pill.warn{background:var(--warn-bg);color:var(--warn)}
.pill.bad{background:var(--bad-bg);color:var(--bad)}
.pill.neutral{background:var(--creux);color:var(--texte-2)}
.tag{font-size:.82rem;font-weight:500;color:var(--texte-2)}
.banner{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;padding:13px 16px;border-radius:var(--r-m);background:var(--warn-bg);color:var(--texte);font-weight:500}
.banner a{font-weight:600}

/* états vides */
.empty{display:grid;gap:10px;justify-items:center;padding:40px 16px;text-align:center;color:var(--texte-2)}
.empty::before{content:"";width:52px;height:52px;border-radius:16px;background:var(--noir) linear-gradient(#3B5BFF,#3B5BFF) center/18px 18px no-repeat;margin-bottom:6px}
html[data-theme="dark"] .empty::before{background-color:#fff}
.empty h2{font-size:1.5rem;color:var(--texte)}
.empty p{max-width:48ch}
.vide{display:grid;gap:6px;justify-items:center;padding:26px 12px;text-align:center;color:var(--texte-2)}
.vide strong{font-size:1.02rem;color:var(--texte)}
.vide p{max-width:40ch;font-size:.92rem}
.vide .primary{margin-top:8px}
.vide-i{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:var(--bleu-c);color:var(--bleu-t);margin-bottom:4px}
.vide-i svg{width:24px;height:24px}
.vide-i.ok{background:var(--ok-bg);color:var(--ok)}

/* fenêtres */
dialog{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:24px;background:var(--carte);color:var(--texte);box-shadow:var(--ombre);overflow:auto}
dialog::backdrop{background:var(--voile);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
dialog[open]{animation:dlgIn .2s cubic-bezier(.2,.8,.2,1)}
@keyframes dlgIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
dialog form,dialog .dbody{display:grid;gap:16px;padding:28px}
dialog h2{font-size:1.6rem}
.dfoot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#dlgForm .dfoot{position:sticky;bottom:0;z-index:2;margin:6px -28px -28px;padding:14px 28px 20px;background:var(--carte);border-top:1px solid var(--filet)}
#txt .dfoot .row{gap:8px}
#txtMail{white-space:normal}
pre.doc{max-height:55vh;margin:0;padding:18px;overflow:auto;white-space:pre-wrap;font:.94rem/1.6 var(--f);background:var(--creux);border-radius:var(--r-m)}
@media (max-width:720px){
  dialog:not(.lg-dlg):not(.legal-dlg){width:100vw;max-width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:24px 24px 0 0;animation-name:sheetIn}
  dialog:not(.lg-dlg):not(.legal-dlg)::before{content:"";display:block;width:40px;height:5px;margin:8px auto 0;border-radius:99px;background:var(--filet-2)}
  dialog form,dialog .dbody{padding:18px 16px calc(20px + env(safe-area-inset-bottom,0px))}
  #dlgForm .dfoot{flex-direction:column-reverse;align-items:stretch;margin:6px -16px calc(-20px - env(safe-area-inset-bottom,0px));padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px))}
  #dlgForm .dfoot .row>button,#dlgForm .dfoot>div:first-child:not(:empty) button{flex:1;width:100%}
  button{min-height:44px}
  .item .row,.pcact{width:100%}
  .item .row>button,.pcact>button{flex:1}
}
@keyframes sheetIn{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}

/* confirmations */
#toast{position:fixed;inset:auto 16px calc(20px + env(safe-area-inset-bottom,0px)) 16px;z-index:9999;width:max-content;max-width:min(520px,calc(100vw - 32px));margin:0 auto;padding:12px 18px;border:0;border-radius:99px;
  background:var(--noir);color:#fff;font-weight:500;line-height:1.4;box-shadow:var(--ombre);overflow:visible}
#toast.bad{background:var(--bad);color:#fff}
#toast[popover]:not(:popover-open){display:none}
#toast:popover-open{animation:dlgIn .22s ease-out}

/* tableaux sur téléphone : une fiche par ligne */
@media (max-width:720px){
  .tablewrap{overflow:visible}
  table.rt{display:block;min-width:0}
  table.rt thead{display:none}
  table.rt tbody,table.rt tfoot{display:grid;gap:10px}
  table.rt tfoot{margin-top:10px}
  table.rt tr{display:flex;flex-wrap:wrap;gap:2px 14px;padding:12px 14px;border-radius:var(--r-m);background:var(--carte-2);box-shadow:var(--anneau)}
  table.rt td{flex:1 1 84px;min-width:min-content;max-width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:6px 0;border:0;background:none!important;text-align:left!important;overflow-wrap:break-word}
  table.rt td::before{content:attr(data-label);font-size:.75rem;font-weight:500;line-height:1.2;color:var(--texte-3)}
  table.rt td.rt-first{flex:1 1 100%;min-width:0;padding-bottom:8px;margin-bottom:4px;border-bottom:1px solid var(--filet);font-size:1rem;font-weight:600;overflow-wrap:anywhere}
  table.rt td.rt-first::before,table.rt td.rt-act::before{display:none}
  table.rt td.rt-act{flex:1 1 100%;min-width:0;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding-top:8px;overflow-wrap:normal}
  table.rt td.rt-act:empty{display:none}
  table.rt td.rt-act .row,table.rt td>.row{flex-wrap:wrap!important;justify-content:flex-start!important;width:100%;gap:8px}
  table.rt td.rt-act button{flex:1 1 auto;white-space:normal;line-height:1.25;text-align:center}
  table.rt .pill{white-space:normal;text-align:left}
  table.rt tr.grp{padding:14px 2px 0;background:none;box-shadow:none}
  table.rt tr.grp td{padding:0;border:0}
}

/* ==========================================================================
   VUES
   ========================================================================== */
/* biens */
.groupes{display:grid;gap:30px}
.immeuble>.spread{margin-bottom:12px;padding:0 4px}
.immeuble h3{font-size:1.25rem;letter-spacing:-.025em}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.card{min-width:0;overflow:hidden;background:var(--carte);border-radius:var(--r);box-shadow:var(--anneau)}
.card.bien{position:relative;display:flex;flex-direction:column;gap:4px;padding:20px 20px 0;cursor:pointer;transition:box-shadow .18s,transform .18s}
.card.bien:hover,.card.bien:focus-visible{transform:translateY(-3px);box-shadow:0 16px 36px rgba(10,10,20,.1),0 0 0 1px rgba(10,10,20,.06)}
.card.bien>.spread{margin-bottom:4px}
.card h3.name{font-size:1.3rem;font-weight:600;letter-spacing:-.03em;margin:0 0 2px;overflow-wrap:anywhere}
.bien-photo{display:none;background:var(--creux) center/cover no-repeat}
.card.bien>.bien-photo.on{display:block;height:150px;margin:-20px -20px 14px}
.bien-photo.grand.on{display:block;height:220px;border-radius:var(--r-m)}
.bien-bas{display:flex;align-items:flex-end;gap:18px;margin:14px -20px 0;padding:14px 20px 16px;border-top:1px solid var(--filet);background:var(--carte-2)}
.bien-bas>div{display:flex;flex-direction:column;min-width:0}
.bien-bas .eyebrow{font-size:.78rem;color:var(--texte-3)}
.bien-bas strong{font-weight:600}
.bien-loc{flex:1}
.bien-loc strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bien-alerte{margin:0 -20px;padding:9px 20px;background:var(--bad-bg);color:var(--bad);font-size:.82rem;font-weight:500}
.bien-plus{display:none}
.dpe{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin:0 2px;border-radius:7px;color:#fff;font-weight:700;font-size:.92rem;vertical-align:middle;flex:none}
.dpe.ges{border-radius:50%}

/* fiche d'un bien */
dialog#bienDlg{width:min(780px,calc(100vw - 24px));max-height:92dvh}
.bien-pop{display:flex;flex-direction:column;gap:16px;padding:28px 30px 26px}
.bp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.bp-head h2{font-size:2rem;letter-spacing:-.04em;margin:6px 0 4px}
.bp-head .bp-x{width:40px;height:40px;padding:0;display:grid;place-items:center;border-radius:50%}
.bien-pop h3{margin-top:8px;font-size:1rem}
.bien-pop h4{margin-bottom:10px}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.fact{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:var(--r-m);background:var(--creux)}
.fact span{font-size:.78rem;font-weight:500;color:var(--texte-2)}
.fact strong{font-size:1.02rem;font-weight:600}
.tenant{display:grid;gap:2px;padding:14px 16px;border-radius:var(--r-m);background:var(--creux)}
.bp-add{padding:16px 18px;border-radius:var(--r-m);background:var(--creux)}
.bp-add .fields{margin-bottom:12px}
.bien-docs{display:grid;gap:10px}
.bd-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.bien-pop .dfoot{position:sticky;bottom:0;z-index:2;margin:4px -30px -26px;padding:14px 30px 18px;background:var(--carte);border-top:1px solid var(--filet)}
@media (max-width:560px){.bien-pop{padding:22px 16px}.bp-head h2{font-size:1.6rem}.bien-pop .dfoot{margin:4px -16px -22px;padding:12px 16px 16px}}

/* baux */
.bail-h{margin:22px 0 8px;font-size:1.1rem;letter-spacing:-.02em}
.bail-h:first-child{margin-top:0}
.bail-recap ul{margin:8px 0 0;padding-left:20px}
.bail-recap li{margin:3px 0}
.bail-recap .panel{margin:12px 0}

/* états des lieux */
.edl-nom{flex:1;min-width:0;min-height:0;margin-right:8px;padding:4px 2px;border:0;border-bottom:1.5px dashed var(--filet-2);border-radius:0;background:none;font:600 1.2rem/1.2 var(--f);letter-spacing:-.02em}
.edl-nom:focus{box-shadow:none;border-bottom-style:solid;border-bottom-color:var(--bleu)}
.edl-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.edl-photos:empty{display:none}
.edl-ph{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:var(--r-m);background:var(--creux)}
.edl-ph img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:var(--creux-2)}
.edl-ph input{min-height:38px;padding:7px 10px;font-size:.88rem}
.sign{max-width:660px}
.sigwrap{position:relative;height:240px;overflow:hidden;border:2px dashed var(--filet-2);border-radius:var(--r-m);background:#fff;touch-action:none}
.sigwrap canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.sighint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#B6B6BF;font:500 1.3rem var(--f);pointer-events:none}
.sig-a{border:2px solid #F5A524}

/* espace locataire */
a.item.todo-i{flex-wrap:nowrap;gap:14px;margin-inline:-10px;padding:13px 10px;border-radius:var(--r-s);color:inherit;text-decoration:none}
a.item.todo-i:hover{background:var(--creux)}
.todo-i .dot{flex:none;width:9px;height:9px;border-radius:50%;background:#F5A524;box-shadow:0 0 0 4px var(--warn-bg)}
.todo-i.bad .dot{background:var(--bad);box-shadow:0 0 0 4px var(--bad-bg)}
.todo-i .go{flex:none;font-size:1.5rem;line-height:1;color:var(--texte-3)}
.tout-ok{display:flex;align-items:center;gap:16px}
.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.qa{display:flex;align-items:center;justify-content:flex-start;gap:14px;min-height:72px;padding:16px 18px;border-radius:var(--r);text-align:left;text-decoration:none!important;font:600 .97rem/1.25 var(--f);color:var(--texte);cursor:pointer;background:var(--carte);box-shadow:var(--anneau)}
.qa svg{flex:none;width:40px;height:40px;padding:9px;border-radius:12px;background:var(--bleu-c);color:var(--bleu-t)}
.qa:first-child{background:var(--noir);color:#fff}
.qa:first-child svg{background:rgba(255,255,255,.12);color:#fff}
.qa:hover:not(:disabled){transform:translateY(-2px)}
.dossier .bar{margin:2px 0 4px}
.pc{align-items:center}
.pcact{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.dossier-resume{margin-bottom:10px;padding:12px 14px;border-radius:var(--r-m);background:var(--creux)}
[data-push]{grid-template-columns:1fr auto;align-items:center;column-gap:18px;row-gap:4px}
[data-push]>h3,[data-push]>p{grid-column:1}
[data-push]>[data-push-btn]{grid-column:2;grid-row:1/3}
@media (max-width:720px){
  .quick{gap:8px}
  .qa{flex-direction:column;justify-content:center;gap:8px;min-height:96px;padding:14px 6px;text-align:center;font-size:.8rem}
  [data-push]{grid-template-columns:1fr}
  [data-push]>[data-push-btn]{grid-column:1;grid-row:auto}
  [data-push]>[data-push-btn] button,.banner button{width:100%}
  .item>.date{flex:1 0 100%;min-width:0;margin-bottom:-6px}
  .item.loy{display:grid;grid-template-columns:1fr auto;gap:4px 12px}
  .item.loy>button{grid-column:1/-1;justify-self:start;margin-left:-10px}
}

/* formules et paiement */
.su-per{display:flex;gap:3px;padding:3px;border-radius:var(--r-s);background:var(--creux)}
.su-per button{flex:1;min-height:42px;padding:8px 6px;border-radius:9px;background:none;box-shadow:none;color:var(--texte-2);line-height:1.15}
.su-per button.on{background:var(--carte);color:var(--texte);font-weight:600;box-shadow:0 1px 3px rgba(10,10,20,.1)}
.su-per em,.tf-switch em{display:block;width:max-content;margin:2px auto 0;padding:1px 7px;border-radius:99px;background:var(--bleu-c);color:var(--bleu-t);font-style:normal;font-size:.7rem;font-weight:600}
.su-plans{display:grid;gap:8px}
.su-plan{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--r-s);cursor:pointer;background:var(--carte);box-shadow:var(--anneau)}
.su-plan:has(input:checked){box-shadow:0 0 0 2px var(--bleu);background:var(--bleu-c)}
.su-plan span{flex:1;display:flex;flex-direction:column;min-width:0}
.su-plan b{font-weight:600}
.su-plan small{font-size:.82rem;color:var(--texte-2)}
.su-plan i{font-style:normal;font-weight:600;white-space:nowrap}
.su-cgv{display:flex;align-items:flex-start;gap:10px;font-size:.86rem;line-height:1.4;color:var(--texte-2);cursor:pointer}
.su-cgv input{margin-top:1px}
.paywall{max-width:580px!important}
.panel.verrou{max-width:580px!important;justify-items:center;text-align:center}

/* double authentification */
.mfa-page{min-height:100dvh;display:grid;place-items:center;margin:0 calc(-1*var(--g));padding:28px 14px}
.mfa-card{width:min(440px,100%);gap:12px;padding:32px 28px;text-align:center;box-shadow:var(--ombre)}
.mfa-card::before{content:"";justify-self:center;width:52px;height:52px;border-radius:16px;background:var(--noir) linear-gradient(#3B5BFF,#3B5BFF) center/18px 18px no-repeat;margin-bottom:4px}
.mfa-card .row{justify-content:center}
.mfa-card ol{text-align:left}
.mfa-t{margin:14px 0 6px;font-size:1rem}
.mfa p{margin:4px 0 8px}
.mfa-steps{margin:8px 0;padding-left:22px;line-height:1.5}
.mfa-steps li{margin:6px 0}
.mfa-qr{display:flex;justify-content:center;margin:10px 0;padding:12px;border-radius:var(--r-m);background:#fff;box-shadow:var(--anneau)}
.mfa-qr img{width:230px;height:230px;image-rendering:pixelated;background:#fff}
.mfa-key{display:inline-block;margin-top:4px;padding:4px 8px;border-radius:var(--r-xs);background:var(--creux);letter-spacing:.08em;word-break:break-all;user-select:all}
.mfa-form{display:flex;gap:10px;margin:6px 0}
.mfa-form input,#mfaLCode{flex:1;min-width:0;padding:12px;font:600 1.8rem/1 var(--f);letter-spacing:.3em;text-align:center}

/* pages légales */
dialog.legal-dlg{width:min(740px,calc(100vw - 24px));max-height:90dvh;overflow:hidden}
.legal-in{display:flex;flex-direction:column;max-height:90dvh}
.legal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid var(--filet)}
.legal-head h2{font-size:1.4rem}
.legal-head button{flex:none;width:40px;height:40px;padding:0;display:grid;place-items:center;border-radius:50%}
.legal-body{padding:8px 24px 20px;overflow:auto;line-height:1.6;font-size:.96rem}
.legal-body h3{margin:20px 0 4px;font-size:1.02rem}
.legal-body p{margin:6px 0}
.legal-foot{display:flex;flex-wrap:wrap;gap:6px 18px;padding:12px 24px;border-top:1px solid var(--filet);font-size:.86rem}
mark.lg-todo{padding:0 4px;border-radius:4px;background:#FFE58A;color:#0A0A0B}

/* assistant */
.ia-fil{display:flex;flex-direction:column;gap:10px;max-height:min(52vh,520px);margin:12px 0;padding:4px 2px;overflow-y:auto}
.ia-m{display:flex;flex-direction:column;gap:6px;max-width:88%;padding:12px 15px;border-radius:18px;line-height:1.5}
.ia-m.user{align-self:flex-end;background:var(--bleu);color:#fff;border-bottom-right-radius:6px}
.ia-m.assistant{align-self:flex-start;background:var(--creux);border-bottom-left-radius:6px}
.ia-m.bad{background:var(--bad-bg);color:var(--bad)}
.ia-t{white-space:pre-wrap;overflow-wrap:anywhere}
.ia-m button{align-self:flex-start}
.ia-idees{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ia-idees button{height:auto;padding:10px 14px;text-align:left;white-space:normal}
.ia-saisie{display:flex;align-items:flex-end;gap:10px}
.ia-saisie textarea{flex:1;min-width:0}
@media (max-width:720px){.ia-m{max-width:96%}.ia-saisie{flex-direction:column;align-items:stretch}.ia-fil{max-height:46vh}}

/* lecture seule : les actions de modification disparaissent */
body.ro #app .primary,body.ro #app [data-act^="add"],body.ro #app [data-act^="edit"],body.ro #app [data-act^="del"],body.ro #app [data-act^="gen"],body.ro #app [data-act^="paye"],body.ro #app [data-act^="rev"]:not([data-act="revLettre"]),body.ro #app [data-act^="regul"],body.ro #app [data-act="relance"],body.ro #app [data-act^="lec"],body.ro #app [data-act^="edlNew"]{display:none!important}
body.ro #app [data-act="fiscalCsv"]{display:inline-flex!important}

/* apparition des pages : un seul mouvement discret */
@media (prefers-reduced-motion:no-preference){
  #app.enter>*{animation:pageIn .38s cubic-bezier(.2,.8,.2,1) both}
  #app.enter>:nth-child(2){animation-delay:.04s}#app.enter>:nth-child(3){animation-delay:.08s}#app.enter>:nth-child(n+4){animation-delay:.12s}
}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ==========================================================================
   PAGE D'ACCUEIL ET CONNEXION
   ========================================================================== */
.landing{position:fixed;inset:0;z-index:60;overflow-y:auto;overflow-x:hidden;background:#F5F5F7;color:#0A0A0B;scroll-behavior:smooth;
  --fond:#F5F5F7;--carte:#fff;--carte-2:#FAFAFB;--creux:#EFEFF3;--texte:#0A0A0B;--texte-2:#6E6E78;--texte-3:#9A9AA3;--filet:#E6E6EB;--filet-2:#D4D4DC;--bleu:#3B5BFF;--bleu-f:#2A47E6;--bleu-c:#EEF1FF;--bleu-t:#3049D9;--noir:#0A0A0B;--bad:#E5343D;--bad-bg:#FFF1F1;--warn-bg:#FFF4DC;
  --anneau:0 1px 2px rgba(10,10,20,.04),0 0 0 1px rgba(10,10,20,.045)}
.landing .mark{background:#0A0A0B}
.ld-in{width:min(1200px,calc(100% - 80px));margin-inline:auto}
.landing h2{font:600 clamp(2.2rem,4.6vw,3.9rem)/1.02 var(--f);letter-spacing:-.05em;max-width:18ch}
.landing h3{font:600 1.25rem/1.25 var(--f);letter-spacing:-.025em}

/* boutons */
.landing .ld-btn,.landing .ld-ghost{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:var(--r-s);font:600 .95rem/1 var(--f);white-space:nowrap}
.landing .ld-btn{background:var(--bleu);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 8px 20px rgba(59,91,255,.3)}
.landing .ld-btn:hover{background:var(--bleu-f)}
.landing .ld-btn.light{background:#0A0A0B;box-shadow:none}
.landing .ld-btn.light:hover{background:#2A2A2E}
.landing .ld-ghost{background:#fff;color:#0A0A0B;box-shadow:var(--anneau)}
.landing .ld-ghost:hover{background:#FAFAFB}
.landing .ld-btn.big,.landing .ld-ghost.big{padding:16px 24px;font-size:1rem}

/* barre du haut */
.ld-nav{position:sticky;top:0;z-index:70;transition:background-color .2s,box-shadow .2s}
.ld-nav .ld-in{display:flex;align-items:center;gap:28px;height:72px}
.ld-logo{display:flex;align-items:center;gap:10px;margin-right:auto;color:#0A0A0B;text-decoration:none!important;font:700 1.2rem/1 var(--f);letter-spacing:-.03em}
.ld-links{display:flex;gap:26px}
.ld-links a{color:var(--texte-2);font-size:.94rem;font-weight:500;text-decoration:none!important}
.ld-links a:hover{color:#0A0A0B}
.ld-cta{display:flex;align-items:center;gap:8px}
.landing.scrolled .ld-nav{background:rgba(245,245,247,.82);-webkit-backdrop-filter:saturate(1.6) blur(18px);backdrop-filter:saturate(1.6) blur(18px);box-shadow:0 1px 0 var(--filet)}

/* héros : titre centré, la photo de Castres dans une grande carte */
.ld-hero{padding:76px 0 0;text-align:center}
.ld-hero h1{font:600 clamp(3.2rem,8.2vw,7rem)/.96 var(--f);letter-spacing:-.06em;margin:0}
.ld-hero h1+p{max-width:36ch;margin:26px auto 0;font-size:1.22rem;line-height:1.5;color:var(--texte-2)}
.ld-actions{display:flex;flex-wrap:wrap;gap:10px}
.ld-hero .ld-actions{justify-content:center;margin-top:34px}
.ld-note{margin-top:14px;font-size:.9rem;color:var(--texte-3)}
.ld-show{position:relative;margin:64px auto 0;max-width:1200px}
.ld-show picture,.ld-show img{display:block;width:100%}
.ld-show img{height:min(620px,56vw);object-fit:cover;object-position:60% 45%;border-radius:32px;box-shadow:0 40px 100px rgba(10,10,25,.18)}
.ld-card{position:absolute;display:grid;gap:4px;text-align:left;border-radius:22px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(1.6) blur(22px);backdrop-filter:saturate(1.6) blur(22px);box-shadow:0 24px 60px rgba(10,10,25,.22),0 0 0 1px rgba(255,255,255,.6)}
.ld-card.a{left:-28px;bottom:48px;width:290px;padding:20px 22px}
.ld-card.a>span{font-size:.84rem;color:var(--texte-2)}
.ld-card.a b{font:600 2.6rem/1 var(--f);letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.ld-bar{display:block;height:8px;margin:12px 0 10px;border-radius:99px;background:#E6E6EB;overflow:hidden}
.ld-bar i{display:block;height:100%;border-radius:99px;background:var(--bleu)}
.ld-card.a div{display:flex;justify-content:space-between;font-size:.88rem;font-weight:500}
.ld-card.b{right:-24px;top:56px;display:flex;align-items:center;gap:12px;padding:14px 18px 14px 14px}
.ld-ok{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#E8F8EE;color:#17803F;font-weight:700}
.ld-card.b b{display:block;font-weight:600}
.ld-card.b span{font-size:.86rem;color:var(--texte-2)}
@media (prefers-reduced-motion:no-preference){
  .ld-hero h1,.ld-hero h1+p,.ld-hero .ld-actions,.ld-note{animation:ldIn .7s cubic-bezier(.2,.8,.2,1) both}
  .ld-hero h1+p{animation-delay:.08s}.ld-hero .ld-actions{animation-delay:.16s}.ld-note{animation-delay:.22s}
  .ld-show{animation:ldShow 1s .25s cubic-bezier(.2,.8,.2,1) both}
  .ld-card.a{animation:ldIn .7s .9s cubic-bezier(.2,.8,.2,1) both}
  .ld-card.b{animation:ldIn .7s 1.05s cubic-bezier(.2,.8,.2,1) both}
}
@keyframes ldIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes ldShow{from{opacity:0;transform:translateY(40px) scale(.97)}to{opacity:1;transform:none}}

/* sections */
.ld-sec{padding:140px 0 0}
.ld-head{margin-bottom:48px}
.ld-head p{max-width:52ch;margin-top:18px;font-size:1.15rem;line-height:1.5;color:var(--texte-2)}
.ld-head.center{text-align:center}
.ld-head.center h2,.ld-head.center p{margin-inline:auto}

/* fonctionnalités : grille en mosaïque */
.bento{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.bx{display:flex;flex-direction:column;gap:10px;min-height:250px;padding:26px;border-radius:26px;background:#fff;box-shadow:var(--anneau)}
.bx.w2{grid-column:span 2}
.bx-i{display:grid;place-items:center;width:46px;height:46px;margin-bottom:auto;border-radius:14px;background:var(--bleu-c);color:var(--bleu-t)}
.bx-i svg{width:24px;height:24px}
.bx h3{margin-top:24px;max-width:22ch}
.bx p{color:var(--texte-2);line-height:1.5;max-width:46ch}
.bx.dark{background:#0A0A0B;color:#fff}
.bx.dark p{color:rgba(255,255,255,.62)}
.bx.dark .bx-i{background:rgba(255,255,255,.1);color:#fff}
.bx.accent{background:var(--bleu);color:#fff;box-shadow:0 20px 40px rgba(59,91,255,.25)}
.bx.accent p{color:rgba(255,255,255,.78)}
.bx.accent .bx-i{background:rgba(255,255,255,.16);color:#fff}
.bx.dark{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr auto auto;column-gap:22px}
.bx.dark>.bx-i,.bx.dark>h3,.bx.dark>p{grid-column:1}
.bx.dark>.bx-i{grid-row:1}
.bx.dark>h3{grid-row:3}
.bx.dark>p{grid-row:4}
.bx-ui{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.bx-ui:nth-of-type(1){grid-row:1/3;align-self:end}
.bx-ui:nth-of-type(2){grid-row:3/5;align-self:start;margin-top:10px}
.bx-ui span{display:block;font-size:.8rem;color:rgba(255,255,255,.55)}
.bx-ui b{font-size:1.25rem;font-weight:600;letter-spacing:-.03em}
.bx-ui em{padding:4px 10px;border-radius:99px;background:rgba(255,255,255,.1);font-style:normal;font-size:.78rem;font-weight:600}
.bx-ui em.ok{background:#E8F8EE;color:#17803F}
.bx-bars{display:flex;align-items:flex-end;gap:6px;height:84px;margin-top:16px}
.bx-bars i{flex:1;border-radius:8px;background:#EFEFF3}
.bx-bars i.on{background:var(--bleu)}

/* deux espaces */
.sp-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sp-card{display:flex;flex-direction:column;gap:22px;padding:36px;border-radius:28px;background:#fff;box-shadow:var(--anneau)}
.sp-card h3{font-size:1.75rem;letter-spacing:-.04em}
.sp-card ul{display:grid;gap:12px;padding:0;list-style:none;font-size:1.04rem}
.sp-card li{display:flex;gap:12px;align-items:center}
.sp-card li::before{content:"";flex:none;width:20px;height:20px;border-radius:50%;background:var(--bleu-c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233049D9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat}
.sp-card button{align-self:flex-start;margin-top:auto}
.sp-card.dark{background:#0A0A0B;color:#fff}
.sp-card.dark li::before{background-color:rgba(255,255,255,.12);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")}
.landing .sp-card.dark .ld-btn.light{background:#fff;color:#0A0A0B}
.landing .sp-card.dark .ld-btn.light:hover{background:#EFEFF3}

/* tarifs */
.tf-switch{display:inline-flex;gap:3px;margin-top:28px;padding:3px;border-radius:var(--r-s);background:#E6E6EB}
.tf-switch button{min-height:42px;padding:8px 18px;border-radius:9px;background:none;box-shadow:none;color:var(--texte-2);font-weight:500;line-height:1.15}
.tf-switch button:hover:not(:disabled){background:none;box-shadow:none}
.tf-switch button.on{background:#fff;color:#0A0A0B;font-weight:600;box-shadow:0 1px 3px rgba(10,10,20,.1)}
.tf-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;align-items:stretch}
.tf-card{display:flex;flex-direction:column;gap:14px;padding:28px 24px 24px;border-radius:26px;background:#fff;box-shadow:var(--anneau)}
.tf-card.pop{background:#0A0A0B;color:#fff;box-shadow:0 30px 60px rgba(10,10,25,.2)}
.tf-badge{align-self:flex-start;order:-1;padding:4px 10px;border-radius:99px;background:var(--bleu);color:#fff;font-size:.78rem;font-weight:600}
.tf-card h3{font-size:1.25rem}
.tf-d{font-size:.94rem;line-height:1.45;color:var(--texte-2);min-height:2.9em}
.tf-card.pop .tf-d,.tf-card.pop .tf-price span{color:rgba(255,255,255,.6)}
.tf-price{display:flex;align-items:baseline;gap:6px;padding-bottom:18px;border-bottom:1px solid var(--filet)}
.tf-card.pop .tf-price{border-color:rgba(255,255,255,.14)}
.tf-price b{font:600 2.9rem/1 var(--f);letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.tf-price span{font-size:.92rem;color:var(--texte-2)}
.tf-card ul{display:grid;gap:10px;margin:2px 0 12px;padding:0;list-style:none;font-size:.93rem;line-height:1.4}
.tf-card li{position:relative;padding-left:26px}
.tf-card li::before{content:"";position:absolute;left:0;top:1px;width:17px;height:17px;border-radius:50%;background:var(--bleu-c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233049D9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat}
.tf-card.pop li::before{background-color:rgba(255,255,255,.12);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")}
.tf-card li.tf-off{color:var(--texte-3)}
.tf-card li.tf-off::before{background:var(--creux)}
.tf-soon{display:inline-block;margin-left:2px;padding:0 7px;border-radius:99px;background:#FFF4DC;color:#9A5B00;font-size:.7rem;font-weight:600;vertical-align:middle;white-space:nowrap}
.tf-card .ld-btn{width:100%;margin-top:auto}
.landing .tf-card .ld-btn.light{background:#fff;color:#0A0A0B;box-shadow:var(--anneau)}
.landing .tf-card .ld-btn.light:hover{background:#FAFAFB}
.tf-note{margin-top:22px;text-align:center;color:var(--texte-3);font-size:.92rem}

/* trois étapes */
.st-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:0;list-style:none}
.st-grid li{padding:30px 28px;border-radius:26px;background:#fff;box-shadow:var(--anneau)}
.st-grid b{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#0A0A0B;color:#fff;font-size:1.1rem;font-weight:600}
.st-grid h3{margin:26px 0 8px}
.st-grid p{color:var(--texte-2);line-height:1.5}

/* sécurité */
.sec-in{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;padding:56px;border-radius:32px;background:#0A0A0B;color:#fff}
.sec-in p{max-width:44ch;margin-top:20px;font-size:1.1rem;line-height:1.5;color:rgba(255,255,255,.62)}
.sec-list{display:grid;gap:10px;padding:0;list-style:none}
.sec-list li{display:flex;gap:14px;align-items:center;padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);font-weight:500}
.sec-list li::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;background:var(--bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat}

/* dernier appel */
.ld-final{padding:140px 0 0}
.fin-in{display:flex;flex-direction:column;align-items:center;gap:30px;padding:80px 40px;border-radius:32px;background:var(--bleu);color:#fff;text-align:center;box-shadow:0 40px 80px rgba(59,91,255,.25)}
.fin-in h2{max-width:16ch}
.fin-in .ld-actions{justify-content:center}
.landing .fin-in .ld-ghost{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.landing .fin-in .ld-ghost:hover{background:rgba(255,255,255,.22)}

/* pied de page */
.ld-foot{padding:70px 0 44px;font-size:.88rem;color:var(--texte-2)}
.ld-foot .ld-in{display:flex;align-items:center;flex-wrap:wrap;gap:14px 30px;padding-top:28px;border-top:1px solid var(--filet)}
.ld-foot .ld-logo{margin-right:0}
.ld-legal{display:flex;flex-wrap:wrap;gap:6px 22px;margin-right:auto}
.ld-legal a{color:var(--texte-2)}
.ld-copy{color:var(--texte-3)}

/* ---- fenêtre de connexion : photo à gauche, formulaire à droite ---- */
dialog.lg-dlg{width:min(900px,calc(100vw - 28px));max-height:94dvh;padding:0;border-radius:28px;overflow:hidden;color:#0A0A0B;background:#fff;
  --fond:#F5F5F7;--carte:#fff;--carte-2:#FAFAFB;--creux:#EFEFF3;--texte:#0A0A0B;--texte-2:#6E6E78;--texte-3:#9A9AA3;--filet:#E6E6EB;--filet-2:#D4D4DC;--bleu:#3B5BFF;--bleu-f:#2A47E6;--bleu-c:#EEF1FF;--bleu-t:#3049D9;--bad:#E5343D;--bad-bg:#FFF1F1;--warn-bg:#FFF4DC;
  --anneau:0 1px 2px rgba(10,10,20,.04),0 0 0 1px rgba(10,10,20,.045)}
.lg-x{position:absolute;top:14px;right:14px;z-index:3;display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;background:#F5F5F7;box-shadow:none}
.lg-x:hover:not(:disabled){background:#E6E6EB;box-shadow:none}
.lg-pane{display:none}
.lg-pane.on{display:grid;grid-template-columns:340px minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:560px;max-height:94dvh}
.lg-side{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;margin:10px 0 10px 10px;padding:28px;border-radius:20px;overflow:hidden;color:#fff;
  background:linear-gradient(180deg,rgba(10,10,20,0) 30%,rgba(10,10,20,.72)),url(fond-m.jpg) 60% 40%/cover}
.lg-side .mark{position:absolute;top:24px;left:24px;background:#fff}
.lg-side .lg-t{font:600 2.2rem/1 var(--f);letter-spacing:-.05em}
.lg-side p{font-size:.98rem;line-height:1.45;color:rgba(255,255,255,.85)}
.lg-pane[data-pane="signup"] .lg-side{background:linear-gradient(180deg,rgba(59,91,255,.15) 20%,rgba(42,71,230,.92)),url(fond-m.jpg) 30% 40%/cover}
.lg-main{display:flex;flex-direction:column;gap:14px;min-width:0;padding:46px 40px 34px;overflow-y:auto}
.lg-main h2{font:600 1.85rem/1.1 var(--f);letter-spacing:-.04em;padding-right:34px;max-width:none}
.lg-main>p.muted{margin-top:-4px}
.lg-pane form{display:flex;flex-direction:column;gap:14px;padding:0}
.lg-dlg .ld-submit{width:100%;min-height:50px;margin-top:4px;font-size:1rem}
.lg-alt{font-size:.92rem;color:var(--texte-2);text-align:center}
.lg-alt a{font-weight:600}
.lg-sep{display:flex;align-items:center;gap:12px;margin-top:6px;font-size:.86rem;color:var(--texte-3)}
.lg-sep::before,.lg-sep::after{content:"";flex:1;height:1px;background:var(--filet)}
.lg-dlg .lg-switch{width:100%;min-height:50px;background:#0A0A0B;color:#fff;font-weight:600;box-shadow:none}
.lg-dlg .lg-switch:hover:not(:disabled){background:#2A2A2E;box-shadow:none}
.lg-dlg .banner{margin-bottom:6px}

/* ---- tablette ---- */
@media (max-width:1100px){
  .ld-in{width:calc(100% - 56px)}
  .ld-links{display:none}
  .bento{grid-template-columns:1fr 1fr}
  .bx.w2{grid-column:1/-1}
  .tf-grid{grid-template-columns:1fr 1fr}
  .sec-in{grid-template-columns:1fr;gap:34px;padding:44px}
  .ld-card.a{left:16px}.ld-card.b{right:16px}
}
/* ---- téléphone ---- */
@media (max-width:760px){
  .ld-in{width:calc(100% - 32px)}
  .ld-nav .ld-in{height:62px;gap:8px}
  .landing .ld-nav .ld-btn,.landing .ld-nav .ld-ghost{padding:10px 12px;font-size:.86rem}
  .ld-hero{padding-top:44px}
  .ld-hero h1{font-size:clamp(2.9rem,14.5vw,4.6rem)}
  .ld-hero h1+p{font-size:1.06rem;margin-top:18px}
  .ld-hero .ld-actions{margin-top:26px}
  .ld-actions .ld-btn,.ld-actions .ld-ghost{flex:1 1 100%}
  .ld-show{margin-top:40px}
  .ld-show img{height:420px;border-radius:24px;object-position:50% 50%}
  .ld-card.a{left:12px;right:12px;bottom:12px;width:auto;padding:16px 18px}
  .ld-card.a b{font-size:2.1rem}
  .ld-card.b{right:12px;top:12px;left:auto;padding:10px 14px 10px 10px}
  .ld-card.b span{display:none}
  .ld-sec,.ld-final{padding-top:90px}
  .ld-head{margin-bottom:30px}
  .ld-head p{font-size:1.04rem}
  .bento{grid-template-columns:1fr;gap:10px}
  .bx{min-height:0;padding:22px;border-radius:22px}
  .bx h3{margin-top:18px}
  .bx.dark{display:flex}
  .bx-ui:nth-of-type(1){margin-top:16px}
  .sp-grid,.tf-grid,.st-grid{grid-template-columns:1fr;gap:10px}
  .sp-card{padding:26px 22px;border-radius:24px}
  .sp-card h3{font-size:1.5rem}
  .tf-switch{display:flex}.tf-switch button{flex:1;padding:8px 6px}
  .tf-d{min-height:0}
  .sec-in{padding:30px 22px;border-radius:24px}
  .fin-in{padding:50px 22px;border-radius:24px}
  .ld-foot{padding-top:50px}
  dialog.lg-dlg{width:100vw;max-width:100vw;max-height:96dvh;margin:auto 0 0;border-radius:24px 24px 0 0}
  .lg-pane.on{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);min-height:0;max-height:96dvh}
  .lg-side{margin:8px 8px 0;min-height:130px;padding:20px;border-radius:18px}
  .lg-side .mark{top:16px;left:16px}
  .lg-side .lg-t{font-size:1.7rem}
  .lg-side p{display:none}
  .lg-main{padding:22px 18px calc(22px + env(safe-area-inset-bottom,0px))}
  .lg-main h2{font-size:1.5rem;padding-right:0}
  .lg-x{top:16px;right:16px;background:rgba(255,255,255,.85)}
}

/* ---- ajustements : marque, colonne compacte, chiffres sur téléphone ---- */
.brand{align-items:baseline}
.brand::before{align-self:center}
#roleLabel{margin-left:2px;padding:3px 8px;border-radius:99px;background:var(--creux);font-size:.74rem;font-weight:500;line-height:1.2;align-self:center}
@media (min-width:1024px){
  #nav a{min-height:32px;padding:6px 12px}
  #nav .ddbtn{padding:13px 12px 4px}
  #topbar .top>.row{flex-wrap:nowrap;align-items:center}
  #userEmail{order:0;flex:1 1 auto;padding:0 6px 0 4px}
  #btnLogout{margin-left:0}
  #btnLogout .lbl{display:none}
}
@media (max-width:1023.98px){#roleLabel{display:none}}
@media (max-width:720px){.tile .v{font-size:clamp(1.25rem,6.2vw,1.6rem);white-space:nowrap;overflow-wrap:normal}}
.brand h1{flex:none;overflow:visible}
@media (min-width:1024px){#roleLabel{margin-left:auto}}

/* page d'accueil : les blocs s'ajoutent au fil du défilement */
@media (prefers-reduced-motion:no-preference){
  .landing .rv{opacity:0;transform:translateY(34px) scale(.97);transition:opacity .7s cubic-bezier(.2,.8,.2,1),transform .8s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--i,0) * 90ms)}
  .landing .rv.in{opacity:1;transform:none}
  .landing .sec-list li.rv{transform:translateX(24px)}
  .landing .sec-list li.rv.in{transform:none}
  .landing .bx.rv .bx-bars i{transform:scaleY(0);transform-origin:bottom;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
  .landing .bx.rv.in .bx-bars i{transform:none}
  .landing .bx.rv.in .bx-bars i:nth-child(2){transition-delay:.35s}.landing .bx.rv.in .bx-bars i:nth-child(3){transition-delay:.42s}.landing .bx.rv.in .bx-bars i:nth-child(4){transition-delay:.49s}.landing .bx.rv.in .bx-bars i:nth-child(5){transition-delay:.56s}.landing .bx.rv.in .bx-bars i:nth-child(6){transition-delay:.63s}
  .landing .bx.rv .bx-ui{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
  .landing .bx.rv.in .bx-ui{opacity:1;transform:none;transition-delay:.4s}
  .landing .bx.rv.in .bx-ui:nth-of-type(2){opacity:.6;transition-delay:.55s}
}

/* ---- logo Gestilia : une maison bleue, sa fenêtre allumée ---- */
:root{--logo-cle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M17 30.5 32 18l15 12.5V45a2.5 2.5 0 0 1-2.5 2.5h-25A2.5 2.5 0 0 1 17 45z' fill='%233B5BFF'/%3E%3Crect x='27.5' y='32' width='9' height='9' rx='2.5' fill='%23FFD25E'/%3E%3C/svg%3E");--logo-inv:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M17 30.5 32 18l15 12.5V45a2.5 2.5 0 0 1-2.5 2.5h-25A2.5 2.5 0 0 1 17 45z' fill='%233B5BFF'/%3E%3Crect x='27.5' y='32' width='9' height='9' rx='2.5' fill='%23FFD25E'/%3E%3C/svg%3E")}
.mark{background:var(--noir) var(--logo-cle) center/100% no-repeat}
.mark::after{content:none}
.landing .mark{background-color:#0A0A0B}
.lg-side .mark{background-color:#fff}
html[data-theme="dark"] .mark{background-color:#fff}
.brand::before,html[data-theme="dark"] .brand::before{background:var(--noir) var(--logo-cle) center/100% no-repeat}
html[data-theme="dark"] .brand::before{background-color:#fff}
.empty::before,.mfa-card::before{background:var(--noir) var(--logo-cle) center/100% no-repeat}
html[data-theme="dark"] .empty::before{background-color:#fff}
.sp-m{background:var(--noir) var(--logo-cle) center/100% no-repeat}
.sp-m::after{content:none}
html[data-theme="dark"] .sp-m{background-color:#fff}
@media (prefers-reduced-motion:no-preference){.sp-m{animation:spPop .5s cubic-bezier(.2,.9,.25,1.2) both,spTurn .5s .45s cubic-bezier(.4,0,.2,1) both}}
@keyframes spTurn{from{background-size:100%}50%{background-size:84%}to{background-size:100%}}
.landing .mark,.lg-side .mark{background-image:var(--logo-cle);background-size:100%;background-position:center;background-repeat:no-repeat}

html[data-theme="dark"] .mark,html[data-theme="dark"] .brand::before,html[data-theme="dark"] .empty::before,html[data-theme="dark"] .sp-m,.lg-side .mark{background-image:var(--logo-inv)}

/* accueil : exemples concrets, critères des formules, touche humaine */
.bx-demo{display:grid;gap:7px;margin-top:14px;padding:14px 16px;border-radius:16px;background:#F5F5F8;font-size:.88rem}
.bx-demo>div:not(.bx-chips){display:flex;justify-content:space-between;align-items:center;gap:10px}
.bx-demo span{color:var(--texte-2)}
.bx-demo b{font-weight:600;font-variant-numeric:tabular-nums}
.bx-demo b.ok{color:#17803F}
.bx-eg{font-style:normal;font-size:.74rem;font-weight:600;color:var(--texte-3)}
.bx-chips{display:flex;flex-wrap:wrap;gap:8px}
.bx-chips i{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;background:#fff;box-shadow:var(--anneau);font-style:normal;font-weight:500;font-size:.86rem}
.bx-chips i::before{content:"✓";color:#17803F;font-weight:700}
.bx.accent .bx-demo{background:rgba(255,255,255,.16)}
.bx.accent .bx-demo span,.bx.accent .bx-eg{color:rgba(255,255,255,.8)}
.bx.accent .bx-demo b.ok{color:#fff}
.bx.human{background:var(--bleu-c)}
.bx-mail{align-self:flex-start;margin-top:10px;padding:10px 18px;border-radius:99px;background:#0A0A0B;color:#fff;font-weight:600;text-decoration:none}
.bx-mail:hover{opacity:.88}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tf-card li.no{color:var(--texte-3)}
.tf-card li.no::before{background:var(--creux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/10px no-repeat}
.tf-card.pop li.no{color:rgba(255,255,255,.42)}
.tf-card.pop li.no::before{background-color:rgba(255,255,255,.07);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.5' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E")}
.tf-card li.yes b{font-weight:600}
.bx-ui em{white-space:nowrap}

.tf-shot{display:grid;gap:6px;padding:12px 14px;border-radius:14px;background:#F5F5F8;font-size:.84rem}
.tf-shot>div{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tf-shot span{color:var(--texte-2)}.tf-shot b{font-weight:600}.tf-shot b.ok{color:#17803F}
.tf-shot p{margin:0;padding:7px 10px;border-radius:12px;line-height:1.35}
.tf-shot p.u{justify-self:end;max-width:92%;background:var(--bleu);color:#fff}
.tf-shot p.a{max-width:96%;background:#fff;box-shadow:var(--anneau);color:var(--texte-2)}
.tf-card.pop .tf-shot{background:rgba(255,255,255,.08)}
.tf-card.pop .tf-shot span{color:rgba(255,255,255,.6)}.tf-card.pop .tf-shot b.ok{color:#7BE0A0}
.tf-all{margin:0 0 10px;font-size:.9rem}
.tf-all summary{cursor:pointer;font-weight:600;color:var(--bleu-t);list-style:none;padding:6px 0}
.tf-all summary::-webkit-details-marker{display:none}
.tf-all summary::after{content:" +"}.tf-all[open] summary::after{content:" −"}
.tf-card.pop .tf-all summary{color:#9DB0FF}
.tf-all ul{margin-top:8px}

/* aide en ligne (accueil) */
.aide-fab{position:fixed;right:20px;bottom:20px;z-index:70;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;border-radius:99px;background:#0A0A0B;color:#fff;font-weight:600;box-shadow:0 12px 34px rgba(10,10,25,.3)}
.aide-fab:hover:not(:disabled){background:#26262b}
.aide-fab.on{display:none}
.aide-panel{position:fixed;right:20px;bottom:20px;z-index:71;display:flex;flex-direction:column;gap:10px;width:min(390px,calc(100vw - 24px));max-height:min(640px,calc(100dvh - 40px));padding:16px;border-radius:22px;background:#fff;color:#0A0A0B;box-shadow:0 30px 80px rgba(10,10,25,.35),0 0 0 1px rgba(10,10,25,.06)}
.aide-panel[hidden]{display:none}
.aide-h{display:flex;justify-content:space-between;align-items:center;font-size:1.05rem}
.aide-h button{min-height:36px;width:36px;padding:0;border-radius:99px;background:#F1F1F4;color:#0A0A0B;box-shadow:none}
.aide-note{margin:0;font-size:.8rem;line-height:1.4;color:var(--texte-2)}
.aide-fil{flex:1;min-height:120px;max-height:none;margin:0}
.aide-fil .ia-m.user{background:#0A0A0B}
.aide-saisie{display:flex;gap:8px}
.aide-saisie input{flex:1;min-width:0}
.aide-hum{display:grid;gap:8px;overflow-y:auto}
.aide-hum label{display:grid;gap:4px;font-size:.84rem;font-weight:500}
.aide-hum[hidden],.aide-saisie[hidden],.aide-hbtn[hidden]{display:none}
.aide-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.aide-hbtn{align-self:flex-start;font-size:.86rem}
@media (max-width:560px){.aide-panel{right:8px;left:8px;bottom:8px;width:auto;max-height:calc(100dvh - 16px)}.aide-fab{right:14px;bottom:14px}}
/* messagerie : boîte de réception */
.sup-grid{display:grid;grid-template-columns:minmax(240px,330px) minmax(0,1fr);gap:14px;align-items:start}
.sup-liste{display:grid;gap:8px}
.sup-li{position:relative;display:grid;gap:3px;text-align:left;padding:12px 14px 12px 22px;border-radius:14px;background:var(--carte);box-shadow:var(--anneau);min-height:0}
.sup-li.on{box-shadow:0 0 0 2px var(--bleu)}
.sup-dot{position:absolute;left:9px;top:17px;width:8px;height:8px;border-radius:50%;background:var(--bleu)}
.sup-ia{margin:4px 0;font-size:.86rem;color:var(--texte-2)}
.sup-ia pre{white-space:pre-wrap;margin:6px 0 0;padding:10px;border-radius:12px;background:var(--creux);font:inherit}
@media (max-width:860px){.sup-grid{grid-template-columns:1fr}}

/* Aperçu du site et promesses (accueil) */
.ap-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;align-items:start}
.ap-fig{margin:0;display:flex;flex-direction:column;gap:14px}
.ap-fig img{display:block;width:100%;height:auto}
.ap-fig:not(.ap-phone){border-radius:22px;background:#fff;box-shadow:var(--anneau);overflow:hidden}
.ap-fig:not(.ap-phone) figcaption{padding:2px 24px 22px}
.ap-frame{display:flex;gap:6px;padding:12px 16px;background:var(--creux)}
.ap-frame i{width:9px;height:9px;border-radius:50%;background:var(--filet-2)}
.ap-fig figcaption{display:flex;flex-direction:column;gap:2px}
.ap-fig figcaption b{font-size:1.05rem;letter-spacing:-.01em}
.ap-fig figcaption span{color:var(--texte-2);font-size:.95rem;line-height:1.45}
.ap-main{grid-column:1/2}
.ap-phone{grid-column:2/3;grid-row:1/2;align-items:center;justify-content:center;text-align:center;border-radius:22px;background:var(--bleu-c);padding:28px 24px}
.ap-phone img{width:min(250px,70%);border-radius:30px;box-shadow:0 18px 50px rgba(10,10,11,.18),0 0 0 6px #0A0A0B}
.ap-phone figcaption{margin-top:12px}
.pq-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.pq{display:flex;flex-direction:column;gap:16px;padding:36px;border-radius:26px;background:#fff;box-shadow:var(--anneau)}
.pq h3{font-size:1.5rem;letter-spacing:-.02em}
.pq p{color:var(--texte-2);font-size:1.05rem;line-height:1.55;max-width:46ch}
.pq ul{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;list-style:none}
.pq li{position:relative;padding-left:26px;line-height:1.45}
.pq li::before{content:"✓";position:absolute;left:0;color:var(--ok);font-weight:700}
.pq .ld-btn,.pq .ld-ghost{align-self:flex-start;margin-top:auto}
.pq-prix{background:var(--noir);color:#fff}
.pq-prix li::before{color:#7DE0A0}
.pq-prix .ld-ghost{background:#fff}
.pq-big{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.pq-big b{font-size:clamp(3rem,6vw,4.6rem);line-height:1;letter-spacing:-.04em}
.pq-big span{color:#B9B9C3;font-size:1.05rem}
@media (max-width:860px){
  .ap-grid,.pq-grid{grid-template-columns:1fr}
  .ap-main,.ap-phone{grid-column:auto;grid-row:auto}
  .pq{padding:26px}
}
.pq-2{display:grid!important;grid-template-columns:1fr 1fr;gap:9px 22px!important}
.pq-prix .pq-n{color:#B9B9C3;font-size:.95rem;line-height:1.5;max-width:none}
@media (max-width:560px){.pq-2{grid-template-columns:1fr}}

/* Accueil : début plus riche, suite allégée */
.ld-pts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;margin:30px auto 0;padding:0;list-style:none;font-weight:500;color:var(--texte)}
.ld-pts li{position:relative;padding-left:24px}
.ld-pts li::before{content:"✓";position:absolute;left:0;color:var(--ok);font-weight:700}
.ld-show{margin-bottom:56px}
.ld-shot{position:absolute;left:50%;bottom:-56px;transform:translateX(-50%);width:62%;margin:0;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 30px 80px rgba(10,10,25,.28),0 0 0 1px rgba(10,10,25,.06)}
.ld-shot img{height:auto!important;border-radius:0!important;box-shadow:none!important;object-fit:initial!important}
@media (max-width:760px){.ld-shot{width:90%;bottom:-36px;border-radius:14px}.ld-show{margin-bottom:36px}.ld-pts{flex-direction:column;align-items:center;gap:8px}}

/* Accueil : la photo de Castres couvre tout l'écran puis s'efface en descendant */
.landing{--ph:1}
.ld-bg{position:sticky;top:0;height:100vh;height:100svh;margin-bottom:-100vh;margin-bottom:-100svh;z-index:0;pointer-events:none;opacity:var(--ph);overflow:hidden}
.ld-bg img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 45%}
.ld-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,12,28,.5) 0%,rgba(8,12,28,.28) 42%,rgba(8,12,28,.62) 100%)}
.landing>section,.landing>footer{position:relative;z-index:1}
.ld-hero{display:flex;flex-direction:column;justify-content:center;min-height:calc(100vh - 80px);min-height:calc(100svh - 80px);padding:24px 0 40px}
.ld-hero h1{color:#fff;text-shadow:0 2px 40px rgba(0,0,0,.25)}
.ld-hero h1+p{color:rgba(255,255,255,.9)}
.ld-hero .ld-note{color:rgba(255,255,255,.8)}
.ld-hero .ld-pts{color:#fff}
.ld-hero .ld-pts li::before{color:#8CE9AB}
.landing:not(.scrolled) .ld-logo{color:#fff}
.landing:not(.scrolled) .ld-links a{color:rgba(255,255,255,.88)}
.landing:not(.scrolled) .ld-links a:hover{color:#fff}
.landing:not(.scrolled) .ld-logo .mark{box-shadow:0 0 0 1px rgba(255,255,255,.35)}
@media (max-width:760px){.ld-hero{padding-top:12px}}

/* Comparatif des formules : un seul tableau lisible */
.ld-hero .ld-in{opacity:clamp(0,calc((var(--ph) - .3) * 3),1)}
.tf-seg{display:none}
.tf-wrap{max-width:1100px;margin:44px auto 0}
.tf-t{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border-radius:26px;box-shadow:var(--anneau);text-align:left}
.tf-t thead th,.tf-t thead td{position:sticky;top:80px;z-index:3;background:#fff;vertical-align:top;padding:22px 12px 18px;border-bottom:1px solid var(--filet)}
.tf-t thead td{border-top-left-radius:26px;width:34%}
.tf-t thead th:last-child{border-top-right-radius:26px}
.tf-t thead th{width:16.5%;text-align:center;font-weight:400}
.tf-t thead th.pop{background:var(--bleu-c)}
.tf-t th .tf-nom{display:block;font:600 1.05rem/1.2 var(--f);letter-spacing:-.02em}
.tf-t th .tf-d{display:block;margin:4px 0 0;min-height:2.6em;font-size:.8rem;line-height:1.3;color:var(--texte-2)}
.tf-t th .tf-price{display:block;margin:8px 0 12px;white-space:nowrap}
.tf-t th .tf-price b{font:600 1.5rem/1 var(--f);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.tf-t th .tf-price span{font-size:.8rem;color:var(--texte-2);margin-left:3px}
.tf-t th .tf-badge{display:block;width:max-content;margin:0 auto 6px;padding:1px 9px;border-radius:99px;background:var(--bleu);color:#fff;font-size:.7rem;font-weight:600}
.tf-t th .ld-btn,.tf-t th .ld-btn.light{padding:9px 10px;font-size:.82rem;white-space:normal;line-height:1.15}
.tf-t tbody th[scope=row]{padding:13px 12px 13px 20px;font-weight:500;font-size:.95rem;color:var(--texte);border-bottom:1px solid var(--filet)}
.tf-t tbody td{padding:13px 8px;text-align:center;border-bottom:1px solid var(--filet);font-size:.95rem}
.tf-t tbody td.c-pa{background:rgba(238,241,255,.55)}
.tf-t tr.tf-g th{padding:22px 20px 8px;font:600 .82rem/1 var(--f);color:var(--bleu-t);background:none;border-bottom:0}
.tf-t tbody:last-of-type tr:last-child>*{border-bottom:0}
.tf-y{color:var(--ok);font-weight:700;font-size:1.05rem}
.tf-n{color:var(--texte-3)}
.tf-t:not(.open) .tf-more{display:none}
.tf-moreb{display:block;margin:18px auto 0;padding:12px 22px;border-radius:var(--r-s);background:#fff;box-shadow:var(--anneau);font:600 .95rem/1 var(--f);color:#0A0A0B}
@media (max-width:760px){
  .tf-seg{display:flex;gap:3px;margin:28px auto 0;max-width:480px;padding:3px;border-radius:var(--r-s);background:#E6E6EB}
  .tf-seg button{flex:1;min-height:42px;padding:8px 4px;border-radius:9px;background:none;box-shadow:none;color:var(--texte-2);font-weight:500;font-size:.85rem}
  .tf-seg button.on{background:#fff;color:#0A0A0B;box-shadow:var(--anneau)}
  .tf-wrap{margin-top:16px}
  .tf-t .c-e,.tf-t .c-p,.tf-t .c-pa,.tf-t .c-pr{display:none}
  .tf-t[data-sel=e] .c-e,.tf-t[data-sel=p] .c-p,.tf-t[data-sel=pa] .c-pa,.tf-t[data-sel=pr] .c-pr{display:table-cell}
  .tf-t thead tr{display:block}
  .tf-t[data-sel=e] thead .c-e,.tf-t[data-sel=p] thead .c-p,.tf-t[data-sel=pa] thead .c-pa,.tf-t[data-sel=pr] thead .c-pr{display:block;width:auto}
  .tf-t thead td{display:none}
  .tf-t thead th{width:auto;top:60px;border-radius:26px 26px 0 0}
  .tf-t tbody th[scope=row]{padding:12px 8px 12px 16px;font-size:.9rem;width:62%}
  .tf-t tbody td{width:38%}
  .tf-t tr.tf-g th{padding:20px 16px 8px}
}
.tf-t th{white-space:normal;color:var(--texte);font-size:inherit}
.tf-t thead th{font-size:1rem}
.tf-t tbody tr:hover td{background:none}
.tf-t tbody td.c-pa,.tf-t tbody tr:hover td.c-pa{background:rgba(238,241,255,.55)}
.tf-t thead th .tf-d{color:var(--texte-2)}
.tf-t thead th .tf-price span{color:var(--texte-2)}
.tf-t{min-width:0}
@media (max-width:760px){
  .tf-t,.tf-t thead,.tf-t tbody{display:block}
  .tf-t tbody tr{display:flex;align-items:stretch}
  .tf-t tbody tr.tf-g{display:block}
  .tf-t tbody th[scope=row]{flex:1 1 auto;width:auto;display:flex;align-items:center}
  .tf-t tbody td{flex:0 0 34%;width:auto;display:none;align-items:center;justify-content:center}
  .tf-t[data-sel=e] tbody td.c-e,.tf-t[data-sel=p] tbody td.c-p,.tf-t[data-sel=pa] tbody td.c-pa,.tf-t[data-sel=pr] tbody td.c-pr{display:flex}
  .tf-t:not(.open) .tf-more{display:none}
}

/* Comparatif : en-têtes homogènes, colonne mise en avant continue */
.tf-t thead th{padding:18px 14px 20px}
.tf-t th .tf-top{display:flex;align-items:center;justify-content:center;height:24px;margin-bottom:6px}
.tf-t th .tf-top .tf-badge{display:inline-block;width:auto;margin:0}
.tf-t th .tf-d{height:2.7em;min-height:0;margin:2px 0 0}
.tf-t th .tf-price{display:block;height:2rem;margin:10px 0 14px;padding:0;border:0}
.tf-t th .ld-btn,.tf-t th .ld-btn.light{display:flex;width:100%;height:42px;padding:0 10px;align-items:center;justify-content:center;font-size:.9rem;white-space:nowrap}
.tf-t th .ld-btn.light{background:#0A0A0B;color:#fff;box-shadow:none}
.tf-t thead th.pop{background:var(--bleu-c)}
.tf-t tbody td.c-pa{background:var(--bleu-c)}
.tf-t tr.tf-g td{border-bottom:0}
.tf-t tbody td.c-pa,.tf-t tbody tr:hover td.c-pa{background:var(--bleu-c)}
@media (max-width:760px){
  .tf-t tr.tf-g{display:flex}
  .tf-t tr.tf-g th{flex:1 1 auto;display:flex;align-items:center}
  .tf-t tr.tf-g td{flex:0 0 34%;display:none}
  .tf-t[data-sel=e] tr.tf-g td.c-e,.tf-t[data-sel=p] tr.tf-g td.c-p,.tf-t[data-sel=pa] tr.tf-g td.c-pa,.tf-t[data-sel=pr] tr.tf-g td.c-pr{display:block}
  .tf-t th .tf-top{height:24px}
}
.tf-t tbody tr.tf-g td{padding:0;height:auto}

/* Logo, nom et bouton d'aide plus grands */
.ld-nav .ld-logo{gap:13px;font-size:1.6rem}
.ld-nav .ld-logo .mark{width:42px;height:42px;border-radius:12px}
.ld-nav .ld-logo .mark::after{inset:12.5px;border-radius:4px}
.ld-nav .ld-in{height:80px}
.aide-fab{right:24px;bottom:24px;min-height:60px;padding:0 26px;gap:10px;font-size:1.1rem}
.aide-fab svg{width:26px;height:26px}
@media (max-width:760px){.ld-nav .ld-logo{font-size:1.35rem;gap:10px}.ld-nav .ld-logo .mark{width:36px;height:36px;border-radius:10px}.ld-nav .ld-logo .mark::after{inset:11px}.ld-nav .ld-in{height:72px}}
@media (max-width:560px){.aide-fab{right:14px;bottom:14px;min-height:56px;padding:0 22px}}
