/* AIMB — feuille de style principale
   Motif directeur : les miroirs cerclés d'or suspendus dans la salle de maquillage de l'académie. */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--nuit: #2b0741;          /* violet profond, surfaces sombres */
	--violet: #470c6a;        /* violet du logo */
	--violet-vif: #9135c5;
	--or: #d9b64d;
	--or-texte: #7a5c0e;      /* doré lisible sur fond clair */
	--rose: #f6c3ce;          /* rose des tenues de l'académie */
	--ivoire: #faf6ed;
	--blanc: #fff;
	--encre: #21152b;
	--encre-douce: #5b4d66;
	--trait: rgba(33, 21, 43, .14);
	--trait-clair: rgba(250, 246, 237, .22);
	--display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--texte: "Jost", "Century Gothic", "Segoe UI", system-ui, sans-serif;
	--wrap: 76rem;
	--gouttiere: clamp(1.25rem, 4vw, 3rem);
	--section: clamp(4rem, 9vw, 7.5rem);
	--rayon: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--ivoire); color: var(--encre); font-family: var(--texte); font-size: 1.0625rem; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-vif); }
:focus-visible { outline: 2px solid var(--violet-vif); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--or); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .6em; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.1rem); line-height: 1.02; }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.18; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
.wrap { width: min(100% - 2 * var(--gouttiere), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--dark { background: var(--nuit); color: var(--ivoire); }
.section--white { background: var(--blanc); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--encre-douce); max-width: 38em; }
.section--dark .lead, .hero .lead { color: rgba(250, 246, 237, .82); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--or); color: var(--encre); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }
.icon { flex: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; font: 500 1rem/1.2 var(--texte); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--gold { background: var(--or); color: var(--encre); }
.btn--gold:hover { background: #e7c96a; color: var(--encre); }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: var(--ivoire); color: var(--nuit); border-color: var(--ivoire); }
.btn--violet { background: var(--violet); color: var(--ivoire); }
.btn--violet:hover { background: var(--nuit); color: var(--ivoire); }
.btn--wa { background: #1f7a4d; color: #fff; }
.btn--wa:hover { background: #17603c; color: #fff; }
.btn--sm { min-height: 2.5rem; padding: .45rem 1.1rem; font-size: .95rem; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.link-more { font-weight: 500; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.section--dark .link-more { color: var(--ivoire); }

/* En-tête */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--nuit); color: var(--ivoire); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: block; flex: none; }
.brand img { height: 2.9rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ivoire); text-decoration: none; }
.nav li a { display: block; padding: .5rem 0; border-bottom: 1.5px solid transparent; }
.nav li a:hover, .nav li a[aria-current] { border-bottom-color: var(--or); }
.nav__tools { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; border: 1px solid var(--trait-clair); border-radius: 999px; padding: 2px; font-size: .88rem; }
.lang a { padding: .25rem .65rem; border-radius: 999px; line-height: 1.4; }
.lang a[aria-current] { background: var(--ivoire); color: var(--nuit); }
.nav-toggle { display: none; background: none; border: 1px solid var(--trait-clair); color: var(--ivoire); border-radius: 999px; padding: .5rem 1.1rem; font: 500 1rem var(--texte); cursor: pointer; }
@media (max-width: 62rem) {
	.nav-toggle { display: inline-flex; }
	.nav { position: fixed; inset: 4.75rem 0 0; background: var(--nuit); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2rem; padding: 2rem var(--gouttiere) 3rem; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
	.nav.is-open { visibility: visible; opacity: 1; }
	.nav ul { flex-direction: column; gap: .25rem; width: 100%; }
	.nav li a { font-family: var(--display); font-size: 2rem; padding: .35rem 0; border: 0; }
	.nav li a[aria-current] { color: var(--or); }
	.nav__tools { flex-wrap: wrap; }
}

/* Accueil — hero aux miroirs suspendus */
.hero { position: relative; overflow: hidden; background: var(--nuit); color: var(--ivoire); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero__place { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.6rem; color: var(--or); font-size: .98rem; letter-spacing: .02em; }
.hero h1 span { display: block; }
.hero h1 span + span { font-style: italic; font-weight: 400; }
.hero .lead { margin: 1.6rem 0 2.2rem; }
.mirrors { position: relative; aspect-ratio: 1 / 1.16; max-height: 44rem; margin-left: auto; width: 100%; }
.mirror { position: absolute; border-radius: 999px; box-shadow: 0 0 0 9px var(--nuit), 0 0 0 10.5px var(--or); transform-origin: 50% -40rem; }
.mirror::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 10px); width: 1px; height: 60rem; background: linear-gradient(to top, var(--or), rgba(217, 182, 77, .25)); }
.mirror picture, .mirror img { width: 100%; height: 100%; }
.mirror picture { border-radius: inherit; overflow: hidden; }
.mirror img { object-fit: cover; }
.mirror--a { right: 2%; top: 9%; width: 56%; aspect-ratio: 2 / 3; }
.mirror--a img { object-position: 40% 30%; }
.mirror--b { left: 2%; bottom: 3%; width: 38%; aspect-ratio: 1; }
.mirror--b img { object-position: 62% 40%; }
.mirror--c { left: 9%; top: 5%; width: 24%; aspect-ratio: 1; z-index: 2; }
.mirror--c img { object-position: 60% 22%; }
@media (prefers-reduced-motion: no-preference) {
	.mirror { animation: balancier 2.8s cubic-bezier(.3, .1, .3, 1) both; }
	.mirror--b { animation-delay: .12s; animation-duration: 3.2s; }
	.mirror--c { animation-delay: .22s; animation-duration: 2.5s; }
	@keyframes balancier { 0% { transform: rotate(2.2deg); opacity: 0; } 12% { opacity: 1; } 30% { transform: rotate(-1.3deg); } 55% { transform: rotate(.7deg); } 78% { transform: rotate(-.25deg); } 100% { transform: rotate(0); } }
}
@media (max-width: 56rem) {
	.hero__grid { grid-template-columns: 1fr; }
	.mirrors { max-width: 30rem; margin-inline: auto; margin-top: 1.5rem; }
}

/* Présentation */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.frame { position: relative; border-radius: 999px 999px var(--rayon) var(--rayon); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 0 0 9px var(--ivoire), 0 0 0 10.5px var(--or); margin: 11px; }
.section--white .frame { box-shadow: 0 0 0 9px var(--blanc), 0 0 0 10.5px var(--or); }
.frame picture, .frame img { width: 100%; height: 100%; object-fit: cover; }
.quote { margin: 2.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--trait); }
.quote blockquote { margin: 0 0 1rem; font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.4; }
.quote figcaption { color: var(--encre-douce); font-size: .98rem; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } .frame { max-width: 24rem; } }

/* Univers */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head h2 { margin: 0; max-width: 16em; }
.section-head p { margin: 0; max-width: 30em; color: var(--encre-douce); }
.section--dark .section-head p { color: rgba(250, 246, 237, .78); }
.univers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.univers__item { display: flex; flex-direction: column; }
.round { position: relative; display: block; width: min(100%, 15rem); aspect-ratio: 1; border-radius: 50%; margin: 11px 11px 2rem; box-shadow: 0 0 0 8px var(--blanc), 0 0 0 9.5px var(--or); overflow: hidden; }
.round picture, .round img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .5s; }
a.round:hover img { transform: scale(1.05); }
.univers__item h3 a { color: inherit; text-decoration: none; }
.univers__item h3 a:hover { color: var(--violet); }
.univers__item p { color: var(--encre-douce); }
.univers__list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--trait); }
.univers__list li { border-bottom: 1px solid var(--trait); }
.univers__list a { display: block; padding: .7rem 0; color: var(--encre); text-decoration: none; }
.univers__list a:hover { color: var(--violet); padding-left: .4rem; transition: padding .2s; }
.univers__item .link-more { margin-top: auto; align-self: flex-start; }
@media (max-width: 56rem) { .univers { grid-template-columns: 1fr; } .round { width: 11rem; } }

