/*
Theme Name: UPMH — Université Privée Prince Moulay Hassan
Theme URI: https://upmh-mali.com
Author: Université Privée Prince Moulay Hassan
Description: Thème sur mesure du site de l’Université Privée Prince Moulay Hassan (Bamako, Mali) : formations par domaine, admissions et pré-inscription en ligne, actualités, événements, témoignages et partenaires. Les réglages se trouvent dans Apparence > Personnaliser > Université UPMH.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: upmh
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--bordeaux: #82060f;
	--bordeaux-fonce: #5c040a;
	--bleu: #04457f;
	--bleu-nuit: #032a4f;
	--bleu-encre: #021c36;
	--or: #c9a42e;
	--or-clair: #e8cf7a;
	--or-pale: #f6ecd0;
	--creme: #fbf8f1;
	--texte: #1e2430;
	--gris: #5b6472;
	--gris-clair: #e7e3da;
	--blanc: #fff;

	--font-titre: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-texte: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(3, 42, 79, .06), 0 8px 24px rgba(3, 42, 79, .08);
	--shadow-lg: 0 2px 4px rgba(3, 42, 79, .06), 0 24px 48px rgba(3, 42, 79, .14);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 104px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-texte);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--texte);
	background: var(--blanc);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bordeaux); }
h1, h2, h3, h4 { font-family: var(--font-titre); color: var(--bleu-nuit); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--bordeaux); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* ==========================================================================
   3. Boutons et liens
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
	font: 600 1rem/1.2 var(--font-texte); text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .6em 1.15em; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--bordeaux); color: #fff; box-shadow: 0 6px 18px rgba(130, 6, 15, .25); }
.btn--primary:hover { background: var(--bordeaux-fonce); color: #fff; }
.btn--gold { background: var(--or); color: var(--bleu-encre); box-shadow: 0 6px 20px rgba(201, 164, 46, .35); }
.btn--gold:hover { background: var(--or-clair); color: var(--bleu-encre); }
.btn--outline { border-color: var(--bleu); color: var(--bleu); background: transparent; }
.btn--outline:hover { background: var(--bleu); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: #fff; color: var(--bleu-nuit); border-color: #fff; }
.btn--whatsapp { background: #1f9d55; color: #fff; }
.btn--whatsapp:hover { background: #178245; color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--bordeaux); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.kicker {
	display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .75rem;
	font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--or); }
.kicker--light { color: var(--or-clair); }

/* ==========================================================================
   4. En-tête
   ========================================================================== */
.announce { background: var(--bordeaux); color: #fff; font-size: .92rem; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: .75em; padding-block: .5rem; flex-wrap: wrap; text-align: center; }
.announce a { color: var(--or-clair); font-weight: 700; display: inline-flex; align-items: center; gap: .3em; text-decoration: none; }
.announce a:hover { color: #fff; }
.announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--or-clair); box-shadow: 0 0 0 0 rgba(232, 207, 122, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(232, 207, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 207, 122, 0); } }

.topbar { background: var(--bleu-nuit); color: rgba(255, 255, 255, .85); font-size: .88rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: .45em; color: inherit; text-decoration: none; }
.topbar__info a:hover { color: var(--or-clair); }
.topbar .icon { color: var(--or); width: 15px; height: 15px; }

