/* =========================================================
   Pro Fight Team — feuille de style publique
   Design "club de sport" : clair, lisible, accueillant.
   ========================================================= */

:root {
    --ink: #10161d;
    --ink-2: #38434f;
    --muted: #616c7a; /* contraste AA (4.9:1) sur --bg comme sur --surface */
    --line: #e3e7ec;
    --line-strong: #cdd4dd;
    --bg: #f4f6f8;
    --bg-alt: #eef1f5;
    --surface: #ffffff;
    --dark: #131a22;
    --dark-2: #1c242e;

    --brand: #d81f2a;
    --brand-dark: #ab1420;
    --brand-soft: #fdeef0;
    --ok: #12805a;
    --ok-soft: #e6f5ee;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --pill: 999px;

    --shadow-sm: 0 1px 2px rgba(16, 22, 29, .06), 0 2px 8px rgba(16, 22, 29, .04);
    --shadow: 0 2px 6px rgba(16, 22, 29, .05), 0 12px 32px rgba(16, 22, 29, .08);
    --shadow-lg: 0 4px 12px rgba(16, 22, 29, .06), 0 24px 60px rgba(16, 22, 29, .12);

    --container: min(1180px, calc(100% - 40px));
    --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
address { font-style: normal; }

h1, h2, h3, h4 { margin-top: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
p { margin-top: 0; }

.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

:where(a, button, select, input):focus-visible {
    outline: 3px solid rgba(216, 31, 42, .35);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------------------------------------------------------
   En-tête
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 22, 29, .08); }
.nav-shell {
    width: min(1240px, calc(100% - 40px));
    height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.brand-copy span { font-size: 11px; font-weight: 600; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.main-nav > a:not(.nav-cta) {
    padding: 9px 14px;
    border-radius: var(--pill);
    color: var(--ink-2);
    transition: background .2s ease, color .2s ease;
}
.main-nav > a:not(.nav-cta):hover { background: var(--bg-alt); color: var(--ink); }
.main-nav > a.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.nav-cta {
    margin-left: 10px;
    padding: 11px 20px;
    border-radius: var(--pill);
    background: var(--brand);
    color: white;
    box-shadow: 0 6px 18px rgba(216, 31, 42, .25);
    transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    padding: 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
}
.nav-toggle span:not(.sr-only) { display: block; height: 2px; border-radius: 2px; margin: 4px 0; background: var(--ink); transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------
   Éléments partagés
   --------------------------------------------------------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    border-radius: var(--pill);
    background: var(--brand-soft);
    color: var(--brand-dark);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}
.kicker > span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.kicker.dark { background: var(--bg-alt); color: var(--ink-2); }
.kicker.dark > span { background: var(--ink-2); }
.kicker.on-dark { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92); }
.kicker.on-dark > span { background: var(--brand); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--pill);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand); color: white; box-shadow: 0 8px 22px rgba(216, 31, 42, .28); }
.button-primary:hover { background: var(--brand-dark); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--dark-2); }
.button-outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button-outline:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.button-link { min-height: auto; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--line-strong); }
.button-link:hover { text-decoration-color: var(--brand); }
.button-full { width: 100%; }

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-heading { max-width: 640px; margin-bottom: 44px; }
.section-heading h2 { margin: 16px 0 12px; font-size: clamp(30px, 3.6vw, 44px); }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.split-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 56px; max-width: none; }
.split-heading > div > h2 { margin-bottom: 0; }
.split-heading > p { max-width: 420px; margin: 0 0 6px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span {
    padding: 7px 14px;
    border-radius: var(--pill);
    background: var(--bg-alt);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--pill);
    background: var(--bg-alt);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 700;
}
.level-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.level-badge.is-open { background: var(--ok-soft); color: var(--ok); }

