:root{
  --safran:#E3A325; --safran-clair:#FDF3DD; --safran-bord:#F0D9A4; --safran-texte:#8A5A00;
  --encre:#17202A; --encre-2:#3A4552; --gris:#5B6470; --ligne:#E4E0D8; --ligne-2:#EEEAE2;
  --fond:#F6F4EF; --blanc:#FFFFFF; --basilic:#23614F; --basilic-clair:#E3F0EA; --rouge:#B42318; --rouge-clair:#FDECEA;
  --rayon:18px;
}
*{box-sizing:border-box}
html{font-size:18px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fond);color:var(--encre);font-family:Inter,system-ui,-apple-system,sans-serif;font-size:1rem;line-height:1.4}
h1,h2,h3,.titre{font-family:Outfit,Inter,sans-serif;font-weight:600;margin:0;line-height:1.2}
h1{font-size:1.45rem} h2{font-size:1.15rem} h3{font-size:1rem}
a{color:var(--basilic)}
button,input,select,textarea{font:inherit;color:inherit}
.app{max-width:640px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
.entete{display:flex;align-items:center;gap:.6rem;padding:1rem 1rem .4rem;position:sticky;top:0;background:var(--fond);z-index:5}
.entete .grow{flex:1;min-width:0}
.sous{color:var(--gris);font-size:.8rem}
.logo{display:flex;align-items:center;gap:.45rem;text-decoration:none;color:var(--encre)}
.logo span{font-family:Outfit,sans-serif;font-weight:700;font-size:1.45rem;letter-spacing:-.02em}
.contenu{flex:1;padding:.5rem 1rem 7rem;display:flex;flex-direction:column;gap:.8rem}
.carte{background:var(--blanc);border:1px solid var(--ligne);border-radius:var(--rayon);padding:.9rem 1rem}
.carte.sombre{background:var(--encre);color:#fff;border:none}
.ligne{display:flex;align-items:center;gap:.7rem}
.ligne .grow{flex:1;min-width:0}
.liste{background:var(--blanc);border:1px solid var(--ligne);border-radius:var(--rayon);overflow:hidden}
.liste>.item{display:flex;align-items:center;gap:.7rem;padding:.7rem 1rem;border-bottom:1px solid var(--ligne-2);min-height:3.2rem}
.liste>.item:last-child{border-bottom:none}
.liste>.item.cliquable{cursor:pointer}
.liste>.item .grow{flex:1;min-width:0}
.grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.tuile{background:var(--blanc);border:1px solid var(--ligne);border-radius:var(--rayon);padding:.8rem;display:flex;flex-direction:column;gap:.3rem;text-decoration:none;color:var(--encre);min-height:6rem}
.tuile b{font-weight:600}
.btn{min-height:48px;border-radius:14px;border:1px solid var(--ligne);background:var(--blanc);font-weight:600;padding:0 1rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;text-decoration:none;color:var(--encre)}
.btn.principal{background:var(--basilic);border-color:var(--basilic);color:#fff}
.btn.sombre{background:var(--encre);border-color:var(--encre);color:#fff}
.btn.danger{color:var(--rouge);border-color:#F3C5C0}
.btn.plein{width:100%}
.btn.petit{min-height:44px;font-size:.85rem;padding:0 .8rem}
.btn:disabled{opacity:.5;cursor:default}
.rond{width:44px;height:44px;border-radius:22px;border:1px solid var(--ligne);background:var(--blanc);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none;color:var(--encre);text-decoration:none}
.micro{width:84px;height:84px;border-radius:42px;border:6px solid #F1DDB0;background:var(--safran);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;color:var(--encre)}
.carte.sombre .micro{border-color:var(--encre-2)}
.micro.actif{background:#D64545;border-color:#F4B4B4;color:#fff;animation:pulse 1.2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(214,69,69,.45)}100%{box-shadow:0 0 0 18px rgba(214,69,69,0)}}
.puces{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.2rem;scrollbar-width:none}
.puce{flex:none;min-height:44px;border-radius:999px;border:1px solid var(--ligne);background:var(--blanc);padding:0 1rem;cursor:pointer;font-size:.85rem;white-space:nowrap}
.puce.actif{background:var(--encre);border-color:var(--encre);color:#fff;font-weight:600}
.badge{display:inline-block;font-size:.72rem;font-weight:600;padding:.3rem .6rem;border-radius:999px;background:var(--ligne-2);color:var(--encre-2);white-space:nowrap}
.badge.ok{background:var(--basilic-clair);color:var(--basilic)}
.badge.attention{background:var(--safran-clair);color:var(--safran-texte)}
.badge.alerte{background:var(--rouge-clair);color:var(--rouge)}
.alerte-boite{background:var(--safran-clair);border:1px solid var(--safran-bord);border-radius:16px;padding:.7rem .9rem;font-size:.88rem}
.info{background:var(--ligne-2);border-radius:14px;padding:.7rem .9rem;font-size:.85rem;color:var(--encre-2)}
.ecoute{border:2px solid var(--safran);border-radius:18px;background:var(--blanc);padding:.8rem 1rem;min-height:3.5rem}
.ecoute .etat{font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--safran-texte);display:flex;align-items:center;gap:.4rem}
.point{width:9px;height:9px;border-radius:5px;background:#D64545}
.qte{font-family:Outfit,sans-serif;font-weight:600;font-size:1.3rem}
.champ{display:flex;flex-direction:column;gap:.3rem}
.champ label{font-size:.85rem;font-weight:600}
.champ .aide{font-size:.75rem;color:var(--gris)}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=search],select,textarea{width:100%;min-height:48px;border:1px solid #CFC9BD;border-radius:12px;padding:.5rem .8rem;background:var(--blanc);font-size:1rem}
input:focus,select:focus,textarea:focus{outline:2px solid var(--safran);outline-offset:1px}
input.qte-input{width:5.2rem;text-align:center;font-weight:600}
.deux{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.jours{display:flex;gap:.35rem;flex-wrap:wrap}
.jours label{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--ligne);border-radius:12px;background:var(--blanc);font-size:.8rem;font-weight:600;cursor:pointer}
.jours input{position:absolute;opacity:0;pointer-events:none}
.jours label:has(input:checked){background:var(--encre);color:#fff;border-color:var(--encre)}
.barre{height:10px;border-radius:5px;background:var(--ligne-2);overflow:hidden}
.barre>div{height:100%;background:var(--safran);border-radius:5px}
.barre.ok>div{background:var(--basilic)}
.nav{position:fixed;bottom:0;left:0;right:0;background:var(--blanc);border-top:1px solid var(--ligne);display:flex;justify-content:space-around;padding:.4rem .3rem calc(.6rem + env(safe-area-inset-bottom));z-index:10}
.nav a{flex:1;min-width:0;max-width:120px;text-decoration:none;color:var(--gris);display:flex;flex-direction:column;align-items:center;gap:.15rem;font-size:clamp(10px,.68rem,12.5px);min-height:48px;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-l{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.nav a.actif{color:var(--encre);font-weight:600}
.voile{position:fixed;inset:0;background:rgba(23,32,42,.45);z-index:20;display:flex;align-items:flex-end;justify-content:center}
.feuille{background:var(--fond);width:100%;max-width:640px;max-height:92vh;overflow:auto;border-radius:22px 22px 0 0;padding:1rem 1rem 1.5rem;display:flex;flex-direction:column;gap:.8rem}
.toast{position:fixed;left:50%;bottom:6.5rem;transform:translateX(-50%);background:var(--encre);color:#fff;padding:.7rem 1rem;border-radius:14px;font-size:.9rem;z-index:30;max-width:90vw;box-shadow:0 6px 24px rgba(0,0,0,.2)}
.vide{text-align:center;color:var(--gris);padding:1.2rem .5rem;font-size:.9rem}
.centre{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem}
.boite-connexion{width:100%;max-width:420px;display:flex;flex-direction:column;gap:.9rem}
details>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.sr{position:absolute;left:-9999px}
.bas{color:var(--rouge);font-weight:600}
@media (min-width:700px){.contenu{padding-bottom:7.5rem}}
.pastille{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;border-radius:10px;background:var(--rouge);color:#fff;font-size:.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
.bulle{padding:.6rem .85rem;border-radius:16px;max-width:90%;font-size:.95rem;line-height:1.4}
.bulle.moi{align-self:flex-end;background:var(--encre);color:#fff;border-bottom-right-radius:4px}
.bulle.dicto{align-self:flex-start;background:var(--blanc);border:1px solid var(--ligne);border-bottom-left-radius:4px}
details>summary{gap:.3rem}
details.carte>summary{font-family:Outfit,Inter,sans-serif;font-size:1.05rem}
.entete .rond{width:42px;height:42px}
.grand-retour{display:flex;flex-direction:column;gap:.5rem;margin-top:.6rem}
.gr-ligne{border-radius:14px;padding:.6rem .8rem;border:2px solid}
.gr-texte{font-family:Outfit,Inter,sans-serif;font-weight:600;font-size:1.55rem;line-height:1.25}
.gr-ok{border-color:#9CCFB8;background:var(--basilic-clair);color:#164536}
.gr-doute,.gr-ambigu{border-color:var(--safran);background:var(--safran-clair);color:#5C3B00}
.gr-inconnu{border-color:#F3C5C0;background:var(--rouge-clair);color:#7A1B12}
.gr-btns{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.45rem}
.bandeau-dictee{position:sticky;top:var(--h-entete,64px);z-index:4;background:var(--encre);color:#fff;border-radius:20px;padding:.75rem .85rem;max-height:64vh;overflow:auto;box-shadow:0 8px 24px rgba(23,32,42,.25)}
.bandeau-dictee .grand-retour{margin-top:.5rem}
.bandeau-dictee .gr-ligne{border-width:2px}
.bandeau-dictee .btn.petit{min-height:40px}
.table-salle{display:flex;flex-direction:column;gap:.1rem;align-items:flex-start;text-align:left;min-height:72px;padding:.5rem .6rem;border-radius:12px;border:2px solid var(--ligne);background:var(--blanc);font:inherit;font-size:.78rem;cursor:pointer;color:var(--encre)}
.table-salle b{font-size:1.05rem}
.table-salle.libre{border-color:#9CCFB8}
.table-salle.prise{border-color:var(--safran);background:var(--safran-clair)}
.table-salle.arrivee{border-color:#3B7DD8;background:#E6EEFB}
.table-salle .tr-nom{font-weight:600;font-size:.85rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Aide-mémoire : cases à cocher grandes et lisibles */
.case{flex:0 0 auto;width:34px;height:34px;border-radius:10px;border:2px solid var(--basilic);background:#fff;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;padding:0}
.case.cochee{background:var(--basilic)}
.case svg{width:22px;height:22px}
/* Visite guidée */
.visite-voile{position:fixed;inset:0;z-index:90;pointer-events:auto}
.visite-cible{position:relative;z-index:91;box-shadow:0 0 0 4px var(--safran),0 0 0 9999px rgba(23,32,42,.62);border-radius:18px}
.visite-bulle{position:fixed;left:12px;right:12px;z-index:92;background:#fff;border-radius:18px;padding:1rem 1.1rem;box-shadow:0 12px 40px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:.6rem;font-size:1.02rem;line-height:1.45}
.onb{max-width:560px;margin:0 auto;padding:1.2rem 1rem 2rem;display:flex;flex-direction:column;gap:1rem;min-height:100vh}
.onb h1{font-size:1.7rem;margin:0}
.onb .etapes{display:flex;gap:.35rem}.onb .etapes span{flex:1;height:6px;border-radius:3px;background:var(--ligne)}.onb .etapes span.ok{background:var(--basilic)}
.onb .bulle-dicto{background:var(--encre);color:#fff;border-radius:18px 18px 18px 6px;padding:1rem 1.1rem;line-height:1.5;font-size:1.05rem}
.onb .choix{display:flex;flex-wrap:wrap;gap:.5rem}
.onb .choix button{font:inherit;padding:.7rem 1rem;border-radius:999px;border:2px solid var(--ligne);background:#fff;cursor:pointer;min-height:48px}
.onb .choix button.on{border-color:var(--basilic);background:var(--basilic);color:#fff}
/* micro en écoute (aide-mémoire, accueil) */
.rond.actif,.btn.actif{background:#D64545;border-color:#F4B4B4;color:#fff;animation:pulse 1.2s infinite}
.pastille-nom{flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:var(--basilic);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem}
/* une feuille longue défile en entier : ses blocs ne doivent jamais être écrasés (sinon la fin d'une liste disparaît) */
.feuille>*{flex-shrink:0}
/* 2.7 : formules et planning */
.badge.pro{background:#17202A;color:#F1DDB0}
.segment{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.offre-pro{border:2px solid var(--basilic)}
.prix-grand{font-size:2rem;font-family:Outfit,sans-serif;line-height:1.1}
.coches{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.coches li{padding-left:1.6rem;position:relative;line-height:1.4}
.coches li::before{content:"✓";position:absolute;left:0;color:var(--basilic);font-weight:700}
.sem-nav{display:flex;align-items:center;gap:.5rem}
.sem-nav b{flex:1;text-align:center}
.jour-plan h3{margin:0;font-size:1.05rem}
.creneau{display:flex;align-items:center;gap:.6rem;padding:.55rem .6rem;border-radius:12px;background:var(--fond,#F7F5F0);border:1px solid var(--ligne);font:inherit;color:inherit;text-align:left;width:100%;cursor:pointer}
.creneau .h{font-weight:700;white-space:nowrap}
.conseil{color:var(--safran-texte);font-weight:600;font-size:.9rem}
.heures-ligne{display:flex;align-items:center;gap:.5rem;padding:.35rem 0;border-bottom:1px solid var(--ligne-2)}
.heures-ligne:last-child{border-bottom:none}
.segment .btn[aria-pressed=true]{background:var(--basilic);color:#fff;border-color:var(--basilic)}
/* 2.8 : barre Dicto et mains libres */
.barre-dicto{position:fixed;left:.5rem;right:.5rem;bottom:calc(4.4rem + env(safe-area-inset-bottom));z-index:12;background:#17202A;color:#fff;border-radius:18px;padding:.5rem .55rem;box-shadow:0 8px 24px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:.3rem;max-width:640px;margin:0 auto}
.barre-ligne{display:flex;align-items:center;gap:.45rem}
.barre-texte{flex:1;min-width:0;background:none;border:none;color:#fff;font:inherit;text-align:left;cursor:pointer;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;padding:.2rem}
.barre-micro{background:var(--safran)!important;border:none!important;color:#17202A!important;flex:none}
.barre-micro.actif{box-shadow:0 0 0 5px rgba(227,163,37,.35)}
.barre-x{background:transparent!important;border:1px solid rgba(255,255,255,.25)!important;color:#fff!important;flex:none}
.barre-ml{display:flex;align-items:center;gap:.45rem;font-size:.82rem;color:#F1DDB0;font-weight:600;padding:0 .2rem}
.barre-ml .point{width:9px;height:9px;border-radius:50%;background:#E05A47;animation:clignote 1.4s infinite}
.barre-etat{font-size:.8rem;color:#C9CED6;padding:0 .2rem}
body.avec-barre .contenu{padding-bottom:11rem}
@keyframes clignote{0%,100%{opacity:1}50%{opacity:.3}}
/* 2.9 */
.feuille>.entete-feuille{position:sticky;top:-1rem;z-index:5;background:var(--fond);margin:-1rem -1rem 0;padding:1rem 1rem .5rem;box-shadow:0 6px 10px -8px rgba(0,0,0,.25)}
.barre-consent{padding:.2rem;border-top:1px solid rgba(255,255,255,.15);margin-top:.2rem}
.barre-consent .btn{background:#fff;color:#17202A}
.barre-consent .btn.principal{background:var(--safran);border-color:var(--safran);color:#17202A}
/* 3.0 : accueil et agenda */
.rac-agenda{position:relative;flex:none;display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.55rem .7rem;border-radius:16px;background:var(--basilic);color:#fff;text-decoration:none;font-weight:700;font-size:.8rem;box-shadow:0 4px 12px rgba(35,97,79,.25)}
.rac-agenda svg{width:26px;height:26px}
.icones-modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;padding:.15rem 0 .35rem}
.icones-modules::-webkit-scrollbar{display:none}
.icones-modules a{display:flex;flex-direction:column;align-items:center;gap:.2rem;min-width:0;overflow:hidden;padding:.55rem .35rem;border-radius:14px;background:var(--blanc,#fff);border:1px solid var(--ligne);color:var(--encre,#17202A);text-decoration:none;font-size:.74rem;font-weight:600;text-align:center}
.icones-modules a svg{color:var(--basilic)}
.icones-modules a.ajout{border-style:dashed;background:transparent}
.cal-nav{display:flex;align-items:center;gap:.5rem}
.cal-nav b{flex:1;text-align:center;font-size:1.05rem}
.cal-mois{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.25rem}
.cal-mois .entete{font-size:.72rem;font-weight:700;text-align:center;color:var(--gris)}
.cal-jour{min-height:3.9rem;border-radius:10px;border:1px solid var(--ligne);background:var(--blanc,#fff);padding:.2rem;display:flex;flex-direction:column;gap:.15rem;font:inherit;color:inherit;cursor:pointer;text-align:left}
.cal-jour.autre{opacity:.35}
.cal-jour.auj{border:2px solid var(--basilic)}
.cal-jour .num{font-weight:700;font-size:.85rem}
.cal-jour .rempl{height:6px;border-radius:3px;background:var(--ligne-2,#eee);overflow:hidden}
.cal-jour .rempl i{display:block;height:100%}
.cal-jour .points{display:flex;gap:2px;flex-wrap:wrap}
.cal-jour .points span{width:7px;height:7px;border-radius:50%}
.niv-ok{background:#2E8B6E}.niv-presque{background:#E3A325}.niv-complet{background:#D64545}
.pt-evt{background:#6B5BD2}.pt-rap{background:#C98A12}.pt-plan{background:#3B7DD8}.pt-tache{background:#64748B}
.legende{display:flex;gap:.7rem;flex-wrap:wrap;font-size:.78rem;color:var(--gris)}
.legende span{display:inline-flex;align-items:center;gap:.25rem}
.legende i{width:9px;height:9px;border-radius:50%;display:inline-block}
.jour-sem{display:flex;flex-direction:column;gap:.35rem;cursor:pointer}
.ligne-cal{display:flex;align-items:center;gap:.45rem;font-size:.9rem}
.ligne-cal .ic{width:9px;height:9px;border-radius:50%;flex:none}
.svc{display:inline-flex;align-items:center;gap:.25rem;padding:.15rem .5rem;border-radius:999px;font-size:.8rem;font-weight:700;color:#fff}
.rac-micro-boite{flex:none;display:flex;flex-direction:column;align-items:center;gap:.2rem}
.rac-micro{display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.55rem .75rem;border-radius:16px;border:none;background:var(--safran);color:#17202A;font:inherit;font-weight:700;font-size:.8rem;cursor:pointer;box-shadow:0 4px 12px rgba(227,163,37,.3);-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;touch-action:manipulation;transition:transform .15s}
.rac-micro.appui{transform:scale(.93);box-shadow:0 0 0 6px rgba(227,163,37,.35)}
.rac-micro.actif{background:#D64545;color:#fff;animation:pulse 1.4s infinite}
.astuce-ml{font-size:.66rem;color:var(--gris);text-align:center;max-width:5.5rem;line-height:1.15}
.exemples-dicto{display:block;width:100%}
.rac-micro.ecoute{box-shadow:0 0 0 6px rgba(227,163,37,.45)}
.barre-dicto.compacte{left:auto;right:.7rem;bottom:calc(1rem + env(safe-area-inset-bottom));z-index:25;padding:.35rem;border-radius:999px;flex-direction:row;align-items:center;gap:.3rem;max-width:none;margin:0}
.barre-dicto.compacte .point{width:9px;height:9px;border-radius:50%;background:#E05A47;animation:clignote 1.4s infinite;margin-right:.3rem}
.barre-dicto.compacte{left:auto;right:.7rem;bottom:calc(1rem + env(safe-area-inset-bottom));z-index:25;padding:.35rem;border-radius:999px;flex-direction:row;align-items:center;gap:.3rem;max-width:none;margin:0}
.barre-dicto.compacte .point{width:9px;height:9px;border-radius:50%;background:#E05A47;animation:clignote 1.4s infinite;margin-right:.3rem}
.petit-x{width:38px!important;height:38px!important;min-width:38px;flex:none;background:transparent!important;border:1px solid var(--ligne)!important}
.petit-x svg{width:16px;height:16px}
/* 3.4 : micro rond en bas à droite (à portée du pouce), ajout en bas à gauche */
.fab-micro{position:fixed;right:max(.9rem,calc(50vw - 320px + .9rem));bottom:calc(4.9rem + env(safe-area-inset-bottom));z-index:11;width:68px;height:68px;border-radius:50%;border:none;background:var(--safran);color:#17202A;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.28);-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;touch-action:manipulation;transition:transform .15s}
.fab-micro.appui{transform:scale(.92);box-shadow:0 0 0 8px rgba(227,163,37,.35)}
.fab-micro.ecoute{box-shadow:0 0 0 8px rgba(227,163,37,.45)}
.fab-micro.actif{background:#D64545;color:#fff;animation:pulse 1.2s infinite}
body.avec-barre .fab-micro{display:none}
.fab-ajout{position:fixed;left:max(.9rem,calc(50vw - 320px + .9rem));right:calc(68px + 1.8rem);bottom:calc(5.4rem + env(safe-area-inset-bottom));z-index:11;display:flex;gap:.45rem;flex-wrap:wrap;pointer-events:none}
.fab-plus{pointer-events:auto;min-height:52px;border-radius:999px;border:none;background:var(--basilic);color:#fff;font:inherit;font-weight:700;font-size:.92rem;padding:0 1.1rem 0 .85rem;display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.22);max-width:100%}
.fab-plus span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fab-plus+.fab-plus{background:var(--blanc);color:var(--encre);border:1px solid var(--ligne)}
body.avec-barre .fab-ajout{display:none}
.contenu{padding-bottom:10rem}
.bandeau-dictee{max-height:42vh}
.toast-action{display:flex;align-items:center;gap:.7rem;bottom:9.5rem}
.toast-action .btn{background:var(--safran);border-color:var(--safran);color:#17202A;flex:none}
.vu{height:16px;border-radius:8px;background:var(--ligne-2);overflow:hidden}
.vu>div{height:100%;width:0;background:var(--basilic);transition:width .08s}
.diag-n{flex:none;width:30px;height:30px;border-radius:50%;background:var(--encre);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.diag-l{margin:.3rem 0 0;padding-left:1.1rem;display:flex;flex-direction:column;gap:.35rem}
/* 3.4 : agenda — case colorée dès qu'il y a une information */
.cal-jour.rempli{background:var(--safran-clair);border-color:var(--safran-bord)}
.cal-jour.rempli .num{color:var(--safran-texte)}
.cal-jour.auj.rempli{border-color:var(--basilic)}
.jour-sem.rempli{background:linear-gradient(90deg,var(--safran-clair) 0,var(--safran-clair) 6px,var(--blanc) 6px)}
.pt-cli{background:#BE185D}.pt-liv{background:#2E8B6E}
.resume-matin>summary{display:flex;align-items:center;gap:.5rem}
.resume-matin>summary .grow{flex:1}
/* 3.4 : recherche avec croix, conditionnements au toucher, fournisseurs */
.recherche{position:relative;display:block}
.recherche input{padding-right:3.2rem}
.recherche .vider{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:none;background:var(--ligne-2);color:var(--encre);display:flex;align-items:center;justify-content:center;cursor:pointer}
.recherche .vider svg{width:18px;height:18px}
.recherche input:placeholder-shown+.vider{display:none}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.puces-unites{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.35rem}
.puces-unites .puce{min-height:40px;font-size:.85rem;padding:0 .8rem}
.conseil-four{width:100%;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;background:var(--basilic-clair);border-radius:12px;padding:.45rem .6rem;font-size:.85rem;color:var(--encre)}
.carte.speciale{border:2px solid #6B5BD2}
.badge.speciale-b{background:#ECEAFB;color:#4B3BB2;display:inline-flex;align-items:center;gap:.25rem}
.badge.speciale-b svg{width:14px;height:14px}
/* 3.4 : boutons larges, segment à trois choix */
.btn{min-height:52px}
.btn.petit{min-height:46px}
.segment.trois{grid-template-columns:repeat(3,minmax(0,1fr))}
.segment.trois .btn{padding:0 .4rem;font-size:.88rem;line-height:1.15}
.segment .btn[aria-pressed=true] svg{color:inherit}
/* Contraste fort */
[data-contraste=fort]{--gris:#2F3944;--ligne:#A9A293;--ligne-2:#D9D3C7;--encre-2:#1F2731;--safran-texte:#6B4500}
[data-contraste=fort] .carte,[data-contraste=fort] .liste,[data-contraste=fort] .tuile,[data-contraste=fort] .btn,[data-contraste=fort] .rond,[data-contraste=fort] input,[data-contraste=fort] select,[data-contraste=fort] textarea{border-width:2px}
[data-contraste=fort] .sous{font-weight:500}
/* Mode sombre */
[data-theme=sombre]{color-scheme:dark;--fond:#10151B;--blanc:#1A222B;--encre:#EEF1F4;--encre-2:#CBD3DC;--gris:#A3AEBA;--ligne:#2F3B48;--ligne-2:#25303B;--basilic:#2F9173;--basilic-clair:#16352C;--safran-clair:#33290F;--safran-bord:#6A5422;--safran-texte:#F2C66A;--rouge:#FF8C80;--rouge-clair:#3A1D1A}
[data-theme=sombre][data-contraste=fort]{--gris:#D6DDE4;--ligne:#56667A;--encre-2:#E6EBF0;--safran-texte:#FFD27A}
[data-theme=sombre] .carte.sombre,[data-theme=sombre] .btn.sombre,[data-theme=sombre] .bandeau-dictee,[data-theme=sombre] .onb .bulle-dicto,[data-theme=sombre] .bulle.moi,[data-theme=sombre] .toast,[data-theme=sombre] .barre-dicto{background:#05080B;color:#fff;border-color:#05080B}
[data-theme=sombre] .puce.actif,[data-theme=sombre] .jours label:has(input:checked){background:var(--safran);border-color:var(--safran);color:#17202A}
[data-theme=sombre] .diag-n{background:var(--safran);color:#17202A}
[data-theme=sombre] .case{background:transparent}
[data-theme=sombre] .onb .choix button{background:var(--blanc)}
[data-theme=sombre] .visite-bulle{background:var(--blanc);color:var(--encre)}
[data-theme=sombre] .gr-ok{color:#CFF2E4}[data-theme=sombre] .gr-doute,[data-theme=sombre] .gr-ambigu{color:#FBE3B0}[data-theme=sombre] .gr-inconnu{color:#FFD3CD}
[data-theme=sombre] .table-salle{color:var(--encre)}
[data-theme=sombre] .table-salle.arrivee{background:#16263F}
[data-theme=sombre] .cal-jour.rempli{background:#3A2E10}
[data-theme=sombre] .badge.speciale-b{background:#2A2550;color:#C9C2FF}
[data-theme=sombre] .badge.pro{background:#05080B}
[data-theme=sombre] .logo span{color:var(--encre)}
[data-theme=sombre] img,[data-theme=sombre] .logo svg{filter:none}
.micro[hidden]{display:none}
.icones-modules{grid-template-columns:repeat(auto-fill,minmax(4.6rem,1fr))}
.icones-modules a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.toast{bottom:10.5rem}
.hors-ligne{display:flex;align-items:center;gap:.5rem;background:var(--safran-clair);border:1px solid var(--safran-bord);color:var(--safran-texte);border-radius:14px;padding:.55rem .8rem;font-size:.85rem;font-weight:600}
.hors-ligne svg{width:18px;height:18px;flex:none}
.sablier-anim svg{width:42px;height:42px;color:var(--basilic);animation:clignote 1.4s infinite}
/* ----- 3.5 : planning du mois ----- */
.segment.quatre{grid-template-columns:repeat(4,minmax(0,1fr))}
.segment.quatre .btn{padding:0 .3rem;font-size:.82rem}
.pm-bloc{overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--blanc);border:1px solid var(--ligne);border-radius:var(--rayon);padding:.2rem;margin:0 -.4rem}
table.pm{border-collapse:collapse;width:100%;min-width:19rem;table-layout:fixed;font-size:.78rem}
table.pm th,table.pm td{border:1px solid var(--ligne);text-align:center;padding:0;height:2.6rem}
table.pm thead th{font-weight:500;color:var(--gris);line-height:1.1;padding:.2rem 0}
table.pm thead th span{display:block;font-size:.72rem}
table.pm thead th b{display:block;color:var(--encre);font-size:.9rem}
table.pm thead th i{display:block;font-style:normal;font-size:.62rem;color:var(--safran-texte);font-weight:600}
table.pm thead th.auj{background:var(--basilic-clair)}
table.pm th.nom{width:4.3rem;text-align:left;padding:0 .35rem;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table.pm th.nom b{font-weight:600}
table.pm th.nom .r{display:block;font-size:.62rem;color:var(--basilic);font-weight:600}
table.pm td button{all:unset;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:2.6rem;cursor:pointer;font-weight:600;box-sizing:border-box}
table.pm td button:focus-visible{outline:3px solid var(--safran);outline-offset:-3px}
table.pm td.trav{background:#B9B6AF;color:#17202A}
table.pm td.trav.conflit{background:var(--rouge-clair);color:var(--rouge);box-shadow:inset 0 0 0 2px var(--rouge)}
table.pm td.code{color:#17202A}
table.pm td.ferme,table.pm th.ferme{background:#2B323B;color:#fff}
table.pm thead th.ferme b,table.pm thead th.ferme span{color:#fff}
table.pm .hors{opacity:.4}
table.pm tr.pied td{font-weight:600;font-size:.75rem;height:2rem}
table.pm tr.pied th{font-size:.72rem;color:var(--gris)}
table.pm tr.pied td.ok{color:var(--basilic)}
table.pm tr.pied td.moyen{color:var(--safran-texte);background:var(--safran-clair)}
table.pm tr.pied td.ko{color:var(--rouge);background:var(--rouge-clair)}
[data-theme=sombre] table.pm td.trav{background:#5C6670;color:#fff}
[data-theme=sombre] table.pm td.code{filter:brightness(.55);color:#fff}
.pm-legende{display:flex;flex-wrap:wrap;gap:.4rem .9rem;font-size:.78rem;color:var(--gris)}
.pm-leg{display:inline-flex;align-items:center;gap:.3rem}
.pm-leg i{width:1rem;height:1rem;border-radius:4px;border:1px solid var(--ligne);display:inline-block}
.pm-leg i.trav{background:#B9B6AF}
.pm-resume{display:flex;flex-direction:column;gap:.6rem}
.pm-chiffres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.pm-chiffres>div{background:var(--ligne-2);border-radius:12px;padding:.5rem .6rem;display:flex;flex-direction:column;gap:.15rem}
.pm-chiffres b{font-size:1.05rem}
.pm-alerte{display:flex;gap:.6rem;padding:.45rem 0;border-bottom:1px solid var(--ligne-2);font-size:.88rem;line-height:1.4}
.pm-alerte:last-child{border-bottom:none}
.pm-alerte .sous{min-width:2.8rem}
.pm-alerte.erreur span:last-child{color:var(--rouge)}
.pm-choix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.pm-choix .btn{justify-content:flex-start;gap:.6rem;text-align:left;min-height:3.6rem;padding:.4rem .7rem;line-height:1.2}
.pm-choix .btn b{font-size:1.2rem;min-width:1.6rem}
.pm-choix .btn small{color:var(--gris);font-size:.75rem}
.pm-choix .btn.douteux{border-style:dashed;border-color:var(--safran-bord);background:var(--safran-clair)}
.pm-codes{display:flex;flex-wrap:wrap;gap:.4rem}
.pm-codes .btn{color:#17202A;border-color:var(--ligne)}
.pm-option{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}
.pm-option.meilleure{border:2px solid var(--basilic)}
.pm-saison{border:1px solid var(--ligne);border-radius:14px;padding:.7rem;display:flex;flex-direction:column;gap:.6rem;margin:0}
table.pm-horaires{width:100%;border-collapse:collapse}
table.pm-horaires th,table.pm-horaires td{padding:.15rem;text-align:center;font-size:.85rem}
table.pm-horaires input[type=time]{width:100%;min-height:44px}
table.pm-horaires input[type=checkbox]{width:1.4rem;height:1.4rem}
.pm-heure{display:flex;flex-direction:column;gap:.4rem}
.pm-heure .m{display:flex;align-items:center;gap:.5rem}
.pm-heure .m input{width:6rem}
.pm-heure[data-b=fixe] .m,.pm-heure[data-b=ouv] .h,.pm-heure[data-b=ferm] .h{display:none}
.pm-besoins{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.3rem}
.pm-besoins label{display:flex;flex-direction:column;align-items:center;gap:.15rem;font-size:.75rem;color:var(--gris)}
.pm-besoins input{width:100%;text-align:center;padding-left:0;padding-right:0}
.pm-poste-tete{display:flex;gap:.5rem;align-items:end;flex-wrap:wrap}
.pm-poste-tete .grow{flex:1;min-width:8rem}
.pm-code{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}
.pm-code .grow{flex:1;min-width:8rem}
.pm-code input[type=color]{width:2.6rem;height:2.6rem;padding:0;border-radius:10px}
@media print{.entete,.nav,.fab-micro,.fab-ajout{display:none}}
/* ==========================================================
   3.6 : ORDINATEUR (Windows, Mac) — plein écran à partir de 1100 px
   ========================================================== */
.nav a.nav-logo{display:none}
@media (min-width:1100px){
  html{scrollbar-gutter:stable}
  .app{max-width:none;margin:0;padding-left:15.5rem;min-height:100vh}
  .nav{top:0;bottom:0;left:0;right:auto;width:15.5rem;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:.15rem;border-top:none;border-right:1px solid var(--ligne);padding:1rem .7rem 1.2rem;overflow-y:auto}
  .nav-logo{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.2rem .6rem 1rem;text-decoration:none;color:var(--encre)}
  .nav-logo span{font-family:Outfit,sans-serif;font-weight:700;font-size:1.4rem;letter-spacing:-.02em}
  .nav-logo small{flex-basis:100%;font-size:.72rem;color:var(--gris);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nav a:not(.nav-logo){flex:none;max-width:none;flex-direction:row;justify-content:flex-start;gap:.75rem;padding:.5rem .8rem;border-radius:12px;font-size:.82rem;min-height:44px}
  .nav a:not(.nav-logo):hover{background:var(--ligne-2);color:var(--encre)}
  .nav a.actif{background:var(--basilic-clair);color:var(--basilic)}
  .nav a svg{flex:none}
  .nav a[href="#/plus"]{margin-top:auto}
  .entete{padding:1.1rem 2.2rem .6rem;border-bottom:1px solid transparent}
  .entete h1{font-size:1.6rem}
  .contenu{max-width:1180px;width:100%;margin:0 auto;padding:1rem 2.2rem 7rem}
  .app.large .contenu{max-width:none}
  .grille{grid-template-columns:repeat(auto-fill,minmax(13rem,1fr))}
  .deux{gap:1rem}
  /* fenêtres : au centre de l'écran, plus larges */
  .voile{align-items:center;padding:2rem}
  .feuille{border-radius:22px;max-height:88vh;max-width:760px;padding:1.3rem 1.5rem 1.6rem}
  .feuille>.entete-feuille{top:-1.3rem;margin:-1.3rem -1.5rem 0;padding:1.3rem 1.5rem .6rem}
  .toast{bottom:2rem;left:calc(50% + 7.75rem)}
  .fab-micro{right:2rem;bottom:2rem}
  .fab-ajout{left:17.5rem;right:auto;bottom:2.3rem}
  .barre-dicto{left:17rem;right:7rem;bottom:1.4rem;max-width:960px;margin:0}
  .barre-dicto.compacte{left:auto;right:7rem}
  body.avec-barre .contenu{padding-bottom:12rem}
  /* survol et souris */
  .btn,.puce,.rond,.liste>.item.cliquable,.tuile,.cal-jour,.creneau{transition:background .12s,border-color .12s,box-shadow .12s}
  .btn:hover,.rond:hover,.puce:hover{border-color:var(--encre-2)}
  .btn.principal:hover{filter:brightness(1.08)}
  .liste>.item.cliquable:hover,a.item:hover{background:var(--ligne-2)}
  .tuile:hover,.carte.cliquable:hover{border-color:var(--basilic);box-shadow:0 4px 18px rgba(23,32,42,.08)}
  /* listes longues : deux colonnes quand la page est large */
  .liste.deux-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .liste.deux-col>.item{border-right:1px solid var(--ligne-2)}
  .bandeau-dictee{max-height:50vh}
  .raccourcis{display:flex}
}
.raccourcis{display:none;gap:1rem;flex-wrap:wrap;font-size:.75rem;color:var(--gris)}
kbd{font:600 .72rem Inter,system-ui,sans-serif;background:var(--blanc);border:1px solid var(--ligne);border-bottom-width:2px;border-radius:6px;padding:.05rem .35rem;color:var(--encre-2)}
.fab-l{display:none}
.duo>.col{display:contents}
@media (min-width:1100px){
  .duo{display:grid;gap:1.4rem;align-items:start}
  .duo>.col{display:flex;flex-direction:column;gap:.9rem;min-width:0}
  .duo .bandeau-dictee{top:calc(var(--h-entete,64px) + .5rem)}
  .icones-modules{display:none}
  .entete .logo{display:none}
  .ajout-entete{display:flex;gap:.5rem;align-items:center}
  .ajout-entete .btn{min-height:46px;padding:0 1.1rem}
  .entete .grow{flex:1}
  /* le micro devient un bouton dans la barre de gauche */
  .nav{padding-bottom:6rem}
  .fab-micro{left:.9rem;right:auto;bottom:1rem;width:13.7rem;height:58px;border-radius:16px;justify-content:flex-start;gap:.6rem;padding:0 1rem;font:600 .82rem Inter,sans-serif}
  .fab-micro svg{width:24px;height:24px;flex:none}
  .fab-l{display:flex;align-items:center;gap:.5rem;white-space:nowrap}
  .fab-l kbd{background:rgba(255,255,255,.55);border-color:rgba(0,0,0,.15)}
  .barre-dicto{left:17rem;right:2rem}
  .barre-dicto.compacte{right:2rem}
  .toast{bottom:2rem}
}
@media (min-width:1100px){
  .nav a.nav-logo{flex:none;max-width:none;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.2rem .6rem 1rem;min-height:0}
  .duo .grille{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* 3.6 : feuille du mois sur ordinateur */
.pm-barre{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.2rem}
.pm-barre .segment{width:auto;display:inline-grid;grid-template-columns:repeat(4,auto)}
.pm-barre .segment .btn{padding:0 1rem;min-height:44px}
.pm-mois{display:flex;align-items:center;gap:.6rem}
.pm-mois b{font-size:1.15rem;min-width:10.5rem;text-align:center}
.pm-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-left:auto}
.pm-actions .btn{min-height:44px;padding:0 .9rem;font-size:.82rem}
.pm-grand-cadre{overflow:auto;max-height:calc(100vh - 15rem);background:var(--blanc);border:1px solid var(--ligne);border-radius:16px}
table.pm-grand{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;font-size:.74rem}
table.pm-grand th,table.pm-grand td{border-right:1px solid var(--ligne-2);border-bottom:1px solid var(--ligne-2);text-align:center;padding:0;height:2.35rem;min-width:2rem}
table.pm-grand thead th{position:sticky;top:0;z-index:3;background:var(--blanc);font-weight:500;color:var(--gris);line-height:1.1;padding:.3rem 0;border-bottom:2px solid var(--ligne)}
table.pm-grand thead th span{display:block;font-size:.66rem}
table.pm-grand thead th b{display:block;color:var(--encre);font-size:.86rem}
table.pm-grand thead th i{display:block;font-style:normal;font-size:.56rem;color:var(--safran-texte);font-weight:700}
table.pm-grand thead th.we{background:#F1EEE7}
table.pm-grand thead th.auj{background:var(--basilic-clair);box-shadow:inset 0 -3px 0 var(--basilic)}
table.pm-grand th.nom{position:sticky;left:0;z-index:2;background:var(--blanc);width:9.5rem;text-align:left;padding:0 .6rem;border-right:2px solid var(--ligne);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
table.pm-grand thead th.nom{z-index:4;color:var(--encre);font-weight:600;font-size:.78rem}
table.pm-grand th.nom b{display:block;font-size:.84rem;color:var(--encre)}
table.pm-grand th.nom small{display:block;font-size:.62rem;color:var(--gris);font-weight:400;overflow:hidden;text-overflow:ellipsis}
table.pm-grand th.tot,table.pm-grand td.tot{width:4.6rem;font-weight:600;font-size:.74rem;background:var(--fond)}
table.pm-grand td.tot small{display:block;font-weight:400;color:var(--gris);font-size:.62rem}
table.pm-grand td.we{background:#F7F5F0}
table.pm-grand td button{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:2.35rem;cursor:pointer;font-weight:600;user-select:none}
table.pm-grand td button:hover{box-shadow:inset 0 0 0 2px var(--safran-bord)}
table.pm-grand td button:focus-visible{outline:none;box-shadow:inset 0 0 0 3px var(--safran)}
table.pm-grand td.trav{background:#C4C1BA;color:#17202A}
table.pm-grand td.trav.conflit{background:var(--rouge-clair);color:var(--rouge);box-shadow:inset 0 0 0 2px var(--rouge)}
table.pm-grand td.ferme,table.pm-grand th.ferme{background:#2B323B;color:#fff}
table.pm-grand thead th.ferme b,table.pm-grand thead th.ferme span{color:#fff}
table.pm-grand td.sel{box-shadow:inset 0 0 0 3px var(--basilic);position:relative;z-index:1}
table.pm-grand td.sel button{background:rgba(35,97,79,.12)}
table.pm-grand tr.pied td{font-weight:600;font-size:.68rem;height:1.9rem}
table.pm-grand tr.pied th{font-size:.72rem;color:var(--gris);font-weight:600}
table.pm-grand tr.pied td.ok{color:var(--basilic)}
table.pm-grand tr.pied td.moyen{color:var(--safran-texte);background:var(--safran-clair)}
table.pm-grand tr.pied td.ko{color:var(--rouge);background:var(--rouge-clair)}
table.pm-grand tbody tr:hover th.nom{background:var(--ligne-2)}
[data-theme=sombre] table.pm-grand thead th.we,[data-theme=sombre] table.pm-grand td.we{background:#151B22}
[data-theme=sombre] table.pm-grand td.trav{background:#5C6670;color:#fff}
[data-theme=sombre] table.pm-grand td.code{filter:brightness(.55);color:#fff}
.pm-bas{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:1rem;align-items:start}
.pm-bas>.carte{display:flex;flex-direction:column;gap:.5rem}
.pm-heures{display:flex;flex-direction:column}
.pm-heures>div{display:grid;grid-template-columns:auto 1fr;gap:0 .6rem;padding:.4rem 0;border-bottom:1px solid var(--ligne-2);font-size:.84rem}
.pm-heures>div span{text-align:right;font-weight:600}
.pm-heures>div small{grid-column:1/3}
.pm-pop{position:fixed;z-index:15;width:19rem;background:var(--blanc);border:1px solid var(--ligne);border-radius:16px;box-shadow:0 16px 40px rgba(23,32,42,.22);padding:.8rem .9rem;display:flex;flex-direction:column;gap:.45rem;font-size:.85rem}
.pm-pop .rond{width:36px;height:36px;min-height:36px}
.pop-titre{font-size:.7rem;font-weight:700;color:var(--gris);text-transform:uppercase;letter-spacing:.04em;margin-top:.2rem}
.pop-postes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}
.pop-postes .btn{min-height:44px;padding:.2rem .5rem;justify-content:flex-start;gap:.5rem;font-size:.8rem}
.pop-postes .btn b{font-size:1.05rem;min-width:1.4rem}
.pop-postes .btn small{color:var(--gris);font-size:.7rem}
.pop-postes .btn.douteux{border-style:dashed;opacity:.75}
.pop-codes{display:flex;flex-wrap:wrap;gap:.35rem}
.pop-codes .btn{min-height:40px;min-width:3rem;padding:0 .5rem;color:#17202A;border-color:var(--ligne)}
.pop-actions{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.2rem}
.pop-actions .btn{min-height:40px;font-size:.78rem}
.pop-aide{font-size:.72rem}
/* 3.6 : agenda sur ordinateur */
.ag-barre{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.2rem}
.ag-barre .segment{display:inline-grid;grid-template-columns:auto auto;width:auto}
.ag-barre .segment .btn{padding:0 1.2rem;min-height:44px}
.ag-ordi{display:grid;grid-template-columns:minmax(0,1fr) 24rem;gap:1.2rem;align-items:start}
.ag-detail{position:sticky;top:calc(var(--h-entete,64px) + .6rem);max-height:calc(100vh - var(--h-entete,64px) - 2rem);overflow:auto;display:flex;flex-direction:column;gap:.7rem;background:var(--fond)}
.ag-detail .entete-feuille{position:static;margin:0;padding:0;box-shadow:none;background:none}
.ag-mois{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem}
.ag-ent{font-size:.72rem;font-weight:700;color:var(--gris);text-align:center;padding:.2rem 0}
.ag-case,.ag-col{all:unset;box-sizing:border-box;cursor:pointer;background:var(--blanc);border:1px solid var(--ligne);border-radius:12px;padding:.35rem .45rem;display:flex;flex-direction:column;gap:.2rem;min-height:7.2rem;overflow:hidden;font-size:.72rem;line-height:1.25}
.ag-case:hover,.ag-col:hover{border-color:var(--basilic)}
.ag-case:focus-visible,.ag-col:focus-visible{outline:3px solid var(--safran)}
.ag-case.autre{opacity:.4}
.ag-case.rempli,.ag-col.rempli{background:var(--blanc)}
.ag-case.auj,.ag-col.auj{border:2px solid var(--basilic)}
.ag-case.sel,.ag-col.sel{background:var(--basilic-clair);border-color:var(--basilic);box-shadow:0 0 0 2px var(--basilic)}
.ag-tete{display:flex;align-items:center;gap:.4rem;margin-bottom:.1rem}
.ag-tete b{font-size:.92rem}
.ag-meteo{margin-left:auto;display:inline-flex;align-items:center;gap:.1rem;font-size:.7rem}
.ag-meteo svg{width:16px;height:16px}
.ag-l{display:flex;align-items:center;gap:.3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--encre-2)}
.ag-l i{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block}
.ag-plus{font-size:.68rem;color:var(--gris);font-weight:600}
.ag-semaine{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.4rem}
.ag-col{min-height:24rem;font-size:.76rem}
.ag-col .ag-tete{flex-wrap:wrap;border-bottom:1px solid var(--ligne-2);padding-bottom:.3rem;margin-bottom:.2rem}
.ag-col .ag-tete span{font-size:1.2rem;font-weight:700}
.ag-col .ag-l{white-space:normal}
[data-theme=sombre] .ag-detail{background:var(--fond)}
/* écrans d'ordinateur moyens (portables) : barre de gauche réduite aux icônes, plus de place pour le contenu */
@media (min-width:1100px) and (max-width:1499px){
  .app{padding-left:5.2rem}
  .nav{width:5.2rem;padding-left:.5rem;padding-right:.5rem;align-items:center}
  .nav a:not(.nav-logo){justify-content:center;padding:.5rem;width:3.6rem}
  .nav a:not(.nav-logo) .nav-l{display:none}
  .nav a.nav-logo{padding:.2rem 0 1rem;justify-content:center}
  .nav-logo span,.nav-logo small{display:none}
  .fab-micro{left:.75rem;width:58px;padding:0;justify-content:center}
  .fab-l{display:none}
  .fab-ajout{left:7rem}
  .barre-dicto{left:7rem}
  .toast{left:calc(50% + 2.6rem)}
}
.ag-ordi{grid-template-columns:minmax(0,1fr) 20rem}
.ag-l{font-size:.68rem}
@media (min-width:1700px){.ag-ordi{grid-template-columns:minmax(0,1fr) 24rem}.ag-case{min-height:8.5rem}}
.offres-cote{display:flex;flex-direction:column;gap:.9rem}
.colonnes{display:flex;flex-direction:column;gap:.9rem}
@media (min-width:1100px){
  .offres-cote{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .colonnes{display:block;columns:2;column-gap:1.2rem}
  .colonnes>*{break-inside:avoid;margin:0 0 .9rem;display:block}
  .colonnes>.segment,.colonnes>.puces{column-span:all}
  .liste.deux-col{grid-auto-rows:auto}
  .liste.deux-col>.item:nth-child(2n){border-right:none}
}
/* 3.7 : bloc-notes */
.note-nouvelle{display:flex;flex-direction:column;gap:.6rem}
.note-nouvelle textarea,#ne-txt{font-size:1rem;line-height:1.55;min-height:8rem;resize:vertical}
#ne-txt{min-height:14rem}
.notes-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.6rem}
.note-carte{all:unset;box-sizing:border-box;cursor:pointer;background:#FFF9E6;border:1px solid #EADFB8;border-radius:16px;padding:.8rem .9rem;display:flex;flex-direction:column;gap:.5rem;min-height:6rem}
.note-carte:hover{border-color:var(--safran-bord);box-shadow:0 4px 14px rgba(23,32,42,.08)}
.note-carte:focus-visible{outline:3px solid var(--safran)}
.note-carte.epinglee{border:2px solid var(--safran-bord)}
.note-texte{white-space:pre-wrap;overflow:hidden;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.45;color:var(--encre)}
.note-pied{display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-size:.75rem;color:var(--gris);margin-top:auto}
[data-theme=sombre] .note-carte{background:#2A2618;border-color:#4A4226}
/* 3.8 : confirmation des modifications, heures sup. */
.conf-bloc{display:flex;flex-direction:column;gap:.35rem;background:var(--blanc);border:1px solid var(--ligne);border-radius:14px;padding:.7rem .8rem;line-height:1.45}
.conf-bloc.alerte{border-color:var(--safran-bord);background:var(--safran-clair)}
.conf-trou{border:none;margin:0;padding:.2rem 0;display:flex;flex-direction:column;gap:.3rem}
.conf-trou legend{padding:0;margin-bottom:.2rem}
.conf-choix{display:flex;gap:.6rem;align-items:flex-start;padding:.45rem .55rem;border:1px solid var(--ligne);border-radius:12px;background:var(--blanc);cursor:pointer}
.conf-choix input{width:1.3rem;height:1.3rem;margin-top:.1rem;flex:none}
.conf-choix small{display:block;color:var(--gris);font-size:.78rem}
.conf-sem{display:flex;flex-direction:column;gap:.3rem;padding:.3rem 0;border-bottom:1px solid var(--ligne-2)}
.conf-sem:last-child{border-bottom:none}
.conf-hs{display:flex;flex-wrap:wrap;gap:.4rem .9rem;align-items:center;font-size:.9rem}
.conf-hs label{display:inline-flex;gap:.35rem;align-items:center;cursor:pointer}
.conf-hs input{width:1.2rem;height:1.2rem}
.cc-heures{display:flex;flex-direction:column;gap:.5rem}
.cc-ligne{display:flex;align-items:center;gap:.4rem}
.cc-ligne label{min-width:4.2rem;font-weight:600}
.cc-ligne .btn{min-width:3.2rem;padding:0 .4rem}
.cc-ligne input[type=time]{flex:1;min-width:0}
