/* Dojo Expression — feuille unique.
   Charte reprise du logo : disque rouge #EE1419, calligraphie à l’encre noire, fond papier. */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-v13-latin_latin-ext-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-v13-latin_latin-ext-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-v13-latin_latin-ext-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-v13-latin_latin-ext-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-v13-latin_latin-ext-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #141312;          /* encre sumi */
  --ink-2: #1d1b19;
  --ink-3: #2a2724;
  --paper: #f5f1ea;        /* papier washi */
  --paper-2: #ebe5da;
  --white: #fffdf9;
  --red: #e3141a;          /* rouge du logo (#EE1419) à peine assombri : blanc dessus = AA */
  --red-deep: #b70f14;     /* texte rouge sur papier */
  --red-lit: #ff5a5e;      /* texte rouge sur encre */
  --jade: #2f7d6d;
  --muted: #5d5853;
  --muted-d: #b5aea6;
  --line: rgba(20, 19, 18, .14);
  --line-d: rgba(245, 241, 234, .16);

  --c-taekwondo: var(--red);
  --c-kenpo: #2b2826;
  --c-taichi: var(--jade);

  --f-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --hd-h: 76px;
  --r: 14px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scroll-padding-top: calc(var(--hd-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--f-title); font-weight: 700; line-height: 1.04; letter-spacing: .005em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 200; padding: .6em 1em; background: var(--red); color: #fff; border-radius: 8px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Barre de défilement */
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--ink-3) var(--paper-2); } }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--paper-2); border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ---------- Typo ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.1rem; font: 600 .82rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.eyebrow::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--red); flex: none; }
.eyebrow--red { color: var(--red-deep); }
.eyebrow .num { font-family: var(--f-title); font-size: 1.15em; color: var(--red-lit); letter-spacing: .04em; }
.h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); text-transform: uppercase; }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); text-transform: uppercase; margin-bottom: .5em; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); text-transform: uppercase; margin-bottom: .7em; }
.h3 a { text-decoration: none; }
.lead { font-size: clamp(1.18rem, 1.8vw, 1.38rem); line-height: 1.55; font-weight: 500; }

/* ---------- Boutons ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 46px; padding: .7em 1.35em; border: 2px solid var(--bg); border-radius: 999px; background: var(--bg); color: var(--fg); font: 600 1rem/1.1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--red:hover { --bg: #c40f15; }
.btn--dark:hover { --bg: var(--red); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--paper); border-color: var(--line-d); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.06rem; }
.btn--sm { min-height: 38px; padding: .45em 1em; font-size: .92rem; }

/* ---------- En-tête ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hd-h); color: var(--paper); transition: background .35s, box-shadow .35s, height .35s; }
.hd.is-solid, .no-hero .hd { background: rgba(20, 19, 18, .94); box-shadow: 0 1px 0 var(--line-d); }
@supports (backdrop-filter: blur(1px)) { .hd.is-solid, .no-hero .hd { background: rgba(20, 19, 18, .82); backdrop-filter: blur(14px) saturate(1.2); } }
.hd__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hd__logo { flex: none; display: block; }
.hd__logo img { height: 50px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; gap: 2px; }
.nav__link { position: relative; display: block; padding: .5em .7em; font: 600 1.06rem/1 var(--f-title); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: rgba(245, 241, 234, .82); transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scale(1); }
.nav__extra { display: flex; align-items: center; gap: 16px; }
.nav__tel { display: none; }
.hd__cta { display: none; }
.burger { display: none; }

@media (max-width: 1180px) {
  .hd__cta { display: inline-flex; margin-left: auto; }
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line-d); border-radius: 50%; background: transparent; cursor: pointer; }
  .burger__lines { position: relative; width: 18px; height: 10px; }
  .burger__lines i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
  .burger__lines i:first-child { top: 0; }
  .burger__lines i:last-child { top: 8px; }
  .nav-open .burger__lines i:first-child { top: 4px; transform: rotate(45deg); }
  .nav-open .burger__lines i:last-child { top: 4px; transform: rotate(-45deg); }
  /* backdrop-filter ferait de l’en-tête le bloc conteneur du panneau fixe (menu coincé dans la barre) */
  .hd.is-solid, .no-hero .hd { backdrop-filter: none; background: rgba(20, 19, 18, .97); }
  .nav { position: fixed; inset: var(--hd-h) 0 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px; margin: 0; padding: 28px var(--gut) max(32px, env(safe-area-inset-bottom)); background: var(--ink); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity .3s; }
  .nav-open .hd { background: var(--ink); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: .42em 0; font-size: clamp(2rem, 7vw, 2.8rem); letter-spacing: .02em; border-bottom: 1px solid var(--line-d); }
  .nav__link::after { left: auto; right: 4px; top: 50%; bottom: auto; margin: -5px 0 0; width: 10px; height: 10px; }
  .nav__extra { flex-direction: column; align-items: stretch; }
  .nav__tel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
  .nav__tel a { display: flex; align-items: center; justify-content: center; gap: .5em; padding: .8em; border: 1px solid var(--line-d); border-radius: 12px; text-decoration: none; font-weight: 600; }
}
@media (max-width: 520px) {
  :root { --hd-h: 66px; }
  .hd__logo img { height: 40px; }
  .hd__cta { padding-inline: .85em; font-size: .86rem; }
  .nav__tel { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px); }
