:root {
  --red: #d90c0c; --red-dark: #b00909; --ink: #2b2623; --ink-soft: #4d453f; --cream: #fbf3d9; --cream-2: #f4e9c4; --white: #fff;
  --radius: 14px; --shadow: 0 8px 30px rgba(20, 17, 15, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
section { padding: 72px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ambiance japonaise : bambous sur les côtés, kanji en filigrane, pétales de sakura */
section { position: relative; overflow: hidden; }
section .wrap { position: relative; z-index: 1; }
section[data-kanji]::before {
  content: attr(data-kanji); position: absolute; top: 4%; right: 3%; z-index: 0; pointer-events: none;
  font: 900 min(24vw, 300px)/1 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", "MS Mincho", serif;
  writing-mode: vertical-rl; color: rgba(20, 17, 15, .055);
}
section.alt[data-kanji]::before { right: auto; left: 3%; color: rgba(160, 20, 20, .07); }
.bamboo { position: fixed; top: 0; bottom: 0; width: 60px; z-index: -1; pointer-events: none; opacity: .3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='300'%3E%3Crect x='22' width='14' height='300' fill='%236f9a58'/%3E%3Crect x='22' width='4' height='300' fill='%2390b878'/%3E%3Crect x='19' y='96' width='20' height='6' rx='3' fill='%234d7340'/%3E%3Crect x='19' y='246' width='20' height='6' rx='3' fill='%234d7340'/%3E%3Cpath d='M36 100q22-6 20-22-20 4-20 22z' fill='%236f9a58'/%3E%3Cpath d='M22 250q-22-6-20-22 20 4 20 22z' fill='%236f9a58'/%3E%3Cpath d='M36 250q18 0 22-14-18 0-22 14z' fill='%2390b878'/%3E%3C/svg%3E") repeat-y; }
.bamboo.l { left: 6px; }
.bamboo.r { right: 6px; transform: scaleX(-1); background-position: 0 150px; }
.sakura { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -30px; width: 14px; height: 11px; background: linear-gradient(135deg, #ffd9e4, #f7a3bd); border-radius: 80% 0 80% 0; opacity: .8; animation: fall linear infinite, sway ease-in-out infinite alternate; }
@keyframes fall { to { top: 105vh; } }
@keyframes sway { from { margin-left: -30px; transform: rotate(0deg); } to { margin-left: 40px; transform: rotate(220deg); } }
@media (prefers-reduced-motion: reduce) { .sakura { display: none; } }

/* boutons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--red); background: var(--red); color: var(--white); cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* en-tête */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 243, 217, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(20, 17, 15, .1); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
nav.main a:hover { color: var(--red); }
nav.main .btn { padding: 9px 18px; color: var(--white); font-size: .92rem; }
nav.main .btn:hover { color: var(--white); }
.burger { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* hero */
.hero { background: var(--ink); color: var(--white); padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: 100%; object-fit: cover; object-position: 55% 45%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%); mask-image: linear-gradient(to right, transparent 0, #000 40%); }
.hero .wrap { position: relative; z-index: 1; display: block; }
.hero .wrap > div { max-width: 540px; }
.hero .motto { margin: 0 0 18px; }
.hero .motto span { display: inline-block; color: var(--red); background: var(--cream); padding: 4px 14px; border-radius: 6px; font-weight: 800; font-size: clamp(.95rem, 2.4vw, 1.2rem); letter-spacing: .04em; text-transform: uppercase; }
.hero .pillars { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: .95rem; color: #e9e2d0; }
.hero .pillars li { padding-left: 14px; border-left: 3px solid var(--red); line-height: 1.4; }
.hero .pillars strong { color: var(--white); margin-right: 4px; }
.hero .lead { color: #e9e2d0; }
.hero::after { content: "柔道"; position: absolute; left: 1%; bottom: -6%; pointer-events: none; writing-mode: vertical-rl; color: rgba(255, 255, 255, .05);
  font: 900 min(28vw, 340px)/1 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", "MS Mincho", serif; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn.ghost { color: var(--white); border-color: var(--white); }
.hero .btn.ghost:hover { background: var(--white); color: var(--ink); }

/* bandeau crédibilité */
.trust { position: relative; z-index: 1; color: #fff8ec; padding: 20px 0;
  background: linear-gradient(180deg, #c45a4a 0%, #a8443a 55%, #8f3830 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 8px 18px rgba(43, 38, 35, .28); }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin: 0; padding: 0; font-weight: 800; }
.trust li { padding: 8px 18px; border-radius: 999px; text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 3px 6px rgba(0, 0, 0, .2); }
.trust li::before { content: "✔ "; color: #ffe2a8; }

/* cartes */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.card ul { padding-left: 1.1em; margin: .5em 0 0; color: var(--ink-soft); }
.card li { margin-bottom: .3em; }
.alt { background: rgba(244, 233, 196, .86); }

/* à propos */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.photo { aspect-ratio: 4/5; border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 14px, #efe1b3 14px, #efe1b3 28px); display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-weight: 700; padding: 20px; box-shadow: var(--shadow); }
.about { grid-template-columns: .75fr 1.25fr; align-items: start; }
.coach-fig { margin: 0; position: sticky; top: 90px; }
.coach-fig figcaption { margin-top: 14px; text-align: center; }
.coach-fig figcaption strong { display: block; font-size: 1.2rem; }
.coach-fig figcaption span { color: var(--ink-soft); font-size: .92rem; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 4px 0 22px; }
.stats li { background: var(--white); border-radius: 12px; padding: 12px 10px; text-align: center; box-shadow: 0 2px 10px rgba(20, 17, 15, .08); border-top: 4px solid var(--red); }
.stats strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.stats span { font-size: .8rem; color: var(--ink-soft); line-height: 1.2; display: block; margin-top: 4px; }
blockquote.goal { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 18px 22px; border-left: 6px solid var(--red); margin: 22px 0 0; }
blockquote.goal p { font-style: normal; font-weight: 600; margin: 0; }
.photo { overflow: hidden; padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.badges li { flex: 1 1 auto; text-align: center; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; }

/* tarifs */
.price { text-align: center; position: relative; }
.price .amount { font-size: 2.8rem; font-weight: 900; color: var(--red); line-height: 1; margin: 8px 0; }
.price .amount small { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.price.hot { border: 3px solid var(--red); }
.price.hot::before { content: "Le plus choisi"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 14px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.price ul { list-style: none; padding: 0; text-align: left; }
.price .student { display: inline-block; margin: 4px 0 0; padding: 3px 12px; border-radius: 999px; background: var(--cream); font-size: .9rem; }
.price .student strong { color: var(--red); }
.price .desc { font-size: .95rem; color: var(--ink-soft); text-align: left; margin: 8px 0 0; }
.price li::before { content: "✔ "; color: var(--red); font-weight: 900; }
.note { font-size: .9rem; color: var(--ink-soft); text-align: center; margin-top: 22px; }

/* planning, témoignages, FAQ */
table.plan { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.plan th, table.plan td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--cream-2); }
table.plan th { background: var(--ink); color: var(--cream); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
blockquote { margin: 0; }
blockquote p { font-size: 1.05rem; font-style: italic; }
blockquote footer { font-weight: 800; font-size: .9rem; }
details { background: var(--white); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(20, 17, 15, .07); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: .8em 0 0; color: var(--ink-soft); }

/* contact */
.contact { background: var(--ink); color: var(--white); }
.contact .lead { color: #e9e2d0; }
.contact a { color: #ffb4b4; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
form.rdv { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; }
form.rdv label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
form.rdv .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.rdv .field { margin-bottom: 14px; }
form.rdv input, form.rdv select, form.rdv textarea { width: 100%; padding: 12px 14px; border: 2px solid #ddd2a8; border-radius: 10px; font: inherit; background: var(--cream); }
form.rdv input:focus, form.rdv select:focus, form.rdv textarea:focus { outline: 3px solid rgba(217, 12, 12, .25); border-color: var(--red); }
form.rdv .check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; font-weight: 500; }
form.rdv .check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
#msg { margin-top: 12px; font-weight: 700; }
#msg.ok { color: #1a7a2e; } #msg.err { color: var(--red); }
.infos p { margin-bottom: .6em; }

footer.bottom { background: #1f1b19; color: #b9b2a2; padding: 28px 0; font-size: .9rem; text-align: center; }
footer.bottom a { color: #e9e2d0; }

@media (max-width: 820px) {
  section { padding: 52px 0; }
  .burger { display: block; }
  nav.main { position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; border-bottom: 1px solid rgba(20, 17, 15, .15); display: none; }
  nav.main.open { display: flex; }
  nav.main .btn { text-align: center; }
  .hero .wrap, .about, .contact-grid, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .hero { padding-top: 0; }
  .hero-art { position: relative; width: 100%; height: 260px; margin-bottom: 24px; object-position: 55% 35%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
  .coach-fig { position: static; max-width: 280px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bamboo { opacity: .18; width: 44px; background-size: 44px auto; }
  section[data-kanji]::before { font-size: 40vw; opacity: .8; }
  form.rdv .row { grid-template-columns: 1fr; }
  table.plan th, table.plan td { padding: 10px 8px; font-size: .85rem; }
  table.plan th { letter-spacing: 0; }
}

/* ---------- avis des élèves (publiés depuis CoachPro) ---------- */
.avis-resume { font-weight: 800; font-size: 1.1rem; margin: 6px 0 0; }
.avis-resume .etoiles, blockquote .etoiles { color: #e0a100; letter-spacing: 2px; font-style: normal; }
blockquote .etoiles { display: block; margin-bottom: 6px; }
blockquote footer small { display: block; font-weight: 500; color: var(--ink-soft); }
.avis-vide { margin: 0 0 8px; color: var(--ink-soft); }
.avis-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
form.avis-form { margin-top: 24px; max-width: 720px; box-shadow: var(--shadow); }
form.avis-form[hidden] { display: none; }
.stars { border: 0; padding: 0; }
.stars legend { font-weight: 700; font-size: .9rem; margin-bottom: 4px; padding: 0; }
.stars-in { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
form.rdv .stars-in label { font-size: 2rem; line-height: 1; color: #d8cfae; cursor: pointer; margin: 0; transition: color .1s; }
.stars-in label:hover, .stars-in label:hover ~ label, .stars-in input:checked ~ label { color: #e0a100; }
.stars-in input:focus-visible + label { outline: 3px solid rgba(217, 12, 12, .35); border-radius: 4px; }
.avis-note { font-size: .82rem; color: var(--ink-soft); }
#avis-msg { margin-top: 12px; font-weight: 700; }
#avis-msg.ok { color: #1a7a2e; } #avis-msg.err { color: var(--red); }

/* ---------- QR code du site (section contact, ordinateur uniquement) ---------- */
.qr-site { display: flex; align-items: center; gap: 16px; margin: 22px 0 0; }
.qr-site img { width: 130px; height: 130px; background: #fff; border-radius: 12px; padding: 6px; flex: none; }
.qr-site figcaption { font-size: .9rem; color: #e9e2d0; max-width: 220px; }
@media (max-width: 820px) { .qr-site { display: none; } }

/* Votre coach : paragraphes justifiés */
#apropos .about > div > p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* Carte « Pas sûr de votre choix ? » sur toute la largeur (7 cartes) */
.grid.c3 > .card.choix { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 22px; align-items: center; }
.grid.c3 > .card.choix .ico { margin: 0; grid-row: span 2; }
.grid.c3 > .card.choix h3, .grid.c3 > .card.choix p { margin: 0; }
.grid.c3 > .card.choix .btn { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 820px) { .grid.c3 > .card.choix { display: block; } .grid.c3 > .card.choix .ico { margin-bottom: 14px; } }

/* Cours collectif : formule à l année */
.price .annee { margin: 14px 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--cream); border: 2px dashed rgba(217, 12, 12, .45); text-align: left; }
.price .annee strong { display: block; color: var(--red); margin-bottom: 2px; }
.price .annee span { font-size: .92rem; color: var(--ink-soft); }

/* FAQ : équipement par discipline */
details ul.equip { margin: .6em 0 0; padding-left: 1.1em; color: var(--ink-soft); }
details ul.equip li { margin-bottom: .45em; }
details ul.equip strong { color: var(--ink); }

/* Planning : créneaux à demander */
table.plan a.renseigner { color: var(--red); font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }

/* Un bouton masqué (attribut hidden) doit rester masqué malgré .btn */
.btn[hidden] { display: none; }

/* Avis : 3 visibles, bouton Voir tous / Replier */
#avis-list:not(.tout) .avis-cache { display: none; }
.avis-plus { text-align: center; margin: 18px 0 0; }

/* Disponibilités et clubs */
.btn.mini { padding: 8px 16px; font-size: .88rem; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.plan.dispo td:last-child { text-align: right; }
.card.club { display: flex; flex-direction: column; gap: 6px; }
.card.club h3 { margin: 0; }
.card.club .ville { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card.club ul { margin: 6px 0 14px; }
.card.club .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 820px) {
  table.plan.dispo, table.plan.dispo tbody, table.plan.dispo tr, table.plan.dispo td { display: block; }
  table.plan.dispo thead { display: none; }
  table.plan.dispo tr { padding: 12px 14px; border-bottom: 1px solid var(--cream-2); }
  table.plan.dispo td { border: 0; padding: 2px 0; text-align: left !important; }
  table.plan.dispo td:first-child { font-weight: 800; }
  table.plan.dispo td:last-child { padding-top: 8px; }
}
