/* Polices hébergées sur le serveur (pas d'appel à Google Fonts : RGPD) — licence SIL OFL, voir fonts/ */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/montserrat-latin.woff') format('woff'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 700; font-display: swap; src: url('fonts/playfair-italic-700-latin.woff') format('woff'); }

/* ACDMP Coaching — charte de acotedemespompes.fr : bleu marine, rouge, crème.
   Montserrat (titres en 900, majuscules) + Playfair Display italique pour les accents. Mobile d'abord. */
:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2236;
  --navy-soft: #e4ebf3;
  --red: #c8253a;
  --red-dark: #9e1c2d;
  --red-soft: #fbe5e8;
  --gold: #c9a84c;
  --gold-soft: #f6eedb;
  --gold-ink: #6b5418;
  --ink: #1a1a1a;
  --ink-2: #3a3a3a;
  --muted: #555555;
  --line: #e8e8e8;
  --field: #c9c6c0;
  --ground: #f7f5f2;
  --card: #ffffff;
  --radius: 10px;
  --display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
a { color: var(--navy); }
a:hover { color: var(--red); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; }
h1 { font-size: 30px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
h2 { font-size: 19px; font-weight: 800; color: var(--navy); }
h1 em, h2 em, .accent { font-family: var(--accent); font-style: italic; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--red); }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Barre du haut (blanche, comme le site) */
.topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 960px; margin: 0 auto; padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 6px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: .08em; font-size: 12px; margin-right: auto; text-transform: uppercase; min-width: 0; }
.brand:hover { color: var(--navy); }
.brand img { height: 48px; width: auto; display: block; }
.brand .short { display: none; }
@media (max-width: 479px) {
  .brand .long { display: none; }
  .brand .short { display: inline; }
  .brand.has-logo .short { display: none; }
}
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--ground); color: var(--red); }
.icon-btn svg { width: 22px; height: 22px; }
.ido-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; white-space: nowrap; margin-right: 4px; }
.ido-btn:hover { background: var(--red-dark); color: #fff; }
.ido-btn svg { width: 15px; height: 15px; }
.topnav { display: none; }

/* Zone de contenu */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 0 110px; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 10px 20px 28px; display: flex; flex-direction: column; gap: 8px; }
.hero h1 { color: #fff; }
.hero .sub { color: rgba(255, 255, 255, .78); font-size: 14px; }
.hero a.back { color: #fff; }
.hero a { color: #fff; }
.hero select { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero select option { color: var(--ink); }
.hero .field label { color: rgba(255, 255, 255, .78); font-size: 13px; }
.page-head { padding: 24px 20px 6px; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { color: var(--navy); }
.section { padding: 0 20px; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hint { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--red); text-transform: uppercase; }

.card { background: var(--card); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(15, 34, 54, .06); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card.sky { background: var(--gold-soft); box-shadow: inset 4px 0 0 var(--gold); }
.card.sky h2 { color: var(--navy); }
.card.outline-red { box-shadow: inset 0 0 0 2px var(--red); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 20px 0; }
.kpi { text-decoration: none; color: var(--navy); background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(15, 34, 54, .06); }
.kpi:hover { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.kpi b { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.sky { background: var(--gold); color: var(--navy-dark); }
.kpi.sky span { color: var(--navy-dark); }
.kpi.dark { background: var(--navy); color: #fff; }
.kpi.dark span { color: rgba(255, 255, 255, .82); }
.kpi.dark:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.kpi.red { box-shadow: inset 0 0 0 2px var(--red); }
.kpi.red b { color: var(--red); }

/* Lignes cliquables */
.row-link { text-decoration: none; color: var(--ink); background: var(--card); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; min-height: 64px; box-shadow: 0 1px 2px rgba(15, 34, 54, .06); }
.row-link:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--navy); }
.row-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.row-main strong { font-weight: 700; color: var(--navy); }
.row-main .hint { overflow-wrap: anywhere; }
.row-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.row-top strong { color: var(--navy); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar.dark { background: var(--navy); color: #fff; }
.avatar.big { width: 56px; height: 56px; font-size: 18px; background: #fff; color: var(--navy); font-weight: 800; }

.list-card { background: var(--card); border-radius: var(--radius); padding: 4px 16px; box-shadow: 0 1px 2px rgba(15, 34, 54, .06); }
.list-card > div, .list-card > a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-card > :last-child { border-bottom: 0; }
.list-card > a { color: var(--ink); text-decoration: none; min-height: 48px; align-items: center; }
.list-card > a:hover { color: var(--red); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 3px; white-space: nowrap; display: inline-block; letter-spacing: .04em; }
.chip-blue { background: var(--navy-soft); color: var(--navy); }
.chip-light { background: var(--gold-soft); color: var(--gold-ink); }
.chip-dark { background: var(--navy); color: #fff; }
.chip-red { background: var(--red-soft); color: var(--red-dark); }
.chip-grey { background: #efedea; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact span:first-child { font-size: 12px; color: var(--muted); }
.fact span:last-child { font-weight: 600; overflow-wrap: anywhere; }
.fact.wide { grid-column: 1 / -1; }
.fact.plain span:last-child { font-weight: 400; white-space: pre-line; }
.big-date { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.1; color: var(--navy); text-transform: uppercase; letter-spacing: -0.01em; }

/* Formulaires */
form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; min-width: 0; height: 48px; border-radius: 6px; border: 1px solid var(--field); background: #fff; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink);
}
textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--red); }
.check label { font-size: 13px; color: var(--ink-2); }
.note-box { background: var(--ground); border-radius: 6px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.card .note-box { background: var(--ground); }

/* Boutons : rouge plein comme les appels à l'action du site */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 18px; text-align: center; line-height: 1.25; border-radius: 4px; border: 1px solid var(--red); background: var(--red); color: #fff; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; width: 100%; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.sky { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.sky:hover { background: var(--navy-dark); color: #fff; }
.hero .btn.sky { background: #fff; border-color: #fff; color: var(--navy); }
.hero .btn.sky:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.btn.small { min-height: 44px; font-size: 12px; padding: 6px 8px; white-space: nowrap; letter-spacing: .04em; }
.btn.danger { background: #fff; color: var(--red-dark); border-color: var(--red); }
.btn.danger:hover { background: var(--red-soft); color: var(--red-dark); }
.btn svg { width: 17px; height: 17px; }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn-row.one-two { grid-template-columns: 1fr 2fr; }

/* Pastilles de filtre */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.pill:hover { color: var(--navy); border-color: var(--navy); }
.pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Formules (inscription) */
.formula { position: relative; display: block; cursor: pointer; }
.formula input { position: absolute; opacity: 0; pointer-events: none; }
.formula .box { border-radius: var(--radius); border: 1px solid var(--field); background: #fff; padding: 17px; display: flex; flex-direction: column; gap: 6px; }
.formula .box .top { display: flex; justify-content: space-between; gap: 10px; color: var(--navy); }
.formula .box .name { font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1.1; text-transform: uppercase; color: var(--navy); }
.formula .box .desc { font-size: 13px; color: var(--muted); }
.formula input:checked + .box { border: 2px solid var(--red); background: #fff; padding: 16px; box-shadow: 0 4px 14px rgba(200, 37, 58, .12); }
.formula input:checked + .box .name { color: var(--red); }
.formula input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Jours (onboarding) */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span { height: 48px; border-radius: 6px; border: 1px solid var(--field); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
.day input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.day input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.progress { height: 6px; border-radius: 3px; background: #e6e3de; overflow: hidden; }
.progress div { height: 6px; background: var(--red); }
.sticky-actions { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 14px 20px 18px; margin-top: 24px; }
body.athlete .sticky-actions { bottom: 76px; }

/* Messages */
.flashes { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.flash { border-radius: 6px; padding: 12px 14px; font-size: 14px; }
.flash.ok { background: var(--navy-soft); color: var(--navy); }
.flash.error { background: var(--red-soft); color: var(--red-dark); }

/* Barre d'onglets */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: 76px; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(var(--tabs, 3), minmax(0, 1fr)); z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; line-height: 1.15; padding: 0 2px; font-weight: 600; text-align: center; }
.tabbar a.on { color: var(--red); }
.tabbar a.ext { color: var(--navy); }
.tabbar svg { width: 22px; height: 22px; }

/* Pages publiques */
.public-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 28px 20px 30px; display: flex; flex-direction: column; gap: 12px; }
.public-hero .tag { align-self: flex-start; font-weight: 700; font-size: 10px; letter-spacing: .16em; padding: 6px 12px; border: 1px solid rgba(200, 37, 58, .7); color: #fff; background: rgba(200, 37, 58, .18); }
.public-hero img.logo { height: 76px; width: 76px; object-fit: contain; align-self: flex-start; background: #fff; border-radius: 50%; padding: 6px; }
.public-hero h1 { font-size: 34px; color: #fff; }
.public-hero p { color: rgba(255, 255, 255, .8); font-size: 14px; }
.public-wrap { max-width: 520px; margin: 0 auto; background: #fff; min-height: 100vh; padding-bottom: 32px; }
.public-wrap .section { margin-top: 24px; }
.center { text-align: center; }
details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--navy); }

/* Grand écran : barre d'onglets en haut, contenu plus large */
@media (min-width: 900px) {
  .tabbar { display: none; }
  .topnav { display: flex; gap: 2px; margin-right: 8px; }
  .topnav a { color: var(--ink); text-decoration: none; padding: 10px 12px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent; }
  .topnav a:hover { color: var(--red); }
  .topnav a.on { color: var(--red); border-bottom-color: var(--red); }
  .wrap { padding-bottom: 48px; }
  body.athlete .sticky-actions { bottom: 0; }
  .hero { border-radius: 0 0 var(--radius) var(--radius); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .public-wrap { margin-top: 32px; min-height: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(15, 34, 54, .12); }
}

/* Ressources */
[hidden] { display: none !important; }
.resource { gap: 10px; }
.resource-title { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.resource .btn.small { align-self: flex-start; width: auto; padding: 6px 14px; }
.resource-meta { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.resource-meta a { font-weight: 700; white-space: nowrap; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--navy-dark); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb, .cover-link { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); display: block; }
.video-thumb img, .cover-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-thumb-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px 16px; color: #fff; font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1.15; text-transform: uppercase; text-align: left; }
.video-play { position: absolute; left: 50%; top: 44%; z-index: 2; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.video-play svg { margin-left: 3px; }
.video-thumb:hover .video-play, .cover-link:hover .video-play, .video-thumb:focus-visible .video-play { transform: scale(1.08); }
.video-thumb:focus-visible, .cover-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.video-thumb::after, .cover-link::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.25) 100%); pointer-events: none; }
.seg { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.seg legend { padding: 0; margin-bottom: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--field); border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; background: #fff; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Barre du haut sur ordinateur : menu sur une ligne */
@media (min-width: 900px) {
  .topbar-inner { max-width: 1120px; }
  .topnav a { white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .brand .long { display: none; }
  .brand.has-logo .short { display: none; }
  .brand:not(.has-logo) .short { display: inline; }
}

/* Objectifs */
.goal { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.goal-race { color: var(--navy); font-size: 16px; font-weight: 800; }
.goal.main { background: var(--red-soft); border-top: 0; border-left: 4px solid var(--red); border-radius: 6px; padding: 12px 14px; margin-top: 4px; }
.goal.main + .goal { border-top: 0; }
.goal.main .goal-race { color: var(--red-dark); }
.goal.main .goal-race::before { content: "★ "; color: var(--red); }
.goal.main .goal-meta { color: var(--red-dark); }
.goal.main .chip-red { background: #fff; }
.goal:first-of-type { border-top: 0; }
.goal.past .goal-race { color: var(--muted); }
.goal-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.goal-add { border-top: 1px solid var(--line); padding-top: 4px; }

/* Prix remisé adhérent */
.price-final { font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-old { color: var(--muted); font-weight: 400; white-space: nowrap; }
.price-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 3px; background: var(--red); color: #fff; white-space: nowrap; vertical-align: 1px; }
.member-prices > div { gap: 6px 12px; }
.fact .price-old { font-weight: 400; }

/* ---------- Objectif principal (accueil) ---------- */
.goal-hero { display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 16px; background: var(--red-soft); border-left: 5px solid var(--red); border-radius: var(--radius); text-decoration: none; color: var(--red-dark); box-shadow: 0 2px 10px rgba(200, 37, 58, .08); }
.goal-hero:hover { color: var(--red-dark); box-shadow: 0 4px 16px rgba(200, 37, 58, .16); }
.goal-hero-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.goal-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.goal-hero .eyebrow svg { fill: var(--red); stroke: var(--red); }
.goal-hero-race { font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1.15; color: var(--navy); letter-spacing: .01em; overflow-wrap: anywhere; }
.goal-hero-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--red-dark); }
.goal-hero-meta strong { font-weight: 800; }
.goal-hero-count { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 86px; padding: 10px 8px; background: #fff; border-radius: 8px; text-align: center; flex-shrink: 0; }
.goal-hero-count b { font-family: "Montserrat", system-ui, sans-serif; font-style: normal; font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -.01em; color: var(--red); font-variant-numeric: tabular-nums; }
.goal-hero-count small { font-size: 11px; color: var(--red-dark); margin-top: 4px; line-height: 1.2; }
.goal-hero.empty .goal-hero-race { font-size: 17px; }

/* ---------- Ressources par type ---------- */
.kind-nav { display: flex; gap: 8px; overflow-x: auto; padding: 16px 20px 0; scrollbar-width: none; }
.kind-nav::-webkit-scrollbar { display: none; }
.kind-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap; }
.kind-nav a b { font-size: 11px; background: var(--ground); border-radius: 999px; padding: 1px 7px; color: var(--ink-2); }
.kind-nav a:hover { border-color: var(--red); color: var(--red); }
.kind-nav .dot { position: absolute; top: -2px; right: -2px; }
.kind-section { scroll-margin-top: 80px; }
.kind-title { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.kind-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; flex-shrink: 0; }
.kind-icon svg { width: 20px; height: 20px; }
.kind-icon.kind-pdf { background: var(--red); }
.kind-icon.kind-video { background: var(--navy); }
.kind-icon.kind-audio { background: var(--gold); color: var(--navy-dark); }
.kind-icon.kind-link { background: var(--navy-soft); color: var(--navy); }
.audio-frame { width: 100%; border: 0; border-radius: 12px; display: block; }
.audio-file { width: 100%; }
.podcast-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.podcast-card .resource-title { color: #fff; }
.podcast-card .eyebrow { color: #f3a6b0; margin-bottom: 4px; }
.podcast-card .resource-meta { border-top-color: rgba(255, 255, 255, .2); }
.podcast-card .resource-meta .hint, .podcast-card .resource-meta a { color: rgba(255, 255, 255, .8); }
.pod-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pod-links a { color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pod-links a:hover { color: var(--gold); }
.pod-links svg { width: 14px; height: 14px; }

/* ---------- Nouveautés ---------- */
.chip-new { background: var(--red); color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.resource.is-new { box-shadow: inset 0 0 0 2px var(--red), 0 4px 14px rgba(200, 37, 58, .12); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(200, 37, 58, .5); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 37, 58, .5); } 70% { box-shadow: 0 0 0 8px rgba(200, 37, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 37, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.new-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 2px var(--red); color: var(--navy); text-decoration: none; font-size: 14px; line-height: 1.35; }
.new-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.new-banner strong { color: var(--red); }
a.new-banner:hover { color: var(--navy); background: var(--red-soft); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: 0; margin-left: 6px; vertical-align: 2px; }
.tab-ic { position: relative; display: inline-flex; }
.tab-ic .badge { position: absolute; top: -6px; right: -12px; margin: 0; border: 2px solid #fff; height: 20px; }

/* ---------- Prestation offerte aux adhérents ---------- */
.chip-offert { background: var(--gold-soft); color: var(--gold-ink); }
.price-offert { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); padding: 2px 8px; border-radius: 3px; color: var(--navy-dark); }
.resource .card-head { flex-wrap: wrap; row-gap: 6px; }
.resource .resource-title { flex: 1 1 180px; min-width: 0; }

/* ---------- Revenir au site (pages publiques) ---------- */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-top img.logo { display: block; }
.back-site { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.back-site:hover { background: #fff; color: var(--navy) !important; }
.back-site-foot { margin-top: 28px; }
.back-site-foot a { color: var(--navy); font-weight: 700; }

/* code postal étroit, ville large */
.grid-2.cp-city { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

/* ---------- Athlètes : liste / tableau ---------- */
.view-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.view-switch { display: inline-flex; background: #efedea; border-radius: 8px; padding: 3px; }
.view-switch a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 13px; }
.view-switch a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15, 34, 54, .15); }
.export-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; }
.export-link:hover { color: var(--red); }
.table-zone { margin-top: 14px; width: min(1180px, calc(100vw - 24px)); margin-left: calc(50% - min(590px, 50vw - 12px)); }
.table-help { padding: 0 8px 8px; }
.table-scroll { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(15, 34, 54, .08); }
.athletes-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.athletes-table th, .athletes-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; }
.athletes-table tbody tr:last-child > * { border-bottom: 0; }
.athletes-table thead th { position: sticky; top: 0; background: var(--navy); color: #fff; z-index: 2; padding: 0; }
.athletes-table thead th button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.athletes-table thead th button::after { content: "↕"; opacity: .35; font-size: 11px; }
.athletes-table thead th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; color: #f3a6b0; }
.athletes-table thead th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; color: #f3a6b0; }
.athletes-table thead th button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.athletes-table thead th:first-child { left: 0; z-index: 3; border-top-left-radius: var(--radius); }
.athletes-table tbody th { position: sticky; left: 0; background: var(--card); z-index: 1; font-weight: 400; box-shadow: 1px 0 0 var(--line); }
.athletes-table tbody th a { color: var(--navy); font-weight: 800; text-decoration: none; }
.athletes-table tbody th a:hover { color: var(--red); }
.athletes-table tbody tr:hover > * { background: #faf8f5; }
.athletes-table .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.athletes-table .muted { color: var(--muted); }
.athletes-table .num { text-align: right; }
.athletes-table .num button { justify-content: flex-end; }
.athletes-table td a { color: var(--navy); }
.dotlabel::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); vertical-align: 1px; }
.dotlabel.st-active::before { background: #2e9e5b; }
.dotlabel.st-pending::before { background: var(--gold); }
.dotlabel.st-onboarding::before { background: #9aa6b2; }
.dotlabel.st-paused::before, .dotlabel.st-ended::before, .dotlabel.st-refused::before { background: #c9c4bd; }
.tag-ok { color: var(--ink); }
.tag-soon { color: #8a5a00; background: var(--gold-soft); padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.tag-late { color: var(--red-dark); background: var(--red-soft); padding: 2px 6px; border-radius: 3px; font-weight: 700; }

.athletes-table td.wrap-cell { white-space: normal; min-width: 170px; max-width: 220px; }
.athletes-table th[scope=row] .sub { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.athletes-table thead tr { background: var(--navy); }
.athletes-table thead th { box-shadow: 1px 0 0 var(--navy); }

/* ---------- Courses du club ---------- */
.race-card { display: flex; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(15, 34, 54, .06); }
.race-card.going { box-shadow: inset 4px 0 0 #2e9e5b, 0 1px 2px rgba(15, 34, 54, .06); }
.race-card.is-new { box-shadow: inset 0 0 0 2px var(--red), 0 4px 14px rgba(200, 37, 58, .12); }
.race-date { flex-shrink: 0; width: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: var(--navy); color: #fff; border-radius: 8px; padding: 8px 4px; text-decoration: none; align-self: flex-start; }
.race-date b { font-size: 24px; font-weight: 900; line-height: 1; }
.race-date span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.race-date small { font-size: 10px; opacity: .7; }
.race-date.small { width: 46px; padding: 6px 2px; }
.race-date.small b { font-size: 18px; }
.race-date:hover { color: #fff; }
.race-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.race-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.race-title { font-weight: 800; font-size: 16px; color: var(--navy); text-decoration: none; line-height: 1.25; }
.race-title:hover { color: var(--red); }
.race-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--ink-2); margin: 0; }
.race-people { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; color: var(--ink-2); }
.faces { display: inline-flex; }
.face { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-size: 10px; letter-spacing: -.02em; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; flex-shrink: 0; }
.faces .face + .face { margin-left: -8px; }
.face.coach { background: var(--red); color: #fff; }
.race-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.race-actions .btn.small, .race-actions form .btn { width: auto; min-height: 38px; padding: 6px 16px; }
.going-label { display: inline-flex; align-items: center; gap: 6px; color: #2e7d4f; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.going-label svg { width: 18px; height: 18px; }
.race-hero .race-when { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f3a6b0; }
.race-hero h1 { font-size: 28px; }
.going-card { box-shadow: inset 4px 0 0 #2e9e5b; }
.going-title { display: flex; align-items: center; gap: 8px; color: #2e7d4f; font-size: 18px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form .btn { width: auto; }
.inline-form select { width: auto; height: 40px; }
.inline-select { display: inline-block; width: auto; height: 32px; padding: 0 6px; margin-left: 4px; font: inherit; font-size: 14px; }
.dist-pick { border: 0; margin: 0; padding: 0; }
.dist-pick legend { margin-bottom: 6px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer; }
.pick input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.people li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rides { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rides li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.ride-main strong { color: var(--navy); }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; align-self: flex-start; }
.linkish:hover { color: var(--red); }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comments li { display: flex; gap: 10px; align-items: flex-start; }
.comments li > div { background: #f4f2ef; border-radius: 4px 12px 12px 12px; padding: 8px 12px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.comments li.mine > div { background: var(--navy-soft); }
.comments p { margin: 0; font-size: 14px; }
.comment-head { font-size: 13px; }
.comment-head strong { color: var(--navy); }
.club-races { gap: 10px; }
.mini-race { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 6px 0; border-top: 1px solid var(--line); }
.mini-race:first-of-type { border-top: 0; }
.mini-race:hover strong { color: var(--red); }
.mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-body strong { color: var(--navy); }
.club-races .btn.small { align-self: flex-start; width: auto; }

/* ---------- Courses : vue calendrier ---------- */
.period-links { display: inline-flex; gap: 14px; }
.period-links a { color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.period-links a.on { color: var(--navy); border-bottom-color: var(--red); }
.cal-card { gap: 8px; padding: 14px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.cal-today-link { text-align: center; color: var(--navy); font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-wd { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 54px; border-radius: 6px; background: #faf8f5; padding: 4px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); min-width: 0; }
.cal-cell.out { background: transparent; }
.cal-cell.past { opacity: .55; }
.cal-num { font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--red); background: #fff; }
.cal-cell.today .cal-num { color: var(--red); }
.cal-cell.has { background: var(--navy-soft); }
.cal-cell.has:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.cal-cell.going { background: #e3f3ea; }
.cal-events { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-ev { display: flex; align-items: center; gap: 3px; background: var(--navy); color: #fff; border-radius: 3px; padding: 2px 4px; font-size: 10px; font-weight: 700; line-height: 1.2; min-width: 0; }
.cal-ev.going { background: #2e9e5b; }
.ev-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.ev-n { flex-shrink: 0; background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 0 4px; font-size: 9px; }
.cal-more { font-size: 10px; font-weight: 700; color: var(--navy); }
.cal-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 4px 0; font-size: 12px; }
.cal-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.cal-legend .lg:first-child { margin-left: 0; }
.cal-legend .lg.club { background: var(--navy); }
.cal-legend .lg.going { background: #2e9e5b; }
.cal-legend .lg.n { width: auto; height: auto; padding: 0 5px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 10px; font-weight: 700; }
.race-card { scroll-margin-top: 80px; }
@media (max-width: 520px) {
  .cal-cell { min-height: 46px; padding: 3px; }
  .ev-title { display: none; }
  .cal-ev { justify-content: center; padding: 3px 2px; min-height: 12px; }
  .ev-n { background: transparent; font-size: 10px; padding: 0; }
}
@media (min-width: 900px) {
  .cal-cell { min-height: 84px; padding: 6px; }
  .cal-ev { font-size: 11px; padding: 3px 6px; }
}

@media (min-width: 900px) {
  .cal-zone { width: min(1100px, calc(100vw - 48px)); margin-left: calc(50% - min(550px, 50vw - 24px)); padding: 0; }
  .cal-cell { min-height: 96px; }
  .ev-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cal-ev { align-items: flex-start; }
}

/* ---------- Bouton calculateur d'allures (ressources) ---------- */
.tool-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--red), 0 2px 10px rgba(200, 37, 58, .08); }
.tool-card:hover { color: var(--ink); background: var(--red-soft); }
.tool-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-ic svg { width: 28px; height: 28px; }
.tool-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tool-txt strong { color: var(--navy); font-weight: 900; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; }
.tool-txt span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.tool-go { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border-radius: 4px; }
.tool-go svg { width: 14px; height: 14px; }
@media (max-width: 420px) { .tool-go { padding: 10px; font-size: 0; gap: 0; } .tool-go svg { width: 18px; height: 18px; } }

.chip-patreon { background: #fde8dc; color: #9a3412; }

/* ---------- Statistiques des ressources (coach) ---------- */
.res-stats { font-size: 13px; }
.res-stats summary { min-height: 32px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.res-stats summary strong { color: var(--navy); }
.res-stats .viewers { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.res-stats .viewers li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.on-dark .res-stats summary, .on-dark .res-stats summary strong, .on-dark .res-stats .viewers li, .on-dark .res-stats .hint { color: rgba(255, 255, 255, .85); }
.on-dark .res-stats .viewers li { border-top-color: rgba(255, 255, 255, .15); }

.top-res { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.top-res li { padding-left: 4px; }
.top-res li > span { display: inline-flex; width: calc(100% - 4px); justify-content: space-between; gap: 10px; vertical-align: top; }
.top-res strong { color: var(--navy); }
.top-res b { color: var(--red); }

/* ---------- Partenaires & santé ---------- */
.partners-card { box-shadow: inset 0 0 0 2px var(--navy), 0 2px 10px rgba(15, 34, 54, .08); }
.partners-card:hover { background: var(--navy-soft); }
.partners-card .tool-ic, .partners-card .tool-go { background: var(--navy); }
.partner { gap: 10px; }
.partner.expired { opacity: .6; }
.partner-head { display: flex; align-items: center; gap: 12px; }
.partner-logo { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 900; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .02em; }
.partner-logo.health { background: #2e9e5b; border-radius: 50%; }
.partner-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.partner-id h3 { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.offer-badge { flex-shrink: 0; background: var(--red); color: #fff; font-weight: 900; font-size: 16px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.promo { display: flex; align-items: center; gap: 10px; border: 2px dashed var(--red); border-radius: 8px; padding: 8px 8px 8px 12px; background: var(--red-soft); }
.promo-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); }
.promo-code { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: .06em; overflow-wrap: anywhere; }
.promo .btn.small { width: auto; min-height: 38px; padding: 6px 14px; }
.perk { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; color: #2e7d4f; }
.perk svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list svg { width: 18px; height: 18px; color: var(--navy); flex-shrink: 0; }
.contact-list a { color: var(--navy); }
.partner-admin { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.partner-admin .hint { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.partner-admin a { font-weight: 700; white-space: nowrap; }
.spec-filter .pill { cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.spec-group { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Partenaires : logos et mosaïque ---------- */
.partner-logo.img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; padding: 4px; }
.partner-logo.img img { width: 100%; height: 100%; object-fit: contain; }
.partner { scroll-margin-top: 80px; }
.partner:target { box-shadow: inset 0 0 0 2px var(--red), 0 4px 14px rgba(200, 37, 58, .12); }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; background: var(--card); border-radius: var(--radius); text-decoration: none; color: var(--navy); box-shadow: 0 1px 3px rgba(15, 34, 54, .08); text-align: center; min-width: 0; }
.tile:hover { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); transform: translateY(-1px); }
.tile-img { width: 100%; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; }
.tile-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tile-initials { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 900; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.tile.health .tile-initials { background: #2e9e5b; border-radius: 50%; }
.tile-name { font-size: 12px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; }
.tile-badge { position: absolute; top: 6px; right: 6px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 900; padding: 2px 6px; border-radius: 4px; }
.tile-badge.spec { position: static; background: #e3f3ea; color: #2e7d4f; font-weight: 700; font-size: 10px; }
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-preview { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; padding: 4px; flex-shrink: 0; }
.tile { padding-top: 26px; }
.tile-img { aspect-ratio: auto; height: 60px; }
.tile-img img { max-height: 60px; }
@media (min-width: 900px) { .tile-img { height: 76px; } .tile-img img { max-height: 76px; } }

.view-switch.big { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.view-switch.big a { justify-content: center; height: 44px; font-size: 13px; text-align: center; }
.view-switch.big a b { font-size: 11px; background: rgba(15, 34, 54, .08); border-radius: 999px; padding: 1px 7px; }
.partner-links { display: grid; gap: 10px; }
@media (min-width: 600px) { .partner-links { grid-template-columns: 1fr 1fr; } }
.health-card { box-shadow: inset 0 0 0 2px #2e9e5b, 0 2px 10px rgba(46, 158, 91, .1); }
.health-card:hover { background: #e3f3ea; }
.health-card .tool-ic, .health-card .tool-go { background: #2e9e5b; }
@media (max-width: 420px) { .view-switch.big a { font-size: 12px; padding: 0 6px; gap: 4px; } .view-switch.big a svg { display: none; } }

/* ---------- Objectifs ↔ calendrier du club ---------- */
.club-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12.5px; font-weight: 700; color: #2e7d4f; background: #e3f3ea; padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.club-link:hover { color: #1f5c39; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; font-size: 13px; text-decoration: none; border: 1px dashed var(--navy); border-radius: 999px; padding: 4px 10px; }
.share-btn:hover { color: var(--red); border-color: var(--red); }
.goal.main .share-btn { background: #fff; }

/* ---------- Partage ---------- */
.card-actions { display: flex; justify-content: flex-end; }
.share-trigger { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.share-trigger:hover { border-color: var(--navy); color: var(--red); }
.share-trigger.on-hero { align-self: flex-start; color: #fff; border-color: rgba(255, 255, 255, .4); margin-top: 4px; }
.share-trigger.on-hero:hover { background: #fff; color: var(--navy); }
.share-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(15, 34, 54, .55); display: flex; align-items: flex-end; justify-content: center; }
.share-sheet[hidden] { display: none; }
.share-box { background: #fff; width: min(520px, 100%); border-radius: 16px 16px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 600px) { .share-sheet { align-items: center; } .share-box { border-radius: 16px; } }
.share-preview { white-space: pre-line; font-size: 13px; color: var(--ink-2); background: var(--cream, #f7f5f2); border-radius: 8px; padding: 10px 12px; max-height: 180px; overflow: auto; margin: 0; overflow-wrap: anywhere; }
.share-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-opt { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.share-opt:hover { border-color: var(--navy); color: var(--navy); }
.share-opt.wa { background: #25d366; border-color: #25d366; color: #fff; }

/* ---------- Page publique « Nos partenaires » ---------- */
.public-wrap.wide { max-width: 1040px; }
.public-wrap.wide .public-hero { padding-left: 24px; padding-right: 24px; }
.pub-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 20px 0; align-items: center; }
.pub-nav a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 13px; text-decoration: none; background: #fff; }
.pub-nav a b { font-size: 11px; background: var(--ground, #f4f2ef); border-radius: 999px; padding: 1px 7px; }
.pub-nav a:hover { border-color: var(--navy); }
.pub-nav .share-trigger { margin-left: auto; height: 40px; }
.pub-section { margin-top: 28px; scroll-margin-top: 12px; }
.pub-head { display: flex; gap: 12px; align-items: flex-start; }
.pub-head h2 { font-size: 22px; }
.pub-head p { margin: 4px 0 0; }
.pub-ic { width: 40px; height: 40px; flex-shrink: 0; background: var(--navy); }
.pub-ic.health { background: #2e9e5b; }
.pub-spec { margin: 10px 0 0; }
.pub-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .pub-grid { grid-template-columns: 1fr 1fr; } }
.pub-grid .partner { box-shadow: 0 1px 3px rgba(15, 34, 54, .1); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.pub-actions .btn { width: auto; }
.pub-actions .share-trigger { margin-left: auto; }
.promo.locked { border-style: solid; border-color: var(--line); background: #faf8f5; }
.promo.locked .lock { font-size: 18px; }
.promo.locked .promo-txt { flex: 1; font-weight: 700; color: var(--navy); font-size: 14px; }
.join-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.join-card h2 { color: #fff; }
.join-card p { color: rgba(255, 255, 255, .85); }
.join-card .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.share-opt.fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.public-wrap .partner[id]:target { box-shadow: inset 0 0 0 2px var(--red), 0 4px 14px rgba(200, 37, 58, .12); }
@media (min-width: 900px) { .public-wrap.wide .section { padding: 0 28px; } .public-wrap.wide .pub-nav { padding: 22px 28px 0; } }

.public-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ink-2); background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; }
.public-link span { display: inline-flex; align-items: center; gap: 6px; }
.public-link a { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Boutique (commandes groupées) ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hero-actions .btn { width: auto; }
.shop-state { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.shop-state .dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b2; }
.shop-state.on { background: rgba(46, 158, 91, .2); color: #fff; }
.shop-state.on .dot { background: #4cd387; box-shadow: 0 0 0 3px rgba(76, 211, 135, .25); }
.shop-how ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; scroll-margin-top: 80px; }
.product.just-added { box-shadow: 0 0 0 2px var(--green, #2e9e5b); }
.product-img { position: relative; background: #eef0f3; aspect-ratio: 4 / 4.2; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-cut { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; box-shadow: 0 1px 3px rgba(15, 34, 54, .12); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-title h3 { font-size: 17px; line-height: 1.25; color: var(--navy); margin: 0; }
.product-model { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--red); margin-top: 3px; }
.product-price { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; text-align: right; }
.product-price b { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--navy); line-height: 1; }
.product-price s { color: var(--muted); font-size: 13px; }
.product-price small { font-size: 11px; font-weight: 700; color: var(--red-dark); }
.product-views summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy); }
.product-views img { width: 100%; margin-top: 8px; border-radius: 8px; background: #eef0f3; }
.product-form { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.size-pick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.size-pick legend { padding: 0; margin-bottom: 6px; }
.size-pick label { position: relative; }
.size-pick input { position: absolute; opacity: 0; pointer-events: none; }
.size-pick span { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px solid var(--field); border-radius: 6px; font-weight: 800; font-size: 13px; color: var(--navy); cursor: pointer; background: #fff; }
.size-pick input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.size-pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.product-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.qty { display: flex; align-items: stretch; border: 1px solid var(--field); border-radius: 6px; overflow: hidden; background: #fff; }
.qty input { width: 44px; height: 50px; border: 0; border-radius: 0; text-align: center; padding: 0; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 40px; border: 0; background: #f4f2ef; color: var(--navy); font-size: 20px; font-weight: 700; cursor: pointer; }
.qty-btn:hover { background: var(--navy-soft); }
.cart { scroll-margin-top: 80px; }
.cart-lines { display: flex; flex-direction: column; }
.cart-line, .product-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line img, .product-row img { width: 52px; height: 56px; object-fit: contain; background: #eef0f3; border-radius: 6px; mix-blend-mode: multiply; }
.cart-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-txt strong { color: var(--navy); font-size: 14px; }
.cart-qty { width: 58px; height: 40px; text-align: center; padding: 0 4px; font-weight: 800; }
.cart-sub { font-weight: 800; color: var(--navy); min-width: 52px; text-align: right; }
.cart-del { width: 36px; height: 36px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-weight: 700; color: var(--navy); }
.cart-total b { font-family: var(--display); font-weight: 900; font-size: 28px; }
.cart-submit { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 9; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 34, 54, .3); font-size: 14px; }
.cart-bar:hover { color: #fff; }
.cart-bar .go { margin-left: auto; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
body.athlete .wrap:has(.cart-bar), body.coach .wrap:has(.cart-bar) { padding-bottom: 170px; }
@media (min-width: 900px) { .cart-bar { left: auto; right: 24px; bottom: 24px; width: 340px; } }
.order { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.order.cancelled { opacity: .6; }
.order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--navy); }
.order-foot b { font-family: var(--display); font-weight: 900; font-size: 20px; }
.order-status select { height: 40px; width: auto; font-size: 14px; }
.order-note { font-style: italic; }
.shop-settings summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; }
.kpi b small { font-size: 18px; margin-left: 2px; }
.product-row { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 10px 14px; border-bottom: 0; margin-bottom: 10px; }
.product-row.off { opacity: .55; }
.supplier-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.supplier-table th, .supplier-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.supplier-table th[scope="row"] { text-align: left; color: var(--navy); }
.supplier-table td { color: var(--muted); }
.supplier-table td.has { color: var(--navy); font-weight: 800; background: var(--navy-soft); }
.supplier-table tfoot th, .supplier-table tfoot td { font-weight: 800; color: var(--navy); border-bottom: 0; }
.table-card { display: flex; flex-direction: column; gap: 8px; }
.table-card .table-scroll { box-shadow: none; }
.logo-preview.wide { width: 100%; height: 90px; }
.size-pick.multi { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.shop-banner { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 10px 14px 10px 10px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--red), 0 1px 2px rgba(15, 34, 54, .06); }
.shop-banner img { width: 64px; height: 68px; object-fit: contain; background: #eef0f3; border-radius: 8px; mix-blend-mode: multiply; }
.shop-banner-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-banner-txt strong { color: var(--navy); font-size: 16px; }
.shop-banner .shop-go { color: var(--red); display: flex; }
.shop-banner .shop-go svg { width: 22px; height: 22px; }
.cart-line { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; }
.cart-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.cart-qty-l { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.cart-line input.cart-qty { width: 64px; height: 40px; text-align: center; padding: 0 4px; font-weight: 800; }
.cart-sub { font-size: 16px; }
.cart-bar { transition: opacity .2s, transform .2s; }
.cart-bar.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }
.added-note { margin: 0; color: #1f7a45; font-weight: 700; font-size: 14px; background: #e6f5ec; padding: 8px 12px; border-radius: 6px; }
.added-note a { color: #1f7a45; }
.order-items li span:last-child { white-space: nowrap; font-weight: 700; color: var(--navy); }
.supplier-table th[scope="row"], .supplier-table thead th:first-child { white-space: normal; min-width: 130px; max-width: 170px; text-align: left; font-size: 13px; line-height: 1.3; }
.supplier-table th, .supplier-table td { padding: 8px 6px; }
.supplier-table td, .supplier-table thead th { min-width: 30px; }
@media (min-width: 720px) { .size-pick { gap: 5px; } .size-pick span { font-size: 12px; } .product-title h3 { font-size: 16px; } }

/* ---------- Coaching personnalisé (Mon espace) ---------- */
.coaching-offer { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; }
.co-intro { display: flex; flex-direction: column; gap: 10px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: rgba(255, 255, 255, .9); }
.co-intro h2 { color: #fff; font-size: 22px; line-height: 1.2; }
.co-intro p { margin: 0; }
.co-intro .eyebrow { color: var(--gold); }
.co-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.co-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.co-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.co-perk { background: rgba(255, 255, 255, .1); border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.co-perk strong { color: var(--gold); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .co-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.co-formula { position: relative; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--navy); }
.co-formula.featured { border-top-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 6px 18px rgba(15, 34, 54, .1); }
.co-formula.mine { border-top-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.co-formula h3 { font-size: 20px; color: var(--navy); margin: 0; padding-right: 110px; }
.co-badge { position: absolute; top: 14px; right: 14px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; }
.co-badge.mine { background: var(--gold); color: var(--navy-dark); }
.co-price { font-size: 18px; }
.co-price .price-final { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--navy); }
.co-inc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.co-inc li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.co-inc svg { width: 18px; height: 18px; flex-shrink: 0; color: #2e9e5b; margin-top: 1px; }
.co-formula .co-ask { margin-top: auto; }
.co-mine { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.co-all { padding: 0 20px; margin-top: 20px; }
.co-all > summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 12px 0; }
.co-all .coaching-offer { padding: 0; }
.co-badge { position: static; align-self: flex-start; margin-bottom: -4px; }
.co-formula h3 { padding-right: 0; }
.shop-prices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .shop-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tiers { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tiers legend { padding: 0 6px; }
.tiers p { margin: 0; }
.tier-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.tier-row input { width: 72px; height: 42px; text-align: center; }
.size-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.size-presets .pill { height: 34px; font-size: 12px; cursor: pointer; }
.product-tiers { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--red-soft); border-radius: 8px; font-size: 13px; }
.product-tiers li { display: flex; align-items: baseline; gap: 8px; }
.product-tiers li span { min-width: 74px; color: var(--ink-2); }
.product-tiers b { color: var(--navy); }
.product-tiers em { font-style: normal; color: var(--red-dark); font-weight: 700; margin-left: auto; }
.product-tiers li.mix { color: var(--red-dark); font-weight: 700; font-size: 12px; }
.pack-tag { display: inline-block; background: var(--red-soft); color: var(--red-dark); font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.size-pick { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
.size-pick label:has(input[value*="-"]) span, .size-pick label:has(input[value*=" "]) span { padding: 0 10px; }
.product-noimg svg { width: 72px; height: 72px; color: #b9c2cc; }
.size-pick { grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
.size-pick.wide { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.size-pick span { white-space: nowrap; padding: 0 4px; }
.cart-noimg { width: 52px; height: 56px; border-radius: 6px; background: #eef0f3; display: flex; align-items: center; justify-content: center; color: #b9c2cc; }
.cart-noimg svg { width: 26px; height: 26px; }
.tier-row { flex-wrap: nowrap; gap: 6px; }
.tier-row input { width: 58px; flex-shrink: 0; padding: 0 4px; }
.tier-row span, .tier-row label { white-space: nowrap; }
.shop-section { scroll-margin-top: 80px; }
.shop-section + .shop-section { margin-top: 28px; }
.cart-warn { background: var(--gold-soft); color: var(--gold-ink); padding: 8px 12px; border-radius: 6px; }
.sale-mode { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 720px) { .sale-mode { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sale-mode legend { padding: 0; margin-bottom: 6px; }
.sale-opt { position: relative; cursor: pointer; }
.sale-opt input { position: absolute; opacity: 0; }
.sale-opt span { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--field); border-radius: 8px; padding: 12px 14px; background: #fff; height: 100%; }
.sale-opt strong { color: var(--navy); }
.sale-opt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.sale-opt input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--navy-soft); }
.sale-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.shop-tabs { display: flex; flex-direction: column; gap: 8px; }
.older-campaigns { display: flex; align-items: center; gap: 8px; }
.older-campaigns select { height: 40px; width: auto; max-width: 240px; font-size: 14px; }

/* ---------- Mentions légales / confidentialité ---------- */
.legal-card { display: flex; flex-direction: column; gap: 12px; line-height: 1.55; }
.legal-card h2 { font-size: 20px; margin-top: 10px; color: var(--navy); }
.legal-card p, .legal-card ul { margin: 0; }
.legal-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-card .lead { font-size: 16px; }
.legal-list { list-style: none; padding: 0 !important; gap: 0 !important; border-top: 1px solid var(--line); }
.legal-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.legal-list li span:first-child { color: var(--muted); font-weight: 600; }
.legal-form p { margin: 0 0 8px; }
.legal-form p:last-child { margin: 0; line-height: 2; }
.legal-uses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .legal-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-use { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.legal-use h3 { font-size: 15px; color: var(--navy); margin: 0; }
.legal-use .label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 1px; }
.legal-date { margin-top: 8px !important; }
.legal-foot { margin: 24px 0 8px; }
.legal-foot a { color: var(--muted); }
.delete-account summary { cursor: pointer; color: var(--red-dark); font-weight: 700; font-size: 14px; }
.legal-list li span, .legal-card a { overflow-wrap: anywhere; }

/* ---------- Diagnostic running ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.diag-nav { position: sticky; top: 0; z-index: 5; background: var(--bg, #f6f4f0); padding: 10px 20px 8px; box-shadow: 0 6px 12px -10px rgba(15, 34, 54, .4); }
.diag-bar { height: 6px; background: #e6e2dc; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.diag-bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.diag-steps { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.diag-steps a { text-align: center; text-decoration: none; font-weight: 800; font-size: 13px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 0; }
.diag-steps a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.diag-part { scroll-margin-top: 80px; }
.diag-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.diag-head h2 { font-size: 19px; color: var(--navy); margin: 0; line-height: 1.2; }
.diag-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.diag-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.diag-fields > * { grid-column: 1 / -1; }
.diag-fields > .half { grid-column: auto; }
.dq[hidden] { display: none !important; }
fieldset.dq { border: 0; margin: 0; padding: 0; }
fieldset.dq legend { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; padding: 0; line-height: 1.35; }
.req { color: var(--red); }
.dq-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dq-opt { position: relative; }
.dq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dq-opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--field); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.25; }
.dq-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.dq-opt input[type="checkbox"]:checked + span::before { content: '✓ '; margin-right: 4px; }
.dq-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.dq-opts.yn .dq-opt span { min-width: 76px; justify-content: center; }
.diag-intro, .diag-send { display: flex; flex-direction: column; gap: 12px; }
.diag-intro p { margin: 0; }
.diag-understand { background: var(--red-soft); padding: 12px; border-radius: 8px; }
.diag-health { margin: -6px 0 12px; }
#diag-missing { color: var(--red-dark); font-weight: 700; }
.diag-done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.diag-check { width: 52px; height: 52px; border-radius: 50%; background: #2e9e5b; color: #fff; display: flex; align-items: center; justify-content: center; }
.diag-check svg { width: 28px; height: 28px; }
.diag-answers dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.diag-answers dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.diag-answers dl > div.long { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.diag-answers dl > div.health dt::after { content: ' · santé'; color: var(--red); font-weight: 700; font-size: 11px; }
.diag-answers dt { color: var(--muted); font-weight: 600; }
.diag-answers dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.diag-integrate { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--red); }

/* ---------- Infos du club (accueil membres) ---------- */
.news { display: flex; flex-direction: column; gap: 12px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(15, 34, 54, .1); display: grid; grid-template-columns: minmax(0, 1fr); }
.news-card.first { box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(15, 34, 54, .12); }
.news-img { aspect-ratio: 16 / 9; background: #eef0f3; }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.news-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.news-meta time { font-weight: 800; color: var(--navy); font-size: 13px; white-space: nowrap; }
.news-body h2 { font-size: 19px; color: var(--navy); margin: 0; line-height: 1.25; }
.news-body p { margin: 0; font-size: 14px; color: var(--ink-2); }
.news-link { align-self: flex-start; width: auto; }
@media (min-width: 720px) { .news-card:not(.noimg) { grid-template-columns: 260px minmax(0, 1fr); } .news-card:not(.noimg) .news-img { aspect-ratio: auto; min-height: 100%; } }
.news-aud { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.news-aud legend { padding: 0; margin-bottom: 6px; }

/* ---------- Champs sur mobile (iPhone) : pas de chevauchement ---------- */
.grid-2 > *, .grid-3 > *, .field > * { min-width: 0; }
.grid-2, .grid-3 { align-items: start; }
input[type=date] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; line-height: 46px; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }
input[type=date]::-webkit-calendar-picker-indicator { margin-left: auto; }
input[type=file] { max-width: 100%; }
@media (max-width: 560px) {
  .grid-2:not(.cp-city), .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
.share-trigger.on-dark { color: #fff; border-color: rgba(255, 255, 255, .4); padding: 4px 10px; font-size: 12px; }
.share-trigger.on-dark:hover { background: #fff; color: var(--navy); }
.tool-share { display: flex; justify-content: flex-end; margin-top: 8px; }
.resource .card-actions { margin-top: 2px; }

/* Soutiens du podcast (paliers + coordonnées de virement) */
.tiers { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tier { position: relative; cursor: pointer; }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier span { display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: var(--radius); border: 1px solid var(--field); background: #fff; padding: 16px 6px; }
.tier b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--navy); }
.tier small { font-size: 12px; color: var(--muted); }
.tier input:checked + span { border: 2px solid var(--red); padding: 15px 5px; box-shadow: 0 4px 14px rgba(200, 37, 58, .12); }
.tier input:checked + span b { color: var(--red); }
.tier input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.bank { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.bank > div { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--line); min-width: 0; }
.bank > div:first-child { border-top: 0; }
.bank span:first-child { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bank .val { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bank strong { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--navy); font-size: 16px; }
.bank .btn.copy { flex: 0 0 auto; width: auto; min-height: 36px; padding: 0 12px; }

/* Pastille et carte « Soutenir le podcast » (adhérents, coachés) */
.support-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 10px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--gold); color: var(--gold); background: rgba(201, 168, 76, .12); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.support-pill:hover { background: rgba(201, 168, 76, .22); }
.support-pill.is-on { border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .9); background: transparent; }
.support-card { display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--gold); }
.support-card .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.support-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.support-perks li { display: flex; gap: 8px; align-items: flex-start; }
.support-perks svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 1px; }

/* Suivi des coachés (tableau de bord du coach) */
.follow-list { display: flex; flex-direction: column; gap: 8px; }
.follow-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(15, 34, 54, .08); color: var(--ink); min-width: 0; }
.follow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.follow-main strong { color: var(--navy); font-size: 15px; }
.follow-line { font-size: 13px; color: var(--ink); }
.follow-line .label { display: inline-block; min-width: 0; margin-right: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.light { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.light::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.light-green { background: #1f8a4c; }
.light-red { background: var(--red); }
a.light-red { text-decoration: none; min-height: 36px; box-shadow: 0 3px 10px rgba(200, 37, 58, .3); }
a.light-red:hover { background: var(--red-dark); }
.plan-focus { outline: 3px solid var(--red); outline-offset: 2px; }

/* Anniversaires */
.bday-banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--gold-soft) 0%, #fff 100%); border: 1.5px solid var(--gold); }
.bday-banner .bday-emoji { font-size: 38px; line-height: 1; }
.bday-banner div { display: flex; flex-direction: column; gap: 2px; }
.bday-banner strong { font-family: var(--display); font-weight: 900; font-size: 19px; color: var(--navy); text-transform: uppercase; }
.bday-banner span { font-size: 14px; color: var(--ink); }
.bday-ask { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--gold); background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.bday-ask span { flex: 1; }
.bday-card { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--gold); }
/* Inviter des membres */
.invite-card { display: flex; flex-direction: column; gap: 12px; }
.invite-top { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
.invite-top img { width: 132px; height: 132px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.invite-link { font-size: 13px; overflow-wrap: anywhere; color: var(--navy); font-weight: 600; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-actions .btn { width: auto; }
@media (max-width: 420px) { .invite-top { grid-template-columns: 104px minmax(0, 1fr); } .invite-top img { width: 104px; height: 104px; } }

/* Questionnaire de satisfaction */
.survey-ask { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--red); text-decoration: none; color: var(--ink); box-shadow: 0 4px 14px rgba(200, 37, 58, .1); }
.survey-ask > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 14px; }
.survey-ask strong { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--red); font-size: 16px; }
.survey-ask-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.survey-form { display: flex; flex-direction: column; gap: 22px; }
.survey-q { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.survey-q > legend, .survey-q > label.q { font-weight: 800; color: var(--navy); font-size: 16px; padding: 0; margin-bottom: 4px; }
.nps { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.nps label { position: relative; }
.nps input { position: absolute; opacity: 0; }
.nps span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 6px; border: 1px solid var(--field); background: #fff; font-weight: 800; font-size: 14px; color: var(--navy); cursor: pointer; }
.nps input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.nps input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }
.nps-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stars-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.stars-row:first-of-type { border-top: 0; }
.stars-row > span { font-size: 14px; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 30px; line-height: 1; color: #d6d9de; cursor: pointer; padding: 2px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 1px; border-radius: 4px; }
.choice-list { display: flex; flex-direction: column; gap: 6px; }
.choice-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: #fff; font-size: 15px; cursor: pointer; }
.choice-list input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.survey-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.survey-stat { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 3px rgba(15, 34, 54, .08); display: flex; flex-direction: column; gap: 2px; }
.survey-stat b { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--navy); line-height: 1; }
.survey-stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.aspect-bar { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
.aspect-bar i { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.aspect-bar i em { display: block; height: 100%; background: var(--gold); }
.aspect-bar b { text-align: right; color: var(--navy); }
.quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 8px 8px 0; font-style: italic; white-space: pre-line; }
.q-missing { outline: 2px solid var(--red); outline-offset: 8px; border-radius: 4px; }
.q-missing::after { content: 'Réponse obligatoire'; color: var(--red); font-size: 13px; font-weight: 700; }
.survey-q { scroll-margin-top: 96px; }
/* Carte avis (à partir d'un questionnaire de satisfaction) */
.review-maker { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 8px rgba(15, 34, 54, .06); }
.review-head { display: flex; gap: 12px; align-items: center; }
.review-head > span:last-child { display: flex; flex-direction: column; }
.review-head strong { color: var(--navy); font-size: 15px; }
.review-head small { color: var(--muted); font-size: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.review-stars { color: #f4b400; font-size: 22px; letter-spacing: 2px; line-height: 1; }
.review-stars span { color: #dfe3e8; }
.review-text { margin: 0; white-space: pre-line; font-size: 14.5px; color: var(--ink); }
.review-goal { font-size: 12px; font-weight: 700; color: var(--red); }
.google-ask { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 14px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold); text-align: center; }
