@charset "UTF-8";

/*
	CFDT-SG - NOUVELLE VERSION DU SITE (refonte 2026-11) : styles communs
	----------------------------------------------------------------------
	Sans gabarit ni bibliothèque. Une page ajoute ses styles dans pages/<page>.css.
	Couleurs de la charte : orange CFDT #E7591C, gris #555554, orange clair #DD8D43.
	Sommaire : réglages - base - mise en page - boutons et éléments - bandeau - en-tête et menu - flash - pied de page - fenêtres
*/

/* ---------- réglages ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--orange:		#E7591C;
	--orange-dark:	#C2470F;	/* texte orange sur fond clair (lisible) */
	--orange-soft:	#FDF0E9;
	--sand:			#DD8D43;
	--ink:			#1B1E23;
	--ink-2:		#3D4046;
	--mute:			#6E7178;
	--line:			#E9E5E0;
	--bg:			#FFFFFF;
	--bg-soft:		#F7F5F2;
	--ok:			#2E7D4F;
	--ko:			#B42318;
	--info:			#1F5FA8;
	--warn:			#9A5B00;

	--font:			"Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap:			1240px;
	--gutter:		clamp(16px, 4vw, 32px);
	--radius:		16px;
	--radius-sm:	10px;
	--shadow:		0 1px 2px rgba(27, 30, 35, .04), 0 8px 24px rgba(27, 30, 35, .06);
	--ease:			cubic-bezier(.2, .7, .2, 1);
	--header-h:		76px;
	/* règle des traits (2026-11) : jusqu'à l'encart de l'intitulé de la page, traits pleins sur toute la largeur (var(--line)) ;
	   ensuite, dans le contenu seulement, un trait plus léger qui s'efface vers la droite : background-image: var(--rule) (classe .rule-b) */
	--rule:			linear-gradient(90deg, #E2DAD0 0, #EDE7E0 55%, rgba(237, 231, 224, 0) 100%);
	--aside:		360px;	/* largeur des colonnes et encarts de droite (accueil, dossiers, choix Liste / Thèmes) */
}

/* ---------- base ---------- */
.rule-b { background-image: var(--rule); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; }	/* trait du contenu, en bas */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--orange); color: #FFF; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 100; top: 8px; left: 8px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #FFF; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-sm { width: 1em; height: 1em; }
.ic-xs { width: .8em; height: .8em; }

