/* Suivi des interventions — thème Athome. Texte en Lexend (v171, conçue pour faciliter la lecture), titres en Fredoka ; polices auto-hébergées, licence SIL OFL. v171 audit lot L9 : « -latin-ext » déclaré AVANT « -latin » pour chaque famille (le dernier déclaré est essayé d'abord : « œ » est pris dans -latin, -latin-ext n'est plus téléchargé) */
@font-face{font-family:"Lexend";src:url("fonts/Lexend-latin-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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* v171 réparation (régression L9) : « ?v=171 » = même adresse que le preload de base.html, gardée en cache sans revalidation (un 304 sur une police préchargée bloquait le « load » de WebKit). Changer le numéro aux deux endroits si le fichier change. */
@font-face{font-family:"Lexend";src:url("fonts/Lexend-latin.woff2?v=171") 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}

:root{
  --bg:#f8f3f6;--card:#fff;--ink:#1d1d1f;--muted:#6e6e73;--line:rgba(100,44,68,.10);--field:#ddd0d7;
  --pri:#d1006f;--pri-hover:#b8005f;--pri-soft:#fce8f2;--pri-ink:#fff;
  --ok:#1d7a36;--ok-bg:#e9f7ee;--bad:#d70015;--bad-bg:#fff1f1;--warn:#b25000;--warn-bg:#fff5e6;
  --radius:18px;--radius-sm:12px;
  --shadow:0 1px 2px rgba(100,44,68,.06),0 8px 26px rgba(100,44,68,.09);
  --shadow-pop:0 14px 44px rgba(100,44,68,.20),0 2px 8px rgba(100,44,68,.08);
  --font:"Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-title:var(--font);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:15px;line-height:1.47;letter-spacing:-.011em;background:var(--bg);color:var(--ink);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11","ss03"}
a{color:var(--pri);text-decoration:none}
a:hover{text-decoration:underline}
main{max-width:1180px;margin:0 auto;padding:28px 20px 48px}
h1{font-size:2rem;line-height:1.15;font-weight:700;letter-spacing:-.028em;margin:.1em 0 .7em}
h2{font-size:1.2rem;font-weight:650;letter-spacing:-.02em;margin:0 0 .8em}
h3{font-size:1rem;font-weight:650;letter-spacing:-.015em;margin:1.4em 0 .6em}
::selection{background:#f9cfe3}
input[type=checkbox],input[type=radio]{accent-color:var(--pri)}

/* ---------- Barre du haut ---------- */
.top{position:sticky;top:0;z-index:50;background:rgba(255,251,253,.78);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top,0px)}
.top-inner{max-width:1180px;margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:18px}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:650;font-size:1rem;letter-spacing:-.02em;white-space:nowrap}
.brand:hover{text-decoration:none}
.logo{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(180deg,#ec047c,#c8006a);box-shadow:0 1px 3px rgba(209,0,111,.35)}
.logo svg{width:18px;height:18px}
.tabs{display:flex;gap:2px;padding:3px;margin:0 auto;background:rgba(0,0,0,.05);border-radius:999px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs a{position:relative;padding:6px 14px;border-radius:999px;color:var(--ink);opacity:.78;font-size:.9rem;font-weight:500;white-space:nowrap;transition:background .15s,opacity .15s}
.tabs a:hover{opacity:1;text-decoration:none;background:rgba(255,255,255,.55)}
.tabs a.active{opacity:1;background:#fff;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)}
.account{display:flex;align-items:center;gap:12px;white-space:nowrap}
.avatar{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:.88rem;font-weight:500}
.avatar:hover{text-decoration:none}
.avatar span.initials{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e8e8ed;color:#424245;font-size:.72rem;font-weight:700;letter-spacing:0}
.avatar.active span.initials{background:var(--pri);color:#fff}
.top .link{color:var(--muted);font-size:.85rem}
.top .link:hover{color:var(--ink)}

/* ---------- Cartes, textes ---------- */
.card{background:var(--card);border-radius:var(--radius);padding:22px;margin:0 0 18px;box-shadow:var(--shadow)}
.narrow{max-width:520px;margin-left:auto;margin-right:auto}
.muted{color:var(--muted)}
.small{font-size:.84rem}
.bad{color:var(--bad)}
.nowrap{white-space:nowrap}
.inline{display:inline}
.wide{width:100%}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.76rem;word-break:break-all;color:#515154}

/* ---------- Formulaires ---------- */
label{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;font-size:.82rem;font-weight:500;color:var(--muted)}
label.check{flex-direction:row;align-items:center;gap:9px;color:var(--ink);font-size:.92rem;font-weight:400}
label.check>input{flex-shrink:0}
input,select,textarea{font:inherit;letter-spacing:inherit;padding:9px 12px;border:1px solid var(--field);border-radius:10px;background:#fff;color:var(--ink);
  min-height:42px;max-width:100%;transition:border-color .15s,box-shadow .15s}
input::placeholder,textarea::placeholder{color:#a1a1a6}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--pri);box-shadow:0 0 0 4px rgba(209,0,111,.16)}
select{-webkit-appearance:none;appearance:none;padding-right:34px;
  background:#fff 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='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center}
textarea{min-height:80px}
input[type=checkbox]{min-height:auto;width:20px;height:20px;margin:0;box-shadow:none}
input[type=search]{-webkit-appearance:none;appearance:none}

/* ---------- Boutons (pilules) ---------- */
button,.btn{font:inherit;letter-spacing:inherit;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 18px;min-height:40px;
  border:0;border-radius:999px;background:#e8e8ed;color:var(--ink);font-weight:500;cursor:pointer;text-decoration:none;transition:background .15s,transform .05s}
button:hover,.btn:hover{background:#dedee3;text-decoration:none}
button:active,.btn:active{transform:scale(.98)}
button:focus-visible,.btn:focus-visible,.tabs a:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(209,0,111,.28)}
button.primary,.btn.primary,.btn.next{background:var(--pri);color:var(--pri-ink)}
button.primary:hover,.btn.primary:hover,.btn.next:hover{background:var(--pri-hover)}
button.danger{background:var(--bad-bg);color:var(--bad)}
button.danger:hover{background:#ffe2e2}
button.ghost{background:transparent;color:var(--muted)}
button.ghost:hover{background:rgba(0,0,0,.05);color:var(--ink)}
button.link{background:none;padding:0;min-height:0;border-radius:0;color:var(--pri);font-weight:500}
button.link:hover{background:none;text-decoration:underline}
button:disabled{opacity:.4;cursor:not-allowed;transform:none}
button.small,.btn.small{padding:5px 13px;min-height:32px;font-size:.84rem}
.round{width:46px;height:46px;border-radius:50%;padding:0;font-size:1.35rem;font-weight:400}

/* ---------- Messages, pastilles ---------- */
.flash{padding:12px 16px;border-radius:var(--radius-sm);margin:0 0 14px;background:#fff;box-shadow:var(--shadow);font-size:.93rem}
.flash.success{background:var(--ok-bg);color:#14532d;box-shadow:none}
.flash.error{background:var(--bad-bg);color:#8a0010;box-shadow:none}
.flash.warning{background:var(--warn-bg);color:#7a3600;box-shadow:none}
.badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.74rem;font-weight:600;letter-spacing:0;background:#ececf0;color:#48484a;white-space:nowrap;vertical-align:1px}
.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.danger{background:var(--bad-bg);color:var(--bad)}
.badge.ok{background:#e5f4e8;color:#1f6b2c}
.st-brouillon{background:#ececf0;color:#48484a}.st-transmise{background:var(--pri-soft);color:#a41c5c}
.st-validee{background:var(--ok-bg);color:var(--ok)}.st-a_corriger{background:var(--bad-bg);color:var(--bad)}
.badge.auto{background:var(--warn-bg);color:var(--warn)}.badge.manual{background:var(--pri-soft);color:#a41c5c}
#offline{background:#ff9f0a;color:#1d1d1f;padding:9px 16px;text-align:center;font-weight:500}

/* ---------- Mise en page ---------- */
.daynav{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px}
.row{display:flex;gap:12px;align-items:flex-end}
.row.wrap{flex-wrap:wrap}
.formbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin-top:10px}
.grid2{display:grid;grid-template-columns:1fr;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:18px}
.grid2>*{min-width:0}
.grid2 .card{margin:0 0 18px}
.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.filters label{margin:0}
.checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px 14px;margin-bottom:14px}
.pwgen{display:flex;gap:8px;min-width:0;max-width:100%}
.pwgen input{flex:1 1 auto;min-width:0;width:100%}
.pwgen button{flex:none}
.row>label{min-width:0;max-width:100%}
.danger-zone{box-shadow:var(--shadow),inset 0 0 0 1px #ffd0d0}
.alert-line{margin:.4em 0}

/* ---------- Listes de saisie ---------- */
.list{display:grid;gap:10px;margin-bottom:10px}
.item{border-radius:14px;padding:12px 14px;display:grid;gap:5px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.item.alert,tr.alert td{background:#fff6f6}
.item .actions{display:flex;gap:8px;margin-top:4px}
.comment{margin-top:4px;color:var(--bad);font-size:.88rem}
.rows .row{flex-wrap:wrap;border-radius:14px;padding:12px;margin-bottom:10px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.rows .row label{margin:0}
.duree{font-weight:650;min-width:72px;padding:0 4px 11px;font-variant-numeric:tabular-nums}
.counter{display:flex;align-items:center;gap:12px;padding:10px 0}
.counter strong{min-width:90px}
.count{min-width:30px;text-align:center;font-size:1.3rem;font-weight:650;font-variant-numeric:tabular-nums}

/* ---------- Chiffres clés ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-bottom:18px}
.stat{background:var(--card);border-radius:16px;padding:14px 16px;color:var(--muted);font-size:.82rem;text-decoration:none;box-shadow:var(--shadow);transition:transform .15s}
a.stat:hover{text-decoration:none;transform:translateY(-1px)}
.stat span{display:block;font-size:1.5rem;font-weight:650;letter-spacing:-.025em;color:var(--ink);font-variant-numeric:tabular-nums;margin-bottom:2px}
.stat.bad span{color:var(--bad)}

/* ---------- Tableaux ---------- */
.scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%}
th,td{padding:10px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:#fff;color:var(--muted);font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
tr:last-child td{border-bottom:0}
tbody tr:hover td,table tr:hover td{background-color:#fafafc}
td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
tr.total td{font-weight:650;background:#f7f7fa}
tr.inactive td,.inactive{opacity:.5}
table.small td{font-size:.82rem}
.sticky-actions{position:-webkit-sticky;position:sticky;top:58px;top:calc(env(safe-area-inset-top,0px) + 58px);z-index:5;display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.sticky-actions input[name=comment]{flex:1;min-width:200px}

/* ---------- Suggestions d'adresses ---------- */
.ac{position:relative;display:block}
.ac input{width:100%}
.ac-list,.combo-list{position:absolute;left:0;right:0;top:100%;margin:6px 0 0;padding:6px;list-style:none;background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:14px;box-shadow:var(--shadow-pop),0 0 0 .5px rgba(0,0,0,.08);overflow:auto}
.ac-list{z-index:70;max-height:290px}
.ac-list li{padding:9px 12px;border-radius:9px;cursor:pointer;color:var(--ink);font-size:.92rem}
.ac-list li.active,.ac-list li[data-label]:hover{background:var(--pri);color:#fff}
.ac-list li.ac-hint{cursor:default;color:var(--muted);font-size:.8rem;margin-top:4px;border-top:1px solid var(--line);border-radius:0}
.ac-list li.ac-hint:hover{background:none;color:var(--muted)}
.ac-list .ac-far{margin-left:8px;padding:1px 7px;border-radius:999px;font-size:.72rem;font-weight:600;background:var(--warn-bg);color:var(--warn)}
label.grow{flex:1 1 240px}
.km-status{flex-basis:100%;font-size:.82rem;color:var(--muted)}
.km-status:empty{display:none}
.km-status.ok{color:var(--ok)}.km-status.bad{color:var(--warn)}

[hidden]{display:none!important}

/* ---------- Suivi du traitement : vert = traité, rouge = modifié après traitement, blanc = à traiter ---------- */
.st-dot{display:inline-block;width:11px;height:11px;border-radius:50%;box-shadow:inset 0 0 0 1.5px #c7c7cc;background:#fff;vertical-align:-1px}
.state-traite .st-dot{background:#30b158;box-shadow:none}
.state-modifie .st-dot{background:#ff3b30;box-shadow:none}
option.state-traite{background:#e9f7ee;color:#14532d}
option.state-modifie{background:#fff1f1;color:#8a0010}
.legend{display:flex;flex-wrap:wrap;gap:16px;flex-basis:100%;margin:0;color:var(--muted)}
.combo{position:relative;min-width:260px}
.combo input{width:100%;padding-left:32px}
.combo::before{content:"";position:absolute;left:12px;top:50%;width:11px;height:11px;margin-top:-5.5px;border-radius:50%;box-shadow:inset 0 0 0 1.5px #c7c7cc;background:#fff;pointer-events:none;z-index:1}
.combo[data-state=traite]::before{background:#30b158;box-shadow:none}
.combo[data-state=modifie]::before{background:#ff3b30;box-shadow:none}
.combo[data-state=traite] input{background:#f1faf4}
.combo[data-state=modifie] input{background:#fff5f5}
.combo-list{z-index:70;max-height:50vh;max-height:min(360px,50vh)}
.combo-list li{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:9px;cursor:pointer;color:var(--ink)}
.combo-list li small{color:var(--muted);margin-left:auto}
.combo-list li.state-traite{background:#f1faf4}
.combo-list li.state-modifie{background:#fff5f5}
.combo-list li.active,.combo-list li[data-value]:hover{background:var(--pri);color:#fff}
.combo-list li.active small,.combo-list li[data-value]:hover small{color:rgba(255,255,255,.8)}
.combo-list li.selected{font-weight:650}
.combo-list li.combo-empty{cursor:default;color:var(--muted)}
.treat-box{box-shadow:var(--shadow),inset 0 0 0 2px #e5e5ea}
.treat-box.state-traite{background:#f4fbf6;box-shadow:var(--shadow),inset 0 0 0 2px #30b158}
.treat-box.state-modifie{background:#fff7f7;box-shadow:var(--shadow),inset 0 0 0 2px #ff3b30}
.treat-box label.big{font-size:1.05rem;margin:0}
.treat-box label.big input{width:24px;height:24px}
.treat-box .treat-msg{margin:.7em 0}
.treat-box.state-modifie .treat-msg{color:var(--bad);font-weight:600}
.treat-box.state-traite .treat-msg{color:var(--ok)}
.progress{display:flex;height:8px;border-radius:999px;background:#e8e8ed;overflow:hidden;margin:6px 0 10px}
.progress .p-traite{background:#30b158}.progress .p-modifie{background:#ff3b30}
.board-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:12px}
.board-tools input[type=search]{flex:1 1 220px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{min-height:34px;padding:5px 14px;font-size:.86rem}
a.chip{text-decoration:none}
.chip.active{background:var(--ink);color:#fff}
.chip.active:hover{background:#000}
.board-scroll{max-height:70vh;overflow:auto;border-radius:12px}
table.board th{position:sticky;top:0;z-index:1}
table.board td{vertical-align:middle}
table.board tr.state-traite td{background:#f4fbf6}
table.board tr.state-modifie td{background:#fff5f5}
table.board tr.nodata td{color:var(--muted)}
table.board input[type=checkbox]{width:22px;height:22px;cursor:pointer}
tr.changed td{background:#fff5f5}
.reset-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:14px}

/* ---------- Ma journée : choix du client puis saisie ---------- */
.client-choice{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.client-card{display:flex;flex-direction:column;gap:3px;padding:16px;border-radius:16px;text-decoration:none;color:var(--ink);background:#fafafc;
  box-shadow:inset 0 0 0 1px var(--line);transition:transform .15s,box-shadow .15s}
.client-card:hover{text-decoration:none;transform:translateY(-1px);box-shadow:inset 0 0 0 1px rgba(209,0,111,.35),0 6px 18px rgba(0,0,0,.06)}
.client-card strong{font-size:1.08rem;font-weight:650;letter-spacing:-.02em;color:var(--ink)}
.client-card.has-data{background:#f4fbf6;box-shadow:inset 0 0 0 1px rgba(48,177,88,.35)}
.client-search{width:100%;margin-bottom:12px}
.client-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.client-code{font-size:1.45rem;font-weight:700;letter-spacing:-.025em}

/* ---------- Notifications ---------- */
.notif-count{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:#ff3b30;color:#fff;
  font-size:.68rem;font-weight:700;letter-spacing:0;vertical-align:1px}
table.notifs tr.unread td{background:#fdf1f7;font-weight:600}
.unread-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--pri)}
.bulk-bar{align-items:center;margin-bottom:12px}
select.type-none{color:var(--muted)}

/* ---------- Téléphone ---------- */
@media (max-width:820px){
  .top-inner{flex-wrap:wrap;gap:10px;padding:10px 14px}
  .brand{order:1}
  .account{order:2;margin-left:auto}
  .tabs{order:3;width:100%;margin:0}
  .avatar .name{display:none}
}
@media (max-width:640px){
  main{padding:18px 14px 40px}
  h1{font-size:1.6rem}
  .card{padding:16px;border-radius:16px}
  .rows .row>label{flex:1 1 45%}
  .stats{grid-template-columns:repeat(2,1fr)}
  /* Trajets : adresses sur toute la largeur, aucun champ ne dépasse de la carte */
  .rows .row>label{min-width:0}
  .rows .row>label.grow{flex:1 1 100%}
  .rows .row>label:not(.check)>input{width:100%}
  /* Passages véhicule : le code client sur sa ligne, les boutons dessous */
  .counter{flex-wrap:wrap;row-gap:6px}
  .counter strong{flex:1 0 100%}
  /* Suivi du traitement : la case « Traité » reste visible */
  table.board .col-opt{display:none}
}
/* ---------- Connexion ---------- */
.login{max-width:420px;margin:7vh auto 0}
.login-head{text-align:center;margin-bottom:22px}
.login-head h1{font-size:1.75rem;margin:16px 0 6px}
.login-head p{margin:0}
.logo.big{width:64px;height:64px;border-radius:16px;margin:0 auto;box-shadow:0 8px 24px rgba(209,0,111,.3)}
.logo.big svg{width:38px;height:38px}
.login .card{padding:26px}
.login button.primary{min-height:46px;font-size:1rem}
.center{text-align:center}
@media (max-width:640px){ .daynav .lbl{display:none} .daynav .btn{min-width:44px}
  .daynav form.inline{flex:1 1 0;min-width:0} .daynav form.inline input{width:100%} }
/* ---------- Téléphone : barre d'onglets en bas, comme une application iPhone ---------- */
.tabbar{display:none}
.logout-form{margin:6px 0 14px}
@media (max-width:820px){
  .tabs{display:none}
  .top-inner{flex-wrap:nowrap;padding:10px 16px}
  .account{margin-left:auto}
  .account form{display:none}
  .tabbar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:60;
    background:rgba(255,250,252,.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
    border-top:1px solid var(--line);padding:6px 4px;padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}
  .tabbar-track>a{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:3px 0;
    color:#8e8e93;font-size:.68rem;font-weight:500;letter-spacing:0;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .tabbar svg{width:27px;height:27px}
  .tabbar-track>a.active{color:var(--pri)}
  .tabbar .notif-count{position:absolute;top:-2px;left:calc(50% + 5px);margin:0}
  .tabbar details{position:relative}
  .tabbar summary{list-style:none}
  .tabbar summary::-webkit-details-marker{display:none}
  .more-menu{position:absolute;right:4px;bottom:calc(100% + 12px);min-width:220px;padding:6px;display:grid;gap:2px;background:#fff;
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:16px;box-shadow:var(--shadow-pop),0 0 0 .5px rgba(0,0,0,.08)}
  .more-menu a,.more-menu button{display:block;width:100%;padding:12px 14px;border-radius:10px;color:var(--ink);font-size:1rem;font-weight:500;text-align:left;
    background:none;min-height:0;text-decoration:none}
  .more-menu a:hover,.more-menu button:hover{background:#f2f2f7;text-decoration:none}
  .more-menu .danger-text{color:var(--bad)}
  .tabbar ~ main{padding-bottom:100px;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))} /* v171 L5 : seulement sous une barre du bas */
}
@media (max-width:820px),(max-height:500px){
  /* Téléphone : la barre d'actions des relevés ne reste plus collée (elle masquait la moitié de l'écran) */
  .sticky-actions{position:static}
}
/* ---------- Relevés intervenant / client ---------- */
.export-bar{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center}
.export-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.doc-head{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center;justify-content:space-between}
.doc-who{font-size:1.1rem;margin-bottom:2px}
.period-nav{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0;max-width:100%}
.period-nav input[type=month]{flex:0 1 auto;min-width:0}
.doc-actions{display:flex;gap:8px;flex-wrap:wrap}
table.doc-table td,table.doc-table th{font-size:.95rem}
table.doc-table tr.total td{font-size:1rem}
th.num{text-align:right}
/* Logo Athome (illustration) */
.logo-img{height:36px;width:auto;display:block}
.logo-login{height:110px;width:auto;display:block;margin:0 auto}
/* Relevés : tableau de synthèse lisible sur téléphone */
@media (max-width:640px){
  table.doc-table th{font-size:.62rem;letter-spacing:0;white-space:normal;padding:8px 4px;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual}
  table.doc-table td{font-size:.8rem;padding:8px 4px}
  table.doc-table td.num{white-space:nowrap}  /* v171 L8 : « 45 h 00 » ne se coupe plus, le tableau défile dans son cadre */
  table.doc-table tr.total td{font-size:.85rem}
  table.doc-table td .muted{display:block}
}
@media (max-width:360px){
  main{padding-left:10px;padding-right:10px}
  .card.doc-card{padding:12px 6px}
}
/* Retransmission après traitement */
.chip.chip-alert{background:var(--bad-bg);color:var(--bad)}
.chip.chip-alert.active{background:var(--bad);color:#fff}
table.notifs tr.retrans.unread td{background:#fff3f3}
.preprod-banner{background:repeating-linear-gradient(45deg,#ff9f0a,#ff9f0a 12px,#ffb340 12px,#ffb340 24px);color:#1d1d1f;font-weight:700;text-align:center;padding:6px 12px;font-size:.85rem}
/* ---------- Compatibilité navigateurs (téléphones) ---------- */
button,.btn,a,summary,label,input[type=checkbox]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media (max-width:820px){
  /* iPhone : Safari zoome automatiquement sur un champ dont le texte fait moins de 16 px */
  input,select,textarea{font-size:16px}
}
@supports (-webkit-touch-callout:none){
  /* iOS : champs date / heure à la bonne hauteur, texte aligné à gauche */
  input[type=date],input[type=time],input[type=month]{-webkit-appearance:none;appearance:none;min-height:42px;line-height:1.25;background:#fff}
  input::-webkit-date-and-time-value{text-align:left;min-height:1.25em}
}
input[type=search]::-webkit-search-decoration{-webkit-appearance:none}
.month-fallback{display:inline-flex;gap:6px}
.month-fallback select{min-width:0}
/* Mot de passe généré / compte bloqué */
.newpw-box{box-shadow:var(--shadow),inset 0 0 0 2px #30b158;background:#f4fbf6}
.newpw{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.6rem;font-weight:700;letter-spacing:.06em;margin:.2em 0 .5em;user-select:all;-webkit-user-select:all}
.lock-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.manual-pw{margin-top:12px}
.manual-pw summary{cursor:pointer;color:var(--muted)}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.tag{display:inline-flex;align-items:center;gap:4px;padding:4px 4px 4px 12px;border-radius:999px;background:#eef1f6;font-weight:500;font-size:.92rem}
.tag.inactive{opacity:.55}
.tag small{color:var(--muted)}
button.tag-x{min-height:28px;width:28px;padding:0;border-radius:50%;background:transparent;color:var(--muted);font-size:.85rem}
button.tag-x:hover{background:#dfe3ea;color:var(--bad)}
.add-assign{max-width:520px}
.add-assign .combo{min-width:0}
.combo.no-state::before{display:none}
.combo.no-state input{padding-left:12px}
/* Ancres (#trajets, #traitement…) : le titre n'est plus caché sous l'en-tête collant */
html{scroll-padding-top:70px;scroll-padding-top:calc(env(safe-area-inset-top,0px) + 70px)}
/* Clients : actions groupées (type de prestation, secteur) ; synthèses */
.bulk-bar .bulk-line{align-items:center;gap:8px 12px;margin-bottom:8px}
.bulk-bar .bulk-line select{width:auto;max-width:100%}
.synth-chips{margin:0 0 14px}
/* ---------- Confirmation dans la page (remplace la fenêtre confirm() du navigateur) ---------- */
.confirm-veil{position:fixed;left:0;top:0;right:0;bottom:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.38)}
.confirm-box{background:#fff;border-radius:var(--radius);padding:22px;width:100%;max-width:420px;box-shadow:var(--shadow-pop)}
.confirm-msg{margin:0 0 18px;font-size:1rem;line-height:1.45;white-space:pre-line;overflow-wrap:anywhere}
.confirm-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
/* Connexion : aide si les cookies sont bloqués */
.help-list{margin:8px 0;padding-left:18px}
.help-list li{margin:4px 0}
#open-browser{margin-top:4px}
/* ---------- Compatibilité : anciens navigateurs ---------- */
/* Sans flou d'arrière-plan (Firefox ancien, vieux Android) : fonds opaques pour rester lisible */
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .top{background:rgba(255,251,253,.97)}
  .tabbar{background:rgba(255,250,252,.98)}
  .sticky-actions,.ac-list,.combo-list,.more-menu{background:#fff}
}
/* Flexbox sans « gap » (iPhone avant iOS 14.5, Android 4) : espacement par marges */
@supports not (inset:0){
  .top-inner>*,.brand>*,.account>*,.avatar>*,.row>*,.daynav>*,.formbar>*,.filters>*,.pwgen>*,.item .actions>*,.counter>*,.sticky-actions>*,
  .export-bar>*,.export-group>*,.doc-head>*,.doc-actions>*,.period-nav>*,.chips>*,.tags>*,.lock-actions>*,.board-tools>*,.client-head>*,
  .legend>*,.bulk-line>*,.reset-bar>*,.month-fallback>*,.confirm-actions>*{margin-right:10px}
  .brand>*:last-child,.account>*:last-child,.avatar>*:last-child,.pwgen>*:last-child,.confirm-actions>*:last-child{margin-right:0}
  label.check>input,.combo-list li>.st-dot,.tag>*{margin-right:8px}
  .tabs a{margin-right:2px}
  .rows .row>label,.chips>*,.tags>*,.daynav>*,.formbar>*,.filters>*,.export-bar>*,.lock-actions>*,.board-tools>*{margin-bottom:8px}
  .rows .row>label,.filters>label{margin-right:10px}  /* plus précis que « .rows .row label{margin:0} » */
  .top-inner>.tabs{margin-right:auto}  /* les onglets restent centrés sur ordinateur */
}
/* ---------- Espace client : validation / contestation des heures ---------- */
.badge.cst-a_valider{background:var(--warn-bg);color:var(--warn)}
.badge.cst-validee,.badge.cst-auto{background:var(--ok-bg);color:var(--ok)}
.badge.cst-contestee{background:var(--bad-bg);color:var(--bad)}
.badge.cst-traitee{background:var(--pri-soft);color:#a41c5c}
.badge.agency{background:var(--pri-soft);color:#a41c5c}
.badge.acc-aucun{background:#ececf0;color:#48484a}.badge.acc-temporaire,.badge.acc-conditions{background:var(--warn-bg);color:var(--warn)}
.badge.acc-actif{background:var(--ok-bg);color:var(--ok)}.badge.acc-bloque{background:var(--bad-bg);color:var(--bad)}
a.badge:hover{text-decoration:none;filter:brightness(.95)}
.deadline-box{box-shadow:var(--shadow),inset 0 0 0 2px #e5e5ea}
.deadline-box.open{background:#fff8ee;box-shadow:var(--shadow),inset 0 0 0 2px #ff9f0a}
.deadline-box p{margin:0 0 10px}
.client-chips{margin:0 0 14px}
h2.day-head{margin:18px 0 8px;font-size:1rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.line-card{padding:16px 18px;margin-bottom:10px;box-shadow:var(--shadow),inset 4px 0 0 #e5e5ea}
.line-card.st-a_valider{box-shadow:var(--shadow),inset 4px 0 0 #ff9f0a}
.line-card.st-validee,.line-card.st-auto{box-shadow:var(--shadow),inset 4px 0 0 #30b158}
.line-card.st-contestee{box-shadow:var(--shadow),inset 4px 0 0 #ff3b30}
.line-card.st-traitee{box-shadow:var(--shadow),inset 4px 0 0 var(--pri)}
.line-main{display:grid;gap:5px}
.line-what{font-size:1rem}
.line-state{font-size:.9rem}
.line-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
button.ok-btn,.btn.ok-btn{background:var(--ok);color:#fff}
button.ok-btn:hover,.btn.ok-btn:hover{background:#166a2d}
button.bad-btn,.btn.bad-btn{background:var(--bad);color:#fff}
button.bad-btn:hover,.btn.bad-btn:hover{background:#b80012}
.contest-item{margin:10px 0 14px}
.contest-motif{white-space:pre-line;overflow-wrap:anywhere;padding:10px 12px;border-radius:12px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line);margin:8px 0}
.contest-reponse{margin-top:6px;padding:10px 12px;border-radius:12px;background:var(--pri-soft);overflow-wrap:anywhere}
.contest-card.ouverte{box-shadow:var(--shadow),inset 4px 0 0 #ff3b30}
.contest-card.traitee{box-shadow:var(--shadow),inset 4px 0 0 var(--pri)}
.pieces{margin:6px 0;padding-left:18px}
.pieces li{margin:4px 0;overflow-wrap:anywhere}
table.contest-table td.motif-cell{max-width:360px;overflow-wrap:anywhere}
.consent-text ul{padding-left:20px}
.consent-text li{margin:8px 0}
.consent label.big{font-size:1rem;margin:16px 0;align-items:flex-start}
.consent label.big input{width:24px;height:24px;margin-top:2px}
.access-box ul.access-info{margin:4px 0 10px;padding-left:18px}
.access-box ul.access-info li{margin:3px 0}
.agency-box strong{display:block}
.user-tabs{margin:0 0 16px}
input[type=file]{padding:8px 10px}
@media (max-width:640px){
  .line-actions form,.line-actions .btn,.line-actions button{flex:1 1 45%}
  .line-actions button{width:100%}
  .deadline-box button{width:100%}
}
/* Espace client : les pastilles d'état, longues, passent à la ligne sur petit écran */
.line-card .badge,.contest-card .badge,.deadline-box .badge{white-space:normal;vertical-align:baseline;line-height:1.35}
.avatar span.initials svg{width:17px;height:17px}
/* Nom du client sous son code (choix du client, Ma journée) */
.client-card .client-code-sub{color:var(--muted)}
a.client-link{color:var(--ink)}
/* ===================== Mise à jour du 27/10/2026 ===================== */
/* En-tête de l'agence (8 onglets) : les onglets passent sur leur propre ligne, rien n'est jamais caché */
@media (min-width:821px){
  .top-many .top-inner{flex-wrap:wrap;row-gap:0}
  .top-many .brand{order:1}
  .top-many .account{order:2;margin-left:auto}
  /* passage à la ligne forcé, puis un fond gris qui épouse exactement les onglets (centré) */
  .top-many .top-inner::after{content:"";order:2;flex:0 0 100%;height:0}
  .top-many .tabs{order:3;flex:0 1 auto;width:auto;max-width:100%;margin:8px auto 0;flex-wrap:wrap;justify-content:center;border-radius:20px;overflow:visible}
  .top-many .tabs a{padding:6px 13px}
}
/* Téléphone : barre du bas défilante (glisser de droite à gauche), plus de menu « Plus » */
.tabbar-track{display:contents}
@media (max-width:820px){
  .tabbar{display:block;padding:0;padding-bottom:env(safe-area-inset-bottom,0px)}
  .tabbar-track{display:flex;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;
    scrollbar-width:none;padding:6px 4px;overscroll-behavior-x:contain}
  .tabbar-track::-webkit-scrollbar{display:none}
  .tabbar-track>a{flex:1 0 auto;min-width:72px;scroll-snap-align:start;padding:3px 6px}
  .tabbar-scroll .tabbar-track>a{flex:0 0 auto;min-width:78px}
  .tabbar-scroll::before,.tabbar-scroll::after{content:"";position:absolute;top:0;bottom:0;width:22px;pointer-events:none;z-index:1;opacity:0;transition:opacity .2s}
  .tabbar-scroll::before{left:0;background:linear-gradient(90deg,rgba(255,250,252,.98),rgba(255,250,252,0))}
  .tabbar-scroll::after{right:0;background:linear-gradient(270deg,rgba(255,250,252,.98),rgba(255,250,252,0))}
  .tabbar-scroll.more-left::before,.tabbar-scroll.more-right::after{opacity:1}
  .tabbar .notif-count{left:calc(50% + 6px)}
  /* v171 L5 : la place laissée à la barre du bas est un rembourrage (peint avec le reflet, compté dans la hauteur de la page), plus une
     marge qui sortait du body ; liens à gauche des bulles et du bouton « + » (deux règles : un navigateur sans :has garde la première) */
  .tabbar ~ .site-foot{padding-bottom:calc(26px + 84px + env(safe-area-inset-bottom,0px))}
  body.has-chat .site-foot{padding-right:84px}
  body:has(.gc-fab) .site-foot{padding-right:84px}
}
.tabbar-track>a{position:relative}
/* Pied de page : pages légales */
.site-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;padding:8px 16px 26px;font-size:.8rem}
.site-foot a{color:var(--muted)}
.legal{max-width:820px;margin:0 auto}
.legal-nav{margin:0 0 14px;justify-content:center}
.legal-text h1{font-size:1.6rem}
.legal-text h2{margin-top:1.4em}
.legal-text li{margin:5px 0}
.legal-text ul ul{margin-top:4px}
.legal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:0 14px}
/* Badges */
.badge.vp{background:#fce8f2;color:#a41c5c}
.badge.indiv{background:#fff4e0;color:#8a4b00;white-space:normal}
.badge.cst-a_venir{background:#ececf0;color:#48484a}
.badge.cst-refusee{background:#f3e8ff;color:#6b21a8}
.line-card.st-refusee{box-shadow:var(--shadow),inset 4px 0 0 #8b5cf6}
.line-card.st-a_venir{box-shadow:var(--shadow),inset 4px 0 0 #c7c7cc}
.contest-card.refusee{box-shadow:var(--shadow),inset 4px 0 0 #8b5cf6}
/* Question « véhicule personnel » en arrivant chez le client */
.vp-question{border-radius:16px;padding:16px;background:#fdf1f7;box-shadow:inset 0 0 0 1px rgba(209,0,111,.25);margin:4px 0 8px}
.vp-question p{margin:0 0 8px}
.vp-answers{display:flex;gap:10px;flex-wrap:wrap}
.vp-answers .btn{min-width:110px;min-height:46px;font-size:1.05rem}
label.check.vp-check{flex-basis:100%;font-size:.9rem}
/* Duplication sur d'autres jours */
details.dup>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
details.dup>summary::-webkit-details-marker{display:none}
details.dup>summary h2{margin:0}
details.dup>summary::after{content:"›";margin-left:auto;font-size:1.4rem;color:var(--muted);transform:rotate(90deg);transition:transform .15s}
details.dup[open]>summary::after{transform:rotate(-90deg)}
.dup-form fieldset{border:0;padding:0;margin:16px 0 0;min-width:0}
.dup-form legend{font-weight:650;margin-bottom:8px;padding:0}
.dup-cats,.dup-lines,.dup-tools{display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:10px}
.dup-lines label{background:#fafafc;border-radius:10px;padding:6px 10px;box-shadow:inset 0 0 0 1px var(--line)}
.dup-lines label.off{opacity:.45}
table.dup-cal{width:auto;min-width:100%;table-layout:fixed}
table.dup-cal th{text-align:center;padding:4px 2px}
table.dup-cal td{padding:3px;border:0;text-align:center}
.dup-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;min-width:40px;margin:0;border-radius:12px;
  background:#fafafc;box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;color:var(--ink);font-size:.95rem;position:relative}
.dup-day input{width:22px;height:22px}
.dup-day .dup-num small{color:var(--muted);font-size:.68rem}
.dup-day.is-source{background:var(--pri-soft);box-shadow:inset 0 0 0 2px var(--pri);cursor:default}
.dup-day .dup-src{font-size:.66rem;color:#a41c5c;font-weight:600}
.dup-day.has-data::after{content:"";position:absolute;top:5px;right:6px;width:7px;height:7px;border-radius:50%;background:#30b158}
.dup-day:has(input:checked){background:#e9f7ee;box-shadow:inset 0 0 0 2px #30b158}
@media (max-width:420px){ .dup-day{min-width:0;min-height:48px} .dup-day input{width:20px;height:20px} table.dup-cal td{padding:2px} }
/* Pièces jointes : bouton « Choisir des fichiers » */
.file-pick{margin:0 0 12px}
.file-pick-label{display:block;font-size:.82rem;font-weight:500;color:var(--muted);margin-bottom:6px}
.file-pick input[type=file]{display:block;width:100%;max-width:100%;min-height:0;padding:10px;border:1.5px dashed var(--field);border-radius:12px;background:#fafafc;
  font-size:.92rem;color:var(--muted)}
.file-pick input[type=file]::file-selector-button{font:inherit;font-weight:600;border:0;border-radius:999px;padding:8px 16px;margin-right:12px;
  background:var(--pri);color:#fff;cursor:pointer}
.file-pick input[type=file]::-webkit-file-upload-button{font:inherit;font-weight:600;border:0;border-radius:999px;padding:8px 16px;margin-right:12px;
  background:var(--pri);color:#fff;cursor:pointer}
.file-pick.enhanced input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.file-pick .fp-zone{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;border:1.5px dashed var(--field);border-radius:14px;background:#fafafc}
.file-pick.has-files .fp-zone{border-color:#30b158;background:#f4fbf6}
.file-pick.focus .fp-zone{box-shadow:0 0 0 4px rgba(209,0,111,.2);border-color:var(--pri)}
.file-pick .fp-names{flex:1 1 180px;min-width:0;font-size:.9rem;color:var(--muted);overflow-wrap:anywhere}
.file-pick.has-files .fp-names{color:var(--ink)}
.file-pick .fp-names li{margin:2px 0}
.file-pick .fp-names ul{margin:0;padding-left:18px}
.file-pick .fp-error{flex-basis:100%;color:var(--bad);font-size:.85rem}
.file-pick-help{margin:6px 0 0}
/* Champ mot de passe avec œil */
.pw-field{position:relative;display:block}
.pw-field input{width:100%;padding-right:52px}
.pw-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:38px;min-height:0;padding:0;border-radius:10px;background:transparent;color:var(--muted)}
.pw-eye:hover{background:rgba(0,0,0,.05)}
.pw-eye svg{width:22px;height:22px}
.pw-eye[aria-pressed=true]{color:var(--pri)}
/* Contestation : décision de l'agence, pièces */
.decision-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.pieces form{margin-left:6px}
ul.snap{margin:6px 0 0;padding-left:18px}
/* Notifications du client */
.notif-list{display:grid;gap:10px}
a.notif-card{display:grid;gap:6px;color:var(--ink);text-decoration:none;padding:14px 16px;margin:0}
a.notif-card:hover{text-decoration:none;box-shadow:var(--shadow-pop)}
a.notif-card.unread{background:#fdf1f7;box-shadow:var(--shadow),inset 4px 0 0 var(--pri)}
.notif-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.card-actions{margin:0 0 12px}
/* Historique : recherche */
.hist-cats{border:0;padding:0;margin:4px 0 0;display:flex;flex-wrap:wrap;gap:6px 16px;min-width:0}
.hist-cats legend{font-size:.82rem;font-weight:500;color:var(--muted);margin-bottom:6px;padding:0}
.hist-filters .row>label{flex:1 1 150px}
.hist-table code{display:inline-block;max-width:340px}
/* Téléphone : rien ne dépasse de l'écran */
@media (max-width:640px){
  .hist-filters .row>label{flex:1 1 100%}
  .decision-actions button{flex:1 1 100%}
  .vp-answers .btn{flex:1 1 40%}
  .daynav form.inline input[type=date]{min-width:0}
  table.contest-table td.motif-cell{max-width:220px}
}
@media (max-width:820px){ .tabbar-scroll .tabbar-track>a{min-width:74px;font-size:.66rem} }
/* Petits écrans d'ordinateur / tablettes en paysage (821 à 1000 px) : onglets plus compacts, sur une seule ligne */
@media (min-width:821px) and (max-width:1000px){
  .top-many .tabs{gap:0}
  .top-many .tabs a{padding:6px 8px;font-size:.84rem}
  .top-many .tabs .notif-count{margin-left:2px}
}
/* Historique : détail lisible « Champ : ancien → nouveau » */
ul.hist-detail{list-style:none;margin:0;padding:0}
ul.hist-detail li{margin:0 0 2px;overflow-wrap:anywhere}
ul.hist-detail .hl{color:var(--muted)}
ul.hist-detail .hold{color:var(--muted)}
table.hist-table td{vertical-align:top}
@media (max-width:640px){ table.hist-table{min-width:560px} }

/* ===================== Thème Athome : couleurs du logo et ombres douces ===================== */
/* Fuchsia #e4047c (robe), rose #e48cb4 (peau), prune #642c44 (cheveux), framboise #a41c5c (chaussures) */
:root{--brand:#e4047c;--plum:#642c44;--rasp:#a41c5c;--blush:#e48cb4}
body{background:linear-gradient(180deg,#fbe9f2 0,#f8f3f6 360px) no-repeat,var(--bg)}
::selection{background:#f9cfe3}
h1{color:var(--plum)}
.brand{color:var(--plum)}
.top{box-shadow:0 1px 0 rgba(100,44,68,.06),0 6px 20px rgba(100,44,68,.06);border-bottom-color:rgba(100,44,68,.08)}
.tabs{background:rgba(100,44,68,.06)}
.tabs a.active{color:var(--rasp);box-shadow:0 2px 8px rgba(100,44,68,.14),0 0 0 .5px rgba(100,44,68,.06)}
.tabs a:hover{background:rgba(255,255,255,.7)}
.card,.stat,.flash{box-shadow:var(--shadow),0 0 0 1px rgba(100,44,68,.04)}
.flash.success,.flash.error,.flash.warning{box-shadow:0 2px 10px rgba(100,44,68,.05)}
.stat span{color:var(--plum)}
a.stat:hover,.client-card:hover{box-shadow:0 10px 28px rgba(100,44,68,.14),0 0 0 1px rgba(209,0,111,.25)}
button.primary,.btn.primary,.btn.next{background:linear-gradient(180deg,#e0067a,#c8006a);box-shadow:0 4px 14px rgba(209,0,111,.28)}
button.primary:hover,.btn.primary:hover,.btn.next:hover{background:linear-gradient(180deg,#d1006f,#b4005e)}
button.ok-btn,.btn.ok-btn{box-shadow:0 4px 14px rgba(29,122,54,.25)}
button.bad-btn,.btn.bad-btn{box-shadow:0 4px 14px rgba(215,0,21,.22)}
button,.btn{transition:background .15s,box-shadow .15s,transform .05s}
.chip.active{background:var(--plum)}
.chip.active:hover{background:#4f2134}
.avatar span.initials{background:#f6dbe8;color:var(--plum)}
.avatar.active span.initials{background:var(--pri)}
.item,.rows .row,.client-card{box-shadow:inset 0 0 0 1px var(--line),0 2px 8px rgba(100,44,68,.05)}
.client-card.has-data{box-shadow:inset 0 0 0 1px rgba(48,177,88,.35),0 2px 8px rgba(100,44,68,.05)}
th{color:#8a6a78}
.login .card{box-shadow:0 18px 50px rgba(100,44,68,.16),0 2px 8px rgba(100,44,68,.06)}
.login-head h1{color:var(--plum)}
.logo-login{filter:drop-shadow(0 8px 18px rgba(228,4,124,.18))}
.tabbar{box-shadow:0 -6px 20px rgba(100,44,68,.07)}
.confirm-box{box-shadow:0 24px 60px rgba(100,44,68,.28)}
.site-foot a:hover{color:var(--rasp)}
/* Colonne des actions toujours visible au bord droit des tableaux qui défilent (Gérer, Modifier, Traiter, Voir…) */
th.act,td.act{position:-webkit-sticky;position:sticky;right:0;z-index:1;background:var(--card);white-space:nowrap;
  box-shadow:-12px 0 12px -12px rgba(100,44,68,.35)}
th.act{z-index:2}
tr:hover td.act{background:#fdf7fa}
tr.alert td.act{background:#fff6f6}
tr.changed td.act{background:#fff5f5}
table.notifs tr.unread td.act{background:#fdf1f7}
tr.inactive td.act{opacity:1}
tr.inactive td.act>*{opacity:.75}
.act-group{display:flex;flex-wrap:nowrap;gap:6px;align-items:center}
.act-group form{display:inline}
/* Tableau des clients : compact, tout tient sur un écran d'ordinateur */
table.clients-table td{vertical-align:middle}
table.clients-table .cl-who{min-width:140px;max-width:230px}
table.clients-table .client-link{display:flex;flex-direction:column;color:var(--ink)}
table.clients-table .client-link:hover{text-decoration:none}
table.clients-table .client-link:hover strong{color:var(--pri)}
table.clients-table .cl-name{font-size:.84rem;color:var(--muted);overflow-wrap:anywhere}
table.clients-table select{max-width:180px;min-height:36px;padding-top:6px;padding-bottom:6px;font-size:.86rem}
table.clients-table select[name=secteur]{max-width:120px}
table.clients-table .cl-staff{max-width:180px;font-size:.86rem}
@media (max-width:820px){ table.clients-table select{font-size:16px} }
@media (max-width:640px){
  th.act,td.act{white-space:normal}
  .act-group{flex-wrap:wrap;max-width:200px}
}
/* ===================== Effets : ombres plus présentes, brillance et reflets ===================== */
:root{
  --shadow:0 1px 1px rgba(100,44,68,.05),0 2px 6px rgba(100,44,68,.07),0 12px 32px -6px rgba(100,44,68,.16);
  --shadow-pop:0 2px 6px rgba(100,44,68,.10),0 18px 48px -8px rgba(100,44,68,.30);
  --gloss:linear-gradient(180deg,rgba(255,255,255,.75) 0,rgba(255,255,255,0) 42%,rgba(252,232,242,.28) 100%);
  --hi:inset 0 1px 0 rgba(255,255,255,.95);
}
/* Fond : halos roses et prune très doux en haut de la page, et (v171) le même reflet en miroir en bas de la page */
body{background:
  radial-gradient(900px 520px at 8% -8%,rgba(228,4,124,.10),rgba(228,4,124,0) 70%),
  radial-gradient(800px 500px at 100% 0,rgba(100,44,68,.08),rgba(100,44,68,0) 70%),
  radial-gradient(900px 520px at 8% 108%,rgba(228,4,124,.10),rgba(228,4,124,0) 70%),
  radial-gradient(800px 500px at 100% 100%,rgba(100,44,68,.08),rgba(100,44,68,0) 70%),
  linear-gradient(180deg,#fbe9f2 0,rgba(251,233,242,0) 420px) no-repeat,
  linear-gradient(0deg,#fbe9f2 0,rgba(251,233,242,0) 420px) no-repeat,var(--bg)}
/* Cartes : légèrement laquées (reflet en haut), ombre en relief */
.card,.stat{background-image:var(--gloss);box-shadow:var(--hi),var(--shadow),0 0 0 1px rgba(100,44,68,.05)}
.stat{transition:transform .2s,box-shadow .2s}
a.stat:hover{transform:translateY(-2px);box-shadow:var(--hi),var(--shadow-pop),0 0 0 1px rgba(209,0,111,.18)}
.stat span{background:linear-gradient(180deg,#7a3555,#4f2134);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.item,.rows .row,.client-card,.line-card,.dup-day,.vp-question,.contest-motif{background-image:var(--gloss)}
.item,.rows .row{box-shadow:var(--hi),inset 0 0 0 1px var(--line),0 3px 10px -2px rgba(100,44,68,.10)}
.client-card{box-shadow:var(--hi),inset 0 0 0 1px var(--line),0 4px 14px -4px rgba(100,44,68,.16);transition:transform .2s,box-shadow .2s}
.client-card:hover{transform:translateY(-2px);box-shadow:var(--hi),inset 0 0 0 1px rgba(209,0,111,.35),0 14px 30px -8px rgba(100,44,68,.28)}
.client-card.has-data{box-shadow:var(--hi),inset 0 0 0 1px rgba(48,177,88,.40),0 4px 14px -4px rgba(48,177,88,.20)}
/* En-tête et barre du bas : effet verre */
.top{background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,244,249,.84));
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.6),0 1px 0 rgba(100,44,68,.06),0 10px 28px -8px rgba(100,44,68,.18)}
.tabs{background:linear-gradient(180deg,rgba(100,44,68,.09),rgba(100,44,68,.04));box-shadow:inset 0 1px 3px rgba(100,44,68,.12),0 1px 0 rgba(255,255,255,.8)}
.tabs a.active{background:linear-gradient(180deg,#fff 0,#fff5fa 100%);box-shadow:var(--hi),0 3px 10px rgba(100,44,68,.20),0 0 0 .5px rgba(100,44,68,.08)}
.tabbar{background:linear-gradient(180deg,rgba(255,250,252,.88),rgba(255,255,255,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 -10px 28px -6px rgba(100,44,68,.16)}
/* Boutons : relief brillant */
button:not(.link):not(.ghost):not(.tag-x):not(.pw-eye):not(.chip),.btn:not(.chip){
  background-image:linear-gradient(180deg,#fff 0,#f1eaee 100%);
  box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(100,44,68,.09),0 2px 6px -1px rgba(100,44,68,.16)}
button:not(.link):not(.ghost):not(.tag-x):not(.pw-eye):not(.chip):hover,.btn:not(.chip):hover{
  background-image:linear-gradient(180deg,#fff 0,#ebe1e7 100%);box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(100,44,68,.12),0 6px 14px -4px rgba(100,44,68,.24)}
button.primary,.btn.primary,.btn.next{position:relative;overflow:hidden;
  background-image:linear-gradient(180deg,#ef2f95 0,#d6007a 48%,#c0006a 52%,#b30061 100%)!important;color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 4px rgba(80,0,40,.18),0 6px 18px -4px rgba(209,0,111,.55),0 0 0 1px rgba(160,0,85,.35)!important}
button.primary:hover,.btn.primary:hover,.btn.next:hover{background-image:linear-gradient(180deg,#f2479f 0,#dc0a80 48%,#c4006c 52%,#b30061 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 4px rgba(80,0,40,.18),0 10px 24px -6px rgba(209,0,111,.65),0 0 0 1px rgba(160,0,85,.4)!important}
/* Reflet qui passe sur les boutons principaux au survol */
button.primary::after,.btn.primary::after,.btn.next::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;pointer-events:none;
  background:linear-gradient(105deg,rgba(255,255,255,0) 0,rgba(255,255,255,.38) 50%,rgba(255,255,255,0) 100%);transform:skewX(-18deg);transition:left .6s ease}
button.primary:hover::after,.btn.primary:hover::after,.btn.next:hover::after{left:125%}
@media (prefers-reduced-motion:reduce){ button.primary::after,.btn.primary::after,.btn.next::after{display:none} .stat,.client-card{transition:none} }
button.primary:disabled{box-shadow:none!important}
button.ok-btn,.btn.ok-btn{background-image:linear-gradient(180deg,#34b05e 0,#1f8a3d 50%,#1d7a36 100%)!important;color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 6px 16px -4px rgba(29,122,54,.5),0 0 0 1px rgba(20,90,40,.3)!important}
button.bad-btn,.btn.bad-btn{background-image:linear-gradient(180deg,#f2435a 0,#d70015 52%,#c00012 100%)!important;color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 6px 16px -4px rgba(215,0,21,.45),0 0 0 1px rgba(150,0,15,.3)!important}
button.danger{background-image:linear-gradient(180deg,#fff7f8,#ffe3e6)!important;box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(215,0,21,.16),0 2px 6px -1px rgba(215,0,21,.18)!important}
.chip{box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 1px rgba(100,44,68,.08),0 2px 5px -1px rgba(100,44,68,.12);background-image:linear-gradient(180deg,#fff,#f0e9ed)}
.chip.active{background-image:linear-gradient(180deg,#83405f 0,#642c44 55%,#55233a 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 5px 14px -4px rgba(100,44,68,.5)}
.chip.chip-alert{background-image:linear-gradient(180deg,#fff7f8,#ffe6e9)}
.round{box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(100,44,68,.1),0 4px 10px -2px rgba(100,44,68,.2)}
/* Champs : légère ombre intérieure, halo à la saisie */
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{box-shadow:inset 0 1px 2px rgba(100,44,68,.08)}
input:focus,select:focus,textarea:focus{box-shadow:inset 0 1px 2px rgba(100,44,68,.06),0 0 0 4px rgba(209,0,111,.16)}
/* Pastilles : petit reflet */
.badge{background-image:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(100,44,68,.05)}
.notif-count{background-image:linear-gradient(180deg,#ff6b6b,#e0263a);box-shadow:0 2px 6px rgba(224,38,58,.45)}
/* Tableaux : en-tête dégradé, survol lumineux */
th{background:linear-gradient(180deg,#fff,#fbf4f8)}
tbody tr:hover td,table tr:hover td{background-color:#fdf5f9}
/* Messages */
.flash{box-shadow:var(--hi),0 6px 18px -8px rgba(100,44,68,.25);background-image:var(--gloss)}
/* Connexion : carte en relief, logo lumineux */
.login .card{box-shadow:var(--hi),0 2px 6px rgba(100,44,68,.08),0 28px 60px -16px rgba(100,44,68,.32),0 0 0 1px rgba(100,44,68,.05)}
.logo-login{filter:drop-shadow(0 10px 22px rgba(228,4,124,.28))}
.logo-img{filter:drop-shadow(0 2px 4px rgba(228,4,124,.25))}
.avatar span.initials{background-image:linear-gradient(180deg,#fff,#f3d7e5);box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(100,44,68,.10),0 2px 6px rgba(100,44,68,.15)}
.confirm-box{background-image:var(--gloss)}
.stat.bad span{background:none;-webkit-text-fill-color:var(--bad);color:var(--bad)}
/* Le fond (halos + dégradé) ne se répète pas en bas des pages courtes */
html{background-color:var(--bg)}
body{background-repeat:no-repeat;min-height:100vh}

/* ---------- v38 : boutons alignés sur les champs, largeur adaptée à l'écran ---------- */
/* Bouton placé après des champs : même hauteur que les champs (les étiquettes gardent 12 px de marge en bas) */
.row>label:not(.check)~button,.row>label:not(.check)~.btn{margin-bottom:12px}
.rows .row>label~button,.rows .row>label~.btn{margin-bottom:0}
/* Formulaires de création (Salariés, Clients) : les champs se partagent la ligne, le bouton « Créer » reste à côté */
form.create-form>label{flex:1 1 160px}
form.create-form>button{flex:none}
/* Espace agence : la page s'élargit avec l'écran (jusqu'à 1600 px) au lieu de rester à 1180 px */
body.wide main,body.wide .top-inner{max-width:1600px}
/* Tableau des clients : l'état de l'espace client passe à la ligne au lieu d'être caché sous la colonne des actions */
table.clients-table .badge{white-space:normal;line-height:1.35;text-align:center}
/* Écrans moyens (petit portable, tablette en paysage) : les boutons d'action passent sur deux lignes plutôt que de déborder */
@media (max-width:1100px){
  th.act,td.act{white-space:normal}
  .act-group{flex-wrap:wrap;max-width:210px;min-width:150px}
  table.clients-table select{max-width:150px}
  table.clients-table .cl-staff{max-width:140px}
}
/* Cases à cocher de la barre « Clients cochés » : centrées sur la ligne comme les menus et les boutons */
.bulk-bar .bulk-line>label{margin:0}
/* Accueil de l'agence : les tuiles de chiffres se partagent toute la largeur de l'écran */
@media (min-width:641px){ body.wide .stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))} }
/* ---------- v39 : en-tête de l'agence sur une seule ligne dès que l'écran le permet ---------- */
/* Logo à gauche, onglets au centre, compte à droite. app.js mesure la place réelle : s'il en manque, « top-compact »
   masque le texte du logo, sinon « top-mini » le nom (initiales seules), sinon les deux ; s'il en manque encore, « top-stack » remet les onglets sur leur propre ligne. */
@media (min-width:821px){
  /* trois colonnes : logo | onglets | compte ; les deux colonnes extérieures ont la même largeur, les onglets sont donc centrés sur la page */
  .top-many:not(.top-stack) .top-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
  .top-many:not(.top-stack) .brand{justify-self:start}
  .top-many:not(.top-stack) .account{justify-self:end}
  .top-many:not(.top-stack) .top-inner::after{display:none}
  .top-many:not(.top-stack) .brand,.top-many:not(.top-stack) .tabs,.top-many:not(.top-stack) .account{order:0}
  .top-many:not(.top-stack) .account{margin-left:0}
  .top-many:not(.top-stack) .tabs{flex:0 1 auto;min-width:0;margin:0;flex-wrap:nowrap;border-radius:999px;overflow-x:auto;overflow-y:hidden}
  .top-many:not(.top-stack) .tabs a{padding:6px 12px}
  .top-many.top-compact .brand-text,.top-many.top-mini .avatar .name{display:none}
  .top-many.top-compact:not(.top-stack) .tabs a,.top-many.top-mini:not(.top-stack) .tabs a{padding:6px 9px}
}
@media (min-width:821px) and (max-width:1000px){ .top-many:not(.top-stack) .tabs a{padding:6px 8px} }
/* ---------- v42 : logo net (nouveau détourage), un peu plus grand, avec un reflet de lumière qui le traverse ---------- */
.logo-img{height:44px;width:auto;filter:none}
.logo-login{filter:none}
.logo-shine{position:relative;display:inline-block;line-height:0;flex:none;vertical-align:middle}
.logo-shine-login{display:block;width:79px;margin:0 auto}
/* Le reflet épouse exactement la forme du logo (masque) ; navigateurs sans masque : pas de reflet, logo normal */
@supports ((-webkit-mask-size:100% 100%) or (mask-size:100% 100%)){
  .logo-shine::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;
    background:linear-gradient(105deg,rgba(255,255,255,0) 46.5%,rgba(255,255,255,.42) 50%,rgba(255,255,255,0) 53.5%) no-repeat;
    background-size:300% 100%;background-position:90% 0;
    -webkit-mask:url(logo-shape.png) center/100% 100% no-repeat;mask:url(logo-shape.png) center/100% 100% no-repeat;
    -webkit-animation:logo-shine 7s ease-in-out 1.2s infinite;animation:logo-shine 7s ease-in-out 1.2s infinite}
}
@-webkit-keyframes logo-shine{0%{background-position:90% 0}24%,100%{background-position:10% 0}}
@keyframes logo-shine{0%{background-position:90% 0}24%,100%{background-position:10% 0}}
@media (prefers-reduced-motion:reduce){ .logo-shine::after{-webkit-animation:none;animation:none;opacity:0} }
/* Boutons verts (valider) et rouges (refuser) : ils gardent leur couleur au survol (la règle rose des boutons principaux passait devant) */
button.ok-btn:hover,.btn.ok-btn:hover,button.primary.ok-btn:hover,.btn.primary.ok-btn:hover{
  background-image:linear-gradient(180deg,#3cbd67 0,#22964a 50%,#1f8540 100%)!important;color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 10px 22px -6px rgba(29,122,54,.6),0 0 0 1px rgba(20,90,40,.35)!important}
button.bad-btn:hover,.btn.bad-btn:hover,button.primary.bad-btn:hover,.btn.primary.bad-btn:hover{
  background-image:linear-gradient(180deg,#f5576b 0,#e0001a 52%,#c80014 100%)!important;color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 10px 22px -6px rgba(215,0,21,.55),0 0 0 1px rgba(150,0,15,.35)!important}
/* ---------- v45 : typographie (graisses et espacements, ajustés en v49) ---------- */
body{font-size:15.5px;letter-spacing:0;font-feature-settings:normal;text-rendering:optimizeLegibility}
h1,h2,h3,legend,.brand-text,.client-code,.client-card strong,.stat span,.tabs a,.tabbar-track>a,button,.btn,.chip,.badge,
.preprod-banner,.duree,.count,.notif-count,.avatar .initials,.confirm-box h2,details>summary{font-family:var(--font-title)}
h1{font-weight:800;letter-spacing:-.012em;line-height:1.15}
h2{font-weight:780;letter-spacing:-.005em}
h3{font-weight:760;letter-spacing:0}
.brand{font-weight:800;letter-spacing:-.004em}
.tabs a{font-weight:650}
.tabs a.active{font-weight:800}
button,.btn{font-weight:700;letter-spacing:.005em}
.chip{font-weight:700}
.badge{font-weight:750;letter-spacing:.01em}
.stat span{font-weight:850;letter-spacing:-.01em}
.client-card strong,.client-code{font-weight:800;letter-spacing:-.008em}
th{font-weight:750;letter-spacing:.06em}
label{font-weight:600}
input,select,textarea{font-weight:500}
strong,b{font-weight:750}
/* Champs date / mois / heure : largeur minimale. Sur iPhone, un champ vide était minuscule et grossissait après le choix */
input[type=date]{min-width:10.5em}
input[type=month]{min-width:9em}
input[type=time]{min-width:6.5em}
.period-nav input[type=month]{min-width:0}
@media (max-width:640px){ .daynav form.inline input[type=date]{min-width:0} }
/* ---------- v47 : téléphone — tableaux à actions affichés en fiches (une carte par ligne, boutons en bas) ---------- */
/* v171 L12 : aussi sur tablette en portrait (iPad mini), pas sur téléphone en paysage */
@media (max-width:640px),(max-width:820px) and (min-height:600px){
  .scroll:has(> table.m-cards){overflow:visible}
  table.m-cards{display:block;width:100%;min-width:0!important;border:0;background:none}
  table.m-cards>tbody,table.m-cards>thead{display:block}
  table.m-cards tr.m-head{display:none}
  table.m-cards tr{display:block;background:#fff;border-radius:14px;padding:8px 14px;margin:0 0 10px;
    box-shadow:inset 0 0 0 1px var(--line),0 3px 10px -3px rgba(100,44,68,.14)}
  table.m-cards tr[hidden]{display:none}
  table.m-cards td.fe-choix{width:auto}
  table.m-cards tr{position:relative}
  table.m-cards td{display:block;position:relative;padding:7px 0 7px 38%;border:0;min-height:1.6em;
    text-align:left!important;white-space:normal!important;max-width:none!important;min-width:0;background:none;overflow-wrap:anywhere}
  table.m-cards td::before{content:attr(data-label);position:absolute;left:0;top:9px;width:35%;color:var(--muted);font-family:var(--font-title);
    font-size:.68rem;font-weight:800;line-height:1.3;text-transform:uppercase;letter-spacing:.05em}
  table.m-cards td:not([data-label]){padding-left:0}
  table.m-cards td.m-check{position:absolute;top:8px;right:12px;padding:0;min-height:0}
  table.m-cards tr.m-has-check>td:nth-child(2){padding-right:40px}
  table.m-cards td:not([data-label])::before{content:none}
  table.m-cards td:empty{display:none}
  table.m-cards td.m-wide{display:block}
  table.m-cards td.act,table.m-cards th.act{position:static!important;box-shadow:none!important;background:none!important}
  table.m-cards td.act{display:block;border-top:1px solid var(--line);margin-top:6px;padding-top:10px}
  table.m-cards td.act:empty{display:none}
  table.m-cards .act-group{flex-wrap:wrap;max-width:none!important;min-width:0!important}
  table.m-cards td select{max-width:100%!important;width:100%}
  table.m-cards tr.inactive td{opacity:.75}
}
/* ---------- v49 : police unique Plus Jakarta Sans (élégante, très lisible, chiffres alignés dans les tableaux) ---------- */
body{font-size:15px;letter-spacing:-.003em}
h1{font-weight:800;letter-spacing:-.025em}
h2{font-weight:750;letter-spacing:-.015em}
h3{font-weight:700;letter-spacing:-.01em}
.brand{font-weight:800;letter-spacing:-.015em}
.tabs a{font-weight:600}
.tabs a.active{font-weight:750}
button,.btn{font-weight:650;letter-spacing:0}
.chip{font-weight:650}
.badge{font-weight:700;letter-spacing:0}
.stat span{font-weight:800;letter-spacing:-.02em}
.client-card strong,.client-code{font-weight:750;letter-spacing:-.015em}
th{font-weight:700;letter-spacing:.06em}
label{font-weight:600}
input,select,textarea{font-weight:500}
strong,b{font-weight:700}
td,.num,.duree,.count,.stat span,.notif-count{font-variant-numeric:tabular-nums}
/* v171 : Lexend a déjà des espaces larges entre les mots : plus d'espace ajouté (l'ancienne police Plus Jakarta Sans en avait besoin) */
body{letter-spacing:0;word-spacing:normal}
.brand{letter-spacing:-.005em}
th{word-spacing:normal}
button,.btn,.chip,.badge,h1,h2,h3,.tabs a{word-spacing:normal}
h1{letter-spacing:-.018em}
h2{letter-spacing:-.008em}
/* ===== DÉBUT « style ballon » (v52) : grosses écritures en Fredoka. Pour revenir en arrière, supprimer ce bloc jusqu'à FIN. ===== */
@font-face{font-family:"Fredoka";src:url("fonts/Fredoka-latin-ext.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Fredoka";src:url("fonts/Fredoka-latin.woff2") format("woff2");font-weight:300 700;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}
h1,.login-head h1,.stat span,.client-code{font-family:"Fredoka","Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-weight:600;letter-spacing:.005em;word-spacing:.04em}
.stat span{font-weight:600}
/* ===== FIN « style ballon » ===== */
/* ---------- v53 : bulles de tailles harmonisées partout ---------- */
/* 3 familles : bouton (40 px), petit bouton et filtre (34 px, même texte), étiquette (22 px, une ligne) */
button:not(.link):not(.tag-x):not(.pw-eye):not(.small):not(.chip),.btn:not(.small):not(.chip){min-height:40px;font-size:14.5px;padding:8px 18px;line-height:1.2}
button.small,.btn.small,.chip{min-height:34px;font-size:13.5px;padding:6px 14px;line-height:1.2}
.badge{min-height:22px;font-size:12px;line-height:1.2;padding:3px 10px;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}
.line-card .badge,.contest-card .badge,.deadline-box .badge{white-space:nowrap}
.notif-count{font-size:11px}
/* Téléphone : boutons d'une ligne de relevé l'un sous l'autre plutôt que du texte coupé sur deux lignes */
@media (max-width:640px){
  .line-actions form,.line-actions .btn,.line-actions button{flex:1 1 100%}
  button,.btn{max-width:100%}
}
/* ---------- v59 : onglets du haut en bande prune (couleur foncée du logo), onglet ouvert en pastille blanche ---------- */
.tabs,.top-many:not(.top-stack) .tabs{background:linear-gradient(180deg,#7d3a59 0,#64294a 55%,#57223f 100%)!important;padding:4px!important;gap:2px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 6px 16px -6px rgba(87,34,63,.55)!important}
.tabs a{background:none;box-shadow:none;color:#f7e6ee;opacity:1;font-weight:600;transition:background .18s,color .18s}
.tabs a:hover{background:rgba(255,255,255,.13);color:#fff}
.tabs a.active,.tabs a.active:hover{background:linear-gradient(180deg,#fff,#fdf2f7);color:#c4006b;font-weight:750;
  box-shadow:0 2px 6px rgba(40,10,25,.28)}
.tabs a:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.6)}
/* v60 : bande prune plus claire, avec reflet brillant sur la moitié haute */
.tabs,.top-many:not(.top-stack) .tabs{background:
  linear-gradient(180deg,rgba(255,255,255,.34) 0,rgba(255,255,255,.12) 48%,rgba(255,255,255,0) 52%),
  linear-gradient(180deg,#a65a7f 0,#8c4568 55%,#7a3a5b 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 -1px 0 rgba(60,15,35,.25),0 6px 16px -6px rgba(122,58,91,.55)!important}
.tabs a{color:#fff}
.tabs a:hover{background:rgba(255,255,255,.16)}
/* v61 : bande des onglets aux couleurs du logo (fuchsia de la robe vers framboise des chaussures), reflet conservé */
.tabs,.top-many:not(.top-stack) .tabs{background:
  linear-gradient(180deg,rgba(255,255,255,.32) 0,rgba(255,255,255,.10) 48%,rgba(255,255,255,0) 52%),
  linear-gradient(180deg,#e0207f 0,#c4126e 55%,#a41c5c 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 -1px 0 rgba(90,10,45,.25),0 6px 16px -6px rgba(196,18,110,.55)!important}
.tabs a.active .notif-count{background:#e4007e;color:#fff}
/* v62 : onglets en Fredoka (police ronde des grands titres) et reflet qui traverse l'onglet survolé */
.tabs a{font-family:"Fredoka","Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-weight:500;font-size:.9rem;
  letter-spacing:.01em;word-spacing:.04em;overflow:hidden}
.tabs a.active,.tabs a.active:hover{font-weight:600}
.tabs a::after{content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;pointer-events:none;transform:skewX(-20deg);
  background:linear-gradient(105deg,rgba(255,255,255,0) 0,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 100%);opacity:0}
.tabs a:hover::after{-webkit-animation:tab-shine .65s ease-out;animation:tab-shine .65s ease-out}
.tabs a.active::after{background:linear-gradient(105deg,rgba(255,255,255,0) 0,rgba(255,200,228,.7) 50%,rgba(255,255,255,0) 100%)}
@-webkit-keyframes tab-shine{0%{left:-70%;opacity:1}100%{left:130%;opacity:1}}
@keyframes tab-shine{0%{left:-70%;opacity:1}100%{left:130%;opacity:1}}
@media (prefers-reduced-motion:reduce){ .tabs a:hover::after{-webkit-animation:none;animation:none} }
/* v64 : police des onglets du haut — Quicksand (arrondie et élégante, s'accorde avec la silhouette du logo) */
@font-face{font-family:"Quicksand";src:url("fonts/Quicksand-latin-ext.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Quicksand";src:url("fonts/Quicksand-latin.woff2") format("woff2");font-weight:300 700;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}
.tabs a{font-family:"Quicksand","Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-weight:650;font-size:.87rem;letter-spacing:.005em}
.tabs a.active,.tabs a.active:hover{font-weight:700}
/* ---------- v66 : mode maintenance ---------- */
.maint-banner{background:linear-gradient(90deg,#fff1e0,#ffe6ef);color:#7a3200;text-align:center;padding:8px 14px;font-size:.88rem;
  box-shadow:inset 0 -1px 0 rgba(178,80,0,.15)}
.maint-banner a{font-weight:700;margin-left:6px}
.maint-page{min-height:100vh;display:flex;align-items:center;justify-content:center}
.maint-wrap{max-width:520px;width:100%;padding:24px 16px;margin:0 auto}
.maint-card{text-align:center;padding:32px 24px}
.maint-card .logo-login{margin:0 auto 10px}
.maint-card h1{margin:.2em 0 .5em}
.maint-msg{font-weight:600}
.maint-legal{text-align:center;margin-top:16px}
.maint-form{margin-top:14px}
/* v67 : calendrier de duplication — jours d'une période terminée grisés (non sélectionnables) */
.dup-num.dup-off{color:#b9aab2;text-decoration:line-through;cursor:not-allowed}
.period-closed{font-weight:600}
/* v68 : « Synthèse totale des salariés » mise en avant en tête des exports */
.export-group.export-main{background:#fdf0f6;border-radius:12px;padding:6px 10px;box-shadow:inset 0 0 0 1px rgba(209,0,111,.15)}
/* v69 : calendrier de duplication — le mois affiché sous le numéro, dans chaque case */
.dup-day .dup-mois{font-size:.66rem;line-height:1;color:var(--muted);font-weight:600}
/* ---------- v70 : module « Logiciel » (fiches clients et salariés) et écran de choix après la connexion ---------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.opt{font-weight:400;opacity:.8}
.opt::before{content:"("}.opt::after{content:")"}
/* Écran de choix : suivi des heures ou Logiciel */
.choix-h1{text-align:center;margin:14px 0 26px}
.choix-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:22px;max-width:940px;margin:0 auto 22px}
.choix-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:28px 26px 24px;border-radius:24px;background:var(--card);
  background-image:var(--gloss);box-shadow:var(--shadow),0 0 0 1px rgba(100,44,68,.06);color:var(--ink);transition:transform .18s,box-shadow .18s}
.choix-card:hover{text-decoration:none;transform:translateY(-3px);box-shadow:var(--shadow-pop),0 0 0 1px rgba(209,0,111,.25)}
.choix-ico{display:grid;place-items:center;width:66px;height:66px;border-radius:20px;background:var(--pri-soft);color:var(--pri)}
.choix-ico svg{width:38px;height:38px}
.choix-titre{font-family:"Fredoka","Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:1.7rem;font-weight:600;color:var(--plum);line-height:1.15}
.choix-desc{color:var(--muted);font-size:.95rem}
.choix-infos{display:flex;flex-wrap:wrap;gap:6px}
.choix-go{margin-top:auto;padding-top:8px;color:var(--pri);font-weight:650}
.choix-aide{text-align:center}
/* En-tête d'une fiche */
.fiche-titre{margin-bottom:.35em}
.fiche-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 22px}
.fiche-links{display:inline-flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.badge.compte{background:#eef1f6;color:#33415c;font-variant-numeric:tabular-nums}
.badge.pr-garde{background:#fce8f2;color:#a41c5c}
.badge.pr-menage{background:#e6f0fb;color:#1f4f96}
.badge.pr{background:var(--ok-bg);color:var(--ok)}
.badge.q-parent1,.badge.q-parent2{background:#f3ecf7;color:#5b2a7a}
.badge.q-beneficiaire{background:#e6f0fb;color:#1f4f96}
/* Blocs de la fiche : une ligne par élément, touchée elle s'ouvre pour être modifiée */
.fiche-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(390px,100%),1fr));gap:18px;align-items:start;margin-bottom:18px}
.fiche-grid>.card{margin:0}
.fiche-bloc h2{display:flex;align-items:center;gap:8px}
.fiche-bloc h2 .count{font-family:var(--font);font-size:.78rem;font-weight:650;color:var(--muted);background:rgba(100,44,68,.07);border-radius:999px;padding:1px 9px;letter-spacing:0}
details.fi{border-top:1px solid var(--line)}
details.fi>summary{list-style:none;display:flex;align-items:flex-start;gap:12px;padding:11px 6px;margin:0 -6px;cursor:pointer;border-radius:10px}
details.fi>summary::-webkit-details-marker{display:none}
details.fi>summary:hover{background:rgba(100,44,68,.035)}
.fi-main{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.fi-line{min-width:0;overflow-wrap:anywhere}
.fi-sub{flex-basis:100%}
.fi-tags{display:inline-flex;flex-wrap:wrap;gap:5px}
.fi-tags:empty{display:none}
.fi-toggle{flex-shrink:0;font-size:.82rem;font-weight:650;color:var(--pri);padding-top:2px}
.fi-close{display:none}
details.fi[open]>summary .fi-open{display:none}
details.fi[open]>summary .fi-close{display:inline}
.fi-body{padding:2px 0 14px}
.fi-form{background:rgba(252,232,242,.38);border-radius:14px;padding:14px 14px 2px;margin:0 0 8px}
.fi-btns{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 12px}
.fi-del{display:flex;justify-content:flex-end}
.fi-empty{margin:2px 0 10px}
details.fi-add{margin-top:12px}
details.fi-add>summary,details.fi-create>summary{list-style:none;cursor:pointer}
details.fi-add>summary::-webkit-details-marker,details.fi-create>summary::-webkit-details-marker{display:none}
details.fi-add[open]>summary{margin-bottom:10px}
details.fi-create>summary h2{margin:0;color:var(--pri)}
details.fi-create[open]>summary h2{margin-bottom:14px}
fieldset.checks{border:0;padding:0;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:2px 18px;min-width:0}
fieldset.checks legend{font-size:.82rem;font-weight:500;color:var(--muted);padding:0;margin-bottom:4px;width:100%}
fieldset.checks label.check{margin:0 0 4px}
.geo-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:-6px 0 10px}
.geo-line:has(button[hidden]):has(span:empty){display:none}
.geo-btn svg{width:17px;height:17px}
.geo-status.ok{color:var(--ok)}.geo-status.bad{color:var(--warn)}
.age{font-weight:650;color:var(--plum)}
a.tel{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.num-input{max-width:11em}
table.fiches-table .cl-who{min-width:160px;max-width:260px}
table.fiches-table .client-link{display:flex;flex-direction:column;color:var(--ink)}
table.fiches-table .client-link:hover{text-decoration:none}
table.fiches-table .client-link:hover strong{color:var(--pri)}
table.fiches-table td{vertical-align:top}
table.fiches-table .cl-name{display:block;color:var(--muted);font-size:.82rem}
/* Paramètres : modes de règlement */
.modes-list{display:flex;flex-direction:column;margin:0 0 14px}
.mode-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px 0;border-top:1px solid var(--line)}
.mode-row:first-child{border-top:0}
.mode-row.inactive input{color:var(--muted)}
.mode-rename{flex:1 1 240px;min-width:0;max-width:100%;margin:0;align-items:center}
.mode-rename label{flex:1 1 auto;min-width:0;margin:0}
.mode-rename input{width:100%;min-width:0}
.mode-info{display:inline-flex;gap:6px;align-items:center}
@media (max-width:640px){
  .fiche-links{margin-left:0}
  .fi-form{padding:12px 10px 2px}
  .choix-card{padding:22px 20px}
  .choix-h1{margin:6px 0 18px}
}
.top-spacer{flex:1 1 auto}  /* écran de choix : pas d’onglets, le compte reste à droite */
@media (max-width:820px){ .top-spacer{order:1} }
label>.lbl{display:block}
.fiche-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.fiche-col>.card{margin:0}
.hist-list{list-style:none;margin:0 0 10px;padding:0}
.hist-list>li{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--line)}
.hist-list>li:first-child{border-top:0;padding-top:0}
.hist-what{font-weight:600}
.list-summary{display:flex;flex-wrap:wrap;gap:6px;margin:-8px 0 18px}
@media (max-width:640px){
  .choix-h1{font-size:1.55rem}
  .choix-grid{gap:14px}
  .choix-card{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:18px 18px 16px;border-radius:20px}
  .choix-ico{width:52px;height:52px;border-radius:16px}
  .choix-ico svg{width:30px;height:30px}
  .choix-titre{flex:1;font-size:1.45rem}
  .choix-desc,.choix-infos{flex-basis:100%}
  .choix-desc{font-size:.9rem}
  .choix-go{display:none}
}
.list-summary .badge{white-space:normal;text-align:left}
/* ---------- v71 : Logiciel — documents, CAF, main courante, notifications ---------- */
.doc-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.doc-row:first-of-type{border-top:0}
.doc-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;color:var(--ink);border-radius:10px;padding:2px}
.doc-open:hover{text-decoration:none}
.doc-open:hover strong{color:var(--pri)}
.doc-ico{flex-shrink:0;display:grid;place-items:center;width:42px;height:48px;border-radius:9px;background:var(--pri-soft);color:var(--rasp);font-size:.66rem;font-weight:800;letter-spacing:.02em}
.doc-txt{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.caf-form{align-items:flex-end}
.caf-form label{margin-bottom:0}
textarea{font:inherit;line-height:1.45;min-height:3.2em;resize:vertical}
.badge.mc-a_traiter{background:var(--warn-bg);color:var(--warn)}
.badge.mc-en_cours{background:#e8710a;color:#fff}
/* v241 : « En cours de traitement » en orange */
.btn.mc-encours-btn,button.mc-encours-btn{background:#e8710a;border-color:#e8710a;color:#fff}
.btn.mc-encours-btn:hover,button.mc-encours-btn:hover{background:#c95f06;border-color:#c95f06;color:#fff}
.badge.mc-encours-badge{background:#e8710a;color:#fff}
.mc-encours{border-left:3px solid #e8710a;background:rgba(232,113,10,.08);border-radius:6px;padding:6px 10px;margin:6px 0}
.mc-encours p{margin:2px 0}
details.mc-encours-edit[open]{flex-basis:100%}
details.mc-encours-edit>summary{list-style:none;display:inline-flex;cursor:pointer}
details.mc-encours-edit>summary::-webkit-details-marker{display:none}
.mc-encours-form{margin-top:6px;max-width:560px}
.badge.mc-traite{background:var(--ok-bg);color:var(--ok)}
a.badge:hover{text-decoration:none;filter:brightness(.97)}
.mc-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-bottom:6px}
.mc-head h2{margin:0;display:flex;align-items:center;gap:8px}
.mc-head h2 .count{font-family:var(--font);font-size:.78rem;font-weight:650;color:var(--muted);background:rgba(100,44,68,.07);border-radius:999px;padding:1px 9px}
.mc-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.mc-item{border-radius:14px;padding:12px 14px 10px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);border-left:4px solid #e2d4dc}
.mc-page .mc-item{box-shadow:var(--shadow),0 0 0 1px rgba(100,44,68,.05)}
.mc-item.mc-st-a_traiter{border-left-color:#f5a524}
.mc-item.mc-st-en_cours{border-left-color:#e8710a}
.mc-item.mc-st-traite{border-left-color:#30b158}
.mc-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.mc-date{font-weight:650}
.mc-who{font-weight:650}
.mc-with{color:var(--muted)}
.mc-with strong{color:var(--ink);font-weight:600}
.mc-demande,.mc-suivi{white-space:pre-line;overflow-wrap:anywhere;margin:8px 0 0}
.mc-suivi{padding:8px 10px;border-radius:10px;background:#f6f7fa}
.mc-meta{margin:8px 0 0}
.mc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
details.mc-edit[open]{flex-basis:100%}
details.mc-edit>summary{list-style:none;display:inline-flex;cursor:pointer}
details.mc-edit>summary::-webkit-details-marker{display:none}
details.mc-edit[open]>summary{margin-bottom:8px}
.mc-filtres{padding-bottom:10px}
.mc-filtres-btns{align-items:center}
#bloc-mc{margin:0 0 18px}
.notif-tools{align-items:center;margin-bottom:14px}
.notif-tools form{margin:0}
.lg-notifs{list-style:none;margin:0;padding:0}
.lg-notifs>li{border-top:1px solid var(--line)}
.lg-notifs>li:first-child{border-top:0}
.lg-notifs>li>a{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:12px 4px;color:var(--ink)}
.lg-notifs>li>a:hover{text-decoration:none;background:rgba(100,44,68,.03)}
.lg-notifs>li.unread .nt-txt{font-weight:650}
.lg-notifs .nt-txt{flex:1 1 300px;min-width:0;overflow-wrap:anywhere}
.badge.nk-a_traiter{background:var(--warn-bg);color:var(--warn)}
.badge.nk-traite{background:var(--ok-bg);color:var(--ok)}
.badge.nk-rappel{background:#e6f0fb;color:#1f4f96}
fieldset.prest-q label.check{font-weight:600}
/* ---------- v72 : employeur — sélecteur de module « Suivi des heures | Logiciel » à côté du logo ---------- */
.brand-group{gap:12px}
.brand-link{display:inline-flex;align-items:center;color:inherit;line-height:0;border-radius:12px}
.brand-link:hover{text-decoration:none}
.module-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:rgba(100,44,68,.07);
  box-shadow:inset 0 0 0 1px rgba(100,44,68,.10)}
.module-switch a{display:inline-flex;align-items:center;padding:6px 14px;border-radius:999px;font-size:.84rem;font-weight:700;letter-spacing:0;
  color:var(--plum);white-space:nowrap;line-height:1.2;transition:background .15s,color .15s,box-shadow .15s}
.module-switch a:hover{text-decoration:none;background:rgba(255,255,255,.85)}
.module-switch a.on{background:linear-gradient(180deg,#e0067a,#c8006a);color:#fff;box-shadow:0 3px 10px rgba(209,0,111,.30)}
.module-switch a:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(209,0,111,.30)}
.module-switch .ms-short{display:none}
/* Place comptée (app.js) : au premier palier « compact », libellés courts ; sur téléphone, toujours courts */
.top-many.top-compact .module-switch .ms-long{display:none}
.top-many.top-compact .module-switch .ms-short{display:inline}
@media (max-width:820px){
  .module-switch .ms-long{display:none}
  .module-switch .ms-short{display:inline}
  .module-switch a{padding:6px 12px}
}
@media (max-width:360px){ .brand-group{gap:8px} .module-switch a{padding:5px 10px;font-size:.8rem} }
/* ---------- v73 : fiche salarié — compétences par âge, date d'embauche, « ne pas présenter », commentaire ---------- */
fieldset.checks-col{flex-direction:column;align-items:flex-start;gap:2px}
fieldset.checks-col .comp-tache{margin-left:24px}
.anciennete{margin:0 0 12px;align-self:center}
.npp-bloc.npp-on{box-shadow:var(--shadow),inset 0 0 0 2px #f5a524;background:#fffaf0}
.npp-bloc.npp-on h2{color:#a24a00}
.comp-cell .badge{margin:0 2px 3px 0;white-space:normal;text-align:left;max-width:100%}
/* ---------- v74 : listes cliquables, bulles de documents, envoi par e-mail / WhatsApp ---------- */
table.fiches-table tr[data-href]{cursor:pointer}
table.fiches-table tr[data-href]:hover>td{background:rgba(209,0,111,.045)}
@media (max-width:640px),(max-width:820px) and (min-height:600px){ table.m-cards tr[data-href]:active{box-shadow:inset 0 0 0 2px rgba(209,0,111,.35),0 3px 10px -3px rgba(100,44,68,.14)} }
.doc-bulles{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 6px}
.doc-bulle-form{margin:0}
.doc-bulle{display:inline-flex;align-items:center;gap:6px;min-height:34px;margin:0;padding:6px 14px;border-radius:999px;cursor:pointer;
  font-size:13.5px;font-weight:600;line-height:1.2;color:var(--plum);background:linear-gradient(180deg,#fff,#f6eef2);
  box-shadow:0 1px 2px rgba(100,44,68,.10),inset 0 0 0 1px rgba(100,44,68,.14);transition:box-shadow .15s,transform .1s;flex-direction:row}
.doc-bulle:hover{box-shadow:0 3px 10px rgba(209,0,111,.18),inset 0 0 0 1px rgba(209,0,111,.35)}
.doc-bulle:active{transform:scale(.97)}
.doc-bulle:focus-within{box-shadow:0 0 0 3px rgba(209,0,111,.30)}
.doc-bulle .db-plus{color:var(--pri);font-weight:800}
.doc-bulle .db-n{min-width:20px;padding:0 6px;border-radius:999px;background:var(--pri);color:#fff;font-size:11px;text-align:center;line-height:18px}
.doc-bulle.sending{opacity:.6;pointer-events:none}
.doc-bulle.sending::after{content:"envoi…";font-weight:500;color:var(--muted)}
.doc-aide{margin:2px 0 10px}
h3.doc-type{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:14px 0 2px}
.doc-row .doc-send{flex-shrink:0}
.doc-meta{margin-top:-8px}
.wa-list{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:6px 0 10px}
.wa-btn{background:#e9f8ef;color:#13723b;white-space:normal;text-align:left}
.wa-btn:hover{background:#d8f2e2}
.wa-steps{margin:4px 0;padding-left:20px}
.mail-steps{padding-left:20px;margin:0 0 12px}
.mail-test{align-items:flex-end}
/* v75 : GE3 et GE2 de couleurs différentes dans la liste des salariés */
.badge.pr-ge3{background:#fce8f2;color:#a41c5c}
.badge.pr-ge2{background:#efe7fb;color:#5b2a9a}
/* v76 : main courante (types, interlocuteur, reçu par, conflit), secteurs et kilomètres, références */
fieldset.interloc{align-items:center}
.interloc-txt{flex:1 1 220px;min-width:0;margin:0 0 4px}
.dep-preciser{flex:1 1 180px;min-width:0;max-width:260px;margin:0 0 4px}
.badge.mc-type{background:#f3ecf7;color:#5b2a7a}
.conflit-box label.check{margin:6px 0 0}
.km-secteurs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.km-s{display:flex;flex-direction:column;padding:6px 12px;border-radius:12px;background:#f6f7fa;min-width:110px}
.km-s.km-mien{background:var(--pri-soft);box-shadow:inset 0 0 0 1px rgba(209,0,111,.3)}
.badge.ref-verifiees{background:var(--ok-bg);color:var(--ok)}
.badge.ref-sans{background:var(--warn-bg);color:var(--warn)}
.badge.ref-aucun{background:#ececf0;color:#48484a}
.npp-client a{color:#a24a00;font-weight:600}
/* v77 : distances domicile salarié → client, demande d'affectation (intervenante) */
.km-liste{list-style:none;margin:8px 0 4px;padding:0}
.km-liste li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-top:1px solid var(--line)}
.km-liste li:first-child{border-top:0}
.demande-client-lien{margin:0 0 12px}
/* v82 : assistant façon messagerie (iMessage), aux couleurs du site — bulle d'ouverture, panneau, discussion */
.chat-widget{position:fixed;right:20px;bottom:20px;z-index:70;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.chat-bouton{display:inline-flex;align-items:center;gap:10px;border-radius:999px;padding:16px 26px!important;min-height:0!important;border:0;font-weight:600;font-size:1.1rem!important;cursor:pointer}
.chat-bouton svg{position:relative;z-index:1;flex:none;width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chat-bouton[aria-expanded=true]{filter:brightness(.92)}
.chat-panneau{position:relative;width:min(480px,calc(100vw - 40px));height:min(780px,calc(100vh - 190px));min-height:420px;background:#fff;border-radius:24px;
  overflow:hidden;box-shadow:0 28px 70px -14px rgba(100,44,68,.42),0 0 0 .5px rgba(100,44,68,.14)}
.chat-panneau[hidden]{display:none}
.chat-cadre{display:block;width:100%;height:100%;border:0;background:#fff}
button.chat-fermer{position:absolute;top:17px;right:14px;z-index:2;width:30px!important;height:30px;min-height:0!important;padding:0!important;border:0;
  border-radius:50%;display:grid;place-items:center;background:rgba(120,120,128,.14)!important;background-image:none!important;box-shadow:none!important;
  color:#55555a;cursor:pointer}
button.chat-fermer:hover{background:rgba(120,120,128,.24)!important}
.chat-fermer svg{flex:none;width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.chat-erreur{margin:84px 24px 0;font-size:.95rem;text-align:center;color:var(--muted)}
body.has-chat main{padding-bottom:84px}
@media (max-width:820px){
  .chat-widget{right:12px;bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .chat-bouton{padding:17px!important}
  .chat-bouton svg{width:30px;height:30px}
  .chat-bouton span{display:none}
  .chat-bouton[aria-expanded=true]{display:none}
  /* téléphone : la discussion prend tout l'écran, comme Messages */
  .chat-panneau{position:fixed;top:0;right:0;bottom:0;left:0;width:auto;height:auto;border-radius:0;z-index:80;
    padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}
  button.chat-fermer{top:calc(env(safe-area-inset-top,0px) + 17px)}
}

/* La discussion (dans le panneau ou en page entière) */
.imsg-cache{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html.assistant-panneau-html,body.assistant-panneau{height:100%;margin:0;padding:0;background:#fff}
.imsg{display:flex;flex-direction:column;background:#fff;color:var(--ink);font-size:16.5px;line-height:1.38;letter-spacing:-.012em}
.imsg-panneau{position:fixed;top:0;right:0;bottom:0;left:0}
.imsg-page{height:calc(100vh - 200px);min-height:320px;max-width:880px;margin:0 auto;border-radius:24px;overflow:hidden;
  box-shadow:var(--hi),var(--shadow),0 0 0 1px rgba(100,44,68,.06)}
@supports (height:100dvh){.imsg-page{height:calc(100dvh - 200px)}}
/* en-tête : avatar rond et nom au centre, comme une conversation Messages */
.imsg-tete{flex:none;display:grid;grid-template-columns:64px 1fr 64px;align-items:center;padding:8px 10px 7px;position:relative;z-index:1;
  background:rgba(251,249,250,.94);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);
  border-bottom:.5px solid rgba(60,60,67,.18)}
.imsg-panneau .imsg-tete{grid-template-columns:96px 1fr 96px}
.imsg-panneau .imsg-droite{padding-right:44px}
.imsg-cote{display:flex;align-items:center;min-width:0}
.imsg-droite{justify-content:flex-end}
.imsg-tete form{margin:0}
.imsg-qui{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.imsg-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;
  background:linear-gradient(180deg,#f2479f 0,#d6007a 55%,#b30061 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 3px 10px -2px rgba(209,0,111,.45)}
.imsg-avatar svg{width:22px;height:22px;fill:currentColor}
.imsg-nom{font-size:.78rem;font-weight:500;color:#3c3c43}
.imsg .imsg-icone{width:38px!important;height:38px;min-height:0!important;padding:0!important;border:0;border-radius:50%;display:grid;place-items:center;color:var(--pri);
  background:transparent!important;background-image:none!important;box-shadow:none!important;cursor:pointer}
.imsg .imsg-icone:hover{background:rgba(209,0,111,.08)!important}
.imsg-icone svg{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
/* fil : bulles roses pour vos messages, gris rosé pour l'assistant, petite queue sur le dernier d'une suite */
.imsg-fil{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  display:flex;flex-direction:column;padding:12px 16px 10px;background:#fff}
.imsg-heure{align-self:center;margin:14px 0 6px;font-size:.72rem;color:#8e8e93;text-align:center}
.imsg-heure strong{font-weight:600}
.imsg-b{position:relative;max-width:78%;margin:1.5px 0;padding:8px 14px;border-radius:20px;overflow-wrap:anywhere}
.imsg-b.moi{align-self:flex-end;color:#fff;white-space:pre-wrap;background:var(--pri)}
.imsg-b.assistant{align-self:flex-start;color:#1d1d1f;background:#f0eaee}
.imsg-b.queue{margin-bottom:9px}
.imsg-b.queue.moi::before,.imsg-b.queue.assistant::before{content:"";position:absolute;bottom:0;width:20px;height:20px}
.imsg-b.queue.moi::after,.imsg-b.queue.assistant::after{content:"";position:absolute;bottom:0;width:26px;height:20px;background:#fff}
.imsg-b.queue.moi::before{right:-7px;background:var(--pri);border-bottom-left-radius:16px 14px}
.imsg-b.queue.moi::after{right:-26px;border-bottom-left-radius:10px}
.imsg-b.queue.assistant::before{left:-7px;background:#f0eaee;border-bottom-right-radius:16px 14px}
.imsg-b.queue.assistant::after{left:-26px;border-bottom-right-radius:10px}
.imsg-b p{margin:0 0 7px}.imsg-b p:last-child{margin:0}
.imsg-b ul{margin:2px 0 7px;padding-left:20px}.imsg-b ul:last-child{margin-bottom:0}
.imsg-b li{margin:2px 0}
.imsg-b strong{font-weight:650}
.imsg-doc{align-self:flex-end;max-width:78%;margin:1.5px 0;padding:9px 14px;border-radius:18px;background:#fff;border:1px solid rgba(100,44,68,.16);
  font-size:.9rem;color:#1d1d1f;overflow-wrap:anywhere}
/* action préparée : carte à confirmer, côté assistant */
.imsg-action{align-self:flex-start;max-width:86%;margin:4px 0 10px;padding:12px 14px 13px;border-radius:20px;background:#fff;
  border:1px solid rgba(100,44,68,.14);box-shadow:0 3px 12px -6px rgba(100,44,68,.25)}
.imsg-action.st-proposee{background:#fffaf2;border-color:rgba(178,80,0,.30)}
.imsg-action p{margin:0 0 9px}
.imsg-action .imsg-action-titre{margin:0 0 4px;font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--warn)}
.imsg-action.st-faite .imsg-action-titre{color:var(--ok)}
.imsg-action.st-annulee .imsg-action-titre{color:#8e8e93}
.imsg-action .imsg-action-res{margin:0;font-size:.86rem;color:var(--muted)}
.imsg-action-boutons{display:flex;flex-wrap:wrap;gap:8px}
.imsg-acces{margin:10px 0 0;padding:11px 12px 12px;border-radius:14px;background:var(--bg,#faf7f9);border:1px dashed rgba(0,0,0,.18)}
.imsg-acces p{margin:0 0 8px}
.imsg-acces-lib{display:block;font-size:.72rem;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.imsg-acces-val{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.08rem;letter-spacing:.03em;
  word-break:break-all;-webkit-user-select:all;user-select:all}
.imsg-acces .imsg-acces-note{font-size:.8rem;color:var(--muted)}
.imsg-action-boutons form{margin:0}
/* « l'assistant écrit… » */
.imsg-tape{align-self:flex-start;display:inline-flex;gap:5px;margin:4px 0 10px;padding:13px 15px;border-radius:20px;background:#f0eaee}
.imsg-tape span{width:8px;height:8px;border-radius:50%;background:#a69aa2;animation:imsg-points 1.2s infinite ease-in-out}
.imsg-tape span:nth-child(2){animation-delay:.16s}.imsg-tape span:nth-child(3){animation-delay:.32s}
@keyframes imsg-points{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.imsg-tape span{animation:none}}
/* messages du site (erreur, confirmation) : petite note centrée */
.imsg .imsg-note{align-self:center;max-width:92%;margin:8px 0;padding:8px 13px;border-radius:14px;font-size:.84rem;line-height:1.35;text-align:center;
  background:#f4f0f2;background-image:none;box-shadow:none;color:#55555a}
.imsg .imsg-note.error{background:var(--bad-bg);color:#8a0010}
.imsg .imsg-note.success{background:var(--ok-bg);color:#14532d}
.imsg .imsg-note.warning{background:var(--warn-bg);color:#7a3600}
/* saisie : « + » pour joindre, champ arrondi, flèche d'envoi */
.imsg-saisie{flex:none;margin:0;padding:8px 12px 10px;background:rgba(251,249,250,.96);border-top:.5px solid rgba(60,60,67,.16)}
.imsg-panneau .imsg-saisie{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
.imsg-barre{display:flex;align-items:flex-end;gap:8px}
.imsg-plus{flex:none;width:36px;height:36px;margin-bottom:1px;border-radius:50%;display:grid;place-items:center;background:#ece5ea;color:#6e6e73;cursor:pointer}
.imsg-plus:hover{background:#e3d9e0;color:var(--pri)}
.imsg-plus svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}
.imsg-fichiers{position:absolute;top:0;left:0;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.imsg-fichiers:focus-visible+.imsg-champ,.imsg-plus:focus-within{box-shadow:0 0 0 4px rgba(209,0,111,.22)}
.imsg-champ{flex:1;min-width:0;display:flex;align-items:flex-end;gap:6px;min-height:38px;padding:3px 3px 3px 15px;border:1px solid rgba(60,60,67,.24);
  border-radius:20px;background:#fff}
.imsg-champ:focus-within{border-color:rgba(209,0,111,.5)}
.imsg-champ textarea{flex:1;min-width:0;min-height:0;max-height:160px;margin:0;padding:6px 0;border:0;border-radius:0;outline:0;resize:none;
  background:transparent;box-shadow:none;font:inherit;font-size:16px;line-height:1.35;color:var(--ink)}
.imsg-champ textarea:focus{box-shadow:none;border:0}
.imsg-champ textarea::placeholder{color:#a1a1a6}
.imsg button.imsg-envoi{flex:none;width:31px!important;height:31px;min-height:0!important;padding:0!important;border-radius:50%;display:grid;place-items:center;margin:0}
.imsg-envoi svg{flex:none;width:17px;height:17px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;position:relative;z-index:1}
.imsg-saisie.vide .imsg-envoi{opacity:.3;pointer-events:none}
.imsg-pj{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px 44px}
.imsg-pj[hidden]{display:none}
.imsg-pj span{max-width:100%;padding:5px 11px;border-radius:14px;background:#fff;border:1px solid rgba(100,44,68,.16);font-size:.84rem;overflow-wrap:anywhere}
.imsg-pj span.imsg-pj-err{background:var(--bad-bg);border-color:transparent;color:#8a0010}
.imsg .imsg-pj-retirer{min-height:0!important;padding:4px 10px!important;font-size:.8rem!important;border-radius:14px;background:transparent!important;background-image:none!important;
  box-shadow:none!important;color:var(--pri)}
@media (max-width:820px){
  .imsg-page{height:calc(100vh - 210px);border-radius:20px}
  @supports (height:100dvh){.imsg-page{height:calc(100dvh - 210px)}}
  .imsg-b,.imsg-doc{max-width:84%}
}
/* v84 : liens vers les fiches, raccourcis, menu du « + », réponse en cours, pastille */
.imsg-b.assistant a,.imsg-action a{color:var(--pri);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;font-weight:600}
.imsg-raccourcis{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 8px}
.imsg .imsg-raccourci{min-height:0!important;padding:8px 14px!important;font-size:.9rem!important;border-radius:18px;border:1px solid rgba(209,0,111,.28);
  background:#fff!important;background-image:none!important;box-shadow:none!important;color:var(--pri);font-weight:600}
.imsg .imsg-raccourci:hover{background:#fdf0f6!important}
.imsg-barre{position:relative}
.imsg-menu{position:absolute;left:0;bottom:46px;z-index:3;display:flex;flex-direction:column;min-width:220px;padding:6px;border-radius:16px;background:#fff;
  box-shadow:0 12px 34px -8px rgba(100,44,68,.35),0 0 0 .5px rgba(100,44,68,.15)}
.imsg-menu[hidden]{display:none}
.imsg-menu label{flex-direction:row;align-items:center;gap:10px;margin:0;padding:12px 14px;border-radius:11px;font-size:1rem;font-weight:600;cursor:pointer;color:var(--ink)} /* v171 L10 : icône à gauche du texte */
.imsg-menu label:hover,.imsg-menu label:active{background:#f6eff3}
.imsg-partiel{white-space:pre-wrap}
.chat-pastille{position:absolute;right:-3px;bottom:46px;z-index:2;width:18px;height:18px;border-radius:50%;background:#ff3b30;border:2.5px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.25);pointer-events:none}
.chat-pastille[hidden]{display:none}
@media (max-width:820px){ .chat-pastille{bottom:48px;right:-2px} }
/* v86 : devis et planning */
.planning-liste{list-style:none;margin:0 0 8px;padding:0}
.planning-liste li{display:flex;align-items:center;gap:10px;padding:5px 0;border-bottom:1px solid var(--line)}
.planning-liste li form{margin:0 0 0 auto}
.planning-jour{min-width:84px;font-weight:600}
.planning-jours{display:flex;flex-wrap:wrap;gap:4px 14px}
.planning-calcul{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.planning-calcul h3{margin:0 0 6px;font-size:.95rem}
.planning-resultat{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:var(--pri-soft);font-size:.92rem}
.planning-moyenne{color:var(--pri);font-size:1.05rem}
.planning-report{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.devis-ligne{padding:12px 0 14px;border-bottom:1px solid var(--line)}
.devis-ligne textarea{min-height:56px}
.devis-chiffres{align-items:flex-end}
.devis-chiffres .num-input{max-width:110px}
.devis-total{margin:0 0 6px auto;display:flex;flex-direction:column;align-items:flex-end}
.devis-total strong{font-size:1.05rem}
.devis-ajout{margin-top:10px;align-items:flex-end}
.devis-totaux{width:100%;max-width:360px;margin:12px 0 14px auto;border-collapse:collapse}
.devis-totaux td{padding:4px 0}
.devis-totaux td:last-child{text-align:right;white-space:nowrap}
.devis-ttc td{font-weight:700;font-size:1.05rem;border-top:1px solid var(--line);padding-top:6px}
.devis-suivi{list-style:none;margin:10px 0 0;padding:0}
.devis-suivi li{padding:6px 0;border-bottom:1px solid var(--line)}
.devis-suivi-date{display:inline-block;min-width:84px;color:var(--muted);font-variant-numeric:tabular-nums}
.badge.dv-brouillon{background:#f1edf0;color:#55555a}
.badge.dv-envoye{background:#e8f0fe;color:#1f4fa8}
.badge.dv-accepte{background:var(--ok-bg);color:var(--ok)}
.badge.dv-refuse{background:var(--bad-bg);color:#8a0010}
.badge.dv-client{background:var(--pri-soft);color:var(--pri)}
.devis-presta input{min-width:0;width:100%}
.devis-presta td{padding:3px 4px;vertical-align:top}
.devis-presta td:nth-child(3),.devis-presta td:nth-child(4){width:90px}
fieldset.checks.dv-articles{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:6px 24px;align-items:start}
fieldset.checks.dv-articles[hidden]{display:none!important}
.dv-article{display:flex!important;align-items:flex-start;gap:8px;margin:0}
.dv-article input{margin-top:3px;flex:none}
@media (max-width:640px){ fieldset.checks.dv-articles{grid-template-columns:1fr} }
.dv-articles legend,.dv-articles>p{grid-column:1/-1}
.dv-article[hidden]{display:none!important}
.dv-article span{line-height:1.35}
.devis-presta .dv-ref{width:120px}
.devis-presta td:nth-child(2){min-width:260px}
/* v88 : question d'abord, trajets, enfants du devis */
.dv-question{border:0;padding:0;margin:0 0 16px;display:flex;flex-wrap:wrap;gap:12px}
.dv-question legend{font-weight:700;font-size:1.05rem;margin-bottom:10px;padding:0}
.dv-choix{position:relative;flex:1 1 220px;cursor:pointer}
.dv-choix input{position:absolute;opacity:0;width:1px;height:1px}
.dv-choix span{display:flex;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:14px 18px;border-radius:18px;
  border:2px solid var(--line);background:#fff;font-size:1.08rem;font-weight:600;transition:border-color .15s,background .15s}
.dv-choix:hover span{border-color:rgba(209,0,111,.35)}
.dv-choix input:checked+span{border-color:var(--pri);background:var(--pri-soft);color:var(--pri)}
.dv-choix input:focus-visible+span{box-shadow:0 0 0 4px rgba(209,0,111,.22)}
.planning-resultat p{margin:0 0 4px}
.planning-resultat p:last-child{margin:0}
.pr-lbl{display:inline-block;min-width:96px;font-weight:600;color:var(--muted)}
.trajets{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.trajets h3{margin:0 0 8px;font-size:.95rem}
.trajet{padding:10px 12px;margin:0 0 10px;border:1px solid var(--line);border-radius:14px;background:#fff}
.trajet-entete{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 6px}
.trajet-nom{flex:1 1 180px;min-width:0}
.trajet-jours{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:.85rem}
.trajet-etapes{margin:6px 0;padding-left:22px}
.trajet-etapes li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:4px 0}
.etape-adr{flex:1 1 200px;min-width:0}
.etape-km{display:flex;align-items:center;gap:4px;margin:0}
.etape-km .num-input{width:70px}
.etape-x{margin:0}
.etape-ajout{margin:4px 0 6px}
.trajet-total{margin:4px 0}
.enfant{padding:8px 0;border-bottom:1px solid var(--line)}
.enfant summary{cursor:pointer;list-style:none}
.enfant summary::-webkit-details-marker{display:none}
.enfant-lieu{display:block;color:var(--muted)}
/* v89 : complément d'adresse */
.adr-complement{color:var(--muted)}
/* v89 : fiche client — trois colonnes équilibrées, puis le planning en large à côté des devis et des documents */
.fiche-grid.fg-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.fiche-grid.fg-21{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
@media (max-width:1100px){
  .fiche-grid.fg-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fiche-grid.fg-3>.fiche-col:nth-child(3){grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .fiche-grid.fg-21{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .fiche-grid.fg-3{grid-template-columns:minmax(0,1fr)}
  .fiche-grid.fg-3>.fiche-col:nth-child(3){display:flex;align-items:stretch}  /* cartes à la largeur de l'écran */
}
/* v89 : enregistrement sans rechargement — message en haut de l'écran, formulaire grisé pendant l'envoi */
.toasts{position:fixed;left:50%;top:76px;transform:translateX(-50%);z-index:75;display:flex;flex-direction:column;gap:8px;
  width:min(560px,calc(100vw - 32px));pointer-events:none}
.toasts .flash{margin:0;pointer-events:auto;cursor:pointer;animation:toast-in .18s ease-out;box-shadow:0 12px 32px -10px rgba(60,20,40,.35)}
@keyframes toast-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.toasts .flash{animation:none}}
form.envoi-en-cours{opacity:.55;pointer-events:none;transition:opacity .15s}
/* v89 : heures réalisées comparées au planning (fiche client) */
.volume{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.volume-liste{list-style:none;margin:0 0 8px;padding:0}
.volume-liste li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:6px 0;border-top:1px dashed var(--line);font-variant-numeric:tabular-nums}
.volume-liste li:first-child{border-top:0}
.volume-liste li.alerte{color:#8a0010}
.volume-liste li.alerte .vol-pct{font-weight:700;background:var(--bad-bg);border-radius:999px;padding:0 8px}
.badge.nk-volume{background:var(--bad-bg);color:#8a0010}
.badge.nk-comptes{background:#eef1f6;color:#33415c}
.badge.nk-feuille{background:#e6f0fb;color:#1f4f96}
/* v89 : feuilles de présence */
.feuilles-liste{list-style:none;margin:0 0 10px;padding:0}
.feuilles-liste li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:8px 0;border-top:1px solid var(--line)}
.feuilles-liste li:first-child{border-top:0}
.badge.fs-a_lire{background:var(--warn-bg);color:#7a3600}
.badge.fs-lue{background:var(--ok-bg);color:#14532d}
.badge.fs-illisible,.badge.fs-erreur{background:var(--bad-bg);color:#8a0010}
.badge.fe-conforme{background:var(--ok-bg);color:#14532d}
.badge.fe-saisie{background:#e6f0fb;color:#1f4f96}
.badge.fe-ecart,.badge.fe-manquante{background:var(--warn-bg);color:#7a3600}
.badge.fe-absente,.badge.fe-illisible{background:var(--bad-bg);color:#8a0010}
.badge.feuille{background:#e6f0fb;color:#1f4f96}
.fe-resume{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.fe-table td{vertical-align:top;font-variant-numeric:tabular-nums}
.fe-table tr.fe-ecart td,.fe-table tr.fe-manquante td{background:rgba(255,200,120,.10)}
.fe-table tr.fe-absente td,.fe-table tr.fe-illisible td{background:rgba(255,120,120,.08)}
.fe-table .fe-choix{width:2.5em;text-align:center}
.fe-table .fe-suppr{margin:4px 0 0 6px;padding:2px 10px}
.fe-table .badge{white-space:normal;max-width:100%}
.fe-suppr-form{margin:0}
.fe-in{max-width:9.5em;padding:6px 8px}
.fe-in.fe-h{max-width:5.2em;text-align:center}
.fe-doute{color:#7a3600}
.fe-lu{margin-top:12px;padding:10px 14px;border-radius:12px;background:rgba(100,44,68,.04)}
.fe-lu h3{margin:0 0 6px}
.fe-lu p{margin:2px 0}
.attente-msg{margin:10px 0 0;font-weight:600;color:var(--pri)}
/* v90 : aides, reste à charge et contrat de garde d'enfants */
.devis-rac{background:rgba(252,232,242,.55);border-radius:12px;margin:12px 0 8px}
.devis-rac td{padding:7px 12px}
.contrat-form>.card{margin-bottom:16px}
.contrat-choix{flex-direction:column;align-items:flex-start;gap:8px}
.contrat-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.contrat-ligne label.check{margin:0}
.contrat-enfant{border-top:1px dashed var(--line);padding-top:8px}
.contrat-enfant:first-child{border-top:0;padding-top:0}
.badge.fe-autre{background:#eef1f6;color:#33415c}
.fe-table tr.fe-autre td{background:rgba(120,140,180,.07)}
/* v91 : assistant — discussions gardées, PDF créés */
.imsg-boite{display:flex;flex-direction:column;background:#fff;color:var(--ink);font-size:16.5px;line-height:1.38;letter-spacing:-.012em}
.imsg-discussions{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:8px}
.imsg-discussions li{display:flex;align-items:center;gap:8px}
.imsg-discussions li.muted{display:block;padding:12px 4px}
.imsg-disc-ouvrir{flex:1;min-width:0;margin:0}
.imsg-discussions button.imsg-disc{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;
  padding:11px 14px!important;border-radius:16px;background:#f4f1f3;border:1px solid transparent;color:var(--ink);box-shadow:none;font-weight:400;min-height:0}
.imsg-discussions button.imsg-disc strong{font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.imsg-discussions button.imsg-disc .small{color:var(--muted)}
.imsg-discussions li.courante button.imsg-disc{border-color:var(--pri);background:rgba(252,232,242,.6)}
.imsg-discussions button.imsg-disc:hover{background:rgba(252,232,242,.8)}
.imsg-disc-nouvelle{margin:6px 0 0}
.imsg-disc-aide{margin-top:14px}
.imsg-fichier{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:6px 0 10px;padding:10px 12px;border-radius:16px;
  background:#f4f1f3;max-width:92%}
.imsg-fichier-ico{flex:none;width:40px;height:48px;border-radius:8px;background:var(--pri);color:#fff;font-weight:700;font-size:.8rem;
  display:flex;align-items:center;justify-content:center;letter-spacing:.04em}
.imsg-fichier-txt{flex:1 1 160px;min-width:0;display:flex;flex-direction:column;gap:2px}
.imsg-fichier-txt strong{overflow-wrap:anywhere}
.imsg-fichier-txt .small{color:var(--muted)}
.imsg-fichier-btns{display:flex;gap:6px;flex-wrap:wrap}
.imsg-reprise,.imsg-suite{background:rgba(252,232,242,.55)}

/* Disponibilités, missions (recherche d'intervenante), demandes de retrait */
.dp-liste{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.dp-liste li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:9px 12px;border-radius:12px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.dp-liste li.dp-passee{opacity:.65}
.dp-quand{flex:1 1 220px;min-width:0}
.dp-messages{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.dp-messages li{display:grid;gap:2px;padding:8px 12px;border-radius:12px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.dp-messages li.dp-nonlu{background:#fff8ee;box-shadow:inset 0 0 0 1px rgba(178,80,0,.28)}
.dp-mission{padding:12px 14px;margin:0 0 12px;border-radius:14px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.dp-mission.dp-attente{background:#fffaf2;box-shadow:inset 0 0 0 1px rgba(178,80,0,.30)}
.dp-mission.dp-pourvue{opacity:.75;background:#f4f4f6}
.fe-ctl{margin-top:6px}
.fe-voir-barre{position:sticky;top:var(--hdr-h,64px);z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 0;background:var(--bg,#fdf5f9)}
.fe-voir img{display:block;width:100%;max-width:900px;height:auto;margin:0 auto 14px;border-radius:10px;box-shadow:0 2px 10px rgba(100,44,68,.15);background:#fff}
.fe-tous{display:flex;margin:0 0 10px}
.fe-liste-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;width:100%}
.fe-vp{display:flex;margin-top:6px}
.fe-ventil{margin-top:4px;color:var(--muted)}
.dp-badge-nouvelle{display:inline-block;margin:0 0 6px;padding:3px 10px;border-radius:999px;background:#d1006f;color:#fff;font-weight:600;font-size:.85em}
.chev{display:flex;flex-wrap:wrap;gap:10px 18px;justify-content:space-between;padding:10px 14px;margin:0 0 10px;border-radius:12px;background:#fff5f5;box-shadow:inset 0 0 0 1px rgba(255,59,48,.25)}
.chev.chev-ok{background:#f1faf4;box-shadow:inset 0 0 0 1px rgba(48,177,88,.3)}
.chev.chev-demande{background:#fffaf2;box-shadow:inset 0 0 0 1px rgba(178,80,0,.3)}
.chev ul{margin:4px 0;padding-left:18px}
.chev-act{display:flex;flex-direction:column;gap:6px;align-items:flex-start;max-width:100%}
.chev-demande-form{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chev-demande-form input{min-width:0;width:240px;max-width:100%}
.dp-badge-pourvue{display:inline-block;margin:0 0 6px;padding:3px 10px;border-radius:999px;background:#5c5c66;color:#fff;font-weight:600;font-size:.85em}
.dp-mission h3{margin:0 0 6px}
.dp-carte{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:4px}
.dp-reponse .row{gap:8px}
.dp-form{margin-top:10px}
.dp-jours{gap:2px 12px}
.creneau-row{align-items:flex-end}
.mi-creneaux{margin:0 0 12px}
.mi-liste{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.mi-candidate{display:flex;align-items:flex-start;gap:10px;padding:9px 12px;border-radius:12px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.mi-candidate>input[type=checkbox]{margin-top:4px;flex:0 0 auto;width:20px;height:20px}
.mi-coche{flex:0 0 20px;color:var(--ok);font-weight:700;margin-top:2px}
.mi-qui{flex:1 1 auto;min-width:0}
.mi-qui .badge{margin-left:4px}
.mi-raison{color:var(--muted)}
.mi-dur{color:#b42318}
.mi-doute{color:#9a5b00}
.mi-plus{margin:6px 0 10px}
.mi-plus>summary{cursor:pointer;font-weight:600;margin:0 0 8px}
.mi-props{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
.mi-props li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:12px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.mi-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mi-filtres{display:inline-flex;flex-wrap:wrap;gap:6px}
.badge.mi-ouverte{background:#fff3e0;color:#9a5b00}
.badge.mi-pourvue,.badge.mp-acceptee{background:#e8f5ec;color:#1e6b3a}
.badge.mi-annulee,.badge.mp-retiree{background:#f1f1f4;color:#6e6e73}
.badge.mp-refusee{background:#fdecec;color:#b42318}
.badge.mp-envoyee{background:#eef3ff;color:#2b4fae}
.dispo-messages a{font-weight:600}
label.check>.check-txt{flex:1 1 auto;min-width:0}  /* texte d'une case et sa précision : un seul bloc qui passe à la ligne */

/* Icônes SVG au trait (à la place des émoji) */
svg.ico{width:1.15em;height:1.15em;vertical-align:-.2em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.btn svg.ico,button svg.ico,.dp-carte li svg.ico,.imsg-doc svg.ico,.fp-names svg.ico,.flash svg.ico{margin-right:.3em}
.dv-choix svg.ico{width:1.5em;height:1.5em;vertical-align:-.35em;margin-right:.25em}
.mi-coche svg.ico{width:20px;height:20px;stroke-width:2.4}
.mi-dur svg.ico,.mi-doute svg.ico{vertical-align:-.15em}

/* Suivi RH : photo, documents d'embauche, échéances, semaines non travaillées */
.fiche-photo{width:56px;height:56px;border-radius:50%;object-fit:cover;vertical-align:middle;margin:-6px 10px 0 0;box-shadow:0 0 0 2px #fff,0 2px 8px rgba(100,44,68,.25)}
.liste-photo{width:34px;height:34px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:8px;float:left}
.rh-photo{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:0 0 14px}
.rh-photo-img{width:96px;height:96px;border-radius:50%;object-fit:cover;box-shadow:0 2px 10px rgba(100,44,68,.2)}
.rh-photo-vide{width:96px;height:96px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#efe3ea;color:var(--muted);font-weight:700;font-size:1.6rem}
.rh-photo-form{flex:1 1 220px;margin:0}
.rh-docs{width:100%;border-collapse:collapse;table-layout:fixed}
.rh-docs td:first-child{word-break:break-word;min-width:0}
.rh-docs th,.rh-docs td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.rh-docs .rh-case{text-align:center;width:3.6em;padding-left:2px;padding-right:2px}
.rh-docs input[type=checkbox]{width:20px;height:20px}
.rh-docs tr.rh-ok td:first-child{color:var(--ok)}
.rh-docs tr.rh-ex td:first-child{color:var(--muted);text-decoration:line-through}
.rh-autre{display:block;width:100%;max-width:170px;min-width:0;margin:4px 0 0;padding:3px 8px;font-size:.9rem}
.rh-echeances{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:4px}
.rh-echeances li{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.rh-lib{min-width:170px;font-weight:600}
.rh-handicap{align-self:flex-end;margin-bottom:10px}
.sem-annee{display:flex;align-items:center;gap:10px;margin:10px 0 6px;font-size:1rem}
.sem-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px;margin:0 0 12px}
.sem{display:flex;flex-direction:column;align-items:center;padding:6px 4px 5px;border-radius:10px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;font-size:.85rem;line-height:1.25}
.sem input{margin:0 0 3px;width:18px;height:18px}
.sem-on{background:#fff3e0;box-shadow:inset 0 0 0 1px rgba(178,80,0,.35)}
.sem-courante{outline:2px solid var(--brand,#c2185b);outline-offset:-2px}
.sem-num{font-weight:700}
.sem-dates{font-size:.72rem;color:var(--muted);white-space:nowrap}
.rh-photo-form{min-width:0;max-width:100%}
.rh-photo-form label{display:block;min-width:0}
.rh-photo-form input[type=file]{display:block;width:100%;max-width:100%;min-width:0}

/* Messages des intervenantes (conversations) */
.tk-conv{padding:12px 14px;margin:0 0 14px;border-radius:14px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.tk-entete{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px}
.tk-fil{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
.tk-msg{max-width:88%;padding:9px 12px 10px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.tk-msg.tk-salarie{align-self:flex-start;border-bottom-left-radius:5px}
.tk-msg.tk-agence{align-self:flex-end;background:#fdeef5;border-bottom-right-radius:5px}
.tk-qui{display:block;font-size:.75rem;color:var(--muted);margin:0 0 3px}
.tk-texte{white-space:pre-wrap;overflow-wrap:anywhere}
.tk-reponse textarea{min-height:58px}
.tk-resume p:first-of-type{font-size:1.02rem;line-height:1.5}
.mc-tickets{margin-left:6px}
@media (max-width:400px){ .tabbar-scroll .tabbar-track>a{min-width:58px;padding-left:2px;padding-right:2px} }
/* v98 : fiche salarié rangée en trois colonnes (la personne · contrat et RH · missions), documents et feuilles côte à côte */
.fiche-col-titre{margin:2px 4px -6px;font-family:var(--font);font-size:.74rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fiche-grid.fg-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:900px){ .fiche-grid.fg-2{grid-template-columns:minmax(0,1fr)} }
@media (max-width:1100px) and (min-width:761px){ .fiche-salarie>.fiche-col:nth-child(3)>.fiche-col-titre{grid-column:1/-1} }
/* semaines non travaillées : vue courte (semaines posées en pastilles), grille complète dans « Modifier les semaines » */
.sem-resume{margin:0 0 8px}
.sem-resume .sem-annee{margin:6px 0 6px}
.sem-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.sem-chip{display:inline-flex;align-items:baseline;gap:6px;padding:4px 10px;border-radius:999px;background:#fff3e0;
  box-shadow:inset 0 0 0 1px rgba(178,80,0,.28);font-size:.86rem;line-height:1.3;white-space:nowrap}
.sem-chip span{font-size:.76rem;color:var(--muted)}
.sem-chip-courante{box-shadow:inset 0 0 0 2px var(--brand,#c2185b)}
.sem-aucune{margin:0}
details.sem-modifier{margin:10px 0 6px}
details.sem-modifier>summary{list-style:none;cursor:pointer;display:inline-flex}
details.sem-modifier>summary::-webkit-details-marker{display:none}
details.sem-modifier[open]>summary{margin-bottom:8px}
.sem-modifier .sem-grille{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
/* arrêts maladie et accidents du travail */
.arret-actuel{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:8px 12px;border-radius:12px;background:#fdecec;color:#8c1d1d;font-weight:600}
.arret-actuel svg.ico{flex:none}
.arrets{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.arret{padding:8px 10px;border-radius:12px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.arret-en-cours{background:#fff6f6;box-shadow:inset 0 0 0 1px rgba(192,40,40,.3)}
.arret-fini{opacity:.8}
.arret-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.arret-dates{font-weight:600}
.arret-note{margin:4px 0 0}
details.arret-modif{margin-top:6px}
details.arret-modif>summary{list-style:none;cursor:pointer;display:inline-flex}
details.arret-modif>summary::-webkit-details-marker{display:none}
details.arret-modif[open]{padding-top:4px}
details.arret-modif form.inline{margin-top:6px}
.badge.arret-type{background:rgba(100,44,68,.08)}
/* mutuelle d'entreprise */
.rh-mutuelle{margin-top:4px}
.rh-mut-date{flex-basis:100%;margin-top:4px}
/* colonne « Actions » des tableaux : même fond que les autres en-têtes ; l'ombre à sa gauche n'apparaît que si le
   tableau déborde vraiment (défilement horizontal), sinon aucune ligne parasite */
th.act{background:linear-gradient(180deg,#fff,#fbf4f8)}
th.act,td.act{box-shadow:none}
td.act{background:transparent}
.deborde td.act{background:var(--card)}
.deborde th.act,.deborde td.act{box-shadow:-12px 0 12px -12px rgba(100,44,68,.35)}
table tr[data-href]{cursor:pointer}
table tr[data-href]:hover td{background:#fdf7fa}
/* v99 : bouton « Traité » directement sur les notifications et sur les conversations des intervenantes */
.lg-notifs>li{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap}
.lg-notifs>li>a{flex:1 1 320px;min-width:0}
.nt-traite{flex:none;margin:0 4px 0 auto}
.nt-etat{flex:none;margin-right:6px}
.tk-traite{display:block;margin-top:6px}
/* v100 : module « Forms » — formulaires en ligne (carte centrée façon Jotform, aux couleurs du site) */
.fo-page{max-width:780px;margin:6px auto 40px}
.fo-carte{background:var(--card);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}
.fo-entete{padding:30px 34px 26px;background:linear-gradient(135deg,#d1006f 0%,#e4447f 55%,#f08aa6 100%);color:#fff}
.fo-entete h1{margin:0 0 6px;color:#fff;font-size:1.75rem;line-height:1.2}
.fo-entete p{margin:6px 0 0;opacity:.95;line-height:1.5}
.fo-entete .fo-maj{font-size:.85rem;opacity:.85}
.fo-corps{padding:26px 34px 30px}
.fo-form{display:flex;flex-direction:column;gap:6px}
.fo-titre{margin:22px 0 2px;padding:0 0 8px;font-size:1.12rem;color:var(--pri);border-bottom:2px solid var(--pri-soft)}
.fo-form>.fo-titre:first-of-type,.fo-lecture>.fo-titre:first-child{margin-top:0}
.fo-sec-aide{margin:0 0 4px;color:var(--muted);font-size:.9rem}
.fo-info{margin:8px 0;padding:12px 14px;border-radius:14px;background:var(--pri-soft);color:#6b2349;font-size:.92rem;line-height:1.5}
.fo-q{padding:12px 0 10px;border-radius:14px}
.fo-q.fo-err{padding:12px 14px;margin:2px -14px;background:var(--bad-bg);box-shadow:inset 3px 0 0 var(--bad)}
.fo-label{display:block;margin:0 0 6px;font-weight:650;font-size:.98rem;line-height:1.35;color:var(--ink)}
.fo-req{color:var(--pri);font-weight:800}
.fo-aide{margin:-2px 0 8px;color:var(--muted);font-size:.85rem;line-height:1.4}
.fo-msg{margin:6px 0 0;color:var(--bad);font-weight:600;font-size:.88rem}
.fo-q input:not([type=checkbox]):not([type=radio]):not([type=file]),.fo-q textarea,.fo-q select{width:100%;max-width:100%;box-sizing:border-box}
.fo-q input.fo-court{max-width:220px}
.fo-duo,.fo-adresse{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.fo-adresse .fo-plein{grid-column:1/-1}
.fo-duo label,.fo-adresse label{display:block;margin:0}
.fo-sous{display:block;font-size:.78rem;color:var(--muted);margin:0 0 3px}
.fo-options{display:flex;flex-wrap:wrap;gap:8px}
.fo-cases{flex-direction:column;align-items:stretch}
.fo-opt{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:#fbf8fa;box-shadow:inset 0 0 0 1px var(--field);
  cursor:pointer;font-weight:500;line-height:1.35;transition:background .12s,box-shadow .12s}
.fo-opt:hover{background:#fdf2f8}
.fo-opt input{flex:none;width:20px;height:20px;margin:0}
.fo-opt:has(input:checked){background:var(--pri-soft);box-shadow:inset 0 0 0 2px var(--pri)}
.fo-fichier{display:block;max-width:100%}
.fo-deja{margin:0 0 6px}
.fo-envoi{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.fo-bouton{min-width:220px;padding:13px 26px;font-size:1.05rem}
.fo-rgpd{margin:18px 0 0}
.fo-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.fo-merci{text-align:center}
.fo-merci-ico svg{width:64px;height:64px;color:var(--ok)}
.fo-merci-txt{font-size:1.1rem;font-weight:600}
/* signature */
.sig{border-radius:14px;box-shadow:inset 0 0 0 1px var(--field);background:#fff;overflow:hidden}
.sig-pad{display:block;width:100%;height:170px;touch-action:none;cursor:crosshair;background:repeating-linear-gradient(0deg,#fff 0,#fff 128px,#e9dbe2 128px,#e9dbe2 129px,#fff 129px)}
.sig-bas{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 10px;border-top:1px solid var(--line);background:#fbf8fa}
.fo-sig-img{display:block;max-width:260px;max-height:110px;margin:6px 0;border-radius:8px;box-shadow:inset 0 0 0 1px var(--line);background:#fff}
/* lecture (agence, intervenante) */
.fo-lecture{display:flex;flex-direction:column}
.fo-r{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:4px 18px;padding:9px 0;border-bottom:1px solid var(--line)}
.fo-r-q{color:var(--muted);font-size:.88rem;line-height:1.4}
.fo-r-v{font-weight:550;overflow-wrap:anywhere}
.fo-r-texte{white-space:pre-wrap}
.fo-r-liste{margin:0;padding-left:18px}
@media (max-width:640px){
  .fo-entete{padding:22px 18px 20px}.fo-entete h1{font-size:1.4rem}
  .fo-corps{padding:18px 16px 22px}
  .fo-duo,.fo-adresse{grid-template-columns:1fr}
  .fo-r{grid-template-columns:1fr;gap:2px}
  .fo-q.fo-err{margin:2px -8px;padding:10px 8px}
  .fo-bouton{width:100%}
}
/* gestion : liste des formulaires, éditeur, réponses */
.fo-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.fo-def{margin:0;display:flex;flex-direction:column;gap:6px}
.fo-def h2{margin:4px 0 0;font-size:1.08rem}
.fo-def-haut{display:flex;flex-wrap:wrap;gap:6px}
.fo-def-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:8px}
.fo-brouillon{opacity:.85;background:repeating-linear-gradient(135deg,#fff 0,#fff 14px,#fcf7fa 14px,#fcf7fa 28px)}
.fo-lien{margin:0;overflow-wrap:anywhere}
.fo-new{color:var(--pri)}
.fo-editeur{display:grid;grid-template-columns:minmax(280px,1fr) minmax(0,2fr);gap:18px;align-items:start}
@media (max-width:980px){ .fo-editeur{grid-template-columns:1fr} }
.fo-reglages{position:sticky;top:84px;margin:0}
@media (max-width:980px){ .fo-reglages{position:static} }
.fo-lien-bloc{margin:14px 0;padding:12px;border-radius:12px;background:var(--pri-soft)}
.fo-lien-bloc a{overflow-wrap:anywhere}
.fo-suppr{margin-top:14px}
.fo-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fo-sig{padding:12px 0;border-top:1px solid var(--line)}
.fo-sig:first-of-type{border-top:0}
.fo-sig-texte{white-space:pre-wrap;padding:10px 12px;border-radius:12px;background:var(--warn-bg)}
.fo-sig-champ{padding:4px 12px;border-radius:12px;background:#fbf8fa}
.badge.fo-st-nouvelle{background:var(--pri);color:#fff}
.badge.fo-st-traitee{background:var(--ok-bg);color:var(--ok)}
tr.fo-row-new td{font-weight:600}
.fo-lien-carte{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;color:var(--ink)}
.fo-lien-carte .fo-go{margin-left:auto;color:var(--pri);font-weight:650}
.fo-liste-sal{display:flex;flex-direction:column;gap:10px}
.fo-liste-sal .card{margin:0}
.fo-vide{opacity:.8}
.fo-sigs{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.fo-print-msg{display:none}
@media print{ .fo-confidentiel{display:none!important} .fo-print-msg{display:block!important} }
.fm-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:6px 0;border-bottom:1px solid var(--line)}
.fo-prevenir{margin-top:10px}
.fo-opt{flex-direction:row!important;justify-content:flex-start;text-align:left;font-size:.95rem;color:var(--ink);letter-spacing:normal}
.fo-opt span{flex:1;min-width:0}
.fo-q select,.fo-q input,.fo-q textarea{font-size:16px}
.fo-opt{margin:0!important}
.fo-q input.fo-court{max-width:240px!important}
.fo-duo label,.fo-adresse label{margin:0!important}
/* v101 : expérience professionnelle, diplômes, semaines par année civile (rouge = heures saisies), avenants */
.exps{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.exp{padding:8px 10px;border-radius:12px;background:#fafafc;box-shadow:inset 0 0 0 1px var(--line)}
.exp-athome{background:#fff7fb;box-shadow:inset 3px 0 0 var(--pri),inset 0 0 0 1px var(--line)}
.exp-ligne{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 10px;align-items:baseline}
.exp-per{font-weight:700;color:var(--pri);font-size:.85rem;white-space:nowrap}
.exp-per:empty{display:none}
.exp-txt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.92rem}
.exp-btns{display:flex;gap:2px}
.badge.exp-badge{background:var(--pri);color:#fff;font-size:.68rem;padding:1px 6px}
details.exp-modif{margin-top:4px}
details.exp-modif>summary{list-style:none;cursor:pointer;display:inline-flex}
details.exp-modif>summary::-webkit-details-marker{display:none}
.exp-athome-check,.exp-athome .check{align-self:flex-end}
.dipl-liste{display:grid;gap:4px;margin:0 0 10px}
.dipl{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:4px 8px;border-radius:10px}
.dipl-on{background:var(--pri-soft)}
.dipl .check{margin:0;flex:1 1 220px}
.dipl-annee{width:76px!important;padding:4px 8px;font-size:.9rem}
.dipl-param{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:6px}
.dipl-param li{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dipl-param li form.row{flex:1 1 320px;margin:0}
.sem-chip-passee{opacity:.7}
.sem-chip-rouge{background:#fdecec!important;box-shadow:inset 0 0 0 2px #d70015!important;color:#8c1d1d}
.sem-chip-rouge span{color:#8c1d1d}
.sem-alerte{font-style:normal;font-weight:700;font-size:.72rem;color:#d70015}
.sem-passee{opacity:.62}
.sem-rouge{background:#fdecec!important;box-shadow:inset 0 0 0 2px #d70015!important;opacity:1}
.sem-legende-rouge{color:#d70015;font-weight:700}
.sem-copier{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:8px 0 2px}
details.sem-avenant{margin:8px 0 4px}
details.sem-avenant>summary{list-style:none;cursor:pointer;display:inline-flex}
details.sem-avenant>summary::-webkit-details-marker{display:none}
.sem-avenant-form{margin-top:8px;padding:12px;border-radius:12px;background:#fbf8fa}
.av-ligne{align-items:flex-end}
.av-fleche{padding-bottom:12px;color:var(--pri);font-weight:800}
.sem-avenants{margin:6px 0 10px;line-height:1.6}
/* v102 : éditeur visuel des formulaires — le formulaire tel qu'il s'affiche, modifiable directement (clic sur une
   question : elle s'ouvre sur place ; l'aperçu suit la frappe ; « + » entre deux questions pour en ajouter une) */
.fo-ed-mode{margin:2px 0 14px;padding:10px 14px;border-radius:14px;background:var(--pri-soft);color:#6b2349;line-height:1.45}
.fo-ed-canevas{min-width:0;display:flex;flex-direction:column;gap:14px}
.fo-ed-canevas>.fo-carte{margin:0;overflow:visible}
.fo-ed-canevas>.fo-carte>.fo-ed-entete{border-radius:22px 22px 0 0;overflow:hidden}
.fo-ed-bloc{position:relative;margin:2px -14px;padding:6px 14px;border-radius:16px;transition:background .12s,box-shadow .12s}
.fo-ed-corps>.fo-ed-bloc:hover{background:#fdf8fb;box-shadow:inset 0 0 0 1px #edd3e0}
.fo-ed-corps>.fo-ed-bloc.ouvert{background:#fff;box-shadow:inset 0 0 0 2px var(--pri),0 10px 26px rgba(100,44,68,.13);margin:12px -14px;padding:10px 14px 14px}
.fo-ed-apercu{cursor:pointer}
.fo-ed-fige{border:0;margin:0;padding:0;min-width:0}
/* aperçu figé : le toucher (iPhone) ou le clic passe à la zone de l'aperçu, sauf sur les textes (question, aide, choix),
   pour placer le curseur dans le bon champ ; le cadre désactivé lui-même ne reçoit rien (pas de clic au toucher dessus) */
.fo-ed-fige,.fo-ed-fige *{pointer-events:none}
.fo-ed-fige .fo-label-txt,.fo-ed-fige .fo-aide-txt,.fo-ed-fige .fo-options,.fo-ed-fige .fo-opt,.fo-ed-fige .fo-opt>span{pointer-events:auto}
.fo-ed-fige input,.fo-ed-fige textarea,.fo-ed-fige select{background-color:#fff;color:var(--ink);opacity:1;-webkit-text-fill-color:currentColor}
.fo-ed-fige .fo-q{padding:6px 0 4px}
.fo-ed-fige .fo-titre{margin-top:10px}
.fo-ed-fige .fo-info{margin:4px 0}
.fo-ed-fige .sig-pad{height:110px}
/* barre d'outils d'une question : au survol (ordinateur), en haut de la question ouverte */
.fo-ed-outils{position:absolute;top:-14px;right:12px;z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:3px;border-radius:999px;
  background:#fff;box-shadow:0 2px 10px rgba(100,44,68,.16),inset 0 0 0 1px #edd3e0;opacity:0;pointer-events:none;transition:opacity .12s}
.fo-ed-bloc:hover>.fo-ed-outils,.fo-ed-bloc:focus-within>.fo-ed-outils{opacity:1;pointer-events:auto}
.fo-ed-bloc.ouvert>.fo-ed-outils{position:static;opacity:1;pointer-events:auto;justify-content:flex-end;background:transparent;box-shadow:none;padding:0 0 6px}
.fo-ed-outils .btn,.fo-ed-outils button{min-height:30px;padding:4px 11px}
.fo-ed-bloc .btn.ghost{background:transparent;color:var(--muted)}
.fo-ed-bloc .btn.ghost:hover{background:rgba(0,0,0,.05);color:var(--ink)}
.fo-ed-type-badge{margin-right:auto;padding:0 10px;font-size:.75rem;font-weight:700;color:var(--muted);white-space:nowrap}
.fo-ed-bloc.ouvert>.fo-ed-outils [data-ed-ouvrir]{display:none}
.fo-ed-reglage-note{margin:-6px 0 12px 29px}
/* panneau de modification (sous l'aperçu de la question ouverte) */
.fo-ed-panneau{display:flex;flex-direction:column;gap:10px;margin-top:10px;padding:12px;border-radius:14px;background:#fbf8fa;box-shadow:inset 0 0 0 1px var(--line)}
.fo-ed-bloc:not(.ouvert)>.fo-ed-panneau{display:none}
.fo-ed-panneau label{margin:0}
.fo-ed-panneau [hidden]{display:none!important}
.fo-ed-ligne{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px}
.fo-ed-type-champ{flex:1 1 220px}
.fo-ed-requis{padding-bottom:9px}
.fo-ed-note{margin:0;color:#8a5a00}
.fo-ed-btns{display:flex;flex-wrap:wrap;gap:6px}
/* en-tête (titre, texte d'accueil) et message de fin */
.fo-ed-entete{margin:0;padding:0}
.fo-ed-entete>.fo-entete{position:relative;cursor:pointer;transition:filter .12s}
.fo-ed-entete>.fo-entete:hover{filter:brightness(1.05)}
.fo-ed-grand-titre{margin:0 0 6px;color:#fff;font-size:1.75rem;line-height:1.2}
.fo-ed-vide{opacity:.75;font-style:italic}
.fo-ed-crayon{position:absolute;top:12px;right:14px;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.24);color:#fff;font-size:.8rem;font-weight:700;
  text-decoration:none;opacity:0;transition:opacity .12s}
.fo-ed-crayon:hover{text-decoration:none;background:rgba(255,255,255,.34)}
.fo-ed-apercu:hover .fo-ed-crayon,.fo-ed-crayon:focus-visible,.fo-ed-bloc.ouvert .fo-ed-crayon{opacity:1}
.fo-ed-entete>.fo-ed-panneau{margin:0;border-radius:0;padding:16px 34px;background:#fff7fb;box-shadow:inset 0 -1px 0 var(--line)}
.fo-ed-entete.ouvert>.fo-entete{box-shadow:inset 0 -3px 0 rgba(255,255,255,.55)}
.fo-ed-fin{margin:0;padding:0}
.fo-ed-merci{position:relative;padding:16px 20px;border-radius:18px;background:var(--card);box-shadow:var(--shadow);text-align:center;transition:box-shadow .12s}
.fo-ed-merci:hover{box-shadow:var(--shadow),inset 0 0 0 1px #edd3e0}
.fo-ed-fin.ouvert>.fo-ed-merci{box-shadow:var(--shadow),inset 0 0 0 2px var(--pri)}
.fo-ed-merci-titre{margin:0 0 4px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:700;font-size:.72rem}
.fo-ed-merci .fo-aide-txt{margin:0;font-weight:600}
.fo-ed-merci .fo-ed-crayon{background:var(--pri-soft);color:var(--pri)}
.fo-ed-fin>.fo-ed-panneau{background:var(--card);box-shadow:var(--shadow)}
.fo-ed-envoi .fo-bouton:disabled{opacity:1;cursor:default}
.fo-ed-rien{margin:0 0 6px}
/* « + » entre deux questions : apparaît au survol ; le dernier, en bas, reste visible */
details.fo-ed-plus{margin:0}
details.fo-ed-plus>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:22px;padding:1px 0;color:var(--pri);font-size:.84rem;
  font-weight:650;opacity:0;transition:opacity .12s;border-radius:999px}
details.fo-ed-plus>summary::-webkit-details-marker{display:none}
details.fo-ed-plus>summary::before,details.fo-ed-plus>summary::after{content:'';flex:1;border-top:2px dashed #ecc6d8}
details.fo-ed-plus>summary:hover,details.fo-ed-plus>summary:focus-visible,details.fo-ed-plus[open]>summary{opacity:1}
details.fo-ed-plus>summary:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(209,0,111,.2)}
.fo-ed-plus-rond{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--pri);color:#fff;font-weight:800;font-size:1rem;line-height:1}
details.fo-ed-plus-fin{margin-top:14px}
details.fo-ed-plus-fin>summary{opacity:1;justify-content:center;min-height:46px;border-radius:14px;border:2px dashed #ecc6d8;font-size:.95rem}
details.fo-ed-plus-fin>summary::before,details.fo-ed-plus-fin>summary::after{display:none}
details.fo-ed-plus-fin>summary:hover{background:#fdf5f9}
.fo-ed-types{margin:6px 0 10px;padding:12px;border-radius:14px;background:#fbf8fa;box-shadow:inset 0 0 0 1px var(--line)}
.fo-ed-types>p{margin:0 0 8px}
.fo-ed-types-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px}
button.fo-ed-type{justify-content:flex-start;gap:9px;width:100%;min-height:40px;padding:6px 10px;border-radius:12px;background:#fff;color:var(--ink);font-weight:600;
  font-size:.88rem;text-align:left;box-shadow:inset 0 0 0 1px var(--field)}
button.fo-ed-type:hover{background:#fdf2f8;box-shadow:inset 0 0 0 1px var(--pri)}
.fo-ed-type-sym{flex:none;display:inline-grid;place-items:center;min-width:32px;height:26px;padding:0 4px;border-radius:8px;background:var(--pri-soft);color:var(--pri);
  font-weight:800;font-size:.74rem}
.fo-ed-sym-case::before{content:'';display:block;width:10px;height:10px;border:2px solid currentColor;border-radius:3px;box-shadow:inset 0 0 0 2px #fff,inset 0 0 0 6px currentColor}
@media (max-width:980px){ .fo-editeur-visuel>.fo-reglages{order:2} }
@media (max-width:640px){
  .fo-ed-grand-titre{font-size:1.4rem}
  .fo-ed-entete>.fo-ed-panneau{padding:14px 18px}
  .fo-ed-types-grille{grid-template-columns:1fr 1fr}
  .fo-ed-panneau{padding:10px}
  .fo-ed-type-badge{display:none}
}
/* écran tactile : pas de survol — outils et « + » sur la question touchée (ouverte), crayons toujours visibles */
@media (hover:none){
  .fo-ed-outils{display:none}
  .fo-ed-bloc.ouvert>.fo-ed-outils{display:flex}
  .fo-ed-crayon{opacity:1}
  details.fo-ed-plus:not(.fo-ed-plus-fin){display:none}
  .fo-ed-bloc.ouvert+details.fo-ed-plus,details.fo-ed-plus[open]{display:block}
  .fo-ed-bloc.ouvert+details.fo-ed-plus>summary{opacity:1}
}
/* v103 : QR code des formulaires (réglages de l'éditeur) ; compte « Direction » (au-dessus des autres comptes employeur) */
.fo-qr{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;margin:14px 0;padding:12px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.fo-qr img{flex:none;display:block;width:150px;height:150px;border-radius:10px;background:#fff}
.fo-qr-txt{flex:1 1 160px;min-width:0}
.fo-qr-txt p{margin:0 0 8px}
.fo-qr-btns{display:flex;flex-wrap:wrap;gap:6px}
.badge.us-direction{background:linear-gradient(135deg,#d1006f,#8a2be2);color:#fff;font-weight:700}
/* ---------- v104 : tableau de bord du suivi des heures (tuiles à traiter, période en cours, heures par jour) ---------- */
.tb-tete{margin:0 0 18px}
.tb-tete h1{margin-bottom:.15em}
.tb-sous{margin:0;color:var(--muted);font-size:.92rem}
.tb-tuiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.tb-tuile{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:18px;background:var(--card);background-image:var(--gloss);
  box-shadow:var(--hi),var(--shadow),0 0 0 1px rgba(100,44,68,.05);color:var(--ink);transition:transform .2s,box-shadow .2s;min-width:0}
.tb-tuile:hover{text-decoration:none;transform:translateY(-2px);box-shadow:var(--hi),var(--shadow-pop),0 0 0 1px rgba(209,0,111,.18)}
.tb-ico{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#f2eef1;color:#8e8e93}
.tb-ico .ico{width:24px;height:24px}
.tb-tuile-txt{display:flex;flex-direction:column;min-width:0}
.tb-val,.tb-nb{font-family:"Fredoka","Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-weight:600;line-height:1.1}
.tb-val{font-size:1.8rem;color:#a1a1a6}
.tb-lib{color:var(--muted);font-size:.85rem;line-height:1.3}
.tb-tuile.tb-on .tb-ico{background:var(--pri-soft);color:var(--pri)}
.tb-tuile.tb-on .tb-val{color:var(--plum)}
.tb-tuile.tb-alerte .tb-ico{background:var(--bad-bg);color:var(--bad)}
.tb-per-tete{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 14px}
.tb-per-tete h2{margin:0}
.tb-per-dates{color:var(--muted);font-weight:500;font-size:.88rem;margin-left:4px}
.tb-per-tete .btn{margin-left:auto}
.tb-chiffres{display:grid;grid-template-columns:1.5fr repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.tb-chiffre{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:14px;background:#fbf8fa;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink);min-width:0}
a.tb-chiffre{transition:box-shadow .15s}
a.tb-chiffre:hover{text-decoration:none;box-shadow:inset 0 0 0 1px rgba(209,0,111,.35)}
.tb-nb{font-size:1.45rem;color:var(--plum)}
.tb-nb small{font-size:.62em;color:var(--muted);font-weight:500}
.tb-chiffre-un .tb-nb{font-size:2.1rem}
.tb-cmp{font-size:.8rem;color:var(--muted)}
.tb-graph{margin:0}
.tb-graph-titre{font-size:.88rem;font-weight:600;margin:0 0 12px}
.tb-graph-titre .muted{font-weight:400}
.tb-plot{display:grid;grid-template-columns:3.4em minmax(0,1fr);column-gap:8px}
.tb-axe{position:relative;height:170px}
.tb-axe span{position:absolute;right:0;transform:translateY(50%);font-size:.7rem;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.tb-zone{position:relative;height:170px;border-bottom:1px solid rgba(100,44,68,.22)}
.tb-grille{position:absolute;left:0;right:0;height:0;border-top:1px solid rgba(100,44,68,.08)}
.tb-cols{position:relative;display:grid;height:100%;margin:0;padding:0;list-style:none}
.tb-col{position:relative;height:100%;min-width:0}
.tb-cible{display:flex;align-items:flex-end;justify-content:center;height:100%;border-radius:6px 6px 0 0;color:inherit;outline-offset:-2px}
a.tb-cible:hover{text-decoration:none;background:rgba(209,0,111,.05)}
.tb-auj .tb-cible{background:rgba(209,0,111,.08)}
.tb-barre{display:block;width:min(24px,64%);height:var(--h);min-height:2px;border-radius:4px 4px 0 0;background:var(--pri);transition:background .15s}
a.tb-cible:hover .tb-barre,a.tb-cible:focus-visible .tb-barre{background:var(--plum)}
.tb-bulle{position:absolute;left:50%;bottom:calc(var(--h) + 10px);transform:translateX(-50%);z-index:3;display:none;flex-direction:column;gap:1px;padding:7px 10px;
  border-radius:10px;background:#fff;box-shadow:var(--shadow-pop),0 0 0 1px rgba(100,44,68,.08);color:var(--muted);font-size:.74rem;line-height:1.3;white-space:nowrap;pointer-events:none}
.tb-bulle strong{color:var(--ink);font-size:.88rem}
a.tb-cible:hover .tb-bulle,a.tb-cible:focus-visible .tb-bulle{display:flex}
.tb-bord-g .tb-bulle{left:0;transform:none}
.tb-bord-d .tb-bulle{left:auto;right:0;transform:none}
.tb-jours{display:grid;margin:6px 0 0;padding:0;list-style:none}
.tb-jours li{text-align:center;font-size:.68rem;color:var(--muted);line-height:1.25;font-variant-numeric:tabular-nums;white-space:nowrap}
.tb-jours small{display:block;font-size:.95em}
.tb-jours .tb-auj{color:var(--plum);font-weight:700}
.tb-jours .tb-futur{opacity:.55}
.tb-detail{margin-top:16px}
.tb-detail summary{cursor:pointer;color:var(--pri);font-weight:600;font-size:.88rem}
.tb-detail table{margin-top:8px;max-width:520px}
.tb-bas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.tb-bas .card{margin:0 0 18px}
.tb-bas h2{margin-top:0}
.tb-item{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:0 -12px;border-radius:12px;color:var(--ink)}
.tb-item+.tb-item{box-shadow:0 -1px 0 var(--line)}
.tb-item:hover{text-decoration:none;background:#fbf6f9}
.tb-item-txt{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.tb-item-txt strong{font-weight:600;overflow-wrap:anywhere}
.tb-motif{font-size:.85rem;color:#3a3a3c;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.tb-item .badge,.tb-item .btn{flex:none}
.tb-rien{display:flex;align-items:center;gap:8px;margin:.2em 0;color:var(--muted)}
.tb-rien .ico{flex:none;width:18px;height:18px;color:var(--ok)}
@media (max-width:1100px){.tb-bas{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
  .tb-chiffres{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-chiffre-un{grid-column:1/-1}}
@media (max-width:900px){.tb-tuiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.tb-jours li{visibility:hidden}.tb-jours li.tb-lundi{visibility:visible}.tb-axe,.tb-zone{height:140px}
  .tb-sep{display:none}.tb-sous{display:flex;flex-direction:column}}
@media (max-width:480px){.tb-tuiles{gap:10px}.tb-tuile{flex-direction:column;align-items:flex-start;gap:8px;padding:14px}
  .tb-ico{width:38px;height:38px;border-radius:12px}.tb-ico .ico{width:21px;height:21px}.tb-val{font-size:1.55rem}
  .tb-per-tete .btn{margin-left:0}.tb-chiffre-un .tb-nb{font-size:1.8rem}}
/* ---------- v105 : vérification anti-robot des formulaires publics (case « Je ne suis pas un robot ») ---------- */
.fo-robot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;max-width:460px;margin:24px 0 0;padding:14px 16px;border-radius:14px;
  background:#fbf8fa;box-shadow:inset 0 0 0 1px rgba(100,44,68,.16);transition:background .2s,box-shadow .2s}
.fo-robot-case{flex-direction:row;align-items:center;gap:12px;min-height:44px;padding:10px 0;margin:-10px 0;color:var(--ink);font-size:1rem;font-weight:500;cursor:pointer}
.fo-robot-case input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--pri);cursor:pointer}
.fo-robot-info{margin-left:auto;max-width:200px;font-size:.8rem;line-height:1.3;color:var(--muted);text-align:right}
.fo-robot-etat{flex-basis:100%;font-size:.86rem;color:var(--muted)}
.fo-robot-etat:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}   /* zone d'annonce présente dès le départ (lecteurs d'écran) */
.fo-robot-encours .fo-robot-etat::before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;
  border:2px solid var(--pri-soft);border-top-color:var(--pri);border-radius:50%;animation:fo-robot-tourne .8s linear infinite}
@keyframes fo-robot-tourne{to{transform:rotate(360deg)}}
.fo-robot-ok{background:var(--ok-bg);box-shadow:inset 0 0 0 1px rgba(29,122,54,.32)}
.fo-robot-ok .fo-robot-etat{color:var(--ok);font-weight:600}
.fo-robot-refus,.fo-robot-echec{box-shadow:inset 0 0 0 1px rgba(215,0,21,.38)}
.fo-robot-refus .fo-robot-etat,.fo-robot-echec .fo-robot-etat{color:var(--bad)}
.fo-robot-nojs{flex-basis:100%;color:var(--bad);font-size:.86rem}
@media (prefers-reduced-motion:reduce){.fo-robot-encours .fo-robot-etat::before{animation:none}}
@media (max-width:480px){.fo-robot{max-width:none}.fo-robot-info{margin-left:0;text-align:left;flex-basis:100%}}
/* v105 : question « fichier » des formulaires en ligne avec le sélecteur de pièces jointes du site (au lieu du bouton brut du navigateur) */
.fo-q .file-pick{margin:4px 0 6px}
.fo-q .file-pick .fp-zone{background:#fff}
.fo-q.fo-err .file-pick .fp-zone{border-color:var(--bad)}
/* Le bouton « Choisir un fichier » est une étiquette : sans la marge du bas des étiquettes, il est centré avec le nom du fichier */
.file-pick .fp-btn{flex:none;margin:0}
.file-pick .fp-names{flex-basis:110px}   /* téléphone : « Aucun fichier choisi » tient à côté du bouton */
/* Clavier : contour bien visible sur les cases à cocher et boutons radio qui ont le focus (Safari n'affichait rien) */
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:3px solid var(--pri);outline-offset:2px}
.fo-robot-echec .fo-robot-info{display:none}   /* « Cochez simplement la case » ne vaut plus après un échec */
.fo-nojs-haut{margin:0 0 18px;padding:12px 14px;border-radius:12px;background:var(--bad-bg)}
/* Clavier : les boutons principaux (« Envoyer »…) n'affichaient aucun repère de focus (ombre en !important) */
button.primary:focus-visible,.btn.primary:focus-visible,.btn.next:focus-visible{outline:3px solid var(--pri);outline-offset:3px}
/* ---------- v106 : fiches client et salarié en pages (menu de boutons sous l'en-tête) ---------- */
.fiche-ident{font-size:.55em;font-weight:600;color:var(--muted);letter-spacing:0;margin-left:8px;white-space:nowrap;vertical-align:2px}
.fiche-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.fiche-nav .fn-btn{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;min-height:40px;border-radius:999px;background:var(--card);
  background-image:var(--gloss);box-shadow:var(--hi),var(--shadow),0 0 0 1px rgba(100,44,68,.07);color:var(--ink);font-weight:600;font-size:.9rem;
  transition:transform .15s,box-shadow .15s;white-space:nowrap}
.fiche-nav .fn-btn:hover{text-decoration:none;transform:translateY(-1px);box-shadow:var(--hi),var(--shadow-pop),0 0 0 1px rgba(209,0,111,.2)}
.fiche-nav .fn-btn.on{background:var(--plum);background-image:none;color:#fff;box-shadow:none}
.fiche-nav .fn-count{min-width:20px;padding:1px 6px;border-radius:999px;background:var(--pri-soft);color:#a41c5c;font-size:.74rem;font-weight:700;text-align:center}
.fiche-nav .fn-btn.on .fn-count{background:rgba(255,255,255,.25);color:#fff}
@media (max-width:700px){.fiche-nav{gap:6px}.fiche-nav .fn-btn{padding:7px 12px;min-height:38px;font-size:.84rem}}
/* v107 : devis créé depuis une demande en ligne (bloc « Demande reçue par le formulaire ») */
.dv-demande{display:grid;grid-template-columns:minmax(150px,38%) minmax(0,1fr);gap:6px 16px;margin:0 0 10px;font-size:.92rem}
.dv-demande dt{color:var(--muted);overflow-wrap:anywhere}
.dv-demande dd{margin:0;white-space:pre-line;overflow-wrap:anywhere}
@media (max-width:600px){.dv-demande{grid-template-columns:1fr}.dv-demande dd{margin-bottom:4px}}

/* v120 : authentification à deux facteurs, anti-robot silencieux */
.code-2fa{font-size:1.4rem;letter-spacing:.25em;text-align:center;max-width:14rem}
.codes-secours{columns:2;column-gap:2rem;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:1.15rem;list-style:none;padding:0;margin:.5rem 0 1rem}
.codes-secours li{padding:.25rem 0;break-inside:avoid}
.codes-box{background:#fff7fb;border:1px solid #f3c6dc;border-radius:12px;padding:1rem 1.2rem;margin-bottom:1.2rem}
.cle-totp{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:1.05rem;word-break:break-all;background:#f6f6f8;padding:.5rem .7rem;border-radius:8px}
.totp-etapes li{margin-bottom:1rem}
.qr-totp{border:8px solid #fff;border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.robot-silencieux{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* v121 : main courante adressée à une personne */
.badge.mc-pour{background:#efe7fb;color:#5b2c91;border:1px solid #d9c6f3}
.badge.mc-pour-moi{background:#d1006f;color:#fff;border-color:#d1006f}
.mc-pour-aide{margin-top:-.2rem}

/* v121 : fiches harmonisées — tablette : la 1re colonne (Identité…) à gauche sur toute la hauteur, les 2e et 3e colonnes
   l'une sous l'autre à droite : plus de grand espace vide entre les blocs */
@media (max-width:1100px) and (min-width:761px){
  .fiche-grid.fg-3{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 1fr}
  .fiche-grid.fg-3>.fiche-col:nth-child(1){grid-column:1;grid-row:1 / span 2}
  .fiche-grid.fg-3>.fiche-col:nth-child(2){grid-column:2;grid-row:1}
  .fiche-grid.fg-3>.fiche-col:nth-child(3){grid-column:2;grid-row:2;display:flex;grid-template-columns:none;align-items:stretch}
}
.alloc-repli{border:1px dashed var(--line,#e5d4de);border-radius:12px;padding:8px 12px;margin:4px 0 12px}
.alloc-repli summary{cursor:pointer}
.alloc-repli[open]{border-style:solid}
/* fiche salarié, page « Planning » */
.planning-intro{margin:0 4px 12px}
.ps-semaine{width:100%;border-collapse:collapse;margin:4px 0 10px}
.ps-semaine th{width:7.5em;text-align:left;font-weight:700;padding:8px 8px 8px 0;vertical-align:top;color:var(--ink,#4a1d33)}
.ps-semaine td{padding:6px 0;vertical-align:top}
.ps-semaine tr+tr th,.ps-semaine tr+tr td{border-top:1px solid var(--line,#f0e1ea)}
.ps-semaine tr.ps-vide th{color:var(--muted,#8a7380);font-weight:500}
.ps-creneau{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff6fa;border:1px solid #f3d3e3;border-radius:999px;padding:3px 6px 3px 12px;margin:2px 6px 2px 0}
.ps-creneau.ps-inactif{opacity:.6}
.ps-heures{font-variant-numeric:tabular-nums;font-weight:700}
.ps-actions{display:flex;flex-direction:column;gap:10px}
.fiche-commentaire textarea{min-height:16rem}

/* v121 : bloc d'une fiche modifié et pas encore enregistré */
section.bloc-modifie{box-shadow:0 0 0 2px #f2a900, var(--shadow, 0 6px 18px rgba(100,44,68,.08))}
section.bloc-modifie>h2::after{content:'non enregistré';margin-left:10px;padding:2px 8px;border-radius:999px;background:#fff3cd;color:#7a5600;
  font:600 .72rem/1.4 var(--font, system-ui);letter-spacing:.02em;vertical-align:middle}

/* v122 : suppression d'une notification (direction) */
.lg-notifs li{position:relative}
.lg-notifs .nt-suppr{display:inline-block;margin-left:6px}

/* v123 : sélection des notifications */
.notif-sel{align-items:center;gap:12px;margin:0 0 10px}
.lg-notifs li.nt-avec-case{display:flex;align-items:center;gap:10px}
.lg-notifs li.nt-avec-case>a{flex:1;min-width:0}
.nt-case{width:20px;height:20px;flex:none}

/* v124 : aperçu en direct du devis */
.dv-apercu{background:#fff3cd;color:#6b4e00;border-radius:10px;padding:6px 10px;margin:8px 0}

/* v125 : enfants d’un trajet sur une ligne */
.trajet-enfants{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 12px;flex-direction:row}
.trajet-enfants .check{margin:0}

/* v126 : bande de mise à jour sous les onglets */
.maj-bande{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;padding:7px 16px;background:linear-gradient(90deg,#fde7f2,#f3e8ff);
  color:#5b1a3c;font-size:.9rem;border-top:1px solid rgba(209,0,111,.15)}
.maj-bande[hidden]{display:none}
.maj-texte{font-weight:700}
.maj-barre{flex:0 1 320px;height:8px;border-radius:999px;background:rgba(209,0,111,.15);overflow:hidden}
.maj-rempli{display:block;height:100%;background:#d1006f;border-radius:999px;transition:width .6s ease}
.maj-pct{font-variant-numeric:tabular-nums;font-weight:700;min-width:3.2em}
.maj-bande.maj-fini{background:#e6f6ec;color:#14532d}
.maj-bande.maj-fini .maj-rempli{background:#15803d}
.maj-bande.maj-erreur{background:#fff1e0;color:#7a3200}
.maj-bande.maj-erreur .maj-rempli{background:#c2410c}

/* v127 : sujet de la mise à jour dans la bande */
.maj-sujet{font-style:italic}
.maj-sujet:empty{display:none}

/* v132 : bouton PDF du devis fixe, au-dessus du bouton « Assistant » (la discussion ouverte passe par-dessus) */
a.btn.devis-pdf-fixe{position:fixed;right:20px;bottom:92px;z-index:65;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 14px;font-size:.88rem;white-space:nowrap;max-width:calc(100vw - 32px);
  box-shadow:0 10px 28px -8px rgba(160,0,85,.45)}
@media (max-width:820px){
  a.btn.devis-pdf-fixe{right:12px;bottom:calc(76px + 70px + env(safe-area-inset-bottom,0px));padding:8px 12px}
}

@media print{ .devis-pdf-fixe{display:none} }

/* v133 : téléphone / e-mail alignés en haut ; surface à nettoyer (devis ménage) */
.row.row-haut{align-items:flex-start}
.dv-surface{margin-top:10px;width:100%;align-items:flex-start}
.dv-surface>label{flex:0 0 auto!important;margin:0;white-space:nowrap}
.dv-surface input{width:9em;display:block}
.dv-surface select{display:block;min-width:11em}

/* v136 : loupe de recherche globale (en-tête, à droite du choix de module) et page de résultats */
.recherche-loupe{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin-left:6px;flex:0 0 auto;border-radius:999px;
  background:rgba(100,44,68,.07);color:var(--plum);transition:background .15s,color .15s,box-shadow .15s}
.recherche-loupe svg{width:19px;height:19px}
.recherche-loupe:hover,.recherche-loupe.on{background:var(--pri);color:#fff;text-decoration:none;box-shadow:0 6px 16px -6px rgba(209,0,111,.55)}
.rch-titre{display:flex;align-items:center;gap:10px}
.rch-titre .ico{width:26px;height:26px;color:var(--pri)}
.rch-form{display:flex;gap:10px;align-items:stretch;max-width:760px;margin:6px 0 14px}
.rch-form input{flex:1 1 auto;min-width:0;font-size:1.05rem;padding:12px 18px;border-radius:999px}
.rch-form button{border-radius:999px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.rch-bilan{margin:4px 0 10px}
.rch-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.rch-chips .badge{text-decoration:none}
.rch-groupe{margin-bottom:16px}
.rch-liste{list-style:none;margin:0;padding:0}
.rch-liste li+li{border-top:1px solid var(--line)}
.rch-liste a{display:block;padding:10px 6px;border-radius:10px;color:inherit;text-decoration:none}
.rch-liste a:hover{background:rgba(209,0,111,.06)}
.rch-nom{font-weight:650;color:var(--pri)}
.rch-extrait{display:block;font-size:.86rem;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.rch-champ{font-weight:600;color:var(--plum);margin-right:4px}
.rch-champ:after{content:" :"}
@media (max-width:820px){ .recherche-loupe{width:36px;height:36px;margin-left:4px} .rch-form button span{display:none} }

/* v137 : souhait du planning (jours possibles, précision, total par semaine) */
.planning-souhait{margin:14px 0 4px;padding:14px 16px;border-radius:var(--radius-sm);background:var(--pri-soft);}
.planning-souhait h3{margin:0 0 6px}
.planning-souhait input[name=total_semaine]{width:7em}
.planning-souhait label.nowrap{white-space:nowrap}

/* v138 : question obligatoire selon une autre réponse */
.fo-req-si{font-size:.78rem;font-weight:500;color:var(--muted);margin-left:4px}
.fo-q.fo-requis-actif .fo-req-si{display:none}
.fo-ed-requis-si{display:block;margin-top:8px}
.fo-ed-requis-si select{display:block;max-width:100%}

/* v140 : souhait dans l'ordre du croquis */
.planning-souhait .souhait-precision{display:block;margin:8px 0}
.planning-souhait .souhait-precision input{width:100%}
.planning-souhait .souhait-total{display:block;margin-bottom:8px}
.planning-souhait .souhait-total input{width:7em;display:block}
.planning-souhait input[name=interventions],.planning-souhait input[name=semaines],.planning-souhait input[name=mois]{width:7em}

/* v147 : articles du devis — liste déroulante à cases (plusieurs choix) + frais / km à cocher à côté */
fieldset.dv-articles-v147{border:0;padding:0;margin:0 0 12px}
.dv-articles-ligne{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:flex-start}
.dv-deroulant{position:relative;flex:1 1 420px;max-width:640px}
.dv-deroulant>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:11px 16px;border:1px solid var(--field);border-radius:var(--radius-sm);background:var(--card);min-height:44px}
.dv-deroulant>summary::-webkit-details-marker{display:none}
.dv-deroulant>summary:after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin-top:-4px;flex:none}
.dv-deroulant[open]>summary:after{transform:rotate(-135deg);margin-top:4px}
.dv-deroulant-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dv-deroulant-txt.vide{color:var(--muted)}
.dv-deroulant-liste{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);max-height:min(60vh,420px);overflow:auto;
  background:var(--card);border:1px solid var(--field);border-radius:var(--radius-sm);box-shadow:0 18px 40px -12px rgba(100,44,68,.35);padding:6px}
.dv-deroulant-liste .dv-article{padding:8px 10px;border-radius:10px}
.dv-deroulant-liste .dv-article:hover{background:var(--pri-soft)}
.dv-communs{display:flex;flex-direction:column;gap:8px;flex:1 1 260px}
@media (max-width:640px){ .dv-deroulant-liste{position:static;margin-top:4px;box-shadow:none} }
.dv-recherche{width:100%;margin:2px 0 6px;position:sticky;top:0;z-index:1}
.dv-article.dv-filtre{display:none!important}
.dv-aucun{margin:6px 10px}

/* v152 : encadré « Famille » replié en une ligne une fois rempli */
.bloc-replie>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.bloc-replie>summary::-webkit-details-marker{display:none}
.bloc-replie>summary h2{margin:0}
.bloc-replie-resume{flex:1 1 300px;min-width:0;color:var(--muted);font-size:.9rem}
.bloc-replie[open] .bloc-replie-resume{display:none}
.bloc-replie-btn{margin-left:auto;pointer-events:none}
.bloc-replie .br-fermer,.bloc-replie[open] .br-ouvrir{display:none}
.bloc-replie[open] .br-fermer{display:inline}
.bloc-replie[open]>summary{margin-bottom:12px}
.bloc-replie-fixe>summary{pointer-events:none;cursor:default}
.bloc-replie-fixe .bloc-replie-btn{display:none}
.dv-type{display:inline-flex;align-items:center;gap:5px}
.dv-type .ico{width:15px;height:15px}

/* v154 : case « Client désactivé » de la fiche client */
.client-desactive{margin:12px 0 8px;padding:10px 12px;border-radius:var(--radius-sm);background:#f6f2f4}
.client-desactive input:checked+.check-txt strong{color:var(--bad)}

/* v155 : qui est sur le site (Paramètres, direction) */
.presence h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.presence-maj{margin-left:auto}
.presence-table{width:100%}
.presence-table td{vertical-align:top}
.presence-recents{margin-top:12px}
.presence-recents>summary{cursor:pointer;font-weight:600;color:var(--muted)}
.badge.pres-direction{background:var(--pri);color:#fff}
.badge.pres-agence{background:var(--pri-soft);color:var(--pri)}
.badge.pres-intervenante{background:#efe7fb;color:#5b2a9a}
.badge.pres-client{background:#e6f0fb;color:#1f4f96}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.presence-table .cl-name,.cc-table .cl-name{display:block;color:var(--muted);font-size:.85rem;font-weight:400}

/* v157 : notification annoncée par l'assistant */
.imsg-b.imsg-notif{background:#fff4e6;border:1px solid #f3d3a6;color:#5a3a00}
.imsg-b.imsg-notif .ico{width:16px;height:16px;vertical-align:-3px;color:var(--warn)}
.imsg-b.imsg-notif .btn{margin-left:6px;padding:2px 10px;min-height:0}
.imsg-b.queue.imsg-notif::before,.imsg-b.queue.imsg-notif::after{display:none}

/* v158 : agenda des heures (façon Google Agenda) */
.ag-barre{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-bottom:10px}
.ag-titre{margin:0;font-size:1.6rem}
.ag-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ag-fleche{font-size:1.3rem;line-height:1;padding:4px 12px}
.ag-semaine{font-size:1.05rem;color:var(--plum)}
.ag-filtres{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-left:auto}
.ag-filtres label{margin:0}
.ag-filtres select,.ag-filtres input{min-height:36px;padding:6px 10px}
.ag-aide{margin:0 0 10px}
.ag-legende{display:flex;flex-wrap:wrap;gap:6px 12px;margin:0 0 10px}
.ag-pastille{display:inline-flex;align-items:center;gap:6px;font-size:.85rem}
.ag-pastille:before{content:"";width:12px;height:12px;border-radius:4px;background:var(--c)}
.ag-cadre{overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow)}
.ag-grille{display:grid;grid-template-columns:52px repeat(7,minmax(118px,1fr));min-width:880px;position:relative}
.ag-coin,.ag-tete{position:sticky;top:0;z-index:3;background:var(--card);border-bottom:1px solid var(--line)}
.ag-tete{padding:8px 6px 6px;text-align:center;border-left:1px solid var(--line);font-size:.86rem;color:var(--muted);scroll-snap-align:start}
.ag-num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;font-size:1.1rem;font-weight:650;color:var(--ink)}
.ag-tete.auj .ag-num{background:var(--pri);color:#fff}
.ag-tete.auj .ag-jour{color:var(--pri);font-weight:650}
.ag-total{display:block;font-size:.76rem;min-height:1em}
.ag-ferie{display:inline-block;margin-left:4px;font-size:.7rem;padding:0 6px;border-radius:999px;background:var(--warn-bg);color:var(--warn)}
.ag-lien-jour{display:block;font-size:.74rem}
.ag-tete.ferme{background:repeating-linear-gradient(135deg,#faf6f8 0 6px,#f3edf1 6px 12px)}
.ag-heures{grid-column:1;display:flex;flex-direction:column;border-right:1px solid var(--line)}
.ag-heures span{height:var(--h);font-size:.72rem;color:var(--muted);text-align:right;padding:0 6px 0 0;transform:translateY(-7px)}
.ag-heures span:first-child{transform:none}
.ag-col{position:relative;height:calc(var(--h) * var(--n));border-left:1px solid var(--line);cursor:copy;
  background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--h) - 1px),var(--line) calc(var(--h) - 1px),var(--line) var(--h))}
.ag:not([data-saisie]) .ag-col{cursor:default}
.ag-col.auj{background-color:#fff7fb}
.ag-col.ferme{cursor:not-allowed;background-color:#f6f2f4}
.ag-ev{position:absolute;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;padding:3px 6px;border-radius:8px;overflow:hidden;
  font-size:.78rem;line-height:1.25;color:#fff;text-decoration:none;background:var(--c,var(--pri));box-shadow:0 1px 2px rgba(0,0,0,.18);z-index:1;cursor:pointer}
.ag-ev:hover{text-decoration:none;filter:brightness(1.07);z-index:2}
.ag-ev.ty-garde{--c:#c2185b}.ag-ev.ty-menage{--c:#1f4f96}
.ag[data-agenda]:not([data-saisie]) .ag-ev{background:var(--c)}
.ag-ev.st-transmise{opacity:.92}.ag-ev.st-validee{background-image:linear-gradient(90deg,rgba(255,255,255,.22),rgba(255,255,255,.22))}
.ag-ev.st-a_corriger{outline:2px solid var(--warn);outline-offset:-2px}
.ag-ev.conteste{outline:2px dashed #fff;outline-offset:-3px}
.ag-ev-h{font-weight:650;white-space:nowrap}
.ag-ev-t{overflow:hidden;text-overflow:ellipsis}
.ag-ev.court{flex-direction:row;gap:6px;align-items:center;white-space:nowrap}
.ag-panneau,.ag-saisie-repli[open] .ag-saisie{position:fixed;z-index:60;right:20px;top:110px;width:min(420px,calc(100vw - 32px));max-height:calc(100vh - 140px);overflow:auto;
  background:var(--card);border-radius:var(--radius);box-shadow:0 24px 60px -12px rgba(60,20,40,.45);padding:18px 18px 14px}
.ag-panneau h2,.ag-saisie h2{margin:0 0 8px;font-size:1.15rem}
.ag-panneau-x{position:absolute;right:10px;top:8px;background:transparent;border:0;font-size:1.5rem;line-height:1;color:var(--muted);box-shadow:none;min-height:0;padding:4px 8px}
.ag-detail-btns,.ag-saisie-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.ag-saisie-repli{margin-top:12px}
.ag-saisie-repli>summary{list-style:none;display:inline-flex}
.ag-saisie-repli>summary::-webkit-details-marker{display:none}
.ag-saisie .row{gap:10px}
@media (max-width:820px){
  .ag-grille{grid-template-columns:44px repeat(7,minmax(calc((100vw - 76px) / 2),1fr));min-width:0}
  .ag-filtres{margin-left:0}
  .ag-panneau,.ag-saisie-repli[open] .ag-saisie{left:12px;right:12px;width:auto;top:auto;bottom:calc(76px + env(safe-area-inset-bottom,0px));max-height:70vh}
}
@media print{ .ag-filtres,.ag-nav a,.ag-saisie-repli,.ag-panneau{display:none} .ag-cadre{overflow:visible;box-shadow:none} }
.ag-ev-h{overflow:hidden;text-overflow:ellipsis}

/* v158 : 4e module « Agenda » — sur téléphone, icône calendrier et boutons resserrés pour tenir dans la largeur */
.module-switch .ms-ico-agenda{display:none}
.module-switch .ms-ico-agenda svg{width:18px;height:18px;display:block}
@media (max-width:480px){
  .module-switch a{padding:6px 9px}
  .module-switch .ms-txt-agenda{display:none}
  .module-switch .ms-ico-agenda{display:inline-flex}
}
@media (max-width:360px){ .module-switch a{padding:5px 7px;font-size:.78rem} .recherche-loupe{width:32px;height:32px;margin-left:2px} }
@media (max-width:360px){
  .brand-group{gap:6px}
  .brand-group .logo-img{height:36px;width:auto}
  .module-switch a{padding:5px 6px;font-size:.74rem}
  .recherche-loupe{width:30px;height:30px}
  .recherche-loupe svg{width:16px;height:16px}
}
.ag-filtres select{max-width:100%}
@media (max-width:820px){ .ag-filtres{width:100%} .ag-filtres label{flex:1 1 140px;min-width:0} .ag-filtres select,.ag-filtres input{width:100%} }
@media (max-width:480px){
  .brand-group{min-width:0;flex:0 1 auto}
  .module-switch{min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none}
  .module-switch::-webkit-scrollbar{display:none}
  .module-switch a{flex:0 0 auto}
}
/* v158 : colonne des heures fixe quand les jours défilent de côté */
.ag-heures{position:sticky;left:0;z-index:2;background:var(--card)}
.ag-coin{left:0;z-index:4}
@media (max-width:820px){ .ag-grille{width:max-content;min-width:100%} }

/* v160 : main courante — URGENT : badge, demande encadrée, grande alerte rouge clignotante */
.badge.mc-badge-urgent{background:#d70015;color:#fff;font-weight:800;letter-spacing:.06em;animation:urg-clig 1s steps(2,start) infinite}
.mc-item.mc-urgent{box-shadow:inset 0 0 0 2px #d70015,0 8px 24px -10px rgba(215,0,21,.45);background:#fff5f5}
.mc-urgent-case{margin:8px 0;padding:10px 12px;border-radius:var(--radius-sm);background:#fff1f1;border:1px solid #f5c2c7}
.mc-urgent-case strong{color:#d70015;letter-spacing:.05em}
.urgence-voile{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(215,0,21,.82);animation:urg-fond 1s ease-in-out infinite alternate}
.urgence-voile[hidden]{display:none}
.urgence-boite{width:min(640px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:24px;padding:22px 24px;text-align:center;
  box-shadow:0 0 0 6px #fff,0 0 0 12px #d70015,0 30px 80px rgba(0,0,0,.5)}
.urgence-titre{margin:0 0 10px;font-size:clamp(2.4rem,9vw,4.2rem);font-weight:900;letter-spacing:.12em;color:#d70015;animation:urg-clig 1s steps(2,start) infinite}
.urgence-liste{list-style:none;margin:0 0 16px;padding:0;text-align:left;font-size:1.08rem}
.urgence-liste li{padding:10px 12px;border-radius:12px;background:#fff1f1;margin-bottom:8px}
.urgence-liste a{color:#7a0010;font-weight:700}
.urgence-par{color:var(--muted);font-size:.9rem}
.urgence-btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.urgence-voir{background:#d70015!important;color:#fff!important;font-size:1.05rem;padding:12px 22px}
.urgence-ok{font-size:1.05rem;padding:12px 22px}
.urgence-son{margin:10px 0 0;font-weight:700;color:#d70015}
body.urgence-active{overflow:hidden}
@keyframes urg-clig{to{visibility:hidden}}
@keyframes urg-fond{from{background:rgba(215,0,21,.86)}to{background:rgba(120,0,10,.86)}}
@media (prefers-reduced-motion:reduce){ .urgence-voile,.urgence-titre,.badge.mc-badge-urgent{animation:none} }

/* v161 : bulle — onglets « Assistant / Équipe » */
.chat-panneau:not([hidden]){display:flex;flex-direction:column}
.chat-onglets{flex:none;display:flex;gap:4px;padding:8px 54px 8px 10px;background:#fbf7f9;border-bottom:1px solid var(--line)}
.chat-onglets button{flex:1;min-height:0;padding:7px 10px;border-radius:999px;border:0;background:transparent;box-shadow:none;color:var(--muted);font-weight:650;font-size:.9rem;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.chat-onglets button.on{background:#fff;color:var(--pri);box-shadow:0 1px 3px rgba(100,44,68,.18)}
.chat-onglet-nb{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#d70015;color:#fff;font-size:.72rem;line-height:18px;text-align:center}
.chat-panneau .chat-cadre{flex:1;height:auto;min-height:0}
button.chat-fermer{top:9px}
@media (max-width:820px){ .chat-onglets{padding-top:calc(env(safe-area-inset-top,0px) + 8px)} button.chat-fermer{top:calc(env(safe-area-inset-top,0px) + 9px)} }

/* v161 : messagerie de l'équipe, façon téléphone */
.eq{display:flex;flex-direction:column;background:#fff;min-height:0}
.eq-panneau{height:100vh}
.eq-page{border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;max-width:820px;margin:0 auto}
.eq-tete{flex:none;display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff}
.eq-groupe{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--pri-soft);color:var(--pri);flex:none}
.eq-groupe svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.eq-titre{display:flex;flex-direction:column;min-width:0;flex:1}
.eq-titre strong{font-size:1.02rem}
.eq-ligne{font-size:.78rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eq-agrandir{margin-left:auto}
.eq-membres{flex:none;display:flex;gap:6px;padding:8px 14px;overflow-x:auto;border-bottom:1px solid var(--line);background:#fdfafb}
.eq-membres:empty{display:none}
.eq-membre{position:relative;flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;font-weight:750;color:#fff;background:var(--c)}
.eq-membre.en-ligne:after{content:"";position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:#2fbf4a;border:2px solid #fff}
.eq-fil{flex:1;min-height:0;overflow-y:auto;padding:10px 12px 6px;display:flex;flex-direction:column;gap:2px;background:#fff}
.eq-vide{margin:auto;max-width:300px;text-align:center;color:var(--muted);font-size:.92rem}
.eq-jour{align-self:center;margin:12px 0 6px;padding:3px 12px;border-radius:999px;background:#f3eef1;color:var(--muted);font-size:.74rem;font-weight:650}
.eq-rangee{display:flex;align-items:flex-end;gap:6px;max-width:100%;margin-top:6px}
.eq-rangee.suite{margin-top:1px}
.eq-rangee.moi{flex-direction:row-reverse}
.eq-av{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:.68rem;font-weight:750;color:#fff;background:var(--c)}
.eq-av.cache{visibility:hidden}
.eq-bulle{position:relative;max-width:76%;padding:7px 12px 6px;border-radius:18px;background:#f0eaee;color:#1d1d1f;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.35}
.eq-rangee.moi .eq-bulle{background:var(--pri);color:#fff;border-bottom-right-radius:6px}
.eq-rangee.autre .eq-bulle{border-bottom-left-radius:6px}
.eq-nom{display:block;font-size:.74rem;font-weight:750;color:var(--c);margin-bottom:1px}
.eq-heure{display:inline-block;margin-left:8px;font-size:.66rem;opacity:.7;vertical-align:bottom;white-space:nowrap}
.eq-bulle.efface .eq-texte{font-style:italic;opacity:.75}
.eq-suppr{align-self:center;min-height:0;width:24px;height:24px;padding:0;border-radius:50%;border:0;background:transparent;box-shadow:none;color:var(--muted);
  font-size:1rem;line-height:1;opacity:0;cursor:pointer}
.eq-rangee:hover .eq-suppr,.eq-suppr:focus{opacity:1}
@media (hover:none){ .eq-suppr{opacity:.55} }
.eq-vu{align-self:flex-end;margin:2px 4px 4px;font-size:.7rem;color:var(--muted)}
.eq-saisie{flex:none;display:flex;align-items:flex-end;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#fff}
.eq-saisie textarea{flex:1;resize:none;min-height:40px;max-height:140px;padding:9px 14px;border-radius:20px;line-height:1.35;font-size:1rem}
.eq-envoi{flex:none;width:40px;height:40px;min-height:0;padding:0;border-radius:50%;display:grid;place-items:center;background:var(--pri);color:#fff;border:0}
.eq-envoi svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.eq-envoi:disabled{opacity:.35}

/* v162 : « Client désactivé » — l'explication n'apparaît qu'au survol (ou au toucher / clavier) */
.client-desactive .opt{display:none}
.client-desactive:hover .opt,.client-desactive:focus-within .opt{display:inline}
/* v162 : colonnes de la liste des clients réglables en largeur (ordinateur) */
.col-aide{margin:0 0 6px}
table[data-colonnes] th{position:relative}
.col-poignee{position:absolute;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;z-index:2;touch-action:none}
.col-poignee:after{content:"";position:absolute;top:22%;bottom:22%;left:4px;width:1px;background:var(--line)}
.col-poignee:hover:after,.col-poignee.actif:after{width:3px;left:3px;background:var(--pri);border-radius:2px}
table[data-colonnes].col-fixe{table-layout:fixed}
table[data-colonnes].col-fixe td,table[data-colonnes].col-fixe th{overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}
body.col-glisse{cursor:col-resize;user-select:none;-webkit-user-select:none}
@media (max-width:820px){ .col-aide,.col-poignee{display:none} }

/* v163 : nouvelle notification — petite carte en haut à droite */
.notif-toasts{position:fixed;top:84px;right:16px;z-index:90;display:flex;flex-direction:column;gap:8px;width:min(340px,calc(100vw - 32px));pointer-events:none}
.notif-toast{position:relative;pointer-events:auto;display:flex;align-items:flex-start;gap:6px;padding:10px 34px 10px 14px;border-radius:14px;background:#fff;
  box-shadow:0 14px 34px -10px rgba(60,20,40,.4),0 0 0 1px var(--line);border-left:4px solid var(--pri);animation:notif-in .25s ease-out;transition:opacity .35s,transform .35s}
.notif-toast.urgent{border-left-color:#d70015;background:#fff5f5}
.notif-toast.sort{opacity:0;transform:translateX(16px)}
.notif-toast-txt{display:flex;flex-direction:column;gap:2px;color:var(--ink);text-decoration:none;font-size:.88rem;line-height:1.3}
.notif-toast-txt:hover{text-decoration:none}
.notif-toast-txt strong{font-size:.76rem;letter-spacing:.03em;text-transform:uppercase;color:var(--pri)}
.notif-toast.urgent .notif-toast-txt strong{color:#d70015}
.notif-toast-x{position:absolute;top:6px;right:6px;width:24px;height:24px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:var(--muted);font-size:1.1rem;line-height:1;cursor:pointer}
@keyframes notif-in{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@media (max-width:820px){ .notif-toasts{top:72px;right:12px} }
@media (prefers-reduced-motion:reduce){ .notif-toast{animation:none;transition:none} }
/* v163 : liste des clients — un nom long passe à la ligne au lieu de déborder sur la colonne « Compte » */
table.fiches-table .cl-who strong.nowrap{white-space:normal;overflow-wrap:anywhere}
table.fiches-table td.cl-who{overflow-wrap:anywhere}

/* ============ v164 : agenda inspiré de Google Agenda ============ */
.gc{display:grid;grid-template-columns:256px minmax(0,1fr);gap:0 18px;align-items:start}
.gc-side{position:sticky;top:84px;display:flex;flex-direction:column;gap:16px;padding-top:4px}
.gc-creer{align-self:flex-start;display:inline-flex;align-items:center;gap:12px;padding:14px 24px 14px 18px;border-radius:18px;border:0;background:#fff;
  color:var(--ink);font-weight:600;font-size:.95rem;box-shadow:0 1px 3px rgba(60,20,40,.22),0 4px 10px rgba(60,20,40,.12);cursor:pointer;min-height:0}
.gc-creer:hover{box-shadow:0 2px 6px rgba(60,20,40,.25),0 8px 18px rgba(60,20,40,.16);background:#fff}
.gc-plus{font-size:2rem;line-height:.8;color:var(--pri);font-weight:300}
.gc-mini{background:transparent}
.gc-mini-tete{display:flex;align-items:center;gap:2px;margin:0 0 6px 6px}
.gc-mini-tete strong{flex:1;font-size:.92rem;font-weight:600;text-transform:capitalize}
.gc-mini-grille{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:.72rem}
.gc-mini-j{color:var(--muted);font-weight:600;padding:4px 0}
.gc-mini-n{position:relative;display:grid;place-items:center;width:28px;height:28px;margin:1px auto;border-radius:50%;color:var(--ink);text-decoration:none}
.gc-mini-n:hover{background:#f1e8ed;text-decoration:none}
.gc-mini-n.autre{color:#a39aa0}
.gc-mini-n.dans{background:#fbe3ef}
.gc-mini-n.choisi{background:#f6c6dd;font-weight:700}
.gc-mini-n.auj{background:var(--pri);color:#fff;font-weight:700}
.gc-mini-n.occupe:after{content:"";position:absolute;bottom:3px;width:4px;height:4px;border-radius:50%;background:var(--pri)}
.gc-mini-n.auj.occupe:after{background:#fff}
.gc-agendas h2{margin:0 0 6px 6px;font-size:.92rem;font-weight:600}
.gc-agenda{display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:8px;font-size:.88rem;cursor:pointer;margin:0}
.gc-agenda:hover{background:#f6eff3}
.gc-agenda input{position:absolute;opacity:0;width:1px;height:1px}
.gc-case{width:18px;height:18px;border-radius:4px;border:2px solid var(--c);flex:none;display:grid;place-items:center}
.gc-agenda input:checked+.gc-case{background:var(--c)}
.gc-agenda input:checked+.gc-case:after{content:"";width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.gc-agenda input:focus-visible+.gc-case{box-shadow:0 0 0 3px rgba(209,0,111,.3)}
.gc-filtres{display:flex;flex-direction:column;gap:8px}
.gc-filtres label{margin:0;font-size:.82rem}
.gc-astuce{margin:0 6px}
.gc-astuce kbd{display:inline-block;padding:0 5px;border-radius:4px;border:1px solid var(--line);background:#fff;font-size:.72rem;font-family:inherit}
.gc-main{min-width:0}
.gc-barre{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 10px}
.gc-auj{border-radius:8px;padding:7px 16px}
.gc-rond{display:inline-grid;place-items:center;width:36px;height:36px;min-height:0;padding:0;border-radius:50%;border:0;background:transparent;box-shadow:none;
  color:var(--ink);font-size:1.35rem;line-height:1;text-decoration:none;cursor:pointer}
.gc-rond:hover{background:#f1e8ed;text-decoration:none}
.gc-rond svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.gc-titre{margin:0 6px;font-size:1.45rem;font-weight:500;color:var(--ink)}
.gc-total{font-size:.8rem;color:var(--muted);padding:2px 8px;border-radius:999px;background:#f3eef1}
.gc-vues{margin-left:auto;display:inline-flex;border:1px solid var(--field);border-radius:10px;overflow:hidden}
.gc-vues a{padding:7px 14px;font-size:.86rem;font-weight:600;color:var(--ink);text-decoration:none;border-left:1px solid var(--field)}
.gc-vues a:first-child{border-left:0}
.gc-vues a.on{background:var(--pri-soft);color:var(--pri)}
.gc-vues a:hover{text-decoration:none;background:#f6eff3}
/* grille Jour / Semaine */
.gc .ag-cadre{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow-x:auto}
.gc .ag-grille{grid-template-columns:56px repeat(var(--nj),minmax(110px,1fr));min-width:0}
.gc .ag-grille.gc-semaine{min-width:820px}
.gc .ag-tete{padding:10px 4px 8px;border-left:0;display:flex;flex-direction:column;align-items:center;gap:2px}
.gc .ag-jour{font-size:.7rem;font-weight:600;letter-spacing:.06em;color:var(--muted)}
.gc .ag-num{width:44px;height:44px;font-size:1.55rem;font-weight:400;text-decoration:none}
.gc a.ag-num:hover{background:#f1e8ed;text-decoration:none}
.gc .ag-tete.auj .ag-jour{color:var(--pri)}
.gc .ag-tete.auj .ag-num{background:var(--pri);color:#fff}
.gc .ag-tete.passe .ag-num,.gc .ag-tete.passe .ag-jour{color:#9a9095}
.gc .ag-total{font-size:.7rem;color:var(--muted);min-height:1em}
.gc .ag-lien-jour{font-size:.68rem}
.gc-fuseau{display:block;padding:58px 6px 0 0;text-align:right;font-size:.62rem;color:var(--muted)}
.gc .ag-heures span{font-size:.68rem;padding-right:8px}
.gc .ag-col{border-left:1px solid #ece4e8;cursor:default}
.gc[data-saisie] .ag-col:not(.ferme){cursor:cell}
.gc .ag-col.auj{background-color:transparent}
.gc .ag-ev{border-radius:6px;padding:2px 6px 2px 8px;font-size:.75rem;line-height:1.25;color:#fff;background:var(--c);border:1px solid #fff;
  box-shadow:none;gap:0;cursor:pointer;user-select:none;-webkit-user-select:none}
.gc .ag-ev.modifiable{cursor:grab}
.gc .ag-ev.glisse{cursor:grabbing;box-shadow:0 10px 24px rgba(0,0,0,.28);z-index:5;opacity:.95}
.gc .ag-ev.enregistre{opacity:.6}
.gc .ag-ev.passe{background:color-mix(in srgb,var(--c) 55%,#fff);color:#fff}
.gc .ag-ev-t{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc .ag-ev-h{font-weight:400;opacity:.92}
.gc .ag-ev.court{flex-direction:row;gap:6px;align-items:center}
.gc .ag-ev.st-a_corriger{outline:2px solid var(--warn);outline-offset:-2px}
.ag-poignee{position:absolute;left:0;right:0;bottom:0;height:8px;cursor:ns-resize}
.ag-poignee:after{content:"";position:absolute;left:50%;bottom:2px;width:16px;margin-left:-8px;height:3px;border-radius:2px;background:rgba(255,255,255,.75);opacity:0}
.ag-ev:hover .ag-poignee:after{opacity:1}
.gc-maintenant{position:absolute;left:-1px;right:0;height:2px;background:#ea4335;z-index:3;pointer-events:none}
.gc-maintenant:before{content:"";position:absolute;left:-6px;top:-5px;width:12px;height:12px;border-radius:50%;background:#ea4335}
.gc-fantome{position:absolute;left:0;right:6px;z-index:4;border-radius:6px;background:var(--pri);color:#fff;font-size:.75rem;padding:3px 8px;
  box-shadow:0 6px 16px rgba(209,0,111,.35);pointer-events:none}
.gc-fantome[hidden]{display:none}
/* vue Mois */
.gc-mois{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.gc-mois-j{padding:8px 0 4px;text-align:center;font-size:.7rem;font-weight:600;letter-spacing:.06em;color:var(--muted);border-left:1px solid #ece4e8}
.gc-mois-j:first-child,.gc-cellule:nth-child(7n+8){border-left:0}
.gc-cellule{min-height:118px;padding:4px 4px 6px;border-left:1px solid #ece4e8;border-top:1px solid #ece4e8;display:flex;flex-direction:column;gap:2px;min-width:0}
.gc[data-saisie] .gc-cellule:not(.ferme){cursor:cell}
.gc-cellule.autre{background:#fcfafb}
.gc-cellule.autre .gc-cellule-n{color:#a39aa0}
.gc-cellule-n{align-self:center;display:grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border-radius:999px;font-size:.78rem;font-weight:500;color:var(--ink);text-decoration:none}
.gc-cellule-n:hover{background:#f1e8ed;text-decoration:none}
.gc-cellule.auj .gc-cellule-n{background:var(--pri);color:#fff}
.gc-puce{display:flex;align-items:center;gap:5px;padding:1px 6px;border-radius:4px;font-size:.74rem;color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-puce:hover{background:#f3eef1;text-decoration:none}
.gc-puce.passe{opacity:.6}
.gc-puce-h{color:var(--muted)}
.gc-point{flex:none;width:8px;height:8px;border-radius:50%;background:var(--c)}
.gc-plus-n{padding:0 6px;font-size:.72rem;font-weight:600;color:var(--ink)}
/* vue Planning */
.gc-planning{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:6px 0}
.gc-pl-jour{display:grid;grid-template-columns:150px 1fr;gap:10px;padding:8px 16px;border-bottom:1px solid #f1eaee}
.gc-pl-jour:last-child{border-bottom:0}
.gc-pl-date{display:flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font-size:.78rem;text-transform:uppercase;align-self:start}
.gc-pl-date .ag-num{width:34px;height:34px;font-size:1.3rem;display:inline-grid;place-items:center;border-radius:50%}
.gc-pl-jour.auj .ag-num{background:var(--pri);color:#fff}
.gc-pl-jour ul{list-style:none;margin:0;padding:0}
.gc-pl-ev{display:flex;align-items:center;gap:12px;padding:6px 8px;border-radius:8px;color:var(--ink);text-decoration:none;font-size:.88rem}
.gc-pl-ev:hover{background:#f6eff3;text-decoration:none}
.gc-pl-ev.passe{opacity:.6}
.gc-pl-h{min-width:110px;color:var(--muted)}
.gc-vide{padding:30px;text-align:center;color:var(--muted)}
/* cartes flottantes (détail, création) */
.gc-pop,.gc .ag-saisie-repli[open] .ag-saisie{position:fixed;z-index:60;width:min(400px,calc(100vw - 24px));background:#fff;border-radius:14px;
  box-shadow:0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12),0 11px 15px -7px rgba(0,0,0,.2);padding:10px 18px 16px;top:140px;left:calc(50% - 200px)}
.gc-pop[hidden]{display:none}
.gc-pop-outils{display:flex;justify-content:flex-end;gap:2px;margin:0 -10px 2px 0}
.gc-pop-outils .inline{display:inline}
.gc-pop-titre{display:flex;gap:14px;align-items:flex-start}
.gc-pop-titre h2{margin:0;font-size:1.25rem;font-weight:500}
.gc-pop-titre p{margin:4px 0 0;font-size:.88rem;color:var(--ink)}
.gc-carre{flex:none;width:16px;height:16px;border-radius:4px;background:var(--c);margin-top:6px}
.gc-pop-ligne{margin:10px 0 0 30px;font-size:.86rem;color:var(--muted)}
.gc .ag-saisie h2{margin:0 0 10px;font-size:1.15rem;font-weight:500}
.gc-champ{display:block;margin:0 0 10px}
.gc-ligne-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px}
.gc-ligne-h input{width:auto;min-height:38px;padding:6px 10px}
.gc .ag-saisie-btns{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.gc .ag-saisie-repli{margin:0}
.gc-fab{position:fixed;right:20px;bottom:24px;z-index:55;width:56px;height:56px;border-radius:18px;display:none;place-items:center;list-style:none;
  background:#fff;color:var(--pri);font-size:2.2rem;font-weight:300;line-height:1;box-shadow:0 4px 12px rgba(60,20,40,.3);cursor:pointer}
.gc-fab::-webkit-details-marker{display:none}
/* téléphone : barre latérale masquée, bouton « + » flottant (comme Google Agenda), cartes en bas */
@media (max-width:820px){
  .gc{display:block}
  /* v171 L12 : filtres Intervenante / Client de l'agence visibles jusqu'à 820 px (le reste de la colonne reste masqué ; vide pour l'intervenante) */
  .gc-side{display:block;position:static;padding:0}
  .gc-side>*:not(.gc-filtres){display:none}
  .gc-filtres{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;margin:0 0 12px}
  .gc-filtres label{flex:1 1 180px;min-width:0}
  .gc-filtres select{width:100%}
  .gc-fab{display:grid;bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .gc-titre{font-size:1.15rem;margin:0}
  .gc-vues{margin-left:0;width:100%}
  .gc-vues a{flex:1;text-align:center;padding:7px 4px}
  .gc .ag-grille{grid-template-columns:44px repeat(var(--nj),minmax(calc((100vw - 76px) / 2),1fr));width:max-content;min-width:100%}
  .gc .ag-grille.gc-jour{grid-template-columns:44px minmax(0,1fr);width:auto}
  .gc .ag-grille.gc-semaine{min-width:100%}
  .gc-pop,.gc .ag-saisie-repli[open] .ag-saisie{left:8px!important;right:8px;top:auto!important;bottom:calc(76px + env(safe-area-inset-bottom,0px));width:auto;max-height:75vh;overflow:auto}
  .gc-cellule{min-height:78px}
  .gc-puce-h,.gc-puce .gc-point{display:none}
  .gc-pl-jour{grid-template-columns:1fr}
}

/* v164 : retouches — agendas alignés à gauche, en-têtes des jours fixes (la grille défile dans son cadre), bouton « + » téléphone seulement */
.gc label.gc-agenda{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;font-weight:500;color:var(--ink)}
.gc .ag-cadre{max-height:calc(100vh - 170px);overflow:auto}
.gc .ag-coin,.gc .ag-tete{position:sticky;top:0;z-index:4;background:#fff}
.gc .ag-coin{left:0;z-index:6}
.gc .ag-heures{z-index:3}
.gc .gc-fab{display:none}
@media (max-width:820px){ .gc .gc-fab{display:grid} .gc .ag-cadre{max-height:calc(100vh - 230px)} }
.gc label.gc-champ{display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:var(--muted)}
.gc label.gc-champ select{width:100%}
.gc-ligne-h input[type=date]{flex:1 1 150px}
.gc-ligne-h input[type=time]{flex:0 1 120px}
.gc-pop-outils .gc-rond,.gc-pop-outils button.gc-rond{background:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--ink)!important;width:36px!important;height:36px;min-height:0!important;padding:0!important;border:0}
.gc-pop-outils .gc-rond:hover{background:#f1e8ed!important}

/* v165 : bulle du chat de l'équipe au-dessus de l'assistant ; petits points « … écrit » */
.chat-equipe-bouton{position:relative;display:grid;place-items:center;width:56px;height:56px;min-height:0!important;padding:0!important;border-radius:50%;border:0;
  background:#fff!important;color:var(--pri)!important;box-shadow:0 6px 18px -4px rgba(100,44,68,.45),0 0 0 1px rgba(209,0,111,.12)!important;cursor:pointer}
.chat-equipe-bouton svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.chat-equipe-bouton[aria-expanded=true]{background:var(--pri-soft)!important}
.chat-equipe-nb{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ff3b30;color:#fff;border:2px solid #fff;
  font-size:.72rem;font-weight:700;line-height:16px;text-align:center}
.chat-equipe-nb[hidden]{display:none}
.chat-pastille{bottom:46px}
@media (max-width:820px){ .chat-equipe-bouton{width:58px;height:58px} .chat-widget.vue-equipe .chat-equipe-bouton,.chat-widget.vue-assistant .chat-equipe-bouton{display:none} }
a.btn.devis-pdf-fixe{bottom:164px}
@media (max-width:820px){ a.btn.devis-pdf-fixe{bottom:calc(76px + 70px + 70px + env(safe-area-inset-bottom,0px))} }
.eq-ecrit{flex:none;display:flex;align-items:center;gap:8px;padding:2px 14px 6px;font-size:.78rem;color:var(--muted)}
.eq-ecrit[hidden]{display:none}
.eq-points{display:inline-flex;align-items:center;gap:4px;padding:9px 12px;border-radius:16px;background:#f0eaee}
.eq-points span{width:7px;height:7px;border-radius:50%;background:#8e8e93;animation:imsg-points 1.2s infinite}
.eq-points span:nth-child(2){animation-delay:.15s}
.eq-points span:nth-child(3){animation-delay:.3s}
/* v165 : panneau moins haut (une bulle de plus en dessous) ; croix de fermeture sans chevaucher l'en-tête */
.chat-panneau{height:min(760px,calc(100vh - 250px))}
button.chat-fermer{top:17px}
.eq-panneau .eq-tete{padding-right:56px}
.eq-panneau .eq-agrandir{margin-left:0}
@media (max-width:820px){ .chat-panneau{height:auto} button.chat-fermer{top:calc(env(safe-area-inset-top,0px) + 17px)} }

/* v166 : chat de l'équipe — pièces jointes (captures, photos, fichiers) */
.eq-joindre{flex:none;width:40px;height:40px;min-height:0;padding:0;border-radius:50%;border:0;background:transparent;box-shadow:none;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.eq-joindre:hover{background:#f1e8ed;color:var(--pri)}
.eq-joindre svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eq-pieces{flex:none;display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px 0;border-top:1px solid var(--line);background:#fff}
.eq-pieces[hidden]{display:none}
.eq-piece{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 4px 4px 4px;border-radius:12px;background:#f3eef1;font-size:.78rem}
.eq-piece img{width:42px;height:42px;object-fit:cover;border-radius:8px}
.eq-piece-nom{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
.eq-piece-x{width:22px;height:22px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:var(--muted);cursor:pointer;font-size:1rem;line-height:1}
.eq-img-lien{display:block;margin:2px 0 4px}
.eq-img{display:block;max-width:100%;max-height:260px;border-radius:12px;background:#fff}
.eq-fichier{display:flex;align-items:center;gap:10px;margin:2px 0 4px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.85);color:var(--ink);text-decoration:none;min-width:200px}
.eq-fichier:hover{text-decoration:none;background:#fff}
.eq-fichier-ico{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:var(--pri-soft);color:var(--pri);font-size:.68rem;font-weight:800}
.eq-fichier-txt{display:flex;flex-direction:column;min-width:0;font-size:.82rem}
.eq-fichier-txt strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eq-fichier-txt span{color:var(--muted);font-size:.74rem}
.eq.depot{box-shadow:inset 0 0 0 3px var(--pri)}

/* v166 : réactions façon iMessage (badge sur le coin de la bulle, barre de choix au-dessus) */
.eq-rangee{position:relative}
.eq-rangee.a-reac{margin-top:16px}
.eq-bulle{position:relative}
.eq-reac{position:absolute;top:-14px;display:inline-flex;align-items:center;gap:1px;padding:2px 6px;border-radius:999px;background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.18);border:1.5px solid #fff;min-height:22px;z-index:2;cursor:default}
.eq-rangee.moi .eq-reac{left:-12px}
.eq-rangee.autre .eq-reac{right:-12px}
.eq-reac-i{display:inline-grid;place-items:center;width:18px;height:18px;color:#8e8e93}
.eq-reac-i.moi{color:var(--pri)}
.eq-reac-i svg{width:16px;height:16px;display:block}
.eq-reac-n{font-size:.7rem;font-weight:700;color:#555;margin-left:2px}
.eq-reagir{align-self:center;flex:none;width:26px;height:26px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:var(--muted);opacity:0;cursor:pointer;display:grid;place-items:center}
.eq-reagir svg{width:18px;height:18px}
.eq-rangee:hover .eq-reagir,.eq-reagir:focus{opacity:1}
@media (hover:none){ .eq-reagir{display:none} }
.eq-barre{position:absolute;bottom:calc(100% + 6px);z-index:6;display:flex;gap:2px;padding:6px 8px;border-radius:999px;background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.05);animation:eq-barre .15s ease-out}
.eq-rangee.moi .eq-barre{right:0}
.eq-rangee.autre .eq-barre{left:34px}
.eq-barre.dessous{bottom:auto;top:calc(100% + 6px)}
@keyframes eq-barre{from{opacity:0;transform:scale(.85) translateY(6px)}to{opacity:1;transform:none}}
.eq-tap{width:38px;height:38px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#8e8e93;display:grid;place-items:center;cursor:pointer;transition:transform .1s}
.eq-tap svg{width:24px;height:24px}
.eq-tap:hover{transform:scale(1.18);background:#f3eef1;color:var(--pri)}
.eq-tap.choisi{background:var(--pri);color:#fff}

/* v167 : zone de message du chat — pas de barre de défilement (Windows) tant que le texte tient ; bouton d'envoi lisible */
.eq-saisie textarea{overflow-y:hidden;scrollbar-width:thin;box-sizing:border-box;height:42px;min-height:42px;line-height:1.35}
.eq-envoi:disabled{opacity:1;background:#e9e1e6;color:#fff;cursor:default}
.eq-envoi{align-self:flex-end;margin-bottom:1px}
.eq-joindre{align-self:flex-end;margin-bottom:1px}

/* v168 : boutons du chat sans le dégradé blanc commun aux boutons du site (le rose d'envoi était masqué) */
.eq button{background-image:none!important}
.eq .eq-envoi{background-color:var(--pri)!important;color:#fff!important;box-shadow:0 3px 10px rgba(209,0,111,.3)!important}
.eq .eq-envoi:disabled{background-color:#e9e1e6!important;box-shadow:none!important;opacity:1}
.eq .eq-envoi:not(:disabled):hover{background-color:var(--pri-hover)!important}
.eq .eq-joindre,.eq .eq-reagir,.eq .eq-suppr,.eq .eq-piece-x,.eq .eq-tap{background-color:transparent!important;box-shadow:none!important}
.eq .eq-joindre:hover,.eq .eq-tap:hover{background-color:#f1e8ed!important}
.eq .eq-tap.choisi{background-color:var(--pri)!important;color:#fff}

/* v169 : chat — menu clic droit / appui long (comme iPhone), réponses citées, messages vocaux */
.eq-menu{position:absolute;top:calc(100% + 6px);z-index:7;min-width:210px;padding:6px 0;border-radius:14px;background:rgba(255,255,255,.98);
  box-shadow:0 12px 32px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.06);animation:eq-barre .15s ease-out}
.eq-rangee.moi .eq-menu{right:0}
.eq-rangee.autre .eq-menu{left:34px}
.eq-menu.dessus{top:auto;bottom:calc(100% + 58px)}
.eq .eq-menu-i{display:flex;width:100%;align-items:center;justify-content:space-between;gap:18px;padding:10px 16px;min-height:0;border:0;border-radius:0;
  background:transparent!important;box-shadow:none!important;color:var(--ink);font-weight:500;font-size:.92rem;cursor:pointer}
.eq .eq-menu-i+.eq-menu-i{border-top:1px solid #efe8ec}
.eq .eq-menu-i:hover{background:#f6eff3!important}
.eq .eq-menu-i.danger{color:#d70015}
.eq-menu-ico svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eq-rangee.focus .eq-bulle{box-shadow:0 0 0 3px rgba(209,0,111,.18)}
.eq-rangee.eclaire .eq-bulle{animation:eq-eclaire 1.4s ease-out}
@keyframes eq-eclaire{0%{box-shadow:0 0 0 4px rgba(209,0,111,.45)}100%{box-shadow:0 0 0 0 rgba(209,0,111,0)}}
.eq-cite{display:flex;flex-direction:column;gap:1px;margin:0 0 5px;padding:5px 9px;border-radius:10px;border-left:3px solid currentColor;
  background:rgba(0,0,0,.06);font-size:.8rem;line-height:1.3;cursor:pointer;opacity:.92;white-space:normal}
.eq-rangee.moi .eq-cite{background:rgba(255,255,255,.2)}
.eq-cite strong{font-size:.74rem}
.eq-cite span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.eq-reponse{flex:none;display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid var(--line);background:#fbf7f9}
.eq-reponse[hidden]{display:none}
.eq-reponse-txt{flex:1;min-width:0;display:flex;flex-direction:column;border-left:3px solid var(--pri);padding-left:8px;font-size:.8rem}
.eq-reponse-txt strong{color:var(--pri);font-size:.76rem}
.eq-reponse-txt span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.eq .eq-reponse-x{width:28px;height:28px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent!important;box-shadow:none!important;color:var(--muted);font-size:1.2rem;line-height:1;cursor:pointer}
.eq-bulle.vocal{padding:6px 8px 6px}
.eq-audio{display:block;width:240px;max-width:100%;height:40px;margin:2px 0 2px}
.eq .eq-micro{flex:none;width:40px;height:40px;min-height:0;padding:0;border-radius:50%;border:0;background:transparent!important;box-shadow:none!important;color:var(--muted);display:grid;place-items:center;cursor:pointer;align-self:flex-end;margin-bottom:1px}
.eq .eq-micro:hover{background:#f1e8ed!important;color:var(--pri)}
.eq-micro svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eq-micro[hidden]{display:none!important}
.eq-vocal{flex:none;display:flex;align-items:center;gap:10px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#fff}
.eq-vocal[hidden]{display:none}
.eq-saisie[hidden]{display:none}
.eq .eq-vocal-annuler,.eq .eq-vocal-stop{flex:none;width:40px;height:40px;min-height:0;padding:0;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;background:transparent!important;box-shadow:none!important}
.eq .eq-vocal-annuler{color:#d70015}
.eq .eq-vocal-stop{color:#fff;background:#d70015!important}
.eq-vocal-annuler svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eq-vocal-stop svg{width:20px;height:20px}
.eq-vocal-en-cours{flex:1;display:flex;align-items:center;gap:10px;padding:8px 14px;border-radius:20px;background:#fff1f1;color:#d70015;font-weight:700;font-variant-numeric:tabular-nums}
.eq-vocal-en-cours[hidden]{display:none}
.eq-vocal-point{width:10px;height:10px;border-radius:50%;background:#d70015;animation:urg-clig 1s steps(2,start) infinite}
.eq-vocal-onde{display:inline-flex;align-items:center;gap:3px;height:18px}
.eq-vocal-onde i{width:3px;height:6px;border-radius:2px;background:#d70015;animation:eq-onde .9s ease-in-out infinite}
.eq-vocal-onde i:nth-child(2n){animation-delay:.15s}.eq-vocal-onde i:nth-child(3n){animation-delay:.3s}.eq-vocal-onde i:nth-child(5n){animation-delay:.45s}
@keyframes eq-onde{0%,100%{height:5px}50%{height:17px}}
.eq-vocal audio{flex:1;min-width:0;height:40px}
.eq-vocal-envoyer[hidden],.eq-vocal-stop[hidden]{display:none!important}

/* v170 : main courante — réponses d'un formulaire en petites cases (question en petit, réponse dessous) */
.mc-rep{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px 18px;margin:8px 0 6px}
.mc-rep>div{min-width:0}
.mc-rep dt{font-size:.78rem;color:var(--muted);margin:0;line-height:1.3}
.mc-rep dd{margin:1px 0 0;font-weight:600;overflow-wrap:anywhere;line-height:1.35}
.mc-rep-plus{margin:0 0 6px}
.mc-rep-plus>summary{cursor:pointer;font-size:.85rem;color:var(--pri);font-weight:600;list-style:none}
.mc-rep-plus>summary::-webkit-details-marker{display:none}
.mc-rep-plus>summary::before{content:'+ '}
.mc-rep-plus[open]>summary::before{content:'– '}
.mc-plus{display:flex;justify-content:center;margin:14px 0}

/* v170 : message en cours d'envoi — affiché tout de suite, un peu pâle, avec « Envoi… » */
.eq-attente .eq-bulle{opacity:.6}
.eq-attente{flex-wrap:wrap}
.eq-attente-etat{flex-basis:100%;text-align:right;font-size:.72rem;color:var(--muted);margin-top:2px}
.eq-attente-pj{font-style:italic}

/* v170 : agenda — prestation en cours d'enregistrement */
.gc-fantome.en-attente{opacity:.7;animation:ag-attente 1s ease-in-out infinite alternate}
@keyframes ag-attente{from{opacity:.45}to{opacity:.8}}
#prestations .item.en-attente{opacity:.65;border-style:dashed}

/* v171 audit — lot L1 : onglets du haut — un lien d'onglet ne rétrécit plus (overflow:hidden de v62 le laissait s'écraser
   jusqu'à « Cli », « Sa »… entre 821 et 1279 px) : le dépassement se voit et app.js passe au palier compact, mini ou deux lignes */
.tabs a{flex-shrink:0}

/* v171 audit — lot L2 : alerte URGENT sur un écran bas (téléphone en paysage) — titre plus petit et boutons « Voir la demande »
   et « J'ai vu » toujours visibles en bas de la boîte (c'est le formulaire qui colle : les boutons seuls ne peuvent pas sortir de
   leur formulaire, qui a leur hauteur ; -12px compense le rembourrage de la boîte, qui est le cadre qui défile). Portrait et
   ordinateur inchangés. */
@media (max-height:500px){
  .urgence-titre{font-size:2rem;margin-bottom:4px}
  .urgence-boite{padding:12px 18px}
  .urgence-boite > form{position:sticky;bottom:-12px;background:#fff;padding:8px 0;z-index:1}
}

/* v171 audit — lot L3 : Logiciel — documents d'une fiche sur téléphone (le lien prend la ligne, les boutons passent dessous : le nom
   ne s'affiche plus lettre par lettre), en-tête « Exempté » entier, carte « Devis : articles » en pleine largeur (toutes les colonnes)
   avec des désignations lisibles, textes collés dans Forms (réponses, signalements). */
@media (max-width:640px){ .doc-row{flex-wrap:wrap} .doc-open{flex:1 1 100%} }
.rh-docs .rh-case{width:5.4em}
.grid2>#devis{grid-column:1/-1}
table.devis-presta input[name=designation]{min-width:240px}
/* grand écran : la désignation prend la place libre de la ligne ; sous 1280 px le tableau défile de toute façon : champ assez large
   pour lire la désignation entière */
table.devis-presta td:nth-child(2){width:100%}
@media (max-width:1279px){ table.devis-presta input[name=designation]{min-width:29em} }
table.fo-table .cl-name,table.fo-sig-table .cl-name{display:block;color:var(--muted);font-size:.82rem;font-weight:400}

/* v171 audit — lot L4 : Agenda — vue Mois : la puce redevient un bloc pour que les noms trop longs finissent par « … » (le texte
   d'une boîte flex ne prend pas de points de suspension) ; l'heure et le point restent masqués sur téléphone. Téléphone et tablette
   (≤ 820 px) : la carte de détail et « Nouvelle prestation » passent au-dessus des bulles Équipe et Assistant (70), sous les messages
   (75) ; la bulle ouverte (panneau plein écran) repasse au-dessus de la carte. « Nouvelle prestation » : la date prend sa ligne et
   « début – fin » reste ensemble (seulement là où les trois champs ne tiennent pas sur une ligne). Prestations passées : texte foncé,
   seulement là où leur fond est pâli (agenda de l'intervenante, navigateur qui connaît color-mix) ; la vue agence garde son fond plein
   et son texte blanc. */
.gc-puce{display:block}
.gc-puce .gc-point{display:inline-block;vertical-align:middle;margin-right:5px}
@media (max-width:820px){
  .gc-puce .gc-point{display:none}
  .gc-pop,.gc .ag-saisie-repli[open] .ag-saisie{z-index:72}
  .chat-widget.vue-assistant,.chat-widget.vue-equipe{z-index:73}
}
@media (max-width:499px),(min-width:821px){ .gc-ligne-h input[type=date]{flex:1 1 100%} }
@supports (background:color-mix(in srgb,red 50%,#fff)){ .gc[data-saisie] .ag-ev.passe{color:#4a1430} }

/* v171 audit — lot L5 : pied de page — liens légaux : zone tactile de plus de 24 px de haut et texte plus foncé (6,4:1 sur le reflet rose
   au lieu de 4,4:1). Téléphone et tablette (≤ 820 px, règles plus haut dans le fichier, bloc de la barre du bas) : la place sous le pied de
   page est un rembourrage et non plus une marge sortie du body (bande pâle sous le reflet, liens sous la barre sur les pages courtes) ;
   pages sans barre du bas : plus de marge vide ; liens à gauche des bulles Équipe et Assistant et du bouton « + ». Page Cookies : les noms
   des cookies ne sont plus coupés au milieu (le tableau défile dans son cadre si besoin). La marge négative rend au texte sa place
   d'avant : la zone tactile s'agrandit sans faire passer les liens sur deux lignes (iPhone SE) ni déplacer le pied de page ; 12 px entre
   deux lignes de liens pour que leurs zones ne se chevauchent pas. */
.site-foot a{display:inline-block;padding:6px 4px;margin:-6px -4px;color:#55555a}
.site-foot{row-gap:12px}
.legal-text td code{word-break:normal;overflow-wrap:normal;white-space:nowrap}
/* petits téléphones : cases un peu moins larges, pour que le tableau tienne sans défiler à 360 px (à 320 px il défile dans son cadre) */
@media (max-width:400px){ .legal-text th,.legal-text td{padding-left:6px;padding-right:6px} }

/* v171 audit — lot L6 : espace client — « Mes contestations » et « Mes heures ». La colonne de la carte ne s'élargit plus pour un nom de
   pièce jointe ou un texte sans espace (minmax(0,1fr) au lieu de la largeur du plus long mot) et les liens longs passent à la ligne :
   la page ne dépasse plus l'écran. Les pastilles d'état reprennent le passage à la ligne prévu plus haut (« white-space:normal »,
   annulé par la règle v53 des pastilles). La durée (« 4 h 30 ») n'est plus coupée en deux en fin de ligne. « Validée par vous » :
   carte blanche comme « Validée automatiquement », seul le trait vert de gauche reste. Réponse de l'agence : ses retours à la ligne
   et ses paragraphes sont gardés (seulement dans le texte de la réponse, pas autour). */
.line-main{grid-template-columns:minmax(0,1fr)}
.contest-card a{overflow-wrap:anywhere}
.line-card .badge,.contest-card .badge,.deadline-box .badge{white-space:normal}
.line-what strong{white-space:nowrap}
.line-card.st-validee{background-color:var(--card);color:var(--ink)}
.contest-reponse-txt{white-space:pre-line}

/* v171 audit — lot L7 : saisie sur téléphone et iPad.
   Safari (iPhone et iPad) zoome sur un champ dont le texte fait moins de 16 px : sur écran tactile, tous les champs passent à 16 px,
   iPad au-dessus de 820 px compris (la règle « textarea » de la partie v71 ne reprend plus la taille ni la graisse du label).
   Boutons radio à 20 px comme les cases à cocher, sans le rembourrage ni la hauteur minimale des champs.
   Éditeur Forms, « Ma journée » et « Créer un compte » tiennent dans les écrans étroits. */
@media (pointer:coarse){ input,select,textarea{font-size:16px} }
@media (max-width:820px),(pointer:coarse){ .rh-autre,.dipl-annee{font-size:16px} }
input[type=radio]{width:20px;height:20px;min-height:0;padding:0;margin:0;flex:none}
.dv-choix input[type=radio]{width:1px;height:1px}  /* devis : bouton radio invisible sous la carte de choix, inchangé */
.eq-saisie textarea{font-weight:inherit}  /* bulle Équipe : zone de saisie inchangée */
.fo-ed-type-champ{min-width:0}
.fo-ed-type-champ select{min-width:0;max-width:100%}
@media (max-width:640px){
  .fo-ed-types-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  button.fo-ed-type{min-width:0}
  /* Ma journée : la date reste lisible (« Aujourd'hui » passe à la ligne si besoin) ; « Type de prestation » sur toute la ligne, Arrivée et Départ côte à côte */
  .daynav form.inline{min-width:146px}
  .rows .passage-row>label:first-of-type{flex:1 1 100%}
}
@media (max-width:400px){
  .fo-ed-types-grille{grid-template-columns:1fr}
  .fo-ed-type-champ{flex-basis:100%}
  form.create-form>label{flex:1 1 100%}
}

/* v171 audit — lot L8 : relevés et synthèses. Synthèse client sur tablette et ordinateur : les en-têtes passent à la ligne entre
   les mots pour que les 11 colonnes tiennent dans le cadre (sur iPad mini, le tableau peut encore défiler dans son cadre).
   Colonne d'actions figée à droite : quand la case est vide (rien à modifier), elle ne cache plus la colonne voisine. */
@media (min-width:641px){ table.synth-client th{white-space:normal;vertical-align:bottom;letter-spacing:.02em} }
th.act:empty,td.act:empty{background:transparent;box-shadow:none;padding:0}

/* v171 audit — lot L10 : bulles Équipe et Assistant plus discrètes, bouton « Générer le devis » et impression.
   Ordinateur de moins de 1500 px de large ou de moins de 900 px de haut : la bulle Assistant devient ronde (libellé dans aria-label) ;
   les écrans 1920 × 1080 ne changent pas. Téléphone de 430 px ou moins : bulles de 48 px (colonne d'environ 104 px au lieu de 134),
   pastilles recalées sur leur bulle. Téléphone et tablette : « Générer le devis » devient une icône ronde au-dessus des bulles
   (texte gardé pour les lecteurs d'écran). Impression : ni barres, ni bulles, ni boutons flottants, ni pied de page. */
@media (min-width:821px) and (max-width:1500px),(min-width:821px) and (max-height:900px){
  .chat-bouton{padding:14px!important}
  .chat-bouton span{display:none}
}
@media (max-width:430px){
  .chat-widget{gap:8px}
  .chat-equipe-bouton{width:48px;height:48px}
  .chat-bouton{padding:12px!important}
  .chat-bouton svg{width:24px;height:24px}
  .chat-pastille{bottom:34px}
  a.btn.devis-pdf-fixe{bottom:calc(76px + 104px + 12px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:820px){
  a.btn.devis-pdf-fixe{width:48px;height:48px;padding:0;justify-content:center}
  a.btn.devis-pdf-fixe span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media print{
  .tabbar,.chat-widget,.notif-toasts,.toasts,.urgence-voile,.recherche-loupe,.module-switch,a.btn.devis-pdf-fixe,.gc-fab,.site-foot{display:none!important}
  .top{position:static;box-shadow:none}
  main,body.has-chat main,.tabbar ~ main{padding-bottom:0}
  .scroll,.table-wrap{overflow:visible}
  .scroll table{width:100%;font-size:.8rem}
}

/* v171 audit — lot L11 : téléphones en paysage (écran de 500 px de haut ou moins). La grille de l'agenda défile avec la page au lieu
   d'être enfermée dans un cadre de 80 à 210 px ; les bulles Équipe et Assistant se mettent côte à côte (environ 64 px de haut au lieu
   de 134) ; le panneau Assistant ou Équipe occupe tout l'écran (bouton Fermer et champ Message visibles) ; l'en-tête défile avec la
   page (la barre d'onglets du bas reste). Aucune tablette ni aucun ordinateur n'a moins de 500 px de haut ; le portrait ne change pas. */
@media (max-height:500px){
  .gc .ag-cadre{max-height:none}
  .chat-widget{flex-direction:row;align-items:center}
  .chat-panneau{position:fixed;top:0;right:0;bottom:0;left:0;width:auto;height:auto;min-height:0;border-radius:0;z-index:80}
  a.btn.devis-pdf-fixe{bottom:88px} /* « Générer le devis » juste au-dessus de la rangée de bulles */
}
@media (max-height:500px) and (max-width:820px){ a.btn.devis-pdf-fixe{bottom:calc(76px + 64px + 12px + env(safe-area-inset-bottom,0px))} }
@media (max-height:500px) and (orientation:landscape){ .top{position:static} }
/* v171 audit — lot L12 : étiquettes des fiches coupées entre les mots seulement ; agenda entre 821 et 1100 px avec la colonne latérale au-dessus de la grille */
/* césure française (INTERVE-NANTES) ; break-word ne sert qu'en dernier recours, si le navigateur n'a pas de dictionnaire, pour que l'étiquette ne passe jamais sur la valeur */
@media (max-width:640px),(max-width:820px) and (min-height:600px){ table.m-cards td::before{overflow-wrap:break-word;word-break:normal;-webkit-hyphens:auto;hyphens:auto} }
@media (max-width:374px){ table.m-cards td::before{letter-spacing:0} }
@media (min-width:821px) and (max-width:1100px){
  .gc{display:block}
  .gc-side{position:static;flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:16px 28px;margin-bottom:14px}
  .gc-side .gc-mini{flex:0 0 256px}
  .gc-side .gc-astuce{display:none}
}

/* v171 audit — réparation (régression L7) : éditeur Forms, grille des types en 2 colonnes (≤ 640 px). La règle générale des boutons
   (ligne 894, rembourrage 18 px) laissait 84 px au libellé dans une colonne de 161 px (Firefox Android 412 px) : « d'information »
   touchait le bord. Rembourrage et écart réduits dans cette grille seulement ; la grille et les autres boutons ne changent pas. */
@media (max-width:640px){
  .fo-ed-types .fo-ed-types-grille button.fo-ed-type:not(.small):not(.chip){padding-left:10px;padding-right:10px;gap:7px}
}

/* v172 : téléphone — la semaine tient dans l'écran (7 jours visibles, comme Google Agenda) ; on change de semaine en glissant le doigt */
@media (max-width:820px){
  .gc .ag-grille.gc-semaine{grid-template-columns:34px repeat(7,minmax(0,1fr));width:auto;min-width:0}
  .gc .ag-grille.gc-semaine .ag-heures span{font-size:.6rem;padding-right:3px}
  .gc .ag-grille.gc-semaine .gc-fuseau{display:none}
  .gc .ag-grille.gc-semaine .ag-tete{padding:6px 0 4px;min-width:0}
  .gc .ag-grille.gc-semaine .ag-jour{font-size:.62rem;letter-spacing:0}
  .gc .ag-grille.gc-semaine .ag-num{width:26px;height:26px;font-size:.95rem}
  .gc .ag-grille.gc-semaine .ag-total,.gc .ag-grille.gc-semaine .ag-lien-jour{display:none}
  .gc .ag-grille.gc-semaine .ag-ev{padding:1px 2px 1px 3px;font-size:.6rem;line-height:1.2;border-radius:4px}
  .gc .ag-grille.gc-semaine .ag-ev-t{white-space:normal;overflow-wrap:normal;word-break:normal;text-overflow:clip}
  .gc .ag-grille.gc-semaine .ag-ev-h{display:none}
  .gc .ag-grille.gc-semaine .ag-poignee{display:none}
  .gc-glisse{transition:transform .18s ease}
}

/* v173 : choisir son créneau comme sur Google Agenda. Le bloc a deux poignées rondes (début en haut à gauche, fin en bas à droite),
   on le fait glisser pour le déplacer ; au téléphone une barre en bas résume le créneau avant d'ouvrir le formulaire. */
.gc-fantome.reglable{pointer-events:auto;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.ag.gc-ajuste,.ag.gc-ajuste *{cursor:grabbing!important}
.gc-fantome .gc-pg{display:none;position:absolute;z-index:1;width:13px;height:13px;border-radius:50%;background:#fff;border:2px solid var(--pri);box-sizing:border-box;touch-action:none}
.gc-fantome.reglable .gc-pg{display:block}
.gc-fantome.en-attente .gc-pg{display:none}
.gc-fantome .gc-pg::before{content:"";position:absolute;left:-15px;top:-15px;right:-15px;bottom:-15px}
.gc-fantome .gc-pg-haut{top:-7px;left:10px;cursor:ns-resize}
.gc-fantome .gc-pg-bas{bottom:-7px;right:10px;cursor:ns-resize}
.ag.gc-ajuste .ag-saisie-repli[open] .ag-saisie,.ag.gc-ajuste .ag-panneau{opacity:.12;pointer-events:none;transition:opacity .12s}
.gc-choix{position:fixed;z-index:61;left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));bottom:calc(76px + env(safe-area-inset-bottom,0px));
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:#fff;border-radius:14px;padding:10px 12px;box-shadow:0 10px 30px rgba(43,31,38,.22)}
.gc-choix[hidden]{display:none}
.gc-choix-txt{flex:1 1 100%;font-weight:600;font-size:.98rem;color:var(--ink);font-variant-numeric:tabular-nums}
.gc-choix-aide{flex:1 1 100%;min-width:0;font-size:.78rem;line-height:1.35;color:var(--muted)}
.gc-choix button{min-height:38px;padding-top:6px;padding-bottom:6px}
.gc-choix button.ghost{margin-left:auto}
.ag.gc-choix-ouvert .gc-fab{visibility:hidden}
@media (max-width:820px){ .gc .ag-grille.gc-semaine .gc-fantome{font-size:.6rem;padding:1px 3px;right:2px} }
@media (min-width:821px){ .gc-choix{left:auto;right:24px;bottom:24px;width:min(420px,calc(100vw - 48px))} }
@media (max-height:640px){ .gc-choix-aide{display:none} .gc-choix{padding:8px 12px} }
@media (prefers-reduced-motion:reduce){ .ag.gc-ajuste .ag-saisie-repli[open] .ag-saisie,.ag.gc-ajuste .ag-panneau{transition:none} }

/* v174 : trajets avec le bénéficiaire à bord dans l'agenda (carte « Nouvelle prestation » et fiche d'une prestation).
   Même saisie que la page Journée (adresses proposées, km calculés), rangée en cases pour tenir dans la carte. */
.ag-trajets{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:2px 0 12px}
.ag-trajets .rows{display:flex;flex-direction:column;gap:10px;width:100%}
.ag .trajet-row.ag-trajet{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px 10px;align-items:end;width:100%;
  margin:0;padding:10px 12px;border-radius:12px;background:var(--pri-soft);box-shadow:none}
.ag .ag-trajet .ag-trajet-titre{grid-column:1/-1;margin:0;font-weight:650;font-size:.86rem;color:var(--plum)}
.ag .ag-trajet .ag-trajet-adr{grid-column:1/-1}
.ag .ag-trajet label{margin:0;min-width:0}
.ag .ag-trajet input:not([type=hidden]){width:100%;min-width:0}
.ag .ag-trajet .km-status{grid-column:1/-1;font-size:.78rem;line-height:1.35}
.ag .ag-trajet .km-status:empty{display:none}
.ag-trajets-fiche{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.ag-trajets-fiche .ag-trajets-titre{color:var(--ink);font-weight:650;margin-left:0}
.ag-trajets-fiche .gc-pop-ligne{margin-left:0;overflow-wrap:anywhere}
.ag-trajet-ajout{margin-top:8px}
.ag-trajet-ajout>summary{list-style:none;display:inline-flex;cursor:pointer}
.ag-trajet-ajout>summary::-webkit-details-marker{display:none}
.ag-trajet-ajout[open]>summary{display:none}
.ag-trajet-form{display:flex;flex-direction:column;gap:10px;margin-top:4px}

/* v175 : Débit / Crédit (direction) */
.dc-mois{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dc-mois .grow{flex:1 1 auto}
.dc-choix-mois label{flex-direction:row;align-items:center;gap:8px}
.dc-cadre{padding:0;max-height:75vh;overflow:auto}
.dc-table{font-size:.82rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.dc-table th,.dc-table td{padding:6px 8px}
.dc-table thead th{position:sticky;top:0;z-index:2}
.dc-table tfoot th{position:sticky;bottom:0;background:#fbf4f8;z-index:2}
.dc-table .num{text-align:right}
.dc-table .dc-nom{white-space:normal;min-width:200px;max-width:280px}
.dc-table .dc-negocie{font-weight:700}
.dc-table .dc-prlv{font-size:.76rem}
.dc-credit{color:var(--ok);font-weight:700}
.dc-debit{color:#c62828;font-weight:700}
.dc-table td.dc-credit{background:var(--ok-bg)}
.dc-table td.dc-debit{background:var(--bad-bg)}
.dc-chiffres{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:8px 0 12px}
.dc-chiffres>div{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--pri-soft)}
.dc-chiffres strong{font-size:1.1rem}
.dc-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px 14px;margin-bottom:12px}
.dc-grille .dc-large{grid-column:span 2}
.dc-cases{display:flex;flex-wrap:wrap;gap:8px 22px;margin:4px 0 12px}
.dc-ligne{display:grid;grid-template-columns:minmax(0,2fr) repeat(5,minmax(0,1fr)) auto;gap:8px;align-items:end;margin-bottom:8px}
.dc-court{width:6.5em}
.dc-tarifs td{white-space:nowrap}
@media (max-width:820px){
  .dc-grille .dc-large{grid-column:auto}
  .dc-ligne{grid-template-columns:1fr 1fr 1fr;padding:10px;border-radius:12px;background:var(--pri-soft)}
  .dc-ligne label:first-child{grid-column:1/-1}
}

/* v176 : Débit / Crédit façon Excel : quadrillage, une ligne sur deux colorée, cases modifiables */
.dc-table{border-collapse:collapse}
.dc-table th,.dc-table td{border:1px solid rgba(100,44,68,.16)}
.dc-table tbody tr:nth-child(even) td{background:#fbf1f6}
.dc-table tbody tr:hover td{background:#f6e3ed}
.dc-table td.dc-credit{background:var(--ok-bg)!important}
.dc-table td.dc-debit{background:var(--bad-bg)!important}
.dc-table .dc-c{text-align:center}
.dc-table .dc-coche{text-align:center;width:34px}
.dc-table .dc-sal{min-width:150px;white-space:normal}
.dc-lsal-lu{display:flex;flex-wrap:wrap;gap:2px 6px;align-items:baseline;line-height:1.35}
.dc-sal-nom{font-weight:600}
.dc-auto{font-style:italic;color:#8a6d7b}
.dc-outils{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 10px}
.dc-outils .grow{flex:1 1 auto}
.dc-edition td{padding:3px 4px}
.dc-edition .dc-in:not([type=checkbox]){padding:4px 6px;border-radius:6px;font-size:.8rem;min-height:0;height:28px;box-shadow:none;background:#fff}
.dc-edition select.dc-in{padding-right:22px;background-position:right 5px center}
.dc-edition input[type=date].dc-in{width:8.4em;margin-top:2px}
.dc-edition .dc-in.num{text-align:right}
.dc-w3{width:3.6em}.dc-w4{width:4.6em}.dc-w5{width:5.4em}
.dc-com{width:100%;margin-top:3px}
.dc-paire{display:inline-flex;gap:3px}
.dc-lsal{display:flex;gap:3px;align-items:center;margin-bottom:3px}
.dc-nomsal{width:9.5em}
.dc-x{border:0;background:none;color:var(--bad);font-size:.9rem;padding:2px 4px;cursor:pointer;border-radius:6px}
.dc-x:hover{background:var(--bad-bg)}
.dc-plus{height:26px;padding:0 10px;font-size:.76rem}
.dc-in.dc-envoi{border-color:#c9a2b6}
.dc-in.dc-ok{border-color:var(--ok);box-shadow:0 0 0 3px rgba(29,122,54,.15)}
.dc-in.dc-err{border-color:var(--bad);background:var(--bad-bg)}
.dc-suggest{position:fixed;z-index:60;margin:0;padding:4px;list-style:none;background:#fff;border:1px solid var(--line);border-radius:10px;
  box-shadow:0 8px 24px rgba(100,44,68,.18);max-height:260px;overflow:auto;font-size:.85rem}
.dc-suggest li{padding:6px 10px;border-radius:7px;cursor:pointer}
.dc-suggest li:hover,.dc-suggest li.actif{background:var(--pri-soft);color:var(--plum)}
.dc-table th.dc-triable{cursor:pointer;user-select:none}
.dc-table th.dc-triable:hover{color:var(--pri)}
.dc-table th[aria-sort]::after{content:"\25B2";font-size:.6rem;margin-left:4px;color:var(--pri)}
.dc-table th[aria-sort=descending]::after{content:"\25BC"}
/* v178 : mois affiché bien visible, au centre */
.dc-mois .dc-choix-mois{display:flex;align-items:center;gap:10px}
.dc-mois-nom{font-family:Fredoka,Lexend,sans-serif;font-size:1.35rem;color:var(--plum);min-width:8.5em;text-align:center}
.dc-mois-choix input{width:2.6em;padding:6px;color:transparent;cursor:pointer}
.dc-mois-choix input::-webkit-datetime-edit{display:none}
.dc-fleche{font-weight:600}
.dc-ferme p{margin:0 0 10px}
/* v178 : ✕ discret à côté de chaque salariée ; choix du mois réduit à l'icône du calendrier */
.dc-table button.dc-x{min-height:0;height:22px;width:22px;padding:0;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--bad);font-size:.8rem;line-height:22px}
.dc-table button.dc-x:hover{background:var(--bad-bg)}
.dc-table button.dc-x::after{display:none}
.dc-mois .dc-mois-choix input{width:2.8em!important;min-width:0}

/* v180 : Débit / Crédit au style du site (comme l'accueil et les Relevés) : titre avec le mois, tuiles de chiffres,
   tableau façon Excel mais compact (filets fins, une ligne sur deux rosée), nom du client figé à gauche, D/C en pastille */
.dc-filtres{align-items:flex-end}
.dc-nav-mois{display:flex;align-items:flex-end;gap:8px}
.dc-nav-mois label{margin:0}
.dc-filtres .btn.dc-rond{width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;font-size:1.3rem;line-height:1;flex:none}
.dc-synthese .tb-per-tete{margin-bottom:12px}
.dc-synthese .tb-per-tete h2{margin:0}
.dc-synthese .tb-per-tete .grow{flex:1 1 auto}
.dc-synthese .tb-chiffres{grid-template-columns:repeat(5,minmax(0,1fr));margin:0}
.tb-nb.dc-credit{color:var(--ok)}
.tb-nb.dc-debit{color:var(--bad)}
.dc-ferme h2{margin-top:0}
.dc-form.card{padding:0;overflow:hidden}
.dc-form .dc-outils{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 16px;margin:0;border-bottom:1px solid var(--line)}
.dc-form .dc-legende{padding:10px 16px 14px;margin:0;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.dc-form .dc-cadre{max-height:calc(100vh - 150px);overflow:auto;padding:0;border-radius:0;box-shadow:none;background:transparent}
.dc-table{width:100%;font-size:.8rem;border-collapse:separate;border-spacing:0}
.dc-table th,.dc-table td{border:0;border-bottom:1px solid var(--line);border-right:1px solid rgba(100,44,68,.06);padding:7px 9px;vertical-align:top}
.dc-table thead th{background:linear-gradient(180deg,#fff,#fbf4f8);font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:#8a6a78;
  font-weight:700;white-space:nowrap;border-bottom:1px solid rgba(100,44,68,.14);vertical-align:bottom}
.dc-table tbody td{background:var(--card)}
.dc-table tbody tr:nth-child(even) td{background:#fdf7fa}
.dc-table tbody tr:hover td{background:#fbeef5}
.dc-table tfoot th{background:#fbf4f8;border-top:1px solid rgba(100,44,68,.14);font-size:.8rem;color:var(--plum)}
.dc-table td.dc-nom,.dc-table th.dc-nom{position:sticky;left:0;z-index:1;min-width:210px;max-width:260px;white-space:normal;
  box-shadow:inset -1px 0 0 rgba(100,44,68,.12)}
.dc-table thead th.dc-nom,.dc-table tfoot th.dc-nom{z-index:3}
.dc-table .dc-coche{position:sticky;left:0;z-index:1;width:34px;min-width:34px}
.dc-table thead .dc-coche{z-index:3}
.dc-edition td.dc-nom,.dc-edition th.dc-nom{left:34px}
.dc-table .dc-nom a{font-weight:650;color:var(--plum)}
.dc-table .dc-nom a:hover{color:var(--pri)}
.dc-com-lu{display:block;color:var(--muted);font-size:.74rem;line-height:1.3;margin-top:2px}
.dc-code{font-family:"Fredoka","Lexend",sans-serif;font-weight:600;color:var(--plum);white-space:nowrap}
.dc-sect{color:var(--muted);white-space:nowrap}
.dc-presta{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--pri-soft);color:var(--plum);font-weight:650;font-size:.74rem;white-space:nowrap}
.dc-oui{display:inline-block;padding:1px 7px;border-radius:999px;background:var(--ok-bg);color:var(--ok);font-weight:700;font-size:.7rem}
.dc-fort{font-weight:700}
.dc-pastille{display:inline-block;min-width:2.6em;padding:2px 8px;border-radius:999px;text-align:center;font-weight:700;background:#f4eef1;color:var(--muted)}
.dc-pastille.dc-credit{background:var(--ok-bg);color:var(--ok)}
.dc-pastille.dc-debit{background:var(--bad-bg);color:var(--bad)}
.dc-table .dc-sal{min-width:170px;max-width:320px;white-space:normal}
.dc-lsal-lu{display:inline-flex;align-items:center;gap:4px;margin:0 4px 4px 0;padding:2px 3px 2px 9px;border-radius:999px;background:#f6eef2;
  font-size:.74rem;line-height:1.3;white-space:nowrap;box-shadow:inset 0 0 0 1px var(--line)}
.dc-lsal-lu.dc-logiciel{padding-right:9px;background:#eef3fa}
.dc-sal-nom{font-weight:650;color:var(--plum)}
.dc-sal-h{color:var(--muted)}
.dc-sal-src{font-size:.64rem;color:#1f4f96;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.dc-table button.dc-x.tag-x{min-height:20px;height:20px;width:20px;font-size:.68rem;color:var(--muted);background:transparent;box-shadow:none}
.dc-table button.dc-x.tag-x:hover{background:var(--bad-bg);color:var(--bad)}
.dc-table .dc-lsal button.dc-x.tag-x{height:26px;width:26px;min-height:26px}
.dc-prlv{white-space:nowrap;font-size:.74rem}
.dc-edition td{padding:4px 5px}
@media (max-width:1100px){ .dc-synthese .tb-chiffres{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:820px){
  .dc-synthese .tb-chiffres{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dc-form .dc-cadre{max-height:none}
  .dc-table td.dc-nom,.dc-table th.dc-nom{min-width:140px;max-width:160px}
  .dc-filtres>label{flex:1 1 40%;min-width:0}
}

/* v180 : en-tête de l'agence : le palier de place retenu (tete.js) est remis avant le premier affichage */
.dc-table .dc-sal{min-width:250px}
.dc-edition .dc-sal{min-width:400px}

/* v182 : Débit / Crédit d'un seul coup d'œil : la page prend toute la largeur de l'écran, et le tableau est resserré
   (compte et secteur sous le nom, contrat sous la prestation, AI et Prlv dans une colonne, un prélèvement par ligne) */
body.wide.dc-pleine main{max-width:none;padding-left:16px;padding-right:16px}
.dc-table th,.dc-table td{padding:6px 7px}
.dc-table thead th{font-size:.64rem;letter-spacing:.04em}
.dc-table{font-size:.78rem}
.dc-table td.dc-nom,.dc-table th.dc-nom{min-width:190px;max-width:230px}
.dc-info{display:block;margin-top:2px;color:var(--muted);font-size:.72rem;white-space:nowrap}
.dc-info .dc-code{font-size:.74rem}
.dc-pc{white-space:nowrap}
.dc-contrat{display:block;margin-top:3px;color:var(--muted);font-size:.72rem}
.dc-aiprlv{white-space:nowrap}
.dc-aiprlv .dc-oui{display:block;margin:0 auto 2px;width:max-content}
.dc-oui-prlv{background:#eef3fa;color:#1f4f96}
.dc-oui-org{background:#f1e9fb;color:#6a2fb0}
.dc-mini{display:flex;align-items:center;gap:4px;font-size:.72rem;color:var(--muted);margin:0 0 3px;white-space:nowrap}
.dc-table .dc-sal{min-width:200px;max-width:260px}
.dc-edition .dc-sal{min-width:380px}
.dc-prlv{white-space:nowrap;min-width:0}
.dc-prlv [data-k=prlv]{white-space:pre-line;display:block;line-height:1.45}
.dc-edition .dc-prlv .dc-in{display:block;margin:0 0 3px}
.dc-edition .dc-pc .dc-paire{display:flex;margin-top:3px}
.dc-edition .dc-info .dc-in{display:inline-block;margin-right:2px}
/* v182 : encore un peu plus serré pour tenir sur un écran de 1 366 px ; bouton « Modifier le tableau » qui suit en bas */
.dc-table th,.dc-table td{padding:6px 6px}
.dc-table td.dc-nom,.dc-table th.dc-nom{min-width:170px}
.dc-table .dc-sal{min-width:175px}
.dc-flottant{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(18px + env(safe-area-inset-bottom));z-index:40}
.dc-flottant .btn{box-shadow:0 10px 28px rgba(176,0,97,.38),0 2px 6px rgba(100,44,68,.18)}
body.wide.dc-pleine main{padding-bottom:96px}
@media (max-width:820px){ .dc-flottant{bottom:calc(84px + env(safe-area-inset-bottom))} body.wide.dc-pleine main{padding-bottom:150px} }
@media print{ .dc-flottant{display:none} }
.dc-table thead th{white-space:normal;line-height:1.25}
.dc-table thead th.dc-nom{white-space:nowrap}
.dc-table thead th.dc-prlv{font-size:.64rem}

/* v183 : main courante : raccourci « Pour moi » (demandes adressées à la personne connectée) */
.badge.mc-raccourci-moi{background:linear-gradient(180deg,#fff,#f7eef3);color:var(--plum);box-shadow:inset 0 0 0 1px rgba(100,44,68,.18)}
.badge.mc-raccourci-moi.on{background:linear-gradient(180deg,#83405f,#642c44 55%,#55233a);color:#fff;box-shadow:none}
.badge.mc-raccourci-moi .notif-count{margin-left:4px}
/* v184 : Débit / Crédit : colonne « N° alloc. » (numéro allocataire CAF) */
.dc-table .dc-alloc{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.74rem}
.dc-w6{width:6.4em}
@media (max-width:1400px){
  .dc-table th,.dc-table td{padding:6px 5px}
  .dc-table td.dc-nom,.dc-table th.dc-nom{min-width:150px}
  .dc-table .dc-sal{min-width:160px}
}
.dc-table thead th.dc-alloc{font-size:.64rem}

/* v186 : Débit / Crédit : la barre « Extraire (Excel) · Gestion · Modifier le tableau » reste visible en haut de l'écran
   (sous l'en-tête, hauteur placée par app.js) ; le bouton flottant du bas est remplacé par celui de la barre */
@media (min-width:821px){
  .dc-outils-bar{position:sticky;top:72px;z-index:30;padding:12px 16px;margin-bottom:14px}
  .dc-form .dc-cadre{max-height:calc(100vh - 230px)}
}
.dc-outils-bar .grow{flex:1 1 auto}
.dc-outils-bar .dc-modifier{flex:none}
body.wide.dc-pleine main{padding-bottom:48px}

/* v187 : Débit / Crédit comme une feuille Excel : une ligne par client (rien ne passe à la ligne), une seule barre de
   défilement (celle de la page) quand le tableau tient en largeur, titres de colonnes et barre d'outils figés en haut,
   totaux figés en bas ; haut de page plus compact. Sinon le tableau défile dans son cadre (nom du client figé). */
.dc-tete{margin-bottom:12px}
.dc-tete h1{font-size:1.75rem}
.dc-filtres{padding:12px 16px;margin-bottom:12px}
.dc-synthese{padding:12px 16px;margin-bottom:12px}
.dc-synthese .tb-per-tete{margin-bottom:8px}
.dc-synthese .tb-per-tete h2{font-size:1.05rem}
.dc-synthese .tb-chiffre{padding:8px 12px;flex-direction:row;align-items:baseline;gap:8px}
.dc-synthese .tb-nb{font-size:1.15rem}
.dc-outils-bar{padding:8px 12px;gap:8px 16px}
.dc-form.card{overflow:clip}
.dc-table{font-size:.78rem}
.dc-table th{padding:6px 8px}
.dc-table td{white-space:nowrap;vertical-align:middle;padding:3px 8px;line-height:1.3;height:28px}
.dc-table td.dc-nom,.dc-table th.dc-nom{min-width:0;max-width:none}
.dc-table .dc-nom a{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.dc-hl{display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--warn-bg);color:var(--warn);font-size:.62rem;font-weight:700;vertical-align:middle;line-height:1.5}
.dc-table .dc-sal,.dc-edition .dc-sal{min-width:0;max-width:none;white-space:nowrap}
.dc-lsal-lu{margin:0 4px 0 0;padding:0 2px 0 8px;box-shadow:none;vertical-align:middle}
.dc-table .dc-lsal{margin:1px 0}
.dc-table .dc-presta{padding:0 7px}
.dc-table .dc-oui{padding:0 6px}
.dc-table .dc-pastille{padding:1px 8px}
.dc-prlv [data-k=prlv]{display:inline;white-space:nowrap}
.dc-edition .dc-prlv .dc-in{display:inline-block;margin:0 2px 0 0}
.dc-edition .dc-prlv .dc-paire{display:inline-flex;gap:3px;margin-right:6px}
.dc-table .dc-com span{display:inline-block;max-width:240px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;color:var(--muted)}
.dc-com-in{width:16em}
.dc-table thead th{top:var(--dc-th-top,0)}
/* tout tient en largeur : la page défile, les titres se collent sous la barre d'outils (--dc-th-top, placé par app.js) */
.dc-form .dc-cadre.dc-page,.dc-cadre.dc-page{overflow:visible;max-height:none}  /* v217 : aussi Règlements (titres collés sous la barre) */
.dc-cadre.dc-page .dc-table td.dc-nom,.dc-cadre.dc-page .dc-table td.dc-coche{position:static;box-shadow:none}
.dc-cadre.dc-page .dc-table th.dc-nom{box-shadow:none}
.dc-table td.dc-nom{white-space:nowrap}
.dc-table .dc-nom a{max-width:230px}
.dc-table .dc-com span{max-width:180px}
.dc-table td.dc-ctr{white-space:nowrap}
.dc-table th{padding:6px 6px}
.dc-table td{padding:3px 6px}
.dc-table .dc-nom a{max-width:200px}
.dc-table .dc-com span{max-width:140px}
.dc-lsal-lu{margin-right:3px;padding-left:7px}
body.wide.dc-pleine main{padding-left:10px;padding-right:10px}
.dc-table .dc-nom a{max-width:185px}
.dc-table .dc-com span{max-width:120px}
/* v187 : bande opaque derrière la barre figée (les lignes ne se voient plus au travers) ; colonnes « Secteur » et
   « Avec km » masquées quand la place manque, pour que tout tienne en largeur dès 1 900 px */
@media (min-width:821px){
  .dc-outils-bar{position:static;margin:0}
  .dc-collant{position:sticky;top:64px;z-index:30;margin:0 -10px 10px;padding:6px 10px 6px;background:var(--bg)}
}
@media (min-width:821px) and (max-width:2099px){ .dc-table .dc-c-sect,.dc-table .dc-c-avec{display:none} }
@media (min-width:821px) and (max-width:2099px){ .dc-table .dc-com span{max-width:90px} .dc-table .dc-nom a{max-width:170px} }
.dc-synthese .tb-nb{white-space:nowrap}
@media (max-width:820px){ .dc-synthese .tb-chiffre{flex-direction:column;align-items:flex-start;gap:2px} .dc-tete h1{font-size:1.45rem} }
.dc-table .dc-lsal-lu{flex-wrap:nowrap;white-space:nowrap}
/* v187 : les salariées passent à la ligne seulement s'il y en a beaucoup (colonne limitée), chaque étiquette reste entière */
.dc-table td.dc-sal{white-space:normal;max-width:270px}
.dc-table td.dc-sal .dc-lsal-lu{margin:1px 3px 1px 0}
@media (min-width:821px) and (max-width:2099px){ .dc-table td.dc-sal{max-width:240px} }
.dc-table td.dc-sal{min-width:230px}
.dc-table td.dc-prlv{white-space:normal;min-width:0}
.dc-prlv [data-k=prlv]{white-space:normal}
/* la place libre va aux salariées (une seule ligne le plus souvent), pas au commentaire */
.dc-table th.dc-com,.dc-table td.dc-com{width:140px;max-width:140px}
.dc-table td.dc-sal{min-width:330px;max-width:420px}
@media (min-width:821px) and (max-width:2099px){
  .dc-table th.dc-com,.dc-table td.dc-com{width:100px;max-width:100px}
  .dc-table td.dc-sal{min-width:260px;max-width:300px}
}

/* v188 : Débit / Crédit avec la taille habituelle du site, comme les tableaux Clients et Salariés (la v187 était trop
   petite : texte 12 px, marges 3 px) : texte 15 px, cellules de 10 px, titres en petites capitales ; les noms et les
   salariées peuvent passer à la ligne comme ailleurs. La page garde toute la largeur de l'écran et une seule barre de
   défilement quand tout tient. */
.dc-table{font-size:inherit}
.dc-table th,.dc-table td{padding:10px}
.dc-table thead th{font-size:.72rem;letter-spacing:.06em;vertical-align:bottom}
.dc-table td{height:auto;line-height:1.4;vertical-align:middle}
.dc-table td.dc-nom{white-space:normal;min-width:190px;max-width:260px}
.dc-table .dc-nom a{display:inline;max-width:none;overflow:visible;white-space:normal;font-weight:650}
.dc-hl{font-size:.68rem;padding:1px 7px;margin-left:6px}
.dc-table .dc-presta{font-size:.82rem;padding:1px 9px}
.dc-table .dc-oui{font-size:.74rem;padding:1px 8px}
.dc-table .dc-pastille{padding:2px 10px}
.dc-table td.dc-sal{min-width:250px;max-width:380px;white-space:normal}
.dc-table td.dc-sal .dc-lsal-lu{font-size:.82rem;margin:2px 4px 2px 0;padding:2px 3px 2px 9px}
.dc-table td.dc-prlv{font-size:.86rem}
.dc-table th.dc-com,.dc-table td.dc-com{width:auto;max-width:200px}
.dc-table .dc-com span{max-width:200px;white-space:normal;display:inline}
.dc-table td.dc-com{white-space:normal}
.dc-table tfoot th{font-size:.92rem;padding:10px}
/* v188 : 14 px (presque la taille des pages Clients et Salariés) pour que tout tienne sur l'écran de la direction ;
   compte et secteur, prestation et contrat, AI et Prlv regroupés sur une même ligne */
.dc-table{font-size:.94rem}
.dc-table th,.dc-table td{padding:9px 9px}
.dc-table td.dc-code{white-space:nowrap}
.dc-table .dc-code .dc-sect{font-family:var(--font);font-weight:400;color:var(--muted);font-size:.86em}
.dc-table .dc-ctr{display:inline;margin:0 0 0 6px;color:var(--muted);font-size:.9em}
.dc-table td.dc-aiprlv{white-space:nowrap}
.dc-table td.dc-aiprlv .dc-oui{display:inline-block;margin:0 2px}
.dc-edition .dc-aiprlv .dc-mini{display:inline-flex;margin:0 6px 0 0}
.dc-edition .dc-ctr .dc-paire{display:inline-flex}
.dc-table th,.dc-table td{padding:9px 7px}
.dc-table tfoot th{font-size:.86rem;padding:9px 7px}
.dc-table thead th{white-space:normal}
.dc-table td.dc-nom{min-width:270px;max-width:320px}
.dc-table td.dc-sal{min-width:300px;max-width:400px}
@media (min-width:821px) and (max-width:2099px){
  .dc-table td.dc-nom{min-width:210px}
  .dc-table td.dc-sal{min-width:250px}
  .dc-table th.dc-com,.dc-table td.dc-com{max-width:100px}
  .dc-table .dc-com span{max-width:100px}
}
@media (min-width:821px) and (max-width:2099px){ .dc-table th,.dc-table td,.dc-table tfoot th{padding-left:6px;padding-right:6px} }

/* v190 : « H » blanc dans un rond bleu : client (ou enfant) en situation de handicap ; case CAF grisée quand il n'y a
   pas d'aide CAF ; case commentaire colorée dès qu'il y a un commentaire (y compris le passage à 3 ou 6 ans) */
.badge-h{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#1f6fd1;color:#fff;
  font-size:.68rem;font-weight:800;line-height:1;vertical-align:middle;font-family:var(--font);flex:none;box-shadow:0 1px 3px rgba(31,111,209,.35)}
.dc-table td.dc-gris{background:#ecebee!important;color:#8e8a92}
.dc-table td.dc-gris .dc-in{background:#f3f2f5}
.dc-table td.dc-com-on{background:#fff5d6!important}
.dc-com-auto{color:#7a3600;font-weight:650}
.dc-edition .dc-com-auto{display:block;font-size:.74rem;margin-top:2px}
.alloc-ligne{align-items:flex-end}
/* v191 : taux différent du tarif de la grille : case colorée (reste modifiable avec « Modifier le tableau ») */
.dc-table td.dc-taux-diff{background:#e8f0fd!important;color:#1f4f96;font-weight:700}
.dc-table td.dc-taux-diff .dc-in{border-color:#8fb0e6;color:#1f4f96;font-weight:700}
.dc-legende-diff{background:#e8f0fd;color:#1f4f96;padding:1px 7px;border-radius:6px;font-weight:700}
/* v191 : colonne « Tarif CE » */
.dc-table td.dc-ce{text-align:center;white-space:nowrap}
.dc-table td.dc-ce .dc-oui{display:inline-block;margin:0 auto}
/* v193 : origine des demandes dans la main courante (salarié, client, formulaire, autre) */
.mc-origine{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 6px;border-radius:999px;font-weight:700;font-size:.86em;border:1px solid transparent;text-decoration:none;white-space:nowrap}
.mc-origine .ico{width:1.15em;height:1.15em}
.mc-o-salarie{background:#e6effb;color:#1f4f96;border-color:#b9cff0}
.mc-o-client{background:#e5f4e8;color:#1f6b2c;border-color:#b5dcbd}
.mc-o-formulaire{background:#fdf0e1;color:#9a4a07;border-color:#f1cfa6}
.mc-o-autre{background:#efefef;color:#4a4a4a;border-color:#d4d4d4}
.mc-item.mc-or-salarie{border-left:5px solid #3b78c9}
.mc-item.mc-or-client{border-left:5px solid #3d9a50}
.mc-item.mc-or-formulaire{border-left:5px solid #d9822b}
.mc-item.mc-or-autre{border-left:5px solid #a3a3a3}
.mc-origines{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.mc-origines .mc-origine{font-size:.95em;padding:5px 12px 5px 9px}
.mc-origines .mc-origine:hover{filter:brightness(.96)}
.mc-origines .mc-origine.on{box-shadow:0 0 0 2px currentColor}
.mc-o-nb{background:#fff;border-radius:999px;padding:0 7px;font-size:.9em;margin-left:2px}
/* v193 : indisponibilités ponctuelles / contractuelles, semaines non travaillées */
.dp-titre{font-size:1.02rem;margin:16px 0 4px}
.badge.dp-nat-contractuelle{background:#e6effb;color:#1f4f96}
.badge.dp-nat-ponctuelle{background:#f3eef8;color:#5b3b86}
.dp-delai{margin:4px 0 8px}
.badge.sn-trop-tard{background:#fdecea;color:#a12622}
.sn-form{display:grid;gap:10px;max-width:560px}
.sn-liste .badge.ok{background:#e5f4e8;color:#1f6b2c}
.sn-form label,.sn-form select,.sn-form input{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.sn-form select{text-overflow:ellipsis}
/* v194 : tarif hors grille (fiche client) en vert ; taux différent de la grille (incohérence) en rouge (avant : bleu) */
.dc-table td.dc-taux-hg{background:#e2f3e5!important;color:#1d6a2b;font-weight:700}
.dc-table td.dc-taux-hg .dc-in{border-color:#8cc79a;color:#1d6a2b;font-weight:700}
.dc-table td.dc-taux-diff{background:#fde6e6!important;color:#a3201b;font-weight:700}
.dc-table td.dc-taux-diff .dc-in{border-color:#ec9c98;color:#a3201b;font-weight:700}
.dc-legende-diff{background:#fde6e6;color:#a3201b}
.dc-legende-hg{background:#e2f3e5;color:#1d6a2b;padding:1px 7px;border-radius:6px;font-weight:700}
.cl-hg{align-items:flex-end;gap:12px 24px;margin:-4px 0 6px 28px}
/* v194 : traiter une demande d'affectation ou de retrait dans la main courante */
.mc-affect{margin:8px 0 4px;padding:10px 12px;border:1px dashed #b9cff0;border-radius:12px;background:#f6f9fe;display:grid;gap:8px}
.mc-affect-titre{margin:0}
/* v198 : contrôle des factures */
.dc-ctl{width:100%;border-collapse:collapse}
.dc-ctl th,.dc-ctl td{padding:6px 8px;border-bottom:1px solid #eadde4;text-align:left;vertical-align:top}
.dc-ctl .num{text-align:right;white-space:nowrap}
.dc-ctl-ecart{color:#a3201b;font-weight:700}
/* v199 : suivi des règlements */
.rg-table .rg-w-num{width:7.2em}
.rg-table .rg-w-client{width:22em;max-width:100%}
.rg-table .rg-w-mt{width:5.6em}
.rg-table .rg-w-note{width:12em}
.rg-table tbody tr.rg-impaye td{background:#f9d6d6!important}
.rg-table tbody tr.rg-partiel td{background:#fcefc0!important}
.rg-table tbody tr.rg-trop td{background:#e3ecfb!important}
.rg-table .rg-in.rg-err{border-color:#c62828;background:#fff4f4}
.rg-table .rg-solde{font-weight:700}
.rg-table tr.rg-impaye .rg-solde,.rg-table tr.rg-partiel .rg-solde{color:#a3201b}
.badge.rg-prevu{background:#e6effb;color:#1f4f96;margin-left:3px}
.badge.rg-prevu-fact{background:transparent;border:1px dashed #1f4f96}
.rg-rapport{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px}
.badge.rg-incoh{background:#fde6e6;color:#a3201b;margin-left:3px}
.badge.rg-dc{background:#efefef;color:#555;margin-left:3px}
.badge.rg-b-impaye{background:#f9d6d6;color:#8c1d18}
.badge.rg-b-partiel{background:#fcefc0;color:#7a5a00}
.badge.rg-b-paye{background:#e2f3e5;color:#1d6a2b}
.badge.rg-b-trop{background:#e3ecfb;color:#1f4f96}
.badge.rg-b-reste{background:#fff;border:1px solid #e3c9d5;font-weight:700}
.badge.on{box-shadow:0 0 0 2px currentColor}
.rg-l{padding:1px 7px;border-radius:6px;font-weight:700}
.rg-l-impaye{background:#f9d6d6}.rg-l-partiel{background:#fcefc0}
.rg-import-grille{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}
.rg-imp{display:grid;gap:8px;align-content:start}
.rg-imp h3{margin:0}
.rg-tete{align-items:center;gap:12px}
.rg-mois{display:flex;gap:6px;align-items:end;flex-wrap:wrap}
.rg-autre-mois{width:auto}
.rg-x{padding:2px 8px}
/* v199 : règlements : cases compactes (texte 14 px), nom et étiquettes sur une ligne */
.rg-table th,.rg-table td{padding:4px 5px;vertical-align:middle}
.rg-table .rg-in{padding:3px 6px;height:30px;min-height:0;font-size:.875rem;border-radius:6px;box-shadow:none;background:#fff}
.rg-table .rg-in.num{text-align:right}
.rg-table .rg-w-num{width:7.4em}
.rg-table .rg-w-client{width:15.5em}
.rg-table .rg-w-mt{width:5.2em}
.rg-table .rg-w-note{width:10em}
.rg-cl{display:flex;align-items:center;gap:3px;white-space:nowrap}
.rg-cl .badge{flex:none}
.rg-table thead th{font-size:.72rem;line-height:1.15;white-space:normal}
details.rg-import>summary{list-style:none;display:block}
details.rg-import>summary::marker{content:''}
details.rg-import>summary::-webkit-details-marker{display:none}
.rg-table .rg-w-client{width:14em}
.rg-table .rg-w-note{width:8.5em}
.rg-table td.dc-nom{white-space:nowrap}
.rg-table .rg-w-num{width:6.9em}
.rg-table .rg-w-mt{width:4.8em}
.rg-table .dc-coche{width:1%;padding:2px}
/* v201 : choix des semaines par la salariée */
.sem-choix .sem-grille{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}
.sem-compte-ok{color:#1d6a2b;font-weight:700}
.sem-compte-ko{color:#9a4a07;font-weight:700}
.sem-choix .sem-passee{opacity:.5}
/* v203 : salarié non véhiculé (case voiture non cochée) : en rouge dans le Débit / Crédit */
.dc-table .dc-sans-voiture .dc-sal-nom,.dc-table .dc-sans-voiture .dc-nomsal{color:#b3261e!important;font-weight:700}
.dc-table .dc-sans-voiture .dc-nomsal{border-color:#e8a19c}
.dc-table .dc-sans-voiture.dc-lsal-lu,.dc-table .dc-lsal.dc-sans-voiture{background:#fdecea;border-radius:6px}
/* v204 : Débit / Crédit : bandeaux du haut repliables et tableau plus dense (demande de la direction : plus de lignes à l'écran) */
details.dc-repli>summary{list-style:none;cursor:pointer;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
details.dc-repli>summary::-webkit-details-marker{display:none}
details.dc-repli>summary::marker{content:''}
details.dc-repli>summary::before{content:'▸';color:var(--pri);font-size:.9em;transition:transform .15s}
details.dc-repli[open]>summary::before{transform:rotate(90deg)}
.dc-repli-titre{font-weight:700;color:var(--pri)}
.card.dc-repli{padding:8px 14px;margin-bottom:8px}
.card.dc-repli[open]{padding-bottom:12px}
.card.dc-repli[open]>summary{margin-bottom:8px}
.dc-repli-filtres .dc-rond{min-width:0;padding:1px 9px}
.dc-repli .dc-filtres{margin:0;box-shadow:none;padding:0;background:none}
.dc-synthese.dc-repli>summary{font-size:.9rem}
details.dc-repli-outils{position:relative}
details.dc-repli-outils>summary::before{content:none}
details.dc-repli-outils[open]>summary{box-shadow:0 0 0 2px var(--pri)}
.dc-outils-menu{position:absolute;z-index:40;top:calc(100% + 6px);left:0;display:flex;flex-direction:column;gap:8px;padding:12px 14px;background:#fff;border-radius:14px;
  box-shadow:0 10px 30px rgba(100,44,68,.22);min-width:340px;max-width:min(92vw,900px)}
.dc-outils-menu .export-group{flex-wrap:wrap}
.dc-tete h1{font-size:1.45rem;margin-bottom:2px}
.dc-tete .tb-sous{margin:0 0 8px}
.dc-outils-bar{padding:6px 12px}
/* tableau : texte un peu plus petit, cases et marges resserrées */
.dc-table{font-size:.84rem}
.dc-table thead th{font-size:.64rem;padding:5px 5px}
.dc-table th,.dc-table td{padding:3px 5px}
.dc-table td.dc-nom{min-width:190px;max-width:240px;line-height:1.25}
.dc-edition .dc-in:not([type=checkbox]){height:24px;padding:2px 4px;font-size:.8rem}
.dc-w3{width:2.9em}.dc-w4{width:3.7em}.dc-w5{width:4.6em}.dc-w6{width:5.6em}
.dc-table .dc-nomsal{width:7.5em}
.dc-table td.dc-sal .dc-lsal{margin:0 0 1px;gap:2px}
.dc-table td.dc-sal .dc-lsal-lu{font-size:.78rem;margin:1px 3px 1px 0;padding:1px 3px 1px 7px}
.dc-table .dc-presta{font-size:.76rem;padding:0 7px}
.dc-table .dc-oui{font-size:.68rem;padding:0 6px}
.dc-edition .dc-aiprlv .dc-mini{margin:0 3px 0 0;font-size:.68rem}
.dc-table .dc-plus{padding:1px 8px;font-size:.72rem}
.dc-table tfoot th{font-size:.8rem;padding:6px 5px}
/* v204 : nom du client sur une seule ligne (nom complet au survol) ; « ＋ Salarié » et dates de prélèvement plus compacts */
.dc-table td.dc-nom{white-space:nowrap;max-width:250px}
.dc-table td.dc-nom>a{display:inline-block;max-width:205px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.dc-table td.dc-nom .dc-hl{font-size:.6rem;padding:0 5px;margin-left:4px}
.dc-table .dc-plus{height:19px;line-height:17px;padding:0 7px;font-size:.68rem;margin-top:1px;min-height:0}
.dc-edition td.dc-prlv input[type=date].dc-in{width:7.4em;margin-top:0}
.dc-edition td.dc-prlv select.dc-in{width:5.2em}
.dc-edition td.dc-prlv .dc-paire{display:flex;flex-wrap:wrap;gap:2px;max-width:13.5em}
.dc-edition td.dc-com .dc-com-in{width:11em}
.dc-table td.dc-nom{overflow:hidden}
.dc-edition td.dc-nom>a{max-width:175px}
.dc-edition td.dc-com .dc-com-in{width:7.5em}
.dc-edition td.dc-alloc .dc-in{width:5.2em}
.dc-edition td.dc-code .dc-in{width:3.9em}
.dc-edition.dc-table th,.dc-edition.dc-table td{padding:3px 3px}
.dc-edition.dc-table thead th{letter-spacing:.02em}
.dc-edition td.dc-prlv input[type=date].dc-in{width:7.1em}
.dc-table td.dc-nom>a{max-width:180px}
.dc-edition td.dc-nom>a{max-width:165px}
.dc-outils-menu{min-width:660px}
.dc-outils-menu .export-group{flex-wrap:nowrap}
.dc-outils-menu .export-group.export-main{flex-wrap:wrap}
.dc-synthese.dc-repli>summary .grow{flex:1}
.dc-synthese.dc-repli>summary form.inline{margin:0}
/* v206 : contrôle des heures et légende en bulle */
.dc-heures-btns{display:inline-flex;gap:6px;margin-left:6px}
.dc-heures-btns .btn.dc-on{box-shadow:0 0 0 2px var(--pri);font-weight:800}
.dc-heures-btns .btn.dc-alerte{color:#a3201b;border-color:#ec9c98}
.dc-legende-bulle .dc-outils-menu{min-width:440px;max-width:560px;gap:4px;line-height:1.45}
.dc-legende-txt p{margin:0}
.dc-l-sv{color:#b3261e;font-weight:700;background:#fdecea;padding:0 6px;border-radius:6px}
/* v206 : Débit / Crédit : pas d'espace perdu sous le tableau */
main:has(.dc-table){padding-bottom:6px}
main:has(.dc-table) .dc-form{margin-bottom:4px}
main:has(.dc-table)+.site-foot,main:has(.dc-table)~.site-foot{padding:2px 16px 8px}
/* v208 : bouton « Ajouter un client » vert, en tête de la barre du tableau */
.btn.dc-ajout-client{background:#2e7d32;border-color:#2e7d32;color:#fff;font-weight:800;box-shadow:0 2px 6px rgba(46,125,50,.3)}
.btn.dc-ajout-client:hover,.btn.dc-ajout-client:focus-visible{background:#256b29;border-color:#256b29;color:#fff}
/* v211 : à qui, sujet, urgent (messages des salariés et des clients) */
.msg-entete{gap:10px 16px;align-items:end}
.msg-urgent{margin:4px 0 8px}
/* v212 : bouton « Générer les règlements du mois » */
.btn.dc-gen-regl,button.dc-gen-regl{background:#1f4f96;border-color:#1f4f96;color:#fff;font-weight:700}
/* v215 : règlements : bandeaux repliables */
.rg-filtres-bloc .rg-filtres{margin:0;box-shadow:none;padding:0;background:none}
/* v216 : alerte « Nouveau message de l'agence » et onglet Connexions */
.live-toast{position:fixed;z-index:60;right:16px;bottom:90px;display:flex;gap:10px;align-items:center;background:var(--pri,#c2185b);color:#fff;
  padding:12px 14px 12px 16px;border-radius:14px;box-shadow:0 10px 30px rgba(100,44,68,.3);font-weight:700}
.live-toast a{color:#fff;text-decoration:underline}
.live-toast .live-x{background:none;border:0;color:#fff;font-size:1rem;cursor:pointer;padding:0 4px}
.cx-liste{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cx-liste li{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;padding:6px 10px;border-radius:10px;background:#faf6f8}
.cx-point{width:9px;height:9px;border-radius:50%;background:#2e7d32;display:inline-block}
.cx-point.cx-recent{background:#b0b0b0}
.cx-ecrire summary{list-style:none;cursor:pointer}
.cx-ecrire summary::-webkit-details-marker{display:none}
.cx-ecrire[open]{flex-basis:100%}
.cx-ecrire form{display:grid;gap:6px;margin-top:6px;max-width:640px}
.newpw-inline{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.15rem;user-select:all;-webkit-user-select:all}
/* v219 : adresses du client proposées pour les trajets (domicile, fiche, déjà utilisées ; croix pour retirer) */
.ac-list li.ac-titre{font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);cursor:default;padding-top:6px}
.ac-list li.ac-client{display:flex;align-items:center;gap:8px}
.ac-list li.ac-client .ac-txt{flex:1;min-width:0}
.ac-list li.ac-client .ac-tag{font-size:.72rem;padding:1px 7px;border-radius:8px;background:#f3e6ed;color:#7a3f5a;white-space:nowrap}
.ac-list li.ac-client .ac-suppr{border:0;background:transparent;box-shadow:none;min-height:0;width:32px;height:32px;padding:0;font-size:1.25rem;line-height:1;color:#a3201b;cursor:pointer;border-radius:50%}
.ac-list li.ac-client .ac-suppr:hover,.ac-list li.ac-client .ac-suppr:focus-visible{background:#fde6e6}
/* v220 : devis : cases de sélection et suppression groupée */
.dv-sel-barre{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 10px}
.fiches-table th.dv-coche,.fiches-table td.dv-coche{width:44px;text-align:center}
.fiches-table td.dv-coche .check{justify-content:center;margin:0}
/* v220 : agenda de l'agence : salarié cherché par les premières lettres */
.ag-sal{position:relative;display:block}
.ag-sal-liste{position:absolute;left:0;right:0;top:100%;z-index:40;margin:2px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid var(--line);border-radius:10px;
  box-shadow:0 8px 24px rgba(60,20,40,.14);max-height:320px;overflow:auto}
.ag-sal-liste li{padding:6px 10px;border-radius:7px;cursor:pointer;font-size:.9rem}
.ag-sal-liste li:hover,.ag-sal-liste li.actif{background:var(--pri-soft);color:var(--plum)}
.ag-sal-liste li.ag-sal-vide{cursor:default;color:var(--muted)}
/* v222 : « Créer un devis » directement depuis la fiche client */
.dv-rapide{position:relative;display:inline-block}
.dv-rapide>summary{list-style:none;cursor:pointer}
.dv-rapide>summary::-webkit-details-marker{display:none}
.dv-rapide-pop{position:absolute;z-index:30;top:calc(100% + 6px);left:0;display:flex;flex-direction:column;gap:8px;min-width:220px;padding:12px;background:#fff;
  border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(60,20,40,.16)}
.dv-rapide-pop p{margin:0}
/* v223 : sous-onglets du Logiciel (Clients : Fiches, Débit / Crédit, Règlement, Missions ; Gestion : Devis, Contrat, Main courante) */
.sous-onglets{margin:-12px 0 18px}
.sous-onglets-in{display:flex;gap:6px;flex-wrap:wrap}
.sous-onglets a{padding:6px 16px;border-radius:999px;font-size:.88rem;font-weight:600;color:var(--plum,#642c44);background:rgba(255,255,255,.65);
  border:1px solid rgba(100,44,68,.14);white-space:nowrap}
.sous-onglets a:hover{background:#fff}
.sous-onglets a.active{background:var(--rasp,#c2185b);border-color:transparent;color:#fff;box-shadow:0 2px 8px rgba(100,44,68,.18)}
@media (max-width:640px){ .sous-onglets{margin:-8px 0 14px} .sous-onglets-in{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch} }
.module-switch .ms-ico-forms{display:none}
.module-switch .ms-ico-forms svg{width:18px;height:18px;display:block}
@media (max-width:480px){ .module-switch .ms-txt-forms{display:none} .module-switch .ms-ico-forms{display:inline-flex} }
.ct-client{margin:10px 0 2px}
/* v225 : ordres de mission (client → agence → salarié) */
.om-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 0;border-bottom:1px solid var(--line)}
.om-ligne:last-child{border-bottom:0}
.om-quand{min-width:200px}
.om-note{flex-basis:100%}
.om-actions{display:flex;flex-wrap:wrap;align-items:end;gap:8px;flex-basis:100%;margin:4px 0 0}
.om-actions .om-sal{margin:0;min-width:220px}
.om-actions input[name=motif]{width:auto;flex:1;min-width:180px}
.badge.om-st-demande{background:#fcefc0;color:#7a5a00}
.badge.om-st-validee{background:#e3ecfb;color:#1f4f96}
.badge.om-st-acceptee,.badge.om-st-realisee{background:#e2f3e5;color:#1d6a2b}
.badge.om-st-refusee,.badge.om-st-annulee{background:#efefef;color:#666}
.om-bandeau{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.om-bandeau-lien{margin:0 0 10px}
.om-carte h2{margin-bottom:6px}
/* v228 : formulaires : planning à cocher (jours, 1 ou 2 créneaux, une semaine sur deux) ; créneaux visibles une fois le jour coché */
.fo-planning{display:grid;gap:6px}
.fo-pl-jour{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:6px 10px;border:1px solid var(--line);border-radius:12px;background:#fff}
.fo-pl-jour .fo-pl-coche{margin:0;border:0;background:transparent;padding:4px 0;min-width:120px;flex:0 0 auto}
.fo-pl-detail{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;flex:1 1 360px}
.fo-pl-jour:not(:has(.fo-pl-coche input:checked)) .fo-pl-detail{display:none}
.fo-pl-cren{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.fo-pl-cren .fo-sous{display:inline;margin:0;font-size:.78rem}
.fo-planning .fo-pl-cren input[type=time]{width:112px;min-width:0;display:inline-block;padding:6px 8px;height:auto}
.fo-planning .fo-pl-detail select{width:auto;display:inline-block;padding:6px 30px 6px 10px;height:auto}
.fo-pl-alea{margin-top:4px}
@media (max-width:640px){ .fo-pl-jour{padding:6px 8px} .fo-pl-detail{flex-basis:100%;gap:6px} .fo-pl-cren{gap:4px} .fo-pl-cren .fo-sous{font-size:.72rem;min-width:52px} .fo-planning .fo-pl-cren input[type=time]{width:94px;padding:5px 4px;font-size:.9rem} }
/* v229 : sélection de lignes à supprimer dans « Mon relevé » */
.sel-barre{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
table .sel-col{width:34px;text-align:center}
/* v230 : relevés : « Modifier » et « Supprimer » l'un au-dessus de l'autre (lignes plus courtes) */
.act-group.act-pile{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}
.act-group.act-pile .btn,.act-group.act-pile button{width:100%;margin:0;justify-content:center;text-align:center;padding:3px 10px;font-size:.78rem;min-height:0}
.act-group.act-pile form{margin:0;display:block}
/* v233 : reprendre ses heures régulières */
.rm-client{padding-top:14px}
.rm-client-coche{font-size:1.02rem}
.rm-creneaux{list-style:none;margin:8px 0 0 28px;padding:0;display:grid;gap:8px}
.rm-creneaux li{display:grid;gap:2px}
.rm-dates{color:var(--muted);margin-left:30px}
.rm-feries{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:2px}
.rm-ferie{margin:0;font-size:.82rem;color:#7a3f5a}
.rm-client:not(:has(.rm-client-coche input:checked)) .rm-creneaux{opacity:.55}
/* v234 : agenda : vacances scolaires (zone A, Bordeaux) : colonne rose clair et bandeau */
.ag-col.vacs{background:rgba(252,214,231,.38)}
.ag-tete.vacs{background:#fde3ee}
.ag-vacs{display:block;margin:3px 4px 0;padding:1px 4px;border-radius:6px;background:#f7c6dc;color:#8a1f52;font-size:.62rem;font-weight:700;letter-spacing:.02em;
  text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-cellule.vacs{background:rgba(252,214,231,.45)}
.gc-vacs{display:inline-block;margin-left:4px;padding:0 5px;border-radius:5px;background:#f7c6dc;color:#8a1f52;font-size:.6rem;font-weight:700;text-transform:uppercase;vertical-align:middle}
.gc-pl-jour.vacs{background:rgba(252,214,231,.38);border-radius:10px}
.ag-vacs-bandeau{margin:0 0 8px;padding:6px 12px;border-radius:10px;background:#fde3ee;color:#8a1f52;font-weight:600;font-size:.86rem}
/* v236 : ouvrir / fermer la saisie du mois suivant (Heures › Relevés) */
.ms-carte{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 18px}
.ms-carte.ms-ouvert{border:1px solid #9fd3a8;background:#f3fbf4}
/* v237 : semaines non travaillées du salarié : rouge clair et bandeau (agenda, Ma journée) */
.ag-col.snt{background:rgba(250,190,190,.42)}
.ag-col.vacs.snt{background:linear-gradient(180deg,rgba(250,190,190,.42),rgba(252,214,231,.38))}
.ag-tete.snt{background:#fbdcdc}
.ag-snt{display:block;margin:3px 4px 0;padding:1px 4px;border-radius:6px;background:#f5b5b5;color:#8c1d18;font-size:.62rem;font-weight:700;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-cellule.snt{background:rgba(250,190,190,.45)}
.gc-snt{display:inline-block;margin-left:4px;padding:0 5px;border-radius:5px;background:#f5b5b5;color:#8c1d18;font-size:.6rem;font-weight:700;text-transform:uppercase;vertical-align:middle}
.gc-pl-jour.snt{background:rgba(250,190,190,.38);border-radius:10px}
.ag-snt-bandeau{margin:0 0 8px;padding:6px 12px;border-radius:10px;background:#fbdcdc;color:#8c1d18;font-weight:600;font-size:.86rem}
/* v238 : clôture définitive du mois par salarié (Heures › Relevés) */
.cl-barre{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:8px 0 10px}
table.board .cl-col{width:70px;text-align:center}
.cl-cadenas{display:inline-block;padding:1px 8px;border-radius:8px;background:#e2f3e5;color:#1d6a2b;font-size:.72rem;font-weight:700;white-space:nowrap}
table.board tr.clos td{background:rgba(226,243,229,.35)}

/* v243 : notifications : filtre, devis toujours en haut */
.notif-filtre{align-items:flex-end;gap:8px;margin:6px 0 10px}
.notif-filtre label{margin:0}
.notif-devis{border-left:4px solid #e8710a}
.notif-devis h2{margin:0 0 2px;font-size:1.05rem}
.badge.nk-devis{background:#e8710a;color:#fff}

/* v246 : rendez-vous de l'agence dans l'agenda, notes du suivi des devis */
.ag-rdv{display:block;margin:2px 0 0;padding:1px 6px;border-radius:6px;background:#e8710a;color:#fff;font-size:.74rem;line-height:1.35;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ag-rdv:hover{background:#c95f06;color:#fff}
.ag-rdv-h{font-weight:700}
.gc-pl-rdv{display:flex;flex-wrap:wrap;gap:4px;margin:2px 0 4px}
.gc-pl-rdv .ag-rdv{display:inline-block}
details.gc-rdv-creer{margin:8px 0}
details.gc-rdv-creer>summary{list-style:none;cursor:pointer}
details.gc-rdv-creer>summary::-webkit-details-marker{display:none}
details.gc-rdv-creer .fi-form{margin-top:8px}
.rdv-rappel{border:1px solid var(--line,#e3e3e8);border-radius:10px;padding:8px 10px;margin:6px 0}
.rdv-dest{display:flex;flex-direction:column;gap:2px}
details.devis-suivi-etape>summary{cursor:pointer;list-style:none}
details.devis-suivi-etape>summary::-webkit-details-marker{display:none}
.devis-suivi-ouvrir{color:#a41c5c;text-decoration:underline;margin-left:4px}
.devis-suivi-notes{margin:4px 0 4px 14px;padding:0}
.devis-suivi-notes li{margin:2px 0}
.devis-suivi-note{margin:4px 0 8px;gap:6px}

/* v247 : contrats */
.badge.ct-signe{background:var(--ok-bg);color:var(--ok)}
.badge.ct-a-signer{background:#e8710a;color:#fff}
.ct-groupe h2{font-size:1rem;margin:0 0 6px}
.ct-champs{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:flex-end}
.ct-champs .ct-txt{flex:1 1 220px;margin:0}
.ct-champs .ct-court{flex:0 1 120px}
.ct-champs .ct-long{flex:1 1 100%}
.ct-champs .ct-case{flex:0 0 auto;margin:0}
.ct-etapes{margin:0;padding-left:20px}
.ct-etapes li{margin:6px 0}
.btn.ct-adobe-btn{background:#b30b00;border-color:#b30b00;color:#fff}
.ct-liste li{display:flex;flex-wrap:wrap;gap:6px;align-items:center}

/* v248 : relance d'une collègue */
.btn.mc-relance-btn,button.mc-relance-btn{background:#fff4e8;border-color:#e8710a;color:#a14b00}
details.mc-relance-edit[open]{flex-basis:100%}
details.mc-relance-edit>summary{list-style:none;display:inline-flex;cursor:pointer}
details.mc-relance-edit>summary::-webkit-details-marker{display:none}
.mc-relance-form{margin-top:6px;max-width:560px}
.badge.mc-relance-badge{background:#fff4e8;color:#a14b00;border:1px solid #f3c28f}
.relance-encart{position:fixed;right:16px;bottom:96px;z-index:1200;width:min(380px,calc(100vw - 32px));background:#fff;border:3px solid #e8710a;
  border-radius:14px;box-shadow:0 10px 32px rgba(0,0,0,.22);padding:14px 16px;animation:relance-arrive .35s ease-out}
.relance-encart[hidden]{display:none}
.relance-titre{margin:0 0 6px;font-weight:800;color:#c95f06;font-size:1.05rem}
.relance-liste{margin:0 0 10px;padding-left:18px}
.relance-liste li{margin:4px 0}
.relance-liste a{font-weight:600;color:inherit}
.relance-par{color:#6b6b70;font-size:.85rem}
.relance-btns{display:flex;gap:8px;justify-content:flex-end}
.relance-encart .relance-btns button.relance-ok,.relance-encart .relance-btns button.relance-ok:hover{background:#e8710a;background-image:none;border-color:#e8710a;color:#fff}
@keyframes relance-arrive{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .relance-encart{background:#26262b;color:#f2f2f5}}
:root[data-theme="dark"] .relance-encart{background:#26262b;color:#f2f2f5}

/* v248 : boutons de couleur sans le dégradé blanc général */
.relance-encart .relance-btns button.relance-ok,button.mc-encours-btn,.btn.mc-encours-btn,.btn.ct-adobe-btn{background-image:none !important}

/* v250 : archives de la main courante (demandes traitées en lignes) */
.mc-archives h2{font-size:1.05rem;margin:0 0 4px}
.mc-arch-liste{display:flex;flex-direction:column}
details.mc-arch{border-top:1px solid var(--line,#ececf0)}
details.mc-arch:first-child{border-top:0}
details.mc-arch>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 4px}
details.mc-arch>summary::-webkit-details-marker{display:none}
details.mc-arch>summary:hover{background:rgba(209,0,111,.04)}
.mc-arch-txt{flex:1 1 300px;min-width:0}
.mc-arch-quand{white-space:nowrap}
details.mc-arch[open]>summary{background:rgba(209,0,111,.05)}
details.mc-arch>.mc-item{margin:6px 0 10px}
.notif-archives h2{font-size:1.05rem;margin:0 0 2px}
.notif-archives{opacity:.92}

/* v251 : notification en une ligne simple */
.lg-notifs li.nt-simple a{display:flex;align-items:center;gap:8px;min-width:0}
.lg-notifs li.nt-simple .nt-txt{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-notifs li.nt-simple .nt-when{white-space:nowrap}
@media (max-width:640px){.lg-notifs li.nt-simple .nt-txt{white-space:normal}}

/* v252 : agenda : colonne de gauche avec son propre défilement, grille sur toute la hauteur ; tâches */
@media (min-width:821px){
  .gc-side{max-height:calc(100vh - 96px);overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
}
.ag-rdv.ag-tache{background:#eef2fb;color:#1f3f7a;border:1px solid #c9d6f0;display:flex;align-items:center;gap:4px}
.ag-rdv.ag-tache:hover{background:#dfe8f8;color:#1f3f7a}
.ag-tache-case{display:inline-flex;align-items:center;justify-content:center;width:11px;height:11px;border:1.5px solid currentColor;border-radius:3px;font-size:9px;line-height:1;flex:0 0 auto}
.ag-rdv.faite{opacity:.6;text-decoration:line-through}
.ag-rdv.ag-tache.ag-prio{background:#fdeaea;color:#b42318;border:2px solid #e8867c;font-weight:800;font-size:.92rem;padding:3px 7px;margin-top:3px;white-space:normal;overflow-wrap:anywhere;line-height:1.25;align-items:flex-start}
.ag-rdv.ag-prio .ag-tache-case{width:13px;height:13px;font-size:11px;border-width:2px;margin-top:2px}
.ag-rdv.ag-tache.ag-prio:hover{background:#fbd9d6;color:#9b1c13}
.gc-agendas .gc-tous{align-self:flex-start;padding:0;min-height:0;margin:-4px 0 6px;color:var(--pri,#d1006f);background:none;box-shadow:none;font-weight:600;text-decoration:underline;cursor:pointer}

.wa-texte{white-space:pre-wrap;font:inherit;background:var(--field);border:1px solid var(--line);padding:12px;border-radius:var(--radius-sm);max-width:100%;overflow-wrap:anywhere}