/* ---------------------------------------------------------
   Accueil — hero
   --------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; background: var(--surface); }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 88% -10%, rgba(216, 31, 42, .07), transparent 70%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
.hero-copy h1 { margin: 20px 0 18px; font-size: clamp(38px, 5vw, 60px); }
.hero-copy h1 em { font-style: normal; color: var(--brand); }
.hero-copy > p { max-width: 520px; margin-bottom: 28px; color: var(--ink-2); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-facts > span { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.hero-facts svg { flex: none; width: 18px; height: 18px; color: var(--brand); }

.hero-visual { position: relative; }
.hero-visual > img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}
.hero-badge {
    position: absolute;
    left: -22px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 300px;
    padding: 16px 20px;
    border-radius: var(--r);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-size: 15px; }
.hero-badge span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.hero-badge-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ok-soft);
    color: var(--ok);
}
.hero-badge-icon svg { width: 22px; height: 22px; }

/* Bandeau de chiffres */
.proof-strip { padding: 0 0 8px; background: var(--bg); }
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--line);
    box-shadow: var(--shadow-sm);
}
.proof-grid > div { padding: 26px 28px; background: var(--surface); }
.proof-grid strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.proof-grid span { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------
   Disciplines
   --------------------------------------------------------- */
.disciplines-section { background: var(--bg); }
.discipline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.discipline-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.discipline-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.discipline-icon {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    margin-bottom: 22px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    color: var(--brand);
}
.discipline-icon svg { width: 28px; height: 28px; }
.discipline-card > span { color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.discipline-card h3 { margin: 8px 0 10px; font-size: 24px; }
.discipline-card p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.discipline-card > a { margin-top: auto; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.discipline-card > a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------
   Pour qui / publics accueillis
   --------------------------------------------------------- */
.audience-section { background: var(--surface); }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.audience-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.audience-card strong { display: block; margin-bottom: 6px; font-size: 17px; }
.audience-card span { display: block; color: var(--muted); font-size: 14px; }
.audience-card em { display: inline-block; margin-bottom: 14px; padding: 4px 11px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-style: normal; font-size: 12px; font-weight: 700; }

/* ---------------------------------------------------------
   Méthode (bloc sombre)
   --------------------------------------------------------- */
.method-section { background: var(--dark); color: white; }
.method-layout { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 64px; }
.method-image { position: relative; }
.method-image img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--r-lg); }
.image-stamp {
    position: absolute;
    right: -18px;
    bottom: -18px;
    padding: 18px 22px;
    border-radius: var(--r);
    background: var(--brand);
    color: white;
    box-shadow: var(--shadow-lg);
}
.image-stamp strong { display: block; font-size: 26px; letter-spacing: -.02em; }
.image-stamp span { font-size: 12px; font-weight: 600; opacity: .85; }
.method-copy h2 { margin: 18px 0 14px; font-size: clamp(30px, 3.6vw, 42px); }
.method-copy .lead { max-width: 520px; margin-bottom: 32px; color: rgba(255, 255, 255, .72); font-size: 17px; }
.pillar-list { display: grid; gap: 2px; }
.pillar {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.pillar:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pillar > span {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: white;
    font-size: 13px;
    font-weight: 800;
}
.pillar h3 { margin: 0 0 4px; font-size: 17px; }
.pillar p { margin: 0; color: rgba(255, 255, 255, .62); font-size: 14px; }

/* ---------------------------------------------------------
   Infos pratiques + accès
   --------------------------------------------------------- */
.practical-section { background: var(--bg); }
.practical-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.practical-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.practical-card h3 { margin: 0 0 20px; font-size: 21px; }
.info-list { display: grid; gap: 0; margin: 0; }
.info-list > div { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--brand); }
.info-list strong { display: block; font-size: 15px; }
.info-list span, .info-list address { display: block; color: var(--muted); font-size: 14px; }
.info-list a { color: var(--ink-2); font-weight: 600; }
.info-list a:hover { color: var(--brand-dark); }
.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 15px; }
.checklist svg { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact-section { padding: 96px 0; background: var(--surface); }
.contact-layout { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; }
.contact-copy h2 { margin: 16px 0 14px; font-size: clamp(30px, 3.8vw, 46px); }
.contact-copy > p { max-width: 520px; margin-bottom: 26px; color: var(--ink-2); font-size: 17px; }
.contact-card { padding: 32px; border-radius: var(--r-lg); background: var(--dark); color: white; box-shadow: var(--shadow-lg); }
.contact-card > div { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-card > div:first-of-type { padding-top: 0; }
.contact-card > div > span {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    font-size: 13px;
    font-weight: 800;
}
.contact-card p, .contact-card strong, .contact-card small { display: block; margin: 0; }
.contact-card strong { font-size: 15px; }
.contact-card small { margin-top: 2px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.contact-card .button { margin-top: 26px; }
.contact-phone { display: block; margin-top: 14px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 600; }
.contact-phone:hover { color: white; }

/* ---------------------------------------------------------
   En-tête des pages intérieures
   --------------------------------------------------------- */
.page-hero { position: relative; padding: 64px 0 56px; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 420px at 92% -30%, rgba(216, 31, 42, .08), transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 720px; }
.page-hero h1 { margin: 16px 0 14px; font-size: clamp(32px, 4.4vw, 50px); }
.page-hero h1 em { font-style: normal; color: var(--brand); }
.page-hero p { margin: 0; max-width: 620px; color: var(--ink-2); font-size: 17px; }

/* ---------------------------------------------------------
   Planning
   --------------------------------------------------------- */
.schedule-section { background: var(--bg); }
.schedule-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}
.schedule-toolbar > div { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #21b877; box-shadow: 0 0 0 4px rgba(33, 184, 119, .18); }
.schedule-toolbar a { color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.schedule-toolbar a:hover { text-decoration: underline; text-underline-offset: 4px; }

.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.day-column { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.day-column > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.day-column > header h2 { margin: 0; font-size: 16px; letter-spacing: 0; }
.day-column > header small { color: var(--muted); font-size: 12px; font-weight: 600; }
.day-courses { flex: 1; display: grid; align-content: start; gap: 10px; padding: 16px; }
.course-card {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: var(--bg);
    border-left: 4px solid var(--course-color, var(--brand));
}
.course-time { display: grid; align-content: center; }
.course-time strong { font-size: 15px; }
.course-time span { color: var(--muted); font-size: 12px; }
.course-card h3 { margin: 0 0 6px; font-size: 15px; }
.no-course { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 13px; }

.schedule-help {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 56px;
    margin-top: 56px;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}
.schedule-help h2 { margin: 16px 0 0; font-size: 30px; }
.help-grid { display: grid; gap: 16px; }
.help-grid p { margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.help-grid p:last-child { padding-bottom: 0; border-bottom: 0; }
.help-grid strong { display: block; margin-bottom: 3px; font-size: 15px; }
.help-grid span { display: block; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------
   Effectif
   --------------------------------------------------------- */
.fighters-section { background: var(--bg); }
.roster-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 32px; }
.roster-heading h2 { margin: 14px 0 0; font-size: 28px; }
.roster-heading > p { max-width: 340px; margin: 0; color: var(--muted); font-size: 14px; }

.fighters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fighter-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.fighter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fighter-photo { position: relative; height: 300px; overflow: hidden; background: var(--bg-alt); }
.fighter-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.fighter-card:hover .fighter-photo img { transform: scale(1.04); }
.fighter-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 22, 29, .62), transparent 46%); }
.win-rate { position: absolute; right: 18px; bottom: 14px; color: white; text-align: right; }
.win-rate strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.win-rate span { font-size: 11px; font-weight: 600; opacity: .82; }

.fighter-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.fighter-meta { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.fighter-body h2 { margin: 0; font-size: 21px; }
.record { display: flex; align-items: baseline; gap: 6px; margin: 16px 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg); }
.record strong { font-size: 20px; font-weight: 800; }
.record span { color: var(--muted); font-size: 12px; font-weight: 700; }
.record i { margin: 0 6px; color: var(--line-strong); font-style: normal; }
.fighter-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border-radius: var(--r-sm); background: var(--line); }
.fighter-stats > div { padding: 12px 10px; background: var(--surface); text-align: center; }
.fighter-stats strong { display: block; font-size: 17px; font-weight: 800; }
.fighter-stats span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }

.skill-preview { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.skill-line > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.skill-line strong { font-size: 13px; }
.skill-line span { color: var(--muted); font-size: 12px; font-weight: 600; }
.skill-track { height: 6px; overflow: hidden; border-radius: var(--pill); background: var(--bg-alt); }
.skill-track i { display: block; height: 100%; border-radius: var(--pill); background: var(--brand); }
.no-skills { margin: 0; color: var(--muted); font-size: 13px; }
.fighter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 13px 18px;
    border-radius: var(--pill);
    background: var(--bg-alt);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}
.fighter-link:hover { background: var(--ink); color: white; }

/* Fiche individuelle */
.fighter-profile-hero { padding: 56px 0 64px; background: var(--surface); border-bottom: 1px solid var(--line); }
.fighter-profile-layout { display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; gap: 56px; align-items: center; }
.fighter-profile-photo { position: relative; }
.fighter-profile-photo img { width: 100%; height: 440px; object-fit: cover; object-position: top; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fighter-profile-photo > span {
    position: absolute;
    left: 18px; top: 18px;
    padding: 7px 14px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .94);
    font-size: 14px;
    font-weight: 800;
}
.fighter-profile-copy h1 { margin: 16px 0 8px; font-size: clamp(34px, 4.6vw, 52px); }
.fighter-profile-copy > p { color: var(--muted); font-size: 15px; font-weight: 600; }
.profile-record { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); }
.profile-record div { padding: 20px; background: var(--surface); }
.profile-record strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.profile-record span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 600; }

