/* =========================================================================
   Judo Taïso Cuvry — feuille de style publique
   Noir franc, orange du club, rouge et vert repris du tatami du dojo.
   Pas de gris froid : les fonds clairs sont des blancs chauds orangés.
   Les sections se lisent en largeur — rangées, bandeaux, panneaux jumelés —
   plutôt qu'en pile.
   ========================================================================= */

:root {
  --ink: #111417;
  --ink-2: #1b2024;
  --ink-3: #2b3338;
  --paper: #ffffff;
  --wash: #fff2ea;
  --wash-2: #ffe6d7;
  --line: #ecded4;

  --blaze: #f85a16;
  --blaze-d: #d2440a;
  --blaze-l: #ff8546;
  --ember: #e2342b;
  --jade: #12b48c;
  --jade-d: #0a7d61;
  --jade-wash: #e4f7f1;

  --on-ink: #ffffff;
  --on-ink-soft: #b9c2c7;
  --body: #3d464c;
  --faint: #8a7f78;

  --shell: min(1240px, 100% - 3rem);
  --radius: 10px;
  --radius-lg: 16px;
  --step: clamp(3.5rem, 7vw, 6.5rem);

  --t-xs: 0.79rem;
  --t-sm: 0.93rem;
  --t-base: 1.07rem;
  --t-lg: 1.28rem;
  --t-xl: clamp(1.5rem, 2.5vw, 2rem);
  --t-2xl: clamp(2rem, 4.2vw, 3.1rem);
  --t-3xl: clamp(2.9rem, 7.5vw, 5.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--t-base);
  font-variation-settings: "wdth" 100, "wght" 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-variation-settings: "wdth" 112, "wght" 800;
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); font-variation-settings: "wdth" 106, "wght" 730; letter-spacing: -0.022em; }
h4 { font-size: var(--t-lg); font-variation-settings: "wdth" 104, "wght" 720; }
p { margin: 0 0 1.1em; }

/* Le penché : réservé aux accroches et aux chiffres, là où il faut de l'élan. */
.slant { font-style: italic; font-variation-settings: "wdth" 118, "wght" 850; letter-spacing: -0.035em; }

.shell { width: var(--shell); margin-inline: auto; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--blaze);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--blaze); color: #fff; padding: 0.8rem 1.2rem; }
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit;
  font-variation-settings: "wdth" 104, "wght" 680;
  font-size: var(--t-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--blaze); color: #fff; }
.btn-primary:hover { background: var(--blaze-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--wash-2); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: var(--t-xs); }

/* ----------------------------------------------------------------- entête */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: #fff;
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-variation-settings: "wdth" 118, "wght" 820; font-size: 1.04rem; letter-spacing: -0.025em; }
.brand-sub { font-size: var(--t-xs); color: var(--on-ink-soft); font-variation-settings: "wdth" 94, "wght" 500; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  padding: 0.55rem 0.82rem; text-decoration: none; border-radius: 999px;
  font-size: var(--t-sm); font-variation-settings: "wdth" 100, "wght" 560;
  color: var(--on-ink-soft);
}
.nav a:hover { background: var(--ink-3); color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: var(--ink-3); }
.nav .btn { margin-left: 0.6rem; }

.nav-toggle { display: none; background: var(--ink-3); border: 0; border-radius: 8px; padding: 0.55rem 0.7rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .masthead .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 4px solid var(--blaze);
  }
  .masthead .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0.3rem; border-bottom: 1px solid var(--ink-3); border-radius: 0; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; border-bottom: 0; }
}

/* ----------------------------------------------------------- messages flash */
.flashwrap { background: var(--wash); border-bottom: 1px solid var(--line); }
.flash {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem;
  padding: 0.8rem 0 0.8rem 1rem; border-left: 5px solid var(--blaze);
}
.flash + .flash { border-top: 1px solid var(--line); }
.flash-alerte { border-left-color: var(--ember); }
.flash-succes { border-left-color: var(--jade); }
.flash strong { font-variation-settings: "wdth" 108, "wght" 740; }
.flash p { margin: 0; font-size: var(--t-sm); color: var(--body); }
.flash a { font-size: var(--t-sm); font-variation-settings: "wdth" 100, "wght" 640; color: var(--blaze-d); }

