/* Ritchie Dagonia, karatéka — feuille de style minimaliste d'inspiration japonaise */

:root {
  --paper: #ffffff;
  --ink: #151515;
  --muted: #6a6a6a;
  --soft: #333333;
  --red: #c1272d;
  --line: #e6e4e0;
  --measure: 68ch;
  --space: clamp(2.5rem, 7vw, 5rem);
  --title: "Zen Kaku Gothic New", "Noto Sans", system-ui, sans-serif;
  --text: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.8;
  padding-inline: clamp(1rem, 4vw, 2rem);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--title);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
h1 { font-weight: 900; font-size: clamp(1.8rem, 5vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
li { margin-bottom: 0.45rem; }
strong { font-weight: 700; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover, a:focus-visible { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* En-tête */
.site-header {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--title);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.seal {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 2px;
  font-family: var(--title);
}
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }
.site-nav li { margin: 0; }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.site-nav a[aria-current="page"], .site-nav a:hover { border-bottom-color: var(--red); }

/* Bandeau d'ouverture */
.hero {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  padding: var(--space) 0 calc(var(--space) * 0.8);
}
.enso {
  width: clamp(120px, 30vw, 170px);
  height: auto;
  display: block;
  margin: 0 auto 1.6rem;
}
.kicker {
  font-family: var(--title);
  color: var(--red);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 1rem;
}
.lead {
  font-size: 1.15rem;
  max-width: 56ch;
  margin: 1.5rem auto 0;
  color: var(--soft);
}

/* Contenu */
main { max-width: var(--measure); margin-inline: auto; padding-bottom: var(--space); }
main > section, main > article { padding: calc(var(--space) * 0.6) 0; border-top: 1px solid var(--line); }
main > section:first-child, main > article:first-child { border-top: 0; }

.sec-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1rem; }
.kanji { font-family: var(--title); color: var(--red); font-size: 1.5rem; line-height: 1; font-weight: 500; }
.rule { width: 2.5rem; height: 2px; background: var(--red); margin: 0 0 1.4rem; }

/* Liste de techniques */
.tech { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.tech li {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  margin: 0;
  border-bottom: 1px dashed var(--line);
}
.tech .jp { font-family: var(--title); font-weight: 700; }
.tech .jp small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

/* Valeurs */
.values {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}
.values li { border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 1rem 1.1rem; margin: 0; }
.values p { margin: 0; color: var(--soft); font-size: 0.98rem; }

/* Dojo kun */
.kun { list-style: none; counter-reset: kun; padding: 0; margin: 0 0 1rem; }
.kun li { counter-increment: kun; position: relative; padding: 0.8rem 0 0.8rem 3.2rem; margin: 0; border-bottom: 1px solid var(--line); }
.kun li::before {
  content: counter(kun, cjk-ideographic);
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--title);
  font-size: 1rem;
}
.kun .jp { display: block; color: var(--muted); font-size: 0.85rem; font-style: italic; }
.kun .fr { font-weight: 700; font-family: var(--title); }

/* Page katas */
.kata-meta {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.4rem 0 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kata-meta li { margin: 0; }
.kata-meta li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--red);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Lexique */
.lex { margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2rem; }
.lex div { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.lex dt { font-family: var(--title); font-weight: 700; }
.lex dt .k { color: var(--red); font-weight: 500; margin-left: 0.45rem; }
.lex dd { margin: 0; color: var(--soft); font-size: 0.98rem; }

.numbers { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: 0.6rem; }
.numbers li { text-align: center; border: 1px solid var(--line); padding: 0.8rem 0.4rem; margin: 0; }
.numbers .k { display: block; font-family: var(--title); font-size: 1.7rem; color: var(--red); line-height: 1.2; }
.numbers .r { display: block; font-weight: 700; font-size: 0.95rem; }
.numbers .n { display: block; color: var(--muted); font-size: 0.8rem; }

/* Pied de page */
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 2px solid var(--ink);
  font-size: 0.92rem;
  color: var(--soft);
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 0.6rem; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer nav li { margin: 0; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .tech li { grid-template-columns: 1fr; gap: 0.2rem; }
  .kun li { padding-left: 2.8rem; }
}

/* Encadré « ailleurs sur le web » */
.ailleurs{margin:2.5rem auto 1rem;max-width:46rem;padding:.9rem 1.2rem;border-left:3px solid currentColor;line-height:1.55}
.ailleurs a{text-decoration:underline}

/* photos */
.photos{max-width:560px;margin:2rem auto;display:grid;gap:1.6rem}.photos figure{margin:0;text-align:center}.photos img{width:100%;height:auto;display:block;aspect-ratio:4/3;object-fit:cover;filter:saturate(.85)}.photos figcaption{font-size:.85rem;margin-top:.5rem;letter-spacing:.05em}