.socials { display: flex; gap: .4rem; }
.socials a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: inherit; transition: background .2s, color .2s; }
.socials a .icon { width: 16px; height: 16px; color: currentColor; }
.socials--top a:hover { background: rgba(255, 255, 255, .12); color: var(--or-clair); }
.socials--footer a, .socials--dark a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); }
.socials--footer a:hover { background: var(--or); color: var(--bleu-encre); border-color: var(--or); }
.socials--dark a { border-color: var(--gris-clair); color: var(--bleu); }
.socials--dark a:hover { background: var(--bleu); color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(3, 42, 79, .08); border-color: var(--gris-clair); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 88px; }

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--bleu-nuit); min-width: 0; }
.brand__logo { width: 76px; height: auto; transition: width .25s var(--ease); }
.site-header.is-scrolled .brand__logo { width: 60px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-titre); font-weight: 700; font-size: 1.08rem; color: var(--bleu-nuit); }
.brand__tag { font-size: .78rem; color: var(--bordeaux); font-weight: 600; letter-spacing: .02em; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav .menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav .menu > li { position: relative; }
.nav .menu a { display: block; padding: .55rem .8rem; border-radius: var(--radius-sm); color: var(--bleu-nuit); font-weight: 600; text-decoration: none; font-size: .98rem; }
.nav .menu > li > a { position: relative; }
.nav .menu > li > a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav .menu > li:hover > a::after,
.nav .menu > .current-menu-item > a::after,
.nav .menu > .current-menu-ancestor > a::after,
.nav .menu > .current-menu-parent > a::after { transform: scaleX(1); }
.nav .menu > .current-menu-item > a, .nav .menu > .current-menu-ancestor > a { color: var(--bordeaux); }
.nav .menu-item-has-children > a { padding-right: 1.6rem; }
.nav .menu-item-has-children > a::before { content: ""; position: absolute; right: .7rem; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .6; }
.nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: .5rem;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--or);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { padding: .55rem .8rem; font-weight: 600; }
.nav .sub-menu a:hover { background: var(--creme); color: var(--bordeaux); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--bleu-nuit); cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* ==========================================================================
   5. Accueil — bannière
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	background:
		radial-gradient(1200px 500px at 85% 20%, rgba(201, 164, 46, .18), transparent 60%),
		radial-gradient(900px 600px at -10% 110%, rgba(130, 6, 15, .45), transparent 60%),
		linear-gradient(135deg, var(--bleu-encre) 0%, var(--bleu-nuit) 45%, var(--bleu) 100%);
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
	background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.hero--image .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 28, 54, .92) 0%, rgba(2, 28, 54, .7) 50%, rgba(2, 28, 54, .25) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem; padding-block: clamp(64px, 9vw, 120px) clamp(110px, 12vw, 160px); }
.hero--image .hero__inner { grid-template-columns: minmax(0, 720px); }
.hero__kicker { display: inline-flex; align-items: center; gap: .5em; padding: .4em 1em; margin: 0 0 1.5rem; border: 1px solid rgba(232, 207, 122, .45); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--or-clair); font-size: .9rem; font-weight: 600; }
.hero__title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.05; margin-bottom: 1.25rem; font-weight: 800; }
.hero__title::after { content: ""; display: block; width: 84px; height: 4px; margin-top: 1.25rem; background: linear-gradient(90deg, var(--or), var(--or-clair)); border-radius: 2px; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; color: rgba(255, 255, 255, .86); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__emblem { display: grid; place-items: center; }
.hero__seal {
	width: min(400px, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding: 12%;
	background: radial-gradient(circle at 35% 30%, #fff, #f4efe3);
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 0 11px rgba(232, 207, 122, .5), 0 0 0 26px rgba(255, 255, 255, .04), 0 30px 80px rgba(0, 0, 0, .35);
	animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Chiffres clés */
.stats { position: relative; z-index: 2; margin-top: clamp(-80px, -8vw, -60px); }
.stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stats__grid li { padding: 1.75rem 1rem; text-align: center; border-right: 1px solid var(--gris-clair); position: relative; }
.stats__grid li:last-child { border-right: 0; }
.stats__grid li::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--or); border-radius: 0 0 3px 3px; }
.stats__num { display: block; font-family: var(--font-titre); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 800; color: var(--bordeaux); line-height: 1.1; }
.stats__num small { font-size: .55em; margin-left: 2px; }
.stats__label { display: block; margin-top: .35rem; font-size: .92rem; color: var(--gris); font-weight: 600; }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section--cream { background: var(--creme); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center .kicker::after { content: ""; width: 28px; height: 2px; background: var(--or); }
.section__title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0; max-width: 22em; }

/* Mot du Président */
.president__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.president__photo { margin: 0; position: relative; }
.president__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--or); border-radius: var(--radius); z-index: -1; }
.president__photo img, .president__placeholder { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.president__placeholder { display: grid; place-items: center; background: linear-gradient(160deg, var(--bleu), var(--bleu-nuit)); color: var(--or-clair); }
.president__placeholder .icon { width: 30%; height: auto; opacity: .7; }
.president blockquote { margin: 0 0 1.5rem; position: relative; }
.president blockquote p { font-family: var(--font-titre); font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.5; color: var(--bleu-nuit); font-style: italic; font-weight: 600; }
.president__sign { display: flex; flex-direction: column; margin-bottom: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--bordeaux); }
.president__sign strong { font-size: 1.1rem; color: var(--bleu-nuit); }
.president__sign span { color: var(--gris); }

