/* ==========================================================================
   [Nom du centre] : feuille de style du site
   Reprend les trois maquettes (institutionnelle, catalogue, proximité) avec
   l'identité du CRM : marine #16213E, bleu #3355D8, bleu pâle #E7ECFD,
   jaune #F4BE3E réservé au logo et aux mentions « obligatoire ».
   Polices auto-hébergées : Familjen Grotesk (titres), Figtree (texte).
   Pour changer l'identité, modifier le bloc :root.
   ========================================================================== */

@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/familjen-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree.woff2") format("woff2"); }

:root {
  --text: #1B2130;
  --muted: #5A6274;
  --body-2: #3B4253;
  --line: #E1E4EA;
  --line-2: #C5CAD4;
  --soft: #F1F3F8;
  --navy: #16213E;
  --navy-2: #24315A;
  --navy-ink: #E3E8F5;
  --navy-muted: #A3ADCB;
  --blue: #3355D8;
  --blue-dark: #2541B2;
  --blue-soft: #E7ECFD;
  --blue-tint: #EEF2FD;
  --blue-line: #D3DCF8;
  --yellow: #F4BE3E;
  --yellow-soft: #FFF6DE;
  --green: #1E6B45;
  --orange: #8A5300;
  --title: "Familjen Grotesk", "Figtree", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 32px);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--title); font-weight: 700; line-height: 1.15; margin: 0; color: var(--navy); }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #FFFFFF; padding: 10px 14px; z-index: 30; }
