/* =========================================================================
   Dojo de Jette — site vitrine public
   Thème moderne, responsive, sans dépendance lourde.
   ========================================================================= */

:root {
    --ink: #16181d;
    --ink-soft: #4a4f59;
    --paper: #ffffff;
    --bg: #f6f5f2;
    --line: #e6e3dd;
    --brand: #b8121b;          /* rouge dojo */
    --brand-dark: #8d0d14;
    --accent: #1d2330;         /* bleu nuit */
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 22, 28, .08);
    --shadow-sm: 0 4px 14px rgba(20, 22, 28, .06);
    --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4, .brand-text {
    font-family: "Barlow Condensed", "Inter", sans-serif;
    line-height: 1.05;
    letter-spacing: .01em;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--paper); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18, 21, 29, .94);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; max-width: 1520px; margin: 0 auto; padding: 0 24px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-text { font-size: 1.5rem; text-transform: uppercase; font-weight: 600; color: #fff; letter-spacing: .02em; }
.brand-text strong { color: var(--brand); font-weight: 700; margin-left: 6px; }

.site-nav { display: flex; align-items: center; gap: 1px; flex-wrap: nowrap; }
.site-nav a {
    position: relative;
    color: rgba(255, 255, 255, .88); font-weight: 500; font-size: .9rem;
    padding: 8px 9px; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-nav a.active { color: #fff; font-weight: 700; }
.site-nav a.active::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 3px; background: var(--brand); border-radius: 2px; }
.site-nav .nav-cta {
    background: var(--brand); color: #fff; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle, .nav-burger { display: none; }
.nav-burger { cursor: pointer; flex-direction: column; gap: 5px; padding: 10px; }
.nav-burger span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 13px 24px; border-radius: 999px;
    background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
    transition: transform .12s ease, background .2s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Héros partagés (disciplines, contact, calendrier) ---------- */
.hero-inner { position: relative; z-index: 4; padding: clamp(56px, 9vw, 110px) 0; max-width: 760px; }
.hero-inner .lead { font-size: 1.2rem; color: rgba(255, 255, 255, .92); margin: 0 0 28px; }
.hero-inner .eyebrow { text-transform: uppercase; letter-spacing: .2em; font-weight: 600; opacity: .85; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Slider d'accueil (plein écran, photos réelles du dojo) ---------- */
.hero-slider { position: relative; height: clamp(420px, 82vh, 820px); background: #0d0f14; overflow: hidden; }
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; }
.hero-slider .slide.is-active { opacity: 1; }
.hero-slider::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; background: linear-gradient(rgba(10, 12, 18, .5), transparent); z-index: 2; pointer-events: none; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(0, 0, 0, .32); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.slider-nav:hover { background: rgba(0, 0, 0, .6); }
.slider-nav.prev { left: 18px; } .slider-nav.next { right: 18px; }
.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.slider-dots .dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; opacity: .7; transition: opacity .2s, background .2s; }
.slider-dots .dot.is-active { background: #fff; opacity: 1; }
@media (max-width: 640px) { .slider-nav { display: none; } .hero-slider { height: 56vh; min-height: 360px; } }

/* ---------- Discipline cards ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); }
.card {
    position: relative; display: flex; flex-direction: column; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); color: var(--ink);
    text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); text-decoration: none; }
.card-img { display: block; height: 168px; background-size: cover; background-position: center; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.06); }
.card--photo { overflow: hidden; }
.card--photo .card-img { border-bottom: 3px solid var(--card-accent, var(--brand)); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card:not(.card--photo) .card-body { border-left: 5px solid var(--card-accent, var(--brand)); }
.card h3 { margin: 0 0 4px; text-transform: uppercase; }
.card .card-sub { display: block; color: var(--ink-soft); font-size: .92rem; }
.card .card-go { display: block; margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--card-accent, var(--brand)); font-size: .88rem; letter-spacing: .02em; }

/* ---------- Section header ---------- */
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--disc-color, var(--brand)); text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .8rem; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; margin-top: 16px; background: var(--disc-color, var(--brand)); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 18px; }

/* ---------- Discipline page ---------- */
.disc-hero { position: relative; color: #fff; background: var(--disc-color, var(--accent)); background-size: cover; background-position: center 35%; border-bottom: 4px solid var(--disc-color, var(--brand)); overflow: hidden; }
.disc-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 15, 20, .9) 35%, rgba(13, 15, 20, .66)); }
.disc-hero .hero-inner { position: relative; z-index: 2; padding: clamp(64px, 10vw, 130px) 0; }
.disc-anchor-nav { position: sticky; top: 68px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.disc-anchor-nav .wrap { display: flex; gap: 6px; overflow-x: auto; }
.disc-anchor-nav a { white-space: nowrap; padding: 14px 14px; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.disc-anchor-nav a:hover { color: var(--disc-color, var(--brand)); text-decoration: none; }

.prose { font-size: 1.06rem; color: var(--ink); }
.prose :is(h2,h3) { margin-top: 1.4em; }

.profs { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); justify-content: center; }
.prof-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.prof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prof-card img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 4px solid var(--disc-color, var(--brand)); padding: 4px; background: var(--paper); }
.prof-card .avatar-fallback { width: 168px; height: 168px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--bg); color: var(--disc-color, var(--brand)); font-size: 3.4rem; font-family: "Barlow Condensed", sans-serif; border: 4px solid var(--disc-color, var(--brand)); }
.prof-card h4 { margin: 0; font-size: 1.5rem; }
.prof-card .grade { color: var(--ink-soft); font-size: 1.02rem; margin-top: 4px; }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: "⤢"; position: absolute; right: 10px; bottom: 8px; color: #fff; font-size: 18px; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.gallery-item:hover::after { opacity: .95; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Lightbox (affichage en grand) */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 18, .93); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox .lb-close { position: absolute; top: 16px; right: 24px; font-size: 38px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 38px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-nav:hover { background: rgba(0,0,0,.6); }
.lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
.lightbox .lb-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; opacity: .9; }
@media (max-width: 560px) { .lightbox .lb-nav { width: 44px; height: 44px; font-size: 28px; } }