.sec--tight { padding-block: 24px clamp(64px, 8vw, 110px); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec--dark .eyebrow { color: var(--muted-d); }
.sec--paper2 { background: var(--paper-2); }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec__head--row .h2 { margin-bottom: 0; }
.sec__intro { font-size: 1.15rem; color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); padding-top: calc(var(--hd-h) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 40%, rgba(227, 20, 26, .16), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(255, 255, 255, .04), transparent 70%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.hero__title { font-size: clamp(3.1rem, 8.6vw, 7.6rem); line-height: .98; text-transform: uppercase; margin-bottom: .32em; }
.hero__title .line { display: block; }
.hero__title .line--red { color: var(--red-lit); }
.hero__title--page { font-size: clamp(3rem, 8vw, 6.6rem); }
.hero__lead { max-width: 34em; font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: rgba(245, 241, 234, .82); margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: end; }
.hero__visual--sm { width: min(100%, 470px); }
.disc { position: absolute; border-radius: 50%; }
.disc--red { width: 46%; aspect-ratio: 1; left: -8%; bottom: 2%; background: var(--red); }
.circle { position: absolute; inset: 6% 4% 4% 8%; border-radius: 50%; overflow: hidden; background: var(--ink-3); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.ring { position: absolute; inset: 0 0 6% 10%; border-radius: 50%; border: 1.5px solid var(--line-d); pointer-events: none; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__visual { order: -1; justify-self: center; width: min(78vw, 380px); margin-bottom: 4px; }
  .hero__visual--sm { width: min(64vw, 300px); }
}

/* Aujourd’hui au dojo */
.today { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line-d); }
.today[hidden] { display: none; }
.today__label { display: flex; align-items: center; gap: .6em; margin: 0; font: 700 1.05rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; }
.today__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-lit); box-shadow: 0 0 0 0 rgba(255, 90, 94, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 90, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 94, 0); } }
.today__list { display: flex; flex-wrap: wrap; gap: 8px; }
.today__list li { display: inline-flex; align-items: baseline; gap: .5em; padding: .45em .9em; border: 1px solid var(--line-d); border-radius: 999px; font-size: .95rem; }
.today__list li.is-past { opacity: .45; }
.today__list li.is-now { border-color: var(--red-lit); background: rgba(227, 20, 26, .14); }
.today__list b { font-family: var(--f-title); font-size: 1.08rem; letter-spacing: .03em; }
.today__list a { text-decoration: none; }
.today__list a:hover { text-decoration: underline; }
.today__all { margin-left: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--paper); }
.today__all:hover { color: var(--red-lit); }