/* L'apprentissage en images */
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.5rem); align-items: start; }
.strip figure { margin: 0; }
.strip figure:nth-child(even) { margin-top: 3.5rem; }
.strip__img { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 3 / 4.2; background: #1d042d; position: relative; }
.strip__img picture, .strip__img img, .strip__img video { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { padding-top: .9rem; font-family: var(--display); font-size: 1.25rem; }
.strip figcaption small { display: block; font-family: var(--texte); font-size: .95rem; color: rgba(250, 246, 237, .7); margin-top: .15rem; }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(43, 7, 65, .55), rgba(43, 7, 65, .05)); border: 0; cursor: pointer; color: var(--encre); padding: 0; width: 100%; }
.play span { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--or); }
.play .icon { width: 28px; height: 28px; }
@media (max-width: 56rem) {
	.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); padding-bottom: 1rem; }
	.strip figure { flex: 0 0 62vw; max-width: 17rem; scroll-snap-align: center; }
	.strip figure:nth-child(even) { margin-top: 0; }
}

/* Rentrée */
.intake { background: var(--violet); color: var(--ivoire); border-radius: calc(var(--rayon) * 1.6); padding: clamp(1.75rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.intake::after { content: ""; position: absolute; width: 26rem; height: 26rem; border-radius: 50%; border: 1px solid rgba(217, 182, 77, .45); right: -15rem; top: -19rem; pointer-events: none; }
.intake h2 { margin-bottom: .5em; }
.intake p { color: rgba(250, 246, 237, .86); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.chips li, .chip { padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--trait-clair); font-size: .98rem; }
.fees { margin: 0; display: grid; gap: 0; }
.fees div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--trait-clair); }
.fees div:first-child { padding-top: 0; }
.fees dt { font-size: 1rem; }
.fees dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; color: var(--or); font-variant-numeric: lining-nums; white-space: nowrap; }
.fees dd.is-text { font-size: 1.25rem; white-space: normal; }
.intake__note { font-size: .92rem; margin: 1.1rem 0 1.6rem; }
@media (max-width: 56rem) { .intake { grid-template-columns: 1fr; } }

