@charset "UTF-8";

/*
	CFDT-SG - nouvelle version : fiche d'une information (www/infos.view.php, _ui/infos.fiche.php)
	page entière - en-tête - accord (état, situation, frise ; aussi dans les listes) - photo - pièces jointes (documents, vidéos) - texte (.prose ; anciens contenus : .is-legacy, styles de Word ou des e-mails neutralisés) - partage
	- panneau ouvert par-dessus la liste des informations (static/front/js/pages/fiche.js)
*/

/* ---------- page entière ---------- */
.fiche-page { max-width: 840px; padding-top: 28px; padding-bottom: 88px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--mute); font-size: .84rem; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; transition: color .2s; }
.crumbs a:hover { color: var(--orange-dark); }

/* ---------- en-tête ---------- */
.fiche { color: var(--ink-2); }
.fiche-head { display: flex; flex-direction: column; gap: 12px; }
.tag.is-mute { --tag: var(--mute); gap: 4px; }
.fiche-title { color: var(--ink); font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; text-wrap: balance; }
.fiche-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--mute); font-size: .86rem; }
.fiche-meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 3px -10px; border-radius: 50%; background: var(--line); vertical-align: middle; }
.fiche-cats a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.fiche-cats a:hover { color: var(--orange-dark); text-decoration-color: currentColor; }

/* ---------- accord : état (pastille), situation à aujourd'hui, renégociation, frise Effet → Renégociation → Échéance (front_agreement()) ----------
   aussi dans les listes (site : .agr-sum ; mobile : frise compacte .agr-bar.is-compact) */