.fighter-skill-section { background: var(--bg); }
.fighter-detail-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; }
.fighter-detail-grid h2 { margin: 16px 0 12px; font-size: 30px; }
.section-intro { color: var(--muted); }
.skill-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
.skill-card header { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.skill-card header strong { font-size: 16px; }
.skill-card header span { padding: 4px 10px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.skill-track-large { height: 8px; margin: 18px 0 8px; }
.skill-card small { color: var(--muted); font-size: 12px; }
.empty-public { grid-column: 1 / -1; padding: 34px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--surface); }
.empty-public strong { display: block; font-size: 16px; }
.empty-public span { display: block; margin-top: 4px; color: var(--muted); }
.fighter-back { padding: 0 0 80px; background: var(--bg); }

/* ---------------------------------------------------------
   Coachs
   --------------------------------------------------------- */
.coach-section { background: var(--bg); }
.coach-profile {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: 56px;
    margin-bottom: 28px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.coach-profile:last-child { margin-bottom: 0; }
.coach-profile.is-reversed .coach-photo { order: 2; }
.coach-photo { position: relative; }
/* Cadre 4/3 : les photos paysage comme portrait restent lisibles sans rognage brutal. */
.coach-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 42%; border-radius: var(--r); background: var(--bg-alt); }
.coach-photo > span {
    position: absolute;
    left: 16px; bottom: 16px;
    padding: 7px 14px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .94);
    font-size: 13px;
    font-weight: 800;
}
.coach-content h2 { margin: 14px 0 12px; font-size: clamp(28px, 3.2vw, 38px); }
.coach-bio { max-width: 560px; margin-bottom: 24px; color: var(--ink-2); font-size: 16px; }
.coach-details { display: flex; gap: 16px; margin-bottom: 24px; }
.coach-details > div { flex: 1; max-width: 190px; padding: 16px 20px; border-radius: var(--r-sm); background: var(--bg); }
.coach-details strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.coach-details span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------------------------------------------------------
   Pointage
   --------------------------------------------------------- */