/* ------------------------------------------------------------------ héros */
.hero {
  position: relative; isolation: isolate;
  min-height: min(84vh, 720px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(17, 20, 23, 0.95) 0%, rgba(17, 20, 23, 0.86) 34%,
                    rgba(17, 20, 23, 0.32) 68%, rgba(17, 20, 23, 0.62) 100%),
    linear-gradient(to top, rgba(17, 20, 23, 0.72) 0%, transparent 45%);
}
.hero-shell { padding-block: clamp(4rem, 10vw, 7rem) clamp(2.5rem, 5vw, 3.5rem); }
.hero-inner { max-width: 41rem; }
@media (max-width: 700px) {
  .hero { min-height: 33rem; }
  .hero-shell { padding-block: 6rem 2.25rem; }
  .hero-media img { object-position: 57% 62%; }
  .hero-media::after {
    background:
      linear-gradient(to top, rgba(17, 20, 23, 0.94) 30%, rgba(17, 20, 23, 0.5) 70%, rgba(17, 20, 23, 0.72) 100%);
  }
}
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 4rem); margin-bottom: 1rem; }
.hero-inner .hero-lede { max-width: 33rem; }
.hero-lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: #e3e8ea; max-width: 48ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Bandeau de chiffres : une rangée pleine largeur, pour couper la verticalité. */
.stripe { background: var(--blaze); color: #fff; }
.stripe-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stripe div { padding: 1.35rem 1.4rem; position: relative; }
.stripe div + div::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 2px; background: rgba(255, 255, 255, 0.3); transform: skewX(-12deg);
}
.stripe dt { font-size: var(--t-xs); opacity: 0.85; margin-bottom: 0.1rem; }
.stripe dd {
  margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1;
  font-style: italic; font-variation-settings: "wdth" 120, "wght" 840; letter-spacing: -0.035em;
}
@media (max-width: 560px) {
  .stripe-inner { grid-template-columns: 1fr 1fr; }
  .stripe div { padding: 1rem 1rem; }
  .stripe dd { font-size: 1.35rem; }
}

/* -------------------------------------------------------------- sections */
.section { padding-block: var(--step); }
.section-wash { background: var(--wash); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: var(--on-ink-soft); }

/* Bord supérieur incliné : du mouvement entre deux sections. */
.section-slant {
  clip-path: polygon(0 2.6vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -2.6vw; padding-top: calc(var(--step) + 2.6vw);
}

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: center; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head > div { max-width: 54ch; }
.section-head p { color: var(--body); font-size: var(--t-lg); margin-bottom: 0; }
.section-ink .section-head p { color: var(--on-ink-soft); }
.section-head h2 { margin-bottom: 0.35em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

.rule { width: 3.2rem; height: 5px; background: var(--blaze); margin-bottom: 1.1rem; transform: skewX(-16deg); }

/* -------------------------------------- le planning : une rangée de cartes */
.cours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 1.1rem; }
.cours {
  position: relative; overflow: hidden;
  background: var(--paper); border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
}
.cours::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--blaze);
}
.cours-taiso::before { background: var(--jade); }
.cours-jour {
  display: inline-block; margin-bottom: 0.45rem;
  font-size: var(--t-xs); letter-spacing: 0.05em;
  font-variation-settings: "wdth" 96, "wght" 660; color: var(--blaze-d);
}
.cours-taiso .cours-jour { color: var(--jade-d); }
.cours-heure {
  display: block; white-space: nowrap;
  font-style: italic; font-variation-settings: "wdth" 112, "wght" 840;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem); letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: 0.7rem;
}
.cours h3 { font-size: var(--t-lg); margin-bottom: 0.15rem; }
.cours-public { font-size: var(--t-sm); color: var(--faint); margin-bottom: 0.7rem; }
.cours-note { font-size: var(--t-sm); color: var(--body); margin: 0; }
@media (max-width: 520px) {
  .cours { padding: 1.15rem 1rem 1.25rem; }
  .cours-note { display: none; }
}

.cours-foot {
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; align-items: center; justify-content: space-between;
  margin-top: 1.6rem; font-size: var(--t-sm); color: var(--body);
}
@media (prefers-reduced-motion: no-preference) {
  .cours-grid .cours { animation: rise 480ms cubic-bezier(0.22, 0.68, 0.32, 1) backwards; }
  .cours-grid .cours:nth-child(1) { animation-delay: 40ms; }
  .cours-grid .cours:nth-child(2) { animation-delay: 110ms; }
  .cours-grid .cours:nth-child(3) { animation-delay: 180ms; }
  .cours-grid .cours:nth-child(n + 4) { animation-delay: 250ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* ------------------------------------- les disciplines : panneaux jumelés */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.25rem; }
.panel {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(24rem, 38vw, 31rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg); color: #fff;
}
.panel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.panel-taiso img { object-position: 50% 45%; }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(17, 20, 23, 0.93) 12%, rgba(210, 68, 10, 0.42) 62%, rgba(17, 20, 23, 0.12) 100%);
}
.panel-taiso::before {
  background: linear-gradient(to top, rgba(17, 20, 23, 0.93) 12%, rgba(10, 125, 97, 0.48) 62%, rgba(17, 20, 23, 0.12) 100%);
}
.panel-kicker {
  align-self: flex-start; margin-bottom: auto;
  background: var(--blaze); color: #fff; border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: var(--t-xs);
  font-variation-settings: "wdth" 100, "wght" 680;
}
.panel-taiso .panel-kicker { background: var(--jade); }
.panel h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-variation-settings: "wdth" 114, "wght" 800; margin-bottom: 0.4rem; }
.panel p { color: #e6ebed; font-size: var(--t-sm); max-width: 42ch; }
.panel .btn { align-self: flex-start; margin-top: 0.6rem; }

/* ---------------------------------------------------------- trois raisons */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.75rem, 4vw, 3rem); }
.reason h3 { font-size: var(--t-lg); margin-bottom: 0.4rem; }
.reason p { font-size: var(--t-sm); margin-bottom: 0; }