/* Atouts */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature { background: #fff; padding: 2rem 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow); border-bottom: 3px solid transparent; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-6px); border-color: var(--or); box-shadow: var(--shadow-lg); }
.feature__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem; border-radius: 14px; background: var(--or-pale); color: var(--bordeaux); }
.feature__icon .icon { width: 28px; height: 28px; }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--gris); margin: 0; font-size: 1rem; }

/* Domaines */
.domaines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.domaine { position: relative; display: flex; flex-direction: column; padding: 2rem 1.6rem 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--gris-clair); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.domaine::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--bleu); }
.domaine--gestion::before { background: var(--bordeaux); }
.domaine--finance::before { background: var(--or); }
.domaine--marketing::before { background: linear-gradient(90deg, var(--bordeaux), var(--or)); }
.domaine:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.domaine__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bleu); color: #fff; margin-bottom: 1.25rem; flex-shrink: 0; }
.domaine--gestion .domaine__icon { background: var(--bordeaux); }
.domaine--finance .domaine__icon { background: var(--or); color: var(--bleu-encre); }
.domaine--marketing .domaine__icon { background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-fonce)); }
.domaine__icon .icon { width: 28px; height: 28px; }
.domaine__title { font-size: 1.4rem; margin-bottom: .5rem; }
.domaine__title a { color: inherit; text-decoration: none; }
.domaine__desc { color: var(--gris); font-size: .98rem; }
.domaine__list { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--gris-clair); }
.domaine__list li { border-bottom: 1px solid var(--gris-clair); }
.domaine__list a { display: block; padding: .6rem 0; color: var(--texte); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .2s, padding .2s; }
.domaine__list a:hover { color: var(--bordeaux); padding-left: .35rem; }
.domaine__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--bordeaux); text-decoration: none; }

