/* ==========================================================================
   LFBI Malte — AFLEC network site
   Palette: Maltese blue, Malta red, Globigerina limestone, Mediterranean light.
   ========================================================================== */

:root {
	--navy: #0b3a66;
	--navy-2: #0f4c84;
	--blue: #1f6fb2;
	--sky: #e7f1fa;
	--red: #c8102e;
	--red-2: #a70d26;
	--sand: #f6f0e6;
	--stone: #e7dbc6;
	--gold: #c99a2e;
	--ink: #17212e;
	--text: #2c3744;
	--muted: #5d6877;
	--line: #dfe4ea;
	--white: #fff;
	--fr-blue: #002395;
	--fr-red: #ed2939;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(11, 58, 102, .10);
	--shadow-sm: 0 3px 12px rgba(11, 58, 102, .08);
	--head: "Montserrat", "Segoe UI", Arial, sans-serif;
	--body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--wrap: 1200px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--body);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--stone); }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 999; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em;
	padding: .78em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: 700 .95rem/1.1 var(--head); letter-spacing: .01em; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .6em 1.1em; font-size: .85rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1.02rem; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); color: #fff; }
.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover { background: var(--red-2); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.link-arrow { font: 700 .95rem var(--head); color: var(--navy); text-decoration: none; }
.link-arrow:hover { color: var(--red); }

.kicker {
	display: inline-block; margin: 0 0 .8rem; font: 700 .78rem/1.3 var(--head);
	letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.kicker--light { color: #fff; opacity: .92; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #dbe7f3; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.topbar a { color: #dbe7f3; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__network li + li::before { content: "·"; margin: 0 .55rem; opacity: .5; }
.topbar__network .is-network a { font-weight: 700; color: #fff; }
.topbar__contact { gap: 1rem; }
.topbar__contact a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__social .icon { width: 16px; height: 16px; }

.brandbar { background: #fff; position: relative; }
.brandbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; min-width: 0; }
.brand__logo { height: 64px; width: auto; }
.brand__text { display: flex; flex-direction: column; border-left: 3px solid var(--red); padding-left: .9rem; min-width: 0; }
.brand__name { font: 800 1.12rem/1.2 var(--head); color: var(--navy); }
.brand__tag { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.brandbar__tools { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.lang-switch { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.lang-switch a {
	display: inline-block; min-width: 2.3rem; text-align: center; padding: .35rem .5rem; border-radius: 6px;
	font: 700 .8rem var(--head); color: var(--muted); text-decoration: none; border: 1px solid var(--line);
}
.lang-switch a:hover { color: var(--navy); border-color: var(--navy); }
.lang-switch a.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }

.icon-btn { background: none; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--navy); cursor: pointer; }
.icon-btn:hover { border-color: var(--navy); }
.espace-link { display: inline-flex; align-items: center; gap: .35rem; font: 600 .85rem var(--head); color: var(--navy); text-decoration: none; }
.espace-link:hover { color: var(--red); }
.espace-link .icon { width: 16px; height: 16px; }

.site-search { background: var(--sky); padding: 1rem 0; border-top: 1px solid var(--line); }
.site-search__form { display: flex; gap: .6rem; }
.site-search input, .inline-search input {
	flex: 1; padding: .75rem 1rem; border: 1px solid #c8d3df; border-radius: 999px; font: inherit; min-width: 0;
}

.menu-toggle { display: none; align-items: center; gap: .5rem; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .55rem .95rem; font: 700 .85rem var(--head); cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav { background: #fff; border-top: 1px solid var(--line); }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav__item { position: relative; }
.main-nav__item > a {
	display: block; padding: .95rem 1rem; font: 700 .92rem var(--head); color: var(--ink); text-decoration: none;
	border-bottom: 3px solid transparent;
}
.main-nav__item > a:hover, .main-nav__item.is-current > a { color: var(--navy); border-bottom-color: var(--red); }
.main-nav__item:first-child > a { padding-left: 0; }
.sub-toggle { display: none; }
.sub {
	list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: 100%; min-width: 250px; z-index: 50;
	background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow);
	border-top: 3px solid var(--red); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .55rem .75rem; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .95rem; }
.sub a:hover { background: var(--sand); color: var(--navy); }
.main-nav__mobile-extra { display: none; }

.tricolor { display: flex; height: 4px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--fr-blue); }
.tricolor span:nth-child(2) { background: #fff; }
.tricolor span:nth-child(3) { background: var(--fr-red); }
.site-header .tricolor { box-shadow: 0 1px 0 var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, rgba(8, 36, 66, .92) 0%, rgba(8, 36, 66, .72) 45%, rgba(8, 36, 66, .25) 100%);
}
.hero--plain::before { background: radial-gradient(circle at 85% 20%, rgba(200, 16, 46, .35), transparent 45%), linear-gradient(120deg, var(--navy), #082a4b); }
.hero__inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2.5rem; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.15rem; max-width: 46rem; color: #e8eef5; }
.hero--home .hero__inner { min-height: clamp(460px, 68vh, 640px); padding: 4.5rem 0 3.5rem; }
.hero--home h1 { max-width: 15em; }
.hero--home h1 .accent { color: #ffd7dd; display: block; font-size: .62em; font-weight: 700; margin-bottom: .35em; letter-spacing: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__card {
	background: rgba(255, 255, 255, .97); color: var(--text); border-radius: var(--radius); padding: 1.3rem 1.4rem;
	width: 310px; box-shadow: var(--shadow); border-top: 4px solid var(--red);
}
.hero__card-title { font: 800 1.05rem var(--head); color: var(--navy); margin-bottom: .6rem; }
.hero__card a { color: var(--navy); }
.hero__card-link { font: 700 .9rem var(--head); text-decoration: none; }
.hero--page .hero__inner { min-height: 300px; padding: 3rem 0 2.6rem; grid-template-columns: 1fr; }
.hero--page.hero--plain .hero__inner { min-height: 220px; }
.crumbs { font-size: .85rem; margin-bottom: 1rem; color: #cfdbe8; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: #fff; }

/* ---------- Quick links ---------- */
.quick { background: var(--sand); border-bottom: 1px solid var(--stone); }
.quick__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.quick__list a {
	display: flex; align-items: center; min-height: 64px; padding: .8rem 1rem; height: 100%;
	font: 700 .88rem/1.3 var(--head); color: var(--navy); text-decoration: none; border-right: 1px solid var(--stone);
}
.quick__list li:first-child a { border-left: 1px solid var(--stone); }
.quick__list a:hover { background: #fff; color: var(--red); }

/* ---------- Sections & generic blocks (page content) ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--sand { background: var(--sand); }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: #e3ecf5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 2.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-title { margin: 0; }
.section-intro { max-width: 46rem; color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }
.lead { font-size: 1.18rem; color: var(--ink); }
.title-accent em, h2 em { font-style: normal; color: var(--red); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--contain img { object-fit: contain; background: #fff; aspect-ratio: auto; padding: 1rem; }

/* Director's message */
.director { display: grid; grid-template-columns: 330px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.director__photo { position: sticky; top: 1.5rem; }
.director__photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.director__photo figcaption { margin-top: .8rem; font: 700 1rem var(--head); color: var(--navy); }
.director__photo figcaption span { display: block; font: 400 .9rem var(--body); color: var(--muted); }
.director__letter { font-size: 1.07rem; }
.director__letter .quote { font: 600 1.35rem/1.45 var(--head); color: var(--navy); border-left: 4px solid var(--red); padding-left: 1.1rem; margin: 0 0 1.4rem; }
.signature { font: 700 1.1rem var(--head); color: var(--navy); margin-top: 1.5rem; }
.signature span { display: block; font: 400 .95rem var(--body); color: var(--muted); }

/* Key figures */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--navy); padding: 1.8rem 1.2rem; text-align: center; }
.stat img { width: 54px; height: 54px; object-fit: contain; margin: 0 auto .7rem; filter: brightness(0) invert(1); opacity: .9; }
.stat__num { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--head); color: #fff; }
.stat__label { display: block; margin-top: .5rem; color: #cfe0f0; font-size: .98rem; }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.level {
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
	text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.level:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.level__img { background: var(--sky); aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 1rem; }
.level__img img { max-height: 100%; width: auto; object-fit: contain; }
.level__body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.level__age { font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.level h3 { margin: .3rem 0 .5rem; color: var(--navy); }
.level p { color: var(--muted); font-size: .98rem; }
.level__more { margin-top: auto; font: 700 .9rem var(--head); color: var(--navy); }

/* Values / pillars / principles */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.value { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); border-bottom: 4px solid var(--navy); }
.value:nth-child(2) { border-bottom-color: var(--red); }
.value:nth-child(3) { border-bottom-color: var(--gold); }
.value:nth-child(4) { border-bottom-color: var(--blue); }
.value img { width: 58px; height: 58px; object-fit: contain; margin-bottom: 1rem; }
.value h3 { color: var(--navy); }
.value p { color: var(--muted); font-size: .98rem; margin: 0; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.3rem; }
.pillar__num { font: 800 .85rem var(--head); color: #fff; background: var(--red); border-radius: 50%; width: 2rem; height: 2rem; display: inline-grid; place-items: center; margin-bottom: .7rem; }
.pillar h3 { color: var(--navy); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.checks li::before {
	content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
	background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b3a66' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 75% no-repeat;
}

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.principle { background: var(--sand); border-radius: var(--radius); padding: 1.4rem; }
.principle h3 { color: var(--red); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.principle p { margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.2rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--stone); }
.timeline li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 2rem; padding: .7rem 0; position: relative; }
.timeline li::after { content: ""; position: absolute; left: calc(7.2rem - 6px); top: 1.15rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.timeline li.is-highlight::after { border-color: var(--red); background: var(--red); }
.timeline__year { font: 800 1.05rem var(--head); color: var(--navy); text-align: right; padding-top: .35rem; }
.timeline__text { background: #fff; border-radius: var(--radius-sm); padding: .8rem 1rem; box-shadow: var(--shadow-sm); }
.timeline__text p { margin: 0; }
.timeline__text p + p { margin-top: .35rem; }
.timeline li.is-highlight .timeline__text { border-left: 4px solid var(--red); }

/* Level details (pedagogy) */
.level-block { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.level-block__media { background: var(--sky); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 5rem; }
.level-block__media img { margin: 0 auto; max-height: 240px; width: auto; }
.level-block__badge { display: inline-block; margin-top: 1rem; font: 700 .8rem var(--head); color: var(--navy); background: #fff; padding: .35rem .7rem; border-radius: 999px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.duo__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.duo__card h3 { color: var(--navy); display: flex; gap: .6rem; align-items: center; }
.duo__card h3::before { content: ""; width: .7rem; height: .7rem; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.duo__card ul { margin: 0; padding-left: 1.1em; }
.duo__card li { margin-bottom: .55rem; }

/* Callouts */
.note { background: var(--sky); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.note--warm { background: #fff4e5; border-left-color: var(--gold); }
.note--red { background: #fdecef; border-left-color: var(--red); }
.note p:last-child { margin: 0; }
.notice-soft { background: var(--sand); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }

/* Photo strip / gallery */
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.photo-strip a { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.photo-strip a img { transition: transform .4s; }
.photo-strip a:hover img { transform: scale(1.05); }
.gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin: 0 0 2rem; }
.gallery-item { margin: 0 !important; width: auto !important; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 0 !important; }
.gallery br { display: none; }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--red) 0%, #8f0b22 100%); color: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; color: #fde3e7; }
.cta-band__actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* Tables (fees) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
.fees { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .98rem; }
.fees th, .fees td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.fees thead th { background: var(--navy); color: #fff; font: 700 .85rem var(--head); text-transform: uppercase; letter-spacing: .05em; }
.fees tbody tr:nth-child(even) { background: #fafbfc; }
.fees .group td { background: var(--sand); font: 700 .85rem var(--head); color: var(--navy); text-transform: uppercase; letter-spacing: .08em; }
.fees .price { font: 800 1.05rem var(--head); color: var(--navy); white-space: nowrap; }
.fees .tag { display: inline-block; font: 700 .75rem var(--head); padding: .2rem .55rem; border-radius: 999px; background: var(--sky); color: var(--navy); }
.fees .tag--cned { background: #fff4e5; color: #8a5a00; }

/* Steps / docs */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem 1.1rem; position: relative; }
.steps li::before { content: counter(s); font: 800 1rem var(--head); color: #fff; background: var(--navy); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; margin-bottom: .7rem; }
.steps strong { display: block; color: var(--navy); font-family: var(--head); margin-bottom: .2rem; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.docs li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem .8rem 2.8rem; position: relative; }
.docs li::before { content: ""; position: absolute; left: 1rem; top: 1rem; width: 1.1rem; height: 1.3rem; border: 2px solid var(--navy); border-radius: 3px; }
.docs small { display: block; color: var(--muted); }
.bank { background: #fff; border: 1px dashed var(--navy); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.bank dt { font: 700 .85rem var(--head); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bank dd { margin: 0; font-weight: 600; color: var(--ink); word-break: break-word; }
.programmes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.programme { border-radius: var(--radius); padding: 1.6rem; color: #fff; background: var(--navy); }
.programme:nth-child(2) { background: var(--blue); }
.programme h3 { color: #fff; }
.programme__big { font: 800 2.6rem/1 var(--head); color: #ffd7dd; display: block; margin-bottom: .5rem; }
.programme p { color: #e3ecf5; margin: 0; }

/* Day schedule */
.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.day__slot { background: #fff; border-radius: var(--radius); padding: 1.3rem; border-top: 4px solid var(--navy); box-shadow: var(--shadow-sm); }
.day__slot:nth-child(2) { border-top-color: var(--red); }
.day__slot:nth-child(3) { border-top-color: var(--gold); }
.day__time { font: 800 1.5rem var(--head); color: var(--navy); display: block; }
.day__slot p { margin: .3rem 0 0; color: var(--muted); }
.figure-card { background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.figure-card img { border-radius: var(--radius-sm); margin: 0 auto; }
.figure-card figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; text-align: center; }

/* Cards / news / albums */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card__img { aspect-ratio: 16 / 10; background: var(--sky); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__body time { font: 700 .78rem var(--head); color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.card__body h3 { margin: .35rem 0 .45rem; color: var(--navy); font-size: 1.12rem; }
.card__body p { color: var(--muted); font-size: .97rem; margin: 0; }
.album-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-tile:hover img { transform: scale(1.05); }
.album-tile__label { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem; background: linear-gradient(transparent, rgba(8, 36, 66, .88)); color: #fff; display: flex; justify-content: space-between; align-items: end; gap: .8rem; }
.album-tile__label strong { font: 700 1.05rem var(--head); }
.album-tile__label em { font-style: normal; font-size: .85rem; opacity: .85; white-space: nowrap; }
.pager { display: flex; gap: .4rem; margin-top: 2rem; justify-content: center; }
.pager a, .pager span { min-width: 2.4rem; text-align: center; padding: .4rem .6rem; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; }
.pager .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Offers */
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.offer__link { display: grid; gap: .3rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; text-decoration: none; color: var(--text); transition: box-shadow .2s; }
.offer__link:hover { box-shadow: var(--shadow); color: var(--text); }
.offer__title { font: 700 1.15rem var(--head); color: var(--navy); }
.offer__meta { font-size: .92rem; color: var(--muted); }
.offer__cta { font: 700 .9rem var(--head); color: var(--red); }
.offer-single { display: grid; grid-template-columns: 1fr 260px; gap: 2.5rem; padding: 3rem 0; }
.offer-apply { background: var(--sand); border-radius: var(--radius); padding: 1.4rem; align-self: start; position: sticky; top: 1.5rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-card { background: var(--navy); color: #dfe9f3; border-radius: var(--radius); padding: 1.8rem; }
.contact-card__name { font: 800 1.15rem/1.3 var(--head); color: #fff; }
.contact-card a { color: #fff; }
.contact-card .btn--ghost { color: #fff; border-color: #fff; }
.contact-card .btn--ghost:hover { background: #fff; color: var(--navy); }
.icon-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.icon-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .6rem; }
.icon-list .icon { flex-shrink: 0; margin-top: .25rem; color: var(--red); }
.contact-card .icon-list .icon { color: #ffb3bf; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9; margin-top: 1.5rem; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid__full { grid-column: 1 / -1; }
.contact-form label { display: block; font: 600 .9rem var(--head); color: var(--ink); margin-bottom: .3rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
	width: 100%; padding: .7rem .85rem; border: 1px solid #c8d3df; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(31, 111, 178, .2); }
.form-check { display: flex; gap: .6rem; align-items: flex-start; }
.form-check input { margin-top: .35rem; }
.form-check label { font: 400 .95rem var(--body); }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 0; }
.form-actions small { color: var(--muted); }
.form-msg { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-msg--ok { background: #e7f6ec; color: #145c2c; }
.form-msg--err { background: #fdecef; color: #8f0b22; }

/* ---------- In-page navigation ---------- */
.toc { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; align-items: center; gap: 1rem; overflow-x: auto; scrollbar-width: none; }
.toc .wrap::-webkit-scrollbar { display: none; }
.toc__label { font: 700 .75rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--red); white-space: nowrap; }
.toc ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.toc a { display: block; padding: .85rem .8rem; white-space: nowrap; font: 600 .88rem var(--head); color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.toc a:hover, .toc a.is-active { color: var(--navy); border-bottom-color: var(--red); }
.entry section[id], .entry h2[id] { scroll-margin-top: 4.5rem; }

/* Entry content defaults (for editors' free text) */
.entry--post, .entry--album { padding: 3rem 0; }
.entry--post > p, .entry--post > ul, .entry--post > ol { max-width: 46rem; }
.entry > .wrap > p:last-child { margin-bottom: 0; }
.entry__back { margin-top: 2rem; }
.entry .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.entry .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.entry .aligncenter { margin-inline: auto; }
.search-list { list-style: none; padding: 0; margin: 2rem 0; }
.search-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.search-list p { margin: .3rem 0 0; color: var(--muted); }
.inline-search { display: flex; gap: .6rem; margin: 2rem 0 3rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---------- Contact band ---------- */
.contact-band { background: linear-gradient(120deg, var(--navy), #082a4b); color: #dfe9f3; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.contact-band__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: center; }
.contact-band h2 { color: #fff; }
.contact-band__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.tile { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 1.2rem; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: .3rem; transition: background .2s; }
.tile:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tile .icon { color: #ffb3bf; width: 22px; height: 22px; margin-bottom: .3rem; }
.tile strong { font-family: var(--head); }
.tile span { font-size: .92rem; color: #cfdbe8; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: #071f38; color: #b9c8d8; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3.2rem 0 2.5rem; }
.footer-title { font: 700 1rem var(--head); color: #fff; margin-bottom: 1rem; }
.footer-title a { color: #fff; text-decoration: none; }
.site-footer a { color: #dce6f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.site-footer .btn--light { color: var(--navy); }
.site-footer .btn--light:hover { color: #fff; text-decoration: none; }
.site-footer .btn--accent:hover { text-decoration: none; }
.social { list-style: none; display: flex; gap: .6rem; padding: 0; margin: 0 0 1.2rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.social a:hover { background: var(--red); }
.footer-slogan { max-width: 200px; background: #fff; border-radius: var(--radius-sm); padding: .6rem .8rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-logos { display: flex; align-items: center; gap: 1.2rem; }
.footer-logos img { height: 48px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.footer-logos .footer-xone img { height: 32px; background: transparent; padding: 0; }
.footer-legal { margin: 0; font-size: .85rem; }
.footer-legal a { margin-left: .8rem; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(5, 18, 32, .92); z-index: 1000; display: grid; place-items: center; padding: 2rem; }
.lb img { max-height: 88vh; width: auto; border-radius: var(--radius-sm); }
.lb button { position: absolute; top: 1rem; right: 1rem; background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.brand__tag { display: none; }
	.espace-link span { display: none; }
	.quick__list { grid-template-columns: repeat(3, 1fr); }
	.quick__list li:nth-child(4) a { border-left: 1px solid var(--stone); }
	.quick__list li:nth-child(-n+3) a { border-bottom: 1px solid var(--stone); }
	.values, .principles { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.main-nav__item > a { padding: .95rem .7rem; font-size: .88rem; }
}

@media (max-width: 960px) {
	.topbar__network li:not(.is-network) { display: none; }
	.menu-toggle { display: inline-flex; }
	.brandbar__tools > .lang-switch, .brandbar__tools > .espace-link, .brandbar__tools > .btn { display: none; }
	.main-nav { display: none; border-top: 1px solid var(--line); }
	.main-nav.is-open { display: block; }
	.main-nav__list { flex-direction: column; }
	.main-nav__item { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; }
	.main-nav__item > a, .main-nav__item:first-child > a { padding: .9rem 0; border-bottom: 0; }
	.sub-toggle { display: grid; place-items: center; width: 46px; background: none; border: 0; cursor: pointer; }
	.sub-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
	.sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
	.sub { position: static; grid-column: 1 / -1; box-shadow: none; border-top: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 .6rem .6rem; min-width: 0; }
	.sub.is-open { display: block; }
	.main-nav__mobile-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 0 1.3rem; }
	.main-nav__mobile-extra .espace-link span { display: inline; }
	.hero__inner { grid-template-columns: 1fr; align-items: start; }
	.hero__card { width: auto; max-width: 420px; }
	.hero--home .hero__inner { min-height: 0; padding: 3rem 0; }
	.split, .director, .level-block, .contact-layout, .contact-band__inner, .offer-single { grid-template-columns: 1fr; }
	.split--reverse > :first-child { order: 0; }
	.director__photo, .level-block__media, .offer-apply { position: static; }
	.director__photo { max-width: 240px; }
	.levels, .card-grid { grid-template-columns: 1fr 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.photo-strip { grid-template-columns: repeat(3, 1fr); }
	.cta-band { grid-template-columns: 1fr; }
	.day { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.topbar__contact .hide-sm { display: none; }
	.brand__logo { height: 46px; }
	.brand__name { font-size: .95rem; }
	.brand__text { padding-left: .6rem; }
	.brandbar__tools { gap: .4rem; }
	.menu-toggle__label { display: none; }
	.menu-toggle { padding: .7rem; }
	.quick__list { grid-template-columns: 1fr 1fr; }
	.quick__list a { border-left: 1px solid var(--stone); border-bottom: 1px solid var(--stone); min-height: 54px; }
	.levels, .card-grid, .values, .principles, .pillars, .duo, .docs, .programmes, .form-grid, .contact-band__tiles { grid-template-columns: 1fr; }
	.timeline::before { left: .45rem; }
	.timeline li { grid-template-columns: 1fr; gap: .3rem; padding-left: 1.8rem; }
	.timeline li::after { left: 0; top: 1rem; }
	.timeline__year { text-align: left; padding: 0; }
	.footer-grid { grid-template-columns: 1fr; }
	.bank dl { grid-template-columns: 1fr; gap: .1rem; }
	.bank dd { margin-bottom: .6rem; }
	.site-search__form, .inline-search { flex-direction: column; }
}

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

@media print {
	.topbar, .main-nav, .brandbar__tools, .toc, .contact-band, .site-footer, .quick { display: none !important; }
	.hero { color: #000; background: none; }
	.hero::before, .hero__media { display: none; }
	.hero h1 { color: #000; }
}

/* Accent buttons on red backgrounds */
.cta-band .btn--accent { background: transparent; border-color: #fff; color: #fff; }
.cta-band .btn--accent:hover { background: #fff; color: var(--red); }
