/* F2IN Accueil 2.22.0 : section « Mot du Ministre » de l'accueil, [f2in_mot_ministre].
 * Classes préfixées f2mm ; sélecteurs préfixés « html body » pour passer devant le thème et Elementor.
 * Fond : assets/img/motif-mot-ministre.svg, carrés en relief en quinconce, symbole du forum dans un carré sur trois. */
html body .f2mm { font-family: var(--f-texte); color: var(--encre); text-align: left; }
html body .f2mm *, html body .f2mm-modal * { box-sizing: border-box; }
html body .f2mm blockquote { border: 0; background: none; quotes: none; font-style: normal; }
html body .f2mm-lire, html body .f2mm-modal__fermer { text-transform: none; letter-spacing: normal; min-height: 0; line-height: 1; }
html body .f2mm-lire:hover, html body .f2mm-lire:focus { color: var(--blanc); }
html body .f2mm__tete h2 { font-family: var(--f-texte); font-weight: 800; color: var(--encre); line-height: 1.2; letter-spacing: normal; text-transform: none; text-wrap: balance; }
html body .f2mm__tete h2 em { font-style: italic; font-weight: 800; color: inherit; background: none; padding: 0; }
html body .f2mm-modal__corps h3 { letter-spacing: normal; text-transform: none; }
/* Mise en page : portrait dans le « soleil » orange du drapeau à gauche, parole à droite ; une seule rangée sur grand écran, empilé sur mobile */
html body .f2mm, html body .f2mm-modal, html body .f2mm-voile {
	color-scheme: light;
	--vert: #005c45;        /* vert F2IN */
	--vert-f: #00402f;      /* vert profond, titres */
	--vert-50: #e8f1ee;     /* fond de section */
	--or: #f6b91e;          /* or F2IN */
	--soleil: #e05206;      /* orange du drapeau nigérien */
	--encre: #1a1a2e;       /* texte courant */
	--doux: #545a6b;        /* texte secondaire */
	--blanc: #ffffff;
	--ligne: #d5e3dd;
	--f-titre: "Montserrat", "Segoe UI", Arial, sans-serif;
	--f-texte: "Lato", "Segoe UI", Arial, sans-serif;
	--f-signature: "Mrs Saint Delafield", "Segoe Script", cursive;
}


/* ===== Section « Mot du Ministre » ===== */
html body .f2mm { position: relative; isolation: isolate; overflow: hidden; max-width: 1240px; margin: 0 auto; border-radius: 22px; background: var(--vert-50); }
/* trame discrète : motif de tissage en losanges, très léger */
html body .f2mm::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(45deg, rgba(0, 92, 69, .05) 25%, transparent 25%, transparent 75%, rgba(0, 92, 69, .05) 75%), linear-gradient(45deg, rgba(0, 92, 69, .05) 25%, transparent 25%, transparent 75%, rgba(0, 92, 69, .05) 75%);
	background-size: 28px 28px; background-position: 0 0, 14px 14px;
	-webkit-mask-image: linear-gradient(90deg, #000, transparent 55%); mask-image: linear-gradient(90deg, #000, transparent 55%); }
/* liseré aux couleurs du drapeau en haut */
html body .f2mm__drapeau { display: flex; height: 6px; }
html body .f2mm__drapeau i { flex: 1; }
html body .f2mm__drapeau i:nth-child(1) { background: var(--soleil); }
html body .f2mm__drapeau i:nth-child(2) { background: var(--blanc); }
html body .f2mm__drapeau i:nth-child(3) { background: var(--vert); }

html body .f2mm__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 72px); }
html body .f2mm__grille > * { min-width: 0; }

