/* ==========================================================================
   AFLEC — main stylesheet
   Logical properties throughout so Arabic (RTL) mirrors without overrides.
   ========================================================================== */

:root {
	/* Colours sampled from the AFLEC logo. */
	--ink: #212C61;          /* logo navy: text, footer */
	--ink-soft: #46507A;
	--blue: #226198;         /* logo blue: links, accents */
	--red: #EC1B2E;          /* logo red: the network line, dots, rules */
	--red-dark: #C8102E;     /* buttons (white text needs the darker red for contrast) */
	--red-deep: #A20D25;
	--green: #37B34A;        /* logo green: small accents only */
	--cedar: #1E7B34;        /* green dark enough for text */
	--mist: #EDF1F7;         /* alternate section background */
	--line: #CDD4E2;
	--paper: #FFFFFF;
	--muted: #5A6577;

	--serif: "Plex Serif", Georgia, "Times New Roman", serif;
	--sans: "Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

	--step--1: clamp(.83rem, .8rem + .15vw, .9rem);
	--step-0: clamp(1rem, .97rem + .15vw, 1.075rem);
	--step-1: clamp(1.2rem, 1.12rem + .35vw, 1.4rem);
	--step-2: clamp(1.44rem, 1.3rem + .7vw, 1.85rem);
	--step-3: clamp(1.73rem, 1.48rem + 1.2vw, 2.45rem);
	--step-4: clamp(2.07rem, 1.66rem + 2vw, 3.25rem);

	--gutter: clamp(16px, 4vw, 40px);
	--content: 46rem;
	--wide: 76rem;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--step-0);
	line-height: 1.6;
	overflow-x: hidden;
}
img, video, svg, iframe, object { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4, .h4 { font-size: var(--step-0); font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-content { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* Buttons ------------------------------------------------------------- */
.btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--red-dark); color: #fff; border: 2px solid var(--red-dark);
	border-radius: var(--radius); padding: .7em 1.25em; min-height: 44px;
	font: 600 var(--step--1)/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover, .wp-block-button__link:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-outline, .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover, .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.btn-small { padding: .45em .9em; min-height: 36px; }
.btn-block { width: 100%; }
.text-link { font-weight: 600; font-size: var(--step--1); white-space: nowrap; }

/* Header -------------------------------------------------------------- */
.site-header { position: relative; z-index: 50; background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { width: auto; height: 64px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; padding-inline-start: .9rem; border-inline-start: 1px solid var(--line); }
.brand-name { font: 700 1.06rem/1.25 var(--sans); color: var(--ink); max-width: 21rem; }
.brand-sub { font-size: .82rem; font-weight: 500; color: var(--blue); line-height: 1.3; }
.header-cta { margin-inline: .35rem; }
@media (max-width: 1199px) { .header-cta { display: none; } }
.tricolore { display: flex; height: 4px; }
.tricolore span { flex: 1; background: var(--blue); }
.tricolore span:nth-child(2) { background: var(--red); }
.tricolore span:nth-child(3) { background: var(--green); }
[lang="ar"] { font-family: "Plex Arabic", "Segoe UI", Tahoma, sans-serif; }
.header-tools { display: flex; align-items: center; gap: .35rem; }
.langs ul { display: flex; list-style: none; margin: 0; padding: 0; }
.langs a { display: grid; place-items: center; min-width: 40px; min-height: 40px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--muted); border-radius: var(--radius); }
.langs a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.langs a:hover { color: var(--red-dark); }
.search-toggle, .menu-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 44px; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; font: 600 .85rem var(--sans); border-radius: var(--radius); }
.search-toggle:hover, .menu-toggle:hover { color: var(--red); }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; }
.site-search { border-top: 1px solid var(--line); padding-block: 1rem; background: #fff; }
.search-form { display: flex; gap: .5rem; max-width: 40rem; }
.search-form input { flex: 1; min-width: 0; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }

/* Mobile navigation */
@media (max-width: 1023px) {
	.primary-nav { display: none; border-top: 1px solid var(--line); }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--mist); }
	.primary-nav .menu a { display: block; padding: .85rem 0; font-weight: 600; }
	.primary-nav .sub-menu { list-style: none; margin: 0 0 .6rem; padding: 0 0 0 1rem; padding-inline-start: 1rem; }
	.primary-nav .sub-menu a { font-weight: 400; padding: .5rem 0; }
	.brand-sub { display: none; }
	.brand-name { font-size: .88rem; max-width: 13rem; }
	.brand-logo { height: 48px; }
	.brand-text { padding-inline-start: .7rem; }
}
@media (max-width: 420px) { .menu-label { display: none; } }
@media (max-width: 559px) { .brand-text { display: none; } }

