@charset "UTF-8";

/*
	CFDT-SG - nouvelle version : accueil (www/index.php)
	À la une - grille (informations | colonne) - On vous informe - vidéos - colonne de droite (raccourcis, guides, questions, outils, liens)
*/

/* ---------- À la une ---------- */
.hero { padding: 32px 0 0; }
.hero-card { position: relative; overflow: hidden; border-radius: 24px; background: var(--ink); color: rgba(255, 255, 255, .78); }
.hero-slide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 460px; }
.hero-slide.is-active { animation: hero-in .7s var(--ease); }
@keyframes hero-in { from { opacity: 0; } }
.hero-media { position: relative; display: block; }
.hero-media .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: #111; }
.hero-media .thumb::before { opacity: .55; filter: blur(28px) saturate(1.2) brightness(.8); }
.hero-media .thumb img { padding: 28px; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 48px 48px 104px; }
.hero-text .eyebrow { color: var(--sand); }
.hero-text .tag { --tag: #FFF; background: rgba(255, 255, 255, .12); }
.hero-text h2 { color: #FFF; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
.hero-text h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.hero-text h2 a:hover { background-size: 100% 1px; }
.hero-excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: .98rem; line-height: 1.6; }
.hero-meta { margin-top: auto; color: rgba(255, 255, 255, .55); font-size: .82rem; }
.hero-ctrl { position: absolute; right: 48px; bottom: 32px; left: calc(55.5% + 48px); display: flex; align-items: center; gap: 14px; }
.hero-count { color: rgba(255, 255, 255, .55); font-size: .8rem; font-variant-numeric: tabular-nums; }
.hero-count b { color: #FFF; font-weight: 600; }
.hero-bars { display: flex; flex: 1; gap: 6px; }
.hero-bars button { position: relative; flex: 1; height: 20px; padding: 0; border: 0; background: none; }
.hero-bars button::before, .hero-bars span { content: ""; position: absolute; top: 9px; left: 0; height: 2px; border-radius: 2px; }
.hero-bars button::before { right: 0; background: rgba(255, 255, 255, .2); }
.hero-bars span { width: 0; background: #FFF; }
.hero-bars [aria-selected="true"] span { width: 100%; }
.hero.is-playing .hero-bars [aria-selected="true"] span { width: 0; animation: hero-bar var(--hero-delay, 7s) linear forwards; }
.hero.is-paused .hero-bars [aria-selected="true"] span { animation-play-state: paused; }
@keyframes hero-bar { to { width: 100%; } }
.hero-ctrl .icon-btn { border-color: rgba(255, 255, 255, .22); background: transparent; color: #FFF; }
.hero-ctrl .icon-btn:hover { border-color: #FFF; }

@media (max-width: 900px) {
	.hero { padding-top: 16px; }
	.hero-card { border-radius: 18px; }
	.hero-slide { grid-template-columns: 1fr; min-height: 0; }
	.hero-media { aspect-ratio: 16 / 10; }
	.hero-media .thumb img { padding: 16px; }
	.hero-text { padding: 24px 22px 88px; gap: 12px; }
	.hero-excerpt { -webkit-line-clamp: 2; }
	.hero-ctrl { right: 22px; bottom: 22px; left: 22px; }
}

/* ---------- grille de l'accueil ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); gap: 56px; align-items: start; padding-top: 56px; }
@media (max-width: 1080px) { .home-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; } }

.block + .block { margin-top: 64px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.block-head h2 { margin-top: 6px; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); letter-spacing: -0.025em; }

/* ---------- On vous informe ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.lead-text { display: flex; flex-direction: column; gap: 12px; }
.lead h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); line-height: 1.22; letter-spacing: -0.02em; }
.lead h3 a:hover, .news h3 a:hover, .video h3:hover { color: var(--orange-dark); }
.excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: .95rem; }

.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.news { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news .thumb { aspect-ratio: 1; }
.news-text { display: flex; flex-direction: column; gap: 8px; }
.news h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: .98rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; transition: color .2s; }
.lead h3 a, .news h3 a { transition: color .2s; }

@media (max-width: 720px) {
	.lead { grid-template-columns: 1fr; gap: 18px; }
	.news-list { grid-template-columns: 1fr; }
	.news { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
}

/* ---------- vidéos ---------- */
.rail-nav { display: flex; gap: 8px; }
.rail { display: grid; grid-auto-columns: minmax(240px, calc((100% - 40px) / 3)); grid-auto-flow: column; gap: 20px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1081px) { .rail { margin: 0; padding: 0 0 8px; scroll-padding: 0; } }
.video { scroll-snap-align: start; }
.video-media { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); background: var(--ink); }
.video-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.video-media:hover img { transform: scale(1.04); opacity: .85; }
.video-media template { display: none; }
.video-play { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background .2s, color .2s; }
.video-play .ic { width: 22px; height: 22px; margin-left: 3px; }
.video-media:hover .video-play { background: var(--orange); color: #FFF; transform: translate(-50%, -50%) scale(1.06); }
.video-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; }
.video h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .95rem; font-weight: 600; line-height: 1.35; }

.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft); font-size: .92rem; }
.notice > .ic { width: 28px; height: 28px; color: var(--mute); }
.notice p { flex: 1 1 240px; }
.notice b { color: var(--ink); font-weight: 600; }

/* ---------- colonne de droite ---------- */
.home-aside { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1080px) and (min-width: 721px) { .home-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .home-aside .shortcuts { grid-column: 1 / -1; } }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.card-head h2 .ic { color: var(--orange); }
.card-count { min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--mute); font-size: .75rem; font-weight: 600; text-align: center; }
.card-note { padding: 14px 20px 18px; border-top: 1px solid var(--line); color: var(--mute); font-size: .78rem; line-height: 1.5; }
.card-note a { color: var(--orange-dark); font-weight: 600; }