/* Portrait dans le soleil */
html body .f2mm-portrait { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-inline: auto; }
html body .f2mm-portrait__soleil { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f07a2c, var(--soleil) 62%, #c44604); box-shadow: 0 30px 60px -24px rgba(224, 82, 6, .55); }
html body .f2mm-portrait__anneau { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(0, 92, 69, .25); animation: f2mm-orbite 24s linear infinite; }
html body .f2mm-portrait__anneau::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--or); transform: translateY(-50%); }
html body .f2mm-portrait__photo { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; border: 4px solid var(--blanc); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
html body .f2mm-portrait__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
html body .f2mm-portrait__photo svg { position: absolute; left: 50%; bottom: 0; width: 82%; transform: translateX(-50%); }
html body .f2mm-portrait__etiquette { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--blanc); box-shadow: 0 10px 24px -12px rgba(0, 64, 47, .45); font: 700 12px/1.2 var(--f-titre); color: var(--vert-f); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
html body .f2mm-portrait__etiquette b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--vert); color: var(--blanc); font-size: 11px; }
@keyframes f2mm-orbite { to { transform: rotate(360deg); } }

/* Parole */
html body .f2mm-parole { position: relative; }
html body .f2mm-parole__sur { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font: 800 12px/1 var(--f-titre); letter-spacing: .16em; text-transform: uppercase; color: var(--soleil); }
html body .f2mm-parole__sur::after { content: ""; flex: 0 0 48px; height: 2px; background: var(--or); }
html body .f2mm-parole h2 { margin: 0 0 22px; font: 800 clamp(26px, 3.2vw, 40px)/1.12 var(--f-titre); color: var(--vert-f); text-wrap: balance; letter-spacing: -.01em; }
html body .f2mm-parole h2 em { font-style: normal; color: var(--vert); background: linear-gradient(transparent 62%, rgba(246, 185, 30, .45) 62%); padding: 0 2px; }
html body .f2mm-citation { position: relative; margin: 0; padding-inline-start: 56px; }
html body .f2mm-citation::before { content: "«"; position: absolute; left: -4px; top: -26px; font: 800 96px/1 var(--f-titre); color: var(--or); }
html body .f2mm-citation p { margin: 0 0 14px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; max-width: 62ch; }
html body .f2mm-citation p:first-child { font-size: clamp(18px, 1.6vw, 21px); font-style: italic; color: var(--vert-f); line-height: 1.55; }
html body .f2mm-citation__suite { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
html body .f2mm-citation__suite > div { overflow: hidden; }
html body .f2mm.is-ouvert .f2mm-citation__suite { grid-template-rows: 1fr; }

html body .f2mm-parole__pied { margin-top: 26px; padding-inline-start: 56px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
html body .f2mm-signature { display: grid; gap: 2px; }
html body .f2mm-signature strong { font: 700 15px/1.3 var(--f-titre); color: var(--encre); }
html body .f2mm-signature span { font-size: 13.5px; color: var(--doux); }
html body .f2mm-lire { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--vert); color: var(--blanc); font: 700 14px/1 var(--f-titre); cursor: pointer; transition: background .2s; }
html body .f2mm-lire:hover { background: var(--vert-f); }
html body .f2mm-lire:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
html body .f2mm-lire svg { width: 16px; height: 16px; transition: transform .3s; }
html body .f2mm.is-ouvert .f2mm-lire svg { transform: rotate(180deg); }

html body .f2mm-citation p.f2mm-citation__fin { margin: 18px 0 0; font: 700 clamp(16px, 1.3vw, 18px)/1.45 var(--f-titre); font-style: normal; color: var(--vert); }
html body .f2mm-citation p.f2mm-citation__fin::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 12px; background: var(--soleil); }
html body .f2mm-reference { margin: 22px 0 0; padding: 12px 16px 12px 56px; border-top: 1px solid var(--ligne); font-size: 13px; line-height: 1.5; color: var(--doux); }
html body .f2mm-reference span { display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 5px; background: var(--blanc); font: 800 10.5px/1.3 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; color: var(--vert); }
html body .f2mm-signature strong { font-size: 17px !important; }
@media (max-width: 860px) { html body .f2mm-reference { padding-left: 0; } }
html body .f2mm-citation .f2mm-citation__intertitre { margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--ligne); font: 800 12px/1.3 var(--f-titre); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--soleil); }
/* armoiries en filigrane */
html body .f2mm-filigrane { position: absolute; right: -40px; bottom: -50px; width: 260px; opacity: .06; z-index: -1; pointer-events: none; }


