/* =====================================================================
   BatiPlanif — les aperçus de l'application (accueil, Fonctionnalités).

   Deux cadres, deux expériences : une FENÊTRE DE NAVIGATEUR pour le
   bureau (organiser, planifier), un TÉLÉPHONE pour le terrain
   (intervenir). Le contenu est du HTML et du CSS, jamais une capture :
   net à toute taille, léger, daté du jour, et sans aucune donnée réelle
   (functions/SiteMock.php).

   ÉPURÉ ET NET. Moins d'éléments, mais plus grands : aucun texte sous
   ~9 px à l'écran (en dessous, il se lit « pixélisé »), des traits
   d'icônes un peu plus appuyés, aucune rotation sur du texte à plat (une
   rotation de quelques degrés le rend flou), aucune promotion forcée de
   calque (`backface-visibility`, `will-change`), qui figerait le rendu à
   basse résolution. Une perspective 3D, elle, n'est jamais laissée au
   repos (home.css) : elle fait du bloc une image déformée, floue sur un
   écran classique.

   TOUT EST EN `em`. La police d'une fenêtre suit la largeur de son cadre
   (`--ref` = largeur de référence, en em) : l'aperçu se réduit comme une
   image, sans jamais déborder de la page. En dessous de 7,5 px, il cesse
   de rétrécir et se coupe à droite, en fondu.

   ANIMATIONS : une par aperçu, jouée une seule fois quand il apparaît
   (`.is-in`, posé par site.js). L'état SANS animation est l'état final :
   sans script, ou pour qui préfère moins de mouvement (site.css coupe
   toutes les durées), l'aperçu est simplement là, complet.

   Aucun style en ligne, aucune position calculée : la politique de
   sécurité du site interdit `style-src 'unsafe-inline'`.
   ===================================================================== */

/* =========================== TEINTES ================================== */
/* Par type de travail : le trait (--c), le texte (--tx), le fond (--bg)
   et le contour (--bd) — la même dérivation douce que l'application. */
