/* Aïkido club « Hîsu » Gosselies — feuille de style commune à toutes les pages.
   Layout : bandeau indigo (couleur du hakama) en ouverture, puis sections sur fond « gi » blanc,
   infos pratiques toujours à portée, bande de contact indigo en bas de chaque page. */
:root {
  --gi: #f6f7f9;          /* blanc du keikogi */
  --paper: #ffffff;
  --ink: #1b2233;         /* texte */
  --muted: #5b6478;
  --indigo: #23325c;      /* hakama */
  --indigo-ink: #eef1f8;  /* texte sur indigo */
  --tatami: #b9a66a;      /* paille du tatami */
  --line: #dde1ea;
  --accent: #2f4f9e;
  --price: #23325c;

  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --body: "Mulish", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 5vw, 3rem);
  --step-4: clamp(2.4rem, 7vw, 4.5rem);

  --belt-white: #f2f2ee; --belt-yellow: #e8c547; --belt-orange: #e08a3c;
  --belt-green: #4f8a4b; --belt-blue: #3465a8; --belt-brown: #7a4f2f; --belt-black: #16181d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gi: #12151d; --paper: #191d28; --ink: #e7e9ef; --muted: #9aa3b8;
    --indigo: #1c2a52; --indigo-ink: #eef1f8; --tatami: #cbb97e; --line: #2a3142; --accent: #8fa8e6; --price: #a9bdf0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --gi: #12151d; --paper: #191d28; --ink: #e7e9ef; --muted: #9aa3b8;
  --indigo: #1c2a52; --indigo-ink: #eef1f8; --tatami: #cbb97e; --line: #2a3142; --accent: #8fa8e6; --price: #a9bdf0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gi); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--tatami); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tatami);
}
.section-title { font-size: var(--step-3); margin-block: 10px 24px; }
.sub { color: var(--muted); max-width: 62ch; margin-bottom: 28px; }

/* ---------- En-tête ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--indigo); }
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--indigo); color: var(--indigo-ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 8px; background: #fff; padding: 3px; object-fit: contain; }
.brand strong { font-family: var(--display); font-size: 1.15rem; display: block; line-height: 1.1; }
.brand small { font-size: .8rem; opacity: .75; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--indigo-ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: 4px; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--tatami); }

/* ---------- Boutons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
}
.btn-primary { background: var(--tatami); color: #1b2233; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: var(--indigo-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost:hover { border-color: var(--indigo-ink); }

/* ---------- Ouverture (accueil) ---------- */
.hero { background: var(--indigo); color: var(--indigo-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding-block: 56px 64px; align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-block: 12px 20px; }
.hero p.lead { font-size: var(--step-1); max-width: 36ch; opacity: .92; }

.enso { position: relative; aspect-ratio: 1; max-width: 100%; width: 100%; display: grid; place-items: center; }
.enso::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%;
  border: 14px solid var(--tatami);
  border-right-color: transparent;
  transform: rotate(-20deg);
  opacity: .9;
}
.kanji {
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 9vw, 6rem);
  writing-mode: vertical-rl; letter-spacing: .1em; color: var(--indigo-ink); line-height: 1;
}

.hero-logo {
  background: #fff; border-radius: 50%; aspect-ratio: 1; max-width: 100%; width: 100%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(185, 166, 106, .35);
}
.hero-logo img { width: 74%; height: auto; }