/* ---------- Accueil ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.intro__body p:not(.lead) { color: var(--muted); font-size: 1.12rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 96px); background: linear-gradient(var(--line), var(--line)) 0 0 / calc(var(--rule) * 100%) 1px no-repeat; }
.facts li { padding: 28px 20px 0 0; display: grid; gap: 4px; }
.facts li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.facts strong { font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--f-title); text-transform: uppercase; }
.facts span { color: var(--muted); }
@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

.arts__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); counter-reset: art; }
.art__link { position: relative; display: grid; height: 100%; padding: 28px 26px 30px; border: 1px solid var(--line-d); border-radius: 22px; text-decoration: none; background: var(--ink-2); transition: border-color .35s, background .35s, transform .45s var(--ease); }
.art__link:hover { border-color: rgba(227, 20, 26, .7); background: #221f1c; transform: translateY(-6px); }
.art__img { position: relative; width: 62%; aspect-ratio: 1; margin: 0 auto 26px; }
.art__img::before { content: ""; position: absolute; width: 44%; aspect-ratio: 1; left: -10%; bottom: -2%; border-radius: 50%; background: var(--red); transition: transform .5s var(--ease); }
.art__img img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: grayscale(.25); transition: filter .4s; }
.art__link:hover .art__img img { filter: none; }
.art__link:hover .art__img .pmask { scale: 1.04; }
.art__img .pmask { border-radius: 50%; transition: scale .6s var(--ease); }
.art__link:hover .art__img::before { transform: translate(-8px, 6px) scale(1.08); }
.art__num { position: absolute; top: 22px; right: 24px; font: 700 1.1rem/1 var(--f-title); color: var(--muted-d); letter-spacing: .06em; }
.art__origin { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red-lit); }
.art__name { margin: .2em 0 .45em; font: 700 clamp(1.9rem, 2.8vw, 2.5rem)/1 var(--f-title); text-transform: uppercase; color: #fff; }
.art__txt { color: rgba(245, 241, 234, .74); }
.art__more { display: inline-flex; align-items: center; gap: .5em; margin-top: 1.2em; font-weight: 600; color: #fff; align-self: end; }
.art__more .ico { transition: transform .3s var(--ease); }
.art__link:hover .art__more .ico { transform: translateX(5px); }
@media (max-width: 960px) { .arts__list { grid-template-columns: 1fr; max-width: 560px; } .art__img { width: 46%; } }

.publics__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.pub { display: flex; flex-direction: column; padding: 30px 28px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.pub__title { font-size: clamp(1.9rem, 3vw, 2.4rem); text-transform: uppercase; }
.pub__detail { margin: .2em 0 1.2em; color: var(--muted); }
.pub__list { display: grid; gap: 12px; margin-bottom: 1.6em; }
.pub__list li { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.pub__list a { font-weight: 600; text-decoration: none; }
.pub__list a:hover { color: var(--red-deep); }
.pub__list span { color: var(--muted); font-size: .97rem; }
.pub__more { margin-top: auto; display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--red-deep); text-decoration: none; }
.pub__more:hover .ico { transform: translateX(4px); }
.pub__more .ico { transition: transform .3s var(--ease); }
@media (max-width: 960px) { .publics__grid { grid-template-columns: 1fr; max-width: 560px; } }

.news__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.news__img { border-radius: 50% 50% 22px 50%; overflow: hidden; aspect-ratio: 1; }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .news__grid { grid-template-columns: 1fr; } .news__img { max-width: 420px; } }

.visit__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.coords { display: grid; gap: 14px; margin-top: 1.4em; }
.coords li { display: flex; gap: 14px; align-items: flex-start; }
.coords .ico { margin-top: .2em; color: var(--red-deep); }
.coords a { text-decoration: none; font-weight: 500; }
.coords a:hover { color: var(--red-deep); text-decoration: underline; }
.coords--light .ico { color: var(--red-lit); }
.coords--light a:hover { color: #fff; }
.map { position: relative; }
.map iframe { display: block; width: 100%; height: clamp(320px, 42vw, 460px); border: 0; border-radius: 22px; background: var(--paper-2); filter: grayscale(.4) contrast(1.02); }
.map__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; font-size: .95rem; }
.map__links a { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; color: var(--red-deep); }
.map__links a:hover { text-decoration: underline; }
@media (max-width: 860px) { .visit__grid { grid-template-columns: 1fr; } }

/* ---------- Discipline ---------- */
.art-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 6vw, 96px); align-items: start; }
.art-body__text { max-width: 760px; }
.art-body__text p:not(.lead) { font-size: 1.15rem; color: var(--muted); }
.badge { display: grid; place-content: center; text-align: center; gap: 6px; aspect-ratio: 1; padding: 30px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--line); }
.badge strong { font: 700 clamp(1.8rem, 3vw, 2.4rem)/1 var(--f-title); text-transform: uppercase; }
.badge span { font-size: .98rem; line-height: 1.35; }
@media (max-width: 860px) { .art-body__grid { grid-template-columns: 1fr; } .badge { width: 220px; } }