/* Desktop navigation: one row, dropdowns on hover/focus */
@media (min-width: 1024px) {
	.menu-toggle { display: none; }
	.primary-nav { border-top: 1px solid var(--mist); }
	.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 0 .25rem; }
	.primary-nav .menu > li { position: relative; }
	.primary-nav .menu > li > a { display: block; padding: .85rem .8rem; font-weight: 600; font-size: .95rem; }
	.primary-nav .menu > li.current-menu-item > a,
	.primary-nav .menu > li.current-menu-ancestor > a,
	.primary-nav .menu > li.current-menu-parent > a { box-shadow: inset 0 -3px 0 var(--red); }
	.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-inline-start: .45em; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
	.primary-nav .sub-menu { position: absolute; inset-inline-start: 0; top: 100%; min-width: 17rem; list-style: none; margin: 0; padding: .5rem 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: 0 12px 24px -12px rgba(33, 44, 97, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a { display: block; padding: .55rem 1.1rem; font-size: .93rem; }
	.primary-nav .sub-menu a:hover { background: var(--mist); color: var(--ink); }
}

/* Hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: clamp(380px, 62vh, 640px); display: flex; align-items: flex-end; background: var(--ink); color: #fff; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(33, 44, 97, .88) 0%, rgba(33, 44, 97, .35) 45%, rgba(33, 44, 97, 0) 75%); }
.hero-text { padding-block: clamp(2rem, 6vw, 4rem); }
.hero-title { font-size: var(--step-4); max-width: 18ch; margin: 0; font-weight: 500; font-style: italic; text-wrap: balance; }
.hero-pause { position: absolute; inset-inline-end: var(--gutter); bottom: 1.25rem; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: rgba(33,44,97,.4); cursor: pointer; }
.hero-pause::before, .hero-pause::after { content: ""; position: absolute; top: 13px; width: 4px; height: 14px; background: #fff; }
.hero-pause::before { left: 15px; } .hero-pause::after { left: 21px; }
.hero-pause[aria-pressed="true"]::before { left: 16px; width: 0; height: 0; background: none; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hero-pause[aria-pressed="true"]::after { display: none; }

/* Content (blocks) ----------------------------------------------------- */
.entry { padding-block: clamp(2rem, 5vw, 3.5rem); }
.entry > * { margin-block: 0 1.1em; }
.entry > :last-child { margin-bottom: 0; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-inline-start: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry blockquote, .wp-block-quote { margin-inline: 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--red); font-family: var(--serif); font-size: var(--step-1); font-style: italic; }
.wp-block-quote cite { display: block; margin-top: .6em; font: normal var(--step--1) var(--sans); color: var(--muted); }
.entry table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.wp-block-table { overflow-x: auto; }
.entry th, .entry td { text-align: start; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { background: var(--mist); }
.wp-block-image figcaption, .wp-element-caption { font-size: var(--step--1); color: var(--muted); margin-top: .5em; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.wp-block-file { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.wp-block-file .wp-block-file__button { background: var(--ink); color: #fff; border-radius: var(--radius); padding: .45em .9em; text-decoration: none; font-size: var(--step--1); }

/* Page widths: text column by default, wide and full blocks break out. */
.home-content.entry { padding-block: 0; }
.home-content > *:not(.alignfull):not(.alignwide) { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.home-content > .alignwide { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.home-content > * { margin-block: clamp(2.5rem, 6vw, 4.5rem); }
.wrap-content .alignwide, .wrap-content .alignfull { margin-inline: 0; }

/* Coloured bands authored with the Group block */
.has-mist-background-color { background-color: var(--mist); }
.has-ink-background-color { background-color: var(--ink); color: #fff; }
.has-ink-background-color a { color: #fff; }
.has-red-background-color { background-color: var(--red); color: #fff; }
.has-cedar-background-color { background-color: var(--cedar); color: #fff; }
.has-white-background-color { background-color: #fff; }
.has-ink-color { color: var(--ink); } .has-red-color { color: var(--red); } .has-cedar-color { color: var(--cedar); }
.wp-block-group.has-background { padding: clamp(2rem, 5vw, 3.5rem) var(--gutter); }
.home-content > .wp-block-group.alignfull.has-background > * { max-width: var(--wide); margin-inline: auto; }
.wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); }

/* Page head ----------------------------------------------------------- */
.page-head { background: var(--mist); padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; max-width: 26ch; text-wrap: balance; }
.page-head .lede { margin: .8rem 0 0; color: var(--ink-soft); font-size: var(--step-1); max-width: 40rem; }
.kicker { margin: 0 0 .6rem; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.kicker a { color: var(--muted); }
.kicker a:hover { color: var(--red-dark); }
.kicker .sep { margin-inline: .4em; }
.meta { color: var(--muted); font-size: var(--step--1); margin: .7rem 0 0; }

/* Section head -------------------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head .lede { flex-basis: 100%; margin: 0; color: var(--ink-soft); max-width: 40rem; }

/* Cards / news -------------------------------------------------------- */
.card { display: flex; flex-direction: column; background: #fff; }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-fallback { display: block; height: 100%; background: var(--mist) url(../img/logo-aflec.png) center / auto 46% no-repeat; font-size: 0; opacity: .55; }
.card-body { padding-top: .9rem; }
.card-body time { display: block; font-size: var(--step--1); color: var(--muted); margin-bottom: .3rem; }
.card-title { font-size: var(--step-1); margin: 0; text-wrap: pretty; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2.25rem 1.75rem; padding-block: 2rem 3rem; }
.news-row { background: var(--mist); padding-block: clamp(2.5rem, 6vw, 4rem); }
.news-row .card { background: transparent; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .scroller { grid-auto-columns: calc((100% - 3 * 1.5rem) / 4); } }

/* Filters ------------------------------------------------------------- */
.filters ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.filters a { display: inline-block; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: var(--step--1); font-weight: 600; }
.filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters a:hover:not([aria-current]) { border-color: var(--ink); color: var(--ink); }

/* The network band — signature element -------------------------------- */
.network { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: #fff; }
.network-line { position: relative; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.network-track { display: none; }
.network-stops { list-style: none; margin: 0; padding: 0; }
.stop-schools { list-style: none; margin: .3rem 0 0; padding: 0; font-size: var(--step--1); }
.stop-schools a { text-decoration: none; }
.stop-schools a:hover { text-decoration: underline; color: var(--red); }
.stop-city { font: 600 var(--step-1)/1.15 var(--serif); }
.stop-country { display: block; font-size: .78rem; color: var(--muted); }

/* Mobile: a vertical line, west at the top, east at the bottom. */
@media (max-width: 899px) {
	.network-stops { border-inline-start: 3px solid var(--red); margin-inline-start: .5rem; }
	.stop { position: relative; padding: 0 0 1.4rem 1.4rem; padding-inline-start: 1.4rem; }
	.stop-dot { position: absolute; inset-inline-start: -9px; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
}
/* Desktop: one horizontal line, each city placed by its longitude,
   labels alternating above and below the line so they never collide. */
@media (min-width: 900px) {
	.network-line { padding-block: 9.5rem; }
	.network-track { display: flex; justify-content: space-between; position: absolute; inset-inline: var(--gutter); top: 50%; border-top: 3px solid var(--red); padding-top: .35rem; font-size: .72rem; color: var(--muted); }
	.network-stops { position: relative; height: 0; margin-inline: 4.5rem; }
	.stop { position: absolute; top: 0; inset-inline-start: var(--x); width: 0; }
	.stop-dot { position: absolute; top: -9px; inset-inline-start: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); z-index: 1; }
	.stop > :not(.stop-dot) { position: relative; inset-inline-start: 0; width: 12rem; transform: translateX(-50%); text-align: center; }
	.stop:nth-child(odd) > .stop-city { margin-top: 1.2rem; display: block; }
	.stop:nth-child(even) { transform: translateY(-100%); display: flex; flex-direction: column; justify-content: flex-end; }
	.stop:nth-child(even) > .stop-city { display: block; }
	.stop:nth-child(even) .stop-dot { top: auto; bottom: -7px; }
	.stop:nth-child(even) > .stop-schools { margin-bottom: 1.2rem; }
	.stop::before { content: ""; position: absolute; inset-inline-start: -1px; width: 2px; background: var(--line); }
	.stop:nth-child(odd)::before { top: 7px; height: 1rem; }
	.stop:nth-child(even)::before { bottom: -7px; height: 1rem; }
}

/* Schools grid -------------------------------------------------------- */
.schools-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 2rem 1.5rem; }
.school-media { display: block; aspect-ratio: 300 / 161; background: var(--mist); overflow: hidden; margin-bottom: .8rem; }
.school-media img { width: 100%; height: 100%; object-fit: cover; }
.school h3 { margin: 0 0 .2rem; font-size: var(--step-1); }
.school h3 a { text-decoration: none; }
.school-city { color: var(--muted); font-size: var(--step--1); margin: 0 0 .5rem; }
.school-links { display: flex; flex-direction: column; gap: .2rem; font-size: var(--step--1); font-weight: 600; margin: 0; }
.school-layout, .job-layout { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .school-layout, .job-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.school-layout .entry, .job-layout .entry { padding-block: 0; max-width: var(--content); }
.school-cover { margin: 0 0 1.5rem; }
.school-aside, .job-aside { position: sticky; top: 1.5rem; padding: 1.5rem; background: var(--mist); border-top: 3px solid var(--red); }

/* Jobs ---------------------------------------------------------------- */
.jobs-callout { display: grid; gap: .5rem 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--ink); color: #fff; border-radius: var(--radius); }
@media (min-width: 760px) { .jobs-callout { grid-template-columns: auto 1fr auto; } }
.jobs-callout h2 { margin: 0; font-size: var(--step-2); color: #fff; }
.jobs-callout p { margin: 0; }
.jobs-count { display: flex; align-items: baseline; gap: .5rem; font-size: var(--step--1); color: #C9D3E3; }
.jobs-num { font: 600 var(--step-4)/1 var(--serif); color: #fff; }
.job-list { list-style: none; margin: 1.5rem 0 3rem; padding: 0; border-top: 1px solid var(--line); }
.job { padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.job-title { font-size: var(--step-1); margin: 0 0 .5rem; }
.job-title a { text-decoration: none; }
.job-title a:hover { text-decoration: underline; }
.job-facts { display: flex; flex-wrap: wrap; gap: .35rem 2rem; margin: 0; font-size: var(--step--1); }
.job-facts div { display: flex; gap: .4rem; }
.job-facts dt { color: var(--muted); }
.job-facts dt::after { content: " :"; }
.job-facts dd { margin: 0; font-weight: 600; }
.job-facts-col { flex-direction: column; gap: .9rem; margin-bottom: 1.25rem; }
.job-facts-col div { flex-direction: column; gap: 0; }
.job-facts-col dt::after { content: ""; }

/* Media library ------------------------------------------------------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 2rem 1.5rem; padding-block: 2rem 3rem; }
.media-strip .media-grid { padding-block: 0; }
.tile a { display: block; text-decoration: none; }
.tile-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--mist); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-title { display: block; margin-top: .7rem; font: 600 var(--step-1)/1.25 var(--serif); }
.tile a:hover .tile-title { color: var(--red); text-decoration: underline; }
.tile-date { display: block; font-size: var(--step--1); color: var(--muted); margin-top: .2rem; }
.tile-badge { position: absolute; inset-inline-end: .6rem; bottom: .6rem; background: rgba(33, 44, 97, .85); color: #fff; font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: var(--radius); }
.pub-cover { display: grid; place-items: center; height: 100%; padding: 1.25rem; background: var(--ink); color: #fff; text-align: center; font: 500 italic var(--step-1)/1.3 var(--serif); }
.play-btn { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(200, 16, 46, .92); }
.play-btn::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -6px; border-left: 20px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; margin-block: 1.5rem; }
.video-frame iframe, .video-frame video, .video-frame > button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { padding: 0; cursor: pointer; background: #000; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-facade:hover .play-btn { background: var(--red); transform: scale(1.06); }
.pdf-view { width: 100%; height: 80vh; border: 1px solid var(--line); margin-top: 1.5rem; }

/* Gallery + lightbox */
.wp-block-gallery { gap: .75rem; }
.album .wp-block-gallery img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(15, 20, 48, .94); padding: 3.5rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 8rem); width: auto; object-fit: contain; }
.lightbox figcaption { color: #E5EAF1; text-align: center; margin-top: .75rem; font-size: var(--step--1); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }

/* Instagram */
.ig { padding-block: clamp(2.5rem, 6vw, 4rem); }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 700px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }
.ig-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--mist); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.ig-grid a:hover img { opacity: .85; }
.ig-play { position: absolute; top: .5rem; inset-inline-end: .5rem; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }

/* Partner logos (Group with class "logos") */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.75rem; }
.logos figure, .logos .wp-block-image { margin: 0; }
.logos img { max-height: 76px; width: auto; object-fit: contain; }

/* Child pages + search results */
.child-pages { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: .5rem; }
.child-pages a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: var(--mist); text-decoration: none; font-weight: 600; border-inline-start: 3px solid var(--red); }
.child-pages a:hover { background: var(--ink); color: #fff; }
.search-results { list-style: none; padding: 0; margin: 2rem 0; }
.search-results li { padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.search-results h2 { font-size: var(--step-1); margin: 0 0 .3rem; }
.search-results .kicker { margin-bottom: .3rem; }
.empty { padding-block: 2.5rem; color: var(--muted); }
.wrap-content > .search-form { margin-block: 2rem 0; }

/* Article */
.article-cover { margin-block: 2rem 0; }
.article-cover img { width: 100%; }
.post-nav { display: grid; gap: 1rem; padding-block: 0 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav > div:last-child { text-align: end; } }
.post-nav a { text-decoration: none; font-weight: 600; }
.post-nav span { display: block; font-size: var(--step--1); font-weight: 400; color: var(--muted); }

/* Pagination */
.pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 3rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Contact form */
.contact-form-wrap { max-width: var(--content); }
.contact-form .field { margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.contact-form label { font-weight: 600; font-size: var(--step--1); }
.contact-form .req { font-weight: 400; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
	width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid #8592A6; border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); outline: 3px solid rgba(236, 27, 46, .35); outline-offset: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-check { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; }
.field-check input { margin-top: .3rem; width: 20px; height: 20px; flex: none; }
.field-check label { font-weight: 400; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; }
.notice-ok { background: #E3F1EA; color: #145238; border-inline-start: 4px solid var(--cedar); }
.notice-err { background: #FBE7E8; color: #7E171B; border-inline-start: 4px solid var(--red); }

/* Footer — same pattern as the LFI Dubai and LFITM sites ---------------- */
.site-footer { background: var(--ink); color: #DCE3EE; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { font: 700 1.12rem/1.3 var(--sans); color: #fff; margin: 0 0 1.1rem; }
.footer-top { display: grid; gap: 2.5rem 2rem; padding-block: clamp(2.75rem, 6vw, 4.25rem) 2.5rem; }
@media (min-width: 700px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.25fr 1fr 1fr 1fr; } }
.footer-brand { display: inline-block; margin-bottom: 1.25rem; }
.footer-logo { width: 132px; height: auto; background: #fff; padding: 10px 12px; border-radius: 10px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.5; }
.footer-contact svg { flex: none; color: #fff; margin-top: .05rem; }
.footer-contact a { text-decoration: underline; text-underline-offset: .2em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-links-2 { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); }
.social { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--ink); }
.social a:hover { background: var(--red); color: #fff; }
.site-footer .social { gap: .55rem; margin-bottom: 1.4rem; }
.site-footer .social a { width: 44px; height: 44px; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.site-footer .social a:hover { background: #fff; color: var(--ink); text-decoration: none; }
.footer-tiles { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; width: 7.5rem; min-height: 6.5rem; padding: .75rem; background: #fff; border-radius: 12px; text-align: center; font-weight: 600; font-size: .85rem; line-height: 1.25; }
.site-footer .footer-tile, .site-footer .footer-tile:hover { color: var(--ink); text-decoration: none; }
.footer-tile:hover { box-shadow: 0 0 0 3px var(--red); }
.footer-tile .tile-num { font: 600 2rem/1 var(--serif); color: var(--red-dark); }
.footer-tile svg { color: var(--red-dark); }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding-block: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.footer-homolog { display: flex; align-items: center; gap: 1.1rem; max-width: 34rem; }
.footer-homolog p { margin: 0; color: #fff; font-size: 1rem; line-height: 1.45; }
.badge-tile { display: grid; place-items: center; height: 76px; padding: .45rem .7rem; background: #fff; border-radius: 10px; flex: none; }
.badge-tile img { display: block; height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.badge-homolog { width: 8.75rem; }
.footer-partners { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.footer-partners .badge-tile { width: 6.5rem; }
.footer-partners .badge-wide { width: 10rem; }
.footer-partners .badge-wide img { height: auto; max-height: 52px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.2rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }

/* Cookie note */
.cookie-note { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 150; max-width: 34rem; margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 1.2rem; background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--ink); box-shadow: 0 16px 32px -16px rgba(33, 44, 97, .45); font-size: var(--step--1); }
.cookie-note p { margin: 0; flex: 1 1 16rem; }
.cookie-note[hidden] { display: none; }

@media print {
	.site-header nav, .header-tools, .site-footer, .cookie-note, .hero-pause { display: none !important; }
	body { color: #000; }
}
.has-blue-background-color { background-color: var(--blue); color: #fff; }
.has-blue-color { color: var(--blue); }

/* Full-width coloured bands follow each other without a white gap. */
.home-content > .alignfull { margin-block: 0; }
.home-content > .alignfull + :not(.alignfull) { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.home-content > :not(.alignfull) + .alignfull { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.network-line .stop-city { font-size: var(--step-1); }
.wp-block-group.logos, .wp-block-group.logos > .wp-block-group__inner-container { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.75rem 3rem; }
.wp-block-group.logos > .wp-block-group__inner-container { width: 100%; }
.wp-block-group.logos figure { flex: 0 1 auto; margin: 0 !important; max-width: 100% !important; width: auto; }
.wp-block-group.logos img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 600px) { .wp-block-group.logos img { height: 44px; } }
/* The school pictures are badge-style logos: show them whole. */
.school-media { background: #fff; border: 1px solid var(--mist); }
.school-media img { object-fit: contain; padding: .5rem; }
.school-cover img { max-height: 320px; width: auto; }

.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--ink); text-decoration: none; }
/* Wide blocks inside a text-width page break out to the wide width. */
@media (min-width: 900px) {
	.wrap-content > .alignwide, .entry.wrap-content > .alignwide {
		width: min(var(--wide), calc(100vw - 2 * var(--gutter)));
		max-width: none;
		margin-inline: calc(50% - min(var(--wide), calc(100vw - 2 * var(--gutter))) / 2);
	}
}
/* Albums: an even photo grid whatever the number of photos. */
.wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.wp-block-gallery.has-nested-images figure.wp-block-image a, .wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Home page v2 — the association first: who we are, the network in figures,
   the three languages, then the schools grouped by country.
   ========================================================================== */
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.eyebrow { margin: 0 0 .6rem; font: 700 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

.hero-v2 { min-height: clamp(540px, 80vh, 760px); align-items: center; }
.hero-v2::after { background: linear-gradient(90deg, rgba(25, 34, 80, .94) 0%, rgba(33, 44, 97, .82) 42%, rgba(33, 44, 97, .35) 75%, rgba(33, 44, 97, .2) 100%); }
[dir="rtl"] .hero-v2::after { background: linear-gradient(270deg, rgba(25, 34, 80, .94) 0%, rgba(33, 44, 97, .82) 42%, rgba(33, 44, 97, .35) 75%, rgba(33, 44, 97, .2) 100%); }
@media (max-width: 799px) { .hero-v2::after, [dir="rtl"] .hero-v2::after { background: linear-gradient(to top, rgba(25, 34, 80, .95) 0%, rgba(33, 44, 97, .8) 55%, rgba(33, 44, 97, .45) 100%); } }
.hero-copy { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(5rem, 9vw, 6.5rem); }
.hero-copy > * { max-width: 40rem; }
.hero-kicker { display: inline-flex; flex-wrap: wrap; gap: .2rem .6rem; margin: 0 0 1.2rem; padding: .4rem .9rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font: 600 .8rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.hero-since { color: #C9D3E3; }
.hero-v2 .hero-title { max-width: 20ch; margin: 0 0 1rem; font: 600 clamp(2.05rem, 1.35rem + 3vw, 3.55rem)/1.12 var(--serif); font-style: normal; color: #fff; }
.hero-motto { margin: 0 0 1.5rem; font: italic 500 var(--step-1)/1.4 var(--serif); color: #E5EAF3; }
.hero-langs { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.hero-langs li { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem .45rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 600; font-size: 1.02rem; color: #fff; backdrop-filter: blur(4px); }
.hero-langs li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.hero-langs .hl-ar::before { background: var(--red); }
.hero-langs .hl-en::before { background: var(--green); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.hero-ctas .btn { font-size: .95rem; padding: .8em 1.4em; }

/* Key figures: a white card overlapping the bottom of the hero */
.figures { position: relative; z-index: 2; margin-top: -3.75rem; }
.figures-list { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; margin-block: 0; padding-block: 0; }
.figures-list li { background: #fff; padding: 1.25rem 1.1rem; border-bottom: 1px solid var(--mist); }
.figures-list li:nth-child(odd) { border-inline-end: 1px solid var(--mist); }
.figures-list li:last-child { grid-column: 1 / -1; border-inline-end: 0; }
.figures-list a { display: block; text-decoration: none; }
.figures-list a:hover .fig-label { color: var(--red-dark); text-decoration: underline; }
.fig-num { display: block; font: 600 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1 var(--serif); color: var(--ink); }
.fig-label { display: block; margin-top: .35rem; font-size: .9rem; color: var(--muted); line-height: 1.3; }
.figures-list li:nth-child(1) .fig-num { color: var(--blue); }
.figures-list li:nth-child(5) .fig-num { color: var(--red-dark); }
@media (min-width: 900px) {
	.figures-list { grid-template-columns: repeat(5, 1fr); box-shadow: 0 18px 40px -22px rgba(33, 44, 97, .45); border-radius: 6px; overflow: hidden; padding-inline: 0; max-width: calc(var(--wide)); }
	.figures-list li, .figures-list li:nth-child(odd) { border-bottom: 0; border-inline-end: 1px solid var(--mist); padding: 1.6rem 1.5rem; }
	.figures-list li:last-child { grid-column: auto; border-inline-end: 0; }
}
@media (max-width: 899px) { .figures-list { padding-inline: 0; margin-inline: var(--gutter); width: auto; box-shadow: 0 18px 40px -22px rgba(33, 44, 97, .45); border-radius: 6px; overflow: hidden; } }

/* Three languages, three cultures */
.langs3 { padding-block: clamp(3rem, 7vw, 5rem); }
.langs3-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.langs3-head h2 { margin-bottom: .5rem; }
.langs3-head .lede { margin: 0; font-size: var(--step-1); color: var(--ink-soft); }
.langs3-grid { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 800px) { .langs3-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.l3 { position: relative; padding: 2rem 1.75rem 1.75rem; background: var(--mist); border-top: 5px solid var(--blue); border-radius: 0 0 6px 6px; }
.l3-ar { border-top-color: var(--red); }
.l3-en { border-top-color: var(--green); }
.l3-word { display: block; margin-bottom: 1rem; font: 600 clamp(2rem, 1.6rem + 1.5vw, 2.6rem)/1.1 var(--serif); color: var(--blue); }
.l3-ar .l3-word { font-family: "Plex Arabic", sans-serif; color: var(--red-dark); }
.l3-en .l3-word { color: var(--cedar); }
.l3 h3 { margin: 0 0 .4rem; font: 700 1.05rem/1.3 var(--sans); }
.l3 p { margin: 0; color: var(--ink-soft); }

/* Home content blocks */
.home-content > .values { text-align: center; }
.home-content > .values h2 { margin-top: 0; }
#espagne { scroll-margin-top: 1rem; }
.wp-block-details { margin-block: 1.25rem 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.wp-block-details summary { cursor: pointer; font-weight: 600; color: var(--red-dark); list-style-position: inside; }
.wp-block-details summary:hover { text-decoration: underline; }
.wp-block-details[open] summary { margin-bottom: 1rem; }
.home-content .work .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.home-content .work .wp-block-column { display: flex; flex-direction: column; }
.home-content .work .wp-block-buttons { margin-top: auto; }
.home-content .eleve .wp-block-image img { border-radius: 6px; }
.home-content > .pupils { margin-block: 0; max-width: none; padding-inline: 0; }
.pupils .wp-block-gallery.has-nested-images { grid-template-columns: repeat(7, 1fr); gap: 0; }
.pupils .wp-block-gallery.has-nested-images figure.wp-block-image { aspect-ratio: 3 / 5; }
@media (max-width: 799px) { .pupils .wp-block-gallery.has-nested-images { grid-template-columns: repeat(4, 1fr); } .pupils figure:nth-child(n+5) { display: none; } }

/* News: grid of six on large screens, swipeable row on phones */
@media (min-width: 900px) {
	.news-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 2.25rem 1.75rem; padding-bottom: 0; }
}

/* Schools grouped by country */
.schools-by-country { display: grid; gap: 2.5rem 1.5rem; }
@media (min-width: 640px) { .schools-by-country { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; } .country { grid-column: span min(var(--n, 1), 2); } }
@media (min-width: 1100px) { .schools-by-country { grid-template-columns: repeat(4, 1fr); } .country { grid-column: span min(var(--n, 1), 4); } }
.country-name { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); font-size: var(--step-1); }
.country-count { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .4rem; border-radius: 999px; background: var(--red-dark); color: #fff; font: 600 .8rem/1 var(--sans); }
.country .schools-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; }
@media (min-width: 1100px) { .country .schools-grid { grid-template-columns: repeat(var(--n, 1), 1fr); } }
.school { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.school .school-media { position: relative; aspect-ratio: 16 / 10; margin: 0; border: 0; border-radius: 0; background: #fff; }
.school .school-media .school-photo { width: 100%; height: 100%; object-fit: cover; padding: 0; transition: transform .3s; }
.school:hover .school-photo { transform: scale(1.03); }
.school .school-media .school-logo { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.school-badge { position: absolute; inset-inline-start: .7rem; bottom: .7rem; display: grid; place-items: center; width: 4.75rem; height: 3rem; background: #fff; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.2); overflow: hidden; }
.school-badge img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.school-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.15rem; }
.school-title { margin: 0 0 .2rem; font: 600 var(--step-1)/1.25 var(--serif); }
.school-title a { text-decoration: none; }
.school-title a:hover { text-decoration: underline; }
.school .school-city { margin-bottom: .75rem; }
.school .school-links { margin-top: auto; }
.partner-card { display: grid; gap: .25rem 1.5rem; align-items: center; padding: 1.5rem; background: var(--mist); border-radius: 6px; border-inline-start: 5px solid var(--green); }
.partner-card img { width: 13rem; height: auto; background: #fff; padding: .5rem .75rem; border-radius: 6px; }
.partner-card p { margin: 0; }
@media (min-width: 800px) { .partner-card { grid-template-columns: auto 1fr auto; } .partner-card img { grid-row: span 2; } .partner-card .eyebrow { grid-column: 2; } .partner-card p:last-child { grid-column: 3; grid-row: 1 / span 2; } }

.entry .schools-grid, .entry .schools-by-country ul { padding: 0; margin: 0; }
.entry .country .schools-grid li { margin: 0; }
.home-content > .jobs-callout { box-sizing: border-box; width: calc(100% - 2 * var(--gutter)); max-width: var(--wide); padding: clamp(1.75rem, 4vw, 2.75rem); }
.home-content > .media-strip { max-width: var(--wide); }
.home-content > .media-strip .media-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.spain-notice .wp-block-column:first-child .wp-block-image img { max-width: 15rem; width: 100%; }
.spain-notice .wp-block-column:first-child { display: flex; flex-direction: column; gap: 1rem; }
.hero-langs .hl-ar span { unicode-bidi: isolate; }
.l3-word { display: inline-block; }
/* Phones: each country's schools scroll sideways instead of stacking. */
@media (max-width: 639px) {
	.country .schools-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
	.country .schools-grid > li { scroll-snap-align: start; }
	.country-partner .partner-card img { width: 11rem; }
}

/* WhatsApp button (shown only when a number is set in Réglages › AFLEC) */
.whatsapp-btn { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 140; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.whatsapp-btn:hover { background: #1EBE5A; color: #fff; }
body:has(.cookie-note:not([hidden])) .whatsapp-btn { bottom: 6.5rem; }
.langs3-more { margin: 1.75rem 0 0; text-align: center; }

/* ==========================================================================
   Home v3 — Spain highlight, compact news, pupils by school,
   recruitment band, compact Instagram, narrower footer.
   ========================================================================== */
/* Spain: the most important announcement, first on the page */
.home-content > .spain-notice { margin-top: 0; padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 5px solid var(--red); }
.spain-notice > * { max-width: var(--wide); margin-inline: auto; }
.spain-notice .eyebrow { display: inline-block; padding: .35rem .8rem; background: var(--red-dark); color: #fff; border-radius: 999px; letter-spacing: .06em; margin-bottom: 1rem; }
.spain-notice > h2 { max-width: 46rem; margin-top: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.spain-facts { gap: 1rem !important; margin-block: 1.5rem 2rem; }
.spain-facts .wp-block-column { padding: 1.1rem 1.25rem; background: #fff; border-radius: 6px; border-top: 4px solid var(--blue); }
.spain-facts .wp-block-column:nth-child(2) { border-top-color: var(--red); }
.spain-facts .wp-block-column:nth-child(3) { border-top-color: var(--green); }
.spain-facts p { margin: 0; color: var(--ink-soft); line-height: 1.4; }
.spain-facts strong { display: block; font: 600 clamp(1.25rem, 1rem + 1vw, 1.7rem)/1.15 var(--serif); color: var(--ink); margin-bottom: .25rem; }
.spain-notice .wp-block-column:first-child .wp-block-image img { max-width: 13rem; }

/* News: smaller cards, four in a row */
.news-row { padding-block: clamp(2rem, 4vw, 3rem); }
.news-row .card-title { font-size: 1.02rem; line-height: 1.3; }
.news-row .card-media { aspect-ratio: 3 / 2; border-radius: 6px; }
.news-row .card-body { padding-top: .6rem; }
.news-row .card-body time { font-size: .8rem; }
@media (min-width: 900px) { .news-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* Pupils: small portraits, each with its school's name */
.pupils-strip { list-style: none; margin: 2.5rem 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(7, 1fr); gap: .9rem; }
.pupils-strip li { margin: 0; }
.pupils-strip figure { margin: 0; text-align: center; }
.pupils-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 18%; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.pupils-strip figcaption { margin-top: .55rem; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.pupils-strip figcaption a { text-decoration: none; }
.pupils-strip figcaption a:hover { color: var(--red-dark); text-decoration: underline; }
@media (max-width: 799px) { .pupils-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem !important; } .pupils-strip li { scroll-snap-align: start; } }

/* Recruitment band */
.work > h2 { margin-bottom: 1.25rem; }
.jobs-band { display: grid; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 10px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #2B3A7E 0%, var(--ink) 55%, #19214A 100%); position: relative; overflow: hidden; }
.jobs-band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--red) 33.3% 66.6%, var(--green) 66.6% 100%); }
@media (min-width: 900px) { .jobs-band { grid-template-columns: 1.35fr 1fr; align-items: center; } }
.jobs-band .eyebrow { color: #9FC3E8; }
.jobs-band .jobs-count { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .25rem; color: #DCE3EE; font-size: 1rem; }
.jobs-band .jobs-num { font: 600 clamp(3rem, 2rem + 4vw, 4.5rem)/1 var(--serif); color: #fff; }
.jobs-band h2 { margin: 0 0 .75rem; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.jobs-lede { margin: 0 0 1.5rem; color: #DCE3EE; max-width: 36rem; }
.jobs-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.jobs-latest { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 1.25rem; }
.jobs-latest h3 { margin: 0 0 .75rem; font: 700 .8rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #9FC3E8; }
.jobs-latest ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: .5rem; }
.jobs-latest li { margin: 0 !important; }
.jobs-latest a { display: block; padding: .7rem .85rem; background: #fff; color: var(--ink); border-radius: 6px; text-decoration: none; border-inline-start: 4px solid var(--red); }
.jobs-latest a:hover { box-shadow: 0 0 0 2px #9FC3E8; color: var(--ink); }
.jobs-latest strong { display: block; font-size: .95rem; line-height: 1.3; }
.jobs-latest span { display: block; margin-top: .15rem; font-size: .8rem; color: var(--muted); }
.home-content .work .wp-block-columns { margin-top: 2rem; }
.home-content .work .wp-block-column { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding-bottom: 1.25rem; }
.home-content .work .wp-block-column > :not(figure) { padding-inline: 1.25rem; }
.home-content .work .wp-block-image { margin: 0 0 1rem; }
.home-content .work .wp-block-image img { border-radius: 0; aspect-ratio: 16 / 9; }
.home-content .work h3 { margin: 0 0 .4rem; }
.home-content .work .wp-block-column p { color: var(--ink-soft); font-size: .95rem; }

/* Instagram: one slim bar; photos appear by themselves once Instagram is connected */
.ig-compact { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.ig-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.ig-handle { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.ig-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: radial-gradient(circle at 30% 110%, #FDCB52 0%, #F56040 35%, #C13584 65%, #5851DB 100%); }
.ig-lede { color: var(--muted); font-weight: 400; font-size: .9rem; }
.ig-thumbs { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; flex: 1 1 20rem; }
.ig-thumbs a { position: relative; display: block; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; }
.ig-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ig-more { margin-inline-start: auto; }

/* Footer: narrower, smaller icons */
.site-footer .wrap { max-width: calc(66rem + 2 * var(--gutter)); }
.site-footer { font-size: .88rem; }
.site-footer h2 { font-size: 1rem; margin-bottom: .85rem; }
.footer-top { padding-block: clamp(2.25rem, 5vw, 3.25rem) 2rem; gap: 2rem 1.75rem; }
.footer-logo { width: 104px; padding: 8px 10px; }
.footer-contact { gap: .7rem; }
.footer-contact svg { width: 17px; height: 17px; }
.footer-links { gap: .55rem; }
.site-footer .social a { width: 34px; height: 34px; border-width: 1.25px; }
.site-footer .social svg { width: 16px; height: 16px; }
.footer-tiles { gap: .5rem; }
.footer-tile { width: 6rem; min-height: 5.25rem; padding: .55rem; font-size: .76rem; border-radius: 10px; }
.footer-tile .tile-num { font-size: 1.55rem; }
.footer-tile svg { width: 22px; height: 22px; }
.footer-badges { padding-block: 1.5rem; gap: 1rem 1.5rem; }
.footer-homolog p { font-size: .88rem; }
.badge-tile { height: 58px; padding: .35rem .55rem; border-radius: 8px; }
.badge-tile img { height: 42px; }
.badge-homolog { width: 7rem; }
.footer-partners { gap: .45rem; }
.footer-partners .badge-tile { width: 5.25rem; }
.footer-partners .badge-wide { width: 8.25rem; }
.footer-partners .badge-wide img { max-height: 40px; }
.footer-bottom-inner { padding-block: 1rem; font-size: .8rem; }
.spain-notice > h2, .entry .spain-notice > h2 { margin-top: .25rem; }
.spain-notice > .eyebrow { margin-top: 0; }
@media (min-width: 1000px) { .footer-homolog { max-width: 24rem; } .footer-homolog p { font-size: .82rem; } }
@media (max-width: 781px) { .spain-notice .wp-block-column:first-child { flex-direction: row !important; flex-wrap: wrap; } .spain-notice .wp-block-column:first-child .wp-block-image img { max-width: 8.5rem; } }

/* ==========================================================================
   Home v4 — languages (compact), values (navy band), pupils on the map, albums mosaic
   ========================================================================== */
/* Three languages: intro on one side, the three languages as rows on the other */
.langs3 { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.langs3-inner { display: grid; gap: 1.75rem 3rem; align-items: center; }
@media (min-width: 900px) { .langs3-inner { grid-template-columns: 5fr 7fr; } }
.langs3-inner .langs3-head { text-align: start; margin: 0; max-width: none; }
.langs3-inner .langs3-head h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem); }
.langs3-inner .langs3-head .lede { font-size: 1.02rem; }
.langs3-inner .langs3-more { text-align: start; margin-top: 1rem; }
.langs3-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.langs3-list .l3 { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-top: 0; border-inline-start: 5px solid var(--blue); border-radius: 6px; }
.langs3-list .l3-ar { border-inline-start-color: var(--red); }
.langs3-list .l3-en { border-inline-start-color: var(--green); }
.langs3-list .l3-word { margin: 0; font-size: 1.55rem; text-align: center; }
.langs3-list .l3 h3 { margin: 0 0 .15rem; font-size: 1rem; }
.langs3-list .l3 p { margin: 0; font-size: .92rem; line-height: 1.45; }
@media (max-width: 520px) { .langs3-list .l3 { grid-template-columns: 1fr; gap: .4rem; } .langs3-list .l3-word { text-align: start; } }

/* Values: a navy band, the three values as large words */
.home-content > .values { text-align: start; color: #E5EAF3; padding-block: clamp(2.5rem, 6vw, 4rem); }
.values .wp-block-columns { align-items: center; }
.values .eyebrow { color: #9FC3E8; margin: 0 0 .5rem; }
.values h2 { color: #fff; margin: 0 0 1.25rem !important; }
.value-pills { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .6rem; }
.value-pills li { margin: 0; padding: .55rem 1.1rem; border-radius: 999px; font: 600 1.15rem/1.2 var(--serif); color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); }
.value-pills li:nth-child(1) { box-shadow: inset 4px 0 0 var(--blue); }
.value-pills li:nth-child(2) { box-shadow: inset 4px 0 0 var(--red); }
.value-pills li:nth-child(3) { box-shadow: inset 4px 0 0 var(--green); }
.values .wp-block-column:last-child { padding-inline-start: clamp(0rem, 3vw, 2.5rem); border-inline-start: 1px solid rgba(255,255,255,.18); }
.values .wp-block-column:last-child p { color: #DCE3EE; font-size: 1.02rem; }
.values .wp-block-column:last-child p strong { color: #fff; font-weight: 500; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
@media (max-width: 781px) { .values .wp-block-column:last-child { border: 0; padding: 0; } }

/* Pupils on the map */
.pupils-map { margin-top: 3rem; }
.pupils-head { text-align: center; margin-bottom: 1rem; }
.pupils-head h2 { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.worldmap { position: relative; max-width: 60rem; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #F4F7FB; }
.worldmap > img { display: block; width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); }
.pin-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(236, 27, 46, .25); }
.pin-label { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .2rem .55rem; border-radius: 4px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 600; box-shadow: 0 2px 8px rgba(33,44,97,.18); }
.pin-label b { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-inline-start: .25rem; border-radius: 999px; background: var(--red-dark); color: #fff; font-size: .7rem; }
.pin-tn .pin-label { bottom: auto; top: calc(100% + 6px); }
.pin-mt .pin-label { left: auto; right: 50%; transform: none; margin-right: 4px; }
.pin-es .pin-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(55, 179, 74, .25); }
.pin-es .pin-label b { background: var(--cedar); }
.pin-fr .pin-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(34, 97, 152, .25); }
.pin-ae { transform: translate(-50%, -90%); }
@media (max-width: 640px) { .pin-label { font-size: .62rem; padding: .1rem .35rem; } .pin-label b { min-width: 1rem; height: 1rem; font-size: .6rem; } .pin-dot { width: 10px; height: 10px; border-width: 2px; } }
.pupils-map .pupils-strip { list-style: none; margin: 1.5rem auto 0 !important; padding: 0 !important; max-width: 60rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: .75rem; }
.pupils-map .pupil { margin: 0; }
.pupils-map figure { margin: 0; text-align: center; }
.pupils-map .pupil img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 8px; border: 0; box-shadow: none; border-bottom: 4px solid var(--ink); }
.pupils-map figcaption { margin-top: .45rem; font-size: .76rem; font-weight: 600; line-height: 1.25; }
.pupils-map figcaption a { text-decoration: none; }
.pupils-map figcaption a:hover { color: var(--red-dark); text-decoration: underline; }
.pupils-map figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
@media (max-width: 799px) { .pupils-map .pupils-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 28%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem !important; } }

/* Albums: one large album and two smaller ones, titles over the photos */
.media-aflec_album .media-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.media-aflec_album .tile a { position: relative; display: block; height: 100%; border-radius: 10px; overflow: hidden; }
.media-aflec_album .tile-media { aspect-ratio: 16 / 10; height: 100%; }
.media-aflec_album .tile-media img { transition: transform .4s; }
.media-aflec_album .tile a:hover img { transform: scale(1.04); }
.media-aflec_album .tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 28, 66, .92) 0%, rgba(20, 28, 66, .45) 38%, rgba(20, 28, 66, 0) 65%); pointer-events: none; }
.media-aflec_album .tile-title { position: absolute; z-index: 1; inset-inline: 1rem; bottom: .9rem; margin: 0; color: #fff; font-size: 1.05rem; line-height: 1.3; text-wrap: balance; }
.media-aflec_album .tile a:hover .tile-title { color: #fff; }
.media-aflec_album .tile-badge { top: .75rem; bottom: auto; inset-inline-end: .75rem; z-index: 1; background: rgba(255,255,255,.92); color: var(--ink); }
@media (min-width: 800px) {
	.media-aflec_album .media-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(2, minmax(11rem, 1fr)); }
	.media-aflec_album .tile:first-child { grid-row: span 2; }
	.media-aflec_album .tile:first-child .tile-title { font-size: 1.5rem; bottom: 1.25rem; inset-inline: 1.5rem; }
	.media-aflec_album .tile-media { aspect-ratio: auto; }
}
.home-content > .media-strip.media-aflec_album .media-grid { grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 800px) { .home-content > .media-strip.media-aflec_album .media-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(2, 13rem); } }
/* Pupils: the whole uniform with the school logo, small */
.pupils-map .pupils-strip { max-width: 44rem; gap: .6rem; }
.pupils-map .pupil img { aspect-ratio: 200 / 400; object-position: 50% 0; }

/* ---------- Home v5: "Visitez nos établissements" banner + moving AFLEC line ---------- */
.schools-banner {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); align-items: center; gap: 1rem;
	margin: 0 0 2.25rem; padding: 1.4rem clamp(1.25rem, 3vw, 2.5rem); min-height: 11rem; overflow: hidden;
	border-radius: 14px; color: #fff;
	background: radial-gradient(120% 140% at 0% 0%, #2f7cc0 0%, var(--blue) 45%, #1b4f86 100%);
}
.schools-banner::before { /* light wave behind the text */
	content: ""; position: absolute; inset: -40% 45% -40% -10%; border-radius: 0 50% 50% 0 / 0 60% 60% 0;
	background: rgba(255,255,255,.07); pointer-events: none;
}
.schools-banner::after { /* the blue-red-green line of the logo */
	content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
	background: linear-gradient(90deg, var(--ink) 0 33.3%, var(--red) 0 66.6%, var(--green) 0);
}
.sb-copy { position: relative; z-index: 1; }
.entry .sb-eyebrow, .sb-eyebrow { margin: 0 0 .35rem; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #CFE3F5; }
.entry .sb-title, .sb-title { margin: 0 0 .45rem; color: #fff; font-size: var(--step-3); line-height: 1.1; }
.entry .sb-lede, .sb-lede { margin: 0 0 .9rem; max-width: 34rem; color: #E4EEF8; font-size: var(--step-0); }
.entry .sb-stats, .sb-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sb-stats li { margin: 0; padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .9rem; }
.sb-stats strong { font: 700 1rem/1 var(--serif); }
.sb-art { position: relative; z-index: 1; width: 100%; height: auto; max-height: 12rem; object-fit: contain; }
[dir="rtl"] .sb-art { transform: scaleX(-1); }
@media (max-width: 720px) {
	.schools-banner { grid-template-columns: 1fr; min-height: 0; }
	.sb-art { max-height: 8.5rem; order: -1; justify-self: end; width: 70%; margin-bottom: -.5rem; }
}

/* The line above each row of photos, with the AFLEC mark travelling along it. */
.country-name { border-bottom: 0; padding-bottom: 0; margin-bottom: .55rem; }
.country-track {
	position: relative; container-type: inline-size; height: 1.9rem; margin: 0 0 1rem;
}
.country-track::before { /* the line itself */
	content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; transform: translateY(-50%);
	background: linear-gradient(90deg, var(--ink), var(--ink) 70%, rgba(33,44,97,.25));
}
[dir="rtl"] .country-track::before { background: linear-gradient(270deg, var(--ink), var(--ink) 70%, rgba(33,44,97,.25)); }
.track-mark {
	position: absolute; top: 0; inset-inline-start: 0; display: grid; place-items: center;
	width: 2.6rem; height: 1.9rem; padding: 0 .35rem;
	background: #fff; border-inline: 3px solid var(--ink); /* the vertical line carrying the logo */
	animation: aflec-track 9s cubic-bezier(.45,.05,.55,.95) infinite;
	animation-delay: calc(var(--i, 0) * -1.6s);
}
.track-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes aflec-track {
	0%   { transform: translateX(0); opacity: 0; }
	8%   { opacity: 1; }
	88%  { opacity: 1; }
	100% { transform: translateX(calc(100cqw - 2.6rem)); opacity: 0; }
}
@keyframes aflec-track-rtl {
	0%   { transform: translateX(0); opacity: 0; }
	8%   { opacity: 1; }
	88%  { opacity: 1; }
	100% { transform: translateX(calc(-100cqw + 2.6rem)); opacity: 0; }
}
[dir="rtl"] .track-mark { animation-name: aflec-track-rtl; }
@media (prefers-reduced-motion: reduce) {
	.track-mark { animation: none; }
}
.country-partner .country-track::before { background: linear-gradient(90deg, var(--green), var(--green) 70%, rgba(55,179,74,.25)); }
.country-partner .track-mark { border-color: var(--green); }
.pupils-head h2 { max-width: 40rem; margin-inline: auto; text-wrap: balance; }

/* ---------- Application form (native, step by step) ---------- */
.app-wrap { --app-r: 10px; max-width: 58rem; margin: 2rem auto; }
.app-lang-note { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 8px; background: var(--mist); color: var(--ink-soft); font-size: .92rem; }
.app-form { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(33,44,97,.35); padding: clamp(1.1rem, 3vw, 2.25rem); overflow: hidden; }
.app-form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--red) 0 66.6%, var(--green) 0); }
.app-form .hp { position: absolute; left: -9999px; }
.entry .app-steps, .app-steps { display: none; list-style: none; margin: .4rem 0 0; padding: 0; counter-reset: s; }
.app-form.is-js .app-steps { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.app-steps li { flex: 1 1 0; min-width: 2.6rem; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; font-size: .78rem; line-height: 1.2; color: var(--muted); cursor: default; }
.app-steps li.is-reachable { cursor: pointer; }
.app-step-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--line); background: #fff; font: 600 .9rem/1 var(--sans); color: var(--muted); transition: background .2s, border-color .2s, color .2s; }
.app-steps li.is-done .app-step-n { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.app-steps li.is-done .app-step-n::before { content: "✓"; font-size: .95rem; }
.app-steps li.is-current .app-step-n { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(33,44,97,.12); }
.app-steps li.is-current { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .app-step-t { display: none; } .app-steps li.is-current .app-step-t { display: none; } }
.app-progress { display: none; height: 4px; margin: .9rem 0 0; border-radius: 4px; background: var(--mist); overflow: hidden; }
.app-form.is-js .app-progress { display: block; }
.app-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--ink)); transition: width .35s ease; }
.app-required-note { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); text-align: end; }
.app-req { color: var(--red-dark); font-weight: 700; }

.app-step { margin-top: 1rem; }
.app-form:not(.is-js) .app-step + .app-step { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.entry .app-step-title, .app-step-title { display: flex; flex-direction: column; gap: .2rem; margin: 0 0 .4rem; font-size: var(--step-2); color: var(--ink); outline: none; }
.app-step-title span { font: 600 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.entry .app-intro, .app-intro { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 46rem; }
.app-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.05rem 1.1rem; }
.app-grid > * { grid-column: span 12; min-width: 0; }
@media (min-width: 700px) {
	.app-grid > .w-half { grid-column: span 6; }
	.app-grid > .w-third { grid-column: span 4; }
	.app-grid > .w-quarter { grid-column: span 3; }
}
.app-field { display: flex; flex-direction: column; gap: .35rem; }
.app-field[hidden], .app-note[hidden], .app-subhead[hidden], .app-repeater[hidden] { display: none !important; }
.app-label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.app-help { font-size: .8rem; color: var(--muted); }
.app-form input[type=text], .app-form input[type=email], .app-form input[type=tel], .app-form input[type=date], .app-form input[type=number], .app-form select, .app-form textarea {
	width: 100%; min-height: 2.85rem; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: var(--app-r); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.app-form textarea { min-height: 8rem; resize: vertical; }
.app-form select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23212C61' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .9rem center; padding-right: 2.4rem; }
.app-form input:focus, .app-form select:focus, .app-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(34,97,152,.15); }
.app-form input:hover:not(:focus), .app-form select:hover:not(:focus), .app-form textarea:hover:not(:focus) { border-color: #aab5cb; }

.app-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-choices.is-stacked { flex-direction: column; }
.app-choice { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.app-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.app-choice span { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; color: var(--ink); transition: all .15s; }
.app-choices.is-stacked .app-choice span { border-radius: var(--app-r); width: 100%; }
.app-choice span::before { content: ""; flex: none; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #aab5cb; background: #fff; transition: all .15s; }
.app-choice input:checked + span { border-color: var(--ink); background: var(--mist); font-weight: 600; }
.app-choice input:checked + span::before { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 40%, #fff 45%); }
.app-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(34,97,152,.2); }

.app-check { flex-direction: row; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--app-r); background: #fbfcfe; }
.app-check input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--ink); }
.app-check label { font-size: .95rem; color: var(--ink); }
.app-check label a { margin-inline-start: .3rem; }

.app-note { padding: .85rem 1.05rem; border-radius: var(--app-r); border-inline-start: 4px solid var(--blue); background: #eef5fc; color: var(--ink); }
.app-note p { margin: 0; font-size: .95rem; }
.app-note-warn { border-color: #d97706; background: #fff7e8; }
.entry .app-subhead, .app-subhead { margin: .6rem 0 -.2rem; font: 600 .82rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

.app-repeater .app-rows { display: grid; gap: .9rem; }
.app-row { margin: 0; padding: 1rem 1.1rem 1.15rem; border: 1.5px dashed #c5cfe0; border-radius: var(--app-r); background: #fbfcfe; min-width: 0; }
.app-row legend { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; float: left; margin: 0 0 .7rem; padding: 0; }
.app-row legend + * { clear: both; }
.app-row-label { font: 600 .85rem/1.2 var(--sans); color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.app-row-n { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; margin-inline-start: .25rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .75rem; }
.app-row-remove { border: 0; background: none; color: var(--red-dark); font: 600 .85rem var(--sans); cursor: pointer; padding: .2rem .4rem; }
.app-row-remove[hidden] { display: none; }
.app-repeater-actions { display: flex; align-items: center; gap: .8rem; margin: .7rem 0 0; }
.app-add { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: 999px; padding: .5rem 1rem; font: 600 .9rem var(--sans); cursor: pointer; }
.app-add:hover { background: var(--blue); color: #fff; }
.app-add[hidden] { display: none; }
.app-count { font-size: .82rem; color: var(--muted); }
.app-form:not(.is-js) .app-add, .app-form:not(.is-js) .app-row-remove { display: none; }

.app-file { position: relative; }
.app-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.app-file-zone { display: flex; align-items: center; gap: .75rem; min-height: 3.6rem; padding: .7rem .9rem; border: 1.5px dashed #aab5cb; border-radius: var(--app-r); background: #fbfcfe; color: var(--ink-soft); font-size: .92rem; cursor: pointer; transition: all .15s; }
.app-file:hover .app-file-zone, .app-file input:focus-visible + .app-file-zone { border-color: var(--blue); background: #eef5fc; }
.app-file-icon { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 8px; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23226198' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M5 20h14'/%3E%3C/svg%3E") no-repeat center; }
.app-file.has-file .app-file-zone { border-style: solid; border-color: var(--green); background: #f1faf3; color: var(--ink); font-weight: 600; }
.app-file.has-file .app-file-icon { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center; }
.app-form:not(.is-js) .app-file input { position: static; opacity: 1; height: auto; }
.app-form:not(.is-js) .app-file-zone { display: none; }

.app-sigpad { position: relative; height: 11rem; border: 1.5px solid var(--line); border-radius: var(--app-r); background: #fff linear-gradient(transparent calc(100% - 3rem), #e3e8f1 calc(100% - 3rem), #e3e8f1 calc(100% - 2.9rem), transparent 0); touch-action: none; }
.app-sigpad canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.app-sig-hint { position: absolute; left: 1rem; bottom: .7rem; font-size: .8rem; color: #9aa5ba; pointer-events: none; }
.app-sigpad.is-signed .app-sig-hint { display: none; }
.app-sig-clear { position: absolute; top: .5rem; right: .5rem; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: .25rem .6rem; font: 600 .8rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.app-sig-alt { display: flex; flex-direction: column; gap: .3rem; margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.app-form:not(.is-js) .app-sigpad { display: none; }

.app-field.is-invalid input, .app-field.is-invalid select, .app-field.is-invalid textarea, .app-field.is-invalid .app-file-zone, .app-field.is-invalid .app-choice span, .app-signature.is-invalid .app-sigpad, .app-check.is-invalid { border-color: var(--red-dark); }
.app-check.is-invalid { background: #fff5f6; }
.app-error { display: block; font-size: .83rem; font-weight: 600; color: var(--red-dark); }
.app-check .app-error { flex-basis: 100%; }
.app-check.is-invalid { flex-wrap: wrap; }

.app-nav { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.app-nav .app-next, .app-nav .app-submit { margin-inline-start: auto; }
.app-nav-pos { font-size: .85rem; color: var(--muted); }
.app-form:not(.is-js) .app-prev, .app-form:not(.is-js) .app-next, .app-form:not(.is-js) .app-nav-pos { display: none; }
.app-nav [hidden] { display: none; }
.app-submit { background: var(--green); border-color: var(--green); }
.app-submit:hover { background: var(--cedar); border-color: var(--cedar); }
.app-form.is-sending .app-submit { opacity: .7; cursor: progress; }
.app-print { margin: .9rem 0 0; text-align: center; }
.app-print button { border: 0; background: none; font: inherit; font-size: .88rem; color: var(--blue); cursor: pointer; text-decoration: underline; }
.app-alert { margin: 0 0 1rem; padding: .9rem 1.1rem; border-radius: 10px; background: #fff1f2; border-inline-start: 4px solid var(--red-dark); color: var(--ink); }
.app-done { text-align: center; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -24px rgba(33,44,97,.35); }
.app-done-icon { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--green); }
.app-done-icon::before { content: "✓"; color: #fff; font-size: 2rem; font-weight: 700; }
.entry .app-done h3, .app-done h3 { margin: 1rem 0 .5rem; font-size: var(--step-2); }
.app-done p { max-width: 34rem; margin: 0 auto; color: var(--ink-soft); }

@media print {
	.site-header, .site-footer, .app-steps, .app-progress, .app-nav, .app-print, .app-add, .app-row-remove, .app-sig-clear, .whatsapp-float, .cookie-note { display: none !important; }
	.app-form { box-shadow: none; border: 0; padding: 0; }
	.app-step { display: block !important; break-inside: avoid-page; margin-top: 1.5rem; }
	.app-step[hidden] { display: block !important; }
}
.app-nav .app-prev { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.app-nav .app-prev:hover { border-color: var(--ink); background: var(--mist); color: var(--ink); }
.app-choice-box span::before { border-radius: 4px; }
.app-choice-box input:checked + span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center; }

/* ==========================================================================
   « L’AFLEC » section — landing hub + Qui sommes-nous / Projet / CA / Pilotage
   ========================================================================== */
.wrap-content > .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.section-nav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.section-nav ul { display: flex; gap: .25rem; list-style: none; margin-block: 0; padding-block: 0; overflow-x: auto; scrollbar-width: none; }
.section-nav a { display: block; padding: .95rem 1rem .85rem; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-soft); border-bottom: 3px solid transparent; }
.section-nav a:hover { color: var(--ink); border-color: var(--line); }
.section-nav a[aria-current] { color: var(--ink); border-color: var(--red); }
.entry .pg-lead, .pg-lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 46rem; margin: 0 0 1.5rem; }
.entry .pg-lead-sm, .pg-lead-sm { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.entry > * + .alignwide, .entry > .alignwide + *, .entry > .alignfull + *, .entry > * + .alignfull { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.entry .eyebrow, .entry p.eyebrow { margin: 0 0 .5rem; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.project-head h2 { margin-top: 0; }

/* figures band inside a page */
.figures.figures-inline { margin-top: 0; background: var(--mist); padding-block: 1.5rem; }
.figures-inline .figures-list li { border-radius: 0; }
@media (min-width: 760px) { .figures-inline .figures-list { grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--mist); } .figures-inline .figures-list li, .figures-inline .figures-list li:last-child { grid-column: auto; border: 0; } }

/* landing hub */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.hub-grid > .wp-block-group { margin: 0 !important; }
.hub-card { position: relative; display: flex; flex-direction: column; min-height: 17rem; padding: 1.6rem 1.5rem 1.4rem !important; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.hub-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--blue); }
.hub-card:nth-child(2)::before { background: var(--red); } .hub-card:nth-child(3)::before { background: var(--green); } .hub-card:nth-child(4)::before { background: var(--ink); }
.hub-card::after { content: ""; position: absolute; inset-inline-end: 1.3rem; top: 1.5rem; width: 3.2rem; height: 3.2rem; border-radius: 14px; background: var(--mist) var(--hub-icon) no-repeat center / 1.7rem; }
.hub-who { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23226198' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3z'/%3E%3C/svg%3E"); }
.hub-project { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E"); }
.hub-board { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7B34' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M19 21V10M9 21v-7M15 21v-7M2 10l10-6 10 6z'/%3E%3C/svg%3E"); }
.hub-team { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212C61' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 14.5c3 0 5.5 2.1 5.5 5'/%3E%3C/svg%3E"); }
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(33,44,97,.45); border-color: transparent; }
.entry .hub-n, .hub-n { margin: 0 0 2.4rem; font: 600 .85rem/1 var(--sans); letter-spacing: .1em; color: var(--muted); }
.entry .hub-title, .hub-title { margin: 0 0 .6rem; font-size: var(--step-2); line-height: 1.15; }
.hub-title a { color: var(--ink); text-decoration: none; }
.hub-title a::after { content: ""; position: absolute; inset: 0; }
.entry .hub-desc, .hub-desc { margin: 0 0 1.2rem; color: var(--ink-soft); }
.entry .hub-more, .hub-more { margin: auto 0 0; font-weight: 600; }
.hub-more a { color: var(--red-dark); text-decoration: none; }
.hub-more a::after { content: " →"; display: inline-block; transition: transform .2s; }
[dir="rtl"] .hub-more a::after { content: " ←"; }
.hub-card:hover .hub-more a::after { transform: translateX(4px); }

/* person bits shared by founders, board and team */
.entry .person-initials, .person-initials { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin: 0 0 .9rem; border-radius: 50%; background: var(--ink); color: #fff; font: 600 1.05rem/1 var(--serif); letter-spacing: .03em; }
.entry .person-name, .person-name { margin: 0 0 .2rem; font: 600 1.1rem/1.25 var(--serif); color: var(--ink); }
.entry .person-role, .person-role { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
.entry .person-badge, .person-badge { display: inline-block; align-self: flex-start; margin: 0 0 .55rem; padding: .22rem .65rem; border-radius: 999px; background: var(--mist); font: 600 .74rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }

/* Qui sommes-nous */
.about-intro { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about-intro { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.about-intro > .wp-block-group { margin: 0 !important; }
.about-text h2 { margin-top: 0; }
.founders { padding: 1.6rem !important; border-radius: 16px; background: var(--mist); display: grid; gap: .9rem; }
.entry .eyebrow-h, .eyebrow-h { margin: 0 0 .2rem; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.founder { display: grid !important; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; align-items: center; margin: 0 !important; padding: 1rem !important; background: #fff; border-radius: 12px; }
.founder .person-initials { grid-row: span 2; margin: 0; }
.founder:nth-of-type(2) .person-initials { background: var(--blue); }
.founder:nth-of-type(3) .person-initials { background: var(--red-dark); }
.founder:nth-of-type(4) .person-initials { background: var(--cedar); }
.founder .person-role { font-size: .85rem; }
.mission-band { background: var(--ink); color: #fff; padding-block: clamp(3rem, 7vw, 5rem) !important; text-align: center; position: relative; overflow: hidden; }
.mission-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--red) 0 66.6%, var(--green) 0); }
.mission-band > * { max-width: 52rem; margin-inline: auto !important; padding-inline: var(--gutter); }
.entry .mission-band .eyebrow { color: #9fc1e6; }
.entry .mission-quote, .mission-quote { position: relative; font: 400 clamp(1.25rem, 1.05rem + .9vw, 1.75rem)/1.5 var(--serif); color: #fff; margin: .5rem auto 1.75rem !important; }
.mission-quote::before { content: "“"; display: block; height: 2.6rem; font-size: 5rem; line-height: 1; color: var(--red); }
.mission-band .value-pills { justify-content: center; }
.entry .value-pills, .value-pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0 !important; margin: 0; }
.value-pills li { margin: 0; padding: .45rem 1.1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font: 600 1rem/1.2 var(--serif); color: #fff; background: rgba(255,255,255,.07); }
.entry .principles-lead, .principles-lead { font: 600 var(--step-1)/1.4 var(--serif); color: var(--ink); max-width: 44rem; margin: 0 0 1.5rem; }
.entry .principles, .principles { counter-reset: pr; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; list-style: none; padding: 0 !important; margin: 0; }
.principles li { counter-increment: pr; position: relative; margin: 0; padding: 3.6rem 1.3rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.principles li::first-letter { text-transform: uppercase; }
.principles li::before { content: "0" counter(pr); position: absolute; top: 1.1rem; inset-inline-start: 1.3rem; font: 600 1.6rem/1 var(--serif); color: var(--blue); }
.principles li:nth-child(2)::before { color: var(--red-dark); } .principles li:nth-child(3)::before { color: var(--cedar); } .principles li:nth-child(4)::before { color: var(--ink); }
.history { padding: clamp(1.75rem, 4vw, 3rem) !important; border-radius: 18px; background: var(--mist); }
.entry .history-title::first-letter { text-transform: uppercase; }
.history-title { margin-top: 0; }
.eras { display: grid; gap: 2rem; margin-top: 1.5rem !important; }
@media (min-width: 900px) { .eras { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; } }
.eras > .wp-block-group { margin: 0 !important; }
.entry .era-label, .era-label { display: inline-block; margin: 0 0 1rem; padding: .35rem .9rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; }
.era-pre .era-label { background: #8a94b3; }
.entry .timeline, .timeline { position: relative; list-style: none; margin: 0; padding: 0 !important; }
.timeline::before { content: ""; position: absolute; top: .4rem; bottom: .4rem; inset-inline-start: .45rem; width: 2px; background: linear-gradient(var(--blue), var(--red), var(--green)); }
.era-pre .timeline::before { background: #c3cad9; }
.timeline li { position: relative; margin: 0 0 1rem; padding-inline-start: 2rem; line-height: 1.55; color: var(--ink-soft); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32rem; width: .95rem; height: .95rem; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-sizing: border-box; }
.era-pre .timeline li::before { border-color: #8a94b3; }
.timeline li strong { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--ink); }

/* Le projet */
.axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.25rem; align-items: start; }
.axes > .wp-block-group { margin: 0 !important; }
.axis { position: relative; padding: 1.6rem 1.5rem !important; border: 1px solid var(--line); border-radius: 16px; background: #fff; border-top: 5px solid var(--axis, var(--blue)); }
.axis:nth-child(2) { --axis: var(--red); } .axis:nth-child(3) { --axis: var(--green); } .axis:nth-child(4) { --axis: var(--ink); } .axis:nth-child(5) { --axis: var(--red); } .axis:nth-child(6) { --axis: var(--green); }
.entry .axis-n, .axis-n { margin: 0 0 .6rem; font: 600 2.6rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--axis, var(--blue)); }
.entry .axis-title, .axis-title { margin: 0 0 .7rem; font-size: 1.2rem; line-height: 1.3; }
.axis-title::first-letter { text-transform: uppercase; }
.entry .axis-text, .axis-text { margin: 0; font-size: .93rem; line-height: 1.65; color: var(--ink-soft); }
.quality { display: grid; gap: 1.5rem 3rem; padding: clamp(1.75rem, 4vw, 3rem) !important; border-radius: 18px; background: var(--ink); color: #e4ebf6; }
@media (min-width: 900px) { .quality { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .quality-more { grid-column: 1 / -1; columns: 2; column-gap: 3rem; } }
.quality > .wp-block-group { margin: 0 !important; }
.quality h2 { color: #fff; margin-top: 0; }
.entry .quality .eyebrow { color: #9fc1e6; }
.quality p { color: #d5deee; }
.quality-more p { break-inside: avoid; margin-top: 0; }
.entry .check-list, .check-list { list-style: none; margin: 0; padding: 1.25rem !important; border-radius: 14px; background: rgba(255,255,255,.07); }
.check-list li { position: relative; margin: 0; padding: .6rem 0 .6rem 2.1rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
[dir="rtl"] .check-list li { padding: .6rem 2.1rem .6rem 0; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .55rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; font-weight: 700; }

/* Membres du CA */
.people-section h3.grid-title { margin: 0 0 1rem; font-size: var(--step-1); display: flex; align-items: center; gap: .8rem; }
.people-section h3.grid-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.people-section + .people-section { margin-top: 2.5rem !important; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1rem; }
.people-grid > .wp-block-group { margin: 0 !important; }
.person-card { display: flex !important; flex-direction: column; padding: 1.3rem !important; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .2s, transform .2s; }
.person-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(33,44,97,.5); }
.person-card:nth-child(3n+2) .person-initials { background: var(--blue); }
.person-card:nth-child(3n) .person-initials { background: var(--cedar); }
.person-card.is-chair { background: var(--ink); border-color: var(--ink); }
.person-card.is-chair .person-initials { background: #fff !important; color: var(--ink); }
.person-card.is-chair .person-name { color: #fff; }
.person-card.is-chair .person-role { color: #c9d4e8; }
.person-card.is-chair .person-badge { background: var(--red-dark); color: #fff; }
.people-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
.is-compact .person-initials { width: 2.6rem; height: 2.6rem; font-size: .9rem; }
.is-compact .person-name { font-size: 1rem; }
.is-compact .person-role { font-size: .85rem; }

/* Groupe de pilotage */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.team-grid > .wp-block-group { margin: 0 !important; }
.team-card { display: flex !important; flex-direction: column; align-items: center; text-align: center; padding: 1.8rem 1.3rem 1.5rem !important; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(var(--mist) 0 5.5rem, #fff 5.5rem); transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(33,44,97,.5); }
.entry .team-photo, .team-photo { width: 8.5rem; height: 8.5rem; margin: 0 0 1.1rem !important; padding: 4px; border-radius: 50%; background: conic-gradient(var(--blue) 0 33%, var(--red) 0 66%, var(--green) 0); }
.team-photo img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 4px solid #fff; background: #fff; }
.team-card .person-badge { align-self: center; }
.team-card h3.person-name { font-size: 1.2rem; margin: 0 0 .5rem; }
/* Classic-theme groups wrap their content in an inner container: let the children
   take part in the parent's grid/flex layout. */
:is(.hub-grid, .hub-card, .about-intro, .founders, .founder, .eras, .axes, .axis, .quality, .people-grid, .person-card, .team-grid, .team-card, .people-section, .project-head, .about-text, .era, .quality-text, .quality-refs, .quality-more, .principles-wrap, .history, .mission-band) > .wp-block-group__inner-container { display: contents; }
:is(.hub-grid, .about-intro, .founders, .eras, .axes, .quality, .people-grid, .team-grid) .wp-block-group { margin-inline: 0 !important; margin-block: 0 !important; max-width: none !important; }
:is(.hub-card, .founder, .axis, .person-card, .team-card) > * , :is(.hub-card, .founder, .axis, .person-card, .team-card) > .wp-block-group__inner-container > * { margin-inline: 0 !important; max-width: none !important; }
.team-card .wp-block-group__inner-container > *, .team-card > * { margin-inline: auto !important; }
.founder > .wp-block-group__inner-container > .person-initials { grid-row: span 2; margin: 0; }
.founders .founder:nth-child(3) .person-initials { background: var(--blue); }
.founders .founder:nth-child(4) .person-initials { background: var(--red-dark); }
.mission-band > .wp-block-group__inner-container > * { max-width: 52rem; margin-inline: auto !important; padding-inline: var(--gutter); }
.timeline li strong { margin-bottom: .1rem; }
@media (min-width: 900px) {
	.people-grid, .people-grid-sm, .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   « Travailler à l’AFLEC » section
   ========================================================================== */
.hub-jobs { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
.hub-training { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7B34' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2.5 9 2.5 12 0v-5M22 9v6'/%3E%3C/svg%3E"); }
.hub-idp { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212C61' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.wrap-content > .jobs-band { margin-top: 2rem; }
.principles.facts li { padding-top: 3.6rem; font-size: 1rem; color: var(--ink); }
.principles.facts li strong { color: var(--ink); }
.roles .role-grid { margin-top: 1.25rem; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
:is(.role-grid, .role-card, .roles, .cta-band, .cta-text, .panel-dark) > .wp-block-group__inner-container { display: contents; }
.role-grid .wp-block-group { margin: 0 !important; max-width: none !important; }
.role-card { position: relative; display: flex !important; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.role-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(33,44,97,.5); }
.role-card > *, .role-card > .wp-block-group__inner-container > * { margin-inline: 0 !important; max-width: none !important; }
.entry .role-photo, .role-photo { margin: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.role-photo img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.role-card:hover .role-photo img { transform: scale(1.05); }
.entry .role-title, .role-title { margin: 1.1rem 1.3rem .4rem !important; font-size: 1.2rem; line-height: 1.3; }
.role-title a { color: var(--ink); text-decoration: none; }
.role-title a::after { content: ""; position: absolute; inset: 0; }
.role-card .hub-more { margin: auto 1.3rem 1.2rem !important; padding-top: .3rem; }
.role-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.role-card:hover::after { transform: scaleX(1); }
.cta-band { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.6rem, 4vw, 2.5rem) !important; border-radius: 18px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--red) 0 66.6%, var(--green) 0); }
.entry .cta-band .eyebrow { color: #9fc1e6; }
.entry .cta-title, .cta-title { margin: 0 !important; color: #fff; font-size: var(--step-2); line-height: 1.2; }
.cta-band .wp-block-buttons { margin: 0 !important; gap: .75rem; }
.cta-band .wp-block-button__link { background: var(--red-dark); color: #fff; }
.cta-band .is-style-outline .wp-block-button__link { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.cta-band .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ink); }
.entry .feature-chips, .feature-chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0 !important; margin: 1.5rem 0 0; }
.feature-chips li { margin: 0; padding: .5rem 1rem .5rem 2.2rem; position: relative; border-radius: 999px; background: var(--mist); font-weight: 600; font-size: .92rem; color: var(--ink); }
[dir="rtl"] .feature-chips li { padding: .5rem 2.2rem .5rem 1rem; }
.feature-chips li::before { content: "✓"; position: absolute; inset-inline-start: .7rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--green); color: #fff; font-size: .7rem; }
.panel-dark { padding: 1.8rem !important; border-radius: 18px; background: var(--ink); color: #d5deee; }
.panel-dark p { color: #d5deee; }
.entry .panel-title, .panel-title { margin: 0 0 .8rem !important; font: 600 1.3rem/1.3 var(--serif); color: #fff !important; }
.panel-dark .wp-block-button__link { background: var(--red-dark); color: #fff; }
.entry .date-chip, .date-chip { display: inline-block; margin: 0 0 1rem; padding: .35rem .9rem; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: .85rem; }
.principles.steps3 li { font: 600 1.15rem/1.4 var(--serif); color: var(--ink); padding-top: 3.8rem; }
.principles.steps3 li::first-letter { text-transform: uppercase; }

/* ==========================================================================
   Ressources éducatives, article, Médiathèque, IDP, Contact, news listing
   ========================================================================== */
.hub-doc { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23226198' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5M10 13h6M10 17h6'/%3E%3C/svg%3E"); }
.hub-pub { --hub-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h12v18H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M8 7h6M8 11h6'/%3E%3C/svg%3E"); }

/* article (intervention) */
:is(.article-aside, .author-card, .toc-card, .article-body, .idp-logo-card, .contact-help, .contact-form-card) > .wp-block-group__inner-container { display: contents; }
.article-aside { display: grid !important; gap: 1rem; align-content: start; }
.author-card { display: grid !important; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; align-items: center; padding: 1.2rem !important; border-radius: 16px; background: var(--mist); }
.author-card > *, .author-card .wp-block-group__inner-container > * { margin: 0 !important; max-width: none !important; }
.entry .author-photo, .author-photo { grid-row: span 3; width: 4.5rem; height: 4.5rem; padding: 3px; border-radius: 50%; background: conic-gradient(var(--blue) 0 33%, var(--red) 0 66%, var(--green) 0); }
.author-photo img { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; }
.author-card .person-badge { margin: .2rem 0 .3rem !important; }
.author-card .person-role { font-size: .82rem; }
.toc-card { padding: 1.2rem 1.3rem !important; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.entry .toc-list, .toc-list { counter-reset: toc; list-style: none; margin: .3rem 0 0; padding: 0 !important; }
.toc-list li { counter-increment: toc; margin: 0; border-top: 1px solid var(--mist); }
.toc-list a { display: flex; gap: .7rem; padding: .65rem 0; text-decoration: none; font-weight: 600; color: var(--ink); }
.toc-list a::before { content: counter(toc); display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; }
.toc-list a:hover { color: var(--red-dark); }
.article-body { max-width: 46rem; margin-inline: auto; }
.article-body p { font-size: 1.04rem; line-height: 1.8; color: #2c3550; }
.entry .chapter-title, .chapter-title { display: flex; align-items: center; gap: .8rem; margin: 3rem 0 1rem !important; padding-bottom: .7rem; border-bottom: 2px solid var(--mist); font-size: var(--step-2); scroll-margin-top: 5rem; }
.chapter-n { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--ink); color: #fff; font: 600 1.2rem/1 var(--serif); }
.chapter-title:nth-of-type(2) .chapter-n { background: var(--blue); }
.check-list-light { background: var(--mist) !important; }
.check-list-light li { color: var(--ink) !important; border-color: #dde4ef !important; }
.entry .article-conclusion, .article-conclusion { margin-top: 2rem; padding: 1.4rem 1.6rem; border-inline-start: 4px solid var(--red); border-radius: 0 14px 14px 0; background: var(--mist); font: 400 1.15rem/1.65 var(--serif) !important; color: var(--ink) !important; }
[dir="rtl"] .article-conclusion { border-radius: 14px 0 0 14px; }

/* media hub */
.entry .media-hub, .media-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; list-style: none; padding: 0 !important; margin: 0 0 1rem; }
.media-hub li { margin: 0; }
.media-hub a { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem 1.4rem; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; position: relative; overflow: hidden; transition: transform .25s; }
.media-hub a::after { content: ""; position: absolute; inset-inline-end: -1.2rem; bottom: -1.2rem; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: rgba(255,255,255,.08); }
.mh-albums a { background: var(--blue); } .mh-videos a { background: var(--red-dark); } .mh-pubs a { background: var(--cedar); } .mh-ig a { background: var(--ink); }
.media-hub a:hover { transform: translateY(-3px); }
.mh-num { font: 600 2.2rem/1 var(--serif); }
.mh-ig .mh-num { font-size: 1.15rem; padding-top: .9rem; }
.mh-label { font-weight: 600; opacity: .9; }
/* the albums mosaic is calmer inside a page */
.wrap-content .media-strip.media-aflec_album .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 12rem; }
.wrap-content .media-strip.media-aflec_album .media-grid > :first-child { grid-row: span 2; grid-column: span 2; }
@media (max-width: 700px) { .wrap-content .media-strip.media-aflec_album .media-grid { grid-template-columns: 1fr 1fr; } .wrap-content .media-strip.media-aflec_album .media-grid > :first-child { grid-column: span 2; grid-row: span 1; } }

/* IDP */
.idp-intro { align-items: center !important; }
.idp-logo-card { display: grid !important; place-items: center; padding: 2.5rem !important; border-radius: 18px; background: var(--mist); min-height: 14rem; }
.entry .idp-logo, .idp-logo { margin: 0 !important; max-width: 22rem; }
.idp-logo img { width: 100%; height: auto; }
@media (min-width: 900px) { .idp-intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) !important; } }

/* contact */
.entry .contact-cards, .contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; list-style: none; padding: 0 !important; margin: 0; }
.contact-cards li { margin: 0; }
.contact-cards a { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; align-items: center; padding: 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.contact-cards a:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -24px rgba(33,44,97,.5); }
.cc-icon { grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--mist); color: var(--blue); }
.cc-phone .cc-icon { color: var(--red-dark); } .cc-email .cc-icon { color: var(--cedar); }
.cc-label { font: 600 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cc-value { font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.contact-grid { margin-top: 2.5rem !important; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) !important; } }
.contact-help { padding: 1.6rem !important; border-radius: 18px; background: var(--mist); align-self: start; }
.contact-form-card { padding: clamp(1.4rem, 3vw, 2.2rem) !important; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -28px rgba(33,44,97,.4); }
.entry .panel-form-title, .panel-form-title { margin-top: 0 !important; }

/* news: featured latest article */
.card-feature { display: grid; gap: 0; margin-top: 2rem; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
@media (min-width: 860px) { .card-feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.cf-media { display: block; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.cf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-feature:hover .cf-media img { transform: scale(1.03); }
.cf-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 3vw, 2.4rem); }
.cf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-size: .85rem; color: var(--muted); }
.cf-cat { padding: .2rem .65rem; border-radius: 999px; background: var(--red-dark); color: #fff; font-weight: 600; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.cf-title { margin: 0 0 .8rem; font-size: var(--step-3); line-height: 1.15; }
.cf-title a { color: var(--ink); text-decoration: none; }
.cf-title a:hover { color: var(--red-dark); }
.cf-excerpt { margin: 0 0 1.2rem; color: var(--ink-soft); line-height: 1.65; }
.cf-more { margin: 0; font-weight: 600; }
.cf-more a { color: var(--red-dark); text-decoration: none; }
.cf-more a::after { content: " →"; }
[dir="rtl"] .cf-more a::after { content: " ←"; }
.card-grid .card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card-grid .card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -24px rgba(33,44,97,.5); }
.card-grid .card-body { padding: 1rem 1.1rem 1.2rem; }
.media-grid > * { border-radius: 12px; overflow: hidden; }

/* ==========================================================================
   School page
   ========================================================================== */
.school-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: clamp(16rem, 34vw, 26rem); display: flex; align-items: flex-end; }
.school-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.school-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(33,44,97,.15) 0%, rgba(33,44,97,.55) 45%, rgba(20,27,62,.92) 100%); }
.school-hero::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 2; height: 5px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--red) 0 66.6%, var(--green) 0); }
.school-hero-inner { position: relative; z-index: 2; width: 100%; padding-block: 2.5rem 2.2rem; }
.school-hero .kicker a { color: #cfe0f3; }
.school-hero-title { display: flex; align-items: center; gap: 1.2rem; }
.school-hero-badge { flex: none; display: grid; place-items: center; width: clamp(4.5rem, 9vw, 6.5rem); height: clamp(4.5rem, 9vw, 6.5rem); padding: .5rem; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.school-hero-badge img { width: 100%; height: 100%; object-fit: contain; }
.school-hero h1 { margin: 0; color: #fff; font-size: var(--step-4); line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.school-hero-place { margin: .5rem 0 0; display: inline-block; padding: .3rem .85rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-weight: 600; font-size: .95rem; }
.school-page { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 960px) { .school-page { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3.5rem; align-items: start; } }
.school-main > .eyebrow { margin: 0 0 .6rem; }
.school-entry .school-lead { font: 400 clamp(1.15rem, 1.05rem + .45vw, 1.4rem)/1.6 var(--serif); color: var(--ink); margin: 0 0 1.75rem; }
.school-entry .school-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: .9rem; list-style: none; padding: 0 !important; margin: 0; }
.school-facts li { display: flex; flex-direction: column; gap: .3rem; margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: var(--mist); border-top: 3px solid var(--blue); font-weight: 600; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.school-facts li:nth-child(4n+2) { border-top-color: var(--red); } .school-facts li:nth-child(4n+3) { border-top-color: var(--green); } .school-facts li:nth-child(4n) { border-top-color: var(--ink); }
.school-facts li strong { font: 600 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.school-tour { margin-top: 2.5rem; }
.school-tour .h4 { margin: 0 0 .8rem; }
.school-card { position: sticky; top: 1.5rem; padding: 1.6rem; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 22px 40px -28px rgba(33,44,97,.6); }
.school-card p { margin: 0 0 .9rem; }
.school-card-label { font: 600 .74rem/1.2 var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: #9fc1e6; margin-bottom: .3rem !important; }
.school-card-host { font: 600 1.15rem/1.3 var(--serif); overflow-wrap: anywhere; }
.school-card .btn { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.school-card .btn-ghost-dark { background: transparent; border: 1.5px solid rgba(255,255,255,.55); }
.school-card .btn-ghost-dark:hover { background: #fff; color: var(--ink); }
.school-card-jobs { margin: .4rem 0 0 !important; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.15); }
.school-card-jobs a { color: #fff; font-weight: 600; text-decoration: none; }
.school-card-jobs a:hover { text-decoration: underline; }
.btn-block { display: block; width: 100%; text-align: center; }
.other-schools { background: var(--mist); padding-block: clamp(2rem, 5vw, 3.5rem); }
.other-schools h2 { margin: 0 0 1.25rem; font-size: var(--step-2); }
.other-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.other-list li { margin: 0; }
.other-list a { display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.other-list a:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(33,44,97,.55); }
.ol-img { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; display: grid; place-items: center; }
.ol-img img { width: 100%; height: 100%; object-fit: cover; }
.ol-name { padding: .8rem .9rem .1rem; font: 600 1rem/1.3 var(--serif); }
.ol-city { padding: 0 .9rem .9rem; font-size: .85rem; color: var(--muted); }
.school-entry > :first-child { margin-top: 0 !important; }
@media (max-width: 959px) { .school-card { position: static; } }

/* ==========================================================================
   Espace personnel (Microsoft 365 + SharePoint)
   ========================================================================== */
.staff-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding-inline: .55rem; color: var(--ink); font: 600 .85rem var(--sans); text-decoration: none; border-radius: var(--radius); }
.staff-link:hover, .staff-link[aria-current] { color: var(--red); }
@media (max-width: 1199px) { .staff-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.staff { --staff-navy: #17204A; background: var(--mist); }
.staff svg { flex: none; }
.staff-kicker { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9FC3E8; }
.staff-lock svg { width: 16px; height: 16px; }

/* Signed-out gate */
.staff-gate { position: relative; overflow: hidden; color: #fff; background:
	radial-gradient(60rem 30rem at 85% -10%, rgba(34,97,152,.55), transparent 60%),
	radial-gradient(40rem 22rem at -5% 110%, rgba(236,27,46,.22), transparent 60%),
	var(--staff-navy); padding-block: clamp(3rem, 8vw, 6.5rem); }
.staff-gate::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--red) 33.3% 66.6%, var(--green) 66.6%); }
.staff-gate-inner { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.staff-gate h1 { margin: 0 0 1rem; font: 600 var(--step-4)/1.05 var(--serif); color: #fff; }
.staff-lede { max-width: 34rem; margin: 0 0 2rem; font-size: var(--step-1); line-height: 1.5; color: #D9E2F2; }
.staff-signin { display: inline-flex; align-items: center; gap: .8rem; min-height: 54px; padding: .85rem 1.6rem; background: #fff; color: #1B1B1B; border: 0; border-radius: 6px; font: 600 1.02rem var(--sans); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .15s ease; }
.staff-signin:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.staff-signin:focus-visible { outline: 3px solid #9FC3E8; outline-offset: 3px; }
.staff-signin:disabled { opacity: .7; cursor: progress; }
.staff-note { margin: .9rem 0 0; font-size: var(--step--1); color: #B8C4DC; }
.staff-alert { margin: 1.2rem 0 0; padding: .8rem 1rem; border-inline-start: 4px solid var(--red); background: #FFF1F2; color: var(--red-deep); border-radius: var(--radius); font-size: var(--step--1); }
.staff-alert.is-info { background: rgba(255,255,255,.1); color: #fff; border-color: #9FC3E8; }
.staff-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.staff-features li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; backdrop-filter: blur(4px); }
.staff-features strong { font: 600 1.02rem var(--sans); color: #fff; }
.staff-features li > span:last-child { grid-column: 2; font-size: var(--step--1); color: #B8C4DC; }
.staff-fi { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(159,195,232,.16); color: #9FC3E8; }
.staff-fi svg { width: 24px; height: 24px; }
.staff-features .staff-secure { background: none; border: 0; padding: .4rem .2rem 0; grid-template-columns: auto 1fr; font-size: .85rem; color: #B8C4DC; backdrop-filter: none; }
.staff-secure svg { width: 18px; height: 18px; color: #7FD48C; }
.staff-secure span { grid-column: auto !important; }
.staff[data-state="in"] .staff-gate { display: none; }
@media (max-width: 860px) { .staff-gate-inner { grid-template-columns: 1fr; } }

/* Signed-in header */
.staff-top { color: #fff; background: radial-gradient(50rem 22rem at 90% -20%, rgba(34,97,152,.6), transparent 60%), var(--staff-navy); padding-block: clamp(1.8rem, 4vw, 2.8rem) 0; }
.staff-top-inner { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.staff-me { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.staff-avatar { display: grid; place-items: center; flex: none; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--red)); font: 700 1.35rem var(--sans); color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-top h1 { margin: 0; font: 600 var(--step-3)/1.1 var(--serif); color: #fff; }
.staff-top .staff-kicker { margin-bottom: .35rem; }
.staff-who { margin: .35rem 0 0; color: #B8C4DC; font-size: var(--step--1); overflow-wrap: anywhere; }
.staff-top-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.staff-top-actions svg { width: 16px; height: 16px; }
.staff-search { position: relative; display: flex; align-items: center; gap: .6rem; margin-top: clamp(1.5rem, 3vw, 2.2rem); transform: translateY(50%); background: #fff; border-radius: 10px; padding: .45rem .45rem .45rem 1rem; box-shadow: 0 14px 40px rgba(23,32,74,.18); }
.staff-search > svg { width: 22px; height: 22px; color: var(--muted); }
.staff-search input { flex: 1; min-width: 0; border: 0; font: 400 var(--step-0) var(--sans); color: var(--ink); padding: .65rem .2rem; background: none; }
.staff-search input:focus { outline: none; }
.staff-search:focus-within { box-shadow: 0 0 0 3px #9FC3E8, 0 14px 40px rgba(23,32,74,.18); }
@media (max-width: 560px) { .staff-search .btn { padding-inline: .9em; } .staff-search > svg { display: none; } }

.staff-body { padding-block: clamp(3.5rem, 7vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }

/* Quick links */
.staff-tiles ul { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.staff-tile { display: flex; align-items: center; gap: .75rem; height: 100%; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.staff-tile:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,32,74,.08); color: var(--ink); }
.staff-tile-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 9px; background: var(--mist); color: var(--blue); }
.staff-tile-ico svg { width: 22px; height: 22px; }
.staff-tile.is-outlook .staff-tile-ico { background: #E6F0FB; color: #0F6CBD; }
.staff-tile.is-teams .staff-tile-ico { background: #ECEBFA; color: #5B5FC7; }
.staff-tile.is-onedrive .staff-tile-ico { background: #E5F3FB; color: #0364B8; }
.staff-tile.is-sharepoint .staff-tile-ico { background: #E3F4F2; color: #03787C; }

/* Panels */
.staff-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 980px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-main { display: grid; gap: 1.5rem; min-width: 0; }
.staff-side { position: sticky; top: 1rem; }
@media (max-width: 980px) { .staff-side { position: static; } }
.staff-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.1rem, 2.5vw, 1.6rem); min-width: 0; }
.staff-panel h2 { margin: 0 0 1rem; font: 600 var(--step-1)/1.2 var(--serif); color: var(--ink); }
.staff-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; }
.staff-panel-head h2 { margin: 0; }
.staff-muted { margin: 0; color: var(--muted); font-size: var(--step--1); }
.staff-panel .staff-alert { margin: 0; }
.staff-clear { background: none; border: 0; color: var(--blue); font: 600 var(--step--1) var(--sans); cursor: pointer; text-decoration: underline; min-height: 44px; }

/* News */
.staff-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-news li.is-lead { grid-column: 1 / -1; }
.staff-news a { display: grid; height: 100%; text-decoration: none; color: var(--ink); border-radius: 10px; overflow: hidden; background: var(--mist); }
.staff-news li.is-lead a { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.staff-news-img { display: block; aspect-ratio: 16/9; background: url(../img/logo-mark.png) center / auto 38% no-repeat, linear-gradient(135deg, #DCE6F3, #F6E3E6); }
.staff-news-img:has(img) { background: var(--mist); }
.staff-news li.is-lead .staff-news-img { aspect-ratio: auto; min-height: 200px; }
.staff-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-news-txt { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
.staff-news time { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--red-dark); text-transform: uppercase; }
.staff-news strong { font: 600 1.02rem/1.3 var(--sans); }
.staff-news li.is-lead strong { font: 600 var(--step-2)/1.15 var(--serif); }
.staff-news-txt > span { font-size: var(--step--1); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.staff-news a:hover strong { color: var(--blue); }
@media (max-width: 720px) { .staff-news { grid-template-columns: 1fr; } .staff-news li.is-lead a { grid-template-columns: 1fr; } .staff-news li.is-lead .staff-news-img { min-height: 0; aspect-ratio: 16/9; } }

/* Libraries + file browser */
.staff-libs { display: flex; flex-wrap: wrap; gap: .4rem; }
.staff-libs button { min-height: 36px; padding: .35rem .85rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; font: 600 .85rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.staff-libs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.staff-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0 0 .6rem; padding: 0; font-size: var(--step--1); }
.staff-crumbs li + li::before { content: "›"; margin-inline: .45rem; color: var(--muted); }
[dir="rtl"] .staff-crumbs li + li::before { content: "‹"; }
.staff-crumbs button { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; padding: .3rem 0; color: var(--blue); font: 600 var(--step--1) var(--sans); cursor: pointer; }
.staff-crumbs button svg { width: 16px; height: 16px; }
.staff-crumbs [aria-current] { font-weight: 600; color: var(--ink); }
.staff-files { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.staff-files th { text-align: start; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.staff-files td { padding: .45rem .6rem; border-bottom: 1px solid #E7EBF2; vertical-align: middle; }
.staff-files td small { display: block; color: var(--muted); font-size: .78rem; }
.staff-files tr:hover td { background: #F6F8FB; }
.staff-files .num { text-align: end; white-space: nowrap; color: var(--muted); }
.staff-file { display: inline-flex; align-items: center; gap: .7rem; min-height: 40px; background: none; border: 0; padding: 0; color: var(--ink); font: 600 var(--step--1) var(--sans); text-align: start; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.staff-file:hover span { color: var(--blue); text-decoration: underline; }
@media (max-width: 640px) { .staff-files th:nth-child(3), .staff-files td:nth-child(3) { display: none; } }

/* File-type chips */
.fi { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 7px; font: 700 .6rem/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: #fff; background: #6B7280; }
.fi-folder { background: none; }
.fi-folder svg { width: 30px; height: 30px; fill: #F4B73F; }
.fi-word { background: #185ABD; } .fi-excel { background: #107C41; } .fi-ppt { background: #C43E1C; }
.fi-pdf { background: #D93025; } .fi-img { background: #7E57C2; } .fi-video { background: #00897B; } .fi-zip { background: #8D6E63; }

/* Recent + search hits */
.staff-recent, .staff-hits { list-style: none; margin: 0; padding: 0; }
.staff-recent li + li, .staff-hits li + li { border-top: 1px solid #E7EBF2; }
.staff-recent a, .staff-hits a { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem 0; color: var(--ink); text-decoration: none; }
.staff-recent strong, .staff-hits strong { display: block; font: 600 .92rem/1.3 var(--sans); overflow-wrap: anywhere; }
.staff-recent small, .staff-hits small { display: block; margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.staff-recent a:hover strong, .staff-hits a:hover strong { color: var(--blue); text-decoration: underline; }
.staff-snip { display: block; margin-top: .2rem; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 560px) {
	.staff-tiles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.staff-tile { padding: .75rem; gap: .55rem; font-size: .9rem; }
	.staff-news li:not(.is-lead) a { grid-template-columns: 96px minmax(0, 1fr); }
	.staff-news li:not(.is-lead) .staff-news-img { aspect-ratio: auto; min-height: 100%; }
	.staff-news li:not(.is-lead) .staff-news-txt { padding: .8rem .9rem; }
}

/* Espace personnel — light version: white with a soft AFLEC blue / red wash. */
.staff { background: #F6F8FC; }
.staff-gate, .staff-top { color: var(--ink); background:
	radial-gradient(48rem 26rem at 88% -12%, rgba(34,97,152,.16), transparent 62%),
	radial-gradient(40rem 24rem at -6% 112%, rgba(236,27,46,.12), transparent 60%),
	linear-gradient(120deg, #FFFFFF 0%, #F3F6FC 55%, #FCF2F4 100%); }
.staff-gate { border-bottom: 1px solid var(--line); }
.staff-kicker { color: var(--red-dark); }
.staff-gate h1, .staff-top h1 { color: var(--ink); }
.staff-lede { color: var(--ink-soft); }
.staff-note { color: var(--muted); }
.staff-who { color: var(--muted); }
.staff-signin { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(33,44,97,.22); }
.staff-signin:hover:not(:disabled) { background: #1A2352; box-shadow: 0 14px 30px rgba(33,44,97,.3); }
.staff-signin .ms-logo { background: #fff; padding: 3px; border-radius: 3px; width: 24px; height: 24px; }
.staff-signin:focus-visible { outline-color: var(--blue); }
.staff-alert.is-info { background: #EAF1FA; color: var(--ink); border-color: var(--blue); }
.staff-features li { background: rgba(255,255,255,.85); border-color: #DCE3EF; box-shadow: 0 6px 18px rgba(33,44,97,.06); backdrop-filter: none; }
.staff-features strong { color: var(--ink); }
.staff-features li > span:last-child { color: var(--muted); }
.staff-fi { background: #E8F0FA; color: var(--blue); }
.staff-features li:nth-child(2) .staff-fi { background: #FDECEE; color: var(--red-dark); }
.staff-features li:nth-child(3) .staff-fi { background: #E9F6EC; color: var(--cedar); }
.staff-features .staff-secure { background: none; box-shadow: none; color: var(--muted); }
.staff-secure svg { color: var(--cedar); }
.staff-avatar { box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(33,44,97,.18); }
.staff-top { border-bottom: 1px solid var(--line); }
.staff-top .btn-light { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.staff-top .btn-light:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.staff-top .btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.staff-top .btn-ghost:hover { background: var(--ink); color: #fff; }
.staff-search { box-shadow: 0 14px 36px rgba(33,44,97,.12); border: 1px solid #DCE3EF; }

/* « 3 langues, 3 cultures » mark, header right — same height as the AFLEC logo on the left. */
.brand-motto { display: block; height: 64px; width: auto; flex: none; margin-inline-start: .6rem; padding-inline-start: .9rem; border-inline-start: 1px solid var(--line); box-sizing: content-box; }
@media (max-width: 1199px) { .brand-motto { display: none; } }

/* Xone mark before the copyright line. */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.xone-mark { display: inline-flex; align-items: center; gap: .45rem; padding-inline-end: .9rem; border-inline-end: 1px solid rgba(255,255,255,.25); font: 800 1rem/1 var(--sans); letter-spacing: -.01em; color: #fff; }
.xone-mark img { width: 22px; height: 22px; border-radius: 6px; }
.hero-langs .hl-es::before { background: #F4B400; }
.l3-es, .langs3-list .l3-es { border-top-color: #F4B400; border-inline-start-color: #F4B400; }
.langs3-list .l3-es { border-top-color: transparent; }
.l3-es .l3-word { color: #B07D00; }
.spain-notice .eyebrow, .entry .spain-notice .eyebrow { color: #fff !important; }

/* Header banner like the original aflec-fr.org: logo left, world map middle, "3 langues, 3 cultures" right */
.header-banner { display: none; }
@media (min-width: 900px) {
	.header-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 3vw, 3rem); padding-block: 1rem .25rem; }
	.banner-logo { display: block; line-height: 0; }
	.banner-logo img { height: 118px; width: auto; }
	.banner-map { width: 100%; height: auto; max-height: 128px; object-fit: contain; }
	.banner-langues { height: 104px; width: auto; }
	.site-header .header-inner { justify-content: flex-end; padding-block: .1rem .35rem; }
	.site-header .header-inner .brand { display: none; }
}
@media (min-width: 1300px) {
	.banner-logo img { height: 132px; }
	.banner-langues { height: 112px; }
}

/* Hero text like the original site: "NOS VALEURS" + paper plane */
.hero-v2 .hero-copy { position: relative; }
.hero-v2 .hero-copy > .hero-values-lead, .hero-v2 .hero-copy > .hero-values-text { max-width: 56rem; }
.hero-values-title { margin: 0 0 clamp(1.2rem, 3vw, 2.2rem); font: 800 clamp(2.6rem, 1.4rem + 5vw, 5.4rem)/1 var(--sans); text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
:lang(ar) .hero-values-title, [dir="rtl"] .hero-values-title { letter-spacing: 0; }
.hero-values-lead { margin: 0 0 1.1rem; font: 700 clamp(1.05rem, .9rem + .6vw, 1.4rem)/1.65 var(--sans); color: #fff; }
.hero-values-text { margin: 0 0 1.8rem; font: 400 clamp(1rem, .9rem + .45vw, 1.25rem)/1.75 var(--sans); color: rgba(255,255,255,.92); }
.hero-plane { position: absolute; z-index: 1; top: clamp(.5rem, 2vw, 1.5rem); inset-inline-end: 0; width: clamp(130px, 20vw, 300px); height: auto; pointer-events: none; overflow: visible; }
[dir="rtl"] .hero-plane { transform: scaleX(-1); }
.hero-plane-trail { opacity: .85; stroke-dashoffset: 0; animation: plane-trail 2.4s linear infinite; }
.hero-plane-body { transform-origin: 270px 50px; animation: plane-float 4s ease-in-out infinite; }
@keyframes plane-trail { to { stroke-dashoffset: -52; } }
@keyframes plane-float { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-6px, -8px) rotate(-3deg); } }
@media (max-width: 799px) { .hero-plane { width: 120px; top: .5rem; opacity: .9; } .hero-values-title { padding-inline-end: 0; } }

/* "L'AFLEC recrute pour 2027" banner (after Quatre langues), like the original site */
.recrute-band { padding-block: clamp(2rem, 5vw, 3.5rem); background: #fff; }
.recrute-box { display: flex; align-items: center; gap: clamp(1.2rem, 5vw, 5rem); max-width: 1240px; margin-inline: auto; padding: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.2rem, 4vw, 3rem); background: #006DAD; border-radius: 28px; color: #fff; }
.recrute-ico { flex: none; width: clamp(96px, 11vw, 150px); height: auto; border-radius: 8px; }
.recrute-body h2 { margin: 0 0 1.1rem; font: 800 clamp(1.7rem, 1rem + 2.8vw, 3.4rem)/1.12 var(--sans); text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
:lang(ar) .recrute-body h2 { letter-spacing: 0; }
.recrute-btn { display: inline-block; padding: .8em 2.4em; background: #fff; color: #006DAD; border-radius: 6px; font: 500 1.05rem/1.2 var(--sans); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.recrute-btn:hover { color: #00507f; transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
@media (max-width: 600px) { .recrute-box { flex-direction: column; align-items: flex-start; } }

/* Spain notice in red, like the original site */
.home-content > .spain-notice { border-top: 0; }
.entry .spain-notice.has-background { background: #fff !important; padding-block: clamp(1.5rem, 4vw, 3rem) !important; }
.entry .spain-notice > .wp-block-group__inner-container { max-width: 1240px; margin-inline: auto; padding: clamp(1.6rem, 4vw, 3.2rem) clamp(1.2rem, 5vw, 4.5rem); background: #C4161C; border-radius: 28px; color: #fff; }
.entry .spain-notice, .entry .spain-notice h2, .entry .spain-notice h3, .entry .spain-notice p, .entry .spain-notice li, .entry .spain-notice strong, .entry .spain-notice summary { color: #fff; }
.entry .spain-notice h2 { text-align: center; font-family: var(--sans); font-weight: 800; }
.entry .spain-notice .eyebrow { display: inline-block; background: #fff !important; color: #C4161C !important; }
.entry .spain-notice a { color: #fff; text-decoration: underline; }
.entry .spain-notice .wp-block-button__link, .entry .spain-notice .btn { background: #fff !important; color: #C4161C !important; text-decoration: none; }
.entry .spain-notice .spain-facts .wp-block-column { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.35) !important; color: #fff; }
.entry .spain-notice .wp-block-image img { background: #fff; padding: .6rem; border-radius: 4px; }
.entry .spain-notice details { border-color: rgba(255,255,255,.4) !important; background: transparent !important; }
.entry .spain-notice details summary { cursor: pointer; font-weight: 700; }

/* Spain notice: AFLEC-GEE logo left, loudspeaker centre, Mlfmonde logo right (as on the original site) */
.entry .spain-notice .spain-logos { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 clamp(1.4rem, 3vw, 2.4rem); }
.entry .spain-notice .spain-logos img { display: block; height: clamp(56px, 8vw, 104px); width: auto; max-width: 40%; object-fit: contain; background: #fff; padding: .4rem .6rem; border-radius: 2px; }
.entry .spain-notice .spain-logos .spain-speaker { height: clamp(48px, 6vw, 76px); width: clamp(48px, 6vw, 76px); padding: .55rem; border-radius: 50%; box-shadow: 0 8px 22px -12px rgba(0,0,0,.5); }
[dir="rtl"] .entry .spain-notice .spain-logos .spain-speaker { transform: scaleX(-1); }
@media (max-width: 560px) { .entry .spain-notice .spain-logos .spain-speaker { display: none; } }
.entry .spain-notice .eyebrow { margin-top: 0; }

/* "Les informations": 6-item carousel */
.news-carousel .section-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.news-carousel .section-head h2 { margin-inline-end: auto; }
.carousel-nav { display: inline-flex; gap: .4rem; }
.carousel-nav button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 400 1.6rem/1 var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.carousel-nav button:hover, .carousel-nav button:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
[dir="rtl"] .carousel-nav { flex-direction: row-reverse; }
.news-carousel .news-grid { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.news-carousel .news-grid::-webkit-scrollbar { display: none; }
.news-carousel .news-grid > * { scroll-snap-align: start; }
@media (min-width: 640px) { .news-carousel .news-grid { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (min-width: 1000px) { .news-carousel .news-grid { grid-auto-columns: calc((100% - 3 * 1.5rem) / 4); } }
