/* Accueil GHE : vue unifiee Ma journee + Esprit d'equipe, sans iframe. */
.hc-home-top-nav[data-header-compact] .hc-home-filters[data-count="4"] {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:clamp(3px,1vw,7px)!important;
}
.hc-home-top-nav[data-header-compact] .hc-home-filters[data-count="4"]>button {
  padding:5px 2px 6px!important;gap:4px!important;border-radius:14px!important;
}
.hc-home-top-nav[data-header-compact] .hc-home-filters[data-count="4"]>button>strong {
  font-size:clamp(.55rem,2.35vw,.75rem)!important;line-height:1.16!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
.hc-home-top-nav[data-header-compact] .hc-home-filters[data-count="4"] .hc-home-filter-art {
  width:91%!important;border-radius:12px!important;
}
@media(min-width:600px) {
  .hc-home-top-nav[data-header-compact] .hc-home-filters[data-count="4"]>button>strong {font-size:.81rem!important}
  .hc-home-top-nav[data-header-compact] .hc-home-filters[data-count="4"] {gap:9px!important}
}
.hc-team-fusion {
  width:100%;box-sizing:border-box;background:var(--stip-surface,#fff);
  border:1px solid var(--stip-line,#dce9ec);border-radius:17px;
  box-shadow:0 6px 19px rgba(10,52,71,.055);
  margin:0 0 14px;padding:13px 12px;color:var(--stip-ink,#183d4d);
  scroll-margin-top:85px;
}
.hc-team-fusion *{box-sizing:border-box}
.hc-team-fusion button{font:inherit;cursor:pointer;color:inherit}
.thf-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:2px 2px 10px}
.thf-header small,.thf-my small{font-size:.66rem;font-weight:850;letter-spacing:.055em;color:var(--stip-muted,#5d7883)}
.thf-header h2{font-size:1.22rem;margin:2px 0;line-height:1.2}
.thf-header p{margin:0;font-size:.8rem;color:var(--stip-muted,#527482);text-transform:capitalize}
.thf-header button{background:#f3fafb;border:1px solid #c9e2e8;border-radius:10px;font-size:1.3rem;line-height:1;padding:7px 11px}
.thf-my{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:7px;margin:0 0 11px}
.thf-my>div{display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:12px;background:#f0f8fa;min-width:0}
.thf-my>div:last-child{background:#edf4f8}
.thf-my strong{font-size:1.08rem;line-height:1.2;overflow-wrap:anywhere}
.thf-my span{font-size:.79rem;color:#365c69}
.thf-colleagues,.thf-staff,.thf-notes{padding-top:10px;margin-top:9px;border-top:1px solid #e5eef0}
.hc-team-fusion h3{font-size:.87rem;font-weight:850;margin:0 0 7px}
.thf-empty,.thf-shift-detail p{font-size:.79rem;color:#66808b;margin:8px 2px}
.thf-agent{border:1px solid #e0ecef;background:#fff;border-radius:10px;display:grid;width:100%;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;text-align:left;margin:5px 0;padding:8px 9px}
.thf-agent:active,.thf-note:active{background:#eef8fa}
.thf-agent-ghe{background:#eaf4f6;border-radius:7px;padding:5px 6px;color:#23647a;white-space:nowrap;font-size:.66rem;font-weight:850}
.thf-agent strong{display:block;font-size:.82rem}
.thf-agent small{display:block;font-size:.69rem;color:#60808b;margin-top:2px}
.thf-others{border:1px solid #dae9ec;border-radius:11px;margin:8px 0;overflow:hidden}
.thf-others>summary{list-style:none;cursor:pointer;background:#f5fafb;padding:10px;font-weight:750;font-size:.8rem}
.thf-others>summary::-webkit-details-marker,.thf-shift summary::-webkit-details-marker{display:none}
.thf-others>summary b{border-radius:50%;padding:2px 6px;background:#e2f1f4}
.thf-others>div{padding:7px}
.thf-other-time>small{display:block;padding:7px 2px 0;font-weight:800;color:#57747f}
.thf-shift{border:1px solid #dce9ed;border-radius:11px;margin:6px 0;overflow:hidden;background:#fff}
.thf-shift>summary{list-style:none;cursor:pointer;padding:10px 8px;display:grid;grid-template-columns:25px minmax(0,1fr) auto auto 12px;gap:5px;align-items:center}
.thf-shift>summary strong{font-size:.82rem;min-width:0}
.thf-shift>summary small{font-size:.7rem;color:#66818a}
.thf-shift>summary b{font-size:.72rem;white-space:nowrap}
.thf-signal{font-size:.88rem}
.thf-shift.status-warning .thf-signal,.thf-shift.status-critical .thf-signal{color:#a35410}
.thf-shift-detail{border-top:1px solid #e5eff0;padding:6px 8px 9px}
.thf-note{width:100%;display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:6px;border:1px solid #e3eef0;border-radius:10px;padding:10px;text-align:left;background:#fff;margin:5px 0}
.thf-note strong{font-size:.8rem}
.thf-note.status-warning{background:#fffaf1;border-color:#f1dfb9}
.thf-note.status-critical{background:#fff5f2;border-color:#f2d2cb}
.thf-foot{font-size:.68rem;color:#6c8691;margin:11px 2px 1px}
.thf-popup{border:1px solid #d9e9ec;border-radius:17px;width:min(90vw,430px);max-height:80vh;padding:24px 17px 19px;box-shadow:0 16px 56px #153d4d40;color:#173d4d;background:#fff}
.thf-popup::backdrop{background:#061b29a1}
.thf-popup h2{font-size:1.12rem;padding-right:25px;margin:5px 0 10px}
.thf-popup p{line-height:1.5;font-size:.9rem;white-space:pre-wrap}
.thf-popup>small{font-size:.67rem;letter-spacing:.05em;color:#617983}
.thf-popup-close{position:absolute;right:12px;top:10px;background:#edf5f6;border:0;border-radius:50%;width:35px;height:35px;font-size:1.4rem}
@media(max-width:430px){
  .hc-team-fusion{padding:10px 8px}
  .thf-shift>summary{grid-template-columns:21px minmax(0,1fr) auto 10px}
  .thf-shift>summary small{display:none}
}

/* Compact par defaut : aucun personnel n'est deroule dans le flux de l'accueil. */
.hc-team-fusion{padding:10px 11px;margin:0 0 11px;min-height:0}
.hc-team-fusion .thf-header{padding:0 2px 8px}
.hc-team-fusion .thf-header h2{font-size:1.13rem;margin:1px 0}
.hc-team-fusion .thf-header p{font-size:.75rem}
.hc-team-fusion .thf-header button{padding:5px 9px;font-size:1.05rem}
.hc-team-fusion .thf-my{margin:0 0 8px}
.hc-team-fusion .thf-my>div{padding:9px 11px}
.hc-team-fusion .thf-my strong{font-size:1rem}
.hc-team-fusion .thf-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.hc-team-fusion .thf-actions>button{
  display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:5px;
  align-items:center;text-align:left;width:100%;min-width:0;padding:10px 7px;
  border:1px solid #d9e8ec;border-radius:11px;background:#f8fbfc;min-height:52px;
}
.hc-team-fusion .thf-actions>button:nth-child(3):last-child{grid-column:1/-1;min-height:42px}
.hc-team-fusion .thf-actions>button>span:nth-child(2){min-width:0;overflow:hidden}
.hc-team-fusion .thf-actions strong{display:block;font-size:.78rem;line-height:1.17}
.hc-team-fusion .thf-actions small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  font-size:.66rem;margin-top:3px;color:#527583}
.hc-team-fusion .thf-actions b{font-size:1rem;font-weight:500;color:#7798a5}
.thf-hcl-symbol{font-weight:950;font-size:1rem;color:#256b76}
.thf-hcl-symbol.status-warning,.thf-hcl-symbol.status-critical{color:#b56c25}
.thf-popup{box-sizing:border-box;width:min(94vw,480px);max-height:min(86dvh,740px);
  display:block;overflow:hidden;padding:17px 13px 14px}
.thf-popup:not([open]){display:none}
.thf-popup>h2{font-size:1.05rem}
.thf-popup-scroll{max-height:min(57dvh,500px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-gutter:stable;padding:3px 2px 8px}
.thf-people-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:10px 0}
.thf-people-tabs>button{border:1px solid #d5e7eb;border-radius:8px;background:#f4f9fa;
  min-width:0;padding:8px 2px;font-size:.71rem;font-weight:800}
.thf-people-tabs>button[aria-pressed="true"]{border:2px solid #178ca2;background:#e7f7fa;color:#0c6178}
.thf-people-tabs b{font-variant-numeric:tabular-nums}
.thf-popup-intro{font-size:.74rem!important;color:#5b7781;margin:0 0 9px}
.thf-popup .thf-shift>summary{grid-template-columns:22px minmax(0,1fr) auto 12px;gap:5px}
.thf-popup .thf-shift>summary small{display:none}
@media(max-width:380px){.hc-team-fusion .thf-actions strong{font-size:.72rem}
  .hc-team-fusion .thf-actions small{font-size:.61rem}
  .thf-people-tabs>button{font-size:.64rem}}

/* Ordre definitif de l'accueil : à clôturer, aujourd'hui, identité, demain, semaine. */
.hc-home-timeline{display:flex!important;flex-direction:column!important;gap:12px!important}
.hc-home-timeline>#hcTopPriorityAnchor{display:none!important}
.hc-home-timeline>.hc-feedback-pending{
  order:initial!important;margin:0 0 4px!important;
  padding:6px 11px 8px;flex:0 0 auto;
}
.hc-home-timeline>.hc-team-fusion{margin:0!important}
.hc-home-timeline>.hc-home-top-nav[data-header-compact]{
  margin:2px auto 2px!important;width:min(100%,700px)!important;
  flex:0 0 auto;
}
.hc-home-timeline>.hc-day-appointments{
  padding:0 9px 8px!important;margin:0!important;
  background:transparent!important;min-width:0;
}
.hc-day-appointments .hc-planning-period-separator{
  margin:0 0 8px!important;
  display:flex!important;align-items:center;justify-content:center;gap:10px;
}
.hc-day-appointments .hc-planning-period-separator strong{
  min-width:23px;height:23px;padding:0 7px;display:inline-grid;place-items:center;
  font-size:.73rem;line-height:1;font-weight:900;color:#267386;
  background:#e7f5f8;border-radius:99px;
}
.hc-day-appointments .hc-week-event-key-list{display:grid;gap:7px}
.hc-day-appointments .hc-week-event-day-row{
  width:100%;border:1px solid #dce9ee!important;border-radius:13px!important;
  background:#fff!important;
}
.hc-day-appointments-more{
  width:100%;min-height:40px;padding:8px 10px;border:1px solid #d6e9ed;
  background:#eef8fa;border-radius:11px;font:inherit;font-size:.8rem;
  font-weight:800;color:#17647b;cursor:pointer;
}
.hc-home-timeline>.hc-tomorrow-fusion{border-color:#cbdfe7;background:linear-gradient(180deg,#fff,#f8fcff)}
.hc-tomorrow-fusion .thf-my>div:first-child{background:#edf5ff}
.hc-tomorrow-fusion .thf-my>div:last-child{background:#eff8f9}
.hc-home-timeline>.hc-planning-group{margin-top:5px!important}
.hc-home-timeline>.hc-pilotage-shell{margin-top:2px}
@media(max-width:400px){
  .hc-home-timeline{gap:10px!important}
  .hc-home-timeline>.hc-day-appointments{padding:0 4px 5px!important}
}

/* La ligne cloche / porte T / Fauteuils est indépendante du profil. */
.hc-home-timeline>.hc-home-top-nav.hc-home-tools-only[data-header-compact]{
  width:min(100%,700px)!important;
  margin:0 auto 0!important;
  padding:0!important;
}
.hc-home-timeline>.hc-home-tools-only .hc-home-top-tools{
  margin:0!important;
}
.hc-home-timeline>.hc-home-top-nav.hc-home-identity-only[data-header-compact]{
  width:min(100%,700px)!important;
  margin:0 auto 0!important;
}
.hc-home-timeline>.hc-home-identity-only .ghe-home-header-stack{
  margin:0 auto!important;
}
.hc-home-timeline>.hc-feedback-pending{
  margin:0 0 0!important;
}

/* Séparateurs du planning réutilisés uniquement pour Aujourd'hui et Demain. */
.hc-home-timeline>.hc-home-timeline-separator {
  box-sizing:border-box;
  width:100%;
  margin:0!important;
  padding:3px 3px 0;
  flex:0 0 auto;
}
.hc-home-timeline>.hc-home-timeline-separator>span {
  font-size:.73rem;
  letter-spacing:.13em;
}


/* Canon GHE : couleurs du shift-registry, comme les barres Esprit d'équipe. */
.hc-team-fusion .shift-m,.thf-popup .shift-m{--thf-color:var(--stip-shift-m,#1985f7);--thf-soft:var(--stip-shift-m-soft,#e7f2ff);--thf-ink:#fff}
.hc-team-fusion .shift-j,.thf-popup .shift-j{--thf-color:var(--stip-shift-j,#00af69);--thf-soft:var(--stip-shift-j-soft,#e5faef);--thf-ink:#fff}
.hc-team-fusion .shift-j4,.thf-popup .shift-j4{--thf-color:var(--stip-shift-j4,#ff9600);--thf-soft:var(--stip-shift-j4-soft,#fff2df);--thf-ink:#fff}
.hc-team-fusion .shift-s,.thf-popup .shift-s{--thf-color:var(--stip-shift-s,#ffd400);--thf-soft:var(--stip-shift-s-soft,#fff9d9);--thf-ink:var(--stip-shift-s-ink,#263843)}
.hc-team-fusion .shift-n,.thf-popup .shift-n{--thf-color:var(--stip-shift-n,#111);--thf-soft:var(--stip-shift-n-soft,#eeeeee);--thf-ink:#fff}
.hc-team-fusion .shift-other,.thf-popup .shift-other{--thf-color:var(--stip-muted,#738993);--thf-soft:#edf4f6;--thf-ink:#fff}
.hc-team-fusion .shift-absence,.thf-popup .shift-absence{--thf-color:#7b8994;--thf-soft:#f1f5f7;--thf-ink:#fff}
.hc-team-fusion .thf-my:not(.shift-absence)>div:first-child{
  background:linear-gradient(100deg,var(--thf-soft),#fff)!important;
  border-left:5px solid var(--thf-color);
  padding-left:10px!important
}
.hc-team-fusion .thf-my:not(.shift-absence)>div:last-child{
  background:linear-gradient(100deg,var(--thf-soft),#f6fafb)!important;
}
.hc-team-fusion .thf-actions>button[data-thf-open="staff"]{
  border-left:4px solid var(--stip-accent,#188ca0);
}
.thf-popup .thf-popup-scroll{max-height:min(56dvh,490px)}
.thf-popup .thf-person-group{margin:0 0 13px}
.thf-popup .thf-person-group-heading{
  display:grid!important;grid-template-columns:minmax(12px,1fr) auto minmax(12px,1fr);
  align-items:center;gap:8px;margin:4px 0 9px!important;padding:2px 0;
}
.thf-popup .thf-person-group-heading>span{
  display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;
  color:var(--stip-ink,#193d4d);font-size:.83rem;font-weight:950;
  letter-spacing:.01em;text-transform:none;white-space:normal;
}
.thf-popup .thf-person-group-heading i{font-style:normal;font-size:.98rem}
.thf-popup .thf-person-group-heading small{font-size:.71rem;color:#617d86;font-weight:650}
.thf-popup .thf-person-group-heading b{
  background:var(--thf-color);color:var(--thf-ink);
  font-size:.75rem;font-weight:950;min-width:23px;height:23px;
  display:inline-grid;place-items:center;border-radius:999px;padding:0 6px;
}
.thf-popup .thf-person-group:not(.shift-absence) .thf-person-group-body{
  border-left:4px solid var(--thf-color);
  background:linear-gradient(90deg,var(--thf-soft),transparent 18%);
  padding:3px 0 3px 8px;border-radius:8px
}
.thf-popup .thf-person-group-body .thf-agent{margin:5px 0;min-height:53px}
.thf-popup .thf-person-group.shift-absence .thf-person-group-body{padding:0 3px}
.thf-popup .thf-staff-row{
  display:grid!important;grid-template-columns:43px minmax(0,1fr);
  align-items:stretch;gap:7px;margin:10px 0;min-width:0
}
.thf-popup .thf-staff-reference{
  display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:8px;min-width:0
}
.thf-popup .thf-hcl-reference{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  border:1px solid #c9dbe1;box-shadow:0 3px 9px #193e4a12;
  padding:5px 3px;border-radius:14px;background:#fff;width:100%;
  min-height:42px;font-size:.75rem;color:#234f61;
  font-weight:950;line-height:1.1;white-space:nowrap
}
.thf-popup .thf-hcl-reference small{font-size:.58rem;line-height:1.1}
.thf-popup .thf-hcl-reference b{font-size:.95rem;line-height:1.15}
.thf-popup .thf-hcl-reference.is-empty{font-size:.6rem}
.thf-popup .thf-staff-indicator{font-size:1.15rem;font-weight:950;color:#2b9478}
.thf-popup .thf-staff-indicator.status-warning,
.thf-popup .thf-staff-indicator.status-critical{color:#d87a1b}
.thf-popup .thf-staff-row .thf-shift{
  display:block;border:1px solid color-mix(in srgb,var(--thf-color) 28%,#d6e3e7)!important;
  border-left:7px solid var(--thf-color)!important;border-radius:17px!important;
  margin:0!important;min-width:0;overflow:hidden;
  background:linear-gradient(100deg,var(--thf-soft),#fff)!important;
  box-shadow:0 5px 14px #0e465515
}
.thf-popup .thf-staff-row .thf-shift>summary{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto 18px!important;
  gap:8px;align-items:center;min-height:82px;padding:10px 12px!important;
}
.thf-popup .thf-shift-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.thf-popup .thf-shift-copy strong{font-size:1.05rem;line-height:1.15;color:#163c4f}
.thf-popup .thf-shift-copy small{display:block!important;font-size:.75rem;font-weight:750;color:#466778}
.thf-popup .thf-shift-count{
  display:inline-grid;place-items:center;min-width:45px;height:43px;
  border-radius:15px;background:var(--thf-color);color:var(--thf-ink);
  font-size:1.19rem;font-weight:950;padding:0 8px;
  box-shadow:0 3px 9px #003b4a21
}
.thf-popup .thf-shift-arrow{font-size:1.07rem;font-weight:800}
.thf-popup .thf-staff-row .thf-shift>summary:focus-visible{outline:3px solid var(--stip-accent,#1289a5);outline-offset:-3px}
.thf-popup .thf-staff-row .thf-shift-detail{
  padding:8px 10px;border-top:1px solid color-mix(in srgb,var(--thf-color) 22%,#e8eff0)
}
@media(max-width:390px){
  .thf-popup .thf-staff-row{grid-template-columns:36px minmax(0,1fr);gap:5px}
  .thf-popup .thf-hcl-reference{font-size:.65rem}
  .thf-popup .thf-staff-row .thf-shift>summary{padding:9px 8px!important}
  .thf-popup .thf-shift-count{min-width:39px;height:40px}
}

/* Météo du shift : reprend le moteur horaire existant et reste masquée sans prévision. */
.hc-team-fusion .thf-inline-weather[hidden]{display:none!important}
.hc-team-fusion .thf-inline-weather{
  display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:4px 10px;margin:0 0 8px;padding:7px 10px;
  border:1px solid #d8e9ed;border-radius:10px;background:#f5fafc;
  color:#234d5b;min-height:30px
}
.hc-team-fusion .thf-inline-weather .hc-shift-weather-label{
  font-size:.65rem;font-weight:800;letter-spacing:.03em
}
.hc-team-fusion .thf-inline-weather .hc-shift-weather-values{
  display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:.74rem
}
.hc-team-fusion .thf-inline-weather .hc-shift-weather-values strong{font-weight:850}
.hc-team-fusion .thf-inline-weather .hc-shift-weather-source{display:none!important}


/* 2026-10-14 — les deux jours forment une comparaison horizontale, pas deux panneaux empilés. */
.hc-home-timeline>.hc-days-grid{
  width:100%;min-width:0;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;align-items:start;margin:0!important;padding:0 1px;
}
.hc-days-grid>.hc-day-column{min-width:0;display:flex;flex-direction:column;gap:8px}
.hc-days-grid .hc-home-timeline-separator{
  width:100%!important;margin:1px 0 0!important;padding:0!important;
  display:flex;align-items:center;gap:5px;white-space:nowrap;
}
.hc-days-grid .hc-home-timeline-separator::before,
.hc-days-grid .hc-home-timeline-separator::after{
  content:"";flex:1 1 5px;min-width:5px;height:1px;background:#c8d8df;
}
.hc-days-grid .hc-home-timeline-separator>span{
  font-size:clamp(.6rem,2.1vw,.78rem)!important;letter-spacing:.09em!important;
  white-space:nowrap;color:#617983;font-weight:900;
}
.hc-days-grid .hc-team-fusion{
  min-width:0;width:100%;padding:0!important;margin:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
.hc-days-grid .thf-day-open{
  appearance:none;-webkit-appearance:none;cursor:pointer;text-align:left;
  color:#193f50;display:flex;flex-direction:column;align-items:stretch;
  width:100%;min-width:0;min-height:250px;height:100%;
  border:1px solid #d8e5e9;border-top:4px solid var(--thf-color,#84a5b0);
  border-radius:15px;padding:11px 9px 8px;gap:8px;
  background:linear-gradient(180deg,var(--thf-soft,#f3f8fa),#fff 53%);
  box-shadow:0 6px 17px #1d4a5810;overflow:hidden;
  font:inherit;-webkit-tap-highlight-color:transparent;
}
.hc-days-grid .thf-day-open:focus-visible{outline:3px solid #0089ae;outline-offset:2px}
.hc-days-grid .thf-day-heading{
  display:flex;flex-direction:column;gap:2px;
}
.hc-days-grid .thf-day-heading strong{
  font-size:.9rem;line-height:1.15;font-weight:950;color:#183f52;
}
.hc-days-grid .thf-day-heading small{
  font-size:.7rem;line-height:1.15;font-weight:700;color:#5d7881;text-transform:capitalize;
}
.hc-days-grid .thf-day-post{
  display:flex;gap:3px;flex-direction:column;min-height:52px;padding:7px 9px;
  border-radius:11px;border-left:4px solid var(--thf-color,#94a8af);
  background:var(--thf-soft,#eef5f7);
}
.hc-days-grid .thf-day-post strong{font-size:1.22rem;line-height:1.1;font-weight:1000}
.hc-days-grid .thf-day-post small{font-size:.7rem;font-weight:750;white-space:nowrap}
.hc-days-grid .thf-day-chief{
  display:grid;grid-template-columns:20px minmax(0,1fr);gap:3px;
  align-items:start;font-size:.71rem;line-height:1.25;min-width:0;
  border-bottom:1px solid #d9e7e9;padding:2px 0 8px;
}
.hc-days-grid .thf-day-chief strong{
  display:inline;color:#254c5a;font-weight:900;
  overflow-wrap:anywhere;word-break:normal;
}
.hc-days-grid .thf-day-weather{
  min-width:0;display:flex;flex-direction:column;gap:4px;
  padding:5px 5px 6px;border:1px solid #dbe8ee;border-radius:9px;background:#f3f9fc;
}
.hc-days-grid .thf-weather-heading{
  font-size:.63rem;font-weight:900;color:#537583;letter-spacing:.01em;
}
.hc-days-grid .thf-day-weather-empty{font-size:.65rem}
.hc-days-grid .thf-inline-weather[hidden]{display:none!important}
.hc-days-grid .thf-inline-weather:not([hidden]){
  display:block!important;border:0!important;background:transparent!important;
  padding:0!important;margin:0!important;min-height:0!important;line-height:1.24;
}
.hc-days-grid .thf-inline-weather .hc-shift-weather-label{
  display:none!important;
}
.hc-days-grid .thf-inline-weather .hc-shift-weather-values{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  gap:3px!important;font-size:.72rem!important;
}
.hc-days-grid .thf-inline-weather .hc-shift-weather-values strong{
  font-size:inherit!important;line-height:1.25!important;font-weight:850;
}
.hc-days-grid .thf-day-numbers{
  display:flex;gap:4px;flex-wrap:wrap;align-items:center;
  font-size:.68rem;font-weight:800;color:#2e5866;
}
.hc-days-grid .thf-day-numbers>span{
  background:#e9f3f7;border-radius:6px;padding:5px 5px;white-space:nowrap;
}
.hc-days-grid .thf-day-numbers>.status-warning{
  background:#fff0d9;color:#8f6126;
}
.hc-days-grid .thf-day-numbers>.status-ok{
  background:#e1f6eb;color:#217452;
}
.hc-days-grid .thf-day-numbers i{font-style:normal}
.hc-days-grid .thf-day-brief{
  font-size:.65rem;font-weight:750;line-height:1.2;color:#6b657f;
}
.hc-days-grid .thf-day-more{
  margin-top:auto;border-top:1px solid #dce7e9;padding-top:7px;
  display:flex;align-items:center;justify-content:space-between;
  color:#17748b;font-size:.73rem;font-weight:900;
}
.hc-days-grid .hc-day-appointments{
  width:100%!important;min-width:0;margin:0!important;padding:1px 0 0!important;
  background:transparent!important;box-shadow:none!important;
}
.hc-days-grid .hc-day-appointments .hc-planning-period-separator{
  min-width:0;gap:4px!important;margin:0 0 5px!important;white-space:normal!important;
}
.hc-days-grid .hc-day-appointments .hc-planning-period-separator span{
  font-size:.62rem!important;letter-spacing:0!important;
}
.hc-days-grid .hc-day-appointments .hc-planning-period-separator strong{
  min-width:21px;height:21px;font-size:.67rem!important;padding:0 4px;
}
.hc-days-grid .hc-day-appointments .hc-week-event-key-list{gap:5px}
.hc-days-grid .hc-day-appointments .hc-week-event-day-row{
  min-width:0!important;display:flex!important;gap:4px!important;align-items:flex-start!important;
  padding:7px 4px!important;border-radius:9px!important;min-height:42px!important;
}
.hc-days-grid .hc-day-appointments .hc-week-event-key-icon{
  min-width:23px;max-width:23px;width:23px;font-size:.72rem!important;
}
.hc-days-grid .hc-day-appointments .hc-week-event-copy{min-width:0;overflow:hidden}
.hc-days-grid .hc-day-appointments .hc-week-event-copy strong{
  display:block;font-size:.7rem!important;line-height:1.17!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
.hc-days-grid .hc-day-appointments .hc-week-event-when{
  display:block;font-size:.63rem!important;line-height:1.18!important;
}
.hc-days-grid .hc-day-appointments .hc-week-event-place{display:none}
.hc-days-grid .hc-day-appointments-more{font-size:.67rem;min-height:34px;padding:5px}
.thf-popup .thf-day-popup-shift{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 14px;border-radius:12px;margin:10px 0;
  border-left:5px solid var(--thf-color,#8ca2a8);
  background:var(--thf-soft,#eef6fa);
}
.thf-popup .thf-day-popup-shift strong{font-size:1.07rem}
.thf-popup .thf-day-popup-shift>span{font-size:.8rem;color:#4b6d7a;font-weight:800}
.thf-popup .thf-day-popup-group{border-top:1px solid #e0edef;padding:10px 0}
.thf-popup .thf-day-popup-group h3{font-size:.85rem;margin:0 0 8px}
.thf-popup .thf-day-popup-group p{font-size:.82rem;margin:0;line-height:1.45}
.thf-popup .thf-day-popup-actions{display:grid;gap:7px;margin:12px 0 4px}
.thf-popup .thf-day-popup-actions button{
  min-height:43px;text-align:left;border:1px solid #d8e6e9;border-radius:11px;
  background:#f3f9fa;color:#26596b;padding:10px 11px;font:800 .81rem/1.25 system-ui;
  cursor:pointer;
}
@media(max-width:370px){
  .hc-home-timeline>.hc-days-grid{gap:6px!important}
  .hc-days-grid .thf-day-open{padding:8px 6px 7px;gap:6px}
  .hc-days-grid .thf-day-heading strong{font-size:.81rem}
  .hc-days-grid .thf-day-chief{font-size:.67rem}
  .hc-days-grid .thf-day-weather .hc-shift-weather-values{font-size:.66rem!important}
}
@media(min-width:700px){
  .hc-home-timeline>.hc-days-grid{gap:18px!important}
  .hc-days-grid .thf-day-open{min-height:245px;padding:15px;gap:10px}
  .hc-days-grid .thf-inline-weather .hc-shift-weather-values{flex-direction:row!important}
}


/* COMPARAISON COMPACTE J/J+1
 * Les cartes se suivent horizontalement même sur téléphone.
 * Un clic donne accès aux fiches détaillées sans déployer de listes sur l'accueil.
 */
.hc-home-timeline .hc-days-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;align-items:stretch;width:100%;min-width:0;
  margin:0!important;padding:0 0 2px!important
}
.hc-home-timeline .hc-days-grid>.hc-day-column{
  display:flex!important;flex-direction:column;gap:6px;min-width:0;
  padding:0!important;margin:0!important;
}
.hc-days-grid .hc-home-timeline-separator{
  width:100%;min-width:0;margin:0!important;padding:2px 0!important;
  box-sizing:border-box;display:flex;align-items:center;justify-content:center
}
.hc-days-grid .hc-home-timeline-separator>span{
  font-weight:900;font-size:.74rem;letter-spacing:.07em;white-space:nowrap
}
.hc-days-grid .hc-home-timeline-separator::before,
.hc-days-grid .hc-home-timeline-separator::after{
  min-width:4px;flex:1 1 auto
}
.hc-days-grid .hc-team-fusion.hc-team-compact{
  display:block!important;flex:1 0 auto;min-width:0;width:100%;min-height:0;
  padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important
}
.hc-days-grid .thf-day-open{
  display:flex!important;flex-direction:column;align-items:stretch;
  width:100%;height:100%;min-width:0;box-sizing:border-box;
  gap:8px;padding:11px 9px 10px;
  border-radius:17px;border:1px solid color-mix(in srgb,var(--thf-color,#1c91a2) 28%,#d7e8eb);
  border-left:6px solid var(--thf-color,#1c91a2)!important;
  background:linear-gradient(155deg,var(--thf-soft,#f1f9fb),#fff 57%)!important;
  box-shadow:0 5px 13px rgba(19,59,75,.06);
  color:var(--stip-ink,#173e4c);font:inherit;text-align:left;cursor:pointer;
  overflow:hidden
}
.hc-days-grid .thf-day-open:focus-visible{
  outline:3px solid #1a8dab;outline-offset:2px
}
.hc-days-grid .thf-day-heading{
  display:flex;flex-direction:column;gap:2px;min-width:0
}
.hc-days-grid .thf-day-heading>strong{
  font-size:clamp(.92rem,3.8vw,1.15rem);font-weight:950;letter-spacing:-.035em;
  overflow-wrap:break-word;line-height:1.16
}
.hc-days-grid .thf-day-heading>small{font-size:.7rem;font-weight:750;color:#53717d}
.hc-days-grid .thf-day-post{
  display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.16;
  padding:7px 0;border-top:1px solid color-mix(in srgb,var(--thf-color,#188c9a) 28%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--thf-color,#188c9a) 20%,transparent)
}
.hc-days-grid .thf-day-post>strong{font-size:1.42rem;color:#153e4d;font-weight:950}
.hc-days-grid .thf-day-post>small{
  font-size:clamp(.70rem,2.8vw,.79rem);
  font-weight:750;color:#365b6b;white-space:normal;overflow-wrap:anywhere
}
.hc-days-grid .thf-day-chief{
  display:flex;align-items:flex-start;gap:5px;min-width:0;
  min-height:42px;padding:5px 0;border-bottom:1px solid #dbe9ec
}
.hc-days-grid .thf-day-chief-icon{font-size:1rem;flex:0 0 17px}
.hc-days-grid .thf-day-chief-person{display:flex;flex-direction:column;min-width:0;gap:3px}
.hc-days-grid .thf-day-chief-person>small{
  color:#63808a;font-size:.60rem;font-weight:850;text-transform:uppercase;
  letter-spacing:.025em
}
.hc-days-grid .thf-day-chief-person>strong{
  color:#173f4d;font-size:.75rem;line-height:1.21;font-weight:900;
  overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden
}
.hc-days-grid .thf-day-weather{
  display:flex;flex-direction:column;gap:4px;min-width:0;padding:5px 0 3px;
  min-height:49px
}
.hc-days-grid .thf-weather-heading{
  font-size:.63rem;font-weight:850;color:#466b7a;line-height:1.15;
  white-space:normal
}
.hc-days-grid .thf-day-weather .thf-inline-weather{
  display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:wrap;
  gap:3px 8px;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;border-radius:0!important;
  font-size:.76rem;line-height:1.2;white-space:normal
}
.hc-days-grid .thf-day-weather .thf-inline-weather[hidden]{display:none!important}
.hc-days-grid .thf-inline-weather strong{font-weight:900;color:#184658}
.hc-days-grid .thf-inline-weather .hc-shift-weather-compact-temp{
  font-size:.9rem;white-space:nowrap
}
.hc-days-grid .thf-inline-weather .hc-shift-weather-compact-rain{
  font-size:.75rem;white-space:nowrap
}
.hc-days-grid .thf-weather-fallback{font-size:.67rem;color:#6e838b;line-height:1.2}
.hc-days-grid .thf-day-weather:has(.thf-inline-weather:not([hidden])) .thf-weather-fallback{
  display:none!important
}
.hc-days-grid .thf-day-numbers{
  display:flex;flex-direction:column;gap:5px;min-width:0;margin-top:auto
}
.hc-days-grid .thf-day-numbers>span{
  display:flex;align-items:center;gap:4px;
  min-width:0;min-height:29px;border:1px solid #d9e6e9;background:#fff9;
  padding:5px 7px;border-radius:8px;font-size:.72rem;font-weight:750;
  white-space:normal;overflow-wrap:anywhere
}
.hc-days-grid .thf-day-numbers b{font-weight:950;font-size:.85rem}
.hc-days-grid .thf-day-numbers .status-warning,
.hc-days-grid .thf-day-numbers .status-critical{color:#a05c10;background:#fff6e9}
.hc-days-grid .thf-day-numbers .status-ok{color:#126c57}
.hc-days-grid .thf-day-more{
  display:flex;justify-content:space-between;align-items:center;gap:4px;
  width:100%;font-size:.72rem;font-weight:850;color:#1b768b;
  padding-top:6px;border-top:1px solid #dce9ee
}
.hc-days-grid .thf-day-brief{
  font-size:.69rem;color:#5c596e;font-weight:800;background:#fff7e5;
  border-radius:8px;padding:5px 6px
}
.hc-days-grid .hc-day-appointments{
  min-width:0;padding:0!important;margin:2px 0 0!important
}
.hc-days-grid .hc-day-appointments .hc-week-event-day-row{
  min-width:0;padding:7px 5px!important;font-size:.72rem
}
.hc-days-grid .hc-day-appointments .hc-week-event-copy{min-width:0}
.hc-days-grid .hc-day-appointments .hc-week-event-copy strong{
  white-space:normal;line-height:1.23;display:-webkit-box;-webkit-box-orient:vertical;
  -webkit-line-clamp:2;overflow:hidden
}
.hc-days-grid .hc-day-appointments .hc-planning-period-separator>span{
  font-size:.62rem!important;letter-spacing:.03em!important
}
@media(max-width:380px){
  .hc-home-timeline .hc-days-grid{gap:7px!important}
  .hc-days-grid .thf-day-open{padding:9px 7px 8px;gap:7px}
  .hc-days-grid .thf-day-post>strong{font-size:1.25rem}
  .hc-days-grid .thf-day-chief-person>strong{font-size:.71rem}
  .hc-days-grid .thf-day-heading>small{font-size:.65rem}
}
/* La fenêtre agrandie doit réutiliser les mêmes repères et rester scrollable. */
.thf-popup .thf-day-popup-shift{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:5px 10px;margin:10px 0;padding:12px;border-radius:12px;
  border-left:6px solid var(--thf-color,#208c9e);
  background:var(--thf-soft,#f3f9fa)
}
.thf-popup .thf-day-popup-shift strong{font-size:1.15rem}
.thf-popup .thf-day-popup-shift span{font-size:.8rem;font-weight:750}
.thf-popup .thf-day-popup-group{
  padding:10px 0;border-top:1px solid #e0eaf0
}
.thf-popup .thf-day-popup-group h3{
  font-size:.84rem;margin:0 0 8px;font-weight:850
}
.thf-popup .thf-day-popup-group p{
  font-size:.79rem;line-height:1.4;color:#50707c;white-space:normal
}
.thf-popup .thf-day-popup-actions{
  display:grid;gap:7px;margin-top:10px
}
.thf-popup .thf-day-popup-actions>button{
  background:#f2f8f9;border:1px solid #dbe8ed;
  border-radius:10px;min-height:43px;padding:10px;font:inherit;
  font-size:.81rem;font-weight:800;text-align:left;color:#1d586c;cursor:pointer
}


/* Informations du jour dans la fenêtre détail, avec leurs titres et pictogrammes. */
.thf-popup.thf-day-popup{overflow-y:auto;overscroll-behavior:contain}
.thf-popup .thf-day-popup-notices{border-top:1px solid #e0eaf0;padding:11px 0 8px}
.thf-popup .thf-day-popup-notices h3{margin:0 0 8px;font-size:.84rem;color:#285b73}
.thf-popup .thf-day-notices-list{display:grid;gap:7px;min-width:0}
.thf-popup .thf-day-notices-list .thf-note{
  grid-template-columns:30px minmax(0,1fr) 12px;gap:8px;align-items:start;
  width:100%;min-height:51px;margin:0;padding:10px 9px;background:#f5fafc
}
.thf-popup .thf-day-notices-list .thf-note-icon{font-size:1.16rem;line-height:1.3}
.thf-popup .thf-day-notices-list .thf-note-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.thf-popup .thf-day-notices-list .thf-note-copy strong{font-size:.81rem;line-height:1.22;overflow-wrap:anywhere}
.thf-popup .thf-day-notices-list .thf-note-copy small{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;overflow-wrap:anywhere;font-size:.71rem;line-height:1.3;color:#587888
}
.thf-popup .thf-day-notices-list .thf-note-chevron{font-size:1.1rem;align-self:center}
.thf-popup .thf-day-notices-list .thf-note:focus-visible{outline:3px solid #168ca9;outline-offset:2px}
/* Résumés chef + activité : visibles au premier coup d'œil, même à 2 colonnes. */
.hc-days-grid .thf-day-chief-person{display:flex;flex-direction:column;gap:5px;min-width:0}
.hc-days-grid .thf-chief-line{display:flex;flex-direction:column;min-width:0;gap:2px;padding-bottom:3px}
.hc-days-grid .thf-chief-line + .thf-chief-line{border-top:1px solid #e1e9ee;padding-top:5px}
.hc-days-grid .thf-chief-line strong{display:block;font-size:.73rem;line-height:1.22;overflow-wrap:anywhere}
.hc-days-grid .thf-chief-line em{display:block;font-size:.66rem;line-height:1.25;
 font-weight:780;font-style:normal;color:#4c7080;overflow-wrap:anywhere}
.hc-days-grid .thf-day-events{display:grid;gap:5px;min-width:0}
.hc-days-grid .thf-day-event{display:grid;grid-template-columns:20px minmax(0,1fr);
 column-gap:5px;row-gap:2px;align-items:center;
 padding:7px 6px;border:1px solid #b9dee4;border-left:3px solid #348fa1;
 border-radius:9px;background:#f1f9fa;color:#1c5568;text-align:left}
.hc-days-grid .thf-day-event>span{grid-row:1 / span 2;font-size:1.05rem}
.hc-days-grid .thf-day-event strong{font-size:.77rem;line-height:1.18;min-width:0;overflow-wrap:anywhere}
.hc-days-grid .thf-day-event small{font-size:.68rem;line-height:1.15;font-weight:800;color:#426f7f}
.thf-popup .thf-day-popup-event{width:100%;display:grid;grid-template-columns:24px minmax(0,1fr) auto 12px;
 align-items:center;gap:7px;margin:5px 0;padding:10px 8px;
 border:1px solid #cae1e5;border-radius:10px;
 background:#f3fafc;font:inherit;color:#215568;text-align:left;cursor:pointer}
.thf-popup .thf-day-popup-event strong{font-size:.81rem;min-width:0}
.thf-popup .thf-day-popup-event small{font-size:.75rem}
.thf-popup .thf-day-popup-event b{font-size:1.1rem}
@media(max-width:380px){
 .hc-days-grid .thf-chief-line strong{font-size:.69rem}
 .hc-days-grid .thf-chief-line em{font-size:.62rem}
 .hc-days-grid .thf-day-event{padding:6px 4px;column-gap:3px}
}

/* V2 : deux fiches de jour, et non une carte géante contenant d'autres cartes.
 * Chaque zone a une fonction et un bouton explicite. La grille reste en deux colonnes.
 */
.hc-days-grid .hc-team-fusion.hc-team-compact{display:flex!important;flex-direction:column}
.hc-days-grid .thf-day-card{
  --thf-line:#dae7e9;
  width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;
  min-width:0;overflow:hidden;padding:0;
  border:1px solid var(--thf-line);
  border-top:5px solid var(--thf-color,#178aa0);
  border-radius:17px;background:#fff;
  box-shadow:0 5px 16px #153b4b10;
  color:#193e4d;
}
.hc-days-grid .thf-day-card button{
  font:inherit;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent;
}
.hc-days-grid .thf-day-card button:focus-visible{outline:3px solid #087b9e;outline-offset:-3px}
.hc-days-grid .thf-day-trigger{
  width:100%;min-height:61px;border:0;border-bottom:1px solid var(--thf-line);
  background:linear-gradient(115deg,var(--thf-soft,#f3f9fb),#fff);
  display:flex;align-items:center;justify-content:space-between;gap:5px;
  padding:10px 10px;text-align:left;
}
.hc-days-grid .thf-day-trigger .thf-day-heading{display:flex;flex-direction:column;gap:2px}
.hc-days-grid .thf-day-trigger .thf-day-heading strong{
  font-size:clamp(.9rem,3.4vw,1.12rem);letter-spacing:-.02em;
  font-weight:950;line-height:1.13
}
.hc-days-grid .thf-trigger-chevron{font-size:1.25rem;font-weight:850;color:#337a88}
.hc-days-grid .thf-day-body{padding:9px 10px 4px;display:flex;flex-direction:column;gap:0;flex:1}
.hc-days-grid .thf-day-card .thf-day-post{
  display:flex;flex-direction:column;gap:4px;
  background:none!important;border:0!important;border-radius:0!important;
  border-bottom:1px solid var(--thf-line)!important;
  min-height:0!important;padding:2px 0 10px!important;margin:0;
}
.hc-days-grid .thf-day-post strong{font-size:1.45rem;line-height:1.1;color:#153d50}
.hc-days-grid .thf-day-post small{
  font-size:.75rem;font-weight:850;color:#366070;white-space:normal
}
.hc-days-grid .thf-section-label{
  font-size:.59rem;font-weight:950;line-height:1.28;
  letter-spacing:.04em;color:#547884;
  display:flex;align-items:center;gap:3px
}
.hc-days-grid .thf-day-card .thf-day-chief{
  display:block!important;min-height:0!important;
  padding:9px 0!important;margin:0!important;border:0!important;
  border-bottom:1px solid var(--thf-line)!important
}
.hc-days-grid .thf-day-card .thf-day-chief-person{
  display:flex;flex-direction:column;gap:5px;margin-top:6px
}
.hc-days-grid .thf-day-card .thf-chief-line{
  display:flex;flex-direction:column;gap:2px;
  padding:0 0 0 7px!important;
  border:0!important;border-left:3px solid #a2cad3!important
}
.hc-days-grid .thf-day-card .thf-chief-line+.thf-chief-line{
  border-top:0!important;padding-top:0!important
}
.hc-days-grid .thf-day-card .thf-chief-line strong{
  font-size:clamp(.7rem,2.6vw,.8rem);line-height:1.18;overflow-wrap:anywhere
}
.hc-days-grid .thf-day-card .thf-chief-line em{
  font-size:clamp(.67rem,2.3vw,.77rem);color:#285c6c;
  line-height:1.25;font-weight:850;font-style:normal
}
.hc-days-grid .thf-chief-missing{font-size:.7rem;color:#76858c}
.hc-days-grid .thf-day-card .thf-day-weather{
  display:flex;flex-direction:column;gap:4px;
  min-height:0!important;border:0!important;border-bottom:1px solid var(--thf-line)!important;
  border-radius:0!important;background:transparent!important;padding:9px 0!important
}
.hc-days-grid .thf-day-weather .thf-inline-weather{
  display:flex!important;gap:4px;min-height:0!important;align-items:flex-start;
  padding:0!important;margin:0!important;border:0!important;background:none!important
}
.hc-days-grid .thf-day-card .thf-inline-weather .hc-shift-weather-compact-temp{font-size:.78rem}
.hc-days-grid .thf-day-card .thf-inline-weather .hc-shift-weather-compact-rain{font-size:.71rem}
.hc-days-grid .thf-day-card .thf-day-numbers{
  display:grid!important;grid-template-columns:1fr 1fr!important;
  gap:4px!important;align-items:stretch;
  margin:0!important;padding:10px 0!important;border-bottom:1px solid var(--thf-line)
}
.hc-days-grid .thf-day-card .thf-day-numbers>button{
  min-width:0;border-radius:8px;border:1px solid #cfe2e5;
  background:#f2f8fa;padding:7px 2px;
  display:flex;gap:2px;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;min-height:46px;
  font-weight:850;font-size:.85rem;color:#286176
}
.hc-days-grid .thf-day-card .thf-day-numbers>button.status-ok{background:#e9f7ee;border-color:#bbdfcd;color:#1e744c}
.hc-days-grid .thf-day-card .thf-day-numbers>button.status-warning{background:#fff5e8;border-color:#f1d5ad;color:#986116}
.hc-days-grid .thf-day-card .thf-day-numbers small{font-size:.57rem;line-height:1.05;color:inherit}
.hc-days-grid .thf-day-card .thf-day-numbers b{font-size:.98rem}
.hc-days-grid .thf-day-card .thf-day-numbers i{font-style:normal}
.hc-days-grid .thf-day-card .thf-day-events{
  display:block;padding:10px 0 5px;margin:0;border:0;
}
.hc-days-grid .thf-day-card .thf-day-events .thf-section-label{
  color:#276a7e;margin-bottom:7px
}
.hc-days-grid .thf-day-card .thf-day-event{
  display:flex!important;width:100%;min-width:0;
  text-align:left;align-items:center;gap:6px;
  padding:8px 5px!important;margin:0 0 5px;
  background:#f0f8fa!important;border:1px solid #c9e5eb!important;
  border-radius:9px;color:#214d5c
}
.hc-days-grid .thf-day-card .thf-event-icon{font-size:1.08rem;flex:0 0 19px}
.hc-days-grid .thf-day-card .thf-event-copy{
  min-width:0;display:flex;flex:1;flex-direction:column;gap:1px
}
.hc-days-grid .thf-day-card .thf-event-copy strong{
  font-size:.77rem;line-height:1.16;overflow-wrap:anywhere
}
.hc-days-grid .thf-day-card .thf-event-copy small{font-size:.7rem;font-weight:850;color:#3a7182}
.hc-days-grid .thf-day-card .thf-event-copy em{
  margin-top:3px;font-size:.64rem;line-height:1.2;font-style:normal;
  font-weight:800;color:#8b6425
}
.hc-days-grid .thf-day-card .thf-event-copy em.is-confirmed{color:#17805c}
.hc-days-grid .thf-day-card .thf-event-chevron{font-size:1.13rem}
.hc-days-grid .thf-day-card .thf-extra-link{
  width:100%;border:0;background:none;color:#16788c;
  text-align:left;font-size:.72rem;font-weight:800;padding:4px
}
.hc-days-grid .thf-day-card .thf-day-brief{
  width:100%;min-height:34px;margin:6px 0;
  border:0;border-radius:8px;background:#fff7e5;
  text-align:left;font-weight:800;color:#695978;
  font-size:.69rem;padding:7px 5px
}
.hc-days-grid .thf-day-card .thf-day-more{
  flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;
  width:100%;border:0;border-top:1px solid var(--thf-line);
  border-radius:0;background:#f8fbfc;
  margin-top:auto;padding:10px 11px;min-height:41px;
  font-weight:900;font-size:.75rem;color:#196c81
}
@media(max-width:380px){
  .hc-days-grid .thf-day-body{padding:7px 7px 2px}
  .hc-days-grid .thf-day-trigger{padding:9px 7px}
  .hc-days-grid .thf-day-card .thf-day-numbers>button{padding:6px 1px}
  .hc-days-grid .thf-section-label{font-size:.56rem;letter-spacing:0}
}

/* Une couleur de shift par chef réellement en service. */
.hc-days-grid .thf-day-card .thf-chief-line.shift-m,
.hc-days-grid .thf-day-card .thf-chief-line.shift-j,
.hc-days-grid .thf-day-card .thf-chief-line.shift-j4,
.hc-days-grid .thf-day-card .thf-chief-line.shift-s,
.hc-days-grid .thf-day-card .thf-chief-line.shift-n{
  border-left:3px solid var(--thf-color,#3194a0)!important;
  padding:3px 0 3px 7px!important;
  border-radius:2px;
}

/* Bouton chef identique dans son fonctionnement à "Présent maintenant",
 * mais compact et teinté avec le code couleur du shift.
 * La ligne de chef est remplacée : nom -> fiche ; combiné -> choix d'appel. */
.hc-days-grid .thf-day-card .thf-day-chief-person{display:grid;gap:7px!important;margin-top:7px!important}
.hc-days-grid .thf-day-card .thf-chief-contact,
.thf-popup .thf-chief-contact{
  box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 36px;
  align-items:center;gap:5px;width:100%;min-width:0;
  background:linear-gradient(110deg,var(--thf-soft,#eff7fa),#fff);
  border:1px solid color-mix(in srgb,var(--thf-color,#1c92a6) 36%,#d9e7eb);
  border-left:4px solid var(--thf-color,#1c92a6);
  border-radius:11px;padding:5px 5px 5px 7px;
}
.hc-days-grid .thf-day-card .thf-chief-identity,
.thf-popup .thf-chief-identity{
  display:flex;flex-direction:column;justify-content:center;gap:3px;
  min-width:0;min-height:41px;border:0;background:transparent;padding:0;
  text-align:left;cursor:pointer;font:inherit;
}
.hc-days-grid .thf-day-card .thf-chief-identity strong,
.thf-popup .thf-chief-identity strong{
  display:block;overflow-wrap:anywhere;font-size:clamp(.68rem,2.45vw,.80rem);
  line-height:1.16;font-weight:900;color:#153f50;
}
.hc-days-grid .thf-day-card .thf-chief-identity small,
.thf-popup .thf-chief-identity small{
  display:block;overflow-wrap:anywhere;
  font-size:clamp(.59rem,2.18vw,.71rem);line-height:1.22;
  font-weight:780;color:#426878;
}
.hc-days-grid .thf-day-card .thf-chief-phone,
.thf-popup .thf-chief-phone{
  display:grid;place-items:center;width:36px;height:40px;min-width:0;
  padding:0;border:0;border-radius:11px;background:var(--thf-color,#1c92a6);
  color:var(--thf-ink,#fff);font-size:1.17rem;line-height:1;
  cursor:pointer;box-shadow:0 3px 8px #173f4d1b;
}
.hc-days-grid .thf-chief-phone:disabled,
.thf-popup .thf-chief-phone:disabled{
  background:#e5ebed!important;color:#81959d!important;
  cursor:default;box-shadow:none
}
.hc-days-grid .thf-chief-phone:not(:disabled):active,
.thf-popup .thf-chief-phone:not(:disabled):active{transform:scale(.94)}
.hc-days-grid .thf-chief-phone:focus-visible,
.hc-days-grid .thf-chief-identity:focus-visible{
  outline:2px solid var(--thf-color,#138aa1);outline-offset:2px
}
.thf-popup .thf-day-popup-group .thf-chief-contact{
  grid-template-columns:minmax(0,1fr) 43px;
  padding:8px 8px 8px 11px;margin-bottom:8px
}
.thf-popup .thf-chief-phone{width:43px;height:43px}
.thf-popup .thf-chief-identity strong{font-size:.86rem}
.thf-popup .thf-chief-identity small{font-size:.75rem}
@media(max-width:390px){
 .hc-days-grid .thf-day-card .thf-chief-contact{
  grid-template-columns:minmax(0,1fr) 33px;gap:4px;
  padding:5px 4px 5px 5px
 }
 .hc-days-grid .thf-day-card .thf-chief-phone{width:33px;height:38px}
}

/* Le raccourci collègues appartient au poste, immédiatement à côté du code et des heures.
   Une seule entrée par jour : le clic ouvre toujours le pop-up existant. */
.hc-days-grid .thf-day-card .thf-day-post{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:5px!important;align-items:center!important;
  min-width:0;
}
.hc-days-grid .thf-day-post .thf-shift-content{
  display:flex;flex-direction:column;gap:3px;min-width:0;
}
.hc-days-grid .thf-day-post .thf-shift-colleagues{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  min-width:43px;min-height:38px;padding:5px 7px;
  border:1px solid #c6e2e9;border-radius:11px;background:#eff8fa;
  color:#167e9e;font:inherit;font-weight:900;cursor:pointer;
}
.hc-days-grid .thf-shift-colleagues>span{font-size:.92rem;line-height:1}
.hc-days-grid .thf-shift-colleagues>b{font-size:1rem;line-height:1}
.hc-days-grid .thf-shift-colleagues:active{background:#d7eef4}
.hc-days-grid .thf-shift-colleagues:focus-visible{
  outline:3px solid #168ca9;outline-offset:2px
}
.hc-days-grid .thf-day-card .thf-day-numbers{
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;padding:8px 0!important
}
.hc-days-grid .thf-day-card .thf-day-numbers>button{
  flex-direction:row!important;gap:5px!important;
  min-height:37px!important;width:100%;
}
.hc-days-grid .thf-day-card .thf-day-numbers>button small{font-size:.72rem!important}
@media(max-width:390px){
  .hc-days-grid .thf-day-post .thf-shift-colleagues{min-width:39px;padding:5px 4px}
  .hc-days-grid .thf-day-post .thf-shift-colleagues>b{font-size:.89rem}
}

/* Accueil 2 jours · une seule date visible par colonne, langage graphique du planning.
 * Le ciel est piloté par les conditions HORAIRE du service, pas par une météo générique. */
.hc-home-timeline .hc-days-grid>.hc-day-column{gap:0!important}
.hc-home-timeline .hc-days-grid .hc-home-timeline-separator{display:none!important}
.hc-days-grid .thf-day-card{border-top:0!important;overflow:hidden!important}
.hc-days-grid .thf-day-card .thf-day-trigger,
.thf-popup .thf-popup-hero{
  position:relative;isolation:isolate;overflow:hidden;
  box-sizing:border-box;background:var(--thf-sky-bg,linear-gradient(140deg,#d8eef8,#faf7e8 88%))!important;
  border:0!important;border-bottom:1px solid #cee0e8!important;
  color:#183e51;--sky-text:#183e51;
}
.hc-days-grid .thf-day-card .thf-day-trigger{
  min-height:156px!important;padding:12px 9px 10px!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:space-between!important;gap:10px;text-align:left;
}
.hc-days-grid .thf-day-card .thf-day-trigger .thf-day-heading{
  position:relative;z-index:2;display:flex!important;align-items:baseline!important;
  flex-flow:row wrap;gap:3px 5px;min-width:0;max-width:100%;
  margin-right:18px;font-weight:900;color:var(--sky-text);
}
.hc-days-grid .thf-day-card .thf-day-heading span{
  font-size:clamp(.8rem,2.75vw,1.06rem)!important;text-transform:capitalize;
  font-weight:900;line-height:1.18;color:inherit;
}
.hc-days-grid .thf-day-card .thf-day-heading strong{
  font-size:clamp(1.68rem,5.7vw,2.55rem)!important;line-height:.98!important;
  letter-spacing:-.055em;font-weight:1000!important;color:inherit!important;
}
.hc-days-grid .thf-day-card .thf-trigger-chevron{
  position:absolute;top:10px;right:8px;z-index:3;color:var(--sky-text);
}
.hc-days-grid .thf-day-trigger .thf-weather-caption{
  display:flex;flex-direction:column;justify-content:flex-end;z-index:2;
  width:100%;position:relative;min-height:38px;
}
.hc-days-grid .thf-day-trigger .thf-weather-caption .thf-inline-weather,
.thf-popup .thf-popup-weather-summary .thf-inline-weather{
  display:flex!important;flex-wrap:wrap!important;align-items:center;
  justify-content:flex-start!important;gap:3px 7px!important;
  min-height:0!important;width:100%;margin:0!important;padding:3px 4px!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;color:var(--sky-text,#21475b)!important;
  text-align:left;text-shadow:0 1px 2px #ffffffda;
}
.hc-days-grid .thf-weather-caption .thf-inline-weather[hidden],
.thf-popup .thf-popup-weather-summary .thf-inline-weather[hidden]{display:none!important}
.hc-days-grid .thf-day-trigger .thf-inline-weather strong,
.thf-popup .thf-popup-weather-summary .thf-inline-weather strong{
  color:#153c50!important;font-size:clamp(.62rem,2.4vw,.79rem)!important;
  white-space:nowrap;line-height:1.22
}
.hc-days-grid .thf-day-trigger .hc-shift-weather-state,
.thf-popup .thf-popup-weather-summary .hc-shift-weather-state{
  display:block;flex:1 1 100%;font-size:.65rem;
  font-weight:900;color:#27617a;line-height:1.3
}
.hc-days-grid .thf-weather-no-shift{font-size:.7rem;position:relative;z-index:2;font-weight:800}
.hc-days-grid .thf-day-card .thf-day-post{
  --thf-shift-ink:var(--thf-ink,#fff);
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;gap:6px!important;
  margin:0 0 2px!important;padding:10px 8px!important;
  border:0!important;border-radius:10px!important;
  background:linear-gradient(115deg,var(--thf-color,#0a829d),
    color-mix(in srgb,var(--thf-color,#0a829d) 86%,#fff))!important;
  color:var(--thf-shift-ink)!important;
}
.hc-days-grid .thf-day-card .thf-day-post strong,
.hc-days-grid .thf-day-card .thf-day-post small{
  color:var(--thf-shift-ink)!important
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-content strong{
  font-size:clamp(1.4rem,4.8vw,1.85rem)!important;font-weight:1000!important;line-height:1
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-content small{
  font-size:clamp(.72rem,2.55vw,.9rem)!important;font-weight:900!important;
  line-height:1.18
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-colleagues{
  border:1px solid #ffffffab!important;background:#fffc!important;
  color:#23596a!important;min-width:42px;min-height:40px;box-shadow:0 1px 4px #00000013;
}
.hc-days-grid .thf-day-card .thf-day-chief{margin-top:3px!important}
.thf-popup .thf-popup-hero{
  padding:20px 14px 12px;min-height:140px;
  border-radius:14px;margin-bottom:13px;
  display:flex;flex-direction:column;align-items:flex-start;
  justify-content:space-between;gap:25px
}
.thf-popup .thf-popup-hero>h2{
  margin:0!important;position:relative;z-index:2;
  font-size:clamp(1.3rem,5vw,1.65rem)!important;
  color:var(--sky-text);text-transform:capitalize;font-weight:950
}
.thf-popup .thf-popup-weather-summary{z-index:2;position:relative}
.thf-popup .thf-day-popup-shift{
  margin:0 0 12px!important;padding:12px 14px!important;border:0!important;
  color:var(--thf-ink,#fff)!important;
  background:linear-gradient(110deg,var(--thf-color,#1088a3),
    color-mix(in srgb,var(--thf-color,#1088a3) 84%,white))!important
}
.thf-popup .thf-day-popup-shift strong{font-size:1.5rem!important;color:inherit!important}
.thf-popup .thf-day-popup-shift>span{color:inherit!important;font-size:.87rem!important}
@media(max-width:380px){
  .hc-days-grid .thf-day-card .thf-day-trigger{padding:10px 7px 9px!important;min-height:150px!important}
  .hc-days-grid .thf-weather-art .thf-sun{width:47px;height:47px;right:6%}
  .hc-days-grid .thf-day-card .thf-day-heading strong{font-size:1.6rem!important}
  .hc-days-grid .thf-day-card .thf-day-post{padding:8px 6px!important}
}
/* Affichage chirurgical du poste (J4, M, J, S, N) dans les deux cartes.
 * Le carré du shift est distinct du bouton collègues, sans HCL dans la carte. */
.hc-days-grid .thf-day-card .thf-day-post{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;justify-content:stretch!important;
  column-gap:7px!important;
  min-height:0!important;
  padding:0!important;margin:10px 0 7px!important;
  border:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-content{
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:126px!important;min-width:0!important;
  aspect-ratio:1 / 1!important;box-sizing:border-box!important;
  padding:6px 3px!important;gap:4px!important;
  background:linear-gradient(145deg,var(--thf-color,#ff9600),
    color-mix(in srgb,var(--thf-color,#ff9600) 84%,white))!important;
  border:1px solid color-mix(in srgb,var(--thf-color,#ff9600) 75%,#fff)!important;
  border-radius:12px!important;
  color:var(--thf-ink,#fff)!important;
  box-shadow:0 3px 8px #273e4c13;
  text-align:center!important;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-content strong{
  display:block;text-align:center!important;margin:0!important;
  font-size:clamp(1.43rem,4.8vw,2rem)!important;line-height:1!important;
  color:inherit!important;font-weight:1000!important;
}
.hc-days-grid .thf-day-post .thf-shift-hours{
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  gap:1px!important;line-height:1.07!important;
  font-size:clamp(.67rem,2.1vw,.83rem)!important;
  font-weight:900!important;color:inherit!important;
  text-align:center!important;
}
.hc-days-grid .thf-day-post .thf-shift-hours>span{
  display:block!important;white-space:nowrap!important;
  color:inherit!important;font:inherit!important;
}
.hc-days-grid .thf-day-post .thf-shift-hours .thf-shift-to{
  font-size:.77em!important;font-weight:700!important;
  text-transform:lowercase;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-colleagues{
  display:flex!important;align-self:center;justify-self:end;
  flex-direction:column!important;gap:1px!important;
  min-width:40px!important;min-height:40px!important;
  padding:5px 6px!important;
  border:1px solid #c3e0e7!important;
  border-radius:12px!important;
  background:#f0f9fb!important;color:#116f97!important;
  box-shadow:0 2px 5px #1f485010!important;
}
.hc-days-grid .thf-day-post .thf-shift-colleagues>b{
  font-size:1.02rem!important;font-weight:950!important;
}
.thf-popup .thf-people-hcl-link{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;gap:8px;padding:10px 12px;margin:10px 0;
  border:1px solid #bee1cc;border-radius:10px;
  background:#e8f7ec;color:#1d744f;
  text-align:left;font:inherit;font-size:.83rem;font-weight:850;cursor:pointer;
}
.thf-popup .thf-people-hcl-link:focus-visible{outline:2px solid #168a72;outline-offset:2px}
@media(max-width:390px){
  .hc-days-grid .thf-day-card .thf-day-post{column-gap:4px!important}
  .hc-days-grid .thf-day-card .thf-day-post .thf-shift-content{padding:5px 2px!important}
  .hc-days-grid .thf-day-card .thf-day-post .thf-shift-colleagues{
    min-width:36px!important;min-height:38px!important;padding:4px!important;
  }
}

/* 2026-10-14 · ajustement ciblé : événements au-dessus, shift carré inchangé,
   collègues en bandeau fin, centré et de la même largeur que le carré. */
.hc-days-grid .thf-day-card .thf-day-post{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:9px 0 13px!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-content{
  width:min(100%,126px)!important;
  max-width:126px!important;
  aspect-ratio:1 / 1!important;
  flex:0 0 auto!important;
  align-self:center!important;
  margin:0!important;
}
/* L'icône et son chiffre restent interactifs, mais ne forment plus un carré. */
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-colleagues{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:min(100%,126px)!important;
  max-width:126px!important;
  min-width:0!important;
  min-height:34px!important;
  height:34px!important;
  padding:3px 10px!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
  border-radius:10px!important;
  align-self:center!important;
  justify-self:center!important;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-colleagues > span{
  font-size:1rem!important;
  line-height:1!important;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-colleagues > b{
  font-size:1.02rem!important;
  line-height:1!important;
}
.hc-days-grid .thf-day-card .thf-day-events{
  padding:6px 0 8px!important;
  margin:0!important;
  border-bottom:1px solid #e2ecee;
}
@media(max-width:390px){
  .hc-days-grid .thf-day-card .thf-day-post{
    gap:6px!important;
    margin:8px 0 11px!important;
  }
  .hc-days-grid .thf-day-card .thf-day-post .thf-shift-colleagues{
    width:min(100%,126px)!important;
    height:34px!important;
    min-height:34px!important;
    padding:3px 8px!important;
  }
}

/* Une seule pile de shift, avec deux accès de même taille juste sous le code. */
.hc-days-grid .thf-day-card .thf-shift-stack{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  gap:8px!important;width:min(100%,132px)!important;max-width:132px!important;
  min-width:0!important;margin:0 auto!important
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-stack .thf-shift-content{
  width:100%!important;max-width:132px!important;box-sizing:border-box!important
}
.hc-days-grid .thf-day-card .thf-shift-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;width:100%;min-width:0;align-items:stretch
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-stack .thf-shift-actions>button{
  display:inline-flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:center!important;gap:4px!important;min-width:0!important;
  width:100%!important;height:40px!important;min-height:40px!important;
  margin:0!important;padding:4px 3px!important;box-sizing:border-box!important;
  border:1px solid #c4dfe8!important;border-radius:11px!important;
  background:#f0f9fbee!important;color:#176b8c!important;
  font:inherit;font-size:.83rem!important;font-weight:950!important;
  box-shadow:0 2px 5px #123b4710!important;cursor:pointer;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-stack .thf-shift-actions .thf-shift-chiefs{
  border-color:#ebdbba!important;background:#fff9ecf0!important;color:#946219!important
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-stack .thf-shift-actions>button>span{
  font-size:1rem!important;line-height:1!important
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-stack .thf-shift-actions>button>b{
  font-size:1.02rem!important;line-height:1!important
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-stack .thf-shift-actions>button:focus-visible{
  outline:3px solid #168ca9!important;outline-offset:2px
}
@media(max-width:380px){
  .hc-days-grid .thf-day-card .thf-shift-actions{gap:4px}
  .hc-days-grid .thf-day-card .thf-day-post .thf-shift-stack .thf-shift-actions>button{gap:2px!important}
}

/* Scène météo fixe : illustrations vectorielles intégrées, sans animation ni média distant.
 * Conserve la météo du créneau et laisse date, températures, J4, collègues accessibles. */
.thf-weather-sky{
  --thf-sky-bg:linear-gradient(161deg,#c4e0f0 0%,#ddeef7 44%,#f1f6f7 100%);
  --thf-sky-aura:#daeefbbb;
  --thf-sky-mist:#d5e7f288;
  --sky-text:#21475b;
}
.thf-weather-sky[data-sky="sunny"]{
  --thf-sky-bg:linear-gradient(153deg,#87c9f0 0%,#bfe5f7 47%,#f4d9a1 100%);
  --thf-sky-aura:#ffdf91cc;--thf-sky-mist:#ffecc788;
}
.thf-weather-sky[data-sky="partly"],
.thf-weather-sky[data-sky="mixed"]{
  --thf-sky-bg:linear-gradient(158deg,#9bcfeb 0%,#cbe6f5 48%,#f6dca5 100%);
  --thf-sky-aura:#ffe3a0ad;--thf-sky-mist:#e3edf48a;
}
.thf-weather-sky[data-sky="cloudy"]{
  --thf-sky-bg:linear-gradient(163deg,#a9c4d6 0%,#c7dce8 51%,#e5eff3 100%);
  --thf-sky-aura:#f7fdff92;--thf-sky-mist:#c3d6e99c;
}
.thf-weather-sky[data-sky="fog"]{
  --thf-sky-bg:linear-gradient(160deg,#abc0cc 0%,#d0dfe5 54%,#ebf2f3 100%);
  --thf-sky-aura:#f9ffff99;--thf-sky-mist:#f4fcfbd6;
}
.thf-weather-sky[data-sky="drizzle"],
.thf-weather-sky[data-sky="rain"]{
  --thf-sky-bg:linear-gradient(161deg,#88b8d4 0%,#bdd7e7 50%,#e3eef5 100%);
  --thf-sky-aura:#e9f7ffc0;--thf-sky-mist:#b5d2e6a1;
}
.thf-weather-sky[data-sky="heavy-rain"],
.thf-weather-sky[data-sky="storm"]{
  --thf-sky-bg:linear-gradient(164deg,#7fa5bb 0%,#b4d0df 54%,#dceaf1 100%);
  --thf-sky-aura:#d8edf8b8;--thf-sky-mist:#b0c9dcad;
}
.thf-weather-sky[data-sky="snow"]{
  --thf-sky-bg:linear-gradient(155deg,#abdced 0%,#d4eef8 49%,#f5fbfd 100%);
  --thf-sky-aura:#ffffffd6;--thf-sky-mist:#effaffbb;
}
.hc-days-grid .thf-day-card .thf-weather-stage{
  position:relative;isolation:isolate;overflow:hidden;
  width:100%;min-width:0;flex:0 0 auto;
  background:
    radial-gradient(ellipse 155px 193px at 100% 72%,var(--thf-sky-aura),transparent 91%),
    radial-gradient(ellipse 150px 160px at -19% 83%,var(--thf-sky-mist),transparent 91%),
    var(--thf-season-wash,linear-gradient(transparent,transparent)),
    var(--thf-sky-bg)!important;
  border-bottom:1px solid #dce8ed;
}
.hc-days-grid .thf-weather-stage::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(176deg,transparent 0%,#ffffff0b 37%,#ffffff10 64%,transparent 93%);
}
.hc-days-grid .thf-weather-stage::after{
  content:"";position:absolute;bottom:-15px;right:-39px;
  width:91%;height:42%;z-index:0;pointer-events:none;
  opacity:.26;
  background:
    radial-gradient(ellipse 78px 42px at 78% 77%,#fff9 0%,#fff4 68%,transparent 95%),
    radial-gradient(ellipse 80px 52px at 107% 42%,#fff7 0%,#fff2 74%,transparent 100%),
    radial-gradient(ellipse 120px 26px at 37% 99%,#fff5,transparent 86%);
}
.hc-days-grid .thf-weather-stage[data-season="spring"]{
  --thf-season-wash:linear-gradient(147deg,#e1f8e51c,transparent 70%);
}
.hc-days-grid .thf-weather-stage[data-season="summer"]{
  --thf-season-wash:linear-gradient(148deg,#fff0c626,transparent 72%);
}
.hc-days-grid .thf-weather-stage[data-season="autumn"]{
  --thf-season-wash:linear-gradient(145deg,#fff1d524,transparent 73%);
}
.hc-days-grid .thf-weather-stage[data-season="winter"]{
  --thf-season-wash:linear-gradient(149deg,#ebf8ff3d,transparent 75%);
}
.hc-days-grid .thf-weather-stage[data-sky="fog"]::after{opacity:.50}
.hc-days-grid .thf-weather-stage[data-sky="sunny"]::after{opacity:.13}
.hc-days-grid .thf-weather-stage>.thf-day-trigger{
  position:relative;z-index:2;isolation:auto;overflow:visible;
  background:transparent!important;border-bottom:0!important;
}
.hc-days-grid .thf-weather-stage .thf-weather-body{
  position:relative;z-index:2;box-sizing:border-box;
  padding:9px 10px 1px;
}
/* Une seule illustration SVG dessinée, reposant derrière les informations. */
.hc-days-grid .thf-weather-sky .thf-weather-art{
  position:absolute;right:-27px;top:auto;bottom:7%;z-index:0;
  width:clamp(190px,122%,300px);height:auto;
  opacity:.70;pointer-events:none;user-select:none;
  filter:saturate(1.22) contrast(1.08) drop-shadow(0 6px 12px rgba(43,97,126,.11));
}
.thf-weather-sky .thf-weather-art svg{
  display:block;width:100%;height:auto;max-width:none;
  overflow:visible;
}
.thf-weather-sky .thf-art-sun,
.thf-weather-sky .thf-art-cloud-back,
.thf-weather-sky .thf-art-cloud-main,
.thf-weather-sky .thf-art-rain,
.thf-weather-sky .thf-art-fog,
.thf-weather-sky .thf-art-snow,
.thf-weather-sky .thf-art-lightning{display:none}
.thf-weather-sky:is([data-sky="sunny"],[data-sky="partly"],[data-sky="mixed"]) .thf-art-sun{display:block}
.thf-weather-sky:is([data-sky="partly"],[data-sky="mixed"],[data-sky="cloudy"],[data-sky="fog"],
  [data-sky="drizzle"],[data-sky="rain"],[data-sky="heavy-rain"],[data-sky="storm"],[data-sky="snow"])
  .thf-art-cloud-back,
.thf-weather-sky:is([data-sky="partly"],[data-sky="mixed"],[data-sky="cloudy"],[data-sky="fog"],
  [data-sky="drizzle"],[data-sky="rain"],[data-sky="heavy-rain"],[data-sky="storm"],[data-sky="snow"])
  .thf-art-cloud-main{display:block}
.thf-weather-sky:is([data-sky="drizzle"],[data-sky="rain"],[data-sky="heavy-rain"],[data-sky="storm"])
  .thf-art-rain{display:block}
.thf-weather-sky[data-sky="drizzle"] .thf-art-rain{opacity:.48}
.thf-weather-sky[data-sky="fog"] .thf-art-fog{display:block}
.thf-weather-sky[data-sky="snow"] .thf-art-snow{display:block}
.thf-weather-sky[data-sky="storm"] .thf-art-lightning{display:block}
.hc-days-grid .thf-weather-sky[data-sky="sunny"] .thf-weather-art{right:-27px;top:auto;bottom:7%}
.thf-popup .thf-popup-hero .thf-weather-art{
  right:8px;top:0;width:145px;opacity:.90;
}
.hc-days-grid .thf-weather-stage .thf-day-heading,
.hc-days-grid .thf-weather-stage .thf-trigger-chevron{
  color:var(--sky-text,#21475b)!important;
}
.hc-days-grid .thf-weather-stage .thf-day-event{
  background:#f0f8faf2!important;
}
.hc-days-grid .thf-weather-stage .thf-shift-colleagues{
  background:#f0f9fbf5!important;
}
/* Deux températures horodatées, sans débordement sur téléphone étroit. */
.thf-inline-weather .thf-weather-endpoints{
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;gap:3px;width:100%;min-width:0;
}
.thf-inline-weather .thf-weather-point{
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  min-width:0;gap:1px;font-variant-numeric:tabular-nums;
}
.thf-inline-weather .thf-weather-point small{
  font-size:clamp(.56rem,1.95vw,.67rem);
  color:#466a7b;font-weight:800;line-height:1.2;white-space:nowrap;
}
.thf-inline-weather .thf-weather-point strong,
.hc-days-grid .thf-day-trigger .thf-inline-weather .thf-weather-point strong{
  font-size:clamp(.96rem,3.5vw,1.14rem)!important;
  font-weight:950;line-height:1.1;color:#173f55!important;
  white-space:nowrap;
}
.thf-inline-weather .thf-weather-arrow{
  font-size:.93rem;font-weight:800;color:#7895a0;
}
.hc-days-grid .thf-day-trigger .thf-inline-weather .hc-shift-weather-state,
.thf-popup .thf-popup-weather-summary .hc-shift-weather-state{
  width:100%;flex:1 1 100%;text-align:center;
  font-size:clamp(.59rem,2.2vw,.71rem);color:#376478;
}
@media(max-width:380px){
  .hc-days-grid .thf-weather-stage .thf-weather-body{padding:8px 6px 1px}
  .hc-days-grid .thf-weather-sky .thf-weather-art{right:-19px;top:auto;bottom:9%;width:clamp(180px,125%,260px)}
  .thf-popup .thf-popup-hero .thf-weather-art{right:4px;top:1px;width:118px}
  .thf-inline-weather .thf-weather-endpoints{gap:1px}
}
/* Illustration fixe : pas de @keyframes, transform animé ou observer. */


/* Risque pluie réel, lisible mais fondu dans le paysage météo, sans pastille. */
.hc-days-grid .thf-day-trigger .thf-inline-weather .hc-shift-weather-rain,
.thf-popup .thf-popup-weather-summary .hc-shift-weather-rain{
  display:inline-flex!important;align-items:center;justify-content:flex-start;
  width:auto!important;flex:0 0 auto!important;min-width:0;box-sizing:border-box;
  margin:3px 0 0!important;padding:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;color:#155f84!important;
  font-size:clamp(.7rem,2.45vw,.83rem)!important;line-height:1.25;
  font-weight:950;letter-spacing:.01em;text-align:left;
  white-space:normal;overflow-wrap:anywhere
}
.hc-days-grid .thf-day-trigger .thf-inline-weather .hc-shift-weather-rain::before,
.thf-popup .thf-popup-weather-summary .hc-shift-weather-rain::before{
  content:"💧";font-size:.87rem;margin-right:4px
}
/* Fin du carré J4/CP : symbole canon + horaires lisibles sur une ligne. */
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-content{
  width:100%!important;max-width:126px!important;
  min-height:57px!important;aspect-ratio:auto!important;
  padding:3px 2px!important;gap:4px!important;
  background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;
  color:var(--thf-color,#126d89)!important
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-content .thf-shift-symbol{
  display:flex;align-items:center;justify-content:center;
  width:100%;min-height:44px;min-width:0
}
.hc-days-grid .thf-shift-symbol .stip-month-shift-badge{
  --thf-shift-badge-bg:var(--stip-shift-j4);--thf-shift-badge-ink:#fff;
  display:inline-flex!important;align-items:center;justify-content:center;
  min-width:56px!important;height:43px!important;padding:0 9px!important;
  font-size:1.17rem!important;font-weight:950!important;
  border-radius:13px!important;line-height:1!important;
  background:var(--thf-shift-badge-bg)!important;color:var(--thf-shift-badge-ink)!important
}
.hc-days-grid .thf-shift-symbol .stip-month-shift-badge.code-m{--thf-shift-badge-bg:var(--stip-shift-m)}
.hc-days-grid .thf-shift-symbol .stip-month-shift-badge.code-j{--thf-shift-badge-bg:var(--stip-shift-j)}
.hc-days-grid .thf-shift-symbol .stip-month-shift-badge.code-j4{--thf-shift-badge-bg:var(--stip-shift-j4)}
.hc-days-grid .thf-shift-symbol .stip-month-shift-badge.code-s{
  --thf-shift-badge-bg:var(--stip-shift-s);--thf-shift-badge-ink:var(--stip-shift-s-ink)
}
.hc-days-grid .thf-shift-symbol .stip-month-shift-badge.code-n{--thf-shift-badge-bg:var(--stip-shift-n)}
.hc-days-grid .thf-shift-symbol-fallback{
  display:grid;place-items:center;min-width:56px;height:43px;
  border-radius:13px;background:var(--thf-color,#ff9600);
  color:var(--thf-ink,#fff);font-size:1.1rem;font-weight:950
}
.hc-days-grid .thf-day-post .thf-shift-hours{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:center!important;gap:3px!important;
  font-size:clamp(.64rem,2.2vw,.78rem)!important;
  font-weight:950!important;white-space:nowrap;line-height:1.2!important;
  color:var(--thf-color,#126d89)!important
}
.hc-days-grid .thf-day-post .thf-shift-hours .thf-shift-to{
  font-size:.9em!important;text-transform:none!important
}
.hc-days-grid .thf-shift-symbol .thf-shift-status-icon{
  display:grid;place-items:center;min-height:44px;
  font-size:2.5rem;line-height:1.15;filter:drop-shadow(0 3px 4px #304c5a16)
}
.hc-days-grid .thf-day-post .thf-shift-absence-label{
  display:block;font-size:clamp(.66rem,2.45vw,.8rem);
  font-weight:950;line-height:1.2;text-align:center;
  color:#435e70
}
/* Repos : ambiance dessinée statique et claire à la place d'une fausse scène météo. */
.hc-days-grid .thf-weather-stage[data-rest="true"],.thf-popup .thf-weather-stage[data-rest="true"]{
  --thf-sky-bg:linear-gradient(150deg,#e7f4fc,#f4f8fb 63%,#fbf3e9);
  --thf-sky-aura:#fff1cb;--thf-sky-mist:#e6f3fa;
}
.hc-days-grid .thf-weather-stage[data-rest="true"] .thf-rest-illustration,
.thf-popup .thf-rest-illustration{
  position:absolute;right:8%;top:41px;z-index:0;
  width:clamp(82px,63%,137px);aspect-ratio:1;
  border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle at 34% 30%,#fff 0%,#f5eedd 42%,#c7e5efb3 73%,transparent 75%);
  filter:drop-shadow(0 7px 12px #37587520);pointer-events:none
}
.hc-days-grid .thf-weather-stage[data-rest="true"] .thf-rest-illustration span,
.thf-popup .thf-rest-illustration span{
  font-size:clamp(3.2rem,13vw,5rem);line-height:1;
  transform:rotate(-5deg);filter:drop-shadow(0 4px 3px #30465016)
}
.hc-days-grid .thf-weather-stage[data-rest="true"] .thf-day-trigger .thf-rest-caption{
  z-index:2;position:relative;display:inline-flex;
  max-width:100%;padding:5px 8px;
  border-radius:10px;background:#ffffffd9;border:1px solid #e2ebef;
  font-weight:900;font-size:clamp(.65rem,2.2vw,.8rem);color:#406277;
  text-align:left;line-height:1.25
}
/* Le pop-up chef conserve son entrée dans les détails du jour.
 * Sur les cartes, l'accès est maintenant thf-shift-chiefs, voisin des collègues. */
.thf-popup .thf-day-chief-launch{
  display:flex;align-items:center;justify-content:space-between;
  gap:5px;width:100%;min-width:0;box-sizing:border-box;
  min-height:48px;padding:9px 10px;margin:1px 0 5px;
  border:1px solid #d5e6ee;border-left:4px solid #247bb6;
  border-radius:13px;background:linear-gradient(120deg,#f1f9fc,#fff);
  color:#23556b;font:inherit;font-size:.75rem;font-weight:900;
  text-align:left;cursor:pointer
}
.thf-popup .thf-day-chief-launch>b{font-size:1.3rem;font-weight:900;flex-shrink:0}
.thf-popup .thf-chief-popup-list{display:grid;gap:9px}
.thf-popup .thf-chief-live{
  display:inline-flex;align-items:center;align-self:start;
  margin-top:6px;padding:4px 8px;border-radius:100px;
  background:#edf1f5;color:#587184;font-size:.66rem;font-weight:950;
  font-style:normal;line-height:1.1
}
.thf-popup .thf-chief-live.status-now{background:#dcf7e9;color:#147e54}
.thf-popup .thf-chief-live.status-next{background:#f0eafe;color:#7544a3}
.thf-popup .thf-chief-live.status-done{background:#e8edf0;color:#617782}
@media(max-width:390px){
  .hc-days-grid .thf-weather-stage[data-rest="true"] .thf-rest-illustration{right:2%;width:86px}
  .hc-days-grid .thf-day-trigger .thf-inline-weather .hc-shift-weather-rain{
    font-size:.72rem!important;padding:0!important
  }
}


/* Accueil 2 jours : repos/CP uniquement. Les shifts travaillés restent intacts.
 * L'illustration est une ressource graphique du registre de shifts, pas un doublon. */
.hc-days-grid .thf-day-card.is-rest-visual{
  position:relative;cursor:pointer;
  background:linear-gradient(165deg,#fbfdff,#f5faff);
  box-shadow:0 5px 16px #1c536014, inset 0 1px #fff!important;
  border-radius:20px!important;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-rest="true"]{
  min-height:328px;
  border:0!important;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-trigger{
  min-height:328px!important;height:auto!important;width:100%!important;
  display:flex!important;flex-direction:column!important;gap:10px!important;
  padding:17px 9px 13px!important;
  align-items:center!important;justify-content:flex-start!important;
  border:0!important;text-align:center!important;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-heading{
  display:flex!important;justify-content:center!important;align-items:center!important;
  flex-wrap:wrap!important;text-align:center!important;
  width:100%;gap:4px!important;margin:0!important;max-width:100%!important;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-heading span{
  font-weight:900!important;font-size:clamp(.75rem,2.65vw,.95rem)!important;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-heading strong{
  font-size:clamp(1.65rem,6.1vw,2.4rem)!important;letter-spacing:-.055em!important;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-rest-illustration{
  position:absolute;z-index:1;left:50%!important;right:auto!important;
  top:68px!important;transform:translateX(-50%);
  width:min(90%,230px)!important;height:170px!important;aspect-ratio:auto!important;
  display:grid!important;place-items:center!important;border-radius:50%;
  background:radial-gradient(ellipse at 37% 24%,#fff9,#fff3 56%,#83cce729 74%,transparent 80%)!important;
  filter:drop-shadow(0 11px 15px #2d6c8c22);
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-rest-illustration span{
  font-size:clamp(5rem,22vw,8rem)!important;line-height:1!important;
  transform:none!important;filter:drop-shadow(0 6px 6px #183f5544);
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-rest-caption{
  display:inline-flex!important;position:relative!important;z-index:3!important;
  left:auto;top:auto;transform:none;margin-top:174px;flex-shrink:0;
  justify-content:center;align-items:center;
  width:max-content;max-width:91%;
  padding:7px 12px!important;border-radius:999px!important;
  border:1px solid #fff9!important;
  background:linear-gradient(150deg,#fffffff5,#f5fbffe9)!important;
  box-shadow:0 3px 9px #1e536019,inset 0 1px #fff;
  color:#24495e!important;font-size:clamp(.72rem,2.7vw,.94rem)!important;
  font-weight:950!important;line-height:1.17;text-align:center!important;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-body:empty{display:none!important}
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-body:not(:empty){background:#ffffffd1}
.hc-days-grid .thf-day-card.is-rest-visual .thf-rest-weather,
.thf-popup .thf-rest-weather{
  position:absolute;z-index:4;left:5%;right:5%;bottom:11px;
  box-sizing:border-box;min-width:0;min-height:62px;
  padding:7px 6px 5px;border:1px solid #ffffffc2;border-radius:15px;
  background:linear-gradient(135deg,#ffffffd9,#eff8ffe3);
  box-shadow:0 3px 12px #20495818,inset 0 1px #fff;
  color:#16425b;display:grid;grid-template-columns:minmax(0,1fr) auto;
  column-gap:7px;row-gap:2px;align-items:center;
  font-variant-numeric:tabular-nums;
  /* Sans flou permanent : plus lisible et plus fluide sur mobile. */
}
.hc-days-grid .thf-rest-weather[hidden],.thf-popup .thf-rest-weather[hidden]{display:none!important}
.thf-rest-weather .thf-rest-forecast-range{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:center;min-width:0;
}
.thf-rest-forecast-range>span{display:grid;gap:1px;justify-items:center;min-width:0}
.thf-rest-forecast-range>span:first-child{border-right:1px solid #bed3df}
.thf-rest-forecast-range strong{font:950 clamp(.85rem,3.3vw,1.2rem)/1 system-ui,sans-serif;color:#133f60}
.thf-rest-forecast-range small{font-size:.61rem;font-weight:800;color:#486d7f}
.thf-rest-forecast-risk{font-size:clamp(.66rem,2.4vw,.81rem);font-weight:950;color:#166eab;white-space:nowrap}
.thf-rest-forecast-state{grid-column:1/-1;font-size:.62rem;text-align:center;font-weight:750;color:#4a6d7e;line-height:1.15}
.thf-popup .thf-rest-weather-popup{
  position:relative;left:auto;right:auto;bottom:auto;width:100%;min-height:62px;
}
/* La pluie couvre le paysage entier ; le sol peut rester visuellement humide
   lorsqu'une averse est prévue mais n'est pas en cours. */
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-wet="true"]::before{
  z-index:1;opacity:1;
  background:linear-gradient(175deg,transparent 35%,#a3d8ea18 65%,#5aabd452 100%),
    repeating-linear-gradient(175deg,transparent 0 20px,#ffffff2a 22px 23px,transparent 28px 36px);
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-wet="true"]{
  --thf-sky-mist:#94bbd955;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-raining="true"]::after{
  content:"";position:absolute;z-index:3;inset:-150px 0 -150px 0!important;
  width:auto;height:auto;right:0;bottom:-150px;pointer-events:none;
  background:repeating-linear-gradient(109deg,transparent 0 13px,#f4fcff8b 14px 15px,transparent 16px 34px);
  background-size:70px 110px;opacity:.32;
}
@media(max-width:390px){
  .hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-rest="true"],
  .hc-days-grid .thf-day-card.is-rest-visual .thf-day-trigger{
    min-height:313px!important;height:auto!important;
  }
  .hc-days-grid .thf-day-card.is-rest-visual .thf-rest-illustration{top:64px!important;height:158px!important}
  .hc-days-grid .thf-day-card.is-rest-visual .thf-rest-caption{margin-top:160px}
  .hc-days-grid .thf-day-card.is-rest-visual .thf-rest-weather{padding:6px 4px}
}

/* Date repos : titre sur deux lignes, centré sans chevron. */
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-heading{
  display:grid!important;grid-template-columns:auto auto!important;
  align-content:center!important;justify-content:center!important;
  column-gap:5px!important;row-gap:0!important;
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-heading>span:first-child{grid-column:1/-1}
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-heading>span:last-child{align-self:end;padding-bottom:1px}

/* Whole-card weather atmosphere; shift/actions belong below the scene, not over the forecast. */
.hc-days-grid .thf-day-card.thf-weather-sky:not(.is-rest-visual){
  background:radial-gradient(ellipse 130% 85% at 65% 13%,var(--thf-sky-aura),transparent 80%),
             var(--thf-sky-bg)!important;
}
.hc-days-grid .thf-day-card:not(.is-rest-visual) .thf-weather-stage{
  flex:1 1 auto;background:transparent!important;border-bottom:0!important;
}
.hc-days-grid .thf-day-card:not(.is-rest-visual) .thf-day-trigger{
  background:transparent!important;border-bottom:0!important;
}
.hc-days-grid .thf-day-card:not(.is-rest-visual) .thf-day-post{
  position:relative;z-index:2;flex:0 0 auto;
  margin:9px 9px 5px!important;padding:10px 8px!important;
  background:#ffffffeb!important;border:1px solid #d6e7ec!important;
  border-radius:14px!important;box-shadow:0 3px 12px #24495c12!important;
}
.hc-days-grid .thf-day-card:not(.is-rest-visual) .thf-weather-body{padding-bottom:4px!important}
.hc-days-grid .thf-day-card:not(.is-rest-visual) .thf-day-more{position:relative;z-index:2}


/* Réserver une vraie ligne à la météo, après la pastille : aucun chevauchement. */
.hc-days-grid .thf-day-card.is-rest-visual .thf-rest-weather{
  position:relative;left:auto;right:auto;bottom:auto;width:100%;flex-shrink:0;margin-top:auto;
}
/* Nuages perceptibles sur toute la scène, sans animation ni image distante. */
.hc-days-grid .thf-weather-stage:is([data-sky="cloudy"],[data-sky="partly"],[data-sky="mixed"],[data-sky="fog"])::before{
  opacity:1;background:
    radial-gradient(ellipse 85% 17% at 12% 16%,#ffffffbf 35%,transparent 72%),
    radial-gradient(ellipse 100% 19% at 95% 38%,#eaf3f9d9 30%,transparent 74%),
    radial-gradient(ellipse 90% 15% at 10% 76%,#7f9eb64d 30%,transparent 76%);
}



/* GHE — reprise du dessin repos approuvé : illustration centrale,
   météo en bas et code de service + actions à la place de l'illustration. */
.hc-days-grid .thf-day-card.thf-weather-sky{
  position:relative;isolation:isolate;overflow:hidden;cursor:pointer;
  border:1px solid #c9dfe9!important;border-radius:20px!important;
  background:radial-gradient(ellipse 140% 90% at 66% 8%,var(--thf-sky-aura),transparent 82%),
             var(--thf-sky-bg)!important;
  box-shadow:0 8px 22px #21465a17,inset 0 1px #ffffffa6!important;
}
.hc-days-grid .thf-day-card.thf-weather-sky.is-rest-visual{
  background:radial-gradient(ellipse 140% 90% at 66% 8%,var(--thf-sky-aura),transparent 82%),
             var(--thf-sky-bg)!important;
}
.hc-days-grid .thf-day-card .thf-weather-stage,
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-rest="true"]{
  position:relative;isolation:isolate;display:block!important;
  flex:1 1 auto!important;min-height:326px!important;
  background:transparent!important;border:0!important;
}
.hc-days-grid .thf-day-card .thf-day-trigger,
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-trigger{
  box-sizing:border-box;position:relative;z-index:2;
  width:100%!important;min-height:326px!important;height:100%!important;
  display:flex!important;flex-direction:column!important;
  justify-content:flex-start!important;align-items:center!important;
  gap:0!important;padding:17px 8px 10px!important;
  text-align:center!important;background:transparent!important;border:0!important;
}
.hc-days-grid .thf-day-card .thf-day-trigger .thf-day-heading,
.hc-days-grid .thf-day-card.is-rest-visual .thf-day-heading{
  display:grid!important;grid-template-columns:auto auto!important;
  justify-content:center!important;align-items:baseline!important;
  align-content:center!important;column-gap:5px!important;row-gap:0!important;
  position:relative;z-index:3;width:100%!important;max-width:100%!important;
  margin:0!important;text-align:center!important;line-height:1.08;
}
.hc-days-grid .thf-day-card .thf-day-heading>span:first-child{grid-column:1/-1}
.hc-days-grid .thf-day-card .thf-day-heading>span:last-child{align-self:end;padding-bottom:1px}

/* On retrouve le canapé/lampadaire d'origine, même emprise et même place. */
.hc-days-grid .thf-day-card.is-rest-visual .thf-rest-illustration{
  position:absolute;z-index:1;left:50%!important;right:auto!important;
  top:68px!important;transform:translateX(-50%)!important;
  width:min(90%,230px)!important;height:170px!important;
  display:grid!important;place-items:center!important;
  border-radius:50%;pointer-events:none;
  background:radial-gradient(ellipse at 37% 24%,#fff9,#fff3 56%,#83cce729 74%,transparent 80%)!important;
  filter:drop-shadow(0 11px 15px #2d6c8c22);
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-rest-illustration span{
  font-size:clamp(5rem,22vw,8rem)!important;line-height:1!important;
  transform:none!important;filter:drop-shadow(0 6px 6px #183f5544);
}
.hc-days-grid .thf-day-card.is-rest-visual .thf-rest-caption{
  display:inline-flex!important;position:relative!important;z-index:3!important;
  align-items:center;justify-content:center;
  max-width:91%;margin:174px auto 0!important;
  padding:7px 12px!important;border-radius:999px!important;
  border:1px solid #fff9!important;
  background:linear-gradient(150deg,#fffffff5,#f5fbffe9)!important;
  box-shadow:0 3px 9px #1e536019,inset 0 1px #fff;
  color:#24495e!important;font-size:clamp(.72rem,2.7vw,.94rem)!important;
  font-weight:950!important;line-height:1.17!important;text-align:center!important;
}

/* Poste travaillé : le carré du shift remplace le dessin, sans grand panneau blanc. */
.hc-days-grid .thf-day-card .thf-weather-stage>.thf-day-post{
  position:absolute!important;left:6px!important;right:6px!important;top:82px!important;
  z-index:4!important;box-sizing:border-box;
  width:auto!important;max-width:none!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  margin:0!important;padding:0!important;min-height:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;pointer-events:none;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-stack{
  width:min(100%,140px)!important;max-width:140px!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;gap:8px!important;margin:0 auto!important;
  pointer-events:none;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-content{
  display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:center!important;
  width:100%!important;max-width:140px!important;
  gap:5px!important;margin:0!important;padding:0!important;
  min-height:0!important;aspect-ratio:auto!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  pointer-events:none;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-symbol{
  display:grid!important;place-items:center!important;min-height:60px!important;
}
.hc-days-grid .thf-day-card .thf-shift-symbol .stip-month-shift-badge,
.hc-days-grid .thf-day-card .thf-shift-symbol-fallback{
  width:64px!important;min-width:64px!important;height:64px!important;
  display:grid!important;place-items:center!important;box-sizing:border-box!important;
  border-radius:17px!important;
  font-size:clamp(1.4rem,5vw,1.75rem)!important;font-weight:1000!important;
  box-shadow:0 7px 17px #2142602c!important;
}
.hc-days-grid .thf-day-card .thf-day-post .thf-shift-hours{
  font-size:clamp(.65rem,2.2vw,.78rem)!important;
  color:#195f92!important;text-shadow:0 1px 2px #ffffffcf!important;
}
.hc-days-grid .thf-day-card .thf-shift-actions,
.hc-days-grid .thf-day-card .thf-shift-actions>button{
  pointer-events:auto!important;
}
.hc-days-grid .thf-day-card .thf-shift-actions{
  width:100%!important;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important;
}
.hc-days-grid .thf-day-card .thf-shift-actions>button{
  min-width:0!important;min-height:35px!important;height:35px!important;
  padding:4px 3px!important;background:#f4fbffee!important;
  border:1px solid #d0e5ed!important;border-radius:11px!important;
  box-shadow:0 3px 9px #194b6220!important;
}
.hc-days-grid .thf-day-card .thf-shift-actions .thf-shift-chiefs{
  background:#fff9eaf0!important;border-color:#ebdbba!important;
}

/* Les informations météo occupent la même zone inférieure sur les deux cartes. */
.hc-days-grid .thf-day-card .thf-weather-caption,
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-caption{
  position:absolute!important;z-index:5!important;
  left:7px!important;right:7px!important;bottom:10px!important;
  width:auto!important;margin:0!important;padding:0!important;
  min-height:66px!important;display:flex!important;align-items:flex-end!important;
  justify-content:center!important;
}
.hc-days-grid .thf-day-card .thf-weather-caption .thf-inline-weather,
.hc-days-grid .thf-day-card .thf-weather-caption .thf-rest-weather{
  position:relative!important;inset:auto!important;
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
  justify-content:center!important;align-items:center!important;
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  margin:0!important;padding:8px 5px!important;gap:3px!important;
  border:1px solid #ffffffc9!important;border-radius:15px!important;
  background:linear-gradient(135deg,#fffffff0,#eef8ffee)!important;
  box-shadow:0 4px 14px #2049581f,inset 0 1px #fff!important;
  color:#16425b!important;text-align:center!important;
  text-shadow:none!important;font-variant-numeric:tabular-nums;
}
.hc-days-grid .thf-day-card .thf-weather-caption .thf-inline-weather[hidden],
.hc-days-grid .thf-day-card .thf-weather-caption .thf-rest-weather[hidden]{
  display:none!important;
}
.hc-days-grid .thf-day-card .thf-rest-weather .thf-rest-forecast-range{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;
}
.hc-days-grid .thf-day-card .thf-rest-weather .thf-rest-forecast-risk{
  font-size:clamp(.61rem,2.1vw,.75rem);white-space:normal;
}
.hc-days-grid .thf-day-card .thf-rest-weather .thf-rest-forecast-state{
  grid-column:auto;font-size:clamp(.57rem,2vw,.67rem);
}
.hc-days-grid .thf-day-card .thf-weather-caption .thf-inline-weather .thf-weather-endpoints{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center!important;width:100%!important;gap:3px!important;
}
.hc-days-grid .thf-day-card .thf-weather-caption .hc-shift-weather-state{
  width:100%;text-align:center!important;font-size:clamp(.59rem,2.1vw,.7rem)!important;
}
.hc-days-grid .thf-day-card .thf-weather-caption .hc-shift-weather-rain{
  text-align:center!important;white-space:normal!important;
  font-size:clamp(.62rem,2.25vw,.74rem)!important;font-weight:950;
  color:#126aa0!important;
}
.hc-days-grid .thf-day-card .thf-weather-stage .thf-weather-body{
  position:relative;z-index:6;
  padding:0 6px 5px!important;
}
.hc-days-grid .thf-day-card .thf-weather-body:empty{display:none!important}
.hc-days-grid .thf-day-card .thf-weather-art{
  right:-18px!important;bottom:23%!important;
  opacity:.36!important;filter:saturate(1.13) contrast(1.04);
}

/* Météo lisible sur toute la carte, sans longues rayures en diagonale.
   La probabilité de pluie colore le ciel/sol, sans se faire passer pour de
   la pluie observée. Les gouttelettes sont des points fixes et irréguliers. */
.hc-days-grid .thf-day-card.thf-weather-sky[data-wet="true"]{
  --thf-sky-bg:linear-gradient(157deg,#7299b4 0%,#9cbfd4 46%,#d6e9f3 100%);
  --thf-sky-aura:#d4eaf6a6;
}
.hc-days-grid .thf-day-card.thf-weather-sky[data-wet="true"]::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,#315b751a 0%,#6da5c127 53%,#3c88ae2f 100%);
  opacity:1;
}
.hc-days-grid .thf-day-card.thf-weather-sky[data-wet="true"]::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:47%;z-index:0;
  pointer-events:none;opacity:.85;
  background:radial-gradient(ellipse 70% 9% at 27% 76%,#effcff90,transparent 85%),
             radial-gradient(ellipse 87% 12% at 92% 90%,#e8faff85,transparent 82%),
             linear-gradient(0deg,#3a85ad43,transparent 80%);
}
.hc-days-grid .thf-day-card .thf-weather-stage[data-wet="true"]::before,
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-wet="true"]::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:1;
  background:
    radial-gradient(ellipse 80% 23% at 15% 21%,#dfeef8aa 26%,transparent 78%),
    radial-gradient(ellipse 100% 25% at 95% 53%,#cfe3f4c5 28%,transparent 78%),
    radial-gradient(ellipse 92% 22% at 14% 79%,#7daec952 20%,transparent 80%);
}
.hc-days-grid .thf-day-card .thf-weather-stage[data-wet="true"]::after,
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-wet="true"]::after{
  content:"";position:absolute;inset:0!important;z-index:1;
  width:auto!important;height:auto!important;pointer-events:none;
  background:
    radial-gradient(ellipse 1.5px 6px at 14% 28%,#f9fdff91 18%,transparent 85%),
    radial-gradient(ellipse 1px 4px at 43% 18%,#f9fdffa3 20%,transparent 84%),
    radial-gradient(ellipse 1.6px 6px at 81% 38%,#f9fdffa6 19%,transparent 87%),
    radial-gradient(ellipse 1px 4px at 63% 59%,#f9fdff7e 20%,transparent 87%),
    radial-gradient(ellipse 1.4px 5px at 31% 73%,#f9fdff80 20%,transparent 87%),
    radial-gradient(ellipse 1px 5px at 91% 82%,#f9fdff90 20%,transparent 87%);
  opacity:.38!important;
}
.hc-days-grid .thf-day-card .thf-weather-stage[data-raining="true"]::after,
.hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-raining="true"]::after{
  inset:0!important;right:0!important;bottom:0!important;
  opacity:.85!important;
}
@media(max-width:390px){
  .hc-days-grid .thf-day-card .thf-weather-stage,
  .hc-days-grid .thf-day-card .thf-day-trigger,
  .hc-days-grid .thf-day-card.is-rest-visual .thf-weather-stage[data-rest="true"],
  .hc-days-grid .thf-day-card.is-rest-visual .thf-day-trigger{
    min-height:313px!important;
  }
  .hc-days-grid .thf-day-card.is-rest-visual .thf-rest-illustration{
    top:64px!important;height:158px!important;
  }
  .hc-days-grid .thf-day-card.is-rest-visual .thf-rest-caption{margin-top:160px!important}
  .hc-days-grid .thf-day-card .thf-weather-stage>.thf-day-post{top:74px!important}
}

/* 2026-10-18 — Same two headcount shortcuts as the day card, in the shared day popup. */
.thf-popup.thf-day-popup .thf-day-team-access{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  margin:9px 0 11px;min-width:0
}
.thf-popup .thf-day-team-button{
  display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;
  justify-content:center;align-content:center;align-items:center;
  column-gap:10px;row-gap:2px;min-width:0;min-height:92px;
  padding:12px 8px 10px;border:1px solid #c3e4ed;border-radius:21px;
  background:linear-gradient(150deg,#edfaff,#e2f3f8);color:#0874a2;
  box-shadow:0 3px 11px rgba(13,82,109,.06);cursor:pointer;
  font:inherit;text-align:center
}
.thf-popup .thf-day-team-button.is-chiefs{
  border-color:#f0d8ad;background:linear-gradient(150deg,#fffaf0,#fff3e3);
  color:#a86204
}
.thf-popup .thf-day-team-button .thf-day-team-icon{font-size:2.05rem;line-height:1}
.thf-popup .thf-day-team-button>strong{
  font-size:2.05rem;font-weight:950;line-height:1.03;
  letter-spacing:-.035em;font-variant-numeric:tabular-nums
}
.thf-popup .thf-day-team-button>small{
  grid-column:1/-1;font-size:.69rem;font-weight:850;
  line-height:1.1;letter-spacing:.01em;color:inherit;opacity:.84
}
.thf-popup .thf-day-team-button:active{transform:scale(.98)}
.thf-popup .thf-day-team-button:focus-visible,
.thf-popup .thf-popup-day-back:focus-visible{
  outline:3px solid #157faa;outline-offset:3px
}
.thf-popup .thf-day-team-button:disabled{opacity:.58;cursor:not-allowed;transform:none}
.thf-popup.thf-day-popup .thf-day-popup-actions{margin-top:7px}
.thf-popup.thf-day-popup .thf-day-popup-actions>button{
  min-height:38px;padding:8px 12px;border-radius:10px;
  font-size:.77rem;background:#f6f9fb;border-color:#e1e9ec;color:#497183
}
.thf-popup .thf-popup-day-back{
  display:inline-flex;align-items:center;gap:6px;max-width:calc(100% - 40px);
  margin:1px 0 11px;padding:6px 9px 6px 7px;
  background:#eff6f9;border:1px solid #dfebef;border-radius:10px;
  color:#24647b;font:800 .75rem/1.2 system-ui;cursor:pointer;
}
.thf-popup .thf-popup-day-back span{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
@media(max-width:350px){
  .thf-popup.thf-day-popup .thf-day-team-access{gap:7px}
  .thf-popup .thf-day-team-button{column-gap:6px;padding:10px 5px;min-height:83px;border-radius:16px}
  .thf-popup .thf-day-team-button .thf-day-team-icon,
  .thf-popup .thf-day-team-button>strong{font-size:1.7rem}
}