/* raccourcis */
.shortcuts { overflow: hidden; border: 0; background: var(--orange); color: #FFF; }
.shortcut-main { display: flex; align-items: center; gap: 14px; padding: 20px; transition: background .2s; }
.shortcut-main:hover { background: rgba(0, 0, 0, .06); }
.shortcut-main > span:not(.shortcut-ic) { flex: 1; }
.shortcut-main b { display: block; font-size: 1.02rem; font-weight: 650; }
.shortcut-main small { display: block; opacity: .85; font-size: .8rem; line-height: 1.4; }
.shortcut-main > .ic { transition: transform .25s var(--ease); }
.shortcut-main:hover > .ic { transform: translateX(3px); }
.shortcut-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.shortcut-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); border-top: 1px solid rgba(255, 255, 255, .2); }
.shortcut-tiles li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.shortcut-tiles a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; font-size: .78rem; font-weight: 600; text-align: center; transition: background .2s; }
.shortcut-tiles a:hover { background: rgba(0, 0, 0, .08); }
.shortcut-tiles .ic { width: 22px; height: 22px; }

/* guides */
.guides { padding: 0 12px 12px; }
.guide a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; border-radius: 12px; transition: background .2s; }
.guide a:hover { background: var(--bg-soft); }
.guide .thumb.is-portrait { aspect-ratio: 4 / 5; border-radius: 8px; }
.guide b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.35; }
.guide time { display: block; margin-top: 4px; color: var(--mute); font-size: .76rem; }

/* questions fréquentes */
.faq-tools { padding: 0 20px 12px; }
.faq-q { width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-size: .88rem; -webkit-appearance: none; appearance: none; }
.faq-q:focus { border-color: var(--ink); background: var(--bg); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .76rem; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.chip span { color: var(--mute); font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: #FFF; }
.chip.is-active span { color: rgba(255, 255, 255, .65); }
.faq-list { overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), rgba(0, 0, 0, .25)); mask-image: linear-gradient(#000 calc(100% - 28px), rgba(0, 0, 0, .25)); }
.faq-list.is-end { -webkit-mask-image: none; mask-image: none; }
.faq-list .faq-item:last-child { border-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: block; padding: 14px 48px 14px 20px; color: var(--ink); font-size: .88rem; font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; top: 50%; right: 22px; width: 8px; height: 8px; margin-top: -6px; border-right: 1.75px solid var(--mute); border-bottom: 1.75px solid var(--mute); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq-item[open] summary { color: var(--orange-dark); }
.faq-item[open] summary::after { margin-top: -2px; transform: rotate(225deg); }
.faq-item summary:hover { color: var(--orange-dark); }
.faq-a { padding: 0 20px 16px; font-size: .86rem; line-height: 1.6; }
.faq-a p + p, .faq-a ul, .faq-a ol { margin-top: 8px; }
.faq-a ul, .faq-a ol { padding-left: 18px; list-style: revert; }
.faq-a a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.faq-empty { padding: 16px 20px; color: var(--mute); font-size: .86rem; }
.faq-empty a { color: var(--orange-dark); font-weight: 600; }
.faq { padding-bottom: 6px; }

/* outils, liens utiles */
.links { border-top: 1px solid var(--line); }
.links li + li { border-top: 1px solid var(--line); }
.links a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; transition: background .2s; }
.links a:hover { background: var(--bg-soft); }
.links span { flex: 1; min-width: 0; }
.links b { display: block; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.35; }
.links small { display: block; margin-top: 2px; color: var(--mute); font-size: .76rem; line-height: 1.4; }
.links .ic { color: var(--mute); transition: transform .25s var(--ease), color .2s; }
.links a:hover .ic { color: var(--orange); transform: translateX(2px); }
.links .tag.is-new { margin-left: 6px; font-size: .62rem; }
