/* Chikarada Dojo Fribourg — feuille de style principale */
@font-face {
  font-family: "Karate";
  src: url("../fonts/karate-webfont.woff2") format("woff2"), url("../fonts/karate-webfont.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}

:root {
  --red: #d42a2a;
  --red-dark: #a91f1f;
  --blue: #1f4a9a;
  --ocre: #c59c71;
  --ocre-light: #f1e5d6;
  --ink: #1c1b1a;
  --ink-2: #4a4744;
  --muted: #7a746e;
  --paper: #faf7f2;
  --paper-2: #f3eee6;
  --white: #fff;
  --line: #e6dfd5;
  --display: "Karate", "Arial Black", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 27, 26, .10);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1, h2, .h3 { font-family: var(--display); font-weight: normal; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3, .h3 { font-size: 1.3rem; }
.h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.big { font-size: 1.2rem; }
.mt { margin-top: 2.5rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
address.plain { font-style: normal; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }

/* Boutons */
.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: transform .15s, background .15s, color .15s; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { display: block; text-align: center; margin-bottom: .6rem; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.preview-banner { background: var(--blue); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: .4rem 1rem; letter-spacing: .03em; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; width: min(1360px, 100% - 2.5rem); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.35rem; }
.brand-sub { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--red); margin-top: .2rem; }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .5rem .6rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; border-radius: 8px; white-space: nowrap; }
.nav-list a:hover { background: var(--paper-2); color: var(--ink); }
.nav-list a[aria-current] { color: var(--red); }
.nav-extra { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.lang-switch { display: flex; gap: .15rem; list-style: none; margin: 0; padding: .15rem; background: var(--paper-2); border-radius: 999px; }
.lang-switch a { display: block; padding: .3rem .55rem; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); border-radius: 999px; }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: 1rem; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: .7rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-extra { justify-content: space-between; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 720px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,16,.15) 0%, rgba(20,18,16,.55) 55%, rgba(20,18,16,.85) 100%); }
.hero-inner { padding: 5rem 0 3.5rem; max-width: 720px; margin-left: max(1.25rem, (100% - var(--wrap)) / 2); }
.hero-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; color: var(--ocre); margin-bottom: 1rem; }
.hero-title { color: #fff; font-size: clamp(2.4rem, 6.5vw, 4.4rem); margin-bottom: .6rem; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-title span { color: var(--ocre); }
.hero-text { font-size: 1.2rem; max-width: 56ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.page-head { padding: 3.5rem 0 1.5rem; background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3em; }
.page-head h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin-top: .5rem; border-radius: 2px; }

/* Cartes de cours */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-title { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-body p { margin: 0; color: var(--ink-2); }
.card-meta { font-size: .9rem; color: var(--muted) !important; }
.card-body .more { margin-top: auto; padding-top: .6rem; }

/* Horaire */
.schedule { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.day { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.day-empty { background: transparent; box-shadow: none; border: 2px dashed var(--line); }
.day-name { margin: 0; padding: .8rem 1rem; background: var(--ink); color: #fff; font-family: var(--display); font-weight: normal; font-size: 1.15rem; letter-spacing: .04em; }
.day-empty .day-name { background: transparent; color: var(--muted); }
.day-short { display: none; }
.slots { list-style: none; margin: 0; padding: .6rem; display: flex; flex-direction: column; gap: .6rem; }
.slot { border-left: 4px solid var(--ocre); background: var(--paper); border-radius: 8px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .1rem; }
.slot-kids { border-color: var(--blue); }
.slot-kickboxing { border-color: var(--red); }
.slot-fitboxing { border-color: var(--ocre); }
.slot-karate { border-color: var(--ink); }
.slot-time { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.slot-course { font-weight: 600; text-decoration: none; color: var(--ink); }
.slot-course:hover { color: var(--red); }
.slot-aud { font-size: .85rem; color: var(--muted); }
.slot-none { margin: 0; padding: 1rem; color: var(--muted); font-size: .9rem; }
.schedule-compact { margin-bottom: 2rem; }
.ages { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .8rem 2rem; }
.ages li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; }
.ages strong { color: var(--red); margin-right: .4rem; }
@media (max-width: 900px) {
  .schedule { grid-template-columns: repeat(2, 1fr); }
  .day-empty { display: none; }
}
@media (max-width: 520px) {
  .schedule { grid-template-columns: 1fr; }
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-reverse .split-text { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media .portrait { max-width: 320px; margin-inline: auto; }
.split-media figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.split-media figure, figure { margin: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mosaic img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.mosaic-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-reverse .split-text { order: 0; }
  .mosaic-3 { grid-template-columns: 1fr 1fr; }
}

/* Bande d'appel */
.cta-band { background: var(--red); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin-inline: auto; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--red-dark); }
.cta-band .btn-primary:hover { background: var(--paper); }

/* Page cours */
.course-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.course-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.course-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,16,.1), rgba(20,18,16,.8)); }
.course-hero-inner { padding: 4rem 0 2.5rem; }
.course-hero h1 { color: #fff; }
.course-hero .lead { color: rgba(255,255,255,.9); }
.crumbs { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.crumbs a { color: var(--ocre); text-decoration: none; }
.course-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 3rem; align-items: start; }
.course-aside { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.facts { margin: 0 0 1.2rem; display: grid; gap: .8rem; }
.facts div { border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.course-aside .h4 { margin-top: 1.5rem; }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list a { display: block; padding: .4rem 0; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.aside-list a:hover { color: var(--red); }
.prose h2 { font-size: 1.6rem; margin-top: 1.5em; }
.prose ul, .prose dl { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose dt { font-weight: 700; margin-top: .8rem; }
.prose dd { margin: 0 0 .5rem; color: var(--ink-2); }
@media (max-width: 800px) { .course-layout { grid-template-columns: 1fr; } .course-aside { position: static; } }

/* Entraîneurs */
.coaches { display: grid; gap: 2rem; }
.coach { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.coach-photo { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.coach-body { padding: 1.8rem 2rem 1.8rem 0; }
.coach-role { color: var(--red); font-weight: 600; margin-bottom: 1rem; }
.coach-facts { padding-left: 1.2rem; color: var(--ink-2); }
.coach-facts li { margin-bottom: .4rem; }
@media (max-width: 700px) { .coach { grid-template-columns: 1fr; } .coach-photo { aspect-ratio: 4 / 3; } .coach-body { padding: 0 1.5rem 1.5rem; } }

/* Histoire */
.timeline { list-style: none; padding: 0; margin: 0 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.5rem; margin-bottom: 2.5rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--red); }
.tl-year { display: inline-block; font-weight: 700; color: var(--red); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; margin-bottom: .3rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery button { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,9,8,.92); }
.lightbox figure { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 3rem 4rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; border-radius: 6px; }
.lightbox figcaption { color: #fff; font-size: .95rem; }
.lightbox button { position: absolute; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 3.5rem .5rem; } }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 3rem; align-items: start; }
.contact-aside { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .9rem; border: 1px solid #cfc7bb; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.notice { padding: .9rem 1.1rem; border-radius: 10px; font-weight: 600; }
.notice-ok { background: #e6f4e8; color: #1d5b2a; }
.notice-err { background: #fbe6e6; color: #8a1c1c; }
.map { position: relative; padding-bottom: 42%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-small { padding-bottom: 60%; margin-top: 1rem; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* Pied de page */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { width: 72px; }
.footer-name { font-family: var(--display); font-size: 1.4rem; color: #fff; margin: .8rem 0 .2rem; }
.footer-tagline { color: var(--ocre); font-size: .9rem; }
.footer-h { font-family: var(--body); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--ocre); margin-bottom: .8rem; }
.site-footer address { font-style: normal; }
.footer-link { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,.55); }
.partners { list-style: none; padding: 0; margin: 0; display: flex; gap: .8rem; flex-wrap: wrap; }
.partners a { display: block; background: #fff; border-radius: 10px; padding: .5rem .7rem; }
.partners img { height: 48px; width: auto; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.social a:hover { background: var(--red); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .gallery button img { transition: none; }
}
