@charset "UTF-8";

/*
	CFDT-SG - nouvelle version : page des informations (www/infos.search.php)
	en-tête (titre, mode d'affichage) - grille (filtres | résultats) - filtres (listes longues : défilement dans le bloc) - barre d'outils
	(période, flash, documents, tri)
	- une information - pages - aucun résultat
*/

/* ---------- en-tête : titre, nombre ; à droite, le mode d'affichage (grandes tuiles Liste / Thèmes) ---------- */
.infos-head { padding: 32px 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.infos-head-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.infos-head-in > div:first-child { display: flex; flex-direction: column; justify-content: center; }
.infos-head h1 { margin-top: 8px; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); letter-spacing: -0.03em; }
.infos-head-sub { max-width: 640px; margin-top: 8px; color: var(--mute); font-size: 1rem; }
/* mode d'affichage : deux tuiles compactes (pictogramme, intitulé, phrase courte), sans grandir le bandeau */
.view-switch { display: grid; flex: none; width: var(--aside); grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); }
.view-switch a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 14px 8px 8px; border-radius: 12px; color: var(--ink-2); transition: background .2s, color .2s; }
.view-switch a:hover { background: var(--bg-soft); color: var(--ink); }
.vs-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); color: var(--ink); transition: background .2s, color .2s; }
.vs-ic .ic { width: 18px; height: 18px; }
.vs-txt { display: flex; flex-direction: column; line-height: 1.3; }
.vs-txt b { color: var(--ink); font-size: .9rem; font-weight: 700; }
.vs-txt small { overflow: hidden; color: var(--mute); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.vs-txt { min-width: 0; }
.view-switch a.is-active { background: var(--ink); }
.view-switch a.is-active .vs-ic { background: var(--orange); color: #FFF; }
.view-switch a.is-active .vs-txt b { color: #FFF; }
.view-switch a.is-active .vs-txt small { color: rgba(255, 255, 255, .65); }
@media (max-width: 860px) {
	.infos-head-in { flex-direction: column; align-items: flex-start; gap: 16px; }
	.view-switch { width: auto; }
}

/* ---------- grille ---------- */
.infos-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 40px; }
@media (max-width: 960px) { .infos-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- filtres ---------- */
.infos-filters { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 961px) { .infos-filters { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; } }
.filter h2 { margin-bottom: 10px; color: var(--mute); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.facet li + li { margin-top: 1px; }
.facet a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: .92rem; line-height: 1.3; transition: background .2s, color .2s; }
.facet a span { flex: 1; min-width: 0; }
.facet a b { color: var(--mute); font-size: .78rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.facet a:hover { background: var(--bg-soft); color: var(--ink); }
.facet a.is-active { background: var(--ink); color: #FFF; font-weight: 600; }
.facet a.is-active b { color: rgba(255, 255, 255, .65); }
.facet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: .8rem; font-weight: 500; line-height: 1.3; transition: border-color .2s, background .2s, color .2s; }
.chip span { color: var(--mute); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { border-color: var(--orange); background: var(--orange); color: #FFF; }
.chip.is-active span { color: rgba(255, 255, 255, .8); }
/* listes longues : hauteur limitée, défilement dans le bloc, fondu et flèche tant qu'il y a une suite */
.scrollbox { position: relative; }
.scrollbox.is-scroll { padding-bottom: 18px; }
.scrollbox.is-scroll > :first-child { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.scrollbox.is-scroll:not(.is-end) > :first-child { -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
.scrollbox-more { position: absolute; bottom: 2px; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink-2); box-shadow: 0 4px 12px rgba(27, 30, 35, .08); transform: translateX(-50%); animation: nudge 1.8s ease-in-out infinite; }
.scrollbox-more:hover { border-color: var(--ink); color: var(--ink); }
@keyframes nudge { 50% { transform: translateX(-50%) translateY(3px); } }

/* ---------- barre d'outils : nombre | période, flash, documents, tri ---------- */
.infos-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-bottom: 14px; background: var(--rule) no-repeat 0 100% / 100% 1px; }	/* trait du contenu (front.css : --rule) */
.infos-tools h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.infos-tools h2 small { color: var(--mute); font-size: .85rem; font-weight: 500; }
.tools-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* ordinateur : nombre et filtres sur une seule ligne (2026-11) */
@media (min-width: 1061px) {
	.infos-tools { flex-wrap: nowrap; }
	.infos-tools h2 { flex: none; white-space: nowrap; }
	.tools-set { flex-wrap: nowrap; gap: 6px; min-width: 0; }
	.tools-set .pill { padding: 0 12px; }
}
@media (min-width: 1061px) and (max-width: 1359px) { .infos-tools h2 small { display: none; } }	/* écran moyen : « sur N » retiré pour garder une ligne */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: .84rem; font-weight: 600; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill .ic { color: var(--mute); transition: color .2s; }
.pill.is-on { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.pill.is-on .ic { color: var(--orange); }
.pill[aria-expanded="true"] { border-color: var(--ink); }
.pill[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }
.sort { position: relative; display: inline-flex; align-items: center; }
.sort > .ic { position: absolute; z-index: 1; left: 12px; color: var(--mute); pointer-events: none; }
.sort .select-btn { height: 36px; padding: 0 12px 0 34px; border-color: transparent; border-radius: 999px; background: var(--bg-soft); font-size: .84rem; font-weight: 600; }
.sort .select-btn:hover, .sort .select.is-open .select-btn { border-color: var(--line); }
.sort .select-list { right: 0; left: auto; }
.sort select:not(.sr) { height: 36px; padding: 0 14px 0 34px; border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: .84rem; font-weight: 600; }

/* panneau qui s'ouvre sous un bouton de la barre */
.pop { position: relative; }
.pop-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 340px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 18px 50px rgba(27, 30, 35, .14); }
.pop-title { margin: 0 0 10px; color: var(--mute); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pop-title + * + .pop-title, .pop-chips + .pop-exact { margin-top: 18px; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pop-exact { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.pop-exact summary { color: var(--ink-2); font-size: .84rem; font-weight: 600; cursor: pointer; }
.pop-exact form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 10px; }
.pop-exact label span { display: block; margin-bottom: 4px; color: var(--mute); font-size: .74rem; }
.pop-exact input { width: 100%; height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; }
.pop-exact .btn { min-height: 36px; padding: 0 12px; }
.pop-clear { display: inline-block; margin-top: 14px; color: var(--mute); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }

/* années : histogramme + curseur à deux poignées */
.years { margin-bottom: 18px; }
.years-bars { display: flex; align-items: flex-end; gap: 3px; height: 56px; padding: 0 9px; }
.years-bars span { flex: 1; height: var(--h); min-height: 2px; border-radius: 3px 3px 0 0; background: var(--line); transition: background .2s; }
.years-bars span.is-in { background: var(--orange); }
.years-range { position: relative; height: 22px; margin-top: -2px; }
.years-range::before { content: ""; position: absolute; top: 10px; right: 9px; left: 9px; height: 3px; border-radius: 3px; background: var(--line); }
.years-range input { position: absolute; inset: 0; width: 100%; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.years-range input::-webkit-slider-thumb { width: 18px; height: 18px; border: 2px solid var(--orange); border-radius: 50%; background: #FFF; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: grab; pointer-events: auto; -webkit-appearance: none; appearance: none; }
.years-range input::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--orange); border-radius: 50%; background: #FFF; cursor: grab; pointer-events: auto; }
.years-range input::-moz-range-track { background: none; }
.years-range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--orange); outline-offset: 2px; }
.years-out { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: .85rem; }
.years-out b { color: var(--ink); font-variant-numeric: tabular-nums; }
.years-out span { color: var(--mute); font-size: .78rem; }

/* ---------- barre des résultats ---------- */
.chips-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0 0; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); font-size: .82rem; font-weight: 600; }
.chip-x:hover { background: #FBE0D2; }
.chips-reset { color: var(--mute); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.chips-reset:hover { color: var(--ink); }

/* ---------- une information ---------- */
.infos-list { margin: 0; padding: 0; list-style: none; }
.info { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.info .thumb { aspect-ratio: 4 / 3; }
.info-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.info-body .tags a.tag:hover { background: color-mix(in srgb, var(--tag) 18%, #FFF); }
.info h3 { font-size: 1.12rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; }
.info h3 a { transition: color .2s; }
.info h3 a:hover { color: var(--orange-dark); }
.info mark { padding: 0 2px; border-radius: 3px; background: #FFE8A3; color: inherit; }
.info .excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink-2); font-size: .92rem; }
.info-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--mute); font-size: .8rem; }
.info-meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 3px -10px; border-radius: 50%; background: var(--line); vertical-align: middle; }
.info-cats a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.info-cats a:hover { color: var(--orange-dark); text-decoration-color: currentColor; }
.info-docs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.info-docs a { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: .8rem; font-weight: 500; transition: border-color .2s, background .2s; }
.info-docs a span { overflow: hidden; max-width: 280px; text-overflow: ellipsis; white-space: nowrap; }
.info-docs a em { color: var(--mute); font-size: .7rem; font-style: normal; font-weight: 600; }
.info-docs a .ic { color: var(--orange); }
.info-docs a:hover { border-color: var(--ink); background: var(--bg-soft); }
.info-docs .info-docs-more { border-style: dashed; color: var(--mute); }
.info-docs a.is-loading { opacity: .6; cursor: progress; }
/* vidéos : même pastille que les documents, vignette et bouton lecture */
.info-docs .is-video { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.info-docs .is-video > span:not(.vid-thumb) { overflow: hidden; max-width: 240px; text-overflow: ellipsis; white-space: nowrap; }
.info-docs .is-video em { color: var(--mute); font-size: .7rem; font-style: normal; font-weight: 600; }
.info-docs .is-video:hover { border-color: var(--ink); background: var(--bg-soft); }
.vid-thumb { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 26px; overflow: hidden; border-radius: 6px; background: #1B1E23 var(--img) center / cover no-repeat; color: #FFF; }
.vid-thumb::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); transition: background .2s; }
.vid-thumb .ic { position: relative; width: 12px; height: 12px; }
.vid-thumb.is-plain { background: var(--orange); }
.vid-thumb.is-plain::before { display: none; }
.is-video:hover .vid-thumb::before { background: rgba(0, 0, 0, .1); }
/* photo agrandie */
.info-media.is-zoom { position: relative; display: block; cursor: zoom-in; }
.info-media .zoom-ic { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(27, 30, 35, .6); color: #FFF; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--ease); }
.info-media.is-zoom:hover .zoom-ic, .info-media.is-zoom:focus-visible .zoom-ic { opacity: 1; transform: none; }
@media (max-width: 640px) {
	.info { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.info .thumb { aspect-ratio: 1; }
}

/* ---------- pages ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; }
.pager-nums { display: flex; align-items: center; gap: 4px; }
.pager-num { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; color: var(--ink-2); font-size: .9rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .2s; }
a.pager-num:hover { background: var(--bg-soft); }
.pager-num.is-current { background: var(--ink); color: #FFF; font-weight: 600; }
.pager-gap { padding: 0 4px; color: var(--mute); }
.pager-step { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .88rem; font-weight: 600; transition: border-color .2s; }
a.pager-step:hover { border-color: var(--ink); }
.pager-step.is-off { opacity: .35; }
@media (max-width: 640px) { .pager-step span { display: none; } }

/* ---------- aucun résultat ---------- */
.infos-empty { margin-top: 32px; padding: 48px 32px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.infos-empty > .ic { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--mute); }
.infos-empty h3 { font-size: 1.15rem; }
.infos-empty p { margin-top: 8px; color: var(--mute); }
.infos-empty .btn { margin: 8px 4px 0; }

/* panneau « Réservées » (militant) : choix en lignes */
.pop-rights .pop-panel { right: 0; left: auto; width: 290px; padding: 14px; }
.pop-opts { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pop-opts a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); transition: background .15s; }
.pop-opts a:hover { background: var(--bg-soft); }
.pop-opts a.is-on { background: var(--orange-soft); }
.pop-opts a > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; line-height: 1.3; }
.pop-opts b { color: var(--ink); font-size: .88rem; }
.pop-opts small { color: var(--mute); font-size: .76rem; }
.pop-opts a > .ic { color: var(--orange); }
.pop-opt-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #FFF; }
.pop-opts a.is-elected .pop-opt-ic { background: var(--orange-dark); }