/* Actualités */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.news-layout--full { grid-template-columns: 1fr; }
.news-layout .cards { grid-template-columns: repeat(2, 1fr); }
.news-layout--full .cards { grid-template-columns: repeat(3, 1fr); }
.cards { display: grid; gap: 1.75rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--creme); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--creme), var(--or-pale)); }
.card__placeholder img { width: 40%; height: auto; object-fit: contain; opacity: .9; }
.card:hover .card__placeholder img { transform: none; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .85rem; color: var(--gris); margin-bottom: .6rem; }
.card__cat { padding: .15em .7em; border-radius: 999px; background: var(--or-pale); color: var(--bordeaux); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.card__meta--light { color: rgba(255, 255, 255, .8); }
.card__title { font-size: 1.25rem; margin-bottom: .5rem; }
.card__title a { color: var(--bleu-nuit); text-decoration: none; }
.card__title a:hover { color: var(--bordeaux); }
.card__excerpt { color: var(--gris); font-size: .98rem; margin: 0; }

.agenda { background: var(--bleu-nuit); color: #fff; border-radius: var(--radius); padding: 1.75rem; }
.agenda__title { display: flex; align-items: center; gap: .5rem; color: #fff; font-size: 1.35rem; margin-bottom: 1rem; }
.agenda__title .icon { color: var(--or); }
.agenda .event { border-color: rgba(255, 255, 255, .12); }
.agenda .event__title a { color: #fff; }
.agenda .event__place { color: rgba(255, 255, 255, .7); }
.agenda .link-arrow { color: var(--or-clair); margin-top: 1rem; }
.event { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gris-clair); }
.event__date { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 66px; border-radius: 10px; background: var(--bordeaux); color: #fff; line-height: 1; }
.event__day { font-family: var(--font-titre); font-size: 1.6rem; font-weight: 800; }
.event__month { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; color: var(--or-clair); }
.event__title { font-family: var(--font-texte); font-size: 1.05rem; font-weight: 700; margin: 0 0 .3rem; }
.event__title a { color: var(--bleu-nuit); text-decoration: none; }
.event__place { display: flex; align-items: center; gap: .35em; font-size: .9rem; color: var(--gris); margin: 0; }
.event-list .event { padding: 1.25rem 0; }

/* Témoignages */
.testimonials { background: linear-gradient(160deg, var(--bleu-nuit), var(--bleu-encre)); position: relative; overflow: hidden; }
.testimonials::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -250px; border-radius: 50%; border: 80px solid rgba(201, 164, 46, .06); }
.testimonials .section__title { color: #fff; }
.testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; position: relative; }
.testimonial { margin: 0; padding: 2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .88); display: flex; flex-direction: column; }
.testimonial__mark { width: 34px; height: 34px; color: var(--or); margin-bottom: 1rem; }
.testimonial blockquote { margin: 0 0 1.5rem; font-size: 1.05rem; flex: 1; }
.testimonial blockquote p:last-child { margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: .9rem; font-size: .92rem; color: rgba(255, 255, 255, .7); }
.testimonial figcaption strong { display: block; color: #fff; font-size: 1rem; }
.testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial__avatar--initial { display: grid; place-items: center; background: var(--or); color: var(--bleu-encre); font-family: var(--font-titre); font-weight: 800; font-size: 1.3rem; }

/* Partenaires */
.partners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.partner { display: grid; place-items: center; min-height: 110px; padding: 1.25rem; text-align: center; border: 1px solid var(--gris-clair); border-radius: var(--radius); background: #fff; color: var(--bleu-nuit); font-weight: 700; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.partner:hover { border-color: var(--or); box-shadow: var(--shadow); }
.partner--logo img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partner--logo:hover img { filter: none; opacity: 1; }

/* Bandeau d'appel */
.cta-band { background: var(--bordeaux); background-image: radial-gradient(700px 300px at 100% 0%, rgba(201, 164, 46, .25), transparent 60%), linear-gradient(120deg, var(--bordeaux-fonce), var(--bordeaux)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(40px, 6vw, 64px); flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ==========================================================================
   7. Pages intérieures
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; color: #fff; padding-block: clamp(48px, 7vw, 88px); background: radial-gradient(800px 300px at 90% 0%, rgba(201, 164, 46, .2), transparent 60%), linear-gradient(135deg, var(--bleu-encre), var(--bleu)); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--bordeaux) 0 33%, var(--or) 33% 66%, var(--bleu) 66%); }
.page-hero .kicker { color: var(--or-clair); }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; max-width: 20em; }
.page-hero__lead { margin: 1rem 0 0; font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 40em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; margin-bottom: 1.25rem; color: rgba(255, 255, 255, .6); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--or-clair); }

.page-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.page-cover img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 35%; }

/* Contenu rédigé dans l'éditeur */
.entry { font-size: 1.08rem; }
.entry > * + * { margin-top: 0; }
.entry h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.2em 0 .7em; padding-bottom: .4em; border-bottom: 1px solid var(--gris-clair); position: relative; }
.entry h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 60px; height: 3px; background: var(--or); }
.entry > h2:first-child { margin-top: 0; }
.entry h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; color: var(--bordeaux); }
.entry ul, .entry ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.entry li { margin-bottom: .45em; }
.entry ul li::marker { color: var(--or); }
.entry ol { counter-reset: etape; list-style: none; padding: 0; }
.entry ol > li { counter-increment: etape; position: relative; padding: .9rem 1rem .9rem 3.75rem; margin-bottom: .75rem; background: var(--creme); border-radius: var(--radius-sm); }
.entry ol > li::before { content: counter(etape); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--bordeaux); color: #fff; font-weight: 700; font-size: .95rem; }
.entry blockquote { margin: 1.5em 0; padding: 1rem 1.5rem; border-left: 4px solid var(--or); background: var(--creme); font-style: italic; }
.entry img { border-radius: var(--radius-sm); }
.entry .wp-block-gallery { margin-block: 1.5rem; }
.entry .wp-block-gallery img { border-radius: var(--radius-sm); }
.entry .wp-block-image { margin-block: 1.5rem; }
.entry .wp-block-button__link { background: var(--bordeaux); border-radius: 999px; }
.entry table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry th, .entry td { padding: .7rem .9rem; border-bottom: 1px solid var(--gris-clair); text-align: left; }
.entry th { background: var(--creme); color: var(--bleu-nuit); }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip { padding: .5em 1.15em; border-radius: 999px; border: 1px solid var(--gris-clair); color: var(--bleu-nuit); font-weight: 600; text-decoration: none; background: #fff; transition: all .2s; }
.chip:hover, .chip.is-active { background: var(--bleu); border-color: var(--bleu); color: #fff; }

/* Formations */
.domaine-block { scroll-margin-top: 120px; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--gris-clair); }
.domaine-block:last-child { border-bottom: 0; margin-bottom: 0; }
.domaine-block__head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.75rem; }
.domaine-block__head .domaine__icon { margin: 0; background: var(--bordeaux); }
.domaine-block__title { font-size: 1.9rem; margin-bottom: .25rem; }
.domaine-block__title a { color: inherit; text-decoration: none; }
.domaine-block__head p { color: var(--gris); margin: 0; }
.filieres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.filiere { position: relative; padding: 1.6rem 1.5rem 3.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--gris-clair); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.filiere:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--or); }
.filiere__level { display: inline-block; margin: 0 0 .75rem; padding: .2em .75em; border-radius: 999px; background: var(--or-pale); color: var(--bordeaux); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.filiere__title { font-size: 1.2rem; margin-bottom: .5rem; }
.filiere__title a { color: var(--bleu-nuit); text-decoration: none; }
.filiere__title a::after { content: ""; position: absolute; inset: 0; }
.filiere__excerpt { color: var(--gris); font-size: .96rem; margin: 0; }
.filiere__more { position: absolute; right: 1.25rem; bottom: 1.1rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--creme); color: var(--bordeaux); transition: background .2s, color .2s; }
.filiere:hover .filiere__more { background: var(--bordeaux); color: #fff; }
.back-link { margin-top: 2.5rem; }

.formation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.formation-aside { position: sticky; top: 120px; }
.info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.75rem; border-top: 4px solid var(--bordeaux); display: grid; gap: .75rem; }
.info-card__title { font-size: 1.3rem; margin: 0; }
.info-card dl { margin: 0 0 .5rem; }
.info-card dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--gris-clair); }
.info-card dt { color: var(--gris); font-size: .95rem; }
.info-card dd { margin: 0; font-weight: 700; text-align: right; color: var(--bleu-nuit); }
.checklist { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; margin: 0 !important; background: var(--creme); border-radius: var(--radius-sm); font-weight: 600; }
.checklist .icon { color: #1f9d55; margin-top: .2em; }

/* Article */
.page-hero--article .card__meta { margin-bottom: 1rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--gris-clair); font-weight: 600; }
.post-nav div:last-child { text-align: right; }
.post-nav a { text-decoration: none; }

