/*
Theme Name: ASI France Belgique
Description: Thème d'ASI France Belgique (version 2) : en-tête blanc avec boutons Faire un don et Adhérer, accueil en sections, bas de page bleu. Réglages dans Apparence > Personnaliser > Thème ASI. Les styles des pages viennent de l'extrait WPCode « Refonte ASI » (classes asi-*).
Author: ASI France Belgique
Version: 2.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: asi-france-belgique
*/

/* ---------- Polices (hébergées avec le thème) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/roboto-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/roboto-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/roboto-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/roboto-latin-700-normal.woff2) format("woff2"); }

/* ---------- Couleurs ---------- */
:root {
	--theme-bleu-logo: #28317e;
	--theme-bleu: #165cc9;
	--theme-bleu-fonce: #1b2160;
	--theme-or: #f2b531;
	--theme-or-pale: #fff3d6;
	--theme-fond: #eef1fa;
	--theme-texte: #1f2433;
	--theme-texte-doux: #5b6275;
	--theme-bord: #e3e6ef;
	--theme-largeur: 1180px;
	--theme-rayon: 14px;
	--theme-ombre: 0 10px 30px rgba(25, 31, 86, .1);
	--entete-hauteur: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-hauteur) + 16px); }
body {
	margin: 0;
	background: #fff;
	color: var(--theme-texte);
	font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--theme-bleu); }
a:hover { color: var(--theme-bleu-logo); }
h1, h2, h3, h4, h5, h6 { font-family: inherit; line-height: 1.25; color: var(--theme-bleu-logo); margin: 1.4em 0 .5em; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--theme-bleu); outline-offset: 2px; }
.icone { display: inline-block; flex: none; vertical-align: middle; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.lien-evitement:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 1000;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 16px;
	background: #fff;
	color: var(--theme-bleu-logo);
	font-weight: 700;
}