/* ----------------------------------------------------------------- tarifs */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.25rem; }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem); position: relative; overflow: hidden;
}
.price-amount {
  display: block; margin-bottom: 0.15rem;
  font-style: italic; font-variation-settings: "wdth" 122, "wght" 850;
  font-size: clamp(2.9rem, 6vw, 4.2rem); line-height: 0.88; letter-spacing: -0.05em;
  color: var(--blaze);
}
.price-taiso .price-amount { color: var(--jade-d); }
.price h3 { font-size: var(--t-lg); margin-bottom: 0.2rem; }
.price p { font-size: var(--t-sm); color: var(--body); margin-bottom: 0; }
.price-note { margin-top: 1.3rem; font-size: var(--t-sm); }

/* ------------------------------------------------------------- actualités */
.news-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 880px) { .news-lead { grid-template-columns: 1fr; } }
.news-side { display: flex; flex-direction: column; gap: 1rem; }

.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.news-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--wash-2); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card.is-lead .news-card-media { aspect-ratio: 16 / 10; }
.news-card.is-lead h3 { font-size: var(--t-xl); }
.news-meta { font-size: var(--t-xs); color: var(--faint); margin-bottom: 0.45rem; }
.news-meta b { color: var(--blaze-d); font-variation-settings: "wdth" 98, "wght" 680; }
.news-card h3 { font-size: var(--t-lg); margin-bottom: 0.4rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--blaze-d); }
.news-card p { font-size: var(--t-sm); color: var(--body); flex: 1; margin-bottom: 0; }
.news-side .news-card { flex-direction: row; }
.news-side .news-card-media { aspect-ratio: 1; width: 8.5rem; flex: none; }
.news-side .news-card-body { padding: 1rem 1.15rem; }
@media (max-width: 520px) {
  .news-side .news-card { flex-direction: column; }
  .news-side .news-card-media { width: 100%; aspect-ratio: 16 / 9; }
}

.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news-row {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) 12rem;
  gap: 0.5rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.news-row h2 { font-size: var(--t-xl); margin-bottom: 0.35rem; }
.news-row h2 a { text-decoration: none; }
.news-row h2 a:hover { color: var(--blaze-d); }
.news-row p { color: var(--body); margin-bottom: 0; font-size: var(--t-sm); }
.news-row img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.news-date { font-size: var(--t-sm); color: var(--faint); font-variant-numeric: tabular-nums; }
.news-date b { display: block; color: var(--blaze-d); font-variation-settings: "wdth" 98, "wght" 680; }
@media (max-width: 820px) { .news-row { grid-template-columns: 1fr; } .news-row img { max-width: 14rem; } }