.band { height: clamp(280px, 52vw, 640px); overflow: hidden; background: var(--ink); }
.band img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

.tech { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0; background: linear-gradient(var(--line), var(--line)) 0 0 / calc(var(--rule) * 100%) 1px no-repeat; }
.tech--5 { --cols: 5; } .tech--3 { --cols: 3; } .tech--6 { --cols: 3; }
.tech__item { display: grid; align-content: start; gap: 6px; padding: 26px 22px 30px 0; border-bottom: 1px solid var(--line); }
.tech__item + .tech__item { padding-left: 22px; border-left: 1px solid var(--line); }
.tech--6 .tech__item:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.tech__num { font: 700 1rem/1 var(--f-title); color: var(--red-deep); letter-spacing: .06em; }
.tech__name { font: 700 clamp(1.5rem, 2.2vw, 1.95rem)/1.05 var(--f-title); text-transform: uppercase; }
.tech__txt { color: var(--muted); }
.art-suite { max-width: 820px; margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 1060px) { .tech--5 { --cols: 3; } .tech--5 .tech__item:nth-child(3n+1) { padding-left: 0; border-left: 0; } }
@media (max-width: 680px) {
  .tech, .tech--5, .tech--6 { --cols: 1; }
  .tech .tech__item { padding-left: 0 !important; border-left: 0 !important; grid-template-columns: 44px 1fr; column-gap: 8px; }
  .tech__num { grid-row: span 2; padding-top: .35em; }
}