@media (max-width: 860px) {
	html body .f2mm__grille { grid-template-columns: 1fr; }
	html body .f2mm-portrait { width: min(78%, 320px); }
	html body .f2mm-citation, html body .f2mm-parole__pied { padding-inline-start: 0; }
	html body .f2mm-citation::before { position: static; display: block; height: 44px; font-size: 80px; }
	html body .f2mm::before { -webkit-mask-image: linear-gradient(180deg, #000, transparent 45%); mask-image: linear-gradient(180deg, #000, transparent 45%); }
}
@media (prefers-reduced-motion: reduce) { html body .f2mm-portrait__anneau { animation: none; } html body .f2mm-citation__suite, html body .f2mm-lire svg { transition: none; } }

/* ===== v4 : étiquette du portrait, fenêtre de lecture ===== */
html body .f2mm-portrait { margin: 0; }
/* v8 : titre au-dessus de la photo, texte aligné en haut pour réduire la hauteur */
html body .f2mm__grille { align-items: start; padding: 10px; gap: 30px; }
html body .f2mm__gauche { display: grid; gap: 95px; align-self: center; text-align: center; place-items: center; }
html body .f2mm__tete h2 { text-shadow: 0 0 14px #eef5f1, 0 0 4px #eef5f1; margin: 0; font-size: clamp(24px, 2.5vw, 32px); }
html body .f2mm__tete .f2mm-parole__sur { margin-bottom: 14px; justify-content: center; gap: 14px; font-size: 16px; letter-spacing: .18em; }
html body .f2mm__tete .f2mm-parole__sur::before, html body .f2mm__tete .f2mm-parole__sur::after { content: ""; flex: 0 1 56px; height: 2px; background: var(--or); }
html body .f2mm__gauche .f2mm-portrait { width: min(100%, 400px); margin-inline: 0; }
html body .f2mm-parole .f2mm-citation { margin-top: 8px; }
@media (max-width: 860px) { html body .f2mm__gauche .f2mm-portrait { margin-inline: auto; width: min(78%, 300px); } html body .f2mm__tete { text-align: left; } }
html body .f2mm-portrait__etiquette { bottom: -2%; display: grid; gap: 3px; justify-items: center; text-align: center; padding: 10px 18px 11px; border-radius: 14px; white-space: nowrap; }
html body .f2mm-portrait__etiquette strong { font: 800 14px/1.2 var(--f-titre); color: var(--vert-f); }
html body .f2mm-portrait__etiquette span { font: 700 11.5px/1.25 var(--f-titre); color: var(--soleil); letter-spacing: .01em; }
html body .f2mm-portrait__etiquette span { display: inline-flex; align-items: center; gap: 7px; }
html body .f2mm-drapeau-ne { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
html body .f2mm-lire svg { transition: transform .2s; }
html body .f2mm-lire:hover svg { transform: translateX(3px); }
html body .f2mm.is-ouvert .f2mm-lire svg { transform: none; }
html body .f2mm-parole { position: relative; }
html body .f2mm-citation p.f2mm-citation__fin { margin-top: 16px; }
html body .f2mm-parole__pied { justify-content: flex-start; }

html body .f2mm-reference a { color: var(--vert); font-weight: 700; text-decoration: none; background: linear-gradient(var(--or), var(--or)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 1px; transition: color .2s, background-size .2s; }
html body .f2mm-reference a:hover { color: var(--soleil); background-size: 100% 2.5px; }
html body .f2mm-reference a:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 3px; }


/* v17 : carrés en relief espacés (pas de 200 px, lignes en quinconce), symbole du forum dans un carré sur trois */
html body .f2mm::before { opacity: .8; background-image: url("img/motif-mot-ministre.svg"); background-size: 600px 800px; background-position: -30px -35px; background-repeat: repeat;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .85) 30%, rgba(0, 0, 0, .1) 46%, rgba(0, 0, 0, .06) 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .85) 30%, rgba(0, 0, 0, .1) 46%, rgba(0, 0, 0, .06) 100%); }
html body .f2mm { background: linear-gradient(115deg, #eef5f1 0%, var(--vert-50) 45%, #f6f1e2 100%); }
@media (max-width: 860px) { html body .f2mm::before { -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .25) 60%); mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .25) 60%); } }

