/* Charte inspiree de aikido.fr (3AKH) : rouge #e30613, police M PLUS 2, fond blanc, pied gris */
@font-face {
  font-family: "M PLUS 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/mplus2-latin.woff2) format("woff2");
}
:root {
  /* Fond blanc dans tous les cas, y compris quand l'appareil est en mode sombre.
     Contrastes sur blanc : ink 17:1, ink-soft 11:1, accent-text 6.3:1 */
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --ink: #1a1a1a;
  --ink-soft: #3c3c3c;
  --line: #d6d6d6;
  --accent: #e30613;
  --accent-text: #c4000f;
  --accent-ink: #fff;
  --footer: #3a3a3a;
  --footer-ink: #ffffff;
  --radius: 6px;
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 450 1.0625rem/1.65 "M PLUS 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
section { padding: 4rem 0; border-top: 1px solid var(--line); }
.eyebrow {
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 700; margin-bottom: .5rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }

/* En-tete */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 4.25rem;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand img { width: 2.9rem; height: 2.9rem; }
.brand small { display: block; color: var(--ink-soft); font-weight: 500; font-size: .78rem; }
nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; }
nav a:hover { color: var(--accent-text); }
@media (max-width: 760px) { nav { display: none; } }

.btn {
  display: inline-block; padding: .8rem 1.3rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 600; border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { padding: .45rem .9rem; font-size: .9rem; white-space: nowrap; }

/* Accueil */
.hero { padding: 4.5rem 0 4rem; border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
.hero h1 span { color: var(--accent); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero .enso { width: 100%; height: auto; max-width: 20rem; justify-self: center; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.badges li {
  font-size: .9rem; padding: .3rem .75rem; border: 1px solid var(--line);
  border-radius: 99px; color: var(--ink-soft);
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero .enso { order: -1; max-width: 9rem; justify-self: start; }
}

/* Grilles */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.card p:last-child { margin-bottom: 0; }

/* Horaires */
.schedule { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.schedule th, .schedule td { text-align: left; padding: .85rem .5rem; border-bottom: 1px solid var(--line); }
.schedule th { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
.schedule td:first-child { font-weight: 600; }
.tag { font-size: .875rem; padding: .15rem .55rem; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.kids { border-color: var(--accent-text); color: var(--accent-text); font-weight: 600; }
@media (max-width: 560px) {
  .schedule thead { display: none; }
  .schedule tr { display: grid; grid-template-columns: 1fr auto; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .schedule td { border: 0; padding: .1rem 0; }
}

/* Tarifs */
.price { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin: .2rem 0 .4rem; }
.price small { font-size: 1rem; color: var(--ink-soft); font-weight: 400; }
.note { font-size: .95rem; color: var(--ink-soft); }

/* Sensei */
.sensei { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; align-items: start; }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius); background: var(--paper-2);
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-soft); font-size: .9rem; text-align: center; padding: 1rem;
}
.facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.facts li::before { content: "—  "; color: var(--accent); }
@media (max-width: 640px) { .sensei { grid-template-columns: 1fr; } .portrait { max-width: 12rem; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: .7rem 0 0; color: var(--ink-soft); }


/* Acces */
.map { width: 100%; height: 100%; min-height: 18rem; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }

footer { padding: 2rem 0 3rem; background: var(--footer); color: var(--footer-ink); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
footer a { color: var(--footer-ink); }
.affil { display: flex; align-items: center; gap: .6rem; }
.affil img { width: 2.5rem; height: 2.5rem; }

/* Lien "Lire la suite" */
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Page de texte (ex. /aikido/) */
.prose { padding: 3.5rem 0 4rem; border-top: 0; }
.prose .wrap { max-width: 46rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.prose p { margin-bottom: 1.2em; }
.prose .eyebrow a { color: inherit; text-decoration: none; }
.prose .eyebrow a:hover { text-decoration: underline; }
.source { font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-top: 2.5rem; }
.cta h2 { font-size: 1.4rem; margin-bottom: .3em; }
.cta p { margin: 0; }
nav a[aria-current="page"] { color: var(--accent-text); }
