/* app/app.css — écrans de l'appli, charte A « Marine sobre » (choix du
 * gérant) : fond blanc, bleu marine, filets fins, aucune ombre, polices
 * système, aucun jaune. Mêmes jetons que la vitrine, gros boutons au pouce.
 * Bleu franc (#2560a8, choix du gérant le 04/10/2026, l’ancien marine #1b3a6b
 * était jugé trop foncé). Contrastes : blanc sur --bleu 6,3:1 ; --texte sur blanc 16,9:1 ;
 * --discret sur blanc 7,0:1 ; --bleu sur --teinte 5,3:1. */
:root {
  --fond: #ffffff;
  --surface: #f3f5f9;
  --texte: #0f1e36;
  --discret: #4a5872;
  --bleu: #2560a8;
  --bleu-survol: #1b4c88;
  --teinte: #e6ecf5;
  --teinte-bord: #b9c6dc;
  --accent: #2f6fd6;
  --halo: rgba(47, 111, 214, 0.35);
  --ok: #18753c;
  --ok-fond: #e7f4ec;
  --alerte: #a14a00;
  --alerte-fond: #fdf0e3;
  --erreur: #c0182b;
  --erreur-fond: #fcebed;
  --bordure: #d3dae6;
  --champ: #6b7a92;
  --rayon: 6px;
  --rayon-carte: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}
[hidden] { display: none !important; }
.largeur { max-width: 640px; margin: 0 auto; padding: 0 16px; }
a { color: var(--bleu); font-weight: 600; text-underline-offset: 2px; }