/* Pourquoi AIMB */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); list-style: none; padding: 0; margin: 0; }
.reasons li { padding: 1.75rem 0; border-top: 1.5px solid var(--or); }
.reasons h3 { margin-bottom: .4em; }
.reasons p { margin: 0; color: var(--encre-douce); max-width: 30em; }
@media (max-width: 44rem) { .reasons { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { columns: 3 10rem; column-gap: clamp(.6rem, 1.4vw, 1.1rem); }
.gallery__item { display: block; width: 100%; break-inside: avoid; margin: 0 0 clamp(.6rem, 1.4vw, 1.1rem); padding: 0; border: 0; background: #e9e1d2; border-radius: .9rem; overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item[hidden] { display: none; }
.gallery--preview { columns: 4 9rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.filters button, .filters a { display: inline-block; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--trait); background: transparent; color: var(--encre); font: 400 1rem var(--texte); cursor: pointer; text-decoration: none; }
.filters [aria-pressed="true"], .filters [aria-current] { background: var(--violet); border-color: var(--violet); color: var(--ivoire); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--ivoire); }
.lightbox::backdrop { background: rgba(24, 4, 38, .94); }
.lightbox__in { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: 1rem; gap: .75rem; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; object-fit: contain; border-radius: .5rem; min-height: 0; }
.lightbox__stage { min-height: 0; display: grid; place-items: center; }
.lightbox__stage img { max-height: calc(100vh - 10rem); }
.lightbox p { margin: 0; text-align: center; font-size: .98rem; max-width: 46em; margin-inline: auto; }
.lightbox button { background: transparent; color: var(--ivoire); border: 1px solid var(--trait-clair); border-radius: 999px; min-width: 2.9rem; min-height: 2.9rem; padding: 0 1rem; font: 500 1rem var(--texte); cursor: pointer; }
.lightbox button:hover { background: var(--ivoire); color: var(--nuit); }

/* Contact rapide et pages contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.coords { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.coords li { display: flex; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--trait); }
.section--dark .coords li { border-color: var(--trait-clair); }
.coords .icon { margin-top: .3rem; color: var(--or-texte); }
.section--dark .coords .icon { color: var(--or); }
.coords a { color: inherit; text-decoration: none; }
.coords a:hover { text-decoration: underline; }
.coords strong { display: block; font-weight: 500; }
.tel { font-family: var(--display); font-size: 1.45rem; line-height: 1.3; display: block; font-variant-numeric: lining-nums; }
.panel { background: var(--blanc); border-radius: calc(var(--rayon) * 1.3); padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--trait); color: var(--encre); }
.panel + .panel { margin-top: 2rem; }
.panel h2, .panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--rayon); margin-top: 1rem; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }

/* Formulaires */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .98rem; }
.field__opt { font-weight: 400; color: var(--encre-douce); font-size: .9rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea { width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid #8d8196; border-radius: .7rem; background: var(--blanc); color: var(--encre); font: 400 1rem/1.4 var(--texte); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--violet-vif); outline-offset: 1px; border-color: var(--violet-vif); }
.field--check { flex-direction: row; align-items: flex-start; gap: .7rem; }
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--violet); flex: none; }
.field--check label { font-weight: 400; font-size: .95rem; color: var(--encre-douce); }
.form__trap { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.25rem; border-radius: .9rem; margin: 0 0 1.5rem; border: 1px solid; }
.notice--ok { background: #e9f6ee; border-color: #1f7a4d; color: #124a2f; }
.notice--error { background: #fdecec; border-color: #b3261e; color: #7a1712; }
@media (max-width: 36rem) { .form { grid-template-columns: 1fr; } }

/* Pages intérieures */
.page-head { background: var(--nuit); color: var(--ivoire); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; width: 30rem; height: 30rem; border-radius: 50%; border: 1px solid rgba(217, 182, 77, .4); right: -8rem; top: -16rem; pointer-events: none; }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); margin: 0; max-width: 15em; }
.page-head__intro { margin: 1.25rem 0 0; max-width: 38em; font-size: 1.15rem; color: rgba(250, 246, 237, .82); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .92rem; margin-bottom: 1.5rem; color: rgba(250, 246, 237, .6); }
.crumbs a { color: rgba(250, 246, 237, .8); text-decoration: none; }
.crumbs a:hover { color: var(--or); }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--rayon); }
.prose .is-style-note, .prose em:only-child { color: var(--encre-douce); font-size: .95rem; }