.conteneur {
	max-width: var(--theme-largeur);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Boutons ---------- */
.bouton, .basic-btn, .btn, .btn-primary, .contenu-texte input[type="submit"], .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1.5px solid var(--theme-bleu-logo);
	border-radius: 999px;
	background: var(--theme-bleu-logo);
	color: #fff !important;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.bouton:hover, .basic-btn:hover, .btn:hover, .btn-primary:hover, .contenu-texte input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--theme-bleu); border-color: var(--theme-bleu); }
.bouton-contour { background: transparent; color: var(--theme-bleu-logo) !important; }
.bouton-contour:hover { background: var(--theme-bleu-logo); border-color: var(--theme-bleu-logo); color: #fff !important; }
.bouton-or { background: var(--theme-or); border-color: var(--theme-or); color: #1b1f3b !important; }
.bouton-or:hover { background: #ffc94d; border-color: #ffc94d; }
.bouton-contour-clair { background: transparent; border-color: rgba(255, 255, 255, .8); }
.bouton-contour-clair:hover { background: #fff; border-color: #fff; color: var(--theme-bleu-logo) !important; }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.lien-fleche .icone { width: 18px; height: 18px; transition: transform .2s; }
.lien-fleche:hover .icone { transform: translateX(3px); }
.etiquette { display: inline-block; padding: 5px 10px; border-radius: 6px; background: var(--theme-or-pale); color: #8a5a00; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- En-tête ---------- */
.site-entete {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--theme-bord);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .site-entete { top: 32px; }
.entete-interieur { display: flex; align-items: center; gap: 28px; min-height: var(--entete-hauteur); }
.site-logo { flex: none; }
.site-logo img { display: block; width: auto; height: 76px; }
.site-logo .custom-logo-link { display: block; }
.site-nom { font-size: 22px; font-weight: 700; color: var(--theme-bleu-logo); text-decoration: none; }
.entete-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.boutons-action { display: flex; gap: 10px; }
.recherche-bouton, .menu-bouton {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--theme-bleu-logo);
	cursor: pointer;
}
.recherche-bouton:hover, .recherche-bouton[aria-expanded="true"] { background: var(--theme-fond); }
.menu-bouton { display: none; }
.recherche-entete { border-top: 1px solid var(--theme-bord); background: #fff; padding: 16px 0; }
.recherche-entete .formulaire-recherche { max-width: 560px; margin-left: auto; }
.recherche-entete .formulaire-recherche input[type="search"] { padding: 12px 16px; font-size: 16px; }

.formulaire-recherche {
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid #d6dbe8;
	border-radius: 999px;
	overflow: hidden;
}
.formulaire-recherche input[type="search"] {
	flex: 1;
	min-width: 0;
	width: 190px;
	padding: 9px 16px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	color: var(--theme-texte);
}
.formulaire-recherche input[type="search"]:focus { outline: none; }
.formulaire-recherche:focus-within { border-color: var(--theme-bleu); box-shadow: 0 0 0 3px rgba(22, 92, 201, .12); }
.formulaire-recherche button { padding: 0 16px; border: 0; background: transparent; color: var(--theme-texte-doux); cursor: pointer; }
.formulaire-recherche button:hover { color: var(--theme-bleu); }

/* ---------- Menu principal (ordinateur) ---------- */
.menu-principal { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.menu-principal .menu,
.menu-principal .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu-principal .menu { display: flex; align-items: center; gap: 2px; }
.menu-principal .menu > li { position: relative; display: flex; align-items: center; }
.menu-principal .menu > li > a {
	display: block;
	padding: 8px 11px;
	border-radius: 8px;
	color: var(--theme-texte);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}
.menu-principal .menu > li > a:hover,
.menu-principal .menu > li.est-ouvert > a { color: var(--theme-bleu); background: var(--theme-fond); }
.menu-principal .menu > .current-menu-item > a,
.menu-principal .menu > .current-menu-ancestor > a,
.menu-principal .menu > .current_page_item > a,
.menu-principal .menu > .current_page_parent > a { color: var(--theme-bleu-logo); box-shadow: inset 0 -2px 0 var(--theme-or); border-radius: 0; }
.menu-principal .menu > li.menu-item-has-children > a { padding-right: 2px; }
.menu-mobile-extra { display: none; }

.sous-menu-bouton {
	position: relative;
	width: 22px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--theme-texte-doux);
	cursor: pointer;
}
.sous-menu-bouton::before {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 6px; height: 6px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -75%) rotate(45deg);
	transition: transform .2s;
}
.menu-principal .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 10;
	min-width: 260px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--theme-bord);
	border-radius: 12px;
	box-shadow: var(--theme-ombre);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
.menu-principal li:hover > .sub-menu,
.menu-principal li:focus-within > .sub-menu,
.menu-principal li.est-ouvert > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.menu-principal .menu > li::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.menu-principal .sub-menu li { position: relative; display: flex; align-items: center; }
.menu-principal .sub-menu a { flex: 1; display: block; padding: 9px 12px; border-radius: 8px; color: var(--theme-texte); font-size: 15px; line-height: 1.4; text-decoration: none; }
.menu-principal .sub-menu a:hover,
.menu-principal .sub-menu .current-menu-item > a { color: var(--theme-bleu); background: var(--theme-fond); }
.menu-principal .sub-menu .sous-menu-bouton::before { transform: translate(-75%, -50%) rotate(-45deg); }
.menu-principal .sub-menu .sub-menu { top: -9px; left: 100%; }

/* ---------- Bandeau de titre ---------- */
.bandeau-titre { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--theme-bleu-fonce) 0%, var(--theme-bleu-logo) 55%, #3a47a8 100%); color: #fff; }
.bandeau-titre::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.bandeau-titre-interieur { position: relative; padding-top: 40px; padding-bottom: 40px; }
.bandeau-titre-texte { margin: 0; color: #fff; font-size: 38px; font-weight: 700; line-height: 1.2; }
.bandeau-titre-texte::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--theme-or); }
.ariane { margin-bottom: 8px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.ariane a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.ariane a:hover { color: #fff; }

/* ---------- Contenus ---------- */
.contenu-page { padding-top: 48px; padding-bottom: 72px; }
.contenu-accueil { padding-bottom: 32px; }
.contenu-texte { max-width: 100%; }
.contenu-texte > :first-child { margin-top: 0; }
/* Styles par défaut des contenus, sans priorité : les classes asi-* des pages (extrait « Refonte ASI ») l'emportent toujours. */
:where(.contenu-texte) :where(ul, ol) { padding-left: 1.4em; }
:where(.contenu-texte) :where(blockquote) { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--theme-bleu); color: var(--theme-texte-doux); font-style: italic; }
:where(.contenu-texte) :where(table) { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
:where(.contenu-texte) :where(th, td) { padding: 8px 10px; border: 1px solid var(--theme-bord); text-align: left; }
.contenu-texte iframe { display: block; }
/* Affiches très hautes (évènements) : pas plus haut que l'écran */
.tribe-events-single-event-description img, .tribe-events-event-image img { width: auto; max-height: 85vh; }

.article-seul { max-width: 820px; margin: 0 auto; }
.article-meta { font-size: 14px; color: var(--theme-texte-doux); margin-bottom: 20px; }
.article-meta a { color: #777; text-decoration: none; }
.article-meta a:hover { color: var(--theme-bleu); }
.article-image { margin: 0 0 28px; }
.article-image img { display: block; width: auto; max-width: 100%; max-height: 420px; margin: 0 auto; border-radius: 8px; }

.section-titre { position: relative; margin: 0 0 28px; padding-bottom: 12px; font-size: 22px; color: var(--theme-bleu-logo); }
.section-titre::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--theme-or); }
.autres-articles { max-width: 1140px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--theme-bord); }

/* Liens vers des documents (rapports, PDF) : icône dessinée par le thème.
   L'extrait WPCode affichait « &#x1f4c4 » à la place de l'émoji. */
.contenu-texte .asi-documents a { display: flex; align-items: center; gap: 10px; }
.contenu-texte .asi-documents a::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.5V9h5.5L13 3.5zM8 13v2h8v-2H8zm0 4v2h5v-2H8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.5V9h5.5L13 3.5zM8 13v2h8v-2H8zm0 4v2h5v-2H8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Flèche des liens « asi-lien-fleche », écrite en code CSS pour éviter le même problème. */
.contenu-texte .asi-lien-fleche::after { content: "\00a0\2192"; }

/* Alignements et légendes WordPress */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { margin: .3em 0 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--theme-texte-doux); margin-top: 6px; }
.contenu-texte::after { content: ""; display: table; clear: both; }

/* Galeries WordPress */
.gallery { display: grid; grid-template-columns: repeat(var(--colonnes, 3), 1fr); gap: 12px; margin: 0 0 1.5em; }
.gallery-columns-1 { --colonnes: 1; } .gallery-columns-2 { --colonnes: 2; } .gallery-columns-4 { --colonnes: 4; }
.gallery-columns-5 { --colonnes: 5; } .gallery-columns-6 { --colonnes: 6; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: 4px; }

/* Anciennes pages : grille héritée de Unity */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row > [class*="col-"] { width: 100%; padding: 0 15px; }

/* Formulaires (Contact Form 7 et commentaires) */
.contenu-texte input[type="text"], .contenu-texte input[type="email"], .contenu-texte input[type="tel"],
.contenu-texte input[type="url"], .contenu-texte input[type="number"], .contenu-texte input[type="date"],
.contenu-texte select, .contenu-texte textarea, .commentaires input[type="text"], .commentaires input[type="email"],
.commentaires input[type="url"], .commentaires textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd2dd;
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: var(--theme-texte);
}
.contenu-texte input:focus, .contenu-texte select:focus, .contenu-texte textarea:focus { border-color: var(--theme-bleu); outline: none; box-shadow: 0 0 0 3px rgba(22, 92, 201, .15); }
.commentaires { max-width: 820px; margin: 48px auto 0; }
.liste-commentaires { padding-left: 0; list-style: none; }

/* ---------- Listes : cartes ---------- */
.grille-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.carte {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--theme-bord);
	border-radius: var(--theme-rayon);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(20, 30, 70, .06);
	transition: box-shadow .2s, transform .2s;
}
.carte:hover { box-shadow: 0 6px 20px rgba(20, 30, 70, .12); transform: translateY(-2px); }
.carte-image { display: block; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--theme-bord); overflow: hidden; }
.carte-image { display: flex; align-items: center; justify-content: center; }
.carte-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.carte-sans-image { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #eef2fb, #dfe6f5); }
.carte-corps { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.carte-titre { margin: 0 0 6px; font-size: 19px; }
.carte-titre a { color: var(--theme-bleu-logo); text-decoration: none; }
.carte-titre a:hover { color: var(--theme-bleu); }
.carte-date { margin: 0 0 10px; font-size: 13px; color: #888; }
.carte-extrait { margin: 0 0 16px; font-size: 15px; color: var(--theme-texte-doux); }
.carte-lien { margin-top: auto; font-size: 15px; font-weight: 500; text-decoration: none; }

.liste-intro, .liste-recherche { max-width: 820px; margin: 0 0 32px; }
.liste-recherche .formulaire-recherche input[type="search"] { padding: 12px 14px; font-size: 16px; }
.liste-vide { font-size: 18px; color: var(--theme-texte-doux); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--theme-bord);
	border-radius: 4px;
	text-align: center;
	text-decoration: none;
	color: var(--theme-texte);
}
.pagination .page-numbers.current { background: var(--theme-bleu-logo); border-color: var(--theme-bleu-logo); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--theme-bleu); color: var(--theme-bleu); }

.page-404 { max-width: 640px; }
.page-404-texte { font-size: 20px; }
.page-404 .formulaire-recherche { margin: 24px 0; }

/* ---------- Accueil ---------- */
.accueil-hero {
	position: relative;
	color: #fff;
	background: linear-gradient(90deg, rgba(25, 31, 86, .95) 0%, rgba(25, 31, 86, .8) 45%, rgba(25, 31, 86, .3) 100%), var(--hero-image, none) center / cover no-repeat, var(--theme-bleu-logo);
}
.accueil-hero .conteneur { padding-top: 110px; padding-bottom: 130px; }
.accueil-surtitre { margin: 0 0 14px; color: var(--theme-or); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.accueil-hero-titre { max-width: 680px; margin: 0 0 18px; font-size: 50px; font-weight: 700; line-height: 1.12; }
.accueil-hero-texte { max-width: 580px; margin: 0 0 30px; font-size: 19px; opacity: .92; }
.accueil-hero-boutons { display: flex; flex-wrap: wrap; gap: 12px; }

.accueil-convention { position: relative; margin-top: -64px; }
.convention-boite { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(25, 31, 86, .18); }
.convention-boite.sans-affiche { grid-template-columns: 1fr; }
.convention-affiche { display: flex; align-items: center; background: #0d1440; }
.convention-affiche img { display: block; width: 100%; height: auto; }
.convention-texte { padding: 40px; }
.convention-texte h2 { margin: 12px 0 4px; font-size: 32px; }
.convention-soustitre { margin: 0; color: var(--theme-texte-doux); }
.convention-infos { list-style: none; margin: 18px 0 26px; padding: 0; color: var(--theme-texte-doux); }
.convention-infos li { display: flex; gap: 10px; padding: 4px 0; }
.convention-infos .icone { margin-top: 3px; color: var(--theme-bleu); }

.accueil-section { padding: 88px 0; }
.accueil-gris { background: var(--theme-fond); }
.accueil-diaporama { margin-top: 48px; }
.section-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 34px; }
.section-entete h2 { margin: 0; font-size: 34px; }
.section-entete h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--theme-or); }
.section-entete p { margin: 6px 0 0; color: var(--theme-texte-doux); }