.pagination { display: flex; gap: 0.45rem; margin-top: 2.5rem; align-items: center; }
.pagination a, .pagination span {
  padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: var(--t-sm);
}
.pagination [aria-current] { background: var(--blaze); color: #fff; border-color: var(--blaze); }

/* ------------------------------------------------- bandeau d'appel final */
.callout {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center;
}
.callout img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.callout::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(17, 20, 23, 0.94) 30%, rgba(210, 68, 10, 0.72) 100%);
}
.callout h2 { margin-bottom: 0.3rem; }
.callout p { color: #e6ebed; margin-bottom: 0; max-width: 46ch; }
.callout-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
@media (max-width: 820px) { .callout { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- pages intérieures */
.page-header {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.page-header.has-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-header.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(92deg, rgba(17, 20, 23, 0.93) 25%, rgba(17, 20, 23, 0.55) 100%);
}
.page-header .eyebrow {
  display: inline-block; margin-bottom: 0.8rem;
  background: var(--blaze); color: #fff; border-radius: 999px;
  padding: 0.25rem 0.8rem; font-size: var(--t-xs);
  font-variation-settings: "wdth" 100, "wght" 680;
}
.page-header h1 { max-width: 18ch; }
.page-header .subtitle { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: #e3e8ea; max-width: 52ch; margin-bottom: 0; }
.page-header .btn { margin-top: 1.75rem; }

.page-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 980px) { .page-layout { grid-template-columns: 1fr; } }

.prose { max-width: 70ch; font-size: 1.09rem; color: var(--body); }
.prose > h2 {
  color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 2.2em; margin-bottom: 0.5em; padding-top: 1.1rem;
  border-top: 3px solid var(--wash-2);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { color: var(--ink); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--blaze); }
.prose strong { color: var(--ink); }
.prose a { color: var(--blaze-d); text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.7em 0; padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 5px solid var(--blaze); font-size: 1.14rem; color: var(--ink);
}
.prose img { border-radius: var(--radius); margin-block: 1.7em; }
.prose figure { margin: 1.7em 0; }
.prose figcaption { font-size: var(--t-sm); color: var(--faint); margin-top: 0.5rem; }
.prose iframe, .prose .ql-video {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: var(--radius); margin-block: 1.7em; display: block;
}
.prose code { background: var(--wash); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.7em; font-size: var(--t-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; }
.prose th { background: var(--wash); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }

/* Les étapes d'inscription, en cartes numérotées (le contenu reste éditable). */
.prose-steps > ol {
  list-style: none; counter-reset: etape; padding: 0; margin-block: 1.5em 2em;
  display: grid; gap: 0.8rem;
}
.prose-steps > ol > li {
  counter-increment: etape; margin: 0;
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blaze);
  border-radius: var(--radius); padding: 1.4rem 1.6rem 1.4rem 4.6rem; position: relative;
}
.prose-steps > ol > li::before {
  content: counter(etape); position: absolute; left: 1.5rem; top: 1.05rem;
  font-style: italic; font-variation-settings: "wdth" 120, "wght" 850;
  font-size: 1.9rem; line-height: 1; color: var(--blaze); letter-spacing: -0.05em;
}

.aside-card { padding: 1.5rem; background: var(--wash); border-radius: var(--radius); position: sticky; top: 6rem; }
.aside-card h2 { font-size: var(--t-lg); margin-bottom: 0.75rem; }
.aside-card p { font-size: var(--t-sm); color: var(--body); }
.aside-card .btn { width: 100%; justify-content: center; }
.commune {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 0.4rem; border-bottom: 1px solid var(--line);
}
.commune img { width: 58px; height: auto; flex: none; }
.commune p { margin: 0; font-size: var(--t-sm); color: var(--body); }

.aside-list { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: var(--t-sm); color: var(--body); }
.aside-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list strong { display: block; color: var(--ink); font-variation-settings: "wdth" 106, "wght" 700; }

/* ------------------------------------------------------------- formulaire */
.form-grid { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.2rem; }
.field label { display: block; font-size: var(--t-sm); font-variation-settings: "wdth" 100, "wght" 660; margin-bottom: 0.35rem; }
.field .hint { font-size: var(--t-xs); color: var(--faint); font-variation-settings: "wdth" 100, "wght" 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; padding: 0.78rem 0.9rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: var(--t-base);
}
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blaze); }
.field-error input, .field-error textarea, .field-error select { border-color: var(--ember); }
.error-text { color: #b3151b; font-size: var(--t-sm); margin-top: 0.3rem; }
.checkline { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-sm); color: var(--body); }
.checkline input { margin-top: 0.28rem; width: 1.05rem; height: 1.05rem; accent-color: var(--blaze); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1.1rem 1.35rem; border-radius: var(--radius); border-left: 5px solid var(--jade); background: var(--jade-wash); margin-bottom: 2rem; }
.notice h2 { font-size: var(--t-lg); margin-bottom: 0.25rem; }
.notice p { margin-bottom: 0; font-size: var(--t-sm); color: var(--body); }

/* ------------------------------------------------------------------- pied */
.footer { background: var(--ink); color: var(--on-ink-soft); padding-block: clamp(3rem, 5vw, 4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2.5rem; }
.footer h3 { color: #fff; font-size: var(--t-sm); font-variation-settings: "wdth" 104, "wght" 720; margin-bottom: 0.85rem; }
.footer a { color: var(--on-ink-soft); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.footer li { margin-bottom: 0.45rem; }
.footer-brand img { width: 62px; margin-bottom: 1rem; background: #fff; border-radius: 50%; padding: 4px; }
.footer-brand p { font-size: var(--t-sm); max-width: 32ch; }
.footer-commune {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0 0; font-size: var(--t-xs); line-height: 1.45;
}
.footer-commune img { width: 42px; height: auto; flex: none; }

.footer-base {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-3); font-size: var(--t-xs);
}

/* ---------------------------------------------------------------- erreurs */
.error-page { padding-block: clamp(4rem, 10vw, 8rem); }
.error-code {
  font-style: italic; font-variation-settings: "wdth" 125, "wght" 860;
  font-size: clamp(5rem, 18vw, 11rem); line-height: 0.82; letter-spacing: -0.06em;
  color: var(--blaze); margin-bottom: 1rem;
}
.error-page .hero-lede { color: var(--body); }
