/* Double Dolfins — site public
   Couleurs et polices centralisées dans :root pour pouvoir changer de direction graphique facilement. */

@font-face { font-family: "Figtree"; src: url("../fonts/Figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-Italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --navy: #2e3779;          /* texte du logo */
  --navy-deep: #1d2357;
  --blue: #4f8bcb;          /* dauphins du logo */
  --blue-strong: #2c67a8;
  --sky: #eef4fb;
  --sky-2: #dbe8f6;
  --ink: #1a1f3d;
  --muted: #4b5476;
  --line: #d6dfee;
  --white: #fff;
  --ok: #1d7348; --ok-bg: #e3f4ea;
  --warn: #8a5a00; --warn-bg: #fdf1d6;
  --bad: #b3261e; --bad-bg: #fde7e5;
  --pause: #555c74; --pause-bg: #eceef3;

  --font-display: "Figtree", "Source Sans 3", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 35, 87, .06), 0 8px 24px -8px rgba(29, 35, 87, .16);
  --shadow-lg: 0 2px 4px rgba(29, 35, 87, .06), 0 24px 48px -16px rgba(29, 35, 87, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.125rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue-strong); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--blue) var(--sky); }
time, .cycle__dates, .facts dd { font-variant-numeric: tabular-nums; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
/* Colonne de lecture centrée, pour les pages sans colonne latérale (titre et texte alignés) */
.wrap--text { max-width: calc(68ch + 2 * var(--gutter)); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 700 1.0625rem/1.1 var(--font-display); text-decoration: none;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(29, 35, 87, .5); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--navy); --bd: var(--navy); }
.btn--primary:hover { --bg: var(--navy-deep); --bd: var(--navy-deep); }
.btn--outline { --bg: transparent; --fg: var(--navy); --bd: var(--line); }
.btn--outline:hover { --bd: var(--navy); }
.btn--light { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { --bg: rgba(255, 255, 255, .12); --bd: #fff; }
.btn--lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font: 700 1.0625rem var(--font-display); text-decoration: none; color: var(--blue-strong); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Annonce ---------- */
.announce { background: var(--navy-deep); color: #fff; font-size: 1rem; }
.announce__in { display: flex; gap: .6em; align-items: center; padding-block: .65em; }
.announce a { color: #fff; font-weight: 700; }
.announce .icon { color: #9cc3ec; flex-shrink: 0; }
.announce--success { background: var(--ok); }
.announce--success .icon { color: #bfe8cf; }
.announce--warning { background: #f6c84c; color: var(--ink); }
.announce--warning a { color: var(--ink); }
.announce--warning .icon { color: var(--ink); }
.announce--alert { background: var(--bad); }
.announce--alert .icon { color: #fff; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(29, 35, 87, .35); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
/* Logo en grand dans un onglet blanc qui dépasse sous l'en-tête, puis rétréci au défilement */
.brand { align-self: flex-start; position: relative; z-index: 1; display: flex; padding: 12px 16px 14px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 1px 2px rgba(29, 35, 87, .06), 0 10px 22px -10px rgba(29, 35, 87, .3); clip-path: inset(0 -30px -30px); transition: padding .25s var(--ease), box-shadow .25s var(--ease); }
.brand img { width: auto; height: 100px; transition: height .25s var(--ease); }
.site-header.is-scrolled .brand { padding: 8px 4px; box-shadow: none; }
.site-header.is-scrolled .brand img { height: 64px; }
@media (prefers-reduced-motion: reduce) { .brand, .brand img { transition: none; } }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); font: 600 1.0625rem var(--font-display); text-decoration: none; white-space: nowrap; }
.site-nav > ul > li > a:hover { background: var(--sky); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sub a:hover { background: var(--sky); color: var(--navy); }
.nav-toggle { display: none; }
@media (max-width: 1240px) { .site-nav { gap: 16px; } .site-nav > ul { gap: 0; } .site-nav > ul > li > a { padding-inline: 10px; } }

@media (max-width: 1080px) {
  .site-header__in { height: 68px; }
  .brand { padding: 8px 12px 10px; }
  .brand img { height: 72px; }
  .site-header.is-scrolled .brand, .site-header:has(.is-open) .brand { padding: 6px 2px; box-shadow: none; }
  .site-header.is-scrolled .brand img, .site-header:has(.is-open) .brand img { height: 56px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 700 1rem var(--font-display); cursor: pointer; }
  .nav-toggle .icon--close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--close { display: block; }
  .site-nav { position: fixed; inset: 68px 0 auto 0; max-height: calc(100dvh - 68px); overflow: auto; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li > a { padding: 12px 8px; font-size: 1.2rem; border-radius: 10px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  .sub a { font-weight: 400; padding: 8px; }
  .site-nav__cta { width: 100%; }
}

/* ---------- Hero accueil ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.04); animation: hero-in 1.6s var(--ease) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(29, 35, 87, .94) 0%, rgba(29, 35, 87, .82) 42%, rgba(29, 35, 87, .35) 100%), linear-gradient(0deg, rgba(29, 35, 87, .55), transparent 40%); }
@keyframes hero-in { to { transform: scale(1); } }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: end; padding-block: clamp(64px, 10vw, 128px) clamp(48px, 6vw, 80px); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 12ch; }
.hero__lead { margin-top: 20px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: #e3ebf8; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions--center { justify-content: center; }

.finder { background: #fff; color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: 24px; box-shadow: var(--shadow-lg); }
.finder__title { font-size: 1.25rem; margin-bottom: 12px; }
.finder__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.finder__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s var(--ease); }
.finder__item:hover { background: var(--sky); color: var(--ink); }
.finder__aud { font: 700 1.125rem var(--font-display); color: var(--navy); }
.finder__courses { grid-column: 1; font-size: .98rem; color: var(--muted); line-height: 1.4; }
.finder__arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--blue-strong); transition: transform .3s var(--ease); }
.finder__item:hover .finder__arrow { transform: translateX(4px); }
.finder__next { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--sky); font-size: 1rem; color: var(--navy); }
.finder__next .icon { margin-top: 3px; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; align-items: start; padding-top: 56px; }
  .hero::before { background: linear-gradient(180deg, rgba(29, 35, 87, .9), rgba(29, 35, 87, .82) 60%, rgba(29, 35, 87, .95)); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 64px) 0; }
.section--tight:last-of-type { padding-bottom: var(--section); }
.section--tint { background: var(--sky); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.section__sub { color: var(--muted); margin-top: 8px; margin-bottom: 28px; max-width: 60ch; }
.group-title { font-size: 1.6rem; margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro__text h2 { margin-bottom: 24px; max-width: 18ch; }
.intro__photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blue); }
.prose--lead { font-size: 1.2rem; color: #2b3255; }
.prose--small { font-size: 1.02rem; }
.prose blockquote { margin-left: 0; padding-left: 1em; border-left: 1px solid var(--line); color: var(--muted); }

/* ---------- Cartes de cours ---------- */
.course-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.course-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
/* Page « Nos cours » centrée */
.page-head--center .chips { justify-content: center; }
.courses-group .group-title { justify-content: center; }
.courses-group .group-title::before { content: ""; flex: 1; height: 1px; background: var(--line); }
.courses-group .course-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.courses-group .course-grid > li { flex: 0 1 370px; display: flex; }
.courses-group .course-grid > li > * { flex: 1; }
/* Dernier groupe de cours : un peu d'air avant le bandeau des dates, qui remonte légèrement */
.courses-group:not(:has(+ .courses-group)) { padding-bottom: clamp(40px, 5vw, 64px); }
.courses-dates { padding-top: clamp(40px, 5.5vw, 72px); }
.courses-dates h2, .courses-dates .section__sub { text-align: center; margin-inline: auto; }
.courses-dates .cycles { max-width: 900px; margin-inline: auto; }
.course-card { height: 100%; }
.course-card__link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.course-card__link:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky-2); }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card__link:hover .course-card__media img { transform: scale(1.04); }
.course-card__ph { display: grid; place-items: center; height: 100%; color: var(--blue); }
.course-card__ph .icon { width: 56px; height: 56px; }
.course-card__media .status { position: absolute; left: 14px; top: 14px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .3); }
.course-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.course-card__body h3 { transition: color .2s; }
.course-card__link:hover h3 { color: var(--blue-strong); }
.course-card__sum { color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.meta { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); font-size: .98rem; color: var(--navy); font-weight: 600; }
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { color: var(--blue); }
.course-grid--compact .course-card__sum { display: none; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 700 .85rem/1.2 var(--font-display); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--open { color: var(--ok); background: var(--ok-bg); }
.status--request { color: var(--warn); background: var(--warn-bg); }
.status--full { color: var(--bad); background: var(--bad-bg); }
.status--paused { color: var(--pause); background: var(--pause-bg); }

/* ---------- Bande niveaux ---------- */
.levels-band__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.levels-band h2 { margin-bottom: 16px; }
.levels-band p { color: var(--muted); margin-bottom: 20px; max-width: 52ch; }
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.caps li { transform: translateY(calc(var(--i) * -10px)); }
.caps a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 4px 8px; border-radius: 14px; font: 700 .98rem var(--font-display); color: var(--navy); text-decoration: none; }
.caps__dot { width: 100%; aspect-ratio: 1 / .78; border-radius: 999px 999px 18px 18px; background: var(--cap); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08), inset 0 8px 14px rgba(255, 255, 255, .35); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.caps__name { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: text-decoration-color .2s; }
.caps a:hover { color: var(--navy); }
.caps a:hover .caps__dot, .caps a:focus-visible .caps__dot { transform: translateY(-6px) rotate(-4deg); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08), inset 0 8px 14px rgba(255, 255, 255, .35), 0 12px 18px -10px rgba(29, 35, 87, .45); }
.caps a:hover .caps__name { text-decoration-color: currentColor; }
@media (max-width: 900px) { .levels-band__in { grid-template-columns: 1fr; } .caps { gap: 6px; } .caps a { font-size: .85rem; padding-inline: 0; } .caps li { transform: translateY(calc(var(--i) * -5px)); } }
.level { scroll-margin-top: 110px; }
.level.is-target details { border-color: var(--cap); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cap) 35%, transparent); }

/* ---------- Équipe ---------- */
.team { background: linear-gradient(180deg, #fff, var(--sky)); }
.team__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.team__photo { margin: 0; position: sticky; top: 110px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.team__people h2 { margin-bottom: 28px; }
.person { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.person:first-of-type { border-top: 0; padding-top: 0; }
.person__avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.45rem; }
.person__role { color: var(--blue-strong); font-weight: 600; margin: 2px 0 14px; }
.person__diplomas { margin-top: 16px; }
.person__diplomas summary { cursor: pointer; font: 700 1rem var(--font-display); color: var(--navy); }
.person__diplomas ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 1rem; }
.person__contact { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.person__contact a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .team__grid { grid-template-columns: 1fr; } .team__photo { position: static; } }

/* ---------- Galerie ---------- */
.gallery { padding-bottom: var(--section); background: var(--sky); }
.gallery__strip { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery__strip li { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .gallery__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gallery__strip li { flex: 0 0 80%; scroll-snap-align: center; }
}

/* ---------- Appel à l'action ---------- */
.cta-band { background: var(--navy); color: #fff; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 72px); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #d6e1f3; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- En-têtes de page ---------- */
.page-head { background: var(--sky); padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.page-head--center { text-align: center; }
.page-head--center .page-head__lead { margin-inline: auto; }
.page-head__lead { margin-top: 16px; font-size: 1.25rem; color: var(--muted); max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font: 700 1rem var(--font-display); text-decoration: none; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.page-body { padding-block: clamp(40px, 6vw, 72px) var(--section); }

/* ---------- Page cours ---------- */
.course-hero { background: var(--sky); padding-block: clamp(36px, 5vw, 64px); }
.course-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.course-hero__photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.course-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 1rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 28px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.facts > div { background: #fff; padding: 14px 16px; }
.facts dt { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.facts dt .icon { color: var(--blue); width: 1em; height: 1em; }
.facts dd { margin: 4px 0 0; font: 700 1.05rem var(--font-display); color: var(--navy); }
@media (max-width: 900px) { .course-hero__grid { grid-template-columns: 1fr; } .course-hero__photo { order: -1; aspect-ratio: 16 / 9; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.course-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px) var(--section); align-items: start; }
.course-body__side { position: sticky; top: 104px; }
.block { margin-top: 56px; }
.block h2 { font-size: 1.8rem; margin-bottom: 8px; }
.block > h2 + ol { margin-top: 20px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.35rem; margin-bottom: 12px; }
.side-card .btn { margin-top: 20px; }
.side-card__contacts { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.side-card__contacts li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.side-card__contacts span { font-weight: 700; color: var(--navy); }
.side-card__contacts a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; }
.side-card__foot { margin-top: 16px; font-size: 1rem; }
.side-card__foot a { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Page des bonnets ---------- */
/* Les deux dauphins du logo sur chaque bonnet, comme sur les vrais bonnets de l'école */
.caps__dot, .level__cap { position: relative; }
.caps__dot::after, .level__cap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 409 / 344;
  transform: translate(-50%, -46%); background: var(--dolphin, #1f4f9e);
  -webkit-mask: url("../img/dauphins.png") center / contain no-repeat; mask: url("../img/dauphins.png") center / contain no-repeat;
}
.level__cap::after { width: 66%; }
.levels-head .caps { padding-top: 60px; }
.levels-body { padding-top: clamp(24px, 3vw, 40px); }
.levels-body > article { max-width: 820px; margin-inline: auto; }
.levels-body .block { margin-top: 0; }
.levels-body h2, .levels-body .section__sub { text-align: center; margin-inline: auto; }
@media (max-width: 900px) { .levels-head .caps { padding-top: 30px; } }
@media (max-width: 960px) { .course-body { grid-template-columns: 1fr; } .course-body__side { position: static; order: -1; } }

/* ---------- Cycles ---------- */
.cycles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cycle { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; }
.cycle__head h3 { font-size: 1.2rem; }
.cycle__head p { color: var(--muted); font-size: 1rem; margin-top: 2px; }
.cycle__dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.cycle__dates li { padding: 5px 10px; border-radius: 8px; background: var(--sky); color: var(--navy); font-weight: 600; font-size: 1rem; }
.cycle__dates li.is-past { background: transparent; color: #8a91aa; text-decoration: line-through; text-decoration-color: rgba(138, 145, 170, .6); }
.cycle__note { grid-column: 2; font-size: .98rem; color: var(--muted); }
.cycle--past { opacity: .75; }
.cycle__done { font-weight: 700; }
.cycle__head .cycle__opens { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--warn); font-weight: 600; font-size: .95rem; }
.cycle__opens .icon { width: 1em; height: 1em; flex: none; }
.cycle__head .cycle__opens--open { color: var(--ok); }
.cycle__head .cycle__opens--closed { color: var(--pause); }
.notice-inline { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--ink); font-size: 1rem; }
.notice-inline .icon { color: var(--warn); flex: none; margin-top: 3px; }
@media (max-width: 700px) { .cycle { grid-template-columns: 1fr; } .cycle__note { grid-column: 1; } }

/* ---------- Niveaux ---------- */
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.levels__depth { display: flex; align-items: center; gap: 8px; margin-top: 14px; font: 700 .95rem var(--font-display); color: var(--blue-strong); }
.levels__depth:first-child { margin-top: 0; }
.level details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.level summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.level summary::-webkit-details-marker { display: none; }
.level summary::after { content: ""; width: 10px; height: 10px; margin-left: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.level details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.level__cap { width: 34px; height: 26px; border-radius: 999px 999px 8px 8px; background: var(--cap); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1); flex: none; }
.level__name { font: 700 1.15rem var(--font-display); color: var(--navy); }
.level__count { margin-left: auto; font-size: .95rem; color: var(--muted); }
.level__skills { margin: 0; padding: 4px 20px 18px 66px; display: grid; gap: 8px; font-size: 1.02rem; }
.level__skills strong { color: var(--navy); }
@media (max-width: 600px) { .level__skills { padding-left: 38px; } .level__count { display: none; } }

/* ---------- Documents ---------- */
.docs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .3s var(--ease); }
.doc:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.doc__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--navy); }
.doc__text { display: grid; }
.doc__text strong { font: 700 1.1rem var(--font-display); color: var(--navy); }
.doc__text span { color: var(--muted); font-size: 1rem; }
.doc__meta { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.doc__meta .icon { color: var(--blue-strong); width: 1.4em; height: 1.4em; }
@media (max-width: 560px) { .doc { grid-template-columns: auto 1fr; } .doc__meta { grid-column: 2; } }

/* ---------- Formulaires ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 64px) var(--section); align-items: start; }
.form { display: grid; gap: 28px; max-width: 680px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.form legend { font: 800 1.3rem var(--font-display); color: var(--navy); margin-bottom: 14px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field-row > .field { align-content: start; }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .field-row--3 { grid-template-columns: 1fr 1fr; } .field-row--3 > .field:last-child { grid-column: 1 / -1; } }
/* Plusieurs enfants dans une même inscription */
.children__help { margin-top: -6px; }
.children__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.child + .child { padding-top: 16px; border-top: 1px dashed var(--line); }
.child__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font: 700 1.05rem var(--font-display); color: var(--navy); }
.child__remove, .child-add { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; font: 700 1rem var(--font-display); cursor: pointer; }
.child__remove { border: 0; background: none; color: var(--bad); padding-inline: 8px; }
.child__remove .icon { width: 1em; height: 1em; }
.child__remove:hover { background: var(--bad-bg); }
.child-add { justify-self: start; border: 1.5px dashed var(--blue); background: #fff; color: var(--navy); }
.child-add:hover { border-style: solid; background: var(--sky); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); font-size: .95rem; }
.req { color: var(--bad); font-weight: 700; margin-left: 3px; }
.form__required { color: var(--muted); font-size: 1rem; margin-bottom: -8px; }
.form__either { margin-top: -6px; }
.field__help { font-size: .98rem; color: var(--muted); margin-top: -2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #b9c5dc; border-radius: 12px; background: #fff;
  font: inherit; font-size: 1.1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder { color: #69718f; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(79, 139, 203, .25); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3779' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--bad); }
.field__error { color: var(--bad); font-weight: 600; font-size: 1rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; accent-color: var(--navy); flex: none; }
.form__note { color: var(--muted); font-size: 1rem; margin-top: -12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); margin-bottom: 28px; }
.notice .icon { width: 28px; height: 28px; margin-top: 2px; }
.notice h2 { font-size: 1.3rem; margin-bottom: 6px; color: inherit; }
.notice p + p { margin-top: 8px; }
.notice--ok { background: var(--ok-bg); color: #10462b; }
.notice--error { background: var(--bad-bg); color: #7a1a14; }
.notice:focus { outline: none; }

.form-side { background: var(--sky); border-radius: var(--radius); padding: 28px; position: sticky; top: 104px; }
.form-side h2 { font-size: 1.35rem; margin-bottom: 8px; }
.form-side > p { color: var(--muted); }
.people { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.people li { display: grid; gap: 4px; }
.people strong { font: 700 1.1rem var(--font-display); color: var(--navy); }
.people a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; }
.form-side__note { display: flex; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sky-2); color: var(--muted); font-size: 1rem; }
.form-side__note .icon { margin-top: 3px; color: var(--blue-strong); }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } .form-side { position: static; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: #c9d5ec; font-size: 1.02rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr .9fr; gap: 40px; padding-block: 64px 40px; }
.site-footer__brand img { width: 200px; margin-bottom: 14px; }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a, .site-footer span { display: inline-flex; align-items: center; gap: 8px; color: #c9d5ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .icon { color: #8fb6e2; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 28px; font-size: .95rem; color: #9eabc8; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

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