/* Catalogue des formations */
.catalog__group { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--trait); }
.catalog__group:first-of-type { border-top: 0; padding-top: 0; }
.catalog__group[hidden] { display: none; }
.catalog__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); margin-bottom: 2.5rem; align-items: start; }
.catalog__head h2 { margin-bottom: .4em; }
.catalog__head p { color: var(--encre-douce); margin: 0; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: .25rem 1rem; padding: .7rem 0; border-top: 1px solid var(--trait); }
.facts div:last-child { border-bottom: 1px solid var(--trait); }
.facts dt { color: var(--encre-douce); }
.facts dd { margin: 0; font-weight: 500; }
.facts dd small { display: block; font-weight: 400; color: var(--encre-douce); font-size: .9rem; margin-top: .2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); list-style: none; padding: 0; margin: 0; }
.card { position: relative; display: flex; flex-direction: column; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--trait); height: 100%; }
.card__img { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--nuit); display: grid; place-items: center; }
.card__img img, .card__img picture { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__mono { width: 6.5rem; height: 6.5rem; border-radius: 50%; border: 1.5px solid var(--or); display: grid; place-items: center; font-family: var(--display); font-style: italic; font-size: 3rem; color: var(--or); line-height: 1; }
.card__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.4rem; }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.card__body p { margin: 0; color: var(--encre-douce); font-size: .98rem; }
.card__meta { margin-top: auto; padding-top: .8rem; font-size: .9rem; color: var(--or-texte); font-weight: 500; }
.card time { font-size: .9rem; color: var(--encre-douce); }
@media (max-width: 44rem) { .page-head::after, .intake::after { display: none; } }
@media (max-width: 56rem) { .catalog__head { grid-template-columns: 1fr; } .facts div { grid-template-columns: 1fr; } }

/* Fiche formation */
.course { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.course__aside { position: sticky; top: 6.5rem; }
.course__aside .facts div { grid-template-columns: 1fr; }
.course__aside .btns { flex-direction: column; margin-top: 1.5rem; }
.course__aside .btn { justify-content: center; }
.course__img { border-radius: var(--rayon); overflow: hidden; margin-bottom: 2.5rem; aspect-ratio: 16 / 10; }
.course__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.course__block { padding: 1.5rem 0; border-top: 1px solid var(--trait); }
.course__block h2 { font-size: 1.6rem; margin-bottom: .6em; }
.course__block ul { margin: 0; }
.course__block .tbc { color: var(--encre-douce); margin: 0; }
.badge { display: inline-block; padding: .3rem .9rem; border-radius: 999px; background: var(--rose); color: var(--encre); font-size: .9rem; font-weight: 500; }
@media (max-width: 56rem) { .course { grid-template-columns: 1fr; } .course__aside { position: static; } }

/* Installations (page académie) */
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1.1rem); }
.rooms figure { margin: 0; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 3 / 4; }
.rooms figure:nth-child(2) { grid-column: span 2; aspect-ratio: auto; }
.rooms img, .rooms picture { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 44rem) { .rooms { grid-template-columns: repeat(2, 1fr); } .rooms figure:nth-child(2) { aspect-ratio: 3 / 2; } }

/* Bandeau d'appel */
.cta { text-align: left; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin: 0; max-width: 14em; }

/* Pied de page */
.site-foot { background: #1d042d; color: rgba(250, 246, 237, .82); padding: clamp(3rem, 7vw, 5rem) 0 2rem; font-size: 1rem; }
.site-foot a { color: var(--ivoire); text-decoration: none; }
.site-foot a:hover { color: var(--or); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.foot-grid img { width: 12.5rem; height: auto; margin-bottom: 1.25rem; }
.foot-grid h2 { font-family: var(--texte); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--or); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--trait-clair); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--trait-clair); font-size: .92rem; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 56rem) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .foot-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #1f7a4d; color: #fff; box-shadow: 0 6px 20px rgba(29, 4, 45, .3); }
.wa-float:hover { background: #17603c; color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--trait); text-decoration: none; color: var(--encre); }
.pagination .current { background: var(--violet); color: var(--ivoire); border-color: var(--violet); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-head, .site-foot, .wa-float, .btns { display: none; } body { background: #fff; } }