/* Grand écran : la fenêtre se pose sur la colonne de texte, la photo reste visible */
html body .f2mm-modal { position: fixed; z-index: 1000; left: var(--m-g, 50%); width: var(--m-l, min(680px, 92vw)); top: 50%; transform: translateY(-50%); height: min(560px, calc(100vh - 48px)); display: flex; flex-direction: column; border-radius: 18px; background: var(--blanc); box-shadow: 0 30px 70px -20px rgba(0, 64, 47, .45), 0 0 0 1px rgba(0, 92, 69, .08); overflow: hidden; animation: f2mm-modalIn .28s ease; }
html body .f2mm-modal[hidden] { display: none; }
@keyframes f2mm-modalIn { from { opacity: 0; transform: translateY(calc(-50% + 12px)); } to { opacity: 1; transform: translateY(-50%); } }
html body .f2mm-modal__tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 26px; border-bottom: 1px solid var(--ligne); background: var(--vert-50); }
html body .f2mm-modal__tete p { margin: 0; font: 800 11px/1.3 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; color: var(--soleil); }
html body .f2mm-modal__fermer { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--vert); color: var(--blanc); cursor: pointer; }
html body .f2mm-modal__fermer:hover { background: var(--vert-f); }
html body .f2mm-modal__fermer:focus-visible, html body .f2mm-modal__corps:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
html body .f2mm-modal__fermer svg { width: 18px; height: 18px; }
html body .f2mm-modal__corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 28px; scrollbar-width: thin; scrollbar-color: var(--vert) transparent; }
html body .f2mm-modal__corps h3 { margin: 0 0 16px; font: 800 22px/1.2 var(--f-titre); color: var(--vert-f); text-wrap: balance; }
html body .f2mm-modal__corps p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--encre); }
html body .f2mm-modal__corps p.f2mm-citation__fin { margin-top: 20px; font: 700 17px/1.45 var(--f-titre); color: var(--vert); }
html body .f2mm-modal__corps p.f2mm-citation__fin::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 12px; background: var(--soleil); }
html body .f2mm-modal__signature { display: grid; gap: 2px; margin-top: 18px; }
html body .f2mm-modal__signature strong { font: 800 15px/1.3 var(--f-titre); color: var(--vert-f); }
html body .f2mm-modal__signature span { font-size: 13.5px; color: var(--soleil); font-weight: 700; }
html body .f2mm-modal__corps p.f2mm-modal__source { margin: 18px 0 0; font-size: 12.5px; color: var(--doux); }
html body .f2mm-modal__intro { padding-bottom: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--ligne); }
html body .f2mm-modal__intro p { font-style: italic; color: var(--vert-f); }
html body .f2mm-voile { display: none; }

/* Mobile : f2mm-feuille de lecture en bas d'écran, fond assombri */
@media (max-width: 860px) {
	html body .f2mm-modal { position: fixed; z-index: 1000; inset: auto 0 0 0; left: 0; width: auto; top: auto; transform: none; height: 82vh; max-height: none; border-radius: 20px 20px 0 0; animation: f2mm-feuille .3s ease; }
	@keyframes f2mm-feuille { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
	html body .f2mm-modal__corps { padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
	html body .f2mm-voile { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(0, 32, 24, .55); }
	html body .f2mm-voile[hidden] { display: none; }
	html body .f2mm-reference { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html body .f2mm-modal { animation: none; } }

/* 2.22.2 : « clip » au lieu de « hidden » : la section ne peut plus défiler toute seule (focus, ancre), la grille couvre toute la section */
html body .f2mm { overflow: hidden; overflow: clip; }
/* 2.22.3 : une seule section #mot-du-ministre, fond sur toute la largeur ; contenu centré sur 1240 px */
html body .f2mm { max-width: none; width: 100%; margin: 0; border-radius: 0; padding: clamp(40px, 6vw, 80px) 16px; }
html body .f2mm__grille { max-width: 1240px; margin-inline: auto; }