.grille-engagement { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.engagement { padding: 32px; background: #fff; border: 1px solid var(--theme-bord); border-top: 4px solid var(--theme-bleu-logo); border-radius: 16px; box-shadow: var(--theme-ombre); }
.engagement:nth-child(2) { border-top-color: var(--theme-or); }
.engagement:nth-child(3) { border-top-color: var(--theme-bleu); }
.engagement-icone { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: #e8ebfa; color: var(--theme-bleu-logo); }
.engagement-icone .icone { width: 26px; height: 26px; }
.engagement h3 { margin: 0 0 8px; }
.engagement p { margin: 0 0 20px; color: var(--theme-texte-doux); font-size: 16px; }

.accueil-citation { padding: 80px 0; background: var(--theme-bleu-logo); color: #fff; text-align: center; }
.accueil-citation blockquote { max-width: 860px; margin: 0 auto; }
.accueil-citation p { margin: 0 0 14px; font-size: 26px; line-height: 1.45; }
.accueil-citation cite { color: var(--theme-or); font-style: normal; font-weight: 500; }

.grille-reseaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.reseau { display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: 16px; color: #fff !important; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.reseau:hover { transform: translateY(-2px); box-shadow: var(--theme-ombre); }
.reseau .icone { width: 36px; height: 36px; }
.reseau strong { display: block; font-size: 20px; }
.reseau-youtube { background: #c4302b; }
.reseau-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

/* ---------- Fiche d'un ministère ---------- */
.fiche-ministere { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.fiche-carte { position: sticky; top: calc(var(--entete-hauteur) + 24px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; border: 1px solid var(--theme-bord); border-radius: var(--theme-rayon); background: #fff; }
.fiche-logo { align-self: stretch; display: flex; justify-content: center; padding-bottom: 6px; }
.fiche-logo img { display: block; width: auto; max-width: 100%; max-height: 160px; object-fit: contain; }
.fiche-domaine { margin: 0; color: var(--theme-bleu); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fiche-ancien { padding: 12px 16px; border-radius: 10px; background: var(--theme-or-pale); color: #6b4700; font-size: 15px; }

/* ---------- Pied de page ---------- */
.site-pied { background: var(--theme-bleu-fonce); color: #cfd3ea; font-size: 15px; }
.pied-colonnes { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.pied-logo { display: inline-block; margin-bottom: 14px; }
.pied-logo img { display: block; width: auto; height: 84px; filter: brightness(0) invert(1); }
.pied-marque p { max-width: 340px; color: #cfd3ea; }
.pied-titre { margin: 0 0 14px; color: #fff; font-size: 15px; font-weight: 700; }
.site-pied ul { list-style: none; margin: 0; padding: 0; }
.site-pied li { margin-bottom: 8px; }
.site-pied a { color: #cfd3ea; text-decoration: none; }
.site-pied a:hover { color: #fff; text-decoration: underline; }
.reseaux { display: flex; gap: 10px; margin-top: 18px !important; }
.reseaux li { margin: 0; }
.reseaux a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.reseaux a:hover { background: var(--theme-or); color: var(--theme-bleu-fonce); }
.pied-copyright { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #aab0d4; font-size: 13px; }
.pied-copyright a { color: #aab0d4; }
.pied-copyright-interieur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1180px) {
	.entete-interieur { gap: 18px; }
	.menu-principal .menu > li > a { padding: 8px 8px; font-size: 14.5px; }
}

@media (max-width: 1080px) {
	:root { --entete-hauteur: 80px; }
	.site-logo img { height: 62px; }
	.entete-actions .boutons-action { display: none; }
	.menu-bouton { display: inline-grid; }
	.menu-bouton-icone,
	.menu-bouton-icone::before,
	.menu-bouton-icone::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s, background .2s; }
	.menu-bouton-icone { position: relative; }
	.menu-bouton-icone::before, .menu-bouton-icone::after { content: ""; position: absolute; left: 0; }
	.menu-bouton-icone::before { top: -7px; }
	.menu-bouton-icone::after { top: 7px; }
	.menu-bouton[aria-expanded="true"] .menu-bouton-icone { background: transparent; }
	.menu-bouton[aria-expanded="true"] .menu-bouton-icone::before { transform: translateY(7px) rotate(45deg); }
	.menu-bouton[aria-expanded="true"] .menu-bouton-icone::after { transform: translateY(-7px) rotate(-45deg); }

	.menu-principal {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--entete-hauteur));
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid var(--theme-bord);
		box-shadow: 0 20px 30px rgba(25, 31, 86, .12);
	}
	.menu-principal.est-ouvert { display: block; }
	.menu-principal .menu { display: block; padding: 8px 16px; }
	.menu-principal .menu li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--theme-bord); }
	.menu-principal .menu > li::after { display: none; }
	.menu-principal .menu > li > a,
	.menu-principal .sub-menu a { flex: 1; padding: 14px 8px; border-radius: 0; font-size: 17px; }
	.menu-principal .menu > .current-menu-item > a,
	.menu-principal .menu > .current_page_item > a { box-shadow: none; color: var(--theme-bleu); }
	.sous-menu-bouton,
	.menu-principal .sub-menu .sous-menu-bouton { width: 48px; height: 48px; }
	.menu-principal .sub-menu .sous-menu-bouton::before { transform: translate(-50%, -75%) rotate(45deg); }
	.est-ouvert > .sous-menu-bouton::before,
	.menu-principal .sub-menu .est-ouvert > .sous-menu-bouton::before { transform: translate(-50%, -25%) rotate(-135deg); }
	.menu-principal .sub-menu,
	.menu-principal .sub-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 8px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
	.menu-principal li.est-ouvert > .sub-menu { display: block; }
	.menu-principal .sub-menu li { border: 0; }
	.menu-principal .sub-menu a { padding: 10px 8px 10px 24px; font-size: 16px; }
	.menu-mobile-extra { display: flex; flex-direction: column; gap: 14px; padding: 16px 24px 24px; }
	.menu-mobile-extra .formulaire-recherche input[type="search"] { width: 100%; padding: 12px 16px; font-size: 16px; }
	.menu-mobile-extra .boutons-action .bouton { flex: 1; }

	.pied-colonnes { grid-template-columns: 1fr 1fr; }
	.fiche-ministere { grid-template-columns: 1fr; gap: 32px; }
	.fiche-carte { position: static; order: -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
	.fiche-logo { align-self: auto; padding: 0; }
	.fiche-logo img { max-height: 90px; }
	.row > .col-md-5, .row > .col-md-6, .row > .col-md-7 { width: 100%; }
}

@media (min-width: 992px) {
	.row > .col-md-5 { width: 41.666%; }
	.row > .col-md-6 { width: 50%; }
	.row > .col-md-7 { width: 58.333%; }
}

@media (max-width: 900px) {
	.grille-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.convention-boite { grid-template-columns: 1fr; }
	.convention-texte { padding: 28px; }
	.accueil-hero .conteneur { padding-top: 72px; padding-bottom: 110px; }
	.accueil-hero-titre { font-size: 38px; }
}

@media (max-width: 640px) {
	.conteneur { padding: 0 18px; }
	.bandeau-titre-interieur { padding-top: 24px; padding-bottom: 24px; }
	.bandeau-titre-texte { font-size: 28px; }
	.contenu-page { padding-top: 28px; padding-bottom: 48px; }
	.grille-cartes { grid-template-columns: 1fr; }
	.pied-colonnes { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.accueil-hero-titre { font-size: 32px; }
	.accueil-hero-texte { font-size: 17px; }
	.accueil-section { padding: 60px 0; }
	.section-entete h2 { font-size: 28px; }
	.convention-texte h2 { font-size: 26px; }
	.engagement { padding: 24px; }
	.accueil-citation { padding: 56px 0; }
	.accueil-citation p { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Résultats de recherche ---------- */
.liste-resultats { max-width: 820px; }
.resultat { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--theme-bord); }
.resultat:first-child { padding-top: 0; }
.resultat-image { flex: 0 0 96px; }
.resultat-image img { display: block; width: 96px; height: 96px; object-fit: contain; background: #f4f6fb; border-radius: 6px; }
.resultat-type { margin: 0 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #888; }
.resultat-titre { margin: 0 0 6px; font-size: 20px; }
.resultat-titre a { color: var(--theme-bleu-logo); text-decoration: none; }
.resultat-titre a:hover { color: var(--theme-bleu); }
.resultat-extrait { margin: 0; color: var(--theme-texte-doux); font-size: 15px; }
@media (max-width: 640px) {
	.resultat-image { flex-basis: 64px; }
	.resultat-image img { width: 64px; height: 64px; }
}
