/* ==========================================================================
   CBDI 38 — charte V2
   Remplace les anciennes feuilles style.css, perso.css et bootstrap5-compat.css ;
   chargée après Bootstrap 5.

   Sommaire
   1. Variables, couleurs de secteur
   2. Base, typographie, boutons
   3. Bandeau d'infos, en-tête, recherche
   4. Menu : méga-menu (≥ 768 px) et menu mobile (< 768 px)
   5. Mise en page : bandeau de titre, colonnes
   6. Accueil
   7. Cartes, aperçus, tuiles, documents, portfolio
   8. Article, contenu SPIP
   9. Colonne de droite
   10. Formulaires, contact, recherche, plan, pagination
   11. Pied de page
   12. Reprises de bootstrap5-compat.css, impression
   ========================================================================== */

/* 1. Variables, couleurs de secteur
   ------------------------------------------------------------------------ */
:root {
	--nuit: #0F2240;
	--ardoise: #1A3358;
	--ardoise-filet: #2D4A75;
	--jaune: #F2C200;
	--jaune-doux: #FFF4C7;
	--rouge: #C8102E;
	--sable: #F4F1E8;
	--filet: #E2DCC8;
	--filet-clair: #EEE9DA;
	--encre: #14213A;
	--gris: #5A6478;
	--blanc: #FFFFFF;
	--titres: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--texte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--largeur: 1200px;
	--rayon: 10px;
	/* couleur du secteur courant (bleu nuit par défaut) */
	--sect: var(--nuit);
	--sect-doux: #E9ECF2;
}

/* Grandes largeurs : le contenu s'élargit au lieu de rester à 1200 px */
@media (min-width: 1500px) { :root { --largeur: 1400px; } }
@media (min-width: 1800px) { :root { --largeur: 1600px; } }

/* Une couleur par secteur (n° de rubrique racine). Un nouveau secteur
   sans ligne ici prend le bleu nuit. Utilisé par les classes sect-N
   (inc_couleur.html) et par les entrées du menu (li.rubN). */
.sect-1,   .v2-header #nav li.rub1   { --sect: #1F4FA8; --sect-doux: #E8EEF9; } /* Notre CBD 38 */
.sect-126, .v2-header #nav li.rub126 { --sect: #5B4B8A; --sect-doux: #EEEBF5; } /* Règlementation */
.sect-2,   .v2-header #nav li.rub2   { --sect: #1B7A43; --sect-doux: #EAF4EE; } /* Jeunes */
.sect-188, .v2-header #nav li.rub188 { --sect: #A3285F; --sect-doux: #F8E9F0; } /* Féminines */
.sect-3,   .v2-header #nav li.rub3   { --sect: #B04A12; --sect-doux: #FBEDE5; } /* Masculins */
.sect-304, .v2-header #nav li.rub304 { --sect: #7A5E12; --sect-doux: #F5EFDC; } /* Documents */
.sect-222, .v2-header #nav li.rub222 { --sect: #4A5568; --sect-doux: #ECEEF2; } /* Archives et galeries */


/* 2. Base, typographie, boutons
   ------------------------------------------------------------------------ */
body {
	margin: 0;
	background: var(--sable);
	color: var(--encre);
	font-family: var(--texte);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--nuit); }
a:hover { color: var(--sect); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 700; color: var(--nuit); line-height: 1.1; }

.v2-wrap {
	max-width: var(--largeur);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}
.v2-skip {
	position: absolute; left: -9999px; top: 0; z-index: 2000;
	background: var(--jaune); color: var(--nuit); padding: 10px 16px; font-weight: 600;
}
.v2-skip:focus { left: 8px; top: 8px; }

.v2-h2 {
	font-size: 28px;
	text-transform: uppercase;
	margin: 40px 0 16px;
	display: flex; align-items: center; gap: 14px;
}
.v2-h2::after {
	content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--sect);
}