/* ---------- mise en page ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; min-height: 50vh; }

/* ---------- boutons et éléments ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--orange); border-radius: 999px; background: var(--orange); color: #FFF; font-size: .9rem; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(2px); }
.btn.is-quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.btn.is-quiet:hover { border-color: var(--ink); background: transparent; }
.btn.is-quiet:hover .ic { transform: none; }
.btn.is-light { border-color: #FFF; background: #FFF; color: var(--ink); }
.btn.is-light:hover { border-color: var(--orange); background: var(--orange); color: #FFF; }
.btn.is-block { width: 100%; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); transition: border-color .2s, color .2s, opacity .2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--orange-dark); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }

.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-dark); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.link-more .ic { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.link-more:hover .ic { transform: translateX(3px); }
.link-more.is-sm { font-size: .8rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { --tag: var(--orange-dark); display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tag) 10%, #FFF); color: var(--tag); font-size: .7rem; font-style: normal; font-weight: 600; letter-spacing: .02em; line-height: 1.6; }
.tag.is-success { --tag: var(--ok); }
.tag.is-danger { --tag: var(--ko); }
.tag.is-info { --tag: var(--info); }
.tag.is-warning { --tag: var(--warn); }
.tag.is-members { --tag: var(--ink); gap: 4px; background: var(--ink); color: #FFF; }
.tag.is-members .ic { width: 12px; height: 12px; color: var(--orange); }
.tag.is-members.is-elected { background: var(--orange-dark); }	/* militants seulement */
.tag.is-members.is-elected .ic { color: #FFF; }
/* « Votre établissement » : l'établissement du contact connecté, partout où les établissements sont listés */
.mine-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #FFF; font-size: .68rem; font-weight: 700; letter-spacing: .01em; line-height: 1.7; white-space: nowrap; vertical-align: middle; }
.mine-tag .ic { width: 11px; height: 11px; color: var(--orange); }
.mine-tag.is-lg { padding: 3px 10px; font-size: .74rem; vertical-align: 3px; }
.tag.is-new { --tag: #FFF; background: var(--orange); vertical-align: 2px; }

.meta { color: var(--mute); font-size: .8rem; }

/* vignette : image entière sur un fond flou de la même image */
.thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: var(--bg-soft); isolation: isolate; }
.thumb::before { content: ""; position: absolute; z-index: -1; inset: -16px; background: var(--img) center / cover no-repeat; filter: blur(16px) saturate(1.15); opacity: .5; }
.thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.thumb.is-logo::before { display: none; }
.thumb.is-logo img { width: 40%; margin: auto; opacity: .9; }
a:hover > .thumb img, a:hover .thumb img { transform: scale(1.03); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }

/* ---------- bandeau ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: .78rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-motto { color: var(--mute); }
.topbar-motto strong { color: var(--ink); font-weight: 600; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); transition: color .2s; }
.topbar-links a:hover { color: var(--orange-dark); }
.topbar-links .ic { width: 1.05em; height: 1.05em; color: var(--mute); }
.topbar-links a:hover .ic { color: inherit; }
.topbar-net + .topbar-net { margin-left: -6px; }
.topbar-net .ic { width: 1.2em; height: 1.2em; }
/* mode privé (contact connecté) : bandeau foncé « Espace adhérent » (www/_ui/page.head.php) */
.topbar.is-private { border-bottom-color: #2B2F36; background: var(--ink); color: rgba(255, 255, 255, .78); }
.topbar.is-private .topbar-links a { color: rgba(255, 255, 255, .78); }
.topbar.is-private .topbar-links a:hover { color: #FFF; }
.topbar.is-private .topbar-links .ic { color: rgba(255, 255, 255, .5); }
.topbar-private { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: rgba(255, 255, 255, .78); }
.topbar-private strong { color: #FFF; font-weight: 700; }
.topbar-private b { color: #FFF; font-weight: 600; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61, 214, 140, .2); }
.topbar-level { padding: 1px 8px; border-radius: 999px; background: var(--orange); color: #FFF; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.topbar-level:empty { display: none; }
.topbar-private a { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: #F7B48C; font-weight: 600; }
.topbar-private a:hover { color: #FFF; }
/* bouton du compte (connecté) : initiales + prénom */
.acct { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.acct:hover, .acct.is-current { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(231, 89, 28, .1); }
.acct-ini { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #FFF; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.acct-ini { position: relative; overflow: hidden; }
.acct-ini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acct-txt { display: flex; flex-direction: column; line-height: 1.15; }
.acct-txt small { color: #A3A6AC; font-size: .58rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }	/* « MON ESPACE » : petit, grisé (09/11/2026) */
.acct-txt b { max-width: 140px; overflow: hidden; font-size: .9rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
/* document réservé, ouvert car connecté */
.doc-open { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, #FFF); color: var(--ok); font-size: .68rem; font-style: normal; font-weight: 700; vertical-align: 1px; }
.doc-open .ic { width: 11px; height: 11px; }

/* ---------- en-tête et menu ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
/* fond porté par un pseudo-élément : un filtre sur .header ferait du menu du téléphone (position fixe) un enfant de l'en-tête */
.header::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #FFF; }	/* fond plein : un fond flouté faisait clignoter le bandeau des informations flash (animé) quand il passait dessous */
.header.is-stuck { box-shadow: 0 6px 24px rgba(27, 30, 35, .05); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { flex: none; }
.brand img { width: auto; height: 58px; }

.nav { display: flex; flex: 1; align-items: center; gap: 24px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: .92rem; font-weight: 500; transition: background .2s, color .2s; }
.nav-link:hover, .nav-item.has-sub:focus-within > .nav-link { background: var(--bg-soft); }
.nav-item.is-current > .nav-link { color: var(--orange-dark); }
.nav-link .ic { transition: transform .2s; }
.nav-link[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-link[aria-expanded="true"] + .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.nav-sub a:hover { background: var(--bg-soft); color: var(--orange-dark); }
/* trois points : outils et simulateurs, liens utiles (www/_ui/page.head.php) ; dans le menu replié : intitulé en clair */
.nav-more > .nav-link { justify-content: center; width: 40px; padding: 0; }
.nav-more > .nav-link .nav-more-ic { width: 20px; height: 20px; transform: none !important; }
.nav-more > .nav-link[aria-expanded="true"] { background: var(--bg-soft); color: var(--orange-dark); }
.nav-more-label, .nav-more-down { display: none; }
.nav-mega { display: grid; grid-auto-columns: 300px; grid-auto-flow: column; gap: 8px 20px; width: max-content; max-height: calc(100vh - var(--header-h) - 40px); padding: 18px 14px 14px; overflow-y: auto; }
.nav-mega-col { min-width: 0; }
.nav-mega-col + .nav-mega-col { padding-left: 20px; border-left: 1px solid var(--line); }
.nav-mega-title { display: flex; align-items: center; gap: 7px; margin: 0 10px 6px; color: var(--orange-dark); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-mega ul + .nav-mega-title { margin-top: 14px; }
.nav-mega a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; }
.nav-mega a b { color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.35; }
.nav-mega a b .tag { margin-left: 4px; }
.nav-mega a small { display: -webkit-box; overflow: hidden; color: var(--mute); font-size: .76rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nav-mega a:hover b { color: var(--orange-dark); }
/* vos démarches : panneau orange doux, tuiles blanches (2026-11) */
.nav-more > .nav-mega { left: 50%; translate: -50% 0; height: min(350px, calc(100vh - var(--header-h) - 40px)); overflow: hidden; align-items: stretch; }	/* 3 colonnes : centré sous les trois points ; hauteur fixe, outils et liens défilent */
.nav-more > .nav-mega > .nav-mega-col:not(.nav-steps) { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; scrollbar-width: thin; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
.nav-more > .nav-mega > .nav-mega-col:not(.nav-steps) .nav-mega-title:first-child { position: sticky; top: 0; z-index: 1; margin-top: 0; padding: 4px 0 6px; background: var(--bg); }
.nav-more > .nav-mega > .nav-steps { overflow-y: auto; }
/* petites flèches des colonnes qui défilent (static/front/js/front.js) : en bas, au centre ; grisées au bout */
.nav-mega-arrows { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; margin-top: 4px; padding: 18px 0 2px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #FFF 55%); }	/* la suite s'efface derrière les flèches */
.nav-mega-arrows[hidden] { display: none; }
.nav-mega-arrows button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); box-shadow: 0 2px 8px rgba(27, 30, 35, .10); color: var(--ink); cursor: pointer; transition: background .2s, opacity .2s; }
.nav-mega-arrows button:first-child .ic { transform: rotate(180deg); }
.nav-mega-arrows button:hover:not(:disabled) { background: var(--orange-soft); color: var(--orange-dark); }
.nav-mega-arrows button:disabled { opacity: .35; cursor: default; }
.nav-more > .nav-mega > .nav-mega-col:has(> .nav-mega-arrows:not([hidden])) { -webkit-mask-image: none; mask-image: none; }	/* avec les flèches : pas de fondu */	/* 3 colonnes : centré sous les trois points, pour rester dans la page */
.nav-mega-col.nav-steps { padding: 12px; border-radius: 16px; background: var(--orange-soft); }
.nav-mega-col.nav-steps + .nav-mega-col { border-left: 0; }
.nav-steps .nav-mega-title { margin: 0 4px 10px; }
.nav-mega .nav-steps-main { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px; border-radius: 12px; background: #FFF; box-shadow: 0 1px 2px rgba(27, 30, 35, .05); transition: box-shadow .2s; }
.nav-steps-main > span:not(.nav-steps-ic) { flex: 1; min-width: 0; }
.nav-steps-main small { -webkit-line-clamp: 1 !important; }
.nav-steps-main > .ic { color: var(--orange); transition: transform .2s; }
.nav-steps-main:hover { box-shadow: 0 6px 16px rgba(231, 89, 28, .14); }
.nav-steps-main:hover > .ic { transform: translateX(3px); }
.nav-steps-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--orange); color: #FFF; }
.nav-mega .nav-steps-main.is-line { padding: 9px 12px; }	/* questions fréquentes : une seule ligne */
.nav-steps-main.is-line .nav-steps-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); }
.nav-steps-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nav-mega .nav-steps-space { flex-direction: row; align-items: center; gap: 8px; margin-top: 8px; padding: 11px 12px; border-radius: 12px; background: var(--ink); color: #FFF; font-size: .86rem; font-weight: 600; transition: background .2s; }	/* mon espace : autre couleur */
.nav-steps-space .ic { flex: none; color: var(--orange); }
.nav-steps-space span { flex: 1; white-space: nowrap; }
.nav-mega .nav-steps-space small { display: block; min-width: 0; color: rgba(255, 255, 255, .65); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }	/* une seule ligne */
.nav-mega .nav-steps-space:hover { background: #2C3038; }
.nav-mega .nav-steps-tiles a { flex-direction: row; align-items: center; gap: 8px; height: 100%; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .75); color: var(--ink); font-size: .82rem; font-weight: 600; line-height: 1.25; transition: background .2s, color .2s; }
.nav-steps-tiles .ic { flex: none; color: var(--orange); }
.nav-mega .nav-steps-tiles a:hover { background: #FFF; color: var(--orange-dark); }

.search { position: relative; flex: 1; max-width: 340px; margin-left: auto; }
.search input { width: 100%; height: 42px; padding: 0 44px 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); font-size: .9rem; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--mute); }
.search input:focus { border-color: var(--ink); background: var(--bg); outline: none; }
.search button { position: absolute; top: 3px; right: 3px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.search button:hover { background: var(--line); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn.is-quiet { border-color: transparent; }
.nav-actions .btn.is-quiet:hover { border-color: var(--line); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); }
.nav-toggle .is-close, .nav-toggle[aria-expanded="true"] .is-open { display: none; }
.nav-toggle[aria-expanded="true"] .is-close { display: block; }

@media (max-width: 1080px) {
	.topbar-motto span { display: none; }
	.nav-toggle { display: inline-flex; }
	.header-in { gap: 16px; min-height: 68px; }
	.brand img { height: 44px; }
	.nav { position: fixed; top: var(--nav-top, 68px); right: 0; bottom: 0; left: 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 20px var(--gutter) 32px; overflow-y: auto; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; order: 2; }
	.nav-item { border-bottom: 1px solid var(--line); }
	.nav-link { width: 100%; height: 54px; padding: 0 4px; border-radius: 0; font-size: 1.05rem; justify-content: space-between; }
	.nav-link:hover, .nav-item.has-sub:focus-within > .nav-link { background: none; }
	.nav-more > .nav-mega { translate: none; height: auto; overflow: visible; }
	.nav-more > .nav-mega > .nav-mega-col:not(.nav-steps) { overflow: visible; -webkit-mask-image: none; mask-image: none; }
	.nav-mega-arrows { display: none !important; }
	.nav-sub { position: static; display: none; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.nav-link[aria-expanded="true"] + .nav-sub { display: block; }
	.nav-mega { width: auto; max-height: none; padding: 0 0 12px; overflow: visible; }
	.nav-link[aria-expanded="true"] + .nav-mega { display: grid; grid-auto-flow: row; grid-auto-columns: auto; }
	.nav-mega-col + .nav-mega-col { padding: 8px 0 0; border-left: 0; }
	.nav-more > .nav-link { justify-content: space-between; width: 100%; padding: 0 4px; }
	.nav-more > .nav-link[aria-expanded="true"] { background: none; color: var(--ink); }
	.nav-more > .nav-link .nav-more-ic { display: none; }
	.nav-more-label, .nav-more-down { display: inline; }
	.search { order: 1; max-width: none; margin: 0; flex: none; }
	.search input { height: 48px; }
	.search button { top: 6px; }
	.nav-actions { order: 3; flex-direction: column; align-items: stretch; }
	.nav-actions .btn { min-height: 48px; }
	.nav-actions .btn.is-quiet { border-color: var(--line); }
	body.nav-lock { overflow: hidden; }
}
@media (max-width: 720px) {
	.topbar-links li:not(.topbar-net) { display: none; }
	.topbar-motto { font-size: .72rem; }
}

/* ---------- informations flash ---------- */
.flash { border-bottom: 1px solid var(--line); background: var(--bg); }
.flash-in { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.flash-label { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; background: var(--ko); color: #FFF; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.flash-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FFF; animation: flash-pulse 1.6s infinite; }
@keyframes flash-pulse { 50% { opacity: .25; } }
.flash-list { position: relative; flex: 1; min-width: 0; height: 24px; overflow: hidden; }
.flash-list li { position: absolute; inset: 0; opacity: 0; transform: translateY(100%); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.flash-list li.is-active { opacity: 1; transform: none; }
.flash-list li.is-out { opacity: 0; transform: translateY(-100%); }
.flash-list a { display: block; overflow: hidden; color: var(--ink); font-size: .92rem; font-weight: 600; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.flash-list a:hover { color: var(--orange-dark); }

/* ---------- pied de page ---------- */
.footer { margin-top: 96px; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .9rem; }
.footer-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand img { width: auto; height: 64px; margin-bottom: 18px; }
.footer-brand p { margin-bottom: 22px; color: #FFF; font-size: 1.15rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.footer h2 { margin-bottom: 16px; color: #FFF; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-col li { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-col li .ic { margin-top: 2px; color: var(--sand); }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #FFF; }
.footer-nets li { margin-bottom: 10px; }
.footer-nets a { display: inline-flex; align-items: center; gap: 10px; }
.footer-legal { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; font-size: .8rem; }
.footer-legal::before { content: ""; position: absolute; top: 0; right: var(--gutter); left: var(--gutter); height: 1px; background: rgba(255, 255, 255, .1); }
.footer-legal ul { display: flex; gap: 22px; }
.footer-legal a, .footer-legal button { padding: 0; border: 0; background: none; color: inherit; transition: color .2s; }
.footer-legal a:hover, .footer-legal button:hover { color: #FFF; }
@media (max-width: 900px) {
	.footer-in { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.footer-in { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- fenêtres (consentement, visionneuse, photo agrandie) ---------- */
.dialog { padding: 0; border: 0; border-radius: 20px; background: var(--bg); color: var(--ink-2); box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
.dialog::backdrop { background: rgba(27, 30, 35, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in .3s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* fenêtre qui défile (2026-11) : en-tête et pied toujours visibles, ombre quand le contenu passe dessous (front.js : is-scrolled, has-more)
	<dialog class="dialog is-sheet"><div class="dlg-scroll">
		<form><header class="dlg-head">pictogramme (.dlg-ic), titre, croix</header><div class="dlg-body">…</div><footer class="dlg-foot">message, boutons</footer></form>
	</div></dialog>   une vue sans en-tête (ex. « C'est enregistré ») : .dlg-done */
.dialog.is-sheet { max-height: calc(100dvh - 40px); overflow: hidden; }
.dlg-scroll { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.dlg-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 24px 64px 14px 32px; transition: box-shadow .2s, background .2s; }
.dlg-head .lg-title, .dlg-head h2 { margin: 0; font-size: 1.3rem; }
.dlg-head .lg-close { top: 50%; transform: translateY(-40%); }
.dlg-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #FFF; box-shadow: 0 8px 18px rgba(231, 89, 28, .25); }
.dlg-ic.is-ok { background: var(--ok); box-shadow: none; }
.dlg-body { padding: 2px 32px 8px; }
.dlg-body > .lg-sub:first-child { margin-top: 0; }
.dlg-foot { position: sticky; bottom: 0; z-index: 5; padding: 14px 32px 22px; background: var(--bg); transition: box-shadow .2s; }
.dlg-foot > .lg-msg { margin-bottom: 12px; }
.dlg-foot > .lg-actions .lg-link { margin-top: 0; }
.is-scrolled .dlg-head { background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 8px 18px rgba(27, 30, 35, .06); }
.has-more .dlg-foot { box-shadow: 0 -1px 0 var(--line), 0 -8px 18px rgba(27, 30, 35, .06); }
.dlg-done { padding: 34px 32px 26px; }

.consent { width: min(560px, calc(100% - 32px)); }
.consent-in { padding: 28px; }
.consent h2 { margin-bottom: 10px; font-size: 1.3rem; }
.consent h2:focus { outline: none; }
.consent p { margin-bottom: 18px; font-size: .9rem; }
.consent-opt { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s; }
.consent-opt:hover { border-color: var(--ink); }
.consent-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
.consent-opt b { display: block; color: var(--ink); font-size: .92rem; font-weight: 600; }
.consent-opt small { color: var(--mute); font-size: .8rem; }
.consent-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; margin-top: 20px; container-type: inline-size; }	/* toujours sur une ligne (2026-11) */
.consent .consent-actions .btn { flex: 0 1 auto; min-width: 0; padding: 0 16px; }
.consent-short { display: none; }
@container (max-width: 470px) { .consent-long { display: none; } .consent-short { display: inline; } }	/* police plus large (Mac, zoom) : « Enregistrer » */
@media (max-width: 520px) { .consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .consent .consent-actions .btn { min-width: 0; padding: 6px; font-size: .8rem; line-height: 1.2; white-space: normal; text-align: center; } .consent-long { display: none; } .consent-short { display: inline; } }	/* les 3 boutons sur une ligne */

.viewer { width: min(960px, calc(100% - 32px)); overflow: visible; background: #000; }
.viewer-body { overflow: hidden; border-radius: 20px; }
.viewer-body video, .viewer-body iframe { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; }
.viewer-close { position: absolute; top: -48px; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #FFF; }
.viewer-close:hover { background: rgba(255, 255, 255, .3); }

/* photo agrandie */
.lightbox { width: auto; max-width: calc(100% - 32px); overflow: visible; background: transparent; box-shadow: none; }
.lightbox figure { display: table; margin: 0 auto; }
.lightbox img { display: block; max-width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 160px); margin: 0 auto; border-radius: 14px; background: #FFF; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); object-fit: contain; }
.lightbox figcaption { display: table-caption; caption-side: bottom; padding-top: 14px; color: #FFF; font-size: .92rem; font-weight: 600; }
.lightbox figcaption span { display: block; margin-bottom: 6px; }
.lightbox .link-more { color: #FFF; }
.lightbox::backdrop { background: rgba(17, 19, 22, .82); }

/* listes déroulantes modernes (static/front/js/front.js : chaque <select> simple) */
.select { position: relative; display: inline-flex; }
.select-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.select-btn:hover { border-color: var(--ink); }
.select-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.select-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-btn .ic { color: var(--mute); transition: transform .25s var(--ease); }
.select.is-open .select-btn .ic { transform: rotate(180deg); }
.select-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; max-height: 300px; margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 18px 50px rgba(27, 30, 35, .14); list-style: none; outline: none; animation: select-in .18s var(--ease); }
@keyframes select-in { from { opacity: 0; transform: translateY(-4px); } }
.select-list [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: .86rem; white-space: nowrap; cursor: pointer; }
.select-list [role=option] .ic { color: var(--orange); visibility: hidden; }
.select-list [role=option].is-cur { background: var(--bg-soft); color: var(--ink); }
.select-list [role=option][aria-selected=true] { color: var(--ink); font-weight: 600; }
.select-list [role=option][aria-selected=true] .ic { visibility: visible; }
.select-list [aria-disabled] { opacity: .45; cursor: default; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.info-docs a .doc-open .ic, .doc-txt .doc-open .ic { color: inherit; }

/* mini-site (14/11/2026) : retour au site national, en tête des liens du bandeau */
.topbar-links .topbar-home a { font-weight: 600; color: var(--orange-dark); }
.topbar-links .topbar-home a:hover { color: var(--ink); }
.topbar-links .topbar-home .ic { width: 14px; height: 14px; }
