/* ════════════════════════════════════════════════════════════════════════════
   APPLI « JOUR DE TOURNAGE » (29/11/2026) · son tableau de bord modelé sur Hovira : bandeau en direct, lieux du jour en tuiles
   (les pièces de la maison), plans cochés comme des interrupteurs, tuile caméra, équipe, agents. Couleur signature : pêche corail.
   Tout le CSS de l'appli neuve est ici ; studio.css garde le socle et les anciennes pages (.tg-*), qu'on accorde à la couleur.
   ════════════════════════════════════════════════════════════════════════════ */
.tg{--tga:#fafaff;--tga-f:rgba(250,250,255,.16);--tga-t:#ff6b52;--v-f:rgba(255,255,255,.045);--v-l:rgba(255,255,255,.14);--tx:#f3f3f6;--tx2:#a3a7b0;--tx3:#757a84}
body.s3 #view .ecx-page.tg h1,#view .ecx-page.tg h1{font-size:22px!important;font-weight:650!important;letter-spacing:-.02em!important;line-height:1.2!important}
.tg .tg-cours-t h2,.tg .tg-cours.fini h2{font-size:20px}
.tg .tg-an-c b{font-size:38px}
/* l'ancienne page prend la couleur de l'appli */
.tg .tg-anneau .plein{stroke:var(--tga)}
.tg .tg-li-b i{background:var(--tga)}
.tg .tg-live i{background:var(--tga)}
.tg .tg-carte{background:var(--v-f);border-color:var(--v-l)}

/* ── le tableau de bord ── */
.tga{container-type:inline-size;display:flex;flex-direction:column;gap:14px;color:var(--tx);font-size:13px}
.tga button{font-family:inherit;-webkit-tap-highlight-color:transparent}
.tga-carte,.tga-band,.tga-tuile,.tga-cam,.tga-vide{border-radius:22px;background:var(--v-f);border:1px solid var(--v-l);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.tga-calme{margin:4px 0;color:var(--tx3);font-size:12.5px;line-height:1.45}
.tga-lien{display:inline-flex;align-items:center;gap:3px;height:26px;padding:0 4px;border:0;background:none;color:var(--tx2);font-size:12px;font-weight:600;cursor:pointer;text-decoration:none;border-radius:8px}
.tga-lien:hover{color:var(--tx)}
.tga-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 15px;border-radius:19px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:var(--tx);font:600 13px/1 system-ui,-apple-system,sans-serif;cursor:pointer;white-space:nowrap;transition:background .15s,transform .12s}
.tga-btn:hover{background:rgba(255,255,255,.11)}.tga-btn:active{transform:scale(.97)}
.tga-btn.blanc{background:#f3f3f6;border-color:#f3f3f6;color:#07080b}.tga-btn.blanc:hover{background:#fff}
.tga-btn.rond{width:38px;padding:0}.tga-btn.petit{height:30px;padding:0 12px;font-size:12px;border-radius:15px}

/* le bandeau en direct */
.tga-band{position:relative;overflow:hidden;padding:18px 20px 16px;background:radial-gradient(120% 140% at 0% 0%,rgba(250,250,255,.13),rgba(250,250,255,0) 55%),var(--v-f)}
.tga-band-h{display:flex;align-items:flex-start;gap:16px}
.tga-band-t{flex:1;min-width:0}
.tga-band-b{display:flex;gap:8px;flex:none}
.tga-etat{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--tga)}
.tga-etat>i{width:7px;height:7px;border-radius:50%;background:var(--tga);box-shadow:0 0 0 0 rgba(250,250,255,.6)}
.tga-etat.live>i{animation:tgaPouls 1.8s ease-out infinite}
.tga-etat.passe{color:var(--tx3)}.tga-etat.passe>i{background:var(--tx3)}
.tga-etat span{color:var(--tx2);letter-spacing:.02em;text-transform:none;font-weight:600;font-size:12px}
@keyframes tgaPouls{0%{box-shadow:0 0 0 0 rgba(250,250,255,.55)}70%{box-shadow:0 0 0 8px rgba(250,250,255,0)}100%{box-shadow:0 0 0 0 rgba(250,250,255,0)}}
.tga-band h1{margin:6px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tga-sous{margin:4px 0 0;color:var(--tx2);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tga-stats{display:grid;grid-template-columns:1.25fr 1fr 1.15fr 1fr;margin-top:16px;border-top:1px solid rgba(255,255,255,.08)}
.tga-st{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:14px 16px 2px;border:0;border-left:1px solid rgba(255,255,255,.08);background:none;color:inherit;text-align:left;cursor:pointer;font:inherit}
.tga-st:first-child{border-left:0;padding-left:0}
div.tga-st{cursor:default}
.tga-st small{font-size:11px;font-weight:600;color:var(--tx3);letter-spacing:.02em}
.tga-st b{font-size:20px;font-weight:650;letter-spacing:-.02em;line-height:1.15;font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:6px;max-width:100%}
.tga-st.tga-hero b{font-size:36px;letter-spacing:-.04em;line-height:1}
.tga-st b em{font-style:normal;font-size:15px;color:var(--tx3);font-weight:600;letter-spacing:0}
.tga-st b.tga-txt{font-size:15px;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.tga-h{color:var(--tx)}
.tga-st-s{font-style:normal;font-size:12px;color:var(--tx2);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tga-st:hover:not(div) small{color:var(--tx2)}
.tga-j{display:block;width:100%;height:5px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden}
.tga-j i{display:block;height:100%;border-radius:3px;background:var(--tga);transition:width .6s cubic-bezier(.23,1,.32,1)}
.tga-st.tga-hero .tga-j{margin:4px 0 2px;max-width:220px}
.tga-avs{display:flex;height:30px;align-items:center}.tga-avs .tg-av{margin-left:-7px;box-shadow:0 0 0 2px #0e0f13;width:28px;height:28px;font-size:10.5px}.tga-avs .tg-av:first-child{margin-left:0}

/* la grille : tuiles à gauche, colonne de droite */
.tga-grille{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}
.tga-grille.seul{grid-template-columns:minmax(0,1fr)}
.tga-g,.tga-d{display:flex;flex-direction:column;gap:14px;min-width:0}
.tga-tuiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}

/* une tuile = un lieu (ou une séquence) */
.tga-tuile{display:flex;flex-direction:column;gap:10px;padding:14px 14px 10px;min-width:0;transition:transform .2s cubic-bezier(.23,1,.32,1),border-color .2s}
.tga-tuile:hover{border-color:rgba(255,255,255,.22)}
.tga-tuile header{display:flex;align-items:flex-start;gap:10px}
.tga-ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);color:var(--tx)}
.tga-tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.tga-tt b{font-size:14px;font-weight:620;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tga-tt small{font-size:11px;color:var(--tx3);font-weight:550}
.tga-pc{flex:none;font-size:12px;color:var(--tx3);font-variant-numeric:tabular-nums;padding-top:2px}.tga-pc b{font-size:15px;color:var(--tx);font-weight:650}
.tga-tuile ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tga-tuile li{display:flex;align-items:center;gap:8px;min-height:40px;border-top:1px solid rgba(255,255,255,.06)}
.tga-pl{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:40px;padding:0;border:0;background:none;color:var(--tx);text-align:left;cursor:pointer;font-size:12.5px}
.tga-pl .n{flex:none;min-width:22px;font-size:11px;font-weight:650;color:var(--tx3);font-variant-numeric:tabular-nums}
.tga-pl .t{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tga-tuile li.fait .t{color:var(--tx3);text-decoration:line-through;text-decoration-color:rgba(255,255,255,.25)}
/* l'interrupteur, monochrome */
.tga-sw{flex:none;position:relative;width:44px;height:26px;border-radius:13px;border:0;padding:0;background:rgba(255,255,255,.13);cursor:pointer;transition:background .2s}
.tga-sw i{position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.78);transition:transform .25s cubic-bezier(.34,1.4,.64,1),background .2s}
.tga-sw.on{background:#f3f3f6}.tga-sw.on i{transform:translateX(18px);background:#07080b}
.tga-sw:active i{width:24px}.tga-sw.on:active i{transform:translateX(14px)}
.tga-plus{align-self:flex-start;display:inline-flex;align-items:center;gap:3px;height:28px;padding:0;border:0;background:none;color:var(--tx2);font-size:12px;font-weight:600;cursor:pointer}
.tga-plus:hover{color:var(--tx)}
.tga-tuile.fini{opacity:.72}
/* la tuile en cours : pleine, pêche corail, comme la pièce allumée chez Hovira */
.tga-tuile.on{background:var(--tga);border-color:var(--tga);color:#1b1b21;opacity:1;box-shadow:0 18px 40px -18px rgba(250,250,255,.55)}
.tga-tuile.on .tga-ic{background:rgba(27,27,33,.12);color:#1b1b21}
.tga-tuile.on .tga-tt small,.tga-tuile.on .tga-pc,.tga-tuile.on .tga-pl .n{color:rgba(27,27,33,.62)}
.tga-tuile.on .tga-pc b,.tga-tuile.on .tga-pl{color:#1b1b21}
.tga-tuile.on li{border-color:rgba(27,27,33,.12)}
.tga-tuile.on .tga-j{background:rgba(27,27,33,.14)}.tga-tuile.on .tga-j i{background:#1b1b21}
.tga-tuile.on .tga-sw{background:rgba(27,27,33,.16)}.tga-tuile.on .tga-sw i{background:#fff}
.tga-tuile.on .tga-sw.on{background:#1b1b21}.tga-tuile.on .tga-sw.on i{background:#fff}
.tga-tuile.on .tga-plus{color:rgba(27,27,33,.7)}
.tga-tuile.on li.fait .t{color:rgba(27,27,33,.5);text-decoration-color:rgba(27,27,33,.3)}

/* la tuile caméra : le plan suivant */
.tga-cam{overflow:hidden;padding:0}
.tga-cam-i{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;background:#101116;cursor:pointer;overflow:hidden}
.tga-cam-i img{width:100%;height:100%;object-fit:cover;display:block}
.tga-cam-v{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:rgba(255,255,255,.28);background:radial-gradient(90% 90% at 70% 20%,rgba(250,250,255,.12),transparent 60%),repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 2px,transparent 2px 4px)}
.tga-cam-v small{font-size:11.5px;color:var(--tx3);max-width:80%;text-align:center}
.tga-rec{position:absolute;left:10px;top:10px;display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:12px;background:rgba(7,8,11,.62);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
.tga-rec i{width:6px;height:6px;border-radius:50%;background:var(--tga);animation:tgaClig 1.4s steps(2,start) infinite}
@keyframes tgaClig{to{visibility:hidden}}
.tga-cam-h{position:absolute;left:10px;bottom:10px;color:#fff;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.tga-cam-t{display:flex;flex-direction:column;gap:3px;padding:12px 14px 14px}
.tga-cam-t small{font-size:11px;font-weight:600;color:var(--tx3)}
.tga-cam-t b{font-size:15px;font-weight:620;line-height:1.3}
.tga-cam-t em{font-style:normal;font-size:12px;color:var(--tx2)}
.tga-cam-g{display:flex;gap:8px;margin-top:9px}.tga-cam-g .tga-btn{flex:1}

/* équipe, grille des jours, agents */
.tga-carte{padding:14px}
.tga-carte>header{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.tga-carte>header h3{flex:1;margin:0;display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:620}
.tga-pe{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 0;border:0;border-top:1px solid rgba(255,255,255,.06);background:none;color:inherit;text-align:left;cursor:pointer;font:inherit}
.tga-eq header+div>.tga-pe:first-child{border-top:0}
.tga-pe>span:not(.tg-av){flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.tga-pe b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tga-pe small{font-size:11.5px;color:var(--tx3)}
.tga-pe .tg-av{width:30px;height:30px;font-size:10.5px}
.tga-pe.ext{cursor:default}.tga-pe.ext .tg-av{background:transparent;border:1px dashed rgba(255,255,255,.22)}
.tga-rep{flex:none;font-style:normal;font-size:11px;font-weight:650;height:22px;padding:0 9px;border-radius:11px;display:inline-flex;align-items:center;background:rgba(255,255,255,.07);color:var(--tx2)}
.tga-rep.dispo{background:#f3f3f6;color:#07080b}.tga-rep.pas_dispo{background:rgba(255,107,82,.14);color:#ff8a76}.tga-rep.q{background:none;border:1px dashed rgba(255,255,255,.16);color:var(--tx3)}
.tga-cal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.tga-cal-e{text-align:center;font-size:10.5px;font-weight:650;color:var(--tx3);padding-bottom:2px}
.tga-cal-c{position:relative;height:38px;border-radius:10px;border:1px solid transparent;background:rgba(255,255,255,.03);color:var(--tx2);font:600 12.5px/1 system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums;cursor:default;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0}
.tga-cal-c.passe{color:var(--tx3);background:none}
.tga-cal-c.auj{border-color:rgba(255,255,255,.28);color:var(--tx)}
.tga-cal-c i{width:5px;height:5px;border-radius:50%;background:var(--tga-t)}
.tga-cal-c.t{cursor:pointer;color:var(--tx);background:rgba(255,107,82,.13)}
.tga-cal-c.t.poss{background:none;border:1px dashed rgba(255,107,82,.45)}.tga-cal-c.t.poss i{background:none;border:1px solid var(--tga-t)}
.tga-cal-c.t:hover{background:rgba(255,107,82,.22)}
.tga-cal-c.on{box-shadow:0 0 0 2px var(--tga)}
.tga-cal-l{display:flex;gap:14px;margin:10px 0 0;font-size:11px;color:var(--tx3)}
.tga-cal-l span{display:inline-flex;align-items:center;gap:6px}.tga-cal-l i{width:8px;height:8px;border-radius:3px;background:var(--tga-t)}.tga-cal-l i.poss{background:none;border:1px dashed var(--tga-t)}

.tga-agents h3 svg{color:var(--tga)}
.tga-oui{display:flex;flex-direction:column;gap:6px;padding:10px 12px;margin:0 0 6px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.tga-oui>small{font-size:11px;font-weight:650;color:var(--tx2)}
.tga-oui .tga-calme{margin:0}
.tga-oui-l{display:flex;align-items:center;gap:10px}.tga-oui-l>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.tga-oui-l b{font-size:12.5px;font-weight:600}.tga-oui-l small{font-size:11px;color:var(--tx3)}
.tga-ag{padding:10px 0 4px;border-top:1px solid rgba(255,255,255,.06)}
.tga-ag-h{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.tga-ag-av{position:relative;flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--tga-f);color:var(--tga);font-size:10.5px;font-weight:700;letter-spacing:.03em}
.tga-ag-av i{position:absolute;right:-2px;top:-2px;width:9px;height:9px;border-radius:50%;background:#3a3d45;box-shadow:0 0 0 2px #101116}
.tga-ag-av.vif i{background:var(--tga);animation:tgaPouls 1.8s ease-out infinite}
.tga-ag-n{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.tga-ag-n b{font-size:13px;font-weight:620}.tga-ag-n small{font-size:11px;color:var(--tx3)}
.tga-ag-h time{flex:none;font-size:11px;color:var(--tx3)}
.tga-ag-m{display:flex;align-items:flex-start;gap:10px;width:100%;padding:7px 8px;margin:2px 0;border:0;border-radius:10px;background:none;color:var(--tx2);text-align:left;cursor:pointer;font:inherit;font-size:12px;line-height:1.45}
.tga-ag-m span{flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tga-ag-m time{flex:none;font-size:10.5px;color:var(--tx3);padding-top:2px}
button.tga-ag-m:hover{background:rgba(255,255,255,.04);color:var(--tx)}
.tga-ag-m.fixe{cursor:default}
.tga-agents.grand .tga-ag-m span{-webkit-line-clamp:6}
.tga-conf{display:flex;flex-direction:column;gap:3px;padding:9px 11px;margin:4px 0;border-radius:12px;background:var(--tga-f);border:1px solid rgba(250,250,255,.22)}
.tga-conf small{font-size:10.5px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--tga)}
.tga-conf b{font-size:12.5px;font-weight:600;line-height:1.4}.tga-conf em{font-size:11.5px;color:var(--tx2);font-style:italic}.tga-conf time{font-size:10.5px;color:var(--tx3)}
.tga-note{margin:8px 0 0;padding-top:8px;border-top:1px solid rgba(255,255,255,.06);font-size:11px;color:var(--tx3)}
.tga-agents.grand{max-width:820px}
.tga-msg-t{font-size:13.5px;line-height:1.6;color:#d6d8de;white-space:normal}

.tga-vide{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:22px}
.tga-vide b{font-size:15px}.tga-vide small{color:var(--tx2);font-size:12.5px}
.tga-vide-b{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}

/* le dock des lieux prend la couleur de l'appli */
.tg-dock>button.on{background:rgba(250,250,255,.18)!important;color:#fff}
.tg-dock>button.on small{color:var(--tga,#fafaff);opacity:1}

/* tailles : la colonne de droite passe dessous quand la place manque */
@container (max-width:980px){
  .tga-grille{grid-template-columns:minmax(0,1fr)}
  .tga-d{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .tga-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tga-st:nth-child(3){border-left:0;padding-left:0}
  .tga-st:nth-child(n+3){border-top:1px solid rgba(255,255,255,.08);margin-top:10px}
}
@container (max-width:620px){
  .tga-d{grid-template-columns:minmax(0,1fr)}
  .tga-band{padding:16px 16px 14px}
  .tga-band-h{flex-direction:column;gap:12px}
  .tga-band-b{width:100%}.tga-band-b .blanc{flex:1}
  .tga-band h1{white-space:normal}
  .tga-st{padding:12px 10px 2px}
  .tga-st.tga-hero b{font-size:32px}
  .tga-tuiles{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  body.s3 .tg-dock{bottom:calc(86px + env(safe-area-inset-bottom))}
  body.s3 .tg-loquet{bottom:calc(150px + env(safe-area-inset-bottom))!important}
  .tg{padding-bottom:170px!important}
}
@media (prefers-reduced-motion:reduce){.tga-etat.live>i,.tga-ag-av.vif i,.tga-rec i{animation:none}.tga-sw i,.tga-j i{transition:none}}
/* le socle du Studio pose un fond sur les boutons de page : l'appli garde les siens */
.tg .tga .tga-st,.tg .tga .tga-tt,.tg .tga .tga-pl,.tg .tga .tga-plus,.tg .tga .tga-pe,.tg .tga .tga-lien,.tg .tga button.tga-ag-m{background:none;box-shadow:none}
.tga-tuiles{align-items:start}
.tg .tga .tga-st,.tg .tga .tga-cam-i{background-image:none!important;background-color:transparent!important;box-shadow:none!important;border-radius:0}
.tg .tga .tga-cam-i{background-color:#101116!important}
@media (max-width:760px){
  body.s3 .tg-loquet{width:46px;height:46px;padding:0!important;justify-content:center;border-radius:50%!important}
  body.s3 .tg-loquet span{display:none}
}
/* journée sans plan : l'équipe et les jours remontent sous le vide */
.tga-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
@container (max-width:620px){.tga-duo{grid-template-columns:minmax(0,1fr)}}
/* la page Agents */
.tga-ags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.tga-ags-act{grid-column:1/-1}
.tga-ags-n{font-size:12px;color:var(--tx3)}.tga-ags-n b{font-size:18px;color:var(--tx);font-weight:650;margin-right:3px;font-variant-numeric:tabular-nums}
.tga-barres{display:grid;grid-template-columns:repeat(14,1fr);gap:6px;height:96px;align-items:end;margin-top:6px}
.tga-bar{position:relative;display:flex;flex-direction:column-reverse;justify-content:flex-start;height:100%;padding-bottom:18px;gap:2px}
.tga-bar i{display:block;width:100%;border-radius:4px;min-height:0}
.tga-bar i.a{background:var(--tga)}.tga-bar i.b{background:rgba(250,250,255,.35)}
.tga-bar small{position:absolute;left:0;right:0;bottom:0;text-align:center;font-size:10.5px;color:var(--tx3);font-variant-numeric:tabular-nums}
.tga-bar.auj small{color:var(--tx);font-weight:650}
.tga-cal-l i.a{background:var(--tga)}.tga-cal-l i.b{background:rgba(250,250,255,.35)}
.tga-ag.carte{padding:14px;border-top:1px solid var(--v-l)}
.tga-ag-h time{display:flex;flex-direction:column;align-items:flex-end;gap:1px}.tga-ag-h time em{font-style:normal;font-size:10.5px;color:var(--tx3)}
.tga-ags .tga-oui{margin:0}
@container (max-width:760px){.tga-ags{grid-template-columns:minmax(0,1fr)}.tga-barres{gap:3px}}
.tga-ags{display:flex;flex-direction:column;gap:14px}
.tga-ags-act{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;align-items:start}
.tga-ags-act header{display:flex;align-items:center;gap:8px;margin:0 0 8px}.tga-ags-act header h3{flex:1;margin:0;display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:620}
.tga-barres{height:84px}
.tga-ags-c{columns:2 300px;column-gap:14px}
.tga-ags-c>section{break-inside:avoid;margin:0 0 14px;display:block}
@container (max-width:760px){.tga-ags-act{grid-template-columns:minmax(0,1fr)}}
.tg .tga .tga-ags-act{width:100%;max-width:none!important;box-sizing:border-box}
.tga-jrs{margin:0 0 14px}.tga-jrs .tga-cal{max-width:520px}
@container (max-width:620px){.tga-band-h{align-items:stretch}.tga-sous{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}
.tga-jrs .tga-lien{display:none}

/* ════ 29/11 · corrections du juge (6,5/10) ════ */
/* 1. trois états : le passé est un bilan (gris), l'avance un compte à rebours, seul le jour même vit */
.tga-band.passe{background:var(--v-f)}
.tga-etat.avant{color:var(--tx2)}.tga-etat.avant>i{background:var(--tx2)}
.tga-rec.calme{padding:0 10px}
/* 2. le loquet est rangé dans la tête de page : plus rien ne flotte sur le contenu */
.tg .tg-lq{position:relative;overflow:hidden;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 14px 0 12px;border-radius:19px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:var(--tx2);font:600 13px/1 system-ui,-apple-system,sans-serif;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;transition:color .2s,background .2s,border-color .2s}
.tg .tg-lq:hover{color:var(--tx);background:rgba(255,255,255,.11)}
.tg .tg-lq svg{position:relative;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tg .tg-lq span{position:relative}
.tg .tg-lq.on{color:var(--tx);border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.14)}
.tg .tg-lq .tg-loquet-p{position:absolute;inset:0;background:rgba(255,255,255,.18);transform:scaleX(0);transform-origin:left}
.tg .tg-lq.tient .tg-loquet-p{transform:scaleX(1);transition:transform 2s linear}
.tg .tg-lq.tg-lq-h{height:42px;border-radius:21px}
/* 3. le rail de l'iPad : libellés courts sous l'icône, plus de compteur coupé */
.stu-side .tg-court{display:none}
@media (min-width:861px) and (max-width:1180px){
  body.stu-on.lin.rail-on .stu-side[data-mode="projet"] .ecx-nav>button:has(.tg-court) .stu-long,
  body.stu-on.lin.rail-on .stu-side[data-mode="projet"] .ecx-nav>button:has(.tg-court) .ecx-nb{display:none!important}
  body.stu-on.lin.rail-on .stu-side[data-mode="projet"] .ecx-nav>button .tg-court{display:block!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important}
}
/* 4. les tuiles en colonnes (masonry) : plus de trou sous une tuile courte */
.tga-tuiles-h{display:flex;align-items:baseline;gap:10px;margin:2px 2px -4px}
.tga-tuiles-h h2{margin:0;font-size:13.5px;font-weight:620;color:var(--tx)}
.tga-tuiles-h span{font-size:11px;color:var(--tx3)}
.tga-tuiles{display:block;column-width:260px;column-gap:14px}
.tga-tuiles>.tga-tuile{break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 14px;width:100%;box-sizing:border-box}
.tga-g>.tga-tuiles{margin-bottom:-14px}
.tga-tuile footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tga-poser{color:var(--tx3)}.tga-poser svg{margin-right:3px}
.tga-poser-f{display:flex;align-items:center;gap:6px;width:100%;padding:4px 0}
.tga-poser-f input{flex:1;min-width:0;height:30px;padding:0 10px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.25);color:inherit;font:500 12.5px/1 system-ui,-apple-system,sans-serif}
.tga-tuile.on .tga-poser-f input{border-color:rgba(27,27,33,.25);background:rgba(255,255,255,.35)}
.tga-tuile.on .tga-poser{color:rgba(27,27,33,.62)}
/* 5. « Attend ton Oui » seulement s'il y a un Oui ; « À regarder » pour ce qui s'ouvre */
.tga-oui.regarder{margin:8px 0 0}
.tga-oui .tga-lien{align-self:flex-start;padding:0}
/* 6. une ligne par message, l'heure à droite */
.tga-ag-m{align-items:center;padding:6px 8px}
.tga-ag-m span,.tga-agents.grand .tga-ag-m span{display:block;-webkit-line-clamp:unset;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tga-ag-m time{padding-top:0}
.tga-conf b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 7. les couleurs : la pêche pour l'interface, #ff6b52 plein pour la donnée « tournage », « Pas dispo » en gris */
.tga-cal-c.t{background:#ff6b52;color:#1b0b07;border-color:#ff6b52}
.tga-cal-c.t:hover{background:#ff7d67}
.tga-cal-c.t.passe{opacity:.5}
.tga-cal-c.t.poss{background:none;color:var(--tx);border:1px dashed #ff6b52}
.tga-cal-c.t.poss:hover{background:rgba(255,255,255,.05)}
.tga-cal-c small{position:absolute;right:4px;top:3px;font-size:9.5px;font-weight:700;opacity:.75}
.tga-cal-c.on{box-shadow:0 0 0 2px #07080b,0 0 0 3.5px #f3f3f6}
.tga-cal-l i.sel{background:none;border:1.5px solid #f3f3f6;border-radius:3px}
.tga-cal-l i.t{background:#ff6b52}
.tga-rep.pas_dispo,.tg .tg-rep.pas_dispo{background:none!important;border:1px solid rgba(255,255,255,.18);color:var(--tx3)!important}
/* 9. la tuile caméra sans image : le plan écrit */
.tga-cam-x{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:40px 18px 34px;text-align:left;background:radial-gradient(90% 90% at 80% 10%,rgba(250,250,255,.10),transparent 60%),#101116}
.tga-cam-x small{font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--tx3)}
.tga-cam-x b{font-size:18px;font-weight:650;letter-spacing:-.01em;line-height:1.2;color:var(--tx)}
.tga-cam-x em{font-style:normal;font-size:12.5px;line-height:1.4;color:var(--tx2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* 11. le téléphone : les rubriques en segment collé en haut, qui défile à l'horizontale */
.tga-rub{display:none}
@media (max-width:760px){
  /* body et #view coupent le défilement horizontal : un « sticky » n'y colle pas ; le segment est donc fixé sous la barre du haut */
  .tg #tgCorps{margin-top:38px}
  .tg .tga-rub{display:flex;gap:6px;position:fixed;top:57px;left:0;right:0;height:54px;box-sizing:border-box;z-index:40;margin:0;padding:10px 16px;overflow-x:auto;scrollbar-width:none;background:rgba(7,8,11,.86);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.07)}
  .tg .tga-rub::-webkit-scrollbar{display:none}
  .tg .tga-rub button{flex:none;height:34px;padding:0 14px;border-radius:17px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:var(--tx2);font:600 12.5px/1 system-ui,-apple-system,sans-serif;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .tg .tga-rub button.on{background:#f3f3f6;border-color:#f3f3f6;color:#07080b}
  .tg .tg-lq{width:38px;padding:0}.tg .tg-lq span{display:none}.tg .tg-lq.tg-lq-h{width:42px}
}
.tga-st-s.deux{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35}
.tga-cal-l i.t.poss{background:none;border:1px dashed #ff6b52}
.tga-ic.mono{font-size:14px;font-weight:650;letter-spacing:-.01em;color:var(--tx)}
.tga-tuile.on .tga-ic.mono{color:#1b1b21}
/* la page Agents : le graphe seul en tête, puis ce qui attend et chaque agent en colonnes */
.tga-ags-act{display:block}
.tga-ags-o .tga-oui{margin:0}.tga-ags-o .tga-oui+.tga-oui{margin-top:8px}
.tga-ags-o .tga-note{margin-top:8px}
.tga-ags-o .tga-note:first-child{margin:0;padding:0;border:0}
@media (max-width:760px){.tg .tg-h .tg-sous{white-space:normal;overflow:visible}}
/* iPad : la colonne de droite passe dessous en colonnes (masonry), plus de trou sous l'équipe */
@container (max-width:980px){
  .tga-grille>.tga-d{display:block;column-width:300px;column-gap:14px}
  .tga-grille>.tga-d>*{break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 14px;width:100%;box-sizing:border-box}
  .tga-grille>.tga-d{margin-bottom:-14px}
}

/* ════ 29/11 · CHARTE D'ERGONOMIE DU STUDIO ════
   En-tête unique (‹ Accueil, Tournage, la journée avec ‹ ›, Chercher, un bouton), À valider, une seule surface vedette,
   les séquences dans l'ordre de la journée, Fait pour toi replié en bas, mêmes noms sur les trois écrans, tailles minimales. */
.tg{--app-accent:#fafaff}
/* l'en-tête de l'appli */
.tga-app{display:flex;align-items:center;gap:12px;margin:0 0 16px;color:var(--tx)}
.tga-app-r{display:none}
.tga-app-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
body.s3 #view .ecx-page.tg .tga-app h1,#view .ecx-page.tg .tga-app h1{margin:0;font-size:32px!important;font-weight:680!important;letter-spacing:-.03em!important;line-height:1.1!important}
.tga-app-c{display:flex;align-items:center;gap:4px;min-height:32px;margin-left:-6px}
.tga-app-v{font-size:14px;color:var(--tx2);margin-left:6px}
.tga-fl{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:16px;border:0;background:none;color:var(--tx2);cursor:pointer}
.tga-fl:hover:not(:disabled){background:rgba(255,255,255,.08);color:var(--tx)}
.tga-fl:disabled{opacity:.3;cursor:default}
.tga-sel{position:relative;display:inline-flex;align-items:center;gap:6px;min-width:0;height:32px;padding:0 8px;border-radius:10px;color:var(--tx2);font-size:14px;font-weight:600;cursor:pointer}
.tga-sel:hover{background:rgba(255,255,255,.06);color:var(--tx)}
.tga-sel>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tga-sel svg{flex:none;opacity:.7}
.tga-sel select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.tga-app-q{flex:0 1 280px;display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:var(--tx3)}
.tga-app-q:focus-within{border-color:rgba(255,255,255,.3);color:var(--tx2)}
.tga-app-q input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;color:var(--tx);font:500 16px/1 system-ui,-apple-system,sans-serif;padding:0;-webkit-appearance:none;appearance:none}
.tga-app-q input::placeholder{color:var(--tx3)}
.tga-app-q input::-webkit-search-cancel-button{filter:invert(1);opacity:.5}
.tga-app-a{flex:none;display:flex}
.tga-app-a:empty{display:none}
.tga-btn.tga-app-b{height:44px;padding:0 18px 0 14px;border-radius:22px;font-size:14px}

/* la rangée du haut : À valider et la journée qui vient */
.tga-haut{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:stretch}
.tga-haut>.tga-av{order:2}.tga-haut>.tga-band{order:1}
.tga-haut.seul{grid-template-columns:minmax(0,1fr)}
/* la seule surface vedette : noir teinté à 8 % de l'accent, bordure 1 px */
.tga-band,.tga-band.passe{background:color-mix(in srgb,var(--app-accent) 8%,#0b0c10)!important;border:1px solid color-mix(in srgb,var(--app-accent) 26%,transparent)!important;box-shadow:none}
.tga-band h2{margin:6px 0 0;font-size:22px;font-weight:650;letter-spacing:-.02em;line-height:1.2;color:var(--tx);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tga-band .tga-band-b{flex-wrap:wrap;justify-content:flex-end}
.tga-etat{font-size:12px}
.tga-etat span{font-size:12px}
.tga-st small,.tga-cam-t small,.tga-tt small,.tga-cal-e,.tga-cal-l,.tga-rep,.tga-ag-n small,.tga-ag-h time,.tga-ag-m time,.tga-pe small,.tga-pl .n,.tga-tuiles-h span,.tga-oui>small,.tga-oui-l small,.tga-note,.tga-conf small,.tga-bar small,.tga-rec,.tga-cam-x small,.tga-ags-n,.tga-pc{font-size:12px!important}
.tga-st-s,.tga-calme{font-size:12px}
.tga-st b.tga-txt.tga-gros{font-size:22px;letter-spacing:-.02em;-webkit-line-clamp:1}
.tga-st.tga-hero{border-radius:0}
.tga-st.tga-hero:hover small{color:var(--app-accent)}
/* les boutons : 44 px, 8 px entre deux voisins */
.tga-btn{height:44px;padding:0 16px;border-radius:22px;font-size:14px}
.tga-btn.rond{width:44px}
.tga-btn.petit{height:36px;padding:0 14px;border-radius:18px;font-size:14px}
@media (pointer:coarse){.tga-btn.petit{height:44px;border-radius:22px}}
.tga-band-b,.tga-vide-b,.tga-cam-g,.tga-av-b{gap:8px}
.tg .tg-lq,.tg .tg-lq.tg-lq-h{height:44px;border-radius:22px;font-size:14px}
.tga-plein-b svg{flex:none}

/* À valider : quoi, pour qui, échéance ; « Ouvrir » à gauche, « Oui » à droite */
.tga-av{display:flex;flex-direction:column;gap:2px;padding:14px 16px}
.tga-av>header{margin:0 0 4px!important}
.tga-av h3{display:flex;align-items:center;gap:8px;font-size:16px!important;font-weight:650!important}
.tga-nb{font-style:normal;display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--app-accent);color:#1b1b21;font-size:12px;font-weight:700;box-sizing:border-box}
.tga-av-l{display:flex;flex-direction:column;gap:8px;padding:10px 0;border-top:1px solid rgba(255,255,255,.07)}
.tga-av-l:first-of-type{border-top:0;padding-top:2px}
.tga-av-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.tga-av-t b{font-size:14px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tga-av-t small{font-size:12px;color:var(--tx3)}
.tga-av-b{display:flex}
.tga-av-b .tga-btn{flex:1}
.tga-btn.oui{border-color:color-mix(in srgb,var(--app-accent) 55%,transparent);color:var(--app-accent)}
.tga-btn.oui:hover{background:color-mix(in srgb,var(--app-accent) 14%,transparent)}
.tga-av-tout{align-self:flex-start;height:36px;font-size:14px;padding:0}

/* les séquences dans l'ordre de la journée, par rangées (fini les colonnes qui mélangent Matin et Soir) */
.tga-tuiles{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;column-width:auto;align-items:start}
.tga-tuiles>.tga-tuile{margin:0!important}
.tga-g>.tga-tuiles{margin-bottom:0!important}
.tga-pl{font-size:14px;height:auto;min-height:44px;padding:4px 0}
.tga-pl .t{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
.tga-tt b{font-size:16px}
.tga-tuile li{min-height:48px}
.tga-tuile footer{padding-top:4px}
.tga-btn.tga-poser{height:44px;padding:0 16px 0 12px;color:var(--tx2);background:rgba(255,255,255,.04)}
.tga-btn.tga-poser:hover{color:var(--tx)}
.tga-poser-f input{height:44px;font-size:16px}
/* la séquence en cours : bordure de l'accent, plus jamais de fond plein clair */
.tga-tuile.on{background:var(--v-f)!important;border-color:color-mix(in srgb,var(--app-accent) 60%,transparent)!important;color:var(--tx)!important;box-shadow:none!important}
.tga-tuile.on .tga-ic{background:color-mix(in srgb,var(--app-accent) 16%,transparent);color:var(--app-accent)}
.tga-tuile.on .tga-tt small,.tga-tuile.on .tga-pc,.tga-tuile.on .tga-pl .n{color:var(--tx3)}
.tga-tuile.on .tga-pc b,.tga-tuile.on .tga-pl{color:var(--tx)}
.tga-tuile.on li{border-color:rgba(255,255,255,.06)}
.tga-tuile.on .tga-j{background:rgba(255,255,255,.08)}.tga-tuile.on .tga-j i{background:var(--app-accent)}
.tga-tuile.on .tga-sw{background:rgba(255,255,255,.13)}.tga-tuile.on .tga-sw i{background:rgba(255,255,255,.78)}
.tga-tuile.on .tga-sw.on{background:#f3f3f6}.tga-tuile.on .tga-sw.on i{background:#07080b}
.tga-tuile.on .tga-plus,.tga-tuile.on .tga-poser{color:var(--tx2)}
.tga-tuile.on li.fait .t{color:var(--tx3);text-decoration-color:rgba(255,255,255,.25)}
.tga-tuile.on .tga-ic.mono{color:var(--app-accent)}
.tga-tuiles-h h2{font-size:16px!important}
.tga-vide b{font-size:16px}.tga-vide small{font-size:14px}
.tga-pointer{border-style:dashed}

/* Fait pour toi : une ligne repliée, en dernier */
.tga-fpt{padding:0;overflow:hidden}
.tga-fpt-l{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 16px;border:0;background:none;color:var(--tx);text-align:left;cursor:pointer;font:inherit}
.tg .tga .tga-fpt-l{background:none;box-shadow:none}
.tga-fpt-l:hover{background:rgba(255,255,255,.03)!important}
.tga-fpt-i{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--app-accent) 14%,transparent);color:var(--app-accent)}
.tga-fpt-l>b{flex:none;font-size:14px;font-weight:620}
.tga-fpt-r{flex:1;min-width:0;font-size:14px;color:var(--tx2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tga-fpt-l>svg{flex:none;color:var(--tx3)}
.tga-fpt-c{padding:0 16px 14px;border-top:1px solid rgba(255,255,255,.06)}
.tga-fpt-c .tga-ag:first-child{border-top:0}
.tga-fpt-c>.tga-lien{margin-top:8px;height:36px;font-size:14px}
.tga-ag-m span{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical;line-height:1.4}
.tga-conf b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tga-ag-m{font-size:14px}

/* Journées : une journée passée jamais pointée se pointe ou se range */
.tg-jr-l{display:flex;align-items:center;gap:8px;border-top:1px solid rgba(255,255,255,.06)}
.tg-jr-l:first-child{border-top:0}
.tg-jr-l>.tg-jr{flex:1;min-width:0;border-top:0}
.tg-jr-a{flex:none;display:flex;gap:8px;padding-right:12px}
.tg-jr-np{color:var(--app-accent)!important;font-weight:600}
.tg-jr-arch{margin:12px 4px 0;height:44px;font-size:14px}
.tg .tg-h2{margin:0;font-size:22px;font-weight:650;letter-spacing:-.02em;line-height:1.2;color:var(--tx)}
.tg .tg-h .tg-sous{font-size:14px}

/* le rail de l'iPad : même nom que l'ordinateur, sur deux lignes au besoin */
@media (min-width:861px) and (max-width:1180px){
  body.stu-on.lin.rail-on .stu-side[data-mode="projet"] .ecx-nav>button .tg-court{white-space:normal!important;text-align:center;line-height:1.15;max-width:76px!important;font-size:12px!important;hyphens:none;word-break:normal}
}

/* l'ordinateur moyen et l'iPad : la rangée du haut s'empile, À valider d'abord */
@container (max-width:980px){
  .tga-haut{grid-template-columns:minmax(0,1fr)}
  .tga-haut>.tga-av{order:0}
}
@media (max-width:1180px){
  .tga-app-q{flex-basis:220px}
}

/* le téléphone : « ‹ Accueil · Tournage », puis les sous-pages en puces collées sous l'en-tête, fondu à droite */
@media (max-width:767px){
  .tg{padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}
  .tg #tgCorps{margin-top:0!important}
  .tga-app{flex-wrap:wrap;gap:10px 8px;margin:0 0 6px}
  .tga-app-r{display:inline-flex;align-items:center;gap:2px;height:44px;padding:0 10px 0 2px;margin-left:-4px;border:0;border-radius:22px;background:none;color:var(--tx2);font:600 16px/1 system-ui,-apple-system,sans-serif;cursor:pointer}
  .tga-app-r::after{content:"·";margin-left:8px;color:var(--tx3)}
  .tga-app-t{flex:1 1 auto;display:contents}
  .tga-app-t h1{order:0;align-self:center;font-size:22px!important}
  .tga-app-c{order:3;flex:1 1 100%;margin-left:-6px}
  .tga-sel{font-size:14px}
  .tga-app-q{order:4;flex:1 1 auto;min-width:0}
  .tga-app-a{order:5}
  .tga-btn.tga-app-b{padding:0 16px 0 12px}
  .tg .tga-rub{display:flex!important;position:sticky!important;top:57px!important;left:auto;right:auto;height:auto;z-index:40;margin:0 -16px 12px!important;padding:8px 40px 8px 16px!important;gap:8px;overflow-x:auto;scrollbar-width:none;background:rgba(7,8,11,.9);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.07);-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent)}
  .tg .tga-rub button{height:36px;font-size:14px;padding:0 14px}
  .tga-band-b{display:grid!important;grid-template-columns:1fr 1fr;width:100%}
  .tga-band-b>.tga-btn:not(.tga-plein-b):not(.tg-lq){grid-column:1/-1}
  .tg .tg-lq span,.tg .tga-plein-b span{display:inline!important}
  .tg .tg-lq,.tg .tg-lq.tg-lq-h{width:auto!important;padding:0 14px 0 12px!important}
  .tga-fpt-r{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px}
  .tga-st small,.tga-st-s,.tga-calme,.tga-av-t small,.tga-cal-e,.tga-cal-l,.tga-rep,.tga-pe small,.tga-pl .n,.tga-tuiles-h span,.tga-ag-n small,.tga-ag-h time,.tga-ag-m time,.tga-pc,.tga-note,.tga-conf small{font-size:13px!important}
  .tg-jr-l{flex-wrap:wrap}.tg-jr-a{width:100%;padding:0 16px 12px 76px}.tg-jr-a .tga-btn{flex:1}
}
/* tour 2 */
.tga-app-q input,.tg .tga-app-q input:focus{background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;height:100%!important;padding:0!important;margin:0!important}
.tga-court{display:none}
.tga-haut{align-items:start}
.tga-av-l{flex-direction:row;align-items:center;gap:12px}
.tga-av-t{flex:1}
.tga-av-b{flex:none}
.tga-av-b .tga-btn{flex:none}
@container (max-width:980px){ .tga-av-l{padding:10px 0} }
/* l'iPad : un rail de 88 px pour que chaque nom tienne en entier */
@media (min-width:861px) and (max-width:1180px){
  body.stu-on.lin.rail-on:has(#view .tg) .stu-side{width:88px!important;padding-left:4px!important;padding-right:4px!important}
  body.stu-on.lin.rail-on:has(#view .tg) #view{margin-left:120px!important}
  body.stu-on.lin.rail-on:has(#view .tg) .stu-side[data-mode="projet"] .ecx-nav{width:80px!important;align-items:center}
  body.stu-on.lin.rail-on:has(#view .tg) .stu-side[data-mode="projet"] .ecx-nav>button{width:80px!important;padding:6px 0!important}
  body.stu-on.lin.rail-on .stu-side[data-mode="projet"] .ecx-nav>button .tg-court{max-width:78px!important}
}
@media (max-width:767px){
  body.s3 #view .ecx-page.tg .tga-app h1,#view .ecx-page.tg .tga-app h1{font-size:22px!important}
  .tga-app-q{order:4;flex:1 1 0}
  .tga-app-a{order:5}
  .tga-app-b .tga-long{display:none}.tga-app-b .tga-court{display:inline}
  .tga-av-l{flex-direction:column;align-items:stretch;gap:8px}
  .tga-av-b .tga-btn{flex:1}
}
/* tour 3 : la rangée du haut ne garde que la journée sur l'ordinateur ; À valider passe en tête de la colonne de droite */
.tga-haut{grid-template-columns:minmax(0,1fr)!important}
.tga-av.haut{display:none}
.tga-app-a{order:3}.tga-app-q{order:2}
@container (max-width:980px){ .tga-av.haut{display:flex} .tga-av.cote{display:none} }
.tga-av-t small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tga-av-b .tga-btn.petit{padding:0 14px}
@media (max-width:767px){
  .tga-app-r{order:0}.tga-app-t h1{order:1}
  .tga-app-a{order:2;margin-left:auto}
  .tga-app-c{order:3}
  .tga-app-q{order:4;flex:1 1 100%}
  .tga-av-l{flex-direction:row!important;align-items:center!important;gap:10px!important}
  .tga-av-b .tga-btn{flex:none!important}
}
/* téléphone : les puces restent collées sous l'en-tête en défilant (« hidden » sur #view et body empêchait tout « sticky » ; « clip » coupe pareil sans créer de défilement) */
@media (max-width:767px){
  body:has(#view > .tg),#view:has(> .tg){overflow-x:clip!important;overflow-y:visible!important}
  .tga-st-s{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35}
}
@media (max-width:767px){
  .tg .tg-h{flex-direction:column;align-items:stretch;gap:12px}
  .tg .tg-h .tg-hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .tg .tg-h .tg-hd .tg-avs{margin-right:auto}
  .tg:has(.tg-dock){padding-bottom:calc(170px + env(safe-area-inset-bottom))!important}
}
.tga .tg-av,.tga-avs .tg-av{font-size:12px!important}
@media (max-width:767px){
  .tga-nb,.tga-etat,.tga-etat span,.tga .tga-lien,.tga-cal-c,.tga .tg-av,.tga-avs .tg-av{font-size:13px!important}
}
@media (pointer:coarse),(max-width:767px){
  .tga-fl{width:44px;height:44px;border-radius:22px}
  .tga-app-c{min-height:44px}.tga-sel{height:44px}
  .tga .tga-lien{min-height:44px}
  .tga-carte>header .tga-lien{margin:-9px 0}
}
@media (max-width:767px){
  .tg .tga-rub{padding:6px 40px 6px 16px!important}
  .tg .tga-rub button{height:44px!important;border-radius:22px!important}
  .tga-app-c{margin:-4px 0 -4px -12px}
}
@media (max-width:1180px) and (min-width:768px){ .tga-app-q{flex:0 1 270px;min-width:250px} }
/* 29/11 : la carte « À valider » commune, aux deux places de l'ancienne (en haut sur écran étroit, à droite sur écran large) */
.tga-haut>.tga-avc{order:2}
.tga-avc.haut{display:none}
@container (max-width:980px){ .tga-avc.haut{display:flex} .tga-avc.cote{display:none} }

/* ── LES AUTORISATIONS (01/12/2026) · le QR code en grand à gauche (fond blanc, lisible à deux mètres), à droite le compteur et
   la liste des signatures ; les réglages repliés sous « Régler ». Sur une tablette en portrait, tout passe en une colonne. ── */
.tga-aut-tete{display:flex;align-items:center;gap:14px}
.tga-aut-q{flex:1;min-width:0;margin:0;display:flex;flex-direction:column;gap:2px}
.tga-aut-q b{font-size:17px;font-weight:620;letter-spacing:-.01em;overflow-wrap:anywhere}
.tga-aut-q small{font-size:10.5px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--tga)}
.tga-aut-q span{color:var(--tx2);font-size:13px;line-height:1.4}
.tga-aut-note{margin:0;padding:11px 14px;border-radius:14px;background:var(--tga-f);border:1px solid rgba(250,250,255,.28);color:var(--tx);font-size:13px;line-height:1.45}
.tga-aut-g{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:14px;align-items:start}
.tga-aut-qr{display:flex;flex-direction:column;align-items:center;gap:14px;padding:20px}
.tga-aut-code{position:relative;display:grid;place-items:center;width:100%;max-width:400px;aspect-ratio:1;padding:6px;border-radius:18px;background:#fff;color:#111}
.tga-aut-code svg{display:block;width:100%;height:100%}
.tga-aut-code .tga-calme{color:#555;text-align:center;padding:0 24px}
.tga-aut-qr.ferme .tga-aut-code svg{opacity:.12}
.tga-aut-voile{position:absolute;inset:auto 0 50%;transform:translateY(50%);text-align:center;font-size:20px;font-weight:650;color:#111}
.tga-aut-scan{margin:0;font-size:18px;font-weight:620;letter-spacing:-.01em;text-align:center}
.tga-aut-b{display:flex;flex-wrap:wrap;gap:10px;width:100%;max-width:400px}
.tga-aut-b .tga-btn{flex:1 1 170px;height:48px;border-radius:24px;font-size:14px}
.tga-aut-b .tga-btn:disabled{opacity:.4;cursor:not-allowed}
.tga-aut-sig{display:flex;flex-direction:column;gap:4px;padding:18px 18px 10px}
.tga-aut-cpt{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.tga-aut-cpt span{flex:1;display:flex;align-items:baseline;gap:9px;font-size:15px;color:var(--tx2)}
.tga-aut-cpt b{font-size:44px;line-height:1;font-weight:650;letter-spacing:-.03em;color:var(--tx);font-variant-numeric:tabular-nums}
.tga-aut-cpt .tga-btn.rond{width:44px;height:44px;border-radius:22px}
.tga-aut-cpt .tga-btn.tourne svg{animation:tgaAutTour .8s linear infinite}
@keyframes tgaAutTour{to{transform:rotate(360deg)}}
.tga-aut-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tga-aut-l li{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 0;border-top:1px solid rgba(255,255,255,.08)}
.tga-aut-n{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tga-aut-n b{font-size:14.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tga-aut-n small{color:var(--tx3);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tga-aut-l time{flex:none;color:var(--tx2);font-size:12.5px;font-variant-numeric:tabular-nums}
.tga-aut-l .tga-btn.petit{flex:none;height:36px;min-width:56px;border-radius:18px}
.tga-aut-sans{flex:none;color:var(--tx3);font-size:12px}
.tga-aut-vide{padding:6px 0 12px}
.tga-aut-msg{padding:22px;display:flex;flex-direction:column;gap:12px}
.tga-aut-msg b{font-size:15px;font-weight:600}
.tga-aut-reg{padding:18px}
.tga-aut-chs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tga-aut-ch{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:600;color:var(--tx2)}
.tga-aut-ch.large{grid-column:1/-1}
.tga-aut-reg>.tga-aut-ch{margin-top:12px}
.tga-aut-ch input,.tga-aut-ch textarea{width:100%;min-height:44px;padding:10px 13px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.35);color:var(--tx);font:400 14px/1.4 system-ui,-apple-system,sans-serif;resize:vertical}
.tga-aut-ch input:focus,.tga-aut-ch textarea:focus{outline:none;border-color:var(--tga);box-shadow:0 0 0 3px var(--tga-f)}
.tga-aut-ch small{font-weight:400;color:var(--tx3)}
.tga-aut-reg footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
.tga-aut-reg footer .tga-calme{margin:0;flex:1 1 220px}
@container (max-width:720px){
  .tga-aut-g{grid-template-columns:minmax(0,1fr)}
  .tga-aut-chs{grid-template-columns:minmax(0,1fr)}
  .tga-aut-tete{flex-wrap:wrap}
}
@media (pointer:coarse){ .tga-aut-ch input,.tga-aut-ch textarea{font-size:16px} }
/* seconde passe (01/12) : les sept pastilles « Documents ouverts » sous le QR code, le lieu et « Me localiser »,
   la ligne qui arrive surlignée une seconde */
.tga-aut-docs{width:100%;max-width:400px;display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.tga-aut-docs>p{margin:0;font-size:10.5px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--tx2)}
.tga-aut-docs>small{font-size:12px;line-height:1.4}
.tga-aut-pas{display:flex;flex-wrap:wrap;gap:8px}
.tga-aut-pa{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 15px;border-radius:22px;border:1px solid rgba(255,255,255,.16);background:transparent;color:var(--tx2);font:600 13px/1 system-ui,-apple-system,sans-serif;cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .12s}
.tga-aut-pa:hover{border-color:rgba(255,255,255,.32);color:var(--tx)}
.tga-aut-pa:active{transform:scale(.96)}
.tga-aut-pa:focus-visible{outline:2px solid var(--tga);outline-offset:2px}
.tga-aut-pa.on{background:var(--tga);border-color:var(--tga);color:#1a1210}
.tga-aut-pa.on svg{stroke:#1a1210}
.tga-aut-pa.attend{background:var(--tga-f);border-color:rgba(250,250,255,.45);color:var(--tx)}
.tga-aut-pa.attend svg{stroke:var(--tga)}
.tga-aut-pa.encours{opacity:.6}
.tga-aut-pa.fait{animation:tgaAutFait .9s ease-out}
@keyframes tgaAutFait{0%{box-shadow:0 0 0 0 rgba(250,250,255,.55)}100%{box-shadow:0 0 0 10px rgba(250,250,255,0)}}
.tga-aut-lieu{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}
.tga-aut-lieu .tga-aut-ch{flex:1 1 260px}
.tga-aut-lieu .tga-btn{height:44px;border-radius:22px;font-size:14px}
.tga-aut-lieu .tga-btn[hidden]{display:none}
.tga-aut-lieu-m{flex:1 0 100%;min-height:0;font-size:12.5px;color:var(--tx2);line-height:1.4}
.tga-aut-lieu-m:empty{display:none}
.tga-aut-l li.neuf{animation:tgaAutNeuf 1s ease-out}
@keyframes tgaAutNeuf{0%{background:rgba(250,250,255,.26)}100%{background:transparent}}
@media (prefers-reduced-motion:reduce){ .tga-aut-l li.neuf,.tga-aut-pa.fait{animation:none} .tga-aut-l li.neuf{background:rgba(250,250,255,.12)} }

/* ── LES CONTRATS DES COMÉDIENS (02/12/2026) · une carte par comédien : son nom, l'état du contrat, les gestes en grands boutons ;
   sous la carte, le QR code ou la fiche de déclaration d'embauche (une ligne par champ, la valeur se copie d'un clic).
   Noir neutre : la seule couleur est celle de l'état. ── */
.tga-ctr{display:flex;flex-direction:column;gap:14px}
.tga-ctr-c{display:flex;flex-direction:column;gap:12px;padding:18px}
.tga-ctr-h{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.tga-ctr-h .tga-aut-n b{font-size:17px;white-space:normal}
.tga-ctr-h .tga-aut-n small{white-space:normal;font-size:13px;color:var(--tx2)}
.tga-ctr-etat{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 13px;border-radius:16px;border:1px solid rgba(255,255,255,.14);font:600 12.5px/1.2 system-ui,-apple-system,sans-serif;color:var(--tx)}
.tga-ctr-etat i{width:8px;height:8px;border-radius:50%;background:var(--tx3)}
.tga-ctr-etat.comedien i{background:#e1e0da}
.tga-ctr-etat.studio i{background:#6ea8ff}
.tga-ctr-etat.complet i{background:#4cc38a}
.tga-ctr-etat.ferme,.tga-ctr-etat.prepa{color:var(--tx2)}
.tga-ctr-b{display:flex;flex-wrap:wrap;gap:10px}
.tga-ctr-b .tga-btn{height:44px;border-radius:22px;font-size:14px}
.tga-ctr-form{margin:0}
.tga-aut-ch select{width:100%;min-height:44px;padding:10px 13px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.35);color:var(--tx);font:400 14px/1.4 system-ui,-apple-system,sans-serif}
.tga-aut-ch input[type=time],.tga-aut-ch input[type=date]{color-scheme:dark}
.tga-aut-ch[hidden]{display:none}
.tga-ctr-qr{display:flex;flex-direction:column;align-items:center;gap:8px}
.tga-ctr-qr .tga-aut-code{max-width:320px}
.tga-ctr-fiche{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.tga-ctr-une{margin:0;font-size:14px;line-height:1.5;color:var(--tx)}
.tga-ctr-lim{margin:0;display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.14)}
.tga-ctr-lim b{font-size:15px;font-weight:620}
.tga-ctr-lim small{color:var(--tx2);font-size:12.5px}
.tga-ctr-fiche h4{margin:10px 0 0;font-size:10.5px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--tx2)}
.tga-ctr-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tga-ctr-l li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:4px 0;border-top:1px solid rgba(255,255,255,.07)}
.tga-ctr-l li>span{display:flex;flex-direction:column;gap:2px;color:var(--tx2);font-size:13px;min-width:0}
.tga-ctr-l li>span small{color:var(--tx3);font-size:11.5px}
.tga-ctr-l em{font-style:normal;color:var(--tx3);font-size:13px}
.tga-ctr-v{display:inline-flex;align-items:center;gap:8px;min-height:40px;max-width:62%;padding:0 12px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--tx);font:600 14px/1.3 system-ui,-apple-system,sans-serif;text-align:right;cursor:copy;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.tga-ctr-v:hover{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.05)}
.tga-ctr-v svg{flex:none;opacity:.55}
.tga-ctr-acc{margin-top:2px}
.tga-ctr-voile{--tx:#f3f3f6;--tx2:#a3a7b0;--tx3:#757a84;position:fixed;inset:0;z-index:9000;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.72)}
.tga-ctr-sig{width:min(560px,100%);display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:20px;background:#121316;border:1px solid rgba(255,255,255,.12);color:var(--tx)}
.tga-ctr-sig h3{margin:0;font-size:18px;font-weight:620}
.tga-ctr-pad{border-radius:16px;overflow:hidden;background:#f4f1ea}
.tga-ctr-pad canvas{display:block;width:100%;height:220px;touch-action:none;cursor:crosshair}
.tga-ctr-sig .tga-ctr-b{justify-content:flex-end}
.tga-ctr-sig .tga-btn:disabled{opacity:.4;cursor:not-allowed}
@media (max-width:700px){ .tga-ctr-v{max-width:58%;font-size:13px} .tga-ctr-b .tga-btn{flex:1 1 auto} }
@media (pointer:coarse){ .tga-aut-ch select{font-size:16px} }
/* contrats, seconde passe (02/12) : documents reçus, recopie à côté du document, fiche de la journée */
.tga-ctr-etat.recopier i{background:#e1e0da}
.tga-ctr-pc{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.tga-ctr-doc{min-height:36px;padding:0 13px;border-radius:18px;border:1px solid rgba(255,255,255,.16);background:none;color:var(--tx);font:500 13px/1.2 system-ui,-apple-system,sans-serif;cursor:pointer}
.tga-ctr-doc.on,.tga-ctr-doc:hover{border-color:rgba(255,255,255,.5)}
.tga-ctr-rc{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px}
.tga-ctr-rc-doc{display:flex;flex-direction:column;gap:10px;min-width:0}
.tga-ctr-rc-v{min-height:320px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:#0c0c0d;display:grid;place-items:center;overflow:hidden}
.tga-ctr-rc-v iframe{width:100%;height:520px;border:0;background:#fff}
.tga-ctr-rc-v img{max-width:100%;max-height:520px;object-fit:contain}
.tga-ctr-sh{margin:26px 0 4px;font:600 12px/1.2 system-ui,-apple-system,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.tga-ctr-sp{margin:0 0 10px}
.tga-ctr-dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:12px 0 0;font-size:13.5px}
.tga-ctr-dl dt{color:var(--tx3)}.tga-ctr-dl dd{margin:0}
@media (max-width:760px){.tga-ctr-rc{grid-template-columns:1fr}.tga-ctr-rc-v iframe{height:420px}}