.t-blue  {--c:#2563EB;--tx:#1E40AF;--bg:#EFF5FF;--bd:#C9DAFB}
.t-green {--c:#16A34A;--tx:#166534;--bg:#EDFBF2;--bd:#BDEBCF}
.t-amber {--c:#F59E0B;--tx:#92400E;--bg:#FFF7E9;--bd:#FBE1AE}
.t-violet{--c:#7C3AED;--tx:#5B21B6;--bg:#F5F0FE;--bd:#DCCDFB}
.t-cyan  {--c:#0891B2;--tx:#155E75;--bg:#ECF8FC;--bd:#B9E6F3}
.t-rose  {--c:#E11D48;--tx:#9F1239;--bg:#FFF1F4;--bd:#FBC8D3}

/* Par colonne, compteur ou insigne : la couleur (--cc) et son fond (--cb). */
.c-violet{--cc:#8B5CF6;--cb:#F3EEFE}
.c-blue  {--cc:#3B82F6;--cb:#EBF2FE}
.c-amber {--cc:#F59E0B;--cb:#FEF5E4}
.c-green {--cc:#22C55E;--cb:#EAFAF0}

/* Le liseré des travaux RÉCURRENTS : le masque exact de l'application
   (app.css, --recur-mask) — des tirets arrondis, un nombre entier sur la
   hauteur (mask-repeat:round), le premier et le dernier touchant les
   bords. */
.mock{
  --recur-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='14' viewBox='0 0 4 14' preserveAspectRatio='none'%3E%3Crect y='3' width='4' height='8' rx='2'/%3E%3C/svg%3E");
}
.rec{position:relative;border-left-width:0 !important}
.rec::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:.34em;background:var(--c);
  -webkit-mask-image:var(--recur-mask),linear-gradient(#000,#000),linear-gradient(#000,#000);
  -webkit-mask-size:.34em 1.2em,.34em .34em,.34em .34em;-webkit-mask-repeat:round,no-repeat,no-repeat;
  -webkit-mask-position:0 0,0 0,0 100%;
  mask-image:var(--recur-mask),linear-gradient(#000,#000),linear-gradient(#000,#000);
  mask-size:.34em 1.2em,.34em .34em,.34em .34em;mask-repeat:round,no-repeat,no-repeat;
  mask-position:0 0,0 0,0 100%;
}

/* Avatars : un rond teinté, les initiales, un liseré blanc — comme dans
   l'application. `.on` : la ressource planifiée, cerclée de bleu (app.css,
   .av.on-plan) : elle ressort de la carte. */
.av{
  display:inline-grid;place-items:center;flex:none;width:2.6em;height:2.6em;border-radius:50%;
  font-size:.92em;font-weight:700;line-height:1;letter-spacing:-.02em;text-decoration:none;color:#fff;background:#475569;
  border:.15em solid #fff;box-shadow:0 .08em .2em rgba(15,23,42,.16);
}
.av.on{box-shadow:0 0 0 .16em var(--blue-500),0 .15em .4em rgba(15,23,42,.2)}
.av-rose{background:#EC4899} .av-teal{background:#0D9488} .av-violet{background:#8B5CF6}
.av-amber{background:#F59E0B} .av-green{background:#22C55E}

/* L'espace de travail courant : une pastille teintée, un point. */
.spc{
  display:inline-flex;align-items:center;gap:.45em;padding:.3em .85em .3em .7em;border-radius:99px;
  font-size:1em;font-weight:700;white-space:nowrap;line-height:1.3;
}
.spc i{width:.6em;height:.6em;border-radius:50%;flex:none}
.spc-amber{background:#FEF3C7;color:#B45309} .spc-amber i{background:#F59E0B}
.spc-green{background:#DCFCE7;color:#15803D} .spc-green i{background:#22C55E}
.spc-blue {background:#DBEAFE;color:#1D4ED8} .spc-blue i{background:#3B82F6}
.spc-cyan {background:#CFFAFE;color:#0E7490} .spc-cyan i{background:#06B6D4}

.mock svg{flex:none}
/* Des traits un peu plus appuyés : à petite taille, 1,8 se lit flou. */
.mock svg[stroke]{stroke-width:2}

/* ==================== LE CADRE : FENÊTRE DE BUREAU ==================== */
.mock{position:relative;min-width:0;container-type:inline-size}
.mock-desk{--ref:80}

.bw{
  position:relative;overflow:hidden;border-radius:1.1em;background:#fff;
  font-size:10px;font-size:clamp(7.5px, calc(100cqi / var(--ref)), 12px);
  line-height:1.35;color:var(--ink);text-align:left;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.07),
    0 1px 2px rgba(10,22,40,.04),
    0 1.2em 2.4em rgba(10,22,40,.07),
    0 4em 8em -1.6em rgba(10,22,40,.22);
  transition:box-shadow .35s;
}
/* Au survol d'une fenêtre : l'ombre s'étend — de la profondeur, sans
   déplacer un seul texte. */
@media (hover:hover){
  .mock-desk:hover .bw{box-shadow:0 0 0 1px rgba(15,23,42,.08),0 1px 2px rgba(10,22,40,.05),
    0 1.6em 3em rgba(10,22,40,.1),0 5em 9em -1.6em rgba(10,22,40,.3)}
}

.bw-bar{display:flex;align-items:center;gap:.6em;height:3em;padding:0 1.2em;background:#F6F8FB;border-bottom:1px solid #E7ECF3}
.bw-bar > i{width:1em;height:1em;border-radius:50%;background:#FF5F57;flex:none}
.bw-bar > i:nth-child(2){background:#FEBC2E}
.bw-bar > i:nth-child(3){background:#28C840}
.bw-url{
  display:flex;align-items:center;justify-content:center;gap:.5em;margin:0 auto;min-width:34%;
  height:2em;padding:0 1.4em;border-radius:.7em;background:#fff;border:1px solid #E5EAF1;
  font-size:1.05em;font-weight:500;color:#64748B;
}
.bw-url svg{width:1em;height:1em;color:#16A34A}

/* --- L'application : menu latéral + vue --- */
.ax{display:grid;grid-template-columns:16em minmax(0,1fr);min-width:calc(var(--ref) * 1em - 2px)}

.ax-side{display:flex;flex-direction:column;gap:.15em;padding:1.2em .9em 1.6em;background:#F3F5F9;border-right:1px solid #E7ECF3;min-width:0}
.ax-brand{display:flex;align-items:center;gap:.65em;padding:.1em .45em 1em}
.ax-brand img:first-child{width:2.6em;height:2.6em;border-radius:26.3%;flex:none}
.ax-brand-name{display:block;height:1.4em;width:auto}
.ax-ws{
  display:flex;align-items:center;gap:.6em;margin:0 0 .9em;padding:.65em .7em;border-radius:.9em;
  background:#fff;border:1px solid #E5EAF1;box-shadow:0 1px 2px rgba(15,23,42,.05);min-width:0;
}
.ax-ws > i{display:grid;place-items:center;width:2em;height:2em;border-radius:.6em;flex:none}
.ax-ws > i::after{content:"";width:.7em;height:.7em;border-radius:50%;background:currentColor}
.ax-ws > i.spc-amber{color:#F59E0B} .ax-ws > i.spc-green{color:#22C55E}
.ax-ws > i.spc-blue{color:#3B82F6} .ax-ws > i.spc-cyan{color:#06B6D4}
.ax-ws > span{min-width:0;font-size:1.02em;font-weight:700;line-height:1.2;color:var(--navy-900)}
.ax-ws svg{width:1.1em;height:1.1em;color:#94A3B8;margin-left:auto}
.ax-nav{display:flex;align-items:center;gap:.8em;padding:.7em .75em;border-radius:.8em;color:#475569;min-width:0}
.ax-nav svg{width:1.5em;height:1.5em;color:#8A97AD}
.ax-nav b{font-size:1.1em;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-nav.on{background:#DFE8FB;color:var(--navy-900)}
.ax-nav.on b{font-weight:700}
.ax-nav.on svg{color:var(--blue-600)}
.ax-side hr{width:100%;margin:.7em 0;border:0;border-top:1px solid #E3E8F0}

.ax-main{display:flex;flex-direction:column;min-width:0;background:#fff}
.ax-head{display:flex;align-items:center;gap:1.2em;padding:1.1em 1.6em;border-bottom:1px solid #EEF2F7}
.ax-ttl{display:flex;align-items:center;gap:.9em;margin-right:auto;min-width:0}
.ax-ttl > b{font-size:1.75em;font-weight:800;letter-spacing:-.02em;color:var(--navy-900);line-height:1.15;white-space:nowrap}
.ax-bell{position:relative;display:grid;place-items:center;color:#475569;flex:none}
.ax-bell svg{width:1.75em;height:1.75em}
.ax-bell i{
  position:absolute;top:-.55em;right:-.7em;display:grid;place-items:center;min-width:1.55em;height:1.55em;
  border-radius:99px;background:#EF4444;color:#fff;font-style:normal;font-size:.85em;font-weight:700;border:.15em solid #fff;
}
.ax-new{
  display:flex;align-items:center;gap:.45em;height:2.8em;padding:0 1.15em;border-radius:.8em;flex:none;
  background:linear-gradient(#3B82F6,#2563EB);color:#fff;font-weight:700;font-size:1.08em;white-space:nowrap;
  box-shadow:0 .2em .6em rgba(37,99,235,.28);
}
.ax-new svg{width:1.1em;height:1.1em}

.ax-tools{display:flex;align-items:center;gap:.6em;padding:.9em 1.6em;border-bottom:1px solid #EEF2F7;overflow:hidden}
.ax-btn{display:grid;place-items:center;width:2.7em;height:2.7em;border-radius:.7em;border:1px solid #E5EAF1;color:#475569;flex:none}
.ax-btn svg{width:1.25em;height:1.25em}
.ax-chip{
  display:inline-flex;align-items:center;gap:.5em;height:2.55em;padding:0 1em;border-radius:.7em;flex:none;
  border:1px solid #E5EAF1;font-size:1.06em;font-weight:600;color:#334155;white-space:nowrap;
}
.ax-chip svg{width:1.1em;height:1.1em;color:#64748B}
.ax-today{background:#EEF4FE;border-color:#D8E5FC;color:var(--blue-700)}
.ax-seg{display:inline-flex;padding:.22em;border-radius:.8em;background:#F0F3F8;flex:none}
.ax-seg i{display:flex;align-items:center;font-style:normal;font-size:1.06em;font-weight:600;color:#64748B;padding:.32em .9em;border-radius:.6em}
.ax-seg i.on{background:#fff;color:var(--blue-600);box-shadow:0 1px 2px rgba(15,23,42,.08),0 1px 3px rgba(15,23,42,.06)}
.ax-count{margin-left:auto;font-size:1.06em;color:#64748B;white-space:nowrap}
.ax-right{margin-left:auto}
.ax-body{flex:1;background:#F7F9FC;min-width:0}

/* ========================= PLANNING (commun) ========================== */
.pl-res-h{
  display:flex;align-items:center;gap:.4em;align-self:center;margin:.6em 1em;
  font-size:1em;font-weight:700;color:#64748B;white-space:nowrap;
}
.pl-res-h svg{width:1.1em;height:1.1em}
.pl-row{position:relative;border-bottom:1px solid #EDF1F6;background:#fff}
.pl-row:last-child{border-bottom:0}
.pl-res{display:flex;align-items:center;gap:.8em;padding:0 1em;border-right:1px solid #EDF1F6;min-width:0;background:#fff;z-index:2}
.pl-res > span{display:flex;flex-direction:column;min-width:0}
.pl-res b{font-size:1.15em;font-weight:700;color:var(--navy-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-res small{display:flex;align-items:center;gap:.45em;margin-top:.1em;font-size:.98em;color:#64748B;white-space:nowrap;overflow:hidden}
.ld{font-style:normal;font-weight:700;color:#15803D;background:#E7F8EE;border-radius:.4em;padding:0 .35em}

/* Le créneau : fond clair, contour, trait gauche saturé — le bloc réel. */
.sl{
  position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:.2em;
  margin:.4em .3em;padding:.5em .7em .5em .85em;min-width:0;border-radius:.65em;overflow:hidden;
  background:var(--bg);border:1px solid var(--bd);border-left:.3em solid var(--c);
  box-shadow:0 1px 2px rgba(15,23,42,.05);
}
.sl b{display:block;font-size:1.12em;font-weight:700;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl b svg{display:inline-block;width:.95em;height:.95em;vertical-align:-.1em;margin-right:.35em}
.sl em{display:block;font-style:normal;font-size:1em;color:#64748B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl-ft{display:flex;align-items:center;gap:.5em;margin-top:.15em;white-space:nowrap;overflow:hidden}
.sl time{margin-left:auto;font-size:.95em;font-weight:700;color:#475569}
.sl.rec{padding-left:1.05em}
.sl.rec::before{border-radius:.65em 0 0 .65em}
/* L'état du créneau : une pastille, comme dans l'application. */
.st{display:inline-flex;align-items:center;gap:.35em;padding:.12em .6em .12em .5em;border-radius:99px;font-style:normal;font-size:.92em;font-weight:700}
.st::before{content:"";width:.5em;height:.5em;border-radius:50%;background:currentColor}
.st-plan{color:#2563EB;background:#E3EDFD} .st-now{color:#B45309;background:#FEF0D5} .st-done{color:#15803D;background:#DDF6E7}
/* Créneau étroit : l'état se réduit à sa pastille de couleur, comme dans
   l'application quand la place manque — l'horaire, lui, reste entier. */
.sl.nar .st{gap:0;padding:.28em}
.sl.nar .st span{display:none}
/* Un créneau court n'a la place que de son titre. */
.sl.sm .sl-ft,.sl.sm em{display:none}
/* Un créneau étroit garde son titre entier, sur deux lignes au besoin. */
.sl.wr b{white-space:normal;line-height:1.15;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.sl.wr em{display:none}
/* Un travail sur plusieurs jours : un trait épais en bas, comme une période. */
.sl.per{border-bottom-width:.28em;border-bottom-color:var(--c)}
/* Une absence : hachurée, grise, centrée. */
.sl.abs{
  flex-direction:row;align-items:center;justify-content:center;gap:.45em;
  background:repeating-linear-gradient(135deg,#F3F5F9 0 .55em,#E9EDF3 .55em 1.1em);
  border:1px dashed #CBD5E1;color:#64748B;font-size:1.02em;font-weight:700;box-shadow:none;
}
.sl.abs svg{width:1.1em;height:1.1em}

/* ===================== PLANNING DE LA SEMAINE (héros) ================= */
/* Des jours de largeur fixe (`--dw`) dans une piste qui coupe à droite —
   trois jours entiers en vue, comme le vrai Planning zoomé ; la grille se
   décale (`sh*`) pour que le jour réel y soit toujours. Une colonne par
   jour : deux créneaux du même jour s'empilent. */
.pl-week{--rw:12.5em;--dw:12em}
.pl-week .pl-head,.pl-week .pl-row{display:flex;align-items:stretch}
.pl-week .pl-head{background:#fff;border-bottom:1px solid #E7ECF3}
.pl-week .pl-res,.pl-week .pl-res-h{flex:none;width:var(--rw)}
.pl-week .pl-res-h{width:auto;flex-basis:calc(var(--rw) - 2em)}
.pl-week .pl-res{min-height:6.4em}
.pl-track{flex:1;min-width:0;overflow:hidden;position:relative}
.pl-days{
  position:relative;display:grid;grid-template-columns:repeat(5,var(--dw));align-content:center;
  width:calc(var(--dw) * 5);height:100%;grid-auto-flow:dense;padding:.2em 0;
}
.pl-week.sh1 .pl-days{margin-left:calc(var(--dw) * -1)}
.pl-week.sh2 .pl-days{margin-left:calc(var(--dw) * -2)}
.pl-week .pl-head .pl-days{padding:0}
.pl-day{display:flex;align-items:center;padding:.65em .8em;border-left:1px solid #EDF1F6}
.pl-day b{font-size:1.08em;font-weight:700;color:#334155;padding:.15em .55em;border-radius:.5em}
.pl-day.today b{background:var(--blue-600);color:#fff}
/* La colonne du jour, teintée sur toute la hauteur ; les jours séparés. */
.pl-week .pl-row .pl-days{background-image:linear-gradient(90deg,#EDF1F6 1px,transparent 1px);background-size:var(--dw) 100%}
.pl-week .pl-row .pl-days::after{
  content:"";position:absolute;top:0;bottom:0;z-index:0;width:var(--dw);left:calc(var(--dw) * var(--di,0));
  background:rgba(37,99,235,.045);pointer-events:none;
}
.pl-week.d1{--di:1} .pl-week.d2{--di:2} .pl-week.d3{--di:3} .pl-week.d4{--di:4}
.pl-days .dd0{grid-column-start:1} .pl-days .dd1{grid-column-start:2} .pl-days .dd2{grid-column-start:3}
.pl-days .dd3{grid-column-start:4} .pl-days .dd4{grid-column-start:5}
.pl-days .dn1{grid-column-end:span 1} .pl-days .dn2{grid-column-end:span 2} .pl-days .dn4{grid-column-end:span 4}

/* ================ PLANNING DU JOUR + « À PLANIFIER » ================== */
.pl-split{display:flex;min-height:100%}
.pl-dayv{flex:1;min-width:0;--rw:11em;background:#fff}
.pl-dayv .pl-head,.pl-dayv .pl-row{display:grid;grid-template-columns:var(--rw) repeat(18,minmax(0,1fr));align-items:center}
.pl-dayv .pl-head{border-bottom:1px solid #E7ECF3}
.pl-dayv .pl-row{min-height:6.4em;grid-auto-flow:dense;
  background-image:linear-gradient(90deg,#F0F3F8 1px,transparent 1px);
  background-size:calc((100% - var(--rw)) / 9) 100%;background-position:var(--rw) 0;background-repeat:repeat-x}
.pl-dayv .pl-res{grid-column:1;align-self:stretch}
.pl-hr{grid-column:span 2;font-size:.95em;font-weight:600;color:#64748B;padding:.9em 0 .8em .4em;border-left:1px solid #EDF1F6}
.pl-rows{position:relative}
/* La ligne rouge de l'heure : 9 h 45, l'heure du téléphone (9:41). */
.pl-now{position:absolute;top:0;bottom:0;z-index:3;width:.16em;margin-left:-.08em;background:#EF4444;left:calc(var(--rw) + (100% - var(--rw)) * 3.5 / 18)}
.pl-now::before{content:"";position:absolute;top:-.35em;left:-.3em;width:.76em;height:.76em;border-radius:50%;background:#EF4444}
/* Toutes les demi-heures de 8 h à 17 h : l'histoire (SiteMock::PLAN) se place
   où elle veut, sans classe manquante. */
.pl-dayv .x0{grid-column-start:2}   .pl-dayv .x1{grid-column-start:3}   .pl-dayv .x2{grid-column-start:4}   .pl-dayv .x3{grid-column-start:5}
.pl-dayv .x4{grid-column-start:6}   .pl-dayv .x5{grid-column-start:7}   .pl-dayv .x6{grid-column-start:8}   .pl-dayv .x7{grid-column-start:9}
.pl-dayv .x8{grid-column-start:10}  .pl-dayv .x9{grid-column-start:11}  .pl-dayv .x10{grid-column-start:12} .pl-dayv .x11{grid-column-start:13}
.pl-dayv .x12{grid-column-start:14} .pl-dayv .x13{grid-column-start:15} .pl-dayv .x14{grid-column-start:16} .pl-dayv .x15{grid-column-start:17}
.pl-dayv .x16{grid-column-start:18} .pl-dayv .x17{grid-column-start:19}
/* La ligne « Non attribuée » (en tête) : pointillés dessous, avatar vide, créneau en tirets. */
.pl-row.pl-none{min-height:4.6em;border-bottom:1.5px dashed #94A3B8;background-color:#F5F7FB}
.pl-none .pl-res b{color:#475569;font-weight:600;white-space:normal;line-height:1.15}
.av.av-none{background:transparent;color:#94A3B8;border:.15em dashed #94A3B8;box-shadow:none}
.av.av-none svg{width:1.1em;height:1.1em}
.sl.none{border-style:dashed;background:#fff;opacity:.9}
.pl-dayv .w1{grid-column-end:span 1}   .pl-dayv .w2{grid-column-end:span 2}   .pl-dayv .w3{grid-column-end:span 3}   .pl-dayv .w4{grid-column-end:span 4}
.pl-dayv .w5{grid-column-end:span 5}   .pl-dayv .w6{grid-column-end:span 6}   .pl-dayv .w7{grid-column-end:span 7}   .pl-dayv .w8{grid-column-end:span 8}
.pl-dayv .w9{grid-column-end:span 9}   .pl-dayv .w10{grid-column-end:span 10} .pl-dayv .w11{grid-column-end:span 11} .pl-dayv .w12{grid-column-end:span 12}
.pl-dayv .w13{grid-column-end:span 13} .pl-dayv .w14{grid-column-end:span 14} .pl-dayv .w15{grid-column-end:span 15} .pl-dayv .w16{grid-column-end:span 16}
.pl-dayv .w17{grid-column-end:span 17} .pl-dayv .w18{grid-column-end:span 18}

.apl{width:13.5em;flex:none;padding:1.1em 1em;background:#fff;border-left:1px solid #E7ECF3;position:relative;z-index:4}
.apl-h{display:flex;align-items:center;gap:.5em;margin:0 0 .9em}
.apl-h b{font-size:1.15em;font-weight:800;color:var(--navy-900)}
.apl-h i{font-style:normal;font-size:.9em;font-weight:800;background:var(--blue-600);color:#fff;border-radius:99px;padding:.08em .6em}
.apl-card{
  margin-bottom:.75em;padding:.8em .9em;border-radius:.8em;background:#fff;
  border:1px solid #E5EAF2;border-left:.3em solid var(--c);box-shadow:0 1px 3px rgba(15,23,42,.06);
}
.apl-card small{display:block;font-size:.85em;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--c)}
.apl-card b{display:block;margin:.1em 0;font-size:1.08em;font-weight:700;color:#0F172A;line-height:1.25}
.apl-card em{display:block;font-style:normal;font-size:.95em;color:#64748B}
.apl-card span{display:inline-flex;align-items:center;gap:.3em;margin-top:.5em;font-size:.92em;font-weight:700;color:#475569;background:#F1F5F9;padding:.12em .55em;border-radius:.45em}
.apl-card span svg{width:1em;height:1em}
/* La carte déposée a quitté le panneau : état final, elle n'y est plus. */
.apl-card.go{opacity:0;max-height:0;margin:0;padding-block:0;border-width:0;overflow:hidden}
.is-in .apl-card.go{animation:apl-go .5s .55s ease-in both}
@keyframes apl-go{
  0%{opacity:1;max-height:9em;margin-bottom:.75em;padding-block:.8em;border-width:1px;border-left-width:.3em}
  40%{opacity:.25}
}
.is-in .sl.drop{animation:pl-drop 1.15s .5s cubic-bezier(.3,.7,.2,1) both}
@keyframes pl-drop{
  0%{transform:translate(16em,-5em) rotate(3deg);box-shadow:0 1.6em 2.8em rgba(10,22,40,.26);opacity:0}
  12%{opacity:1}
  72%{transform:translate(0,-.35em) rotate(0);box-shadow:0 1.2em 2.2em rgba(10,22,40,.2)}
  100%{transform:none;box-shadow:0 1px 2px rgba(15,23,42,.05)}
}

/* ================================ FLUX ================================ */
.fx{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2em;padding:1.4em 1.6em 1.6em;align-items:start}
.fx-col{border-radius:1.1em;padding:1em .95em .3em;border-top:.32em solid var(--cc);background:var(--cb)}
.fx-h{display:flex;align-items:center;gap:.55em;margin:0 0 .9em}
.fx-h i{width:.7em;height:.7em;border-radius:50%;background:var(--cc)}
.fx-h b{font-size:1.22em;font-weight:800;color:var(--navy-900)}
.fx-h small{margin-left:auto;font-size:1em;font-weight:700;padding:.1em .7em;border-radius:99px;background:#fff;color:#334155}
.fc{
  position:relative;margin-bottom:.85em;padding:.9em 1em .95em 1.1em;background:#fff;
  border:1px solid #E7ECF3;border-left:.32em solid var(--c);border-radius:.85em;box-shadow:0 1px 3px rgba(15,23,42,.06);
}
.fc.rec{padding-left:1.3em}
/* Le liseré épouse les coins arrondis de la carte (comme .card-recur). */
.fc.rec::before{border-radius:.85em 0 0 .85em}
.fc small{display:flex;align-items:center;gap:.55em;font-size:.9em;color:#94A3B8;font-weight:700;white-space:nowrap;overflow:hidden}
.fc small i{font-style:normal;color:var(--c);letter-spacing:.05em;text-transform:uppercase;font-weight:800}
.fc small svg{width:1.15em;height:1.15em;color:var(--c)}
.fc > b{display:block;margin:.3em 0 .2em;font-size:1.2em;font-weight:800;color:#0F172A;line-height:1.25}
.fc > em{display:flex;align-items:center;gap:.4em;font-style:normal;font-size:1em;color:#64748B;white-space:nowrap;overflow:hidden}
.fc > em svg{width:1em;height:1em}
.fc-tags{display:flex;flex-wrap:wrap;gap:.35em;margin-top:.6em}
.tg{display:inline-flex;align-items:center;gap:.25em;font-style:normal;font-size:.92em;font-weight:800;padding:.18em .6em;border-radius:.45em;border:.15em solid}
.tg-green{background:#ECFDF3;border-color:#A7E8C2;color:#15803D}
.tg-red{background:#FEF2F2;border-color:#FBC5C5;color:#B91C1C}
.fc-prog{display:flex;align-items:center;gap:.6em;margin-top:.7em}
.fc-prog .bar{flex:1;height:.5em;border-radius:99px;background:#EAEEF4;overflow:hidden}
.fc-prog .bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3B82F6,#2563EB)}
.fc-prog .bar .p35{width:35%} .fc-prog .bar .p60{width:60%} .fc-prog .bar .p100{width:100%;background:linear-gradient(90deg,#34D399,#10B981)}
.fc-prog b{font-size:.95em;color:#475569}
/* Pièces jointes et conversation : grises, foncées quand il y a du contenu. */
.fc-row{display:flex;margin-top:.6em}
.fc-ics{display:flex;align-items:center;gap:.55em;color:#CBD5E1}
.fc-prog .fc-ics{margin-left:.15em}
.fc-ics svg{display:block;width:1.05em;height:1.05em}
.fc-ics .on{color:#64748B}
/* Le nombre de créneaux, en tête du pied de carte. */
.fc-pl{display:inline-flex;align-items:center;gap:.25em;flex:none;font-size:.85em;color:#64748B;white-space:nowrap}
.fc-ft .tm{font-size:.92em;padding:.2em .45em}
.fc:has(.fc-pl) .fc-ft{gap:.35em}
.fc-pl svg{width:1em;height:1em}
.fc-ft{display:flex;align-items:center;gap:.45em;min-width:0;margin-top:.8em;padding-top:.75em;border-top:1px solid #EEF2F7}
.tm{flex:none;font-style:normal;font-size:1em;font-weight:800;padding:.2em .55em;border-radius:.5em;background:#EAF1FE;color:#1D4ED8;font-variant-numeric:tabular-nums}
.tm.sp{background:#E5F8EC;color:#047857}
/* Les ressources : grandes, cerclées, en chevauchement — elles ressortent. */
.fc-ft .avs{flex:none;margin-left:auto;display:flex}
.fc-ft .av{width:2.55em;height:2.55em;font-size:.9em}
.fc-ft .av + .av{margin-left:-.6em}
/* La carte qui change de colonne : elle part de « Planifié », soulevée,
   et se pose en tête d'« En cours ». */
.is-in .fc.move{animation:fx-move 1.5s .6s cubic-bezier(.55,0,.2,1) both;z-index:5}
@keyframes fx-move{
  0%{transform:translateX(calc(-100% - 3em))}
  22%{transform:translateX(calc(-100% - 3em)) translateY(-.5em) rotate(-2deg);box-shadow:0 1.4em 2.6em rgba(10,22,40,.22)}
  78%{transform:translateY(-.4em) rotate(1deg);box-shadow:0 1.4em 2.6em rgba(10,22,40,.22)}
  100%{transform:none}
}

/* ======================= DOSSIER DE CHANTIER ========================== */
/* L'onglet « Pièces jointes » de la fiche d'un travail (12-work-tabs.js),
   épuré : titre, client, onglets, zone de dépôt, fichiers par catégorie. */
.dz{background:#fff;min-height:100%}
.dz-head{padding:1.2em 1.6em .8em}
.dz-ttl{margin:0 0 .15em;font-size:1.5em;font-weight:800;color:#0F172A;letter-spacing:-.01em}
.dz-cli{display:flex;align-items:center;gap:.4em;margin:0;font-size:1.02em;white-space:nowrap;overflow:hidden}
.dz-cli svg{width:1em;height:1em;color:var(--blue-600)}
.dz-cli b{font-weight:700;color:var(--blue-600)}
.dz-tabs{display:flex;gap:1.6em;margin:0;padding:0 1.6em;border-bottom:1px solid #E7ECF3;white-space:nowrap;overflow:hidden}
.dz-tabs span{padding:.8em 0 .75em;font-size:1.02em;font-weight:600;color:#475569;border-bottom:.16em solid transparent}
.dz-tabs span.on{color:var(--blue-600);border-bottom-color:var(--blue-600)}
.dz-body{padding:1.1em 1.6em 1.4em;background:#FAFBFD}
.dz-drop{
  display:flex;align-items:center;justify-content:center;gap:.55em;margin:0 0 1.1em;padding:.95em 1em;
  border:1.5px dashed #B6C6E3;border-radius:.9em;background:#F5F8FE;
}
.dz-drop svg{width:1.25em;height:1.25em;color:#94A3B8}
.dz-drop b{font-size:1.05em;font-weight:700;color:#475569}
.dz-cat{display:flex;align-items:center;gap:.5em;margin:0 0 .65em;padding-bottom:.45em;border-bottom:1px solid #EEF2F7;
  font-size:.92em;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#334155}
.dz-cat i{width:.6em;height:.6em;border-radius:50%;background:var(--cc)}
.dz-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9em;margin-bottom:1.2em}
.dz-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.6em}
.dz-file{display:flex;flex-direction:column;min-width:0;border:1px solid #E5EAF2;border-radius:.7em;overflow:hidden;background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.05)}
.dz-file b{padding:.55em .7em .6em;font-size:.95em;font-weight:700;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Les photos : des illustrations dessinées (assets/img/mock/), jamais de vraies photos. */
.dz-thumb{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover}
/* Un document : l'icône du fichier et son nom, sur une ligne. */
.dz-doc{display:flex;align-items:center;gap:.7em;min-width:0;padding:.6em .8em;border:1px solid #E5EAF2;border-radius:.7em;background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.05)}
.dz-doc img{flex:none;width:1.9em;height:auto}
.dz-doc b{font-size:.95em;font-weight:700;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* La photo qui arrive du terrain : elle se pose, cerclée un instant. */
.is-in .dz-new{animation:dz-new .7s 1s cubic-bezier(.3,1.4,.5,1) both}
@keyframes dz-new{
  0%{opacity:0;transform:translateY(-1.2em) scale(.85);box-shadow:0 1.2em 2em rgba(10,22,40,.2)}
  60%{opacity:1;box-shadow:0 0 0 .25em rgba(37,99,235,.25)}
  100%{transform:none;box-shadow:0 1px 2px rgba(15,23,42,.05)}
}

/* ========================= TÂCHES DÉLÉGUÉES =========================== */
.tk{padding:1.4em 1.6em 1.6em}
.tk-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1em;margin-bottom:1.1em}
.tk-stat{
  position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;
  padding:1.1em 1.2em;background:#fff;border:1px solid #E7ECF3;border-radius:1em;box-shadow:0 1px 3px rgba(15,23,42,.05);
}
.tk-stat::after{content:"";position:absolute;right:-1.8em;top:-1.8em;width:5.6em;height:5.6em;border-radius:50%;background:var(--cb)}
.tk-stat i{position:relative;z-index:1;display:grid;place-items:center;width:2.5em;height:2.5em;border-radius:.7em;background:var(--cb);color:var(--cc)}
.tk-stat i svg{width:1.35em;height:1.35em}
.tk-stat b{font-size:2.1em;font-weight:800;color:#0F172A;margin-top:.35em;line-height:1}
.tk-stat small{font-size:1.02em;color:#475569;margin-top:.35em}
.tk-list{background:#fff;border:1px solid #E7ECF3;border-radius:1em;overflow:hidden}
/* L'intertitre d'un groupe (« À faire », « Terminées ») : son nom, son nombre, un trait — comme la vue réelle. */
.tk-sec{display:flex;align-items:center;gap:.6em;margin:0;padding:.9em 1.2em .35em;font-size:.88em;font-weight:800;letter-spacing:.07em;
  text-transform:uppercase;color:#64748B}
.tk-sec i{font-style:normal;font-size:.95em;font-weight:800;letter-spacing:0;padding:.05em .55em;border-radius:.45em;background:#EEF2F7;color:#475569}
.tk-sec::after{content:"";flex:1;height:1px;background:#E7ECF3}
.tk-row{display:flex;align-items:center;gap:1em;padding:.95em 1.2em;border-bottom:1px solid #EEF2F7}
.tk-row:last-child{border-bottom:none}
.tk-ck{display:grid;place-items:center;flex:none;width:1.8em;height:1.8em;border-radius:.5em;border:.14em solid #CBD5E1;color:transparent}
.tk-ck svg{width:1.15em;height:1.15em}
.tk-row.done .tk-ck,.tk-row.tick .tk-ck{background:#16A34A;border-color:#16A34A;color:#fff}
.tk-txt{flex:1;min-width:0}
.tk-txt > b{display:block;font-size:1.15em;font-weight:700;color:#0F172A}
.tk-row.done .tk-txt > b,.tk-row.tick .tk-txt > b{color:#94A3B8;text-decoration:line-through}
.tk-txt small{display:block;margin-top:.15em;font-size:.98em;color:#64748B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-slot{display:inline-flex;align-items:center;gap:.35em;flex:none;padding:.2em .6em;font-style:normal;font-size:.95em;font-weight:700;
  color:#4338CA;background:#EEF0FE;border:1px solid #DADEFB;border-radius:.5em;white-space:nowrap}
.tk-slot svg{width:1em;height:1em}
.is-in .tk-row.tick .tk-ck{animation:ck-on .45s 1s cubic-bezier(.3,1.6,.5,1) both}
.is-in .tk-row.tick .tk-txt > b{animation:strike .45s 1s both}
@keyframes ck-on{from{background:#fff;border-color:#CBD5E1;color:transparent;transform:scale(.85)}}

/* ============================ TEMPS PASSÉS ============================ */
.tp{padding:1.4em 1.6em 1.6em}
.tp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1em;margin-bottom:1em}
.tp-stats > span{
  display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:.85em;align-items:center;
  padding:1em 1.15em;background:#fff;border:1px solid #E7ECF3;border-radius:1em;
}
.tp-stats i{grid-row:1 / 3;display:grid;place-items:center;width:2.5em;height:2.5em;border-radius:.7em;background:var(--cb);color:var(--cc)}
.tp-stats i svg{width:1.3em;height:1.3em}
.tp-stats b{font-size:1.6em;font-weight:800;color:#0F172A;line-height:1.1}
.tp-stats small{font-size:.98em;color:#64748B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-frise{
  display:flex;align-items:flex-end;gap:1em;margin-bottom:1em;padding:1.2em 2em 1em;
  background:#fff;border:1px solid #E7ECF3;border-radius:1em;
}
.tp-frise > span{flex:1;display:flex;flex-direction:column;align-items:center;gap:.4em}
.tp-frise b{font-size:1.02em;font-weight:800;color:#0F172A}
.tp-frise small{font-size:.95em;color:#64748B}
.hb{display:block;width:3em;border-radius:.55em .55em .3em .3em;background:linear-gradient(#34D399,#10B981);transform-origin:bottom}
.hb1{height:1.3em} .hb2{height:2.4em} .hb3{height:3.5em} .hb4{height:4.6em} .hb5{height:5.7em} .hb6{height:6.8em}
.is-in .hb{animation:hb-grow .7s ease-out both}
.is-in .tp-frise > span:nth-of-type(2) .hb{animation-delay:.08s}
.is-in .tp-frise > span:nth-of-type(3) .hb{animation-delay:.16s}
.is-in .tp-frise > span:nth-of-type(4) .hb{animation-delay:.24s}
.is-in .tp-frise > span:nth-of-type(5) .hb{animation-delay:.32s}
@keyframes hb-grow{from{transform:scaleY(.08)}}
.tp-sheet{background:#fff;border:1px solid #E7ECF3;border-radius:1em;overflow:hidden}
.tp-who{display:flex;align-items:center;gap:.75em;margin:0;padding:.85em 1.2em;border-bottom:1px solid #EEF2F7}
.tp-who > b{font-size:1.15em;font-weight:800;color:var(--navy-900)}
.tp-who small{margin-left:auto;font-size:1.15em;font-weight:800;color:#0F172A}
.tp-grid{display:grid;grid-template-columns:minmax(0,3fr) repeat(5,minmax(0,1fr)) minmax(0,1.1fr);align-items:center;border-bottom:1px solid #EEF2F7}
.tp-grid:last-child{border-bottom:none}
.tp-grid > span{padding:.7em .5em;text-align:center;font-size:1.02em;color:#A3AFC2}
.tp-grid.tp-hd > span{font-size:.95em;font-weight:700;color:#64748B}
.tp-grid > .tp-w{text-align:left;padding-left:1.2em;font-weight:600;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-w svg{display:inline-block;width:1em;height:1em;vertical-align:-.12em;margin-right:.35em;color:#16A34A}
.tp-c{font-style:normal;font-weight:800;color:#047857;background:#E5F8EC;border-radius:.45em;padding:.18em .5em}
.tp-grid > .tp-t{font-weight:800;color:#0F172A;background:#F8FAFD}

/* =========================== AUTOMATISATION =========================== */
.au{padding:1.4em 1.6em 1.6em}
.au-card{background:#fff;border:1px solid #E7ECF3;border-radius:1em;padding:1.2em 1.3em .4em}
.au-h{display:flex;align-items:center;gap:.55em;margin:0 0 .4em}
.au-h > svg{width:1.3em;height:1.3em}
.au-h b{font-size:1.25em;font-weight:800;color:var(--navy-900)}
.au-new{margin-left:auto;display:inline-flex;align-items:center;gap:.35em;padding:.45em 1em;border-radius:.65em;
  background:linear-gradient(#3B82F6,#2563EB);color:#fff;font-weight:700;font-size:1em}
.au-new svg{width:1em;height:1em}
.au-rule{padding:1em 1.1em;border:1px solid #E7ECF3;border-radius:.9em;margin:.8em 0 .9em}
.au-rn{display:flex;align-items:center;gap:.9em;margin:0 0 .8em}
.au-rn b{margin-right:auto;font-size:1.12em;font-weight:700;color:#0F172A}
.tgl{position:relative;flex:none;width:3.2em;height:1.8em;border-radius:99px;background:var(--blue-600)}
.tgl i{position:absolute;top:.25em;right:.25em;width:1.3em;height:1.3em;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.au-rule.off .tgl{background:#CBD5E1}
.au-rule.off .tgl i{right:auto;left:.25em}
.au-cnt{font-size:1em;font-weight:500;color:#64748B}
/* La phrase de la règle, comme l'écran réel : Quand … Si … Alors …, les mots-clés en pastilles colorées. */
.au-rule.off .au-ph{color:#94A3B8}
.au-ph{margin:0;font-size:1.02em;line-height:1.9;color:#334155}
.au-k{display:inline-block;font-size:.84em;font-weight:800;letter-spacing:.02em;text-transform:uppercase;padding:.15em .55em;border-radius:.4em;margin:0 .25em 0 .45em;vertical-align:.08em}
.au-k:first-child{margin-left:0}
.au-k.q{background:#FEF3C7;color:#92400E}
.au-k.s{background:#E0E7FF;color:#3730A3}
.au-k.a{background:#D1FAE5;color:#065F46}
/* La première règle « s'exécute » : l'éclat passe de « Quand » à « Alors ». */
.is-in .au-rule.flow .au-k.q{animation:au-pulse .7s .7s ease-out}
.is-in .au-rule.flow .au-k.a{animation:au-pulse .7s 1.15s ease-out}
@keyframes au-pulse{
  45%{transform:translateY(-.18em);box-shadow:0 0 0 .32em rgba(37,99,235,.2),0 .5em 1em rgba(10,22,40,.1)}
}

/* ========================== LE PV SIGNÉ =============================== */
/* Droit, jamais pivoté : un texte incliné de quelques degrés se lit flou. */
.mock-doc{padding:1em 2.5em 2.6em 0}
.pv,.pv-sent{font-size:10px;font-size:clamp(7.5px, calc(100cqi / 50), 11.5px)}
.pv{
  width:44em;max-width:100%;margin:0 auto;padding:2.8em 3em;border-radius:.7em;background:#fff;color:#0F172A;
  box-shadow:0 0 0 1px rgba(15,23,42,.07),0 1.4em 3em rgba(10,22,40,.1),0 4em 7em -2em rgba(10,22,40,.18);
}
.pv-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1em;padding-bottom:1.5em;border-bottom:.2em solid var(--blue-600)}
.pv-logo{display:grid;place-items:center;width:10em;height:4.6em;border:.15em dashed #CBD5E1;border-radius:.8em;
  color:#94A3B8;font-size:1.02em;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.pv-ttl{text-align:right}
.pv-ttl b{display:block;font-size:1.9em;font-weight:800;letter-spacing:-.02em;color:var(--navy-900)}
.pv-ttl small{font-size:1.05em;color:#64748B}
.pv-info{display:grid;grid-template-columns:1fr 1fr;gap:1em 2em;margin:1.6em 0 .4em}
.pv-info > span{display:flex;flex-direction:column;font-size:1.15em;font-weight:600}
.pv-info small{font-size:.78em;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#94A3B8}
.pv-sec{margin:1.3em 0 .6em;font-size:.98em;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--blue-700)}
.pv-tbl{border:1px solid #E7ECF3;border-radius:.8em;overflow:hidden}
.pv-tbl > span{display:flex;align-items:center;gap:.7em;padding:.6em 1em;font-size:1.1em;border-top:1px solid #EEF2F7}
.pv-tbl > span:first-child{border-top:none}
.pv-tbl b{margin-left:auto}
.pv-tbl .av{width:2.2em;height:2.2em;font-size:.82em}
.pv-tbl .pv-tot{background:#F7F9FC;font-weight:700}
.pv-lines{margin:0}
.pv-lines i{display:block;height:.65em;margin:.55em 0;border-radius:99px;background:#EEF2F7}
.pv-lines i.short{width:58%}
.pv-sigs{display:grid;grid-template-columns:1fr 1fr;gap:1em;margin-top:1.5em}
.pv-sign{min-width:0;padding:1em 1.2em;border:1px solid #E7ECF3;border-radius:1em;background:#FAFBFE}
.pv-sign small{display:block;font-size:.98em;font-weight:700;color:#64748B}
.pv-sign svg{display:block;width:100%;max-width:18em;height:6em;color:#1E3A8A}
.pv-ink{stroke-dasharray:560;stroke-dashoffset:0}
.is-in .pv-ink{animation:pv-ink 1.7s .5s ease-out both}
.is-in .pv-ink2{animation-delay:1.3s}
@keyframes pv-ink{from{stroke-dashoffset:560}}
.pv-ok{display:flex;align-items:center;gap:.45em;margin:.7em 0 0;font-size:1.05em;font-weight:700;color:#15803D}
.pv-ok svg{width:1.2em;height:1.2em}
.pv-sent{
  position:absolute;right:0;bottom:0;z-index:2;display:flex;align-items:center;gap:1em;padding:1.05em 1.4em 1.05em 1.05em;
  border-radius:1.3em;background:#fff;
  box-shadow:0 0 0 1px rgba(15,23,42,.06),0 1.2em 2.6em rgba(10,22,40,.16),0 .3em .8em rgba(10,22,40,.06);
}
.pv-sent-ic{display:grid;place-items:center;width:3.3em;height:3.3em;border-radius:1em;background:#DCFCE7;color:#15803D}
.pv-sent-ic svg{width:1.6em;height:1.6em}
.pv-sent b{display:block;font-size:1.2em;color:#0F172A}
.pv-sent small{display:flex;align-items:center;gap:.35em;font-size:1.02em;color:#64748B}
.pv-sent small svg{width:1em;height:1em}
.is-in .pv-sent{animation:pop-in .55s 2.15s cubic-bezier(.3,1.4,.5,1) both}
@keyframes pop-in{from{opacity:0;transform:translateY(1.2em) scale(.95)}}

/* ======================= LE CADRE : TÉLÉPHONE ========================= */
.mock-phone{--pw:270px;width:var(--pw);max-width:100%}
/* Le téléphone (2026-10-20, plus réaliste) : un cadre façon titane dont le
   dégradé accroche la lumière sur les bords, les boutons sur les côtés, un
   reflet sur la vitre et une ombre profonde légèrement bleutée. Tout en
   CSS, à la taille du cadre (em) : net sur tous les écrans. */
.ph{
  position:relative;width:100%;aspect-ratio:9 / 19.2;padding:.95em;border-radius:4.4em;
  font-size:calc(var(--pw) / 30);line-height:1.3;color:#0F172A;text-align:left;
  background:linear-gradient(160deg,#5A6577 0%,#1B2332 22%,#0B111C 55%,#2A3445 85%,#6B7587 100%);
  box-shadow:
    inset 0 0 0 .12em rgba(255,255,255,.28),
    inset 0 0 0 .3em #0B111C,
    0 .2em .4em rgba(10,22,40,.25),
    0 3em 5em -1.2em rgba(15,23,42,.45),
    0 6em 9em -3em rgba(30,58,138,.35);
}
/* Bouton latéral à droite, volume et bouton d'action à gauche. */
.ph::before{
  content:"";position:absolute;right:-.28em;top:22%;width:.28em;height:9%;border-radius:0 .2em .2em 0;
  background:linear-gradient(90deg,#1B2332,#556072);
}
.ph::after{
  content:"";position:absolute;left:-.28em;top:18%;width:.28em;height:5%;border-radius:.2em 0 0 .2em;
  background:linear-gradient(270deg,#1B2332,#556072);
  box-shadow:0 3.4em 0 #3A4558,0 6.4em 0 #3A4558;
}
.ph-screen{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:3.5em;background:#F4F6FA}
/* Le reflet de la vitre, par-dessus l'écran (il ne gêne aucun clic : l'aperçu n'en a pas). */
.ph-screen::after{
  content:"";position:absolute;inset:0;z-index:6;pointer-events:none;border-radius:inherit;
  background:linear-gradient(118deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,.06) 26%,rgba(255,255,255,0) 40%);
}
.ph-status{position:relative;display:flex;align-items:center;justify-content:space-between;flex:none;height:4em;padding:0 2.5em;background:#fff}
.ph-status b{font-size:1.3em;font-weight:700}
.ph-island{position:absolute;left:50%;top:.95em;width:9.2em;height:2.7em;margin-left:-4.6em;border-radius:99px;background:#0B1220}
.ph-sig{display:flex;align-items:flex-end;gap:.18em;height:1.05em;margin-left:auto;margin-right:.6em}
.ph-sig i{width:.3em;border-radius:.1em;background:#0F172A}
.ph-sig i:nth-child(1){height:.4em} .ph-sig i:nth-child(2){height:.6em} .ph-sig i:nth-child(3){height:.82em} .ph-sig i:nth-child(4){height:1.05em}
.ph-bat{position:relative;width:2.2em;height:1.1em;border-radius:.3em;border:.12em solid #0F172A;padding:.12em}
.ph-bat::after{content:"";position:absolute;right:-.32em;top:.3em;width:.16em;height:.4em;border-radius:0 .1em .1em 0;background:#0F172A}
.ph-bat i{display:block;width:78%;height:100%;border-radius:.12em;background:#0F172A}
.ph-home{position:absolute;bottom:.75em;left:50%;width:11em;height:.42em;margin-left:-5.5em;border-radius:99px;background:#0F172A;opacity:.88;z-index:5}

/* --- Les onglets du bas (application) et la barre d'une fiche --- */
.ph-tabs{display:flex;flex:none;margin-top:auto;padding:.75em .5em 2.2em;background:#fff;border-top:1px solid #E7ECF3}
.ph-tab{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3em;color:#64748B;min-width:0}
.ph-tab > svg,.ph-ic svg{width:2.05em;height:2.05em}
.ph-tab b{font-size:1.05em;font-weight:600;white-space:nowrap}
.ph-tab.on{color:var(--blue-600)}
.ph-tab.on::before{content:"";position:absolute;top:-.75em;width:2.8em;height:.3em;border-radius:0 0 .3em .3em;background:var(--blue-600)}
.ph-tab .av-tab{width:2.3em;height:2.3em;font-size:.85em}
/* Barre d'une fiche : la place, au-dessus de l'icône, pour sa pastille. */
.ph-fbar .ph-tab{padding-top:.55em}
.ph-fbar .ph-tab b{font-size:.95em}
.ph-ic{position:relative;display:block}
.ph-ic i{
  position:absolute;top:-.4em;right:-.75em;display:grid;place-items:center;min-width:1.6em;height:1.6em;
  border-radius:99px;background:var(--blue-600);color:#fff;font-style:normal;font-size:.85em;font-weight:700;border:.14em solid #fff;
}

/* --- Agenda : en-tête, mois, bande des jours --- */
.pa-top{display:flex;align-items:flex-start;justify-content:space-between;flex:none;padding:.4em 1.8em 1em;background:#fff}
.pa-h{display:flex;flex-direction:column;align-items:flex-start;gap:.5em;margin:0}
.pa-h > b{font-size:2.4em;font-weight:800;letter-spacing:-.025em;line-height:1;color:var(--navy-900)}
.spc-m{font-size:1.05em}
.pa-ics{display:flex;gap:1.3em;padding-top:.3em;color:#1E293B}
.pa-ics svg{width:1.9em;height:1.9em}
.pa-cal{flex:none;padding:0 1.3em 1em;background:#fff;border-bottom:1px solid #E7ECF3}
.pa-mo{display:flex;align-items:center;gap:.35em;margin:0 0 .8em;padding:0 .5em}
.pa-mo > b{font-size:1.7em;font-weight:800;color:var(--navy-900)}
.pa-mo > svg{width:1.2em;height:1.2em;color:#475569}
.pa-seg{margin-left:auto;display:flex;padding:.22em;border-radius:.9em;background:#EEF2F8}
.pa-seg i{font-style:normal;font-size:1.12em;font-weight:600;padding:.35em .85em;border-radius:.7em;color:#475569}
.pa-seg i.on{background:#fff;color:var(--navy-900);box-shadow:0 1px 2px rgba(15,23,42,.08)}
.pa-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.pa-strip > span{display:flex;flex-direction:column;align-items:center;gap:.25em}
.pa-strip small{font-size:1.05em;font-weight:600;color:#94A3B8}
.pa-strip b{display:grid;place-items:center;width:2.3em;height:2.3em;border-radius:50%;font-size:1.28em;font-weight:700;color:#0F172A}
.pa-strip .we b{color:#94A3B8}
.pa-strip .today b{background:var(--blue-600);color:#fff;box-shadow:0 .3em .8em rgba(37,99,235,.3)}
.dots{display:block;height:.5em;width:1.3em;background:radial-gradient(circle,#2563EB 48%,transparent 54%) center / .5em .5em no-repeat}
.dots.d2{background:radial-gradient(circle,#2563EB 48%,transparent 54%) 0 0 / .65em .5em repeat-x}
.dots.d0{background:none}

/* --- Agenda : la liste de la semaine --- */
.pa-list{flex:1;min-height:0;overflow:hidden;padding:.3em 1.2em 0}
.pa-day{display:flex;align-items:center;gap:.6em;margin:1em .4em .65em;font-size:1.08em;font-weight:800;letter-spacing:.07em;color:#64748B}
.pa-day.now{color:var(--blue-600)}
.pa-day i{display:grid;place-items:center;min-width:1.8em;height:1.8em;font-style:normal;font-size:.95em;letter-spacing:0;border-radius:99px;background:#E6EAF1;color:#334155}
.pa-card{
  display:grid;grid-template-columns:4.4em .32em minmax(0,1fr);gap:1em;margin-bottom:.8em;padding:1.15em 1.25em;
  background:#fff;border:1px solid #E7ECF3;border-radius:1.6em;box-shadow:0 1px 3px rgba(15,23,42,.05);
}
.pa-card::before{content:"";grid-column:2;grid-row:1;background:var(--c);border-radius:99px}
/* Un travail récurrent : le trait en tirets, comme partout ailleurs. */
.pa-card.pa-rec::before{
  border-radius:0;
  -webkit-mask-image:var(--recur-mask);-webkit-mask-size:100% 1.2em;-webkit-mask-repeat:round;
  mask-image:var(--recur-mask);mask-size:100% 1.2em;mask-repeat:round;
}
.pa-time{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:space-between}
.pa-time b{font-size:1.4em;font-weight:800;color:#0F172A}
.pa-time small{font-size:1.12em;color:#64748B}
.pa-txt{grid-column:3;grid-row:1;min-width:0}
.pa-txt > b{display:block;font-size:1.35em;font-weight:800;line-height:1.2;color:#0F172A}
.pa-txt > b svg{display:inline-block;width:.85em;height:.85em;vertical-align:-.05em;margin-right:.3em;color:var(--c)}
.pa-txt em{display:block;margin-top:.15em;font-style:normal;font-size:1.15em;color:#64748B}
.pa-txt small{display:flex;align-items:center;gap:.35em;margin-top:.3em;font-size:1.08em;color:#64748B}
.pa-txt small svg{width:1.05em;height:1.05em}
/* L'Agenda du héros à l'apparition : une fois le téléphone posé, ses
   cartes arrivent l'une après l'autre. */
.phone-agenda.is-in .pa-card{animation:pa-in .5s cubic-bezier(.2,.8,.3,1) both}
.phone-agenda.is-in .pa-card:nth-of-type(1){animation-delay:.95s}
.phone-agenda.is-in .pa-card:nth-of-type(2){animation-delay:1.1s}
.phone-agenda.is-in .pa-card:nth-of-type(3){animation-delay:1.25s}
@keyframes pa-in{from{opacity:0;transform:translateY(.9em)}}

/* --- Agenda : la journée heure par heure --- */
.pj{position:relative;flex:1;min-height:0;margin:0 1.1em 0 .9em;--hh:3.25em;--top:1.1em}
.pj-h{
  position:absolute;left:0;right:0;display:flex;align-items:center;gap:.6em;height:0;
  top:calc(var(--top) + var(--r) * var(--hh));font-size:1.02em;color:#94A3B8;
}
.pj-h::after{content:"";flex:1;border-top:1px solid #E6EAF1}
.r0{--r:0} .r1{--r:1} .r2{--r:2} .r3{--r:3} .r4{--r:4} .r5{--r:5} .r6{--r:6} .r7{--r:7} .r8{--r:8} .r9{--r:9}
.pj-pause{
  position:absolute;left:4.6em;right:0;top:calc(var(--top) + 4 * var(--hh));height:var(--hh);
  display:flex;align-items:center;justify-content:flex-end;padding-right:1em;font-size:1.02em;font-weight:600;color:#94A3B8;
  background:repeating-linear-gradient(135deg,#EEF2F7 0 .5em,#E7EBF2 .5em 1em);
}
.pj-ev{
  position:absolute;left:4.6em;right:0;z-index:1;display:flex;flex-direction:column;justify-content:center;
  top:calc(var(--top) + var(--y) * var(--hh) / 2 + .15em);height:calc(var(--l) * var(--hh) / 2 - .3em);
  padding:0 1em;border-radius:1em;background:#fff;border:1px solid #E7ECF3;border-left:.4em solid var(--c);
  box-shadow:0 1px 3px rgba(15,23,42,.06);
}
.pj-ev.rec{padding-left:1.4em}
.pj-ev.rec::before{width:.4em}
.pj-ev b{font-size:1.22em;font-weight:800;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pj-ev b svg{display:inline-block;width:.9em;height:.9em;vertical-align:-.05em;margin-right:.3em;color:var(--c)}
.pj-ev small{font-size:1.02em;color:#64748B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.y0{--y:0} .y1{--y:1} .y2{--y:2} .y3{--y:3} .y4{--y:4} .y5{--y:5} .y6{--y:6} .y7{--y:7} .y8{--y:8} .y9{--y:9}
.y10{--y:10} .y11{--y:11} .y12{--y:12} .y13{--y:13} .y14{--y:14} .y15{--y:15} .y16{--y:16} .y17{--y:17}
.l1{--l:1} .l2{--l:2} .l3{--l:3} .l4{--l:4} .l5{--l:5} .l6{--l:6} .l7{--l:7} .l8{--l:8} .l9{--l:9}
.l10{--l:10} .l11{--l:11} .l12{--l:12} .l13{--l:13} .l14{--l:14} .l15{--l:15} .l16{--l:16} .l17{--l:17} .l18{--l:18}
.pj-new{background:var(--bg);border-color:var(--bd);box-shadow:0 0 0 .25em rgba(225,29,72,.1),0 1px 3px rgba(15,23,42,.06)}

/* La notification qui arrive du haut de l'écran. */
.pn{
  position:absolute;z-index:6;top:4.5em;left:.8em;right:.8em;display:flex;align-items:flex-start;gap:.9em;
  padding:1em 1.15em;border-radius:1.8em;background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(1.2em) saturate(1.6);backdrop-filter:blur(1.2em) saturate(1.6);
  box-shadow:0 1em 2.4em rgba(10,22,40,.2),0 0 0 1px rgba(10,22,40,.05);
}
.pn img{width:3em;height:3em;border-radius:26.3%;flex:none}
.pn > span{display:flex;flex-direction:column;min-width:0;font-size:1.08em;color:#334155;line-height:1.3}
.pn small{display:flex;justify-content:space-between;font-size:.9em;font-weight:600;color:#64748B;text-transform:uppercase;letter-spacing:.03em}
.pn small i{font-style:normal;text-transform:none;letter-spacing:0}
.pn b{font-size:1.1em;font-weight:800;color:#0F172A;margin-top:.1em}
.is-in .pn{animation:pn-in .7s .7s cubic-bezier(.2,1.3,.4,1) both}
@keyframes pn-in{from{transform:translateY(-140%);opacity:0}}
.is-in .pj-new{animation:pj-new .6s 1.45s cubic-bezier(.3,1.5,.5,1) both}
@keyframes pj-new{from{opacity:0;transform:scale(.9)}}

/* --- Fiche d'un travail --- */
.pf-back{display:flex;align-items:center;gap:.35em;flex:none;margin:0;padding:.3em 1.5em .9em;background:#fff;
  border-bottom:1px solid #E7ECF3;font-size:1.5em;font-weight:600;color:var(--blue-600);white-space:nowrap;overflow:hidden}
.pf-back svg{width:1em;height:1em}
.pf{flex:1;min-height:0;overflow:hidden;padding:1.2em 1.5em;background:#fff}
.pf-tags{display:flex;align-items:center;gap:.7em;margin:0 0 .65em}
.pf-tags small{font-size:1.2em;font-weight:700;color:#64748B}
.pf-type{font-style:normal;font-size:1.02em;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:.35em .8em;border-radius:.6em;background:var(--bg);color:var(--tx)}
.pf-ttl{margin:0 0 .6em;font-size:1.95em;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.pf-cli{display:flex;align-items:center;gap:.4em;margin:0 0 1em;color:var(--blue-600)}
.pf-cli > svg{width:1.3em;height:1.3em}
.pf-cli > b{font-size:1.25em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-st{display:inline-flex;align-items:center;gap:.4em;margin-left:auto;flex:none;padding:.45em .85em;border-radius:99px;
  background:#FEF3C7;color:#92400E;font-size:1.1em;font-weight:700}
.pf-st i{width:.6em;height:.6em;border-radius:50%;background:#F59E0B}
.pf-addr{display:flex;align-items:center;gap:.8em;padding:1.15em 1.2em;border-radius:1.6em;background:#F2F5F9}
.pf-addr > span{flex:1;display:flex;flex-direction:column;min-width:0}
.pf-addr b{font-size:1.3em;font-weight:800}
.pf-addr small{margin-top:.2em;font-size:1.1em;color:#64748B}
.pf-call,.pf-go{display:grid;place-items:center;flex:none;width:3.9em;height:3.9em;border-radius:50%}
.pf-call{background:#DBEAFE;color:var(--blue-600)}
.pf-go{background:var(--blue-600);color:#fff;box-shadow:0 .4em .9em rgba(37,99,235,.32)}
.pf-call svg,.pf-go svg{width:1.7em;height:1.7em}
/* Le bandeau « Hors ligne » de l'application mobile (2026-10-19) : fin, tout en haut, sous la barre d'état. */
.pf-off{display:flex;align-items:center;justify-content:center;gap:.5em;flex:none;margin:0;padding:.55em 1em;
  background:linear-gradient(180deg,#12264A,#0A1628);color:#fff;font-size:1.05em;font-weight:650;white-space:nowrap}
.pf-off svg{width:1.1em;height:1.1em;color:#FBBF24}
.pf-sec{display:flex;align-items:center;gap:.6em;margin:1.4em 0 .7em;font-size:1.08em;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#64748B}
.pf-sec i{font-style:normal;color:var(--blue-600)}
.pf-tasks{display:flex;flex-direction:column;border:1px solid #E7ECF3;border-radius:1.4em;overflow:hidden}
.pf-tasks > span{display:flex;align-items:center;gap:.8em;padding:.9em 1.1em;font-size:1.22em;border-top:1px solid #EEF2F7}
.pf-tasks > span:first-child{border-top:none}
.pf-tasks i{display:grid;place-items:center;flex:none;width:1.5em;height:1.5em;border-radius:.4em;border:.12em solid #CBD5E1;color:transparent}
.pf-tasks i svg{width:1em;height:1em}
.pf-tasks .done{color:#64748B;text-decoration:line-through}
.pf-tasks .done i{background:#16A34A;border-color:#16A34A;color:#fff}
.is-in .pf-tasks .tick i{animation:ck-on .45s 1.1s cubic-bezier(.3,1.6,.5,1) both}
.is-in .pf-tasks .tick{animation:strike .45s 1.1s both}
@keyframes strike{from{color:#0F172A;text-decoration-color:transparent}}

/* --- Clôture --- */
.pc{flex:1;min-height:0;padding:1.4em 1.3em;background:#F4F6FA}
.pc-rows{background:#fff;border:1px solid #E7ECF3;border-radius:1.8em;overflow:hidden}
.pc-rows > span{display:flex;align-items:center;gap:1em;padding:1em 1.15em;font-size:1.25em;border-top:1px solid #EEF2F7}
.pc-rows > span:first-child{border-top:none}
.pc-rows i{display:grid;place-items:center;flex:none;width:2.2em;height:2.2em;border-radius:50%;background:#DCFCE7;color:#15803D}
.pc-rows i svg{width:1.1em;height:1.1em}
.pc-rows .todo i{background:#EEF2F7;color:#64748B}
.pc-note{margin:1em 0;padding:.95em 1.15em;border:1px solid #E7ECF3;border-radius:1.2em;background:#fff;font-size:1.15em;color:#94A3B8}
.pc-act{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:.8em;margin:0}
.pc-act > span,.pc-act > b{display:flex;align-items:center;justify-content:center;gap:.4em;padding:.95em .6em;border-radius:1.2em;font-size:1.2em;font-weight:700;white-space:nowrap}
.pc-act > span{border:1px solid #E7ECF3;background:#fff;color:#0F172A}
.pc-act > b{background:#16A34A;color:#fff;box-shadow:0 .4em 1em rgba(22,163,74,.3)}
.pc-act svg{width:1.1em;height:1.1em}
.is-in .pc-rows > span:nth-child(2) i{animation:pc-pop .4s .6s cubic-bezier(.3,1.6,.5,1) both}
.is-in .pc-rows > span:nth-child(3) i{animation:pc-pop .4s .85s cubic-bezier(.3,1.6,.5,1) both}
.is-in .pc-rows > span:nth-child(4) i{animation:pc-pop .4s 1.1s cubic-bezier(.3,1.6,.5,1) both}
@keyframes pc-pop{from{transform:scale(.4);opacity:0}}
.is-in .pc-act > b{animation:pc-glow 1.2s 1.5s ease-out both}
@keyframes pc-glow{
  0%{box-shadow:0 .4em 1em rgba(22,163,74,.3),0 0 0 0 rgba(22,163,74,.45)}
  60%{box-shadow:0 .4em 1em rgba(22,163,74,.3),0 0 0 .8em rgba(22,163,74,0)}
}

/* ============================ PETITS ÉCRANS =========================== */
/* L'aperçu cesse de rétrécir sous 7,5 px et se coupe à droite, en fondu,
   plutôt que de s'écraser ; le menu latéral laisse toute la place à la
   vue : c'est elle qu'on vient voir. */
@media (max-width:760px){
  .bw{-webkit-mask-image:linear-gradient(90deg,#000 80%,transparent);mask-image:linear-gradient(90deg,#000 80%,transparent)}
}
@media (max-width:600px){
  .ax{grid-template-columns:minmax(0,1fr);min-width:calc((var(--ref) - 16) * 1em)}
  .ax-side{display:none}
}