/* ---------- Schedule table ---------- */
.schedule { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* Calendrier global : 3 jours par ligne en desktop, 2 en tablette, 1 en mobile */
.schedule-week .schedule { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .schedule-week .schedule { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .schedule-week .schedule { grid-template-columns: 1fr; } }
.sched-day { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.sched-day h4 { margin: 0; padding: 13px 16px; background: var(--disc-color, var(--accent)); color: #fff; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em; }
.sched-slot { display: flex; align-items: baseline; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); }
.sched-slot:first-of-type { border-top: 0; }
.sched-time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched-label { color: var(--ink-soft); font-size: .92rem; }
.sched-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: center; }
.sched-empty { color: var(--ink-soft); font-style: italic; }

/* ---------- News ---------- */
.news-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.news-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.news-cover--fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--brand-dark)); }
.news-cover--fallback img { width: 68px; height: 68px; aspect-ratio: auto; }
.news-body { padding: 18px 20px 22px; }
.news-date { color: var(--ink-soft); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.news-card h3 { margin: 6px 0 10px; }

/* ---------- Info / contact blocks ---------- */
.info-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.info-block .ico { font-size: 1.8rem; }

/* ---------- Carte (contact) ---------- */
.map-embed { position: relative; width: 100%; padding-bottom: 45%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-embed { padding-bottom: 75%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--accent); color: #cfd3dd; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; padding: 56px 20px; }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: 1.1rem; }
.site-footer a { color: #fff; }
.site-footer .brand--footer .brand-text { color: #fff; }
.site-footer p { color: #aeb4c2; }
.social a { margin-right: 14px; }
/* Bandeau partenaires */
.partners-band { background: #161b26; border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; }
.partners-band .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.partners-label { color: #8a90a0; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; }
.partners-logos { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.partners-logos img { height: 42px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .85; transition: filter .2s, opacity .2s; }
.partners-logos a:hover img { filter: none; opacity: 1; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { padding: 16px 20px; font-size: .85rem; color: #8a90a0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-burger { display: flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #12151d; border-bottom: 1px solid rgba(255, 255, 255, .1);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
        max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 12px;
    }
    .nav-toggle:checked ~ .site-nav { max-height: 80vh; padding: 8px 12px 16px; }
    .site-nav a { color: #fff; padding: 13px 8px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .site-nav a.active { color: #fff; }
    .site-nav a.active::after { display: none; }
    .site-nav a.active { border-left: 3px solid var(--brand); padding-left: 12px; }
    .site-nav .nav-cta { margin-top: 8px; border-radius: 8px; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
}