.bandeau { background: var(--bleu); color: #fff; padding: 12px 0; }
.bandeau a, .bandeau .lien { color: #fff; }
.entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.marque { font-weight: 800; font-size: 1.2rem; text-transform: uppercase; text-decoration: none; letter-spacing: 0.04em; color: #fff; }
.sous-marque { font-weight: 500; font-size: 0.95rem; }
.qui { text-align: right; font-size: 0.9rem; }
#deconnexion { white-space: nowrap; }
.lien { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; color: var(--bleu); min-height: 44px; }

main { padding-top: 16px; padding-bottom: 48px; }
h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; line-height: 1.1; margin: 8px 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; font-weight: 750; margin: 1.8em 0 0.5em; padding-bottom: 6px; border-bottom: 1px solid var(--bordure); }
.chapo { font-size: 1.1rem; font-weight: 500; }
.note { font-size: 0.92rem; color: var(--discret); margin: 4px 0; }
.ttc { font-size: 0.85em; color: var(--discret); white-space: nowrap; }
/* Jauge de stockage (src/abonnement.ts) : bleue, orange dès 80 %, rouge pleine. */
.jauge { display: block; width: 100%; height: 12px; margin: 8px 0 6px; appearance: none; border: 0; border-radius: 6px; background: var(--teinte); overflow: hidden; }
.jauge::-webkit-progress-bar { background: var(--teinte); border-radius: 6px; }
.jauge::-webkit-progress-value { background: var(--bleu); border-radius: 6px; }
.jauge::-moz-progress-bar { background: var(--bleu); border-radius: 6px; }
.jauge-haute::-webkit-progress-value { background: var(--alerte); }
.jauge-haute::-moz-progress-bar { background: var(--alerte); }
.jauge-pleine::-webkit-progress-value { background: var(--erreur); }
.jauge-pleine::-moz-progress-bar { background: var(--erreur); }
.compteur { display: inline-block; min-width: 1.6em; padding: 0 8px; background: var(--teinte); color: var(--bleu); border-radius: 4px; text-align: center; font-size: 1.1rem; vertical-align: middle; }

label { display: block; font-weight: 650; margin: 14px 0 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"] {
  width: 100%; min-height: 52px; border: 1.5px solid var(--champ); padding: 8px 12px; font: inherit; background: #fff; color: var(--texte); border-radius: var(--rayon);
}
/* Focus visible : trait bleu vif (4,9:1 sur blanc) décollé de l'élément ;
 * champs : bordure marine + halo. Dans le bandeau marine, le trait est blanc. */
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
input:focus, select:focus, textarea:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px var(--halo); }
.bandeau a:focus-visible, .bandeau button:focus-visible { outline-color: #fff; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--bleu); }
label.case { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 500; }
label.case input { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.ligne { display: flex; gap: 8px; }
.ligne input { flex: 1; min-width: 0; }
/* L'adresse en trois cases (adresse-saisie.ts) : le CP étroit, la commune prend le reste. */
.adresse-cp-ville { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
.adresse-cp-ville input, .adresse-cp-ville select { width: 100%; }
/* Les adresses proposées sous la rue : de gros boutons au doigt. */
.adresse-suggestions { list-style: none; margin: 4px 0 0; padding: 0; border: 1.5px solid var(--champ); border-radius: var(--rayon); background: #fff; overflow: hidden; }
.adresse-suggestions[hidden] { display: none; }
.adresse-suggestions li + li { border-top: 1px solid var(--champ); }
.adresse-suggestions button { display: block; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; background: none; font: inherit; color: var(--texte); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.adresse-suggestions button:hover, .adresse-suggestions button:focus-visible { background: var(--teinte); }
.adresse-suggestions span { color: var(--discret); font-size: 0.9em; }

.bouton {
  min-height: 52px; padding: 0 18px; border: 1.5px solid var(--bleu); background: var(--bleu); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; border-radius: var(--rayon);
}
.bouton:hover { background: var(--bleu-survol); border-color: var(--bleu-survol); }
.bouton.large { display: block; width: 100%; margin-top: 16px; }
/* Un lien en bouton large (« Visites devis ») : texte centré, comme un bouton (vu sur le Pixel du gérant, 07/10/2026). */
a.bouton.large { display: flex; box-sizing: border-box; text-align: center; }
.bouton.secondaire { background: #fff; color: var(--bleu); border-color: var(--bleu); }
.bouton.secondaire:hover { background: var(--teinte); }
.bouton.danger { background: var(--erreur); color: #fff; border-color: var(--erreur); }
.bouton.danger:hover { background: #9e1423; border-color: #9e1423; }
.bouton:disabled { opacity: 0.55; cursor: wait; }

.message { border: 1.5px solid var(--erreur); border-left-width: 5px; border-radius: var(--rayon); background: var(--erreur-fond); color: var(--erreur); padding: 10px 12px; font-weight: 700; margin: 12px 0; }
.message.ok { border-color: var(--ok); background: var(--ok-fond); color: var(--ok); }
[data-autre="heures"][aria-invalid="true"] { border-color: var(--erreur); outline: 2px solid var(--erreur); }   /* rapport-autres.ts : la case à remplir */
.nouvelle-version { position: fixed; z-index: 60; top: 8px; left: 50%; transform: translateX(-50%); width: min(92vw, 420px); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--bordure); border-left: 5px solid var(--bleu); border-radius: var(--rayon-carte); background: var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,.18); font-weight: 700; }   /* commun.ts : nouvelle version */
.encart { border: 1px solid var(--bordure); border-left: 5px solid var(--bleu); border-radius: var(--rayon-carte); padding: 4px 14px; margin: 18px 0; background: var(--surface); }
/* Les chantiers venus du calculateur de zone (pont-calcul.ts, 30/10/2026) : vert, comme le bouton de la vitrine. */
.pont-encart { border-left-color: var(--ok); background: var(--ok-fond); padding: 6px 14px 10px; } .pont-encart h2 { margin: 6px 0; font-size: 1.1rem; }
.pont-encart ol { margin: 6px 0; padding-left: 1.4em; } .pont-encart li { margin: 4px 0; } .pont-encart p { margin: 8px 0; } .pont-encart .bouton { margin: 4px 8px 4px 0; }

.resultats { display: grid; gap: 8px; margin-top: 8px; }
.choix { text-align: left; border: 1.5px solid var(--champ); border-radius: var(--rayon); background: #fff; color: var(--texte); padding: 10px 12px; font: inherit; cursor: pointer; min-height: 52px; }
.choix:hover { background: var(--teinte); }
.choix span { display: block; font-size: 0.9rem; color: var(--discret); }
.choix:disabled { opacity: 0.5; cursor: not-allowed; }

.cartes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.carte { border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 10px 12px; background: #fff; }
.carte-tete { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.actions .bouton { flex: 1 1 140px; } .qr-nouveau { margin: 2px 0 0; } .qr-nouveau .lien { color: var(--discret); font-weight: 600; font-size: 0.88rem; } #semaine .semaine-suite { margin: 12px 0 0; }   /* QR d'un téléphone déjà connecté (ecran-mon-equipe.ts) ; « Puis Villa Martin » (ecran-semaine.ts), lot D */

.voile { position: fixed; inset: 0; background: rgba(15, 30, 54, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; } #signaler { z-index: 30; } #signaler-ouvrir { white-space: nowrap; }
.fenetre { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 4px 18px 18px; width: 100%; max-width: 420px; max-height: 100%; overflow: auto; }
.fenetre h2 { margin-top: 0.8em; }
.qr { background: #fff; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; max-width: 320px; margin: 0 auto; }
.qr.expire svg { opacity: 0.12; }

/* ---- Onglets (barre du bas, au pouce) : fond blanc, filet fin ; l'onglet
 * actif est marine sur teinte, avec un trait marine de 3 px en haut. ---- */
body.avec-onglets main { padding-bottom: 110px; }
.onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; background: #fff; border-top: 1px solid var(--bordure);
  padding-bottom: env(safe-area-inset-bottom); }
.onglets a { position: relative; flex: 1 1 0; min-width: 0; text-align: center; color: var(--discret); text-decoration: none; font-weight: 650;
  font-size: clamp(0.72rem, 3.3vw, 0.95rem); letter-spacing: -0.01em; padding: 16px 1px; min-height: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onglets a:hover { color: var(--bleu); }
.onglets a.actif { background: var(--teinte); color: var(--bleu); font-weight: 750; }
.onglets a.actif::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 3px; background: var(--bleu); border-radius: 0 0 3px 3px; }
.onglets a:focus-visible { outline-offset: -3px; }
/* Sur ORDINATEUR (souris, écran large), les onglets passent EN HAUT, sous le
 * bandeau, et y restent en défilant (visite du 09/10/2026 : au bureau, on les
 * cherche en haut). Le téléphone garde la barre du bas, au pouce. */
@media (min-width: 900px) and (pointer: fine) {
  body.avec-onglets { display: flex; flex-direction: column; min-height: 100vh; }
  body.avec-onglets > * { order: 3; }
  body.avec-onglets > .bandeau { order: 1; }
  /* Le 1er onglet pile sous la marque (bandeau à 1280 px, 16 px de marge comme .largeur ; vu par le gérant le 03/11/2026, avis de 2f). */
  body.avec-onglets > .onglets { order: 2; position: sticky; top: 0; bottom: auto; justify-content: flex-start; padding-inline: max(16px, calc((100% - 1280px) / 2 + 16px)); border-top: 0; border-bottom: 1px solid var(--bordure); padding-bottom: 0; }
  body.avec-onglets > main { width: 100%; }
  .onglets a { flex: 0 1 200px; }
  .onglets a.actif::before { top: auto; bottom: 0; border-radius: 3px 3px 0 0; }
  body.avec-onglets main { padding-bottom: 40px; }
  html body.avec-onglets #message { bottom: 24px; }   /* plus précis que la règle du message, plus bas */
  html #form-rapport > .bouton.envoyer { bottom: 12px; }   /* onglets en haut : collé au bas de la fenêtre */
  html body.avec-onglets:has(#vue-rapport:not([hidden])) #message { bottom: 96px; }
}

select, textarea {
  width: 100%; min-height: 52px; border: 1.5px solid var(--champ); padding: 8px 12px; font: inherit; background: #fff; border-radius: var(--rayon); color: var(--texte);
}
textarea { min-height: 110px; resize: vertical; }
input[type="time"], input[type="date"] { width: 100%; min-height: 52px; border: 1.5px solid var(--champ); padding: 8px 12px; font: inherit; background: #fff; color: var(--texte); border-radius: var(--rayon); }
.deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.deux-colonnes input { width: 100%; box-sizing: border-box; min-width: 0; }
fieldset.choix-midi { border: 1.5px solid var(--bordure); border-radius: var(--rayon); margin: 14px 0 0; padding: 4px 12px 10px; }
fieldset.choix-midi legend { font-weight: 650; padding: 0 6px; }
.journee-heures { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; } .journee-heures input { flex: 1 1 0; min-width: 0; } .journee-heures span { font-weight: 650; } .pas-trouve { margin: 0 0 6px; } label.connu { margin-top: 18px; color: var(--discret); }   /* inscription allégée (maquette B du gérant, 12/11/2026) : « [08:00] à [17:00] » sur une ligne, « Comment nous avez-vous connus ? » après le bouton */
.form-email-corriger { margin-bottom: 4px; }
#recherche { scroll-margin-top: 40px; }
.oeil { margin-top: 6px; min-height: 44px; }
#taille-prix.alerte { color: var(--erreur, #b3261e); font-weight: 600; }
.form-email-corriger .bouton { margin-top: 12px; }
label.case input[type="radio"] { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.ligne select { flex: 1; min-width: 0; }
.cache { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bouton-fichier { display: flex !important; align-items: center; justify-content: center; text-align: center; }
.bouton-fichier.inactif, .bouton.inactif { opacity: 0.5; pointer-events: none; }
.bouton.envoyer { min-height: 64px; font-size: 1.15rem; }
/* Rapport du soir : « Envoyer le rapport » reste visible au-dessus de la barre d'onglets
 * (26/10/2026, relu par 5c et 74 : 5 écrans à défiler avant). Bordure claire pour qu'un doigt
 * qui vise le bas de l'observation ne tombe pas dessus ; pas collé quand on écrit (clavier). */
#form-rapport > .bouton.envoyer { position: sticky; bottom: calc(65px + env(safe-area-inset-bottom, 0px)); z-index: 4;
  box-shadow: 0 0 0 8px var(--fond, #fff), 0 -8px 16px rgba(15, 30, 54, 0.12); }
#form-rapport:has(#rp-observation:focus) > .bouton.envoyer { position: static; box-shadow: none; }
/* Collé dans toute la section, pas seulement dans le formulaire, qui commençait sous l'écran : bouton invisible à l'ouverture
 * (téléphone du gérant, audit du 10/11/2026). Le formulaire n'a aucun style propre ; [hidden] l'emporte (!important). */
#form-rapport { display: contents; }
/* Téléphone, rapport, pendant la frappe (vrai clavier : pas l'horloge ni une liste, qui gardent le focus fermées) : ni onglets ni « Envoyer » collés au-dessus du clavier (lot D, gérant, 03/11/2026 ; ca). PC : onglets en haut, rien ne change. Toute la section depuis le 11/11/2026 (le bouton y est collé) : une note de chantier aussi. */
@media (max-width: 899px), (pointer: coarse) { body.avec-onglets:has(#vue-rapport :is(textarea, input:not([type]), input[type=text], input[type=number], input[type=tel], input[type=email], input[type=search]):focus) .onglets { display: none; } #vue-rapport:has(:is(textarea, input:not([type]), input[type=text], input[type=number], input[type=tel], input[type=email], input[type=search]):focus) #form-rapport > .bouton.envoyer { position: static; box-shadow: none; } }
/* Le message flottant (« Rapport envoyé », une erreur) passe au-dessus du bouton collé. */
body.avec-onglets:has(#vue-rapport:not([hidden])) #message { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
/* Les heures sous « Envoyer le rapport » : il voit ce qu'il envoie (idée de 74, go du gérant le 26/10/2026). */
.bouton-heures { display: block; font-size: 0.85rem; font-weight: normal; }
.bouton-heures:empty { display: none; }
/* Envoi avant l'heure de départ notée : la question, juste au-dessus du bouton collé. */
.encart.avant-fin { border-left-color: var(--alerte); background: var(--alerte-fond); padding-bottom: 14px; }
.encart.avant-fin p { font-weight: 600; }
.bouton.envoyer.quand-meme, .bouton.envoyer.quand-meme:hover { background: var(--alerte); border-color: var(--alerte); }   /* « Envoyer quand même » sous le pouce, tant que la question est posée (03/11/2026) */
.rp-nuit { font-weight: 600; margin: 0; }   /* « 🌙 Nuit du lundi 26 au mardi 27 octobre · départ le lendemain » */
.visionneuse-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0; }   /* ‹ 2 / 6 › (visionneuse.ts) */
.a-valider .lien { margin: 0 2px; } .a-valider .lien.actif { text-decoration: none; color: inherit; }   /* « À valider : lun. 26 (3) · mar. 27 (1) » (ecran-recap.ts) */
/* Invitation au rappel sous « Rapport envoyé » (26/10/2026). */
#rapport-rappel { padding-bottom: 14px; }
.boutons-ligne { display: flex; flex-wrap: wrap; gap: 10px; }
.boutons-ligne .bouton { flex: 1 1 180px; min-height: 48px; }   /* l’un sous l’autre au téléphone : « Activer le rappel » sans coupure */
/* Ma semaine : ce qui est parti (✓), ce qui attend, ce qui est à corriger. */
.semaine-total { font-weight: 600; }
.semaine-etat { margin: 6px 0 0; font-weight: 600; }
.semaine-etat.envoye { color: var(--ok); }
.semaine-etat.attente { color: var(--discret); }
.semaine-etat.refus { color: var(--erreur); }
.semaine-etat.manque { color: var(--alerte); }
a.bouton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.bouton:not(.secondaire):not(.danger) { color: #fff; }
.bouton.danger { color: #fff; }
.lien.danger { color: var(--erreur); }

.navigation-jour { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px; }
.navigation-jour strong { text-align: center; flex: 1; }
.navigation-jour .bouton { min-width: 52px; font-size: 1.4rem; padding: 0 12px; }

#rapport-jours { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 480px) { #rapport-jours { grid-template-columns: repeat(4, minmax(0, 1fr)); } #rapport-jours button { font-size: 0.9rem; } }
/* Visite du 09/10/2026 : sur le téléphone du compagnon, l'encart d'installation
 * et les 8 jours prenaient tout le premier écran ; le rapport commençait dessous. */
.installer-compact { padding-top: 6px; padding-bottom: 6px; }
.installer-compact p { margin: 4px 0; }
.installer-boutons { display: flex; align-items: center; gap: 16px; }
.installer-boutons .bouton { min-height: 48px; padding: 0 22px; }
@media (max-width: 480px) { #rapport-jours button { min-height: 46px; padding: 3px 0; } #rapport-jours { margin-bottom: 8px; } }

.ligne-planning label { margin: 0 0 6px; }
.ligne-planning select.enregistre { border-color: var(--ok); outline: 3px solid var(--ok); }
.carte.termine { opacity: 0.6; }
.carte.aujourdhui { border: 2px solid var(--bleu); padding: 9px 11px; }
.carte.change { border-left: 5px solid var(--alerte); background: var(--alerte-fond); }   /* sa semaine : jour changé (planning-notif.ts) */
.encart-form { border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 4px 14px 14px; margin: 14px 0; background: var(--surface); }
.encart-form h2 { margin-top: 0.6em; }
.absence { font-size: 0.92rem; margin: 6px 0; padding: 4px 8px; background: var(--erreur-fond); border-left: 5px solid var(--erreur); border-radius: 0 var(--rayon) var(--rayon) 0; }
.alerte { color: var(--erreur); font-weight: 700; font-size: 0.92rem; margin: 6px 0; }
.relance { border-left-color: var(--erreur); background: var(--erreur-fond); }
#rapport-etat.envoye { border-color: var(--ok); border-left-width: 5px; background: var(--ok-fond); color: var(--ok); font-weight: 700; font-size: 1.05rem; }
.file-etat { border-left-color: var(--accent); background: var(--teinte); font-weight: 600; }
blockquote { margin: 8px 0; padding: 8px 12px; border-left: 5px solid var(--bleu); background: var(--surface); border-radius: 0 var(--rayon) var(--rayon) 0; white-space: pre-wrap; }
.bloc-chantier h2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rapport p { margin: 4px 0; }

.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin: 8px 0; }
.vignettes > .note { grid-column: 1 / -1; }
.vignette { position: relative; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 0; background: var(--surface); aspect-ratio: 1; overflow: hidden; cursor: pointer; display: block; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette.attente img { opacity: 0.6; }
.vignette span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bleu); color: #fff; font-size: 0.7rem; font-weight: 700; text-align: center; }
.vignette .retirer { position: absolute; top: 2px; right: 2px; min-width: 44px; min-height: 44px; border: 1.5px solid var(--champ); border-radius: var(--rayon); background: #fff; color: var(--texte); font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.vignette .retirer.confirmer { background: var(--erreur); border-color: var(--erreur); color: #fff; font-size: 0.72rem; width: 44px; padding: 0; }
.fenetre-photo { max-width: 900px; padding: 8px; }
.fenetre-photo img { width: 100%; height: auto; display: block; }

.paie-tableau-boite { display: none; overflow-x: auto; max-height: 75vh; }
.paie-tableau { border-collapse: collapse; font-size: 0.92rem; min-width: 100%; }
.paie-tableau th, .paie-tableau td { border-bottom: 1px solid var(--bordure); padding: 6px 8px; text-align: right; vertical-align: top; white-space: nowrap; }
.paie-tableau th { position: sticky; top: 0; background: var(--fond, #fff); z-index: 1; }
.paie-tableau th:first-child, .paie-tableau td:first-child { position: sticky; left: 0; background: var(--fond, #fff); text-align: left; z-index: 2; }
.paie-tableau td.texte, .paie-tableau th.texte { text-align: left; white-space: normal; min-width: 14em; }
.paie-tableau .texte.court { min-width: 8em; }   /* Zones, Absences : « À vérifier » n'est plus coupée à 1 366 px (lot C, 02/11/2026) */
.tableau-paie { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.95rem; }
.tableau-paie td { border-bottom: 1px solid var(--bordure); padding: 6px 4px; vertical-align: top; }
.tableau-paie td:last-child { text-align: right; font-weight: 600; }
/* L'intitulé ne se coupe jamais en plein mot (« Transpor ts », carte d'un dépanneur aux zones nombreuses). */
.tableau-paie td:first-child { white-space: nowrap; padding-right: 10px; }
/* Trajets et transports zone par zone (15/11/2026) : le total, puis les zones dessous, sur toute la largeur de la carte. */
.tableau-paie tr.avec-zones td { border-bottom: 0; padding-bottom: 0; } .tableau-paie td.par-zone { white-space: normal; text-align: right; font-weight: 400; font-size: 0.92rem; color: var(--discret); padding: 0 4px 6px; }
/* L'exemple d'un compte sans rapport (ecran-paie.ts, 15/11/2026) : pointillés et marque, jamais confondu avec une vraie carte. */
.exemple { border: 2px dashed var(--teinte-bord); border-radius: var(--rayon-carte); background: var(--surface); padding: 10px 6px; margin: 12px 0; max-width: 460px; } .exemple > p { margin: 6px; } .exemple .carte { padding: 8px; } .exemple-marque { display: inline-block; margin-left: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: var(--alerte); background: var(--alerte-fond); border: 1px solid var(--alerte); border-radius: 4px; padding: 1px 8px; }
#form-rapport.absence-declaree > :not(details.absence-jour) { display: none; }   /* rapport-absence.ts : absence = heures repliées */
details.absence-jour { margin-top: 18px; border: 1.5px solid var(--bordure); border-radius: var(--rayon); padding: 0 12px; }
details.absence-jour summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 48px; }

/* Liens texte (« Mot de passe oublié »…) : zone de toucher de 44 px au pouce. */
main p > a, .qui .lien { display: inline-block; padding: 11px 0; } .lien-bas { margin: 20px 0 0; border-top: 1px solid var(--bordure); } .lien-bas a { font-weight: 700; }   /* « Visites devis › » en bas (lot D) */
.marque { display: inline-block; padding: 8px 0; }
/* Ordinateur : « Déconnexion · Un problème ? » sur une ligne sous le nom, la roue centrée à côté (maquette B, gérant, 03/11/2026 ;
 * 2f). APRÈS la règle du dessus, même force. Le bandeau à 1280 px sur toute vue, comme main le plus large (pas de saut d'un onglet à l'autre). */
@media (min-width: 900px) and (pointer: fine) { .qui .lien { min-height: 0; padding: 3px 0; } .qui br:nth-of-type(2) { display: none; } #deconnexion::after { content: "·"; content: "·" / ""; display: inline-block; margin: 0 8px; text-decoration: none; } }
@media (min-width: 900px) { .bandeau .largeur { max-width: 1280px; } }
/* Ordinateur : le titre qui répète l'onglet souligné (Aujourd'hui, Récap, Planning, Chantiers ; le gérant : « c'est quoi l'intérêt ? », 03/11/2026 ;
 * 2f) reste pour les lecteurs d'écran, caché à l'œil, sans place prise ; jamais display: none. Le téléphone le garde (onglets en bas). */
@media (min-width: 900px) and (pointer: fine) { h1.double { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } }

/* Recette du 03/10/2026. Un nom sans espace (« Jean-Christophe-Marie… »)
 * ne fait plus déborder la page : il passe à la ligne n'importe où. */
body, .carte, .encart, .message, h1, h2, td, th { overflow-wrap: anywhere; }
select { max-width: 100%; text-overflow: ellipsis; }
.carte-tete strong { min-width: 0; }
/* Le message reste COLLÉ en haut de l'écran : visible là où il est
 * déclenché, même tout en bas de l'onglet Équipe (la barre d'onglets du
 * bas n'est pas touchée). Fond opaque : le texte dessous ne transparaît pas. */
.message.info { border-color: var(--bleu); background: var(--teinte); color: var(--texte); }
/* Le message FLOTTE au-dessus de la barre d'onglets : il ne prend aucune place
 * dans la page (04/10/2026 : collé en haut, il poussait le contenu au moment
 * où le doigt visait un jour, qui tombait sur la ligne du dessus). Un toucher le ferme. */
body.avec-onglets #message { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(72px + env(safe-area-inset-bottom, 0px)); width: min(560px, calc(100% - 32px)); z-index: 9; margin: 0; cursor: pointer; }
/* Lien d'évitement : invisible tant qu'il n'a pas le focus clavier. */
.evitement { position: absolute; left: 8px; top: -80px; z-index: 20; background: var(--bleu); color: #fff; border-radius: var(--rayon); padding: 10px 14px; }
.evitement:focus { top: 8px; }
/* Accès support : l'état, et le journal des accès. */
.tableau-journal { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.9rem; }
.tableau-journal th, .tableau-journal td { border-bottom: 1px solid var(--bordure); padding: 6px 4px; text-align: left; vertical-align: top; }
.tableau-journal th { border-bottom: 1.5px solid var(--champ); }
.confirmer-lien .bouton { margin-top: 12px; }

/* « Pour démarrer » (src/demarrage.ts) : 4 étapes qui se cochent d'elles-mêmes. */
.demarrage-suite { padding-top: 8px; padding-bottom: 8px; }
.demarrage-suite a { font-weight: 700; display: inline-block; padding: 12px 0; margin: -6px 0; }   /* 44 px au doigt même au format compact, sans grandir la ligne (11/11/2026) */
.demarrage { display: flex; flex-direction: column; gap: 10px; }
.demarrage-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.demarrage-tete strong { font-size: 1.15rem; }
.demarrage-tete span { color: var(--discret); }
.demarrage-barre { height: 8px; background: var(--bordure); border-radius: 4px; overflow: hidden; }
.demarrage-barre span { display: block; height: 100%; background: var(--ok); }
.demarrage-ok { color: var(--ok); }   /* « ✓ Jardin Martin est créé » : le premier chantier fait sur la carte (02/11/2026) */
.demarrage ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.demarrage li { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--discret); }
.demarrage li a { display: flex; align-items: center; gap: 12px; flex: 1; min-height: 52px; color: var(--texte); text-decoration: none; }
.demarrage li.suivante a { background: #fff; border: 1.5px solid var(--bleu); border-radius: var(--rayon); padding: 6px 10px; }
.demarrage .puce { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--teinte-bord); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.demarrage li.fait .puce { background: var(--ok); border-color: var(--ok); color: #fff; }
.demarrage li.suivante .puce { border-color: var(--bleu); color: var(--bleu); }
.demarrage .lien { align-self: flex-start; min-height: 44px; }
/* 01/11/2026 : l'étape suivante et son bouton seuls ; les 4 étapes se déplient. QR expiré au démarrage : l'étape d'après. */
.demarrage-prochaine { margin: 0; } .demarrage-prochaine strong { font-size: 1.1rem; }
.demarrage-toutes summary { padding: 10px 0; cursor: pointer; color: var(--bleu); font-weight: 700; }
#qr-rattrapage .bouton { margin-top: 10px; align-items: center; justify-content: center; }
.carte.relance { border-color: var(--alerte); background: var(--alerte-fond); }
/* Autres chantiers de la journée (src/rapport-autres.ts). */
.autre-chantier { border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 4px 12px 12px; margin: 10px 0; background: var(--surface); }
.autre-chantier .ligne input { flex: 1; }
.autres-jour { margin: 4px 0; }
/* Volume d'heures d'un chantier et lots (src/ecran-chantiers.ts, src/lots-saisie.ts). */
.volumes { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.volume { display: flex; flex-direction: column; gap: 2px; }
.volume meter { width: 100%; height: 10px; }
.volume.depasse strong { color: var(--erreur); }
.sous-titre { font-size: 1.05rem; margin: 18px 0 4px; }
.lot-saisie { border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 4px 12px 8px; margin: 8px 0; }
.lot-saisie .ligne { flex-wrap: wrap; align-items: flex-end; }
.lot-saisie .lot-nom { flex: 2 1 160px; min-width: 0; }
.lot-saisie .lot-heures { flex: 1 1 110px; min-width: 0; }
.lot-saisie input { width: 100%; }
/* Répartition des heures entre les lots (src/repartition.ts). */
.repartition { margin-top: 18px; }
.repartir { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.repartir .ligne-lot { display: flex; align-items: center; gap: 10px; }
.repartir .ligne-lot label { flex: 1 1 auto; min-width: 0; margin: 0; }
.repartir .ligne-lot input { flex: 0 0 110px; width: 110px; }
/* Menu engrenage du référent (src/reglages.ts) : la roue en haut à droite, le
 * panneau « Compte et réglages » qui glisse depuis la droite (comme Le Bon Split). */
.qui-zone { display: flex; align-items: center; gap: 10px; }
.roue { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: var(--rayon); background: transparent; color: #fff; cursor: pointer; }
.roue:hover { background: rgba(255, 255, 255, 0.15); }
.roue:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.voile.panneau { justify-content: flex-end; align-items: stretch; padding: 0; }
.panneau-carte { max-width: 480px; height: 100%; max-height: none; border-radius: 0; padding: 0 18px 32px; }
.panneau-tete { position: sticky; top: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bordure); z-index: 1; }
.panneau-tete h2 { margin: 0; padding: 0; border: 0; font-size: 1.25rem; }
.panneau-tete .bouton { min-height: 44px; flex-shrink: 0; white-space: nowrap; }
.panneau-carte h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
/* Inscription : un établissement fermé au registre le dit (src/inscription.ts). */
.choix.fermee { border-style: dashed; background: var(--surface); cursor: not-allowed; }
.choix .ferme { color: var(--alerte); font-weight: 700; }
/* Rubriques du menu engrenage (src/reglages.ts) : chacune s'ouvre et se referme. */
.rubrique { border-bottom: 1px solid var(--bordure); padding: 4px 0 14px; }
.rubrique > summary { font-weight: 800; font-size: 1.1rem; cursor: pointer; min-height: 52px; display: flex; align-items: center; list-style-position: inside; }
.rubrique[open] > summary { margin-bottom: 4px; }
.rubrique-danger > summary { color: var(--erreur); }
.fiche { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 4px 0 10px; }
.fiche dt { color: var(--discret); }
.fiche dd { margin: 0; font-weight: 600; }
.panneau-sortie { margin: 16px 0 6px; }
.alerte-forte { border: 1.5px solid var(--erreur); border-left-width: 5px; border-radius: var(--rayon); background: var(--erreur-fond); color: var(--erreur); padding: 10px 12px; font-weight: 700; }
/* Le message du panneau reste visible sous son titre, même tout en bas (04/10/2026 :
 * l'erreur de la suppression s'affichait cachée sous le titre). */
#panneau-message { position: sticky; top: 69px; z-index: 1; margin: 8px 0; }
/* Notes épinglées sur un chantier (src/notes-chantier.ts) : un bandeau jaune
 * qu'on ne rate pas, en haut du rapport et dans la carte du chantier. */
.notes-chantier { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.notes-bandeau { background: var(--alerte-fond); border: 1.5px solid #d99a1e; border-radius: var(--rayon-carte); padding: 10px 14px; }
.notes-titre { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 800; color: var(--alerte); }
.notes-bandeau ul { list-style: none; margin: 0; padding: 0; }
.notes-bandeau li { padding: 8px 0; border-top: 1px solid #ecd3a6; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.notes-bandeau li:first-child { border-top: 0; }
.notes-bandeau li .note { margin: 0; font-size: 0.9rem; }
.note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.note-actions a.lien { display: inline-flex; align-items: center; }
.jn-entree .note-actions { flex-direction: column; align-items: flex-start; gap: 0; }   /* une action par ligne, chacune dit ce qu'elle fait */
.jn-entree .note-saisie { margin-top: 8px; scroll-margin-bottom: 96px; }   /* « Annuler » jamais sous les onglets du bas */
.note-saisie { display: flex; flex-direction: column; gap: 8px; }
.note-saisie textarea { width: 100%; font: inherit; }
.note-saisie .duree { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.note-saisie .duree legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.note-saisie .duree label { display: flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 400; }
/* Planning de la semaine sur PC (src/planning-grille.ts) : la page s'élargit,
 * une ligne par collaborateur, une couleur par chantier. */
body:has(#vue-planning:not([hidden]) #planning-grille:not([hidden])) .largeur { max-width: 1280px; }
.planning-grille { display: flex; gap: 18px; align-items: flex-start; margin: 12px 0; }
.grille-palette { flex: 0 0 220px; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.grille-palette .note { margin: 0 0 4px; font-size: 0.88rem; }
.grille-titre { font-weight: 800; margin: 4px 0 0; }
.grille-defile { flex: 1 1 auto; min-width: 0; overflow-x: auto; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-carte); }
.grille { display: grid; grid-template-columns: 160px repeat(6, minmax(112px, 1fr)); min-width: 840px; }
.grille-tete { padding: 8px; font-weight: 800; font-size: 0.92rem; border-bottom: 1px solid var(--bordure); }
.grille-tete.aujourdhui { background: var(--teinte); }
.grille-nom, .grille-case { min-height: 56px; padding: 6px; border-bottom: 1px solid #eef1f5; border-left: 1px solid #eef1f5; display: flex; align-items: center; }
.grille-case { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; }   /* en haut : le chantier du lundi passé (prévu / pointé dessous) reste aligné sur la semaine (gérant, 02/11/2026) */
.suite-choix.pl-absent-q .bouton { min-height: 44px; }   /* la question « quand même ? » au pouce, aussi sur « Mon équipe » du chef (planning.css n'y est pas chargé) */
.grille-premier { position: relative; }
.grille-nom { border-left: 0; font-size: 0.95rem; }
.grille-case { position: relative; }
.grille-premier > select { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); opacity: 0; cursor: pointer; font: inherit; }
.etiquette { width: 100%; min-height: 44px; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; overflow-wrap: anywhere; }
.etiquette small { font-weight: 400; font-size: 0.8rem; }
.etiquette.vide { border: 1.5px dashed var(--teinte-bord); border-radius: var(--rayon); color: var(--champ); align-items: center; }
.grille-premier:focus-within .etiquette { outline: 3px solid var(--accent); outline-offset: 1px; }
.survol { outline: 3px solid var(--accent); outline-offset: -3px; background: var(--teinte); }
.puce { border-radius: var(--rayon); padding: 7px 9px; font-weight: 700; font-size: 0.92rem; border: 1.5px solid; cursor: grab; }
.grille-case .puce { cursor: pointer; }
.puce.lot { margin-left: 14px; font-weight: 600; font-size: 0.86rem; padding: 4px 8px; }
.c-bleu { background: #e6ecf5; color: #1b4c88; border-color: #2560a8; }
.c-vert { background: #e7f4ec; color: #18753c; border-color: #18753c; }
.c-orange { background: #fdf0e3; color: #8a3f00; border-color: #a14a00; }
.c-violet { background: #f0e9f8; color: #5b2f91; border-color: #6b3fa0; }
.c-rouge { background: #fcebed; color: #9e1423; border-color: #c0182b; }
.c-teal { background: #e3f4f4; color: #0d5e5e; border-color: #137373; }
.c-brun { background: #f3ece4; color: #5e3d1c; border-color: #7a5230; }
.c-rose { background: #fbe9f2; color: #8e1f5a; border-color: #b0306f; }
.c-absence { background: #eef1f5; color: var(--discret); border-color: var(--teinte-bord); }
/* Documents et plans d'un chantier (src/documents-chantier.ts). */
.docs-chantier { margin: 12px 0; }
.docs { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 4px 14px 10px; }
.docs > summary { font-weight: 800; min-height: 48px; display: flex; align-items: center; cursor: pointer; color: var(--bleu-survol); }
.docs-liste { list-style: none; margin: 0 0 8px; padding: 0; }
.docs-liste li { display: flex; align-items: center; gap: 10px; border-top: 1px solid #eef1f5; padding: 6px 0; }
.docs-liste a { flex: 1 1 auto; min-width: 0; display: flex; gap: 10px; align-items: center; min-height: 48px; text-decoration: none; color: var(--texte); overflow-wrap: anywhere; }
.docs-liste a strong { display: block; color: var(--bleu-survol); text-decoration: underline; text-underline-offset: 2px; }
.docs-liste .note { margin: 0; font-size: 0.86rem; }
.docs-type { flex: 0 0 auto; font-size: 0.72rem; font-weight: 800; border-radius: 4px; padding: 3px 6px; background: var(--erreur-fond); color: var(--erreur); }
.docs-ajout { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #eef1f5; padding-top: 10px; }
.docs-ajout label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.docs-ajout label.case { flex-direction: row; font-weight: 400; }
.docs-ajout .note { margin: 0; }
.docs-ajout input[type="file"] { max-width: 100%; min-width: 0; font-size: 0.9rem; }
.docs-ajout input[type="text"] { width: 100%; }
.docs-ajout label > input { min-width: 0; width: 100%; }
.docs-ajout label.case > input { width: auto; }
/* Tâches d'un chantier (src/taches-chantier.ts). */
.taches-chantier { margin: 12px 0; }
.taches { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 10px 14px; }
.taches-titre { font-weight: 800; margin: 0 0 6px; }
.taches meter { width: 100%; margin-bottom: 4px; }
.taches-lot { font-weight: 800; font-size: 0.85rem; color: var(--discret); text-transform: uppercase; letter-spacing: 0.03em; margin: 10px 0 2px; }
.taches-liste { list-style: none; margin: 0; padding: 0; }
.taches-liste li { display: flex; align-items: center; gap: 10px; border-top: 1px solid #eef1f5; min-height: 48px; }
.taches-liste li label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.taches-liste .note { margin: 0; font-size: 0.85rem; }
.taches-ajout { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #eef1f5; padding-top: 10px; margin-top: 8px; }
.taches-ajout label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.taches-ajout label > * { min-width: 0; width: 100%; }
.taches-rapport { border: 1px solid var(--bordure); border-radius: var(--rayon-carte); background: #fff; padding: 8px 14px 10px; margin: 14px 0; }
.taches-rapport legend { font-weight: 800; padding: 0 4px; }
.taches-rapport .note { margin: 0 0 4px; }
.ok-texte { color: var(--ok); font-weight: 700; font-size: 0.92rem; margin: 6px 0; }
.docs-liste li.indispo a { opacity: 0.45; }
/* Sur PC, l'onglet Chantiers s'élargit : notes, documents et tâches d'un
 * chantier côte à côte (maquette de la fiche chantier, 04/10/2026). */
@media (min-width: 900px) {
  body:has(#vue-chantiers:not([hidden])) .largeur { max-width: 1280px; }
  #chantiers-liste .actions .bouton { flex: 0 1 170px; }
  .fiche-panneaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 18px; align-items: start; }
  #form-chantier { max-width: 640px; }
}
/* Photos du rapport : appareil photo ou galerie (src/ecran-rapport.ts). Sur PC
 * (souris, pas d'appareil photo à viser), seule la galerie reste. */
.photos-boutons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
@media (hover: hover) and (pointer: fine) { .photo-camera { display: none !important; } }
/* Mon équipe : le chef place chacun et saisit ses absences (src/chef-actions.ts). */
.chef-planning { flex: 1 1 100%; display: flex; flex-direction: column; gap: 4px; }
.chef-planning select { width: 100%; }
.chef-absence { flex: 1 1 100%; }
/* Onglet Équipe compact (src/ecran-equipe.ts). */
.actions-equipe { align-items: flex-start; }
.plus-actions { flex: 1 1 140px; }
.plus-actions > summary { list-style: none; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; }
.plus-actions > summary::-webkit-details-marker { display: none; }
.plus-actions[open] > summary { margin-bottom: 4px; }
.plus-actions .actions { margin-top: 4px; }
/* Sur PC, Aujourd'hui, Équipe et Paie s'élargissent comme Planning et Chantiers :
 * les cartes se rangent sur deux ou trois colonnes. */
@media (min-width: 900px) {
  body:has(#vue-recap:not([hidden])) .largeur, body:has(#vue-equipe:not([hidden])) .largeur, body:has(#vue-paie:not([hidden])) .largeur { max-width: 1280px; }
  #equipe, #paie-contenu { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; align-items: start; }
  #equipe > li, #paie-contenu > * { margin: 0; }
  #equipe > li.note, #paie-contenu > p { grid-column: 1 / -1; }
  /* La Paie sur PC : le tableau, une ligne par compagnon (ecran-paie.ts) ; les cartes restent au téléphone. */
  #paie-contenu > article { display: none; }
  #paie-contenu > .paie-tableau-boite { display: block; grid-column: 1 / -1; }
  #vue-equipe form, #vue-recap #demarrage { max-width: 760px; } #vue-equipe #form-serie { max-width: 1040px; }   /* « Équipe de » assez large pour « Kevin LE GOFF » (lot D) */
  #recap-contenu .bloc-chantier { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 0 14px; align-items: start; }
  #recap-contenu .bloc-chantier > h2 { grid-column: 1 / -1; }
}

/* Le Bureau ne voit pas la rentabilité (garde.ts, 05/10/2026) : heures prévues, jauges. */
.sans-rentabilite .renta, .sans-rentabilite .lot-heures, .sans-rentabilite .volumes, .sans-rentabilite #vue-chantiers .repartir { display: none !important; }
/* Dirigeants et bureau (encadrement.ts) */
.enc-liste { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.enc-compte { border: 1px solid var(--bord, #d3dae6); border-radius: 8px; padding: 10px 12px; }
.enc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.choix-acces { border: 0; padding: 0; margin: 0 0 8px; }
.choix-acces legend { font-weight: 700; padding: 0; margin-bottom: 4px; }

/* Mettre l'équipe en route (equipe-serie.ts, 05/10/2026) */
.equipe-outils { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.equipe-outils .bouton { flex: 1 1 240px; }
.serie { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.serie-ligne { display: grid; grid-template-columns: 28px repeat(2, minmax(0, 1fr)); gap: 6px 8px; align-items: end; border: 1px solid var(--bord, #d3dae6); border-radius: 8px; padding: 10px; }
.serie-ligne > div, .serie-ligne > label { min-width: 0; }
.serie-ligne input, .serie-ligne select { width: 100%; box-sizing: border-box; }
.serie-num { grid-row: span 2; align-self: start; font-weight: 700; color: var(--texte-doux, #4a5872); padding-top: 26px; }
.serie-chef { align-self: center; } .serie-ligne > div:last-child { grid-column: 1 / -1; }   /* « Équipe de » sur toute la largeur : le nom entier (lot D) */
@media (min-width: 900px) {
  .serie-ligne { grid-template-columns: 28px 1.2fr 1.4fr 90px 150px 1.4fr; border: 0; border-bottom: 1px solid var(--bord, #d3dae6); border-radius: 0; padding: 4px 0; }
  .serie-num { grid-row: auto; padding-top: 26px; } .serie-ligne > div:last-child { grid-column: auto; }
}
#qr-file { text-align: left; }

/* Fiches d'intervention (ecran-interventions.ts, ecran-facturer.ts) */
.signature canvas { display: block; width: 100%; max-width: 600px; aspect-ratio: 600 / 220; height: auto; border: 1.5px solid var(--bord-fort, #6b7a92); border-radius: 6px; background: #fff; touch-action: none; }
.signature-vue { display: block; max-width: 300px; width: 100%; height: auto; border: 1px solid var(--bord, #d3dae6); border-radius: 6px; background: #fff; }
.choix-statut { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.insecable { white-space: nowrap; }

/* ── Journal du chantier (journal-chantier.ts, 06/10/2026) ── */
.lien.retour { display: inline-block; text-decoration: none; }
.jn-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jn-tete h1 { min-width: 0; overflow-wrap: anywhere; margin-bottom: 0.2em; }
.jn-tete .bouton { flex: none; }
.jn-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.jn-filtres button { min-height: 44px; border: 1px solid var(--bordure); border-radius: 20px; background: #fff; color: var(--texte); font: inherit; font-size: 0.9rem; padding: 0 12px; cursor: pointer; }
.jn-filtres button[aria-pressed="true"] { background: var(--teinte); border-color: var(--bleu); color: var(--bleu); font-weight: 700; }
.jn-etiquettes { border: 0; padding: 0; margin: 14px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.jn-etiquettes legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.jn-etiquettes label { position: relative; display: flex; align-items: center; min-height: 44px; border: 1.5px solid var(--champ); border-radius: 22px; background: #fff; padding: 0 14px; font-weight: 600; cursor: pointer; }
.jn-etiquettes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jn-etiquettes label:has(input:checked) { border: 2px solid var(--bleu); background: var(--teinte); color: var(--bleu); font-weight: 700; }
.jn-etiquettes label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--halo); }
.jn-jour { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--discret); margin: 22px 0 8px; }
.jn-entree .carte-tete span:first-child { min-width: 0; }
.jn-texte { white-space: pre-line; overflow-wrap: anywhere; margin: 6px 0; }
.jn-soir { margin-top: 8px; }
.jn-soir summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--discret); font-weight: 600; }
.jn-rapport { border-top: 1px solid var(--bordure); padding-top: 8px; margin-top: 8px; }

/* Visite devis ET éditeur de dessin des photos (annoteur.ts) : dans visites.css (03/11/2026, app.css plein).
 * Ici le cadre des photos annotées, partagé avec la visionneuse (récap, mon équipe, fiche, facturer, seul). */
.photo-cadre { position: relative; }
.photo-cadre svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Le nom d'une carte de l'équipe ouvre la fiche du compagnon (ecran-equipe.ts, fiche-compagnon.ts). */
.carte-nom { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; color: var(--texte); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.carte-nom span { color: var(--bleu); font-weight: 700; }
.carte-nom:hover { color: var(--bleu); }

/* ── Fiche d'un compagnon (fiche-compagnon.ts, maquette A du 07/10/2026) ── */
.fc-tete h1 { margin: 0; font-size: 1.5rem; min-width: 0; overflow-wrap: anywhere; }
.fc-gestes { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.fc-gestes .bouton { min-height: 44px; padding: 2px 4px; line-height: 1.15; overflow-wrap: anywhere; font-size: clamp(0.85rem, 4vw, 1rem); }
.fc-titre { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--discret); margin: 22px 0 8px; }
.fc-nav { margin: 0 0 8px; }
.fc-liste { list-style: none; margin: 0; padding: 2px 12px; }
.fc-ligne { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--bordure); font-size: 0.95rem; }
.fc-ligne:last-child, .fc-chantier:last-child { border-bottom: 0; }
.fc-ligne span:last-child { font-variant-numeric: tabular-nums; }
.fc-absent { color: var(--alerte); }
.fc-auj strong { text-decoration: underline; }
.fc-chantier { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--bordure); }
.fc-chantier > span { min-width: 0; }
.fc-chantier .note { display: block; margin: 0; }
.fc-h { font-variant-numeric: tabular-nums; flex: none; }
.fc-bloc p { margin: 6px 0; }
.fc-rapport + .fc-rapport { border-top: 1px solid var(--bordure); margin-top: 8px; padding-top: 4px; }
.fc-paie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fc-paie span, .fc-paie strong { display: block; }
.fc-alerte { color: var(--alerte); font-weight: 700; }
/* Retirer quelqu'un : taper « supprimer » (commun.ts, JC.demanderMot). */
.mot-confirme { border: 1.5px solid var(--erreur); border-radius: var(--rayon); background: var(--erreur-fond); padding: 8px 12px 12px; margin-top: 8px; }
.mot-confirme label { font-weight: 600; display: block; }
.mot-confirme input { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; }
/* Liste de l'équipe : cartes compactes, toute la carte ouvre la fiche (choix B, 07/10/2026). */
.carte-compacte { padding: 0; }
.carte-lien { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; padding: 12px; color: var(--texte); text-decoration: none; min-height: 44px; }
.carte-lien > :not(.chevron) { grid-column: 1; }
.carte-lien .carte-tete strong { overflow-wrap: anywhere; }
.carte-lien .note, .carte-lien .absence { display: block; margin: 2px 0 0; }
.carte-lien .absence { color: var(--alerte); font-weight: 650; font-size: 0.92rem; }
.carte-lien .chevron { grid-column: 2; grid-row: 1 / span 3; font-size: 1.8rem; line-height: 1; color: var(--bleu); font-weight: 700; }
.carte-lien:hover, .carte-lien:active { background: var(--teinte); }
.fc-absences { list-style: none; margin: 0; padding: 0; }
.fc-absences li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--bordure); padding: 4px 0; }
.fc-absences li:last-child { border-bottom: 0; }
.fc-options .case { margin: 6px 0; }
/* Le bouton « Dicter » sous un champ (dictee.ts). */
.bouton.dictee { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 44px; padding: 0 14px; }
.bouton.dictee.dictee-active { background: var(--erreur); border-color: var(--erreur); color: #fff; animation: dictee 1.2s ease-in-out infinite; }
@keyframes dictee { 50% { opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) { .bouton.dictee.dictee-active { animation: none; } }

/* ── Fiche chantier et relevé des travaux (fiche-chantier.ts, releve-chantier.ts ; maquette A du 07/10/2026) ── */
#chantiers-liste .carte-compacte .volume { padding: 0 12px 10px; }
.bouton.ch-photos { min-height: 72px; font-size: 1.25rem; font-weight: 800; }
.ch-raccourcis { margin-top: 8px; }
.ch-raccourcis .bouton { min-height: 48px; }
.ch-reglages { margin-top: 22px; }
.ch-reglages summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--discret); cursor: pointer; }
.releve { margin-top: 18px; }

/* Plusieurs chantiers le même jour (src/planning-suite.ts). */
.suite-puce { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 2px 2px 2px 8px; border-radius: var(--rayon); font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.suite-puce button { min-width: 44px; min-height: 44px; border: 0; background: none; font: inherit; font-size: 1.1rem; color: inherit; cursor: pointer; }
.suite-ajout { min-height: 36px; border: 1.5px dashed var(--teinte-bord); border-radius: var(--rayon); background: #fff; color: var(--bleu); font: inherit; font-size: 0.85rem; font-weight: 700; padding: 0 6px; }
.suite-ligne { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.suite-ligne:empty { display: none; }
.suite-ligne .suite-ajout { min-height: 44px; }
.suite-choix { display: flex; flex-direction: column; gap: 4px; }
.suite-choix .bouton { min-height: 36px; padding: 4px 8px; font-size: 0.85rem; }
/* Sur la grille du PC, « + Ajouter » n'apparaît qu'au survol de la case ou au clavier. */
.grille-case .suite-ajout { opacity: 0; min-height: 28px; font-size: 0.8rem; }
.grille-case:hover .suite-ajout, .grille-case .suite-ajout:focus { opacity: 1; }
/* Taille de l'équipe à l'inscription (server/origine.ts) : quatre gros boutons. */
fieldset.choix-taille { border: 0; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } fieldset.choix-taille.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }   /* effectif sur une rangée (inscription allégée, 12/11/2026) */
fieldset.choix-taille legend { font-weight: 650; padding: 0; margin-bottom: 8px; }
fieldset.choix-taille label { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid var(--bordure); border-radius: var(--rayon); font-weight: 700; cursor: pointer; text-align: center; padding: 4px 8px; }
fieldset.choix-taille input { position: absolute; opacity: 0; width: 1px; height: 1px; }
fieldset.choix-taille label:has(input:checked) { border-color: var(--bleu); background: var(--bleu); color: #fff; }   /* choix plein bleu + ✓ (gérant, 02/11/2026) */
fieldset.choix-taille label:has(input:checked) span::before { content: "✓ "; }
.erreur-champ { color: var(--erreur); margin: 8px 0 4px; } .erreur-champ strong { font-weight: 700; }   /* erreur-champ.ts : variante A */
:is(input, select, textarea).champ-faux, label.champ-faux { border-color: var(--erreur) !important; outline: 2px solid var(--erreur); outline-offset: 1px; } fieldset.champ-faux label { border: 2px solid var(--erreur) !important; }
#ch-zone.a-completer { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; background: var(--alerte-fond, #fff4e5); }   /* fiche-chantier.ts : Zone ? mène à la correction */
p.lots-depasse { color: var(--alerte); font-weight: 650; }   /* lots-saisie.ts : D4, orange, jamais bloquant */
fieldset.choix-pause { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }   /* inscription : la pause choisie, sans valeur par défaut */
fieldset.choix-taille label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (min-width: 560px) { fieldset.choix-taille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Accueil du dirigeant seul (src/ecran-seul.ts, maquette 3 du 12/10/2026) : un bouton géant, le fil du jour. */

/* Le mot du dirigeant pour un jour (planning-note.ts) et, côté compagnon, ce mot, ses
 * collègues du jour et « Y aller » (ecran-rapport.ts) — 15/10/2026. */
.pl-note { display: block; width: 100%; text-align: left; font-size: 0.92rem; overflow-wrap: anywhere; }
.pl-note-pleine { color: var(--texte); font-weight: 600; text-decoration: none; }
.grille-case .pl-note { font-size: 0.78rem; min-height: 24px; padding: 0; }
.pl-note-form { margin-top: 6px; }
.pl-note-form textarea { width: 100%; box-sizing: border-box; }
#rp-jour { margin: 4px 0 10px; }
.rp-mot { margin: 8px 0; }
.rp-avec { margin: 6px 0; }
.rp-y-aller { display: inline-flex; align-items: center; margin: 4px 0; }
/* « Continuer avec Google » (google-bouton.ts, 01/11/2026) : bouton clair et G en couleurs, comme Google l'impose. */
.bouton-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin: 12px 0 4px; padding: 0 16px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 8px; font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.bouton-google:hover, .bouton-google:focus-visible { background: #f2f2f2; }
.bouton-google svg { width: 20px; height: 20px; flex: none; }
.ou-separateur { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; color: var(--discret); font-size: 0.92rem; }
.ou-separateur::before, .ou-separateur::after { content: ""; flex: 1; border-top: 1px solid var(--teinte-bord); }
#externes-liste .carte, #vehicules-liste .carte { padding: 12px 14px; }   /* intérim et sous-traitance (equipe-externes.ts) : pas de lien pleine carte, donc le retrait ici */
/* 320 px (lot C, 96, 02/11/2026) : en-tête et bandeaux plus compacts, le titre de l'onglet remonte ; aucun bouton masqué, toujours 44 px au doigt ; « Chef d'équipe » d'une ligne de série sous le contrat (coupé « d'équi / pe », 03/11/2026).
 * En-tête et bandeaux compacts pour TOUS les téléphones depuis l'audit du 10/11/2026 (480 px et moins) : à 390 px, ils prenaient 340 px sur 844 avant le titre. */
@media (max-width: 480px) { .bandeau { padding: 4px 0; } .marque { font-size: 1rem; letter-spacing: 0.02em; padding: 4px 0; } .sous-marque, .qui { font-size: 0.85rem; line-height: 1.25; }
  main > .encart, main > p.encart { margin: 10px 0; padding: 2px 10px; font-size: 0.95rem; line-height: 1.35; } main > .encart > p { margin: 6px 0; }
  main > .encart p > a { padding: 12px 0; margin: -6px 0; } }   /* « Lire les conditions »… : 44 px au doigt malgré la ligne plus basse (relecture du 11/11/2026) */
@media (max-width: 360px) { .serie-chef { grid-column: 2 / -1; } }
/* Bandeau « Confirmez votre e-mail » : une ou deux lignes au téléphone, pas trois hautes (audit du 10/11/2026 : il prenait
 * 155 px en tête de chaque onglet). Les deux liens gardent une zone à toucher par leur marge intérieure. */
#encart-email { margin: 10px 0; padding: 0 12px; }
#encart-email > p { margin: 8px 0; font-size: 0.95rem; line-height: 1.5; }
#encart-email > p .lien { display: inline; min-height: 0; padding: 11px 2px; margin: -6px 0; }   /* 44 px au doigt (relecture du 11/11/2026) */
/* « Nouvelle version de l'appli » (commun.ts) : « Recharger » ne se coupe plus (« Recharge / r » à 390 px), une croix le ferme
 * (audit du 10/11/2026 : collé sur l'en-tête, il cachait la roue pendant tout un rapport) ; il revient tant qu'une saisie retient la mise à jour. */
.nouvelle-version .bouton { flex: none; white-space: nowrap; }
.nouvelle-version .fermer { flex: none; width: 44px; height: 44px; margin-left: -4px; border: 0; border-radius: var(--rayon); background: none; color: var(--discret); font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.nouvelle-version .fermer:hover { background: var(--teinte); color: var(--texte); }