.nav-links { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--gris-clair); text-decoration: none; color: var(--bleu-nuit); font-weight: 600; }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { background: var(--bleu); border-color: var(--bleu); color: #fff; }

.empty { text-align: center; color: var(--gris); padding: 2rem 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list strong { display: block; color: var(--bleu-nuit); }
.contact-list a { display: block; text-decoration: none; }
.contact-list__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--or-pale); color: var(--bordeaux); flex-shrink: 0; }
.contact-info .socials { margin-top: 1.5rem; }
.contact-form { background: #fff; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 4px solid var(--or); scroll-margin-top: 120px; }
.contact-form h2 { font-size: 1.6rem; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.85); }

/* Formulaires */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--bleu-nuit); }
.form .req { color: var(--bordeaux); }
.form input, .form select, .form textarea, .search-form input {
	width: 100%; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--texte);
	background: var(--creme); border: 1px solid var(--gris-clair); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus, .search-form input:focus { outline: none; border-color: var(--bleu); background: #fff; box-shadow: 0 0 0 4px rgba(4, 69, 127, .12); }
.form button { justify-self: start; }
.form__note { font-size: .9rem; color: var(--gris); margin: 0; }
.entry .form { margin: 1.5rem 0; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--gris-clair); border-top: 4px solid var(--or); border-radius: var(--radius); box-shadow: var(--shadow); }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.notice p { margin: 0; }
.notice--ok { background: #e8f6ee; color: #145c33; border: 1px solid #b8e2c8; }
.notice--ok .icon { color: #1f9d55; margin-top: .2em; }
.notice--erreur { background: #fdecee; color: #7a0c16; border: 1px solid #f4c4c9; }
.search-form { display: flex; gap: .5rem; max-width: 520px; margin: 1.5rem auto; }
.search-form .btn { padding-inline: 1rem; }

/* ==========================================================================
   8. Pied de page
   ========================================================================== */
.site-footer { background: var(--bleu-encre); color: rgba(255, 255, 255, .72); font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: clamp(48px, 7vw, 80px); }
.site-footer__logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 1.25rem; }
.site-footer__logo img { width: 110px; }
.site-footer__brand p { max-width: 24em; }
.site-footer__title { font-family: var(--font-texte); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or); margin-bottom: 1.25rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--or-clair); }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.site-footer__contact li { display: flex; gap: .75rem; }
.site-footer__contact .icon { color: var(--or); margin-top: .25em; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }
.site-footer__motto { font-family: var(--font-titre); font-style: italic; color: var(--or-clair); }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float .icon { width: 30px; height: 30px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   9. Adaptation aux écrans
   ========================================================================== */
@media (max-width: 1180px) {
	.nav .menu a { padding: .5rem .55rem; font-size: .95rem; }
	.nav .menu > li > a::after { left: .55rem; right: .55rem; }
	.features, .domaines { grid-template-columns: repeat(2, 1fr); }
	.hide-md { display: none !important; }
}

@media (max-width: 1024px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: var(--header-bottom, 88px) 0 0 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1.25rem var(--gutter) 2rem; background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.nav-open { overflow: hidden; }
	.nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav .menu > li { border-bottom: 1px solid var(--gris-clair); }
	.nav .menu a { padding: .95rem .25rem; font-size: 1.1rem; }
	.nav .menu > li > a::after, .nav .menu-item-has-children > a::before { display: none; }
	.nav .sub-menu { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 0 0 .75rem 1rem; min-width: 0; }
	.nav .sub-menu a { padding: .5rem .25rem; font-size: 1rem; color: var(--gris); }
	.nav__cta { align-self: stretch; padding-block: .95rem; font-size: 1.05rem; }

	.hero__inner { grid-template-columns: 1fr; }
	.hero__emblem { display: none; }
	.stats__grid { grid-template-columns: repeat(3, 1fr); }
	.stats__grid li:nth-child(3) { border-right: 0; }
	.stats__grid li:nth-child(n+4) { border-top: 1px solid var(--gris-clair); }
	.stats__grid li:last-child { grid-column: span 1; }
	.president__grid { grid-template-columns: 1fr; }
	.president__photo { max-width: 360px; }
	.news-layout, .news-layout .cards { grid-template-columns: 1fr; }
	.news-layout--full .cards, .cards--3, .filieres { grid-template-columns: repeat(2, 1fr); }
	.formation-layout, .contact-layout { grid-template-columns: 1fr; }
	.formation-aside { position: static; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.topbar__info li:nth-child(2) { display: none; }
	.site-header__inner { min-height: 72px; }
	.brand__logo, .site-header.is-scrolled .brand__logo { width: 54px; }
	.brand__name { font-size: .95rem; }
	.brand__tag { display: none; }
	.hero__actions .btn { width: 100%; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.stats__grid li { border-right: 1px solid var(--gris-clair) !important; border-top: 1px solid var(--gris-clair); padding: 1.25rem .75rem; }
	.stats__grid li:nth-child(-n+2) { border-top: 0; }
	.stats__grid li:nth-child(2n) { border-right: 0 !important; }
	.stats__grid li:last-child { grid-column: 1 / -1; border-right: 0 !important; }
	.features, .domaines, .cards--3, .news-layout--full .cards, .filieres, .testimonials__grid, .checklist, .form__row { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.cta-band__actions, .cta-band__actions .btn { width: 100%; }
	.president__photo::before { inset: 12px -12px -12px 12px; }
	.map iframe { height: 320px; }
	.whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