.values { text-align: center; }
.values__intro, .values__fin { max-width: 640px; margin-inline: auto; font-size: 1.15rem; color: rgba(245, 241, 234, .78); }
.values__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 28px auto 32px; max-width: 1000px; }
.values__list li { font: 700 clamp(2.2rem, 5.4vw, 4.4rem)/1.05 var(--f-title); text-transform: uppercase; }
.values__list li:nth-child(odd) { color: var(--red-lit); }
.values__list li:not(:last-child)::after { content: "·"; margin-left: 14px; color: var(--muted-d); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); padding-block: clamp(56px, 7vw, 96px) 0; }
.gallery figure { border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:hover .pmask, .gallery figure:hover > img { scale: 1.04; }
.gallery .pmask { transition: scale .8s var(--ease); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

.quote { max-width: 980px; margin: 0 auto; font: 700 clamp(1.9rem, 4.2vw, 3.3rem)/1.12 var(--f-title); text-transform: uppercase; text-align: center; }
.quote::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 28px; border-radius: 50%; background: var(--red); }

.tbl-wrap { overflow-x: auto; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
.tbl th, .tbl td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl thead th { font: 700 1.05rem/1 var(--f-title); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.tbl tbody th { font-weight: 600; white-space: nowrap; }
.tbl tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.slot { display: inline-block; padding: .3em .7em; border-radius: 999px; background: rgba(227, 20, 26, .1); color: var(--red-deep); font-weight: 600; white-space: nowrap; }
.none { color: #bbb3aa; }
.note { margin: 18px 0 0; color: var(--muted); }

.others__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.others__list a { display: flex; align-items: center; gap: 20px; padding: 18px 24px 18px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.others__list a:hover { border-color: var(--red); transform: translateY(-3px); }
.others__list img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.others__list span { flex: 1; display: grid; font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.05 var(--f-title); text-transform: uppercase; }
.others__list small { font: 600 .78rem/1.4 var(--f-body); letter-spacing: .14em; color: var(--red-deep); }
.others__list .ico { width: 1.6em; height: 1.6em; transition: transform .3s var(--ease); }
.others__list a:hover .ico { transform: translateX(5px); }
@media (max-width: 760px) { .others__list { grid-template-columns: 1fr; } }

/* ---------- Horaires ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.filters__label { margin-right: 6px; font: 700 1rem/1 var(--f-title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chip { display: inline-flex; align-items: baseline; gap: .4em; padding: .62em 1.1em; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.chip small { font-weight: 400; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-on small { color: var(--muted-d); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 28px; font-size: .95rem; }
.legend li { display: flex; align-items: center; gap: .5em; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.legend a { text-decoration: none; font-weight: 500; }
.legend a:hover { text-decoration: underline; }
.c-taekwondo { --c: var(--c-taekwondo); } .c-kenpo { --c: var(--c-kenpo); } .c-taichi { --c: var(--c-taichi); }

.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.day { display: flex; flex-direction: column; min-width: 0; padding: 14px 12px 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.day.is-today { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.day__name { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 4px 14px; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
.day__tag { padding: .25em .55em; border-radius: 999px; background: var(--red); color: #fff; font: 600 .66rem/1 var(--f-body); letter-spacing: .08em; }
.day__list { display: grid; gap: 8px; }
.slot-card { display: grid; gap: 2px; padding: 11px 12px 12px 14px; border-radius: 12px; background: var(--paper); border-left: 4px solid var(--c, var(--ink)); }
.slot-card[hidden] { display: none; }
.slot-card__time { font: 700 1.08rem/1.1 var(--f-title); letter-spacing: .02em; }
.slot-card__name { font-weight: 600; line-height: 1.25; text-decoration: none; }
a.slot-card__name:hover { text-decoration: underline; }
.slot-card__pub { font-size: .86rem; color: var(--muted); line-height: 1.3; }
.slot-card--free { background: transparent; border: 1.5px dashed var(--line); border-left-width: 1.5px; }
.day__empty { padding: 14px 4px; color: var(--muted); font-size: .92rem; }
.notes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.notes li { display: flex; align-items: center; gap: .55em; font-weight: 500; }
.notes .ico { color: var(--red-deep); }
.tables { display: grid; gap: clamp(40px, 5vw, 64px); }
.tables__item { min-width: 0; } /* sinon l’élément de grille prend la largeur du tableau et la page déborde */
@media (max-width: 1100px) { .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .week { grid-template-columns: 1fr; }
  .day { padding: 12px; }
  .day__list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- Pages simples ---------- */
.page-head { padding-top: calc(var(--hd-h) + clamp(20px, 4vw, 48px)); padding-bottom: clamp(28px, 4vw, 52px); }
.crumbs + .page-head { padding-top: 0; }
.page-head__lead { max-width: 40em; font-size: 1.2rem; color: var(--muted); }
.page-head--center { text-align: center; min-height: 64vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page-head--center .page-head__lead { margin-inline: auto; }
.links404 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; padding-top: calc(var(--hd-h) + 18px); padding-bottom: 18px; font-size: .88rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
/* Sur les pages à bandeau sombre, le fil d’Ariane est posé dans le bandeau. */
.page-discipline .crumbs, .page-horaires .crumbs { position: absolute; z-index: 2; left: 0; right: 0; color: var(--muted-d); }
.page-discipline .hero, .page-horaires .hero { padding-top: calc(var(--hd-h) + 64px); }

.prose { max-width: calc(820px + 2 * var(--gut)); }
.prose h2 { font-size: 1.7rem; text-transform: uppercase; margin: 1.8em 0 .5em; }
.prose p { color: #3b3733; }
.prose a { color: var(--red-deep); }
.plan { display: grid; gap: 10px; font-size: 1.2rem; }
.plan ul { margin: 10px 0 0 22px; display: grid; gap: 8px; }
.plan a { font-weight: 600; text-decoration: none; }
.plan a:hover { color: var(--red-deep); text-decoration: underline; }

.post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(72px, 9vw, 120px); }
.post__img { position: sticky; top: calc(var(--hd-h) + 24px); border-radius: 22px; overflow: hidden; }
.post__date { font: 700 1.05rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--red-deep); }
.post__body p:not(.lead):not(.post__date) { font-size: 1.12rem; }
.post__rappel { padding: 16px 20px; border-radius: 14px; background: var(--paper-2); border-left: 4px solid var(--red); }
@media (max-width: 860px) { .post { grid-template-columns: 1fr; } .post__img { position: static; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.card { padding: clamp(26px, 3vw, 38px); border-radius: 22px; }
.card--dark { background: var(--ink); color: var(--paper); }
.card__h { font: 700 2rem/1 var(--f-title); text-transform: uppercase; margin-bottom: .4em; }
.card .coords { margin-bottom: 1.6em; }
.form { padding: clamp(24px, 3vw, 40px); border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label, .field legend { padding: 0; font-weight: 600; font-size: .98rem; margin-bottom: 2px; }
.field input, .field textarea { width: 100%; padding: .8em .95em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; color: inherit; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--red-deep); }
.field__err { margin: 0; color: var(--red-deep); font-size: .92rem; font-weight: 500; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.field .pill input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; } /* sinon width:100% des champs → débordement horizontal */
.pill span { display: inline-block; padding: .55em 1em; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; transition: all .2s; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.form__alert { padding: 12px 16px; border-radius: 12px; background: rgba(227, 20, 26, .1); color: var(--red-deep); font-weight: 600; }
.form__note { font-size: .9rem; color: var(--muted); }
.form__note a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.ft { background: var(--ink); color: var(--paper); padding-top: clamp(72px, 9vw, 120px); }
.ft__cta { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-d); }
.ft__big { margin: 0; font: 700 clamp(2.6rem, 6.6vw, 5.6rem)/.98 var(--f-title); text-transform: uppercase; }
.ft__big span { color: var(--red-lit); }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px; }
.ft__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.ft__brand p { color: var(--muted-d); max-width: 26em; }
.ft__h { margin-bottom: 14px; font: 700 1.05rem/1 var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.ft ul { display: grid; gap: 8px; }
.ft address { line-height: 1.9; }
.ft a { text-decoration: none; }
.ft__grid a:hover { color: var(--red-lit); }
.ft__muted { color: var(--muted-d); }
.ft__social { display: flex; gap: 10px; }
.ft__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-d); border-radius: 50%; transition: background .25s, border-color .25s; }
.ft__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.ft__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid var(--line-d); font-size: .9rem; color: var(--muted-d); }
.ft__legal p { margin: 0; }
.ft__legal a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .ft__grid { grid-template-columns: 1fr 1fr; } .ft__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ft__grid { grid-template-columns: 1fr; } }

/* ---------- Loader ---------- */
.pl { display: none; }
.js.is-loading .pl { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--ink); color: var(--paper); clip-path: circle(150% at 50% 50%); }
.pl::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 40% at 50% 46%, rgba(227, 20, 26, .18), transparent 70%); }
.pl__mark { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.pl__mark img { width: 104px; height: 104px; }
.pl__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pl__ring circle { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 358.2; stroke-dashoffset: 358.2; }
.pl__name { position: relative; margin: 0; display: flex; gap: .35em; overflow: hidden; padding: .1em .1em .18em; font: 700 1.5rem/1 var(--f-title); letter-spacing: .32em; text-transform: uppercase; }
.pl__name span { display: inline-block; }
/* États de départ (avant que GSAP prenne la main) : rien ne s’affiche puis ne disparaît */
.is-loading:not(.is-quick) .pl__mark img { transform: scale(0); }
.is-loading:not(.is-quick) .pl__name span { transform: translateY(130%); }
.is-quick .pl__mark { opacity: 0; }
.is-quick .pl__name { visibility: hidden; }
.pl__name span + span { color: var(--red-lit); }
/* Pendant le loader, rien ne bouge derrière */
.is-loading body { overflow: hidden; }

/* ---------- Titres découpés en mots (masques) ---------- */
/* Le padding élargit le masque pour ne rogner ni accents ni jambages ; les marges négatives compensent. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .06em .22em; margin: -.16em -.06em -.22em; }
.wi { display: inline-block; will-change: transform; }

/* Images en parallaxe : le masque coupe l’image agrandie */
.pmask { position: relative; display: block; overflow: hidden; border-radius: inherit; width: 100%; height: 100%; }

/* ---------- Animations ---------- */
/* États initiaux posés seulement quand le JS tourne (classe .js mise dans le <head>) et sans « réduire les animations ». */
/* Filets tracés (.facts, .tech) : --rule animée de 0 à 1 par GSAP */
@property --rule { syntax: "<number>"; inherits: false; initial-value: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) { transition: none !important; } /* une transition CSS sur transform freinerait GSAP */
  .js [data-reveal]:not(.is-in), .js [data-hero]:not(.is-in) { opacity: 0; transform: translateY(26px); }
  .js .hero__title[data-hero]:not(.is-in) { transform: none; opacity: 1; }
  .js .hero__title[data-hero]:not(.is-in) .line { opacity: 0; transform: translateY(.45em); }
  .js [data-circle]:not(.is-in) { opacity: 0; transform: scale(.86); }
  .js [data-disc]:not(.is-in) { transform: scale(0); }
  .js [data-ring]:not(.is-in) { opacity: 0; transform: scale(.9) rotate(-20deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