.v2-etiquette {
	display: inline-block;
	font-family: var(--titres); font-weight: 700; font-size: 14px;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--sect);
}
.v2-etiquette.is-pleine { color: #fff; background: var(--sect); padding: 3px 9px; border-radius: 3px; }
.v2-surtitre {
	display: block;
	font-size: 13px; font-weight: 600; line-height: 1.3;
	color: #3D4B5F;
	border-left: 3px solid var(--sect);
	padding-left: 8px;
}
.v2-surtitre.is-clair { color: #E3E8F0; border-left-color: var(--jaune); }
.v2-meta { display: block; font-size: 13px; color: var(--gris); }

.v2-badge {
	display: inline-block;
	font-family: var(--titres); font-weight: 700; font-size: 14px;
	letter-spacing: .06em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 3px; line-height: 1.3;
}
.v2-badge.is-une { background: var(--jaune); color: var(--nuit); }
.v2-badge.is-tirage { background: var(--rouge); color: #fff; }
.v2-badge.is-resultat { background: #fff; color: var(--nuit); }

.v2-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.v2-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 0 22px;
	border-radius: 6px; font-weight: 600; text-decoration: none !important;
	border: 1.5px solid transparent; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.v2-btn.is-jaune { background: var(--jaune); color: var(--nuit); }
.v2-btn.is-jaune:hover { background: #FFD633; color: var(--nuit); }
.v2-btn.is-bleu { background: var(--nuit); color: #fff; }
.v2-btn.is-bleu:hover { background: var(--ardoise); color: #fff; }
.v2-btn.is-contour { border-color: var(--nuit); color: var(--nuit); }
.v2-btn.is-contour:hover { background: var(--nuit); color: #fff; }
.v2-btn.is-contour-clair { border-color: #5D7396; color: #fff; }
.v2-btn.is-contour-clair:hover { border-color: #fff; color: #fff; }
.v2-centre { text-align: center; }

/* image absente : motif discret à la place */
.v2-sansimg {
	display: block; width: 100%; height: 100%;
	background: repeating-linear-gradient(135deg, #ECE7D8 0 14px, #E5DFCC 14px 28px);
}
img ~ .v2-sansimg { display: none; }
/* carte sans image : filet de couleur du secteur + introduction */
.v2-carte-img:not(:has(img)) { height: 6px; background: var(--sect); }
.v2-carte-img:not(:has(img)) .v2-sansimg { display: none; }
.v2-carte-intro { display: none; font-size: 15px; color: #3D4B5F; line-height: 1.5; }
.v2-carte:has(.v2-carte-img:not(:has(img))) .v2-carte-intro { display: block; }
/* aperçu sans image : pas de vignette */
.v2-apercu-img:not(:has(img)) { display: none; }


/* 3. Bandeau d'infos, en-tête, recherche
   ------------------------------------------------------------------------ */
.v2-topbar { background: var(--nuit); color: #D5DCE8; font-size: 13px; }
.v2-topbar .v2-wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 7px; padding-bottom: 7px; }
.v2-topbar a { color: #fff; }

.v2-header { background: #fff; border-bottom: 1px solid var(--filet); position: relative; z-index: 40; }
.v2-header-row { display: flex; align-items: center; gap: 16px 24px; padding-top: 12px; padding-bottom: 12px; }
.v2-brand { display: flex; align-items: center; gap: 14px; text-decoration: none !important; margin-right: auto; min-width: 0; }
.v2-brand img { width: auto; height: 76px; object-fit: contain; flex: none; }
@media (max-width: 991.98px) { .v2-brand img { height: 64px; } }
.v2-brand-txt { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.v2-brand-nom { font-family: var(--titres); font-weight: 700; font-size: 26px; color: var(--nuit); text-transform: uppercase; }
.v2-brand-sous { font-size: 13px; color: var(--gris); margin-top: 4px; }

/* Recherche repliable (script-perso.js) : la loupe s'ouvre vers la gauche */
.v2-search { position: relative; width: 44px; height: 44px; flex: none; padding: 0; }
.v2-search .search-form { position: relative; width: 44px; height: 44px; margin: 0; }
.v2-search .search-form fieldset {
	position: absolute; top: 0; right: 0; z-index: 10;
	display: flex; align-items: center; flex-wrap: nowrap;
	width: max-content; height: 44px; margin: 0; padding: 0;
	border: 1px solid var(--filet); border-radius: 22px; background: var(--sable);
	overflow: hidden; box-sizing: border-box;
}
.v2-search .search-form input.search {
	position: static; width: 0; height: 42px; margin: 0; padding: 0;
	border: 0; background: transparent; box-shadow: none; outline: none;
	font: inherit; font-size: 15px; opacity: 0;
	transition: width .25s ease, padding .25s ease, opacity .2s ease;
}
.v2-search .search-form.ouvert input.search { width: min(300px, 60vw); padding: 0 0 0 16px; opacity: 1; }
.v2-search .search-form input.search-submit {
	position: static; float: none; flex: 0 0 42px; width: 42px; height: 42px;
	margin: 0; padding: 11px; border: 0; background: transparent; cursor: pointer;
}


/* 4. Menu
   ------------------------------------------------------------------------ */
.v2-nav { border-top: 1px solid var(--filet-clair); position: relative; }
.v2-header #nav { position: static; padding: 0; margin: 0; background: none; border: 0; min-height: 0; }
.v2-header #nav .navbar-inner,
.v2-header #nav .dl-menuwrapper { position: static; max-width: none; width: 100%; background: none; padding: 0; margin: 0; }
.v2-header #nav ul.menuder li.dl-back { display: none; }

/* Méga-menu : grand écran */
@media (min-width: 768px) {
	.v2-header #nav .dl-trigger { display: none; }
	.v2-header #nav ul.menuder {
		display: flex; flex-wrap: wrap;
		background: none; border-radius: 0; box-shadow: none;
		margin: 0 -12px; padding: 0; width: auto;
		position: static; opacity: 1; transform: none; pointer-events: auto;
	}
	.v2-header #nav ul.menuder::after { display: none; }
	.v2-header #nav ul.menuder > li {
		float: none; position: static; border: 0; list-style: none;
	}
	.v2-header #nav ul.menuder > li > a {
		display: block;
		padding: 12px 12px 9px;
		font-family: var(--titres); font-weight: 600; font-size: 18px;
		letter-spacing: .03em; text-transform: uppercase; line-height: 1.2;
		color: var(--nuit); background: none; text-shadow: none;
		border-bottom: 3px solid transparent; border-radius: 0;
		text-decoration: none;
	}
	.v2-header #nav ul.menuder > li:hover > a,
	.v2-header #nav ul.menuder > li:focus-within > a,
	.v2-header #nav ul.menuder > li.on > a,
	.v2-page-contact .v2-header #nav ul.menuder > li.contact > a {
		color: var(--sect); background: none; border-bottom-color: var(--sect);
	}

	/* panneau : sous-menu de 1er niveau sur toute la largeur */
	.v2-header #nav ul.menuder > li > ul {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		width: auto; margin: 0;
		padding: 28px max(24px, calc((100% - var(--largeur)) / 2 + 24px)) 32px;
		background: #fff; border: 0; border-top: 4px solid var(--sect);
		border-radius: 0; box-shadow: 0 18px 40px rgba(15, 34, 64, .18);
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 10px 32px;
		z-index: 60;
	}
	.v2-header #nav ul.menuder > li:hover > ul,
	.v2-header #nav ul.menuder > li:focus-within > ul { display: grid; }

	.v2-header #nav ul.menuder ul li { float: none; position: static; list-style: none; margin: 0; padding: 0; border: 0; }
	/* colonnes : entrées de 2e niveau */
	.v2-header #nav ul.menuder > li > ul > li > a {
		display: block; padding: 4px 0;
		font-family: var(--titres); font-weight: 700; font-size: 19px; font-style: normal;
		text-transform: uppercase; line-height: 1.15;
		color: var(--nuit) !important; background: none !important;
		box-shadow: none !important; text-shadow: none; border: 0;
	}
	.v2-header #nav ul.menuder > li > ul > li > a:hover,
	.v2-header #nav ul.menuder > li > ul > li.on > a { color: var(--sect) !important; }
	.v2-header #nav ul.menuder a.daddy::after { content: none; }

	/* 3e et 4e niveaux : listés sous leur colonne */
	.v2-header #nav ul.menuder ul ul {
		display: block; position: static; width: auto;
		margin: 4px 0 6px; padding: 0;
		background: none; border: 0; box-shadow: none;
	}
	.v2-header #nav ul.menuder ul ul a {
		display: block; padding: 5px 0;
		font-family: var(--texte); font-weight: 400; font-size: 14px; font-style: normal;
		line-height: 1.35; text-transform: none;
		color: var(--encre) !important; background: none !important;
		box-shadow: none !important; text-shadow: none;
	}
	.v2-header #nav ul.menuder ul ul a:hover,
	.v2-header #nav ul.menuder ul ul li.on > a { color: var(--sect) !important; font-weight: 600; }
	.v2-header #nav ul.menuder ul ul ul { padding-left: 12px; border-left: 2px solid var(--filet); margin-top: 0; }
}

/* Menu mobile (dl-menu) */
@media (max-width: 767.98px) {
	.v2-nav .v2-wrap { padding: 0; }
	.v2-header #nav .dl-trigger {
		display: flex; align-items: center; gap: 10px;
		width: 100%; height: 48px; margin: 0; padding: 0 20px;
		background: var(--nuit); color: #fff; border: 0; border-radius: 0;
		font-family: var(--titres); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .04em;
		text-indent: 0; overflow: visible; position: relative;
	}
	.v2-header #nav .dl-trigger::before { content: "Menu"; order: 2; }
	.v2-header #nav .dl-trigger::after {
		content: ""; position: static; order: 1;
		width: 20px; height: 2px; background: #fff;
		box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
	}
	.v2-header #nav .dl-menuwrapper { position: relative; }
	.v2-header #nav ul.dl-menu,
	.v2-header #nav ul.dl-submenu { background: #fff; box-shadow: 0 16px 30px rgba(15, 34, 64, .2); }
	.v2-header #nav .dl-menuwrapper ul li,
	.v2-header #nav .dl-menuwrapper button.dl-trigger:hover,
	.v2-header #nav .dl-menuwrapper button.dl-trigger.dl-active { background: var(--nuit); }
	.v2-header #nav .dl-menuwrapper ul li { background: #fff; }
	.no-touch .v2-header #nav .dl-menuwrapper li a:hover,
	.no-touch .v2-header #nav .dl-menuwrapper li.active { background: var(--sable); color: var(--sect); }
	.v2-header #nav .dl-menuwrapper li a {
		color: var(--nuit); background: #fff;
		border-bottom: 1px solid var(--filet-clair);
		font-family: var(--titres); font-weight: 600; font-size: 19px; text-transform: uppercase;
		padding: 13px 20px; text-shadow: none;
	}
	.v2-header #nav ul.dl-menu > li > a { border-left: 4px solid var(--sect); }
	.v2-header #nav .dl-menuwrapper li.dl-back > a { background: var(--sable); font-size: 15px; }
	.v2-header #nav .dl-menuwrapper li a::after,
	.v2-header #nav .dl-menuwrapper li.dl-back::after { color: var(--gris); }
	.v2-header #nav ul.menuder li.dl-back { display: block; }
	.v2-brand-nom { font-size: 18px; }
	.v2-brand img { height: 54px; }
	.v2-header #nav .dl-menuwrapper li.dl-back > a { padding-left: 38px; }
	.v2-une-img { flex: 1 1 100%; min-width: 0; max-height: none; }
	.v2-une-img img { max-height: none; }
	.v2-une-row { padding-top: 24px; gap: 28px; }
	.v2-brand-sous { display: none; }
	.v2-topbar .v2-wrap span:first-child { display: none; }
}


/* 5. Mise en page : bandeau de titre, colonnes
   ------------------------------------------------------------------------ */
.v2-bandeau { background: #fff; border-bottom: 1px solid var(--filet); border-top: 4px solid var(--sect); }
.v2-bandeau .v2-wrap { padding-top: 22px; padding-bottom: 26px; }
.v2-bandeau h1 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 52px); }
.v2-bandeau-desc { margin-top: 8px; color: #3D4B5F; max-width: 720px; }
.v2-bandeau.is-plein { background: var(--sect); border-top: 0; border-bottom: 0; color: #fff; }
.v2-bandeau.is-plein .v2-wrap { padding-bottom: 52px; }
.v2-bandeau.is-plein h1 { color: #fff; font-size: clamp(40px, 7vw, 64px); text-transform: uppercase; }
.v2-bandeau.is-plein .v2-bandeau-desc { color: rgba(255, 255, 255, .88); }
.v2-bandeau.is-plein .v2-ariane ol, .v2-bandeau.is-plein .v2-ariane a { color: rgba(255, 255, 255, .9); }

.v2-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 14px; color: var(--gris); }
.v2-ariane li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.v2-ariane a { color: var(--gris); }
.v2-ariane a:hover { color: var(--sect); }
.v2-bandeau.is-plein .v2-ariane a:hover { color: #fff; }

.v2-cols {
	display: flex; flex-wrap: wrap; gap: 40px;
	padding-top: 36px; padding-bottom: 64px;
}
.v2-principal { flex: 999 1 600px; min-width: 0; }
.v2-colonne { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.v2-page-rubrique .v2-bandeau.is-plein + .v2-cols { padding-top: 0; }
.v2-principal > .v2-h2:first-child { margin-top: 0; }
.v2-page-rubrique .v2-bandeau.is-plein + .v2-cols .v2-principal > .v2-tuiles:first-child { margin-top: -26px; }


/* 6. Accueil
   ------------------------------------------------------------------------ */
.v2-une { background: var(--nuit); color: #fff; }
.v2-une-row { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 44px; padding-bottom: 64px; }
.v2-une-art { flex: 999 1 640px; min-width: 0; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.v2-une-img {
	flex: 0 1 48%; min-width: 260px; max-height: 640px;
	border-radius: var(--rayon); overflow: hidden; background: var(--ardoise);
	display: flex; align-items: center; justify-content: center;
}
.v2-une-img img { width: 100%; height: auto; max-height: 640px; object-fit: contain; display: block; }
.v2-une-img .v2-sansimg { min-height: 260px; background: repeating-linear-gradient(135deg, #1A3358 0 14px, #17304F 14px 28px); }
.v2-une-txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.v2-une-txt h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1; }
.v2-une-txt h1 a { color: #fff; text-decoration: none; }
.v2-une-txt h1 a:hover { color: var(--jaune); }
.v2-une-txt p { margin: 0; color: #C9D2E0; font-size: 17px; }
.v2-une-txt { align-self: stretch; }
/* quand le texte passe sous l'image (petite largeur), l'image prend toute la largeur */
.v2-une-art { container-type: inline-size; container-name: une; }
@container une (max-width: 640px) {
	.v2-une-img { flex: 1 1 100%; min-width: 0; max-height: none; }
	.v2-une-img img { max-height: none; }
}
.v2-une-aussi { width: 100%; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--ardoise-filet); }
.v2-une-aussi h2 { margin: 0 0 6px; font-size: 18px; text-transform: uppercase; letter-spacing: .08em; color: var(--jaune); }
.v2-une-aussi ul { list-style: none; margin: 0; padding: 0; }
.v2-une-aussi li a { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--ardoise-filet); color: #fff; text-decoration: none; }
.v2-une-aussi li:last-child a { border-bottom: 0; }
.v2-une-aussi-meta { font-size: 13px; color: #A9B6CB; text-transform: uppercase; letter-spacing: .03em; }
.v2-une-aussi-titre { font-family: var(--titres); font-weight: 600; font-size: 22px; line-height: 1.15; }
.v2-une-aussi li a:hover .v2-une-aussi-titre { color: var(--jaune); }

.v2-tirages { flex: 1 1 320px; min-width: 0; align-self: flex-start; background: var(--ardoise); border-radius: var(--rayon); padding: 24px; box-sizing: border-box; }
.v2-tirages h2 { margin: 0 0 10px; font-size: 24px; text-transform: uppercase; letter-spacing: .04em; color: var(--jaune); }
.v2-tirages ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 28px; }
.v2-tirages li a { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--ardoise-filet); color: #fff; text-decoration: none; }
.v2-tirages li a:hover .v2-tirages-titre { color: var(--jaune); }
.v2-tirages-date { flex: none; width: 50px; text-align: center; font-family: var(--titres); line-height: 1; color: var(--jaune); font-size: 13px; text-transform: uppercase; }
.v2-tirages-date span { display: block; font-size: 30px; font-weight: 700; color: #fff; }
.v2-tirages-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.v2-tirages-titre { font-weight: 600; font-size: 15px; line-height: 1.3; }
.v2-tirages-sect { font-size: 13px; color: #A9B6CB; }
.v2-tirages-plus { display: inline-block; margin-top: 10px; color: var(--jaune); font-weight: 600; }
.v2-tirages-plus:hover { color: #fff; }
@media (min-width: 1500px) {
	.v2-une-img, .v2-une-img img { max-height: 720px; }
	.v2-une-txt h1 { font-size: 64px; }
	.v2-tirages { flex-basis: 380px; }
	.v2-cols { gap: 56px; }
	.v2-colonne { flex-basis: 320px; }
}

.v2-acces { margin-top: -28px; position: relative; z-index: 2; }
.v2-acces-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.v2-acces-list a {
	display: flex; gap: 14px; align-items: center; height: 100%; box-sizing: border-box;
	background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon);
	padding: 18px 20px; text-decoration: none; color: var(--encre);
	transition: border-color .15s, transform .15s;
}
.v2-acces-list a:hover { border-color: var(--nuit); transform: translateY(-2px); color: var(--encre); }
.v2-acces-list strong { display: block; font-weight: 600; line-height: 1.3; }
.v2-acces-list small { display: block; font-size: 13px; color: var(--gris); }
.v2-acces-ico {
	width: 44px; height: 44px; flex: none; border-radius: 22px; background: var(--jaune-doux);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2240' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: 20px;
}

.v2-choisis { padding-top: 48px; }
.v2-choisis .v2-titre-section h2::after { background: var(--jaune); }
/* « À retenir » : bandeau qui défile (js/defile.js) */
.v2-fleches { display: flex; gap: 8px; margin-left: auto; }
.v2-fleches[hidden] { display: none; }
.v2-fleche {
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1.5px solid var(--nuit); background: #fff; color: var(--nuit); cursor: pointer;
	transition: background .15s, color .15s, opacity .15s;
}
.v2-fleche:hover:not(:disabled) { background: var(--nuit); color: #fff; }
.v2-fleche:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.v2-fleche:disabled { opacity: .3; cursor: default; }
.v2-defile {
	list-style: none; margin: 0; padding: 4px 2px 18px;
	display: flex; gap: 20px;
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: thin; scrollbar-color: #C9C1A8 transparent;
	cursor: grab;
}
.v2-defile::-webkit-scrollbar { height: 8px; }
.v2-defile::-webkit-scrollbar-thumb { background: #C9C1A8; border-radius: 4px; }
.v2-defile.is-glisse { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.v2-defile.is-glisse a { pointer-events: none; }
.v2-defile-item { flex: 0 0 280px; scroll-snap-align: start; display: flex; }
.v2-defile-item > .v2-bloc { flex: 1; }
.v2-choisis .v2-bloc-img { height: 200px; overflow: hidden; }
.v2-choisis .v2-bloc-img img { height: 100%; object-fit: cover; object-position: center top; -webkit-user-drag: none; }
.v2-choisis .v2-bloc-intro { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 0; margin: 0 0 16px; }
@media (max-width: 575.98px) { .v2-defile-item { flex-basis: 78%; } }
@media (prefers-reduced-motion: reduce) { .v2-defile { scroll-behavior: auto; } }
.v2-actus { padding-top: 48px; padding-bottom: 64px; }
.v2-titre-section { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.v2-titre-section h2 { margin: 0; font-size: 40px; text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.v2-titre-section h2::after { content: ""; width: 48px; height: 4px; background: var(--rouge); border-radius: 2px; }
.v2-filtres { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v2-filtres a { display: inline-block; padding: 8px 14px; border-radius: 20px; border: 1px solid #D3CCB4; font-size: 14px; font-weight: 500; color: var(--encre); text-decoration: none; background: #fff; }
.v2-filtres a:hover { border-color: var(--sect); color: var(--sect); }

.v2-secteurs { background: #0B1830; color: #fff; }
.v2-secteurs-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.v2-secteurs-carte { flex: 1 1 320px; display: flex; justify-content: center; }
.v2-secteurs-carte img { max-width: 400px; width: 100%; mix-blend-mode: lighten; }
.v2-secteurs-txt { flex: 999 1 420px; min-width: 0; }
.v2-secteurs-txt h2 { color: #fff; font-size: 40px; text-transform: uppercase; margin: 0 0 10px; }
.v2-secteurs-txt p { color: #B8C3D6; max-width: 540px; margin: 0 0 22px; }


/* 7. Cartes, aperçus, tuiles, documents, portfolio
   ------------------------------------------------------------------------ */
.v2-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.v2-carte { background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; transition: border-color .15s, transform .15s; }
.v2-carte:hover { border-color: var(--sect); transform: translateY(-2px); }
.v2-carte-lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none !important; }
.v2-carte-img { display: block; height: 190px; background: var(--sable); overflow: hidden; }
.v2-carte-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.v2-carte-corps { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.v2-carte-titre { font-family: var(--titres); font-weight: 600; font-size: 25px; line-height: 1.1; color: var(--nuit); }
.v2-carte:hover .v2-carte-titre { color: var(--sect); }

.v2-apercus { display: flex; flex-direction: column; gap: 16px; }
.v2-apercu { background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); transition: border-color .15s; }
.v2-apercu:hover { border-color: var(--sect); }
.v2-apercu-lien { display: flex; gap: 20px; padding: 16px; color: inherit; text-decoration: none !important; align-items: flex-start; }
.v2-apercu-img { flex: none; width: 130px; height: 170px; border-radius: 6px; overflow: hidden; background: var(--sable); display: flex; align-items: center; justify-content: center; }
.v2-apercu-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.v2-apercu-corps { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding-top: 2px; }
.v2-apercu-titre { font-family: var(--titres); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--nuit); }
.v2-apercu:hover .v2-apercu-titre { color: var(--sect); }
.v2-apercu-intro { color: #3D4B5F; font-size: 15px; line-height: 1.5; }
.v2-apercu.is-court .v2-apercu-img, .v2-apercu.is-court .v2-apercu-intro { display: none; }
.v2-apercu.is-court .v2-apercu-titre { font-size: 21px; }
@media (max-width: 575.98px) {
	.v2-apercu-img { width: 90px; height: 120px; }
	.v2-apercu-titre { font-size: 22px; }
	.v2-apercu-intro { display: none; }
}

.v2-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 8px; }
.v2-tuile {
	display: flex; flex-direction: column; gap: 6px;
	background: #fff; border: 1px solid var(--filet); border-top: 4px solid var(--sect);
	border-radius: var(--rayon); padding: 18px 20px;
}
.v2-tuile-titre { font-family: var(--titres); font-weight: 700; font-size: 24px; line-height: 1.1; text-transform: uppercase; color: var(--nuit); text-decoration: none; }
.v2-tuile-titre:hover { color: var(--sect); }
.v2-tuile-sous { font-size: 13px; color: var(--gris); }
.v2-tuile-arts { list-style: none; margin: 4px 0 0; padding: 0; }
.v2-tuile-arts a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--filet-clair); color: var(--encre); text-decoration: none; }
.v2-tuile-arts a:hover .v2-tuile-art { color: var(--sect); }
.v2-tuile-art { font-weight: 600; line-height: 1.35; }
.v2-tuile-arts .v2-surtitre { border: 0; padding: 0; color: var(--sect); text-transform: uppercase; letter-spacing: .03em; font-size: 12px; }
.v2-tuile-vide { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--filet-clair); font-size: 14px; color: var(--gris); }
.v2-tuile-plus { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--sect); }

.v2-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-docs.is-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.v2-doc a {
	display: flex; align-items: center; gap: 16px;
	background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon);
	padding: 12px 16px; color: var(--encre); text-decoration: none !important;
	transition: border-color .15s;
}
.v2-doc a:hover { border-color: var(--sect); }
.v2-doc-pastille {
	width: 46px; height: 46px; flex: none; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--titres); font-weight: 700; font-size: 15px; color: #fff; background: #4A5568;
}
.v2-doc-pastille.is-pdf { background: #B3261E; }
.v2-doc-pastille.is-doc { background: #1F4FA8; }
.v2-doc-pastille.is-xls { background: #1B7A43; }
.v2-doc-txt { flex: 1; min-width: 0; }
.v2-doc-titre { display: block; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.v2-doc-desc { display: block; font-size: 13px; color: #3D4B5F; }
.v2-doc-bouton {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	height: 42px; padding: 0 16px; border-radius: 21px;
	background: var(--sable); border: 1px solid #D3CCB4; font-size: 14px; font-weight: 600;
}
.v2-doc-bouton::before {
	content: ""; width: 16px; height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2240' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") no-repeat center / contain;
}
.v2-doc a:hover .v2-doc-bouton { background: var(--jaune); border-color: var(--jaune); }
.v2-docs.is-grille .v2-doc-bouton { display: none; }
@media (max-width: 575.98px) { .v2-doc-bouton { display: none; } }

.v2-portfolio { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.v2-portfolio .portfolio-item { float: none; width: auto; margin: 0; }
.v2-portfolio .portfolio-item a { display: block; border-radius: 8px; overflow: hidden; }
.v2-portfolio .portfolio-item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .2s; }
.v2-portfolio .portfolio-item a:hover img { transform: scale(1.04); }


/* 8. Article, contenu SPIP
   ------------------------------------------------------------------------ */
.v2-article { background: #fff; border: 1px solid var(--filet); border-radius: 12px; padding: 36px 44px 44px; }
@media (max-width: 575.98px) { .v2-article { padding: 22px 18px 28px; } }
.v2-article-tete { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--filet-clair); }
.v2-article-tete .v2-surtitre { font-size: 15px; }
.v2-article-tete h1 { margin: 0; font-size: clamp(34px, 5vw, 50px); line-height: 1.02; }
.v2-article-soustitre { margin: 0; font-size: 19px; color: #3D4B5F; }
.v2-article-desc { font-size: 17px; color: #3D4B5F; margin-bottom: 16px; }
.v2-article-logo { margin-bottom: 20px; }
.v2-article-logo img { border-radius: var(--rayon); }
.v2-chapo { font-size: 19px; line-height: 1.55; font-weight: 500; color: var(--nuit); margin-bottom: 16px; }
/* largeur de lecture limitée pour le texte, pas pour les documents insérés
   (lecteur PDF, vidéo, grandes images, tableaux) qui prennent toute la largeur */
.v2-chapo, .v2-ps { max-width: 720px; }
.v2-texte > p, .v2-texte > ul, .v2-texte > ol, .v2-texte > h2, .v2-texte > h3,
.v2-texte > h4, .v2-texte > blockquote, .v2-texte > dl:not(.spip_documents) { max-width: 720px; }
.v2-texte .media_pdfjs, .v2-texte .media_video, .v2-texte iframe { width: 100%; max-width: none; }
.v2-texte { line-height: 1.65; }
.v2-texte h2, .v2-texte h3, .v2-texte .h3, .v2-texte h3.spip { font-size: 28px; margin: 28px 0 10px; font-weight: 700; }
.v2-texte a, .v2-chapo a, .v2-ps a {
	text-decoration: underline; text-decoration-color: var(--jaune);
	text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.v2-texte img { border-radius: 6px; }
.v2-ps { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--filet-clair); font-size: 15px; color: #3D4B5F; }
.v2-notes { margin-top: 16px; font-size: 14px; color: var(--gris); }
.v2-lien-externe { margin-top: 16px; }
.v2-memes { margin-top: 12px; }
.v2-auteur { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 8px; }
.v2-auteur-logo img { border-radius: var(--rayon); }
.v2-auteur .v2-texte { flex: 1 1 320px; }
.v2-auteur-contact { flex: 1 1 100%; }

/* contenu saisi dans SPIP */
.spip_documents_left { float: left; margin: 0 1.5em .8em 0; }
.spip_documents_right { float: right; margin: 0 0 .8em 1.5em; }
@media (max-width: 1100px) { .spip_documents_left, .spip_documents_right { float: none; margin: 1em 0; } }
.spip_documents_center, dl.spip_documents_center { display: block !important; float: none; text-align: center; margin: .8em auto; }
.spip_doc_titre { font-size: .9em; font-weight: 600; }
.spip_doc_descriptif, dd.spip_doc_credits { font-size: .8em; color: var(--gris); }
.spip_documents a.spip_out { background: transparent !important; text-decoration: none !important; }
table.spip { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
table.spip th, table.spip td { padding: .6em .8em; border-bottom: 1px solid var(--filet); text-align: left; }
table.spip thead th, table.spip tr.row_first th { background: var(--nuit); color: #fff; font-family: var(--titres); font-size: 16px; letter-spacing: .03em; }
table.spip tr.odd, table.spip tr:nth-child(even) { background: #FAF8F2; }
table.spip tr.even { background: #fff; }
blockquote.spip { margin: 1.2em 0; padding: 1em 1.2em; background: var(--sable); border-left: 4px solid var(--sect); border-radius: 0 8px 8px 0; color: var(--encre); }
tt, .spip_code { font-family: ui-monospace, monospace; background: var(--sable); padding: 1px 5px; border-radius: 4px; }
.spip_poesie { background: var(--sable); padding: 1rem; border-radius: 8px; }
hr.spip { border: 0; border-top: 1px solid var(--filet); clear: both; margin: 1.5em 0; }
.spip_surligne { background: var(--jaune-doux); }
.spacer { clear: both; }


/* 9. Colonne de droite
   ------------------------------------------------------------------------ */
.v2-bloc { display: block; background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; color: var(--encre); text-decoration: none !important; }
a.v2-bloc:hover { border-color: var(--sect); }
.v2-bloc-img { display: block; background: var(--sable); }
.v2-bloc-img:empty, .v2-bloc-img:not(:has(img)) { display: none; }
.v2-bloc-art:not(:has(.v2-bloc-img img)) { border-top: 4px solid var(--jaune); }
.v2-bloc-img img { width: 100%; height: auto; display: block; }
.v2-bloc-art .v2-bloc-titre { display: block; padding: 14px 18px 0; font-family: var(--titres); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; color: var(--nuit); }
.v2-bloc-art:hover .v2-bloc-titre { color: var(--sect); }
.v2-bloc-intro { display: block; padding: 6px 18px 16px; font-size: 14px; color: #3D4B5F; line-height: 1.5; }
.v2-bloc-art .v2-bloc-titre:last-child { padding-bottom: 16px; }

.v2-soeurs { padding: 18px 20px 12px; }
.v2-soeurs .v2-bloc-titre { display: block; font-family: var(--titres); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; color: var(--sect); margin-bottom: 6px; text-decoration: none; }
.v2-soeurs ul { list-style: none; margin: 0; padding: 0; }
.v2-soeurs li a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 6px; font-size: 15px; color: var(--encre); text-decoration: none; }
.v2-soeurs li a:hover { background: var(--sable); color: var(--sect); }
.v2-soeurs li a[aria-current] { background: var(--sect-doux); color: var(--sect); font-weight: 600; }


/* 10. Formulaires, contact, recherche, plan, pagination
   ------------------------------------------------------------------------ */
.v2-carte-form { background: #fff; border: 1px solid var(--filet); border-radius: 12px; padding: 32px; }
@media (max-width: 575.98px) { .v2-carte-form { padding: 20px; } }
.formulaire_spip fieldset { border: 0; padding: 0; margin: 0; }
.formulaire_spip ul, .formulaire_spip li { list-style: none; margin: 0; padding: 0; }
.formulaire_spip .editer { margin-bottom: 18px; }
.formulaire_spip label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.formulaire_spip .explication, .formulaire_spip small { font-weight: 400; color: var(--gris); font-size: 13px; }
.formulaire_spip input.text, .formulaire_spip input[type=text], .formulaire_spip input[type=email],
.formulaire_spip input[type=tel], .formulaire_spip input[type=date], .formulaire_spip select, .formulaire_spip textarea {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px;
	border: 1px solid #D3CCB4; border-radius: 8px; background: #fff; font: inherit; color: var(--encre);
}
.formulaire_spip textarea { min-height: 160px; resize: vertical; }
.formulaire_spip input:focus, .formulaire_spip select:focus, .formulaire_spip textarea:focus { outline: 3px solid var(--jaune-doux); border-color: var(--nuit); }
.formulaire_spip .boutons { text-align: left; margin-top: 8px; }
.formulaire_spip .boutons .submit, .formulaire_spip input.submit, .formulaire_formidable .boutons .submit {
	min-height: 48px; padding: 0 28px; border: 0; border-radius: 6px;
	background: var(--nuit); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.formulaire_spip .boutons .submit:hover, .formulaire_formidable .boutons .submit:hover { background: var(--ardoise); }
.formulaire_formidable legend { width: auto; font-family: var(--titres); font-size: 22px; }
.erreur_message { display: block; color: var(--rouge); font-size: 14px; margin-top: 4px; }
.reponse_formulaire { margin: 0 0 1em; padding: 12px 16px; border-radius: 8px; }
.reponse_formulaire_ok { background: #EAF4EE; color: #1B5E36; }
.reponse_formulaire_erreur { background: #FBE9EC; color: #9B0D23; }

.v2-secretariat { background: var(--nuit); color: #fff; border-radius: 12px; padding: 26px; }
.v2-secretariat h2 { margin: 0 0 16px; color: var(--jaune); font-size: 24px; text-transform: uppercase; }
.v2-secretariat a { color: #fff; }
.v2-ligne { margin: 0 0 14px; padding-left: 32px; background-repeat: no-repeat; background-position: 0 3px; background-size: 20px; }
.v2-ligne.is-adresse { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2C200' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.v2-ligne.is-tel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2C200' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.v2-ligne.is-mail { font-size: 14px;  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2C200' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); overflow-wrap: anywhere; }
.v2-permanences { border-top: 1px solid var(--ardoise-filet); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.v2-permanences > span { display: flex; justify-content: space-between; color: #C9D2E0; }

.v2-recherche-form { margin-bottom: 8px; }
.v2-recherche-form fieldset { display: flex; border: 1px solid #D3CCB4; border-radius: 26px; background: #fff; overflow: hidden; padding: 0; margin: 0; max-width: 560px; }
.v2-recherche-form input.search { flex: 1; min-height: 50px; border: 0; padding: 0 20px; font: inherit; outline: none; background: transparent; }
.v2-recherche-form input.search-submit { width: 50px; height: 50px; padding: 14px; border: 0; background: var(--jaune); }
.v2-alerte { background: #fff; border: 1px solid var(--filet); border-left: 4px solid var(--rouge); border-radius: 8px; padding: 14px 18px; }

.v2-plan { columns: 300px; column-gap: 24px; padding-top: 36px; padding-bottom: 64px; }
.v2-plan-secteur { break-inside: avoid; margin-bottom: 24px; display: inline-block; width: 100%; box-sizing: border-box; background: #fff; border: 1px solid var(--filet); border-top: 4px solid var(--sect); border-radius: var(--rayon); padding: 18px 22px; }
.v2-plan-secteur h2 { margin: 0 0 8px; font-size: 24px; text-transform: uppercase; }
.v2-plan-secteur h2 a { color: var(--nuit); text-decoration: none; }
.v2-plan-secteur h2 a:hover { color: var(--sect); }
.v2-plan-secteur ul { margin: 0; padding-left: 16px; font-size: 14px; }
.v2-plan-secteur li { margin: 3px 0; }
.v2-plan-secteur ul ul { border-left: 2px solid var(--filet-clair); padding-left: 12px; margin-left: -6px; list-style: none; }

.v2-pagination { margin-top: 24px; }
.v2-pagination .pagination-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.v2-pagination .pagination-item-label, .v2-pagination .pagination-item a, .v2-pagination .pagination-item span {
	min-width: 44px; height: 44px; padding: 0 14px; box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 22px; border: 1px solid #D3CCB4; background: #fff;
	font-weight: 600; color: var(--nuit); text-decoration: none;
}
.v2-pagination .pagination-item.on .pagination-item-label,
.v2-pagination .pagination-item.active .pagination-item-label { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.v2-pagination .pagination-item a:hover { border-color: var(--nuit); }
.v2-pagination .pagination-item.disabled { display: none; }
.v2-404 { padding-top: 36px; padding-bottom: 64px; }


/* 11. Pied de page
   ------------------------------------------------------------------------ */
.v2-partners { background: #fff; border-top: 1px solid var(--filet); }
.v2-partners .v2-wrap { padding-top: 36px; padding-bottom: 36px; }
.v2-partners-titre { margin: 0 0 20px; text-align: center; font-family: var(--titres); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.v2-partners-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.v2-partners-list a, .v2-partners-list span { display: flex; align-items: center; justify-content: center; height: 64px; padding: 6px 12px; border-radius: 8px; box-sizing: border-box; transition: background .15s; }
.v2-partners-list a:hover { background: var(--sable); }
.v2-partners-list img { max-height: 52px; width: auto; display: block; filter: grayscale(30%); }
.v2-partners-list a:hover img { filter: none; }

.v2-footer { background: var(--nuit); color: #C9D2E0; border-top: 4px solid var(--jaune); font-size: 14px; }
.v2-footer a { color: #C9D2E0; }
.v2-footer a:hover { color: #fff; }
.v2-footer-row { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 40px; padding-bottom: 28px; }
.v2-footer-id { flex: 2 1 320px; display: flex; gap: 16px; align-items: flex-start; line-height: 1.6; }
.v2-footer-id img { width: auto; height: 64px; object-fit: contain; flex: none; }
.v2-footer-nom { font-family: var(--titres); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 4px; }
.v2-footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.v2-footer-titre { font-weight: 600; color: #fff; margin-bottom: 2px; }
.v2-footer-bas { padding-top: 16px; padding-bottom: 20px; border-top: 1px solid #22395E; font-size: 13px; color: #A9B6CB; }

.back-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; padding: 0;
	border: 2px solid #fff; border-radius: 50%;
	background: var(--nuit); color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .3); cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--rouge); }
.back-to-top:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.back-to-top, .v2-carte, .v2-acces-list a, .v2-portfolio img { transition: none; }
}


/* 12. Reprises de bootstrap5-compat.css, impression
   ------------------------------------------------------------------------ */
/* Bootstrap 5 rend les <legend> flottants, ce qui décale le contenu qui suit
   (formulaire de contact Formidable, « écrire à l'auteur »). */
legend { float: none; width: 100%; max-width: 100%; white-space: normal; }
legend + * { clear: none; }

/* Bootstrap 5 active le défilement doux partout : il ralentit les défilements
   faits en JavaScript (pagination ajax de SPIP). */
:root { scroll-behavior: auto; }

/* Impression : seul le contenu de la page, avec le blason et le titre */
@media print {
	*, *::before, *::after { text-shadow: none !important; box-shadow: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.v2-skip, .v2-topbar, .v2-nav, .v2-search, .v2-colonne, .v2-partners, .v2-footer,
	.back-to-top, .v2-filtres, .v2-pagination, .v2-memes, .v2-doc-bouton, .v2-une-aussi { display: none !important; }
	.v2-header { border: 0; }
	.v2-header-row { padding: 0 0 8pt; }
	.v2-bandeau, .v2-bandeau.is-plein { background: #fff !important; color: #000 !important; border: 0; border-bottom: 1px solid #999; }
	.v2-bandeau.is-plein h1, .v2-bandeau.is-plein .v2-ariane ol, .v2-bandeau.is-plein .v2-ariane a { color: #000 !important; }
	.v2-wrap { max-width: none; padding-left: 0; padding-right: 0; }
	.v2-cols { display: block; padding: 12pt 0 0; }
	.v2-article, .v2-carte, .v2-apercu, .v2-tuile, .v2-doc a, .v2-carte-form { border: 1px solid #ccc; break-inside: avoid; }
	.v2-une, .v2-secteurs, .v2-tirages { background: #fff !important; color: #000 !important; }
	.v2-une *, .v2-secteurs *, .v2-tirages * { color: #000 !important; }
	.v2-texte a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
	img, tr, figure { break-inside: avoid; }
	p, h2, h3 { orphans: 3; widows: 3; }
	h2, h3 { break-after: avoid; }
}
