/*
	CFDT-SG - « Nos lettres » (www/letters.php, www/letters.view.php), 2026-11 : campagnes publiées sur le site
	Liste « kiosque » : en-tête (abonnement à droite : _ui/letters.sub.php, le même sur la lecture), barre (nombre, recherche, Période avec
	années et mois, Réservées, tri), lettres 4 par ligne en feuilles (la lettre en réduction ; cachet du mois en haut à gauche ; ruban « Nouvelle ») ; pages : pages/infos.css.
	Lecture (+ pages/dossier.css, pages/fiche.css) : la lettre dans un cadre blanc, colonne « Nos autres lettres ».
	Vignette faite par le site (pas de contenu lisible) : fond orange, pastille CFDT, « Lettre », la date.
*/

/* ---------- en-tête ---------- */
.lt-head { padding: 34px 0 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }	/* trait plein : fin de l'encart de l'intitulé */
.lt-head-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.lt-h-em { font-style: italic; }
.lt-head h1 { margin-top: 8px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); letter-spacing: -0.03em; }
.lt-head-sub { max-width: 640px; margin-top: 8px; color: var(--mute); font-size: 1rem; }	/* comme les autres pages (.infos-head-sub) */
.lt-sub { display: flex; flex: 0 0 var(--aside); flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; width: var(--aside); padding: 16px 18px; border-radius: 16px; background: var(--orange-soft); }	/* même encart que « Une question sur ce sujet ? » (.dossier-ask) */
.lt-sub.is-done { background: color-mix(in srgb, var(--ok) 10%, #FFF); }
.lt-sub-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #FFF; color: var(--orange); }
.lt-sub.is-done .lt-sub-ic { color: var(--ok); }
.lt-sub > div:not(.lt-sub-btns) { flex: 1; min-width: 0; }
.lt-sub h2 { color: var(--ink); font-size: 1rem; line-height: 1.3; }
.lt-sub p { margin-top: 2px; color: var(--ink-2); font-size: .84rem; }
.lt-sub-btns { display: flex; flex: 1 1 100%; gap: 6px; }
.lt-sub-btns .btn { flex: 1 1 auto; justify-content: center; min-height: 36px; padding: 0 12px; font-size: .8rem; white-space: nowrap; }
.lt-sub-btns .btn.is-quiet { background: #FFF; }
@media (max-width: 1060px) { .lt-head-in { flex-direction: column; align-items: stretch; gap: 20px; } .lt-sub { flex-basis: auto; width: auto; } }

/* ---------- barre : nombre à gauche, filtres à droite (comme les informations) ; reste sous l'en-tête du site ---------- */
.lt-bar { position: sticky; z-index: 30; top: var(--header-h); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }	/* sans trait sur toute la largeur */
.lt-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; background: var(--rule) no-repeat 0 100% / 100% 1px; }	/* comme .infos-tools (aussi sur la lecture, sans pages/infos.css) ; trait du contenu (front.css : --rule) */
.lt-tools h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.lt-tools h2 small { color: var(--mute); font-size: .85rem; font-weight: 500; }
.lt-tools h2 small a { color: var(--orange-dark); font-weight: 600; }
.lt-search { position: relative; width: 260px; }	/* comme la recherche de l'en-tête du site (.search) : loupe à droite */
.lt-search input { width: 100%; height: 36px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--ink); font: inherit; font-size: .86rem; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.lt-search input::placeholder { color: var(--mute); }
.lt-search input:focus { border-color: var(--ink); background: var(--bg); outline: none; }
.lt-search button { position: absolute; top: 3px; right: 3px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background .2s; }
.lt-search button:hover { background: var(--line); }
.lt-bar .pop-panel { z-index: 40; }
/* période : histogramme des mois (une barre par mois), années repérées dessous */
.lt-range { margin-bottom: 18px; }
.lt-range-bars { gap: 1px; }
.lt-range-bars span { border-radius: 2px 2px 0 0; }
.lt-range-bars span.is-jan { box-shadow: -1px 0 0 #fff, -2px 0 0 var(--line); }	/* début d'année */
.lt-range-years { position: relative; height: 16px; margin: 2px 9px 0; }
.lt-range-years span { position: absolute; top: 0; color: var(--mute); font-size: .68rem; font-weight: 600; transform: translateX(-2px); }
.lt-exact { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 10px; }	/* dates précises (comme .pop-exact form) */
.lt-exact label span { display: block; margin-bottom: 4px; color: var(--mute); font-size: .74rem; }
.lt-exact input { width: 100%; height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .84rem; }
.lt-exact .btn { min-height: 36px; padding: 0 12px; }
.lt-wrap { padding-top: 28px; padding-bottom: 72px; }

/* ---------- feuilles ---------- */
.lt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
@media (max-width: 1200px) { .lt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lt-grid { grid-template-columns: minmax(0, 1fr); } }
.lt-card { position: relative; display: flex; flex-direction: column; }
/* le bureau : fond doux, la feuille posée dessus, coupée en bas */
.lt-desk { position: relative; overflow: hidden; padding: 18px 18px 0; border-radius: 16px; background: linear-gradient(160deg, #F4F1EC, #ECE7E0); }
.lt-sheet { position: relative; overflow: hidden; aspect-ratio: 4 / 4.4; border-radius: 6px 6px 0 0; background: #FFF; box-shadow: 0 1px 2px rgba(30, 20, 10, .08), 0 10px 26px rgba(30, 20, 10, .12); transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s; }
.lt-sheet::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 26%; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #FFF 92%); pointer-events: none; }	/* la suite se devine */
.lt-sheet iframe { position: absolute; top: 0; left: 0; max-width: none; height: 1400px; border: 0; background: #FFF; transform-origin: 0 0; pointer-events: none; }
.lt-sheet.is-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lt-sheet.is-cover::after, .lt-sheet.is-gen::after { display: none; }
.lt-card:hover .lt-sheet { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 2px 4px rgba(30, 20, 10, .08), 0 18px 38px rgba(30, 20, 10, .18); }
.lt-stamp { position: absolute; z-index: 2; top: 30px; left: 30px; display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 6px 9px 5px; border: 2px solid #8A8D93; border-radius: 7px; background: rgba(255, 255, 255, .94); color: var(--ink-2); line-height: 1; opacity: .78; transform: rotate(-5deg); box-shadow: 0 2px 8px rgba(30, 20, 10, .10); pointer-events: none; transition: transform .35s cubic-bezier(.2, .7, .3, 1); }	/* cachet : mois et année, encadré, en gris lisible ; en haut à gauche (liste et lecture) */
.lt-stamp::before { content: ""; position: absolute; inset: 2px; border: 1px dashed #C4C2BE; border-radius: 4px; }
.lt-stamp b { position: relative; font-size: .95rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lt-stamp small { position: relative; margin-top: 3px; color: var(--mute); font-size: .62rem; font-weight: 700; letter-spacing: .16em; }
.lt-card:hover .lt-stamp { opacity: .95; transform: rotate(-2deg) scale(1.04); }
.lt-ribbon { position: absolute; z-index: 2; top: 14px; right: -34px; width: 130px; padding: 5px 0; background: var(--orange); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); color: #FFF; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-align: center; text-transform: uppercase; transform: rotate(40deg); }
.lt-body { padding: 14px 4px 0; }
.lt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--mute); font-size: .78rem; }
.lt-body h3 { margin-top: 6px; font-size: 1rem; line-height: 1.32; letter-spacing: -0.005em; }
.lt-body h3 a { transition: color .2s; }
.lt-body h3 a::after { content: ""; position: absolute; inset: 0; }	/* toute la carte se clique */
.lt-card:hover h3 a { color: var(--orange-dark); }
.lt-sum { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--ink-2); font-size: .86rem; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lt-wrap .pager { padding-top: 44px; }

/* vignette faite par le site */
.lt-sheet.is-gen, .lt-mini.is-gen { background: radial-gradient(120% 120% at 100% 0, #F28C4E 0, var(--orange) 45%, #B83F0C 100%); }
.lt-gen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #FFF; text-align: center; }
.lt-gen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); }
.lt-gen img { position: relative; width: 48px; height: 48px; margin-bottom: 6px; object-fit: contain; }
.lt-gen b { position: relative; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.lt-gen small { position: relative; opacity: .85; font-size: .78rem; }

/* ---------- lecture ---------- */
.lt-vtools { min-height: 50px; }
.lt-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: .86rem; font-weight: 600; transition: background .2s; }
.lt-back:hover { background: var(--line); }
.lt-vtools .lt-all { margin-top: 0; }
.lt-vgrid { padding-top: 28px; }
.lt-vhead .eyebrow a { color: inherit; }
.lt-vhead .dossier-meta .tag { margin-left: 2px; }
.lt-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #FFF; box-shadow: 0 10px 30px rgba(20, 20, 30, .05); }
.lt-frame .lt-stamp { top: 18px; left: 18px; }
.lt-frame .lt-ribbon { top: 18px; right: -32px; }
.lt-others .fiche-label { margin-bottom: 4px; }
.lt-others-month { margin-top: 16px; padding-top: 14px; background: var(--rule) no-repeat 0 0 / 100% 1px; }	/* trait du contenu (front.css : --rule) */
.lt-others li.is-current a { margin: 0 -8px; padding-right: 8px; padding-left: 8px; border-radius: 10px; background: var(--bg-soft); }
.lt-others li.is-current + li, .lt-others li + li.is-current { border-top-color: transparent; }
.lt-others small em { color: var(--orange-dark); font-style: normal; font-weight: 600; }
.lt-frame iframe { display: block; width: 100%; height: 900px; border: 0; background: #FFF; }
.lt-vgrid .fiche-foot { margin-top: 22px; }

.lt-others ul { margin: 0; padding: 0; list-style: none; }
.lt-others li + li { border-top: 1px solid var(--line); }
.lt-others a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.lt-mini { position: relative; display: flex; flex: none; align-items: center; justify-content: center; overflow: hidden; width: 64px; height: 44px; border-radius: 10px; background: var(--bg-soft); }
.lt-mini img { width: 100%; height: 100%; object-fit: cover; }
.lt-mini.is-gen img { width: 24px; height: 24px; object-fit: contain; }
.lt-others a > span:last-child { min-width: 0; }
.lt-others b { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color .2s; }
.lt-others small { display: block; color: var(--mute); font-size: .76rem; }
.lt-others a:hover b { color: var(--orange-dark); }
.lt-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--orange-dark); font-size: .86rem; font-weight: 600; }
.lt-chips { padding: 14px 0 0; }	/* filtres actifs (pages/infos.css : .chips-active), même écart que les informations */
.lt-wrap:has(> .lt-chips) { padding-top: 0; }
.lt-chips + .lt-grid { margin-top: 24px; }