.agr-pill { --c: var(--ok); display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 11%, #FFF); color: var(--c); font-size: .74rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.agr-pill.is-ko { --c: var(--ko); } .agr-pill.is-info { --c: var(--info); } .agr-pill.is-mute { --c: var(--mute); }
.agr-pill .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.agr-pill.is-lg { padding: 6px 14px 6px 11px; font-size: .86rem; }
.agr-pill.is-lg .ic { width: 16px; height: 16px; }
.agr-pill.is-sm { padding: 1px 8px 1px 6px; font-size: .68rem; }
.agr-sit { font-weight: 600; }
.agr-sit.is-ok { color: var(--ok); } .agr-sit.is-info { color: var(--info); } .agr-sit.is-mute { color: var(--mute); }
.agr-term { color: var(--ink-2); }
.agr-ren { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; }
.agr-ren .ic { color: var(--mute); }
.agr-ren.is-warn { padding: 2px 9px; border-radius: 999px; background: #FFF3E0; color: #A85A00; }
.agr-ren.is-warn .ic { color: #E08A00; }
/* liste du site : une ligne sous le titre */
.agr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .82rem; }
.agr-sum > .agr-sit + .agr-term::before { content: "·"; margin-right: 12px; color: var(--line); }

/* fiche : encart */
.agr-card { margin-top: 6px; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.agr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.agr-head p { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; font-size: .92rem; }
.agr-head .agr-ren { margin-left: auto; font-size: .82rem; }
.agr-card .agr-bar { margin-top: 18px; }

/* frise : libellés aux deux bouts ; piste de la couleur de l'état (.is-ok signé, .is-ko refusé, .is-info en négociation, .is-mute archivé ou échu),
   pleine jusqu'à aujourd'hui, en pointillés au-delà (sans échéance : vers ∞) ; l'état est le repère posé sur la piste (.agr-state) */
.agr-bar { --c: var(--ok); display: flex; align-items: center; gap: 12px; }
.agr-bar.is-ko { --c: var(--ko); } .agr-bar.is-info { --c: var(--info); } .agr-bar.is-mute { --c: var(--mute); }
.agr-lbl { display: flex; flex: none; flex-direction: column; color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.agr-lbl small { color: var(--mute); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.agr-lbl.is-end { align-items: flex-end; text-align: right; }
.agr-lbl b { font-size: 1.15rem; line-height: 1; }
.agr-track { position: relative; flex: 1; min-width: 120px; height: 6px; margin: 10px 0; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.agr-fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--now); border-radius: 6px; background: var(--c); }
.agr-bar.is-past .agr-fill { width: 100%; }
.agr-bar.is-future .agr-fill { width: 0; }
.agr-bar.is-open .agr-track { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px) left / 100% 100% no-repeat; }
.agr-bar.is-open .agr-track::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 22%; background: linear-gradient(90deg, transparent, var(--agr-bg, #FFF)); }
.agr-dot { position: absolute; z-index: 1; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid #FFF; border-radius: 50%; background: var(--ink-2); }
.agr-dot.is-warn { background: #E08A00; }
/* l'état, sur la piste : ancré à gauche au début, à droite à la fin, centré entre les deux */
.agr-state { position: absolute; z-index: 2; top: 50%; left: calc(var(--x) * 1%); display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border: 2px solid #FFF; border-radius: 999px; background: var(--c); color: #FFF; font-size: .72rem; font-weight: 700; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); transform: translate(calc(var(--x) * -1%), -50%); }
.agr-state .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.agr-bar.is-compact { gap: 8px; }
.agr-bar.is-compact .agr-lbl { flex-direction: row; align-items: baseline; gap: 4px; font-size: .72rem; }
.agr-bar.is-compact .agr-lbl small { font-size: .6rem; letter-spacing: .04em; }
.agr-bar.is-compact .agr-track { height: 4px; }
.agr-bar.is-compact .agr-state { padding: 2px 8px 2px 6px; font-size: .66rem; }
.agr-renmini { display: inline-flex; flex: none; align-items: baseline; gap: 3px; padding: 1px 7px; border-radius: 999px; background: #FFF3E0; color: #A85A00; font-size: .7rem; font-weight: 700; }
.agr-renmini small { font-size: .6rem; letter-spacing: .03em; text-transform: uppercase; }
.agr-renmini .ic { align-self: center; width: 11px; height: 11px; }
/* liste du site : la frise sous le titre */
.agr-line { --agr-bg: var(--bg-soft); max-width: 560px; padding: 6px 12px; border-radius: 12px; background: var(--bg-soft); }
.agr-card { --agr-bg: var(--bg-soft); }

/* ---------- photo : l'image entière sur un fond flou de la même image ---------- */
.fiche-cover { position: relative; display: flex; justify-content: center; margin-top: 26px; overflow: hidden; border-radius: 18px; background: var(--bg-soft) var(--img) center / cover no-repeat; cursor: zoom-in; isolation: isolate; }
.fiche-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(28px) saturate(1.2); backdrop-filter: blur(28px) saturate(1.2); }
.fiche-cover img { max-height: 380px; width: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(27, 30, 35, .18); }
.fiche-cover .zoom-ic { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(27, 30, 35, .6); color: #FFF; opacity: 0; transition: opacity .2s; }
.fiche-cover:hover .zoom-ic, .fiche-cover:focus-visible .zoom-ic { opacity: 1; }

/* ---------- pièces jointes ---------- */
.fiche-block { margin-top: 28px; }
.fiche-label { display: block; margin: 0 0 10px; color: var(--mute); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.fiche-docs, .fiche-vids { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fiche-docs { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fiche-docs a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.fiche-docs a:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.fiche-docs a.is-loading { opacity: .6; cursor: progress; }
.doc-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); }
.doc-ic.is-locked { background: var(--bg-soft); color: var(--mute); }
.doc-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.doc-txt b { overflow: hidden; color: var(--ink); font-size: .92rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.doc-txt small { color: var(--mute); font-size: .76rem; }
.doc-go { flex: none; color: var(--mute); transition: transform .2s var(--ease), color .2s; }
.fiche-docs a:hover .doc-go { color: var(--ink); transform: translateX(3px); }

.fiche-vids { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.fiche-vids button { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vid-cover { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #1B1E23 var(--img, none) center / cover no-repeat; }
.vid-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35)); transition: background .2s; }
.vid-play { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding-left: 3px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--orange); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .25s var(--ease), background .2s, color .2s; }
.fiche-vids button:hover .vid-play { background: var(--orange); color: #FFF; transform: scale(1.08); }
.vid-txt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vid-txt b { color: var(--ink); font-size: .9rem; font-weight: 600; }
.vid-txt small { color: var(--mute); font-size: .74rem; font-weight: 600; }

/* ---------- texte (éditeur de Cerise) ----------
   contenus récents (collage nettoyé par l'éditeur depuis le 08/11/2026) : la mise en forme choisie est respectée (tailles, couleurs,
   polices de la charte) ; anciens contenus copiés de Word ou d'un e-mail (.is-legacy, repérés par _ui/infos.fiche.php) : polices, tailles,
   interlignes, fonds et largeurs fixes neutralisés (sauf les polices de la charte du client, www/_conf/_cerise.editor.php) */
.prose { margin-top: 30px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.72; overflow-wrap: break-word; }
.prose :where(p, div, section, table, td, th, ul, ol, img, figure, iframe, video) { max-width: 100% !important; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0 0 1em; }
.prose p:empty, .prose p:has(> br:only-child) { display: none; }
.prose :where(h1, h2, h3, h4, h5, h6) { margin: 1.6em 0 .6em; color: var(--ink); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.prose :where(h1, h2) { font-size: 1.4rem; }
.prose :where(h3) { font-size: 1.2rem; }
.prose :where(h4, h5, h6) { font-size: 1.05rem; }
.prose > :first-child, .prose > section:first-child > :first-child { margin-top: 0; }
.prose a { color: var(--orange-dark); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--orange) 40%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose :where(ul, ol) { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--orange); }
.prose img { height: auto !important; margin: 1em auto; border-radius: 12px; }
.prose img[style*="float"] { margin: .3em 1.2em 1em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.prose table { max-width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: .92rem; }
.prose :where(td, th) { padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 600; text-align: left; }
.prose table:has(img) :where(td, th), .prose table[role="presentation"] :where(td, th) { border: 0; padding: 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--orange); color: var(--ink); font-style: italic; }
.prose hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); }
.prose sup { line-height: 0; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }

/* anciens contenus (Word, e-mails) */
.prose.is-legacy :where(p, span, div, td, th, li, font, section, a, strong, b, em, u) { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.prose.is-legacy :where(p, div, section, span)[style*="width"] { width: auto !important; }
.prose.is-legacy :where(span, font, strong, em)[style*="background"] { background: none !important; }
.prose.is-legacy :where(h1, h2, h3, h4, h5, h6) { color: var(--ink) !important; font-family: inherit !important; line-height: 1.3 !important; text-transform: none !important; }
.prose.is-legacy :where(h1, h2) { font-size: 1.4rem !important; }
.prose.is-legacy :where(h3) { font-size: 1.2rem !important; }
.prose.is-legacy :where(h4, h5, h6) { font-size: 1.05rem !important; }
.prose.is-legacy :where(h1, h2, h3, h4, h5, h6) * { font-size: inherit !important; color: inherit !important; }
.prose.is-legacy a { color: var(--orange-dark) !important; }
.prose.is-legacy table { width: 100% !important; height: auto !important; }
.prose.is-legacy :where(td, th) { height: auto !important; }

/* ---------- pied : partage, autres informations ---------- */
.fiche-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share .fiche-label { margin: 0 8px 0 0; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.share-btn.is-icon { width: 36px; padding: 0; }
.share-btn:hover { border-color: var(--ink); color: var(--ink); }
.share-btn.is-done { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, #FFF); color: var(--ok); }

/* ---------- panneau par-dessus la liste ---------- */
html.has-panel { overflow: hidden; }
.panel-shade { position: fixed; inset: 0; z-index: 900; background: rgba(27, 30, 35, .45); opacity: 0; transition: opacity .3s var(--ease); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; display: flex; flex-direction: column; width: min(800px, 100%); background: var(--bg); box-shadow: -24px 0 80px rgba(27, 30, 35, .22); transform: translateX(104%); transition: transform .38s var(--ease); outline: none; }
.panel-shade[hidden], .panel[hidden] { display: none; }
.panel.is-open { transform: none; }
.panel-shade.is-open { opacity: 1; }
.panel-bar { display: flex; flex: none; align-items: center; gap: 6px; height: 60px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); }
.panel-step { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, opacity .2s; }
.panel-step:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.panel-step:disabled { opacity: .35; cursor: default; }
.panel-count { margin-left: 6px; color: var(--mute); font-size: .8rem; font-variant-numeric: tabular-nums; }
.panel-full { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 12px; height: 36px; border-radius: 999px; color: var(--ink-2); font-size: .82rem; font-weight: 600; transition: background .2s, color .2s; }
.panel-full:hover { background: var(--bg-soft); color: var(--ink); }
.panel-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); cursor: pointer; transition: background .2s; }
.panel-close:hover { background: var(--line); }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 34px 44px 56px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.panel-body.is-loading > * { opacity: .35; transition: opacity .2s; }
.panel-load { display: flex; flex-direction: column; gap: 14px; }
.panel-load span { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--bg-soft), #EFEBE6, var(--bg-soft)); background-size: 200% 100%; animation: panel-shine 1.2s linear infinite; }
.panel-load span:nth-child(1) { width: 30%; }
.panel-load span:nth-child(2) { width: 85%; height: 30px; }
.panel-load span:nth-child(3) { width: 45%; }
.panel-load span:nth-child(4) { height: 260px; margin-top: 12px; border-radius: 18px; }
@keyframes panel-shine { to { background-position: -200% 0; } }
@media (max-width: 640px) {
	.panel-body { padding: 24px 18px 48px; }
	.panel-full span { display: none; }
}
/* information ouverte dans le panneau : repère dans la liste */
.info.is-viewed h3 a { color: var(--orange-dark); }