.skip:focus { top: 8px; color: #FFFFFF; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.small { font-size: 14px; color: var(--muted); }

/* Boutons : rectangulaires, sans ombre */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: #FFFFFF; font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #FFFFFF; }
.btn-line { background: #FFFFFF; color: var(--navy); border-color: var(--line-2); }
.btn-line:hover { background: #FFFFFF; color: var(--navy); border-color: var(--navy); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Bandeau du haut, marine comme la barre latérale du CRM */
.topbar { background: var(--navy); color: var(--navy-ink); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar a { color: #FFFFFF; text-decoration: none; }
.topbar a:hover { color: #FFFFFF; text-decoration: underline; }
.topbar :focus-visible, .footer :focus-visible { outline-color: #FFFFFF; }
@media (max-width: 640px) { .topbar p { display: none; } }

/* En-tête */
.header { background: #FFFFFF; border-bottom: 1px solid var(--line); position: relative; }
.header .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--navy); text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo strong { display: block; font-family: var(--title); font-size: 20px; line-height: 1.1; }
.logo small { display: block; font-size: 13px; color: var(--muted); }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; padding: 10px 11px; border-bottom: 2px solid transparent; color: var(--text); font-weight: 600; font-size: 16px; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.menu-mobile { display: none; }
@media (max-width: 1120px) {
  .nav, .head-cta { display: none; }
  .menu-mobile { display: block; }
  .menu-mobile summary { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; font-weight: 600; list-style: none; cursor: pointer; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile[open] summary { border-color: var(--blue); color: var(--blue); }
  .menu-mobile nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #FFFFFF; padding: 0 var(--pad) 14px; border-bottom: 1px solid var(--line); }
  .menu-mobile a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none; }
  .menu-mobile a[aria-current="page"] { color: var(--blue); }
  .menu-mobile .btn { width: 100%; margin-top: 14px; border-bottom: 1px solid var(--blue); color: #FFFFFF; }
}
@media (max-width: 420px) { .logo small { display: none; } }

/* Emplacements photo : à remplacer par de vraies photos du centre */
.photo { margin: 0; min-width: 0; padding: 16px; display: grid; place-items: center; background: #ECEFF5; border: 1px solid var(--line); border-radius: 4px; color: #646C7E; font-size: 14px; text-align: center; }
.ratio-5-4 { aspect-ratio: 5 / 4; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1 { aspect-ratio: 1 / 1; }

/* Bandeau de titre des pages intérieures (bleu pâle) */
.page-head { background: var(--blue-tint); border-bottom: 1px solid var(--blue-line); padding: 22px 0 44px; }
.crumbs ol { display: flex; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #97A0B5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.page-head .eyebrow { margin-top: 28px; }
.page-head h1 { margin-top: 28px; max-width: 24em; font-size: clamp(30px, 1.5rem + 1.6vw, 46px); }
.page-head .eyebrow + h1 { margin-top: 8px; }
.page-head .lead { margin-top: 14px; max-width: 44em; font-size: 19px; color: var(--body-2); }
.page-head .tags { margin-top: 18px; }
.page-head .search { margin-top: 24px; }
.eyebrow { font-weight: 600; font-size: 16px; color: var(--blue-dark); }

/* Accueil : héros */
.hero { padding: 56px 0 44px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.hero h1 { margin-top: 10px; font-size: clamp(34px, 2.1rem + 1.4vw, 52px); }
.hero .lead { margin-top: 18px; max-width: 34em; font-size: 19px; color: var(--body-2); }
.strip { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip li { padding: 18px 20px; border-left: 1px solid var(--line); }
.strip li:first-child { padding-left: 0; border-left: 0; }
.strip b { display: block; font-family: var(--title); font-size: 18px; color: var(--navy); }
.strip span { font-size: 15px; color: var(--muted); }
@media (max-width: 700px) {
  .strip { grid-template-columns: 1fr; }
  .strip li { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .strip li:first-child { border-top: 0; }
}

/* Accueil : accès par domaine */
.themes { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.themes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.themes-grid a { display: block; padding: 22px 24px; border-left: 1px solid var(--line); color: var(--text); text-decoration: none; }
.themes-grid a:last-child { border-right: 1px solid var(--line); }
.themes-grid a:hover { background: #FFFFFF; }
.themes-grid a:hover strong { color: var(--blue); }
.themes-grid strong { display: block; font-family: var(--title); font-size: 19px; color: var(--navy); }
.themes-grid span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .themes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes-grid a { border-left: 0; border-bottom: 1px solid var(--line); }
  .themes-grid a:nth-child(odd) { border-right: 1px solid var(--line); }
  .themes-grid a:last-child { border-right: 0; }
  .themes-grid a:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .themes-grid { grid-template-columns: 1fr; }
  .themes-grid a, .themes-grid a:nth-child(odd) { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .themes-grid a:last-child { border-bottom: 0; }
}

/* Sections et titres */
.section { padding: 72px 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 32px; }
.head h2 { font-size: clamp(28px, 1.5rem + 1vw, 38px); }
.head h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 14px; background: var(--blue); }
.head p { margin-top: 14px; color: var(--muted); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 32px; }
.head-row .head { margin-bottom: 0; }
.more { font-weight: 600; }
.after { margin-top: 28px; }

/* Recherche */
.search { display: flex; width: 100%; max-width: 520px; }
.search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #B8BFCC; border-right: 0; border-radius: 6px 0 0 6px; background: #FFFFFF; color: var(--text); font: inherit; }
.search .btn { border-radius: 0 6px 6px 0; }

/* Listes de formations par domaine */
.domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
@media (max-width: 760px) { .domains { grid-template-columns: 1fr; } }
.domains h3 { padding-bottom: 10px; border-bottom: 2px solid var(--navy); font-size: 21px; }
.domains h3 + ul { margin-bottom: 36px; }
.domains ul:last-child { margin-bottom: 0; }
.links li a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.links li a:hover .t { color: var(--blue); text-decoration: underline; }
.links .t { font-weight: 600; }
.links .d { color: var(--muted); white-space: nowrap; }
.links .o { display: block; font-size: 13px; font-weight: 600; color: #7A5300; }

/* Prochaines sessions (accueil) */
.sessions { background: #FFFFFF; border-top: 2px solid var(--navy); }
.sessions li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px 160px auto; gap: 8px 20px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.sessions time { font-weight: 700; color: var(--navy); }
.sessions .s-title { font-weight: 600; color: var(--text); text-decoration: none; }
.sessions .s-title:hover { color: var(--blue); text-decoration: underline; }
.sessions .s-meta { font-size: 15px; color: var(--muted); }
.free { color: var(--green); }
.few { color: var(--orange); }
.sessions .free, .sessions .few { font-size: 15px; }
@media (max-width: 860px) {
  .sessions li { grid-template-columns: 1fr auto; padding: 16px 0; }
  .sessions time { grid-column: 1 / -1; }
  .sessions .s-title, .sessions .s-meta, .sessions .free, .sessions .few { grid-column: 1; }
  .sessions .btn { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
}

/* Déroulement en 6 temps (pastilles bleues) */
.process { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; counter-reset: s; }
@media (max-width: 760px) { .process { grid-template-columns: 1fr; } }
.process li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.process li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #FFFFFF; font-weight: 700; font-size: 15px; }
.process b { color: var(--navy); }
.process span { font-size: 16px; color: var(--muted); }

/* Étapes numérotées en colonnes */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--line-2); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border: 1px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 6px; font-size: 16px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Quatre colonnes « ce que nous faisons » */
.work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.work li { padding-top: 14px; border-top: 3px solid var(--blue); }
.work h3 { font-size: 18px; }
.work p { margin-top: 6px; font-size: 15px; color: var(--body-2); }
@media (max-width: 900px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .work { grid-template-columns: 1fr; } }

/* Deux colonnes */
.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split h2 { margin-bottom: 14px; font-size: clamp(24px, 1.3rem + 0.6vw, 30px); }
.split p + p { margin-top: 12px; }
.split .rows { margin-top: 12px; }
.rows li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li b { color: var(--navy); }
.def { margin: 20px 0 0; border-top: 1px solid var(--line); }
.def div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.def dt { font-weight: 700; color: var(--navy); }
.def dd { margin: 0; color: var(--body-2); }
@media (max-width: 560px) { .def div { grid-template-columns: 1fr; } }

/* Qualité */
.q-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.slot { width: 150px; height: 74px; display: grid; place-items: center; border: 1px dashed #AEB5C4; font-size: 13px; line-height: 1.3; color: var(--muted); text-align: center; }
.nums { display: flex; flex-wrap: wrap; gap: 28px; }
.nums strong { display: block; font-family: var(--title); font-size: 30px; color: var(--blue); }
.nums span { font-size: 14px; color: var(--muted); }
.quality { display: grid; gap: 32px; }
@media (min-width: 900px) { .quality { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.results { width: 100%; border-collapse: collapse; background: #FFFFFF; border: 1px solid var(--line); }
.results th, .results td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.results td { text-align: right; font-weight: 700; font-size: 18px; color: var(--blue); white-space: nowrap; }
.results caption { caption-side: bottom; padding-top: 10px; font-size: 14px; color: var(--muted); text-align: left; }
.cert { display: grid; gap: 12px; align-content: start; padding: 22px; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.cert p { font-size: 15px; color: var(--body-2); }

/* Tableaux larges (résultats par formation, financement) */
.table-scroll { overflow-x: auto; }
.grid-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #FFFFFF; border: 1px solid var(--line); font-size: 15px; }
.grid-table th, .grid-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.grid-table thead th { background: var(--soft); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.grid-table td { text-align: right; white-space: nowrap; font-weight: 600; color: var(--navy); }
.grid-table thead th:not(:first-child) { text-align: right; }
@media (max-width: 640px) {
  .grid-table { min-width: 0; font-size: 14px; }
  .grid-table th, .grid-table td { padding: 10px 8px; }
  .grid-table thead th { font-size: 11px; letter-spacing: 0.02em; }
}

.fund { width: 100%; border-collapse: collapse; background: #FFFFFF; border: 1px solid var(--line); }
.fund th, .fund td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; vertical-align: top; }
.fund tbody th { width: 210px; color: var(--navy); }
.fund thead th { background: var(--soft); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 680px) {
  .fund thead { display: none; }
  .fund tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .fund tbody th { width: auto; }
  .fund th, .fund td { display: block; padding: 4px 16px; border: 0; }
}

/* Références clients et avis */
.clients { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; }
.clients li { height: 72px; display: grid; place-items: center; border: 1px dashed #B9BFCB; background: #FFFFFF; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quotes blockquote { margin: 0; padding: 24px 0 0; border-top: 2px solid var(--blue); }
.quotes blockquote p { font-size: 19px; color: var(--navy); }
.quotes footer { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Questions fréquentes */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 600; font-size: 18px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--blue); }
.faq details > div { padding: 0 0 20px; max-width: 70ch; color: var(--body-2); }
.faq details > div p + p { margin-top: 10px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { margin-bottom: 12px; font-size: 24px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-weight: 600; }

/* Bandeau d'appel avant le pied de page (bleu pâle) */
.cta { background: var(--blue-soft); border-top: 1px solid var(--blue-line); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; padding-top: 40px; padding-bottom: 40px; }
.cta h2 { font-size: clamp(24px, 1.2rem + 0.8vw, 30px); }
.cta p { margin-top: 6px; color: var(--body-2); }
.cta .actions { margin-top: 12px; }

/* Pied de page marine */
.footer { background: var(--navy); color: var(--navy-ink); padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.footer h2 { margin-bottom: 12px; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF; }
.footer .f-name { margin-bottom: 8px; font-family: var(--title); font-size: 20px; font-weight: 700; color: #FFFFFF; }
.footer p + p { margin-top: 10px; }
.footer li + li { margin-top: 6px; }
.footer a { color: var(--navy-ink); text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--navy-2); display: grid; gap: 6px; font-size: 13px; color: var(--navy-muted); }
.legal ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.legal li + li { margin-top: 0; }
.legal a { color: var(--navy-muted); }

/* Catalogue : filtres et résultats */
.cat-layout { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 980px) { .cat-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; } }
.filters { align-self: start; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 6px; }
.filters summary { padding-bottom: 10px; font-weight: 600; font-size: 16px; color: var(--navy); cursor: pointer; }
@media (min-width: 980px) { .filters summary { pointer-events: none; list-style: none; } .filters summary::-webkit-details-marker { display: none; } }
.filters fieldset { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--line); }
.filters legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.filters legend + label { clear: both; }
.filters label { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 15px; cursor: pointer; }
.filters input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.filters .n { margin-left: auto; font-size: 13px; color: var(--muted); }
.filters .reset { margin-top: 8px; padding: 0; background: none; border: 0; color: var(--blue); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
@media (max-width: 979px) {
  .filters fieldset { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .filters .n { margin-left: 0; }
}
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.results-head h2 { font-size: 22px; }
.results-head p { font-size: 14px; color: var(--muted); }
.result { display: grid; grid-template-columns: minmax(0, 1fr) 180px 180px; gap: 16px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.r-dom { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.result h3 { margin-top: 2px; font-size: 20px; }
.result h3 a { color: var(--navy); text-decoration: none; }
.result h3 a:hover { color: var(--blue); text-decoration: underline; }
.r-desc { margin-top: 4px; font-size: 15px; color: var(--body-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { padding: 2px 8px; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 3px; font-size: 12px; font-weight: 600; color: var(--blue-dark); }
.tag.ob { background: var(--yellow-soft); border-color: #E8C26A; color: #6B4A00; }
.r-info { display: grid; gap: 6px; align-content: start; font-size: 14px; color: var(--muted); }
.r-info b { display: block; font-size: 15px; color: var(--text); }
.r-price { display: grid; gap: 8px; align-content: start; text-align: right; }
.r-price strong { font-size: 20px; color: var(--navy); }
.r-price small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
@media (max-width: 760px) {
  .result { grid-template-columns: 1fr 1fr; }
  .r-main { grid-column: 1 / -1; }
  .r-price { text-align: left; }
}
.none { padding: 28px 0; color: var(--muted); }

/* Calendrier */
.month + .month { margin-top: 36px; }
.month h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-family: var(--body); font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.cal { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; background: #FFFFFF; }
.cal td, .cal th { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; }
.cal th { font-weight: 600; }
.cal th a { color: var(--text); text-decoration: none; }
.cal th a:hover { color: var(--blue); text-decoration: underline; }
.cal td:first-child { width: 170px; white-space: nowrap; font-weight: 600; color: var(--navy); }
.cal td:nth-child(3) { width: 80px; }
.cal td:nth-child(4) { width: 170px; }
.cal td:nth-child(5) { width: 110px; text-align: right; }
@media (max-width: 700px) {
  .cal, .cal tbody { display: block; min-width: 0; }
  .cal tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cal td, .cal th { display: block; width: auto !important; padding: 0; border: 0; }
  .cal td:first-child, .cal th { grid-column: 1; }
  .cal td:nth-child(3), .cal td:nth-child(4) { grid-column: 1; font-size: 14px; }
  .cal td:nth-child(3) { color: var(--muted); }
  .cal td:nth-child(5) { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}

/* Le centre */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.about p + p { margin-top: 14px; }
.facts { margin: 0; border-top: 2px solid var(--navy); }
.facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; color: var(--body-2); }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: 1 / -1; } }
@media (min-width: 761px) { .gallery figure + figure { aspect-ratio: auto; } }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.team h3 { margin-top: 14px; font-size: 20px; }
.team .role { font-weight: 600; font-size: 15px; color: var(--blue-dark); }
.team p:last-child { margin-top: 6px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* Contact et formulaire */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.contact h2 { font-size: clamp(24px, 1.3rem + 0.6vw, 30px); }
.coords { margin: 20px 0 0; display: grid; gap: 14px; }
.coords dt { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.coords dd { margin: 2px 0 0; }
.map { margin-top: 24px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(20px, 3vw, 32px); background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 6px; }
.form .full { grid-column: 1 / -1; }
.form h2 { grid-column: 1 / -1; font-size: 22px; }
.form label { display: grid; gap: 6px; align-content: start; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #B8BFCC; border-radius: 6px; background: #FFFFFF; color: var(--text); font: inherit; font-weight: 400; }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--body-2); }
.form .check input { flex: none; width: 18px; height: 18px; min-height: 18px; margin-top: 3px; }
.form .req { color: #B3261E; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Fiche formation */
.f-layout { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 960px) {
  .f-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .f-card { grid-column: 2; grid-row: 1; }
  .f-main { grid-column: 1; grid-row: 1; }
}
.f-card { align-self: start; padding: 22px; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 6px; }
.f-card h2 { font-size: 20px; }
.f-card dl { margin: 12px 0 0; }
.f-card dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.f-card dt { font-weight: 700; color: var(--navy); }
.f-card dd { margin: 0; color: var(--body-2); }
.f-card h3 { margin-top: 20px; font-family: var(--body); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.f-sessions li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.f-sessions time { font-weight: 600; color: var(--navy); }
.f-card .actions { display: grid; gap: 10px; margin-top: 20px; }
.f-card .small { margin-top: 14px; }
.f-main > section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.f-main h2 { margin-bottom: 16px; font-size: clamp(22px, 1.2rem + 0.5vw, 27px); }
.f-main .def { margin-top: 0; }
.f-main p + .def, .f-main .def + p { margin-top: 16px; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.modules { counter-reset: m; border-top: 1px solid var(--line); }
.modules li { counter-increment: m; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.modules li::before { content: counter(m); width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 14px; }
.f-main .small { margin-top: 12px; }

/* Pages de texte (mentions, CGV, confidentialité, règlement) */
.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 12px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; font-size: 19px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 4px; }
.prose .notice { padding: 14px 16px; background: var(--yellow-soft); border-left: 3px solid var(--yellow); font-size: 15px; color: #4D3A00; }
.prose .notice + h2 { margin-top: 32px; }
