/* ==========================================================================
   verre.css — l'habillage « Melange 2 + 5 », valide le 2026-09-30
   ==========================================================================
   Source qui fait foi : docs/design/maquettes/2026-09-30-cinq-styles.html,
   section « Melange 2 + 5 » et sa legende. Fond en taches douces, capsules
   de verre qui flottent, barre d'onglets en capsule fixe, degrade bleu nuit
   pour ce qui est choisi ou ce qui garde. Textes de 11 a 15 px.

   ZONE DE TOUCHER : chaque bouton garde au moins 48 px ; la pastille visible,
   plus petite, est son `::before` (legende « Zone de toucher »).
   Charge EN DERNIER : il habille, il ne change aucun comportement. Aucune
   animation permanente ; le flou reste fixe.
   ========================================================================== */

:root {
  --degrade-nuit: linear-gradient(160deg, #050F1C 0%, #10243E 60%, #1A2C44 100%);
  --verre: rgba(255, 255, 255, .74);
  --verre-ombre: 0 4px 14px rgba(16, 36, 62, .09), inset 0 1px 0 rgba(255, 255, 255, .9);
  --pastille: rgba(255, 255, 255, .8);
}

/* ---------------------------------------------------------------- le fond */
body {
  background:
    radial-gradient(55% 32% at 88% 6%, #C3CFDD 0, rgba(195, 207, 221, 0) 72%),
    radial-gradient(60% 30% at 0% 30%, #E6E1D6 0, rgba(230, 225, 214, 0) 72%),
    radial-gradient(65% 36% at 100% 62%, #D5DFEB 0, rgba(213, 223, 235, 0) 72%),
    radial-gradient(75% 40% at 10% 98%, #E6E1D6 0, rgba(230, 225, 214, 0) 75%),
    radial-gradient(40% 22% at 45% 45%, #FBF9F4 0, rgba(251, 249, 244, 0) 80%),
    #F3EFE7;
  background-attachment: fixed;
}
body.soleil { background: #FFFFFF; }

/* ------------------------------------- la tete : une capsule de verre (gl) */
.haut {
  margin: calc(8px + var(--haut)) 12px 0; min-height: 52px; padding: 0 6px 0 14px; border-radius: 22px;
  color: var(--nuit); background: var(--verre); box-shadow: var(--verre-ombre);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.haut .pastille-reseau { color: var(--nuit); }
.haut .pastille-corps { border: 0; background: transparent; font-size: 11px; color: var(--nuit); }
.haut .pastille-reseau.hors-ligne .pastille-corps { color: var(--ambre-texte); }
.haut .pastille-forme { box-shadow: none; background: #7C8792; }
.haut .compte-rond { border: 0; background: var(--degrade-nuit); color: #F3EFE7; }

/* la bande de la copie : une ligne fine, sans barre pleine */
.bande { margin: 6px 12px 0; border: 0; border-radius: 16px; background: var(--pastille); box-shadow: var(--verre-ombre); font-size: 12px; }
.bande small { font-size: 11px; }

/* ------------------------------- la barre d'onglets : une capsule fixe en bas */
.barre-onglets {
  left: 10px; right: 10px; bottom: calc(8px + var(--bas)); padding: 3px; gap: 0; border: 0; border-radius: 28px;
  background: rgba(255, 255, 255, .86); box-shadow: 0 6px 20px rgba(16, 36, 62, .14);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.barre-onglets .onglet, .barre-onglets .onglet.onglet-vide {
  min-height: 52px; gap: 1px; padding: 0 2px; border: 0; border-radius: 24px; background: transparent;
  color: #3E4A56; font-size: 10px; font-weight: 600; box-shadow: none; transform: none;
}
.barre-onglets .onglet[aria-selected="true"], .barre-onglets .onglet.onglet-vide[aria-selected="true"] {
  background: var(--degrade-nuit); color: #FFFFFF; box-shadow: none; transform: none;
}
.barre-onglets .icone { width: 20px; height: 20px; }
/* le contenu defile au-dessus de la barre, sans jamais la toucher */
.application .ecran { padding-bottom: calc(96px + var(--bas)); }

/* ------------------------------------ les messages : verre, sans cadre */
.bloc-message { border: 0; border-radius: 22px; background: var(--pastille); box-shadow: var(--verre-ombre); }
.bouton-second, .bouton-plein { border-radius: 26px; font-size: 14px; }
.bouton-second { border: 0; background: var(--pastille); box-shadow: var(--verre-ombre); }
.bouton-plein { background: var(--degrade-nuit); }

/* ------------------------------------ la liste des interventions (Reprendre) */
.carte-int { border: 0; border-radius: 22px; background: var(--pastille); box-shadow: var(--verre-ombre); }
.retour-accueil { min-height: 48px; padding: 0 8px 0 2px; border: 0; background: none; color: #3E4A56; font: inherit; font-size: 13px; font-weight: 700; }
.retour-accueil::before { content: "\2039\00a0"; }

/* ----------------------------- boutons en pastille : zone 48 px, pastille plus petite */
hc-accueil-intervention button, hc-saisie .hd button, hc-saisie .ty button, hc-saisie .ln button, hc-saisie .pave button,
hc-saisie .vo button, hc-saisie .gp, hc-saisie .np, hc-saisie .lr, hc-saisie .af, hc-saisie .an3, hc-saisie .rw button {
  position: relative; isolation: isolate; min-height: 48px; min-width: 48px; border: 0 !important; background: none !important;
  box-shadow: none; color: var(--nuit); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; white-space: nowrap;
}
hc-accueil-intervention button::before, hc-saisie .hd button::before, hc-saisie .ty button::before, hc-saisie .ln button::before,
hc-saisie .pave button::before, hc-saisie .vo button::before, hc-saisie .gp::before, hc-saisie .np::before {
  content: ""; position: absolute; inset: 8px 2px; border-radius: 999px; z-index: -1;
  background: var(--verre); box-shadow: var(--verre-ombre);
}
hc-saisie .np, hc-accueil-intervention .np { color: #FFFFFF; }
hc-saisie .np::before, hc-accueil-intervention .np::before { background: var(--degrade-nuit); box-shadow: 0 6px 18px rgba(16, 36, 62, .2); }

/* Plein soleil (relecture du 30.09) : le fond devient blanc et le verre s'y perd.
   Chaque pastille, chaque rangee et chaque carte reprend un contour noir. */
body.soleil hc-accueil-intervention button::before, body.soleil hc-saisie .hd button::before,
body.soleil hc-saisie .ty button::before, body.soleil hc-saisie .ln button::before, body.soleil hc-saisie .pave button::before,
body.soleil hc-saisie .vo button::before, body.soleil hc-saisie .gp::before, body.soleil hc-saisie .np::before {
  background: #FFFFFF; box-shadow: none; border: 2px solid #000000;
}
body.soleil hc-saisie .np::before, body.soleil hc-accueil-intervention .np::before { background: #000000; }
body.soleil hc-saisie .lr, body.soleil hc-saisie .af, body.soleil hc-saisie .an3, body.soleil hc-saisie .rw button {
  border: 2px solid #000000 !important; border-radius: 16px;
}
body.soleil .bouton-second, body.soleil .carte-int, body.soleil .bloc-message, body.soleil .haut {
  border: 2px solid #000000; box-shadow: none;
}

/* ------------------------------------------- l'onglet Intervention au retour */
hc-accueil-intervention { display: block; }
hc-accueil-intervention[hidden] { display: none; }
hc-accueil-intervention .vide1 { padding: 32px 8px 18px; }
hc-accueil-intervention .vide1 b { display: block; font-size: 22px; font-weight: 800; }
hc-accueil-intervention .vide1 small { font-size: 12px; color: #3E4A56; }
hc-accueil-intervention .acts { display: flex; flex-direction: column; gap: 4px; }
hc-accueil-intervention .big1 { width: 100%; min-height: 56px; font-size: 14px; font-weight: 700; }
hc-accueil-intervention .big1::before { inset: 4px 0; border-radius: 26px; }
hc-accueil-intervention .icone { width: 20px; height: 20px; }
hc-accueil-intervention .lab, hc-saisie .lab {
  display: flex; justify-content: space-between; padding: 14px 6px 4px; font-size: 10px; font-weight: 700; color: #5F6B78;
  text-transform: uppercase; letter-spacing: .05em;
}
hc-saisie .lab { padding: 14px 18px 4px; }
hc-accueil-intervention .lab span, hc-saisie .lab span { text-transform: none; letter-spacing: 0; font-weight: 600; }
hc-accueil-intervention .lst, hc-saisie .lst { padding: 2px 0; border-radius: 22px; background: var(--pastille); box-shadow: var(--verre-ombre); }
hc-saisie .lst { margin: 0 12px; }
hc-accueil-intervention .lr, hc-saisie .lr {
  width: 100%; display: grid !important; grid-template-columns: 1fr auto; gap: 0 8px; align-items: center; text-align: left;
  white-space: normal; padding: 4px 16px; border-bottom: 1px solid rgba(16, 36, 62, .06) !important;
}
hc-accueil-intervention .lr::before { display: none; }
hc-accueil-intervention .lr:last-child, hc-saisie .lr:last-child { border-bottom: 0 !important; }
hc-accueil-intervention .lr b, hc-saisie .lr b { font-size: 13px; font-weight: 600; }
hc-accueil-intervention .lr small, hc-saisie .lr small { display: block; font-size: 11px; font-weight: 500; color: #5F6B78; }
hc-accueil-intervention .lr i, hc-saisie .lr i { font-style: normal; font-size: 12px; color: #3E4A56; }

/* ------------------------------------------------ la saisie : l'affaire en tete */
hc-saisie .aff { min-height: 48px; margin: 4px 0 0; padding: 0 4px; background: none; border: 0; }
hc-saisie .aff .ret { width: 48px; }
hc-saisie .af { justify-content: flex-start !important; gap: 10px; padding: 0 4px; text-align: left; flex: 1 1 auto; min-width: 0; }
hc-saisie .af b { font-size: 22px; font-weight: 800; }
hc-saisie .af span { font-size: 11px; font-weight: 600; color: #3E4A56; line-height: 1.3; white-space: normal; }
hc-saisie .sousong { margin: 2px 12px 0; padding: 3px; border: 0; border-radius: 18px; background: var(--verre); box-shadow: var(--verre-ombre); }
hc-saisie .sousong button { border-radius: 15px; }
hc-saisie .sousong button.on { background: var(--degrade-nuit); color: #FFFFFF; }
hc-saisie .sousong button.on::after { display: none; }
hc-saisie .sousong button.on small { color: rgba(243, 239, 231, .82); }

/* ------------------------------------------- la mesure (maquette, ecran 1) */
hc-saisie .hd { display: flex; align-items: center; gap: 4px; padding: 4px 8px 0; }
hc-saisie .hd .ic { width: 48px; padding: 0; font-size: 18px; }
hc-saisie .hd .ic::before { inset: 7px; border-radius: 50%; }
hc-saisie .hd .pt::before { display: none; }
hc-saisie .hd .pt b { font-size: 20px; font-weight: 800; }
hc-saisie .mes { height: 34px; display: flex; align-items: center; margin-left: auto; margin-right: 8px; padding: 0 14px; border-radius: 17px;
  background: #10243E; color: #FFFFFF; font-size: 15px; font-weight: 700; }
hc-saisie .mes.rempl { background: var(--ambre-fond); color: var(--ambre-texte); box-shadow: inset 0 0 0 1px var(--ambre); }
hc-saisie .ty { display: flex; padding: 0 10px; }
hc-saisie .ty button, hc-saisie .ln .grp button, hc-saisie .ln .ch { padding: 0 9px; font-size: 12px; }
hc-saisie .ty button::before, hc-saisie .ln button::before { inset: 10px 1.5px; }
hc-saisie .ty .on, hc-saisie .ln .grp .on { color: #FFFFFF; }
hc-saisie .ty .on::before, hc-saisie .ln .grp .on::before { background: #10243E; box-shadow: none; }
hc-saisie .ty .propose::before { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #10243E; outline: 1.5px dashed #10243E; outline-offset: -1.5px; }
hc-saisie .ln { display: flex; justify-content: flex-start; align-items: center; padding: 0 10px; flex-wrap: wrap; }
hc-saisie .ln .grp { display: flex; }
hc-saisie .ln .ch.on { font-weight: 700; }
hc-saisie .ln .ch.on::before { box-shadow: inset 0 0 0 1.5px #10243E, 0 4px 14px rgba(16, 36, 62, .09); }
hc-saisie .ln .ch.manque { color: var(--ambre-texte); }
hc-saisie .card {
  margin: 4px 12px 2px; min-height: 58px; border-radius: 22px; background: var(--degrade-nuit); color: #F3EFE7;
  padding: 0 4px 0 14px; box-shadow: 0 6px 18px rgba(16, 36, 62, .2); display: flex; align-items: center; gap: 8px;
}
hc-saisie .card.rempl { box-shadow: 0 0 0 2px var(--ambre), 0 6px 18px rgba(16, 36, 62, .2); }
hc-saisie .card small { font-size: 10px; font-weight: 600; opacity: .8; line-height: 1.3; }
hc-saisie .card b { margin-left: auto; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
hc-saisie .card b.rien { opacity: .45; }
hc-saisie .u1 { position: relative; isolation: isolate; min-height: 48px; min-width: 48px; padding: 0 12px; border: 0; background: none;
  color: #F3EFE7; font: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
hc-saisie .u1::before { content: ""; position: absolute; inset: 11px 2px; border-radius: 999px; z-index: -1;
  background: rgba(243, 239, 231, .16); box-shadow: inset 0 0 0 1px rgba(243, 239, 231, .35); }
hc-saisie span.u1::before { display: none; }
hc-saisie .unites { justify-content: flex-end; }
hc-saisie .q2 { margin: 2px 16px 0; font-size: 11px; color: #3E4A56; }
hc-saisie .q2 .att { color: var(--ambre-texte); font-weight: 600; }
hc-saisie .sheet { margin: 4px 10px 0; padding: 0 2px; border-radius: 22px; background: rgba(255, 255, 255, .4); box-shadow: 0 2px 8px rgba(16, 36, 62, .06); }
hc-saisie .pave.p5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 2px 0 4px; }
hc-saisie .pave.p5 button { font-size: 16px; font-weight: 600; padding: 0; height: auto; }
hc-saisie .pave.p5 button::before { inset: 5px 2px; border-radius: 14px; background: rgba(255, 255, 255, .85); }
hc-saisie .pave.p5 .x { color: #5F6B78; }
hc-saisie .pave.p5 .bk { grid-column: 5; grid-row: 1 / 3; }
hc-saisie .pave.p5 .an2 { grid-column: span 2; color: var(--ambre-texte); font-size: 13px; }
hc-saisie .pave.p5 .an2.on, hc-saisie .an3.on { color: #FFFFFF; }
hc-saisie .pave.p5 .an2.on::before, hc-saisie .an3.on::before { background: var(--ambre); }
hc-saisie .pave.p5 .g { grid-column: span 3; min-height: 48px; margin: 0; color: #FFFFFF; font-size: 13px; font-weight: 700; white-space: normal; line-height: 1.15; }
hc-saisie .pave.p5 .g::before { inset: 6px 2px; border-radius: 18px; background: var(--degrade-nuit); }
hc-saisie .pave.p5 .g.rempl::before { background: var(--ambre-fond); box-shadow: inset 0 0 0 1px var(--ambre); }
hc-saisie .pave.p5 .g.rempl { color: var(--ambre-texte); }
hc-saisie .vo { display: flex; gap: 4px; padding: 2px 10px 0; }
hc-saisie .vo button { padding: 0 16px; font-size: 14px; }
hc-saisie .vo button::before { inset: 4px 2px; background: rgba(255, 255, 255, .8); }
hc-saisie .vo .pj { width: 52px; padding: 0; }
hc-saisie .vo .pj::before { inset: 2px; border-radius: 50%; background: #FFFFFF; }
hc-saisie .vo .icone { width: 24px; height: 24px; }
hc-saisie .hi { margin: 8px 12px 16px; padding: 2px 8px 6px 12px; max-height: 164px; overflow-y: auto; border-radius: 18px;
  background: var(--verre); box-shadow: var(--verre-ombre); scrollbar-width: none; }
hc-saisie .hi h5 { display: flex; justify-content: space-between; margin: 0; padding: 6px 0 0; font-size: 10px; font-weight: 700; color: #5F6B78;
  text-transform: uppercase; letter-spacing: .05em; }
hc-saisie .hi h5 span { text-transform: none; letter-spacing: 0; font-weight: 600; }
hc-saisie .rw { display: grid; grid-template-columns: 40px 44px 1fr 70px 34px 78px; align-items: center; min-height: 28px; font-size: 11px; }
hc-saisie .rw .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
hc-saisie .rw .h { text-align: right; color: #5F6B78; }
hc-saisie .rw button { justify-self: end; padding: 0 2px; font-size: 11px; font-weight: 800; text-decoration: underline; }
hc-saisie .rw .tg { justify-self: end; padding: 2px 6px; border-radius: 8px; background: var(--ambre-fond); color: var(--ambre-texte); font-size: 10px; font-weight: 700; }
hc-saisie .rw.r1 { min-height: 48px; }
hc-saisie .rw.old { opacity: .5; }
hc-saisie .tdr { margin: 4px 12px 0; padding: 0 10px 8px; border-radius: 20px; background: var(--pastille); box-shadow: var(--verre-ombre); }
hc-saisie .tdr .big1 { width: 100%; min-height: 52px; font-weight: 700; }
hc-saisie .tdr small { display: block; font-size: 10px; color: #5F6B78; }
hc-saisie .r { display: flex; align-items: center; gap: 6px; }
hc-saisie .t2r { padding: 6px 10px 0; }
hc-saisie .t2r .an3 { color: var(--ambre-texte); }
hc-saisie .t2r .g2 { flex: 1; font-weight: 700; }

/* -------------------------------------------- l'anomalie et l'affaire (2, 4) */
hc-saisie .mz { margin: 8px 12px 0; padding: 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .8); box-shadow: var(--verre-ombre); }
hc-saisie .mz .r { gap: 8px; font-size: 12px; }
hc-saisie .mz em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 15px; }
hc-saisie .mz p { font-size: 13px; margin: 4px 0 0; }
hc-saisie .mz small { font-size: 10px; color: #5F6B78; }
hc-saisie .fiche, hc-saisie .cycle span, hc-saisie .lp, hc-saisie .act, hc-saisie .vp, hc-saisie .vm, hc-saisie .refus, hc-saisie .jl {
  border-color: transparent !important; box-shadow: var(--verre-ombre);
}
hc-saisie .fiche { border-radius: 22px; background: var(--verre); }
hc-saisie .kv2 { margin: 0 12px; padding: 6px 14px; border-radius: 20px; background: var(--pastille); box-shadow: var(--verre-ombre); }
hc-saisie .kv2 div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 12px; }
hc-saisie .kv2 span { color: #5F6B78; }
hc-saisie .r1b { padding: 4px 12px 0; gap: 4px; flex-wrap: wrap; }
hc-saisie .act { border-radius: 22px; }
hc-saisie .act.p { background: var(--degrade-nuit); }
hc-saisie .lp { border-radius: 18px; }
hc-saisie .passage { border-radius: 16px; }

/* La mesure (ecran 1) : ni bande de la copie ni onglets Saisie | Visualisation, comme la maquette ; le pave remonte. */
body.en-mesure .bande { display: none; }
body.en-mesure hc-saisie .sousong, body.en-mesure hc-saisie .compteur-envois { display: none; }