.checkin-page { min-height: 78vh; display: grid; place-items: center; padding: 60px 20px; background: var(--bg); }
.checkin-card { width: min(520px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.checkin-logo { width: 52px; margin-bottom: 22px; }
.checkin-card h1 { margin: 16px 0 10px; font-size: clamp(26px, 4vw, 34px); }
.checkin-card > p { color: var(--muted); }
.checkin-form { display: grid; gap: 8px; margin-top: 24px; }
.checkin-form label { font-size: 14px; font-weight: 700; }
.checkin-form select { width: 100%; min-height: 50px; margin-bottom: 10px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); }
.checkin-success { display: inline-block; padding: 7px 14px; border-radius: var(--pill); background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; }

/* ---------------------------------------------------------
   Pied de page
   --------------------------------------------------------- */
.site-footer { padding: 64px max(20px, calc((100% - 1180px) / 2)) 24px; background: var(--dark); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr 1.1fr .8fr; gap: 48px; padding-bottom: 44px; }
.footer-brand { margin-bottom: 18px; }
.footer-brand .brand-copy strong { color: white; }
.footer-brand .brand-copy span { color: rgba(255, 255, 255, .55); }
.footer-intro { max-width: 340px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.footer-title { margin-bottom: 16px; color: white; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a, .footer-grid address { margin-bottom: 10px; color: rgba(255, 255, 255, .62); font-size: 14px; }
.footer-grid a:hover { color: white; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
}

/* ---------------------------------------------------------
   Apparitions au défilement
   --------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   Adaptatif
   --------------------------------------------------------- */
@media (max-width: 1050px) {
    .hero-layout { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual > img { height: 380px; }
    .hero-badge { left: 16px; }
    .proof-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .discipline-grid { grid-template-columns: repeat(2, 1fr); }
    .discipline-card:last-child { grid-column: 1 / -1; }
    .fighters-grid, .schedule-grid { grid-template-columns: repeat(2, 1fr); }
    .method-layout, .practical-layout, .contact-layout, .coach-profile, .fighter-detail-grid { gap: 40px; }
}

@media (max-width: 860px) {
    :root { --container: min(100% - 32px, 1180px); }
    .nav-shell { width: calc(100% - 32px); }
    .nav-toggle { display: block; }
    /* Le backdrop-filter de l'en-tête en fait le bloc conteneur des descendants
       positionnés : le panneau est donc ancré en absolu sous la barre, pas en fixed. */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 24px;
        background: var(--surface);
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }
    .main-nav.is-open { transform: none; }
    .main-nav > a:not(.nav-cta) { padding: 16px; border-radius: var(--r-sm); font-size: 17px; }
    .nav-cta { margin: 16px 0 0; text-align: center; padding: 15px 20px; }
    .section, .contact-section { padding: 68px 0; }
    .method-layout, .practical-layout, .contact-layout, .coach-profile, .schedule-help, .fighter-detail-grid, .split-heading, .fighter-profile-layout { grid-template-columns: 1fr; }
    .split-heading { gap: 20px; }
    .split-heading > p { max-width: none; }
    .method-image img { height: 340px; }
    .image-stamp { right: 16px; bottom: -16px; }
    .contact-card { max-width: 560px; }
    .coach-profile.is-reversed .coach-photo { order: initial; }
    .schedule-help { padding: 32px; }
    .fighter-profile-photo { max-width: 420px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 620px) {
    .hero { padding: 44px 0 64px; }
    .hero-copy > p { font-size: 16px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .hero-visual > img { height: 280px; }
    .hero-badge { position: static; max-width: none; margin-top: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
    .proof-grid, .audience-grid, .discipline-grid, .fighters-grid, .schedule-grid, .skill-board, .profile-record { grid-template-columns: 1fr; }
    .discipline-card:last-child { grid-column: auto; }
    .practical-card, .coach-profile { padding: 24px; }
    .coach-details { flex-wrap: wrap; }
    .roster-heading, .schedule-toolbar, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .fighter-photo { height: 320px; }
    .fighter-profile-photo img { height: 360px; }
    .schedule-help { padding: 24px; }
    .checkin-card { padding: 26px 22px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .js-ready .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Finition production — lisibilité, états vides et mobile
   ========================================================= */
#contact, #infos, #disciplines, #pour-qui, #schedule-help { scroll-margin-top: 96px; }

.button:active { transform: translateY(0); }
.fighter-card:focus-within,
.discipline-card:focus-within,
.day-column:focus-within { box-shadow: var(--shadow); border-color: var(--line-strong); }

.public-empty-state {
    display: grid;
    gap: 6px;
    padding: 34px 38px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r);
    background: var(--surface);
    text-align: center;
}
.public-empty-state strong { font-size: 18px; }
.public-empty-state span { color: var(--muted); font-size: 14px; }
.public-empty-state.is-warning { border-style: solid; border-color: #efd2d5; background: #fff7f7; }
.public-empty-state.is-warning strong { color: var(--brand-dark); }

.fighter-link span { transition: transform .2s ease; }
.fighter-link:hover span { transform: translateX(3px); }
.course-card { transition: transform .2s ease, background .2s ease; }
@media (hover: hover) {
    .course-card:hover { transform: translateY(-1px); background: #f7f8fa; }
}

@media (max-width: 620px) {
    :root { --container: min(100% - 24px, 1180px); }
    .nav-shell { width: calc(100% - 24px); }
    .section-heading { margin-bottom: 32px; }
    .section-heading h2 { font-size: clamp(28px, 9vw, 36px); }
    .page-hero { padding: 52px 0 46px; }
    .page-hero h1 { font-size: clamp(31px, 10vw, 40px); }
    .fighter-body { padding: 20px; }
    .fighter-photo { height: min(84vw, 340px); }
    .public-empty-state { padding: 28px 20px; text-align: left; }
    .footer-grid { gap: 26px; }
    .site-footer { padding-top: 50px; }
}

@media (max-width: 390px) {
    .brand-copy span { display: none; }
    .brand { gap: 9px; }
    .hero-copy h1 { font-size: 36px; }
}

/* =========================================================
   Réseaux combattants — bouton "Suivre" inspiré des codes
   des grandes organisations, adapté à l'identité du club.
   ========================================================= */
.fighter-card-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}
.fighter-card-actions .fighter-link {
    flex: 1 1 auto;
    min-height: 44px;
    margin-top: 0;
    padding-inline: 16px;
}
.fighter-follow {
    position: relative;
    z-index: 12;
    flex: 0 0 auto;
}

/*
 * Pont de survol invisible entre le bouton et la bulle.
 * Sans lui, les quelques pixels de séparation peuvent fermer le menu
 * avant que le curseur n'atteigne les icônes.
 */
@media (hover: hover) and (pointer: fine) {
    .fighter-follow::before {
        content: "";
        position: absolute;
        z-index: 29;
        left: -4px;
        bottom: 100%;
        width: 148px;
        height: 17px;
        background: transparent;
        pointer-events: auto;
    }
}
.fighter-follow-trigger {
    min-height: 44px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--ink);
    border-radius: var(--pill);
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.fighter-follow-trigger:hover,
.fighter-follow.is-open .fighter-follow-trigger {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.fighter-follow-trigger i {
    display: inline-block;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}
.fighter-follow.is-open .fighter-follow-trigger i,
.fighter-follow-trigger[aria-expanded="true"] i { transform: rotate(45deg); }

.fighter-follow-menu {
    position: absolute;
    z-index: 30;
    left: 0;
    bottom: calc(100% + 7px);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--pill);
    background: var(--ink);
    box-shadow: 0 14px 34px rgba(16, 22, 29, .22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(7px) scale(.98);
    transform-origin: left bottom;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.fighter-follow-menu::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 100%;
    width: 9px;
    height: 9px;
    background: var(--ink);
    transform: translateY(-5px) rotate(45deg);
}
.fighter-follow.is-open .fighter-follow-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
@media (hover: hover) {
    .fighter-follow:hover .fighter-follow-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
}
.fighter-social {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: rgba(255,255,255,.82);
    transition: color .16s ease, background .16s ease, transform .16s ease;
}
.fighter-social:hover,
.fighter-social:focus-visible {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
}
.fighter-social svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fighter-social .social-icon-fill { fill: currentColor; stroke: none; }

.fighter-follow-profile {
    width: fit-content;
    margin: -8px 0 26px;
}
.fighter-follow-profile .fighter-follow-trigger {
    min-height: 48px;
    padding-inline: 21px;
    font-size: 13px;
}
.fighter-follow-profile .fighter-follow-menu { bottom: calc(100% + 8px); }

@media (max-width: 620px) {
    .fighter-card-actions { gap: 8px; }
    .fighter-follow-trigger { padding-inline: 14px; }
    .fighter-card-actions .fighter-link { padding-inline: 14px; font-size: 13px; }
    .fighter-follow-profile { margin-bottom: 22px; }
}

/* Liens légaux du pied de page */
.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-legal-links a { color: inherit; }
.footer-legal-links a:hover { color: #fff; }
@media (max-width: 620px) {
    .footer-legal-links { justify-content: flex-start; }
}