/* ---------- Ouverture (pages intérieures, avec photo) ---------- */
.page-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 48px 56px; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-hero figure { margin: 0; }
.page-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* ---------- Infos pratiques ---------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 22px 20px; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact h3 { font-family: var(--body); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.fact p { font-weight: 600; font-variant-numeric: tabular-nums; }
.fact p span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
section.block .wrap { padding-block: 72px; }
section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.intro h2 { font-size: var(--step-3); margin-top: 10px; }
.text { display: grid; gap: 16px; max-width: 62ch; min-width: 0; }
.text .big { font-size: var(--step-1); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split figure { margin: 0; min-width: 0; }
.split img { width: 100%; border-radius: 10px; }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }
.drawing { background: #fff; border-radius: 10px; padding: 12px; }
.drawing-small { display: grid; place-items: center; padding: 32px; }
.split .drawing-small img { width: 220px; }

/* Questions (accueil) */
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.q { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--indigo); min-width: 0; }
.q h3 { font-size: var(--step-1); }
.q p { color: var(--muted); }
.q .tag { font-size: var(--step--1); font-weight: 700; color: var(--accent); }

/* ---------- Ceintures ---------- */
.belt-scroll { overflow-x: auto; padding-bottom: 8px; }
.belt-row { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 8px; min-width: 680px; }
.belt-row.kids { grid-template-columns: repeat(11, minmax(84px, 1fr)); min-width: 980px; }
.belt { display: grid; gap: 8px; align-content: start; }
.belt .bar { height: 18px; border-radius: 3px; border: 1px solid var(--line); }
.belt b { font-size: .95rem; line-height: 1.25; }
.belt small { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Tarifs ---------- */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 10px; min-width: 0; }
.price-card h3 { font-size: var(--step-2); }
.amount { font-family: var(--display); font-size: var(--step-3); font-weight: 800; color: var(--price); }
.amount small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.note { margin-top: 20px; color: var(--muted); font-size: .95rem; max-width: 70ch; }

.table-scroll { overflow-x: auto; }
table.tarifs { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
table.tarifs th, table.tarifs td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.tarifs thead th { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.tarifs tbody th { font-weight: 600; }
table.tarifs td { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--price); }
table.tarifs tr:last-child th, table.tarifs tr:last-child td { border-bottom: 0; }
table.tarifs caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
table.tarifs sup { font-size: .7em; }
.tarif-group { display: grid; gap: 14px; margin-top: 28px; }
.tarif-group h3 { font-size: var(--step-2); }
.tarif-group h3 small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.tarif-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.tarif-switch input { position: absolute; opacity: 0; pointer-events: none; }
.tarif-switch label {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--muted);
}
.tarif-switch input:checked + label { background: var(--indigo); border-color: var(--indigo); color: var(--indigo-ink); }
.tarif-switch input:focus-visible + label { outline: 3px solid var(--tatami); outline-offset: 2px; }
.tarif-switch .panel { display: none; flex-basis: 100%; margin-top: 6px; }
.tarif-switch .opt-2:checked ~ .panel-2, .tarif-switch .opt-1:checked ~ .panel-1 { display: block; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.extra { border-top: 3px solid var(--tatami); padding-top: 14px; display: grid; gap: 6px; min-width: 0; }
.extra h3 { font-size: var(--step-1); }
.extra p { color: var(--muted); }

/* ---------- Tenue et armes ---------- */
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kit.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.kit-item {background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.kit-item .pic { background: #fff; border-radius: 6px; height: 180px; display: grid; place-items: center; padding: 8px; }
.kit-item .pic img { max-height: 164px; width: auto; object-fit: contain; }
.kit-item h3 { font-size: var(--step-1); }
.kit-item p { color: var(--muted); }
.weapons { background: #fff; border-radius: 10px; padding: 16px; }
.weapons img { width: 100%; max-width: 560px; margin: 0 auto; }
dl.terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; }
dl.terms dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
dl.terms dd { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--indigo); color: var(--indigo-ink); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-block: 64px; align-items: center; }
.contact h2 { font-size: var(--step-3); margin-block: 10px 16px; }
.contact address { font-style: normal; display: grid; gap: 14px; }
.contact address div { display: grid; gap: 2px; }
.contact address span { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.contact address b { font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.contact a { color: var(--tatami); }
.contact figure { margin: 0; }
.contact img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

.contact-cta { display: grid; gap: 4px; font-size: var(--step-1); }

/* ---------- Localisation ---------- */
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.where-info { display: grid; gap: 28px; min-width: 0; }
.entrance { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--tatami); border-radius: 10px; padding: 24px 26px; display: grid; gap: 4px; }
.entrance-street { font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1.1; margin-top: 6px; }
.entrance-gate { font-size: var(--step-1); }
.entrance-gate b { color: var(--price); font-variant-numeric: tabular-nums; }
.entrance-city { color: var(--muted); }
.where-list { display: grid; gap: 14px; margin: 0; }
.where-list div { display: grid; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.where-list dt { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.where-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.map-links { margin-top: 0; }
.btn-dark { background: var(--indigo); color: var(--indigo-ink); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: var(--paper); }
.btn-dark:hover { filter: brightness(1.15); }
.btn-outline:hover { border-color: var(--tatami); }
.map { min-width: 0; display: grid; gap: 8px; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.map-fallback { font-size: var(--step--1); color: var(--muted); }

/* ---------- Galerie ---------- */
.gallery-hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 52px; }
.gallery-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.album-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.album-index a {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.album-index a:hover { border-color: var(--tatami); }
#albums { display: grid; gap: 56px; }
.album { scroll-margin-top: 90px; }
.album-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.album-head h2 { font-size: var(--step-2); }
.album-head p { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.thumb { padding: 0; border: 0; background: var(--line); border-radius: 6px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.thumb:hover img { transform: scale(1.04); }
.thumb:focus-visible { outline: 3px solid var(--tatami); outline-offset: 3px; }
.gallery-empty { text-align: center; padding-block: 40px; display: grid; gap: 10px; justify-items: center; }
.gallery-empty h2 { font-size: var(--step-2); }
.gallery-empty p { color: var(--muted); max-width: 46ch; }

.viewer {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0;
}
.viewer::backdrop { background: rgba(10, 13, 22, .92); }
.viewer[open] { display: grid; place-items: center; }
.viewer figure { margin: 0; display: grid; gap: 10px; justify-items: center; padding: 56px 16px; }
.viewer img { max-width: min(92vw, 1600px); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 4px; }
.viewer figcaption { color: #e7e9ef; font-size: .95rem; text-align: center; font-variant-numeric: tabular-nums; }
.viewer-btn {
  position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.viewer-btn:hover { background: rgba(255,255,255,.24); }
.viewer-btn:focus-visible { outline: 3px solid #cbb97e; outline-offset: 2px; }
.viewer-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.viewer-prev { left: calc(12px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.viewer-next { right: calc(12px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

footer { background: var(--gi); }
footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 860px) {
  .hero .wrap, .intro, .split, .where, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 36px 44px; gap: 8px; }
  .page-hero .wrap { gap: 28px; }
  .enso, .hero-logo { max-width: 260px; justify-self: center; order: -1; margin-bottom: 20px; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .q-grid, .prices, .kit, .kit.two, .extras { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  section.block .wrap { padding-block: 52px; }
}
@media (max-width: 480px) {
  .facts .wrap { grid-template-columns: minmax(0, 1fr); }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  nav ul { gap: 4px 14px; }
  nav a { font-size: .9rem; }
  table.tarifs th, table.tarifs td { padding: 12px 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .enso::before { animation: brush 1.4s ease-out both; }
  @keyframes brush { from { transform: rotate(-110deg); } to { transform: rotate(-20deg); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
