/* ==========================================================================
   PokerSpot — feuille de styles
   Les couleurs de marque sont injectées depuis la configuration (variables :root).
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Atkinson';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Atkinson';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/atkinson-hyperlegible-latin-400-italic.woff2) format('woff2');
}

:root {
  /* valeurs par défaut, surchargées par la configuration */
  --ink: #13343B;
  --paper: #F5F6F3;
  --surface: #FFFFFF;
  --accent: #BF3A2B;
  --accent-ink: #FFFFFF;
  --link: #1E5E9E;
  --verified: #2C7A4B;
  --warning: #A86400;
  --muted: #59696E;
  --line: #D6DDDD;

  --text: #1B2529;
  --ink-soft: color-mix(in srgb, var(--ink) 82%, white);
  --accent-soft: color-mix(in srgb, var(--accent) 9%, white);
  --ink-wash: color-mix(in srgb, var(--ink) 6%, var(--paper));
  --off: #7C8689;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-s: 6px;
  --r-m: 10px;
  --gutter: 16px;
  --header-h: 60px;
  --focus: 0 0 0 3px color-mix(in srgb, var(--link) 45%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-stretch: 88%;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.nowrap { white-space: nowrap; }
.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; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 2000; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- En-tête */

.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 1.3rem; letter-spacing: 0.005em; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; opacity: 0.75; letter-spacing: 0; font-stretch: 100%; }
.nav-toggle { margin-left: auto; display: none; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: var(--r-s); padding: 7px 12px; font: inherit; font-size: 0.95rem; cursor: pointer; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a { color: #fff; text-decoration: none; padding: 8px 11px; border-radius: var(--r-s); font-weight: 700; font-size: 0.98rem; }
.main-nav a:hover { background: rgba(255,255,255,.1); }
.main-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.main-nav .nav-space { border: 1px solid rgba(255,255,255,.4); margin-left: 6px; }
.main-nav form { display: inline; }
.main-nav button.linklike { color: #fff; }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-block; }
  .js .main-nav { display: none; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 2px; border-top: 1px solid rgba(255,255,255,.12); }
  .js .main-nav.open { display: flex; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
  .no-js .main-nav { position: static; padding: 0 0 10px; flex-direction: row; flex-wrap: wrap; }
  .main-nav a { padding: 11px 10px; }
  .main-nav .nav-space { margin: 8px 0 0; text-align: center; }
}

/* ---------------------------------------------------------------- Messages */

.flashes { margin: 16px auto 0; }
.flash { padding: 12px 14px; border-radius: var(--r-m); margin-bottom: 8px; border-left: 4px solid; background: var(--surface); }
.flash.success { border-color: var(--verified); }
.flash.error { border-color: var(--accent); background: var(--accent-soft); }
.flash.info { border-color: var(--link); }
.flash.warning { border-color: var(--warning); background: #FFF6E8; }
.notice { background: var(--ink-wash); border-radius: var(--r-m); padding: 12px 14px; margin: 0 0 16px; }
.notice.warn { background: color-mix(in srgb, var(--warning) 10%, white); border-left: 4px solid var(--warning); }
.notice.off { background: #eceeee; border-left: 4px solid var(--off); }

/* ---------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: var(--r-s);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, black); border-color: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-small { min-height: 36px; padding: 5px 12px; font-size: 0.93rem; }
.btn-danger { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-danger:hover { background: var(--accent); color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- Badges */

.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e9eded; color: var(--ink); white-space: nowrap; vertical-align: middle; }
.badge.ok { background: color-mix(in srgb, var(--verified) 14%, white); color: color-mix(in srgb, var(--verified) 85%, black); }
.badge.warn { background: color-mix(in srgb, var(--warning) 15%, white); color: color-mix(in srgb, var(--warning) 80%, black); }
.badge.off { background: #e4e6e6; color: #4a5356; }
.badge.danger { background: var(--accent); color: #fff; }
.badge.sponsor { background: #fff; border: 1px solid var(--muted); color: var(--muted); }
.badge.co { background: #e8eefb; color: #23408e; margin-left: 6px; }
.badge.prizes { background: #fdf0d5; color: #7a4b00; }

/* ---------------------------------------------------------------- Jeton-date (élément signature) */

.chip {
  --c: var(--accent);
  position: relative; flex: none;
  width: 60px; height: 60px; border-radius: 50%;
  background: repeating-conic-gradient(var(--c) 0deg 30deg, #fff 30deg 45deg);
  display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.chip::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; border: 2px dashed var(--c); }
.chip span { position: relative; display: block; text-align: center; line-height: 1; font-family: var(--font-display); color: var(--ink); }
.chip b { display: block; font-size: 1.32rem; font-weight: 800; font-stretch: 85%; }
.chip i { display: block; font-style: normal; font-size: 0.7rem; font-weight: 600; text-transform: lowercase; margin-top: 1px; color: var(--muted); }
.chip.is-cancelled { --c: var(--off); }
.chip.is-cancelled b { text-decoration: line-through; color: var(--off); }
.chip.is-postponed, .chip.is-full { --c: var(--warning); }
.chip.is-small { width: 44px; height: 44px; }
.chip.is-small::before { inset: 4px; }
.chip.is-small b { font-size: 1rem; }
.chip.is-small i { font-size: 0.6rem; }

/* ---------------------------------------------------------------- Liste de tournois */

.event-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.event-list > li + li { border-top: 1px solid var(--line); }
.event-item { display: flex; gap: 14px; padding: 14px; align-items: flex-start; position: relative; }
.event-item:hover, .event-item.is-active { background: var(--ink-wash); }
.event-item.is-active { box-shadow: inset 4px 0 0 var(--accent); }
.event-item .ev-body { flex: 1; min-width: 0; }
.event-item h3 { font-size: 1.12rem; margin: 0 0 3px; }
.event-item h3 a { color: var(--ink); text-decoration: none; }
.event-item h3 a::after { content: ''; position: absolute; inset: 0; }
.event-item h3 a:hover { text-decoration: underline; }
.event-item .ev-meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.event-item .ev-meta strong { color: var(--text); font-weight: 700; }
.event-item .ev-badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.event-item .ev-dist { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; font-size: 0.95rem; }
.event-item.is-cancelled h3 a { color: var(--off); text-decoration: line-through; }
.empty { padding: 28px 18px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-m); }
.empty h3 { margin-bottom: 6px; }

/* ---------------------------------------------------------------- Formulaires */

.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.field .hint { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 10px 12px; min-height: 46px;
  border: 1.5px solid #b9c4c5; border-radius: var(--r-s); background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: var(--focus); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.field-error { color: var(--accent); font-size: 0.92rem; font-weight: 700; margin-top: 4px; display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .span-2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; } }
fieldset { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px 4px; margin: 0 0 18px; background: var(--surface); }
legend { font-family: var(--font-display); font-weight: 750; font-size: 1.1rem; color: var(--ink); padding: 0 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }

/* autocomplétion des communes */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 1200; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1.5px solid var(--link); border-radius: var(--r-s); box-shadow: 0 8px 22px rgba(0,0,0,.14); max-height: 300px; overflow: auto; }
.ac-list li { padding: 9px 12px; cursor: pointer; }
.ac-list li small { color: var(--muted); }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--ink-wash); }

/* ---------------------------------------------------------------- Pied de page */

.site-footer { background: var(--ink); color: rgba(255,255,255,.86); margin-top: 56px; padding: 36px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .legal-line { border-top: 1px solid rgba(255,255,255,.15); margin-top: 26px; padding-top: 14px; font-size: 0.85rem; opacity: .8; }

/* ---------------------------------------------------------------- Accueil */

.hero { padding: 32px 0 20px; }
.hero-grid { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; padding-top: 16px; } }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); font-stretch: 78%; line-height: 0.98; margin-bottom: 14px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; box-shadow: 0 10px 30px -18px rgba(19,52,59,.5); }
.search-panel .row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .search-panel .row { grid-template-columns: 2fr 1fr; } }
.search-panel .field { margin-bottom: 10px; }
.search-panel .actions { margin-top: 4px; }
.geo-btn { white-space: nowrap; }
.hero-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.hero-map { position: relative; }
.hero-map .map { height: 360px; border-radius: var(--r-m); border: 1px solid var(--line); }
@media (min-width: 960px) { .hero-map .map { height: 470px; } }
.hero-map .map-caption { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-top: 8px; font-size: 0.93rem; }

.section { padding: 34px 0 6px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.cols-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.club-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.club-tile { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; text-decoration: none; color: inherit; }
.club-tile:hover { border-color: var(--ink); }
.club-tile .logo { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: var(--ink-wash); flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.2rem; overflow: hidden; }
.club-tile strong { display: block; color: var(--ink); font-family: var(--font-display); font-stretch: 90%; font-size: 1.05rem; line-height: 1.2; }
.club-tile span { font-size: 0.9rem; color: var(--muted); }

.split-explain { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split-explain { grid-template-columns: 1fr 1fr; } }
.split-explain > div { background: var(--surface); border-top: 4px solid var(--ink); padding: 18px 18px 6px; border-radius: 0 0 var(--r-m) var(--r-m); }
.split-explain > div.for-clubs { border-top-color: var(--accent); }
.split-explain ul { padding-left: 1.1em; }
.split-explain li { margin-bottom: 6px; }

.call-clubs { background: var(--ink); color: #fff; border-radius: var(--r-m); padding: 26px 22px; display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .call-clubs { grid-template-columns: 1fr auto; padding: 30px 32px; } }
.call-clubs h2 { color: #fff; margin-bottom: 6px; }
.call-clubs p { margin: 0; opacity: .9; }
.call-clubs .btn-ghost { color: #fff; border-color: #fff; }
.call-clubs .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------------------------------------------------------------- Page carte (liste + carte) */

.page-map .site-footer { margin-top: 0; }
.filters { background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 0; }
.filters form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.filters .field { margin: 0; flex: 1 1 110px; min-width: 0; }
.filters .field input, .filters .field select { min-width: 0; }
.filters .f-lieu { flex: 3 1 200px; }
.filters .f-rayon { flex: 1 1 150px; }
.filters .f-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.filters label { font-size: 0.85rem; margin-bottom: 3px; }
.filters .more { flex: 1 1 100%; }
.filters .more-row { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: 0.95rem; }
.filters .more-row .check { margin: 0; font-weight: 400; }
.filters-toggle { display: none; }
@media (max-width: 899px) {
  .filters .field { flex: 1 1 40%; }
  .filters .f-lieu { flex: 1 1 100%; }
  .filters .f-actions { flex: 1 1 100%; }
  .filters .f-actions .btn { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; }
  .js .filters-toggle { display: inline-flex; }
  .js .filters form.is-collapsed .f-extra { display: none; }
}

.map-layout { display: grid; grid-template-columns: 1fr; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
.results-head h1 { font-size: 1.35rem; margin: 0; }
.results-head .count { color: var(--muted); font-size: 0.95rem; }
.view-switch { display: none; }
.results-wrap { padding: 0 var(--gutter); }
.map-pane .map { height: calc(100vh - var(--header-h) - 56px); min-height: 360px; }
.map-toolbar { position: absolute; z-index: 600; bottom: 26px; left: 50%; transform: translateX(-50%); }
.map-pane { position: relative; }
.share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; font-size: 0.93rem; }

@media (max-width: 899px) {
  .js .view-switch { display: flex; position: sticky; top: var(--header-h); z-index: 700; background: var(--paper); padding: 8px var(--gutter); gap: 0; }
  .view-switch button { flex: 1; font: inherit; font-weight: 700; padding: 10px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
  .view-switch button:first-child { border-radius: var(--r-s) 0 0 var(--r-s); }
  .view-switch button:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; border-left: 0; }
  .view-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .js .map-layout[data-view="list"] .map-pane { display: none; }
  .js .map-layout[data-view="map"] .results { display: none; }
  .js .map-layout[data-view="map"] .map-pane .map { height: calc(100vh - var(--header-h) - 64px); }
  .no-js .map-pane .map { height: 320px; }
}
@media (min-width: 900px) {
  /* liste à gauche : largeur proportionnelle à l'écran, bornée ; le contenu commence au bord de la colonne
     (l'ancien alignement sur le conteneur de 1180 px poussait la liste hors de sa colonne sur grand écran) */
  .map-layout { grid-template-columns: clamp(400px, 32vw, 640px) minmax(0, 1fr); height: calc(100vh - var(--header-h) - var(--filters-h, 74px)); }
  .map-layout .results { overflow-y: auto; padding: 0 16px 24px 0; min-width: 0; }
  .map-pane .map { height: 100%; min-height: 0; }
  .map-layout .results-wrap { padding-left: var(--gutter); padding-right: 0; }
  .map-layout { overflow: hidden; }
}

/* marqueurs Leaflet */
.mk { background: transparent; border: 0; }
.mk-chip { width: 34px; height: 34px; border-radius: 50%; background: repeating-conic-gradient(var(--accent) 0deg 30deg, #fff 30deg 45deg); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.35); position: relative; }
.mk-chip::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.mk-chip b { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--ink); }
.mk-chip.approx { opacity: 0.85; background: repeating-conic-gradient(var(--ink) 0deg 30deg, #fff 30deg 45deg); }
.mk-chip.cancelled { background: repeating-conic-gradient(var(--off) 0deg 30deg, #fff 30deg 45deg); }
.mk-chip.cancelled b { color: var(--off); text-decoration: line-through; }
.mk-chip.warn { background: repeating-conic-gradient(var(--warning) 0deg 30deg, #fff 30deg 45deg); }
.mk-chip.active { transform: scale(1.25); z-index: 1000; box-shadow: 0 0 0 3px var(--ink), 0 3px 10px rgba(0,0,0,.4); }
.mk-me { width: 18px; height: 18px; border-radius: 50%; background: var(--link); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--link); }
.mk-cluster { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.95rem; margin: 12px 14px; min-width: 220px; }
.leaflet-popup-content h3 { font-size: 1.05rem; margin: 0 0 4px; }
.leaflet-popup-content p { margin: 0 0 6px; }
.leaflet-popup-content .pop-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.leaflet-container { font-family: var(--font-body); background: #e9eeee; }
.leaflet-container a.btn { color: var(--accent-ink); }
.map-fallback { display: grid; place-items: center; background: var(--ink-wash); color: var(--muted); text-align: center; padding: 20px; }

/* ---------------------------------------------------------------- Fiches */

.page-head { padding-top: 24px; padding-bottom: 8px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.detail-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 340px; } }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.facts li:last-child { border-bottom: 0; }
.facts svg { width: 20px; height: 20px; color: var(--ink); margin-top: 2px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; margin-bottom: 16px; }
.aside-box h2 { font-size: 1.1rem; }
.mini-map { height: 240px; border-radius: var(--r-m); border: 1px solid var(--line); }
.event-hero { display: flex; gap: 18px; align-items: center; }
.event-hero .chip { width: 84px; height: 84px; }
.event-hero .chip::before { inset: 8px; }
.event-hero .chip b { font-size: 1.9rem; }
.event-hero .chip i { font-size: 0.85rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.2em; }
.club-head { display: flex; gap: 16px; align-items: center; }
.club-head .logo { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 1px solid var(--line); object-fit: contain; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); overflow: hidden; }
.verif-line { font-size: 0.9rem; color: var(--muted); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 6px 0; }

/* ---------------------------------------------------------------- Calendrier */

.cal-nav { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin: 12px 0; }
.cal-nav h1 { margin: 0; font-size: 1.7rem; }
.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--surface); border: 1px solid var(--line); }
.calendar th { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 0.85rem; padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.calendar td { vertical-align: top; height: 112px; border: 1px solid var(--line); padding: 6px; }
.calendar td.out { background: #f0f2f1; }
.calendar td.today { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar .daynum { font-family: var(--font-display); font-weight: 750; color: var(--ink); font-size: 0.95rem; }
.calendar ul { list-style: none; margin: 4px 0 0; padding: 0; }
.calendar li { margin-bottom: 3px; }
.calendar li a { display: block; font-size: 0.8rem; line-height: 1.25; text-decoration: none; color: var(--ink); background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 3px 5px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar li a.is-cancelled { background: #eee; border-color: var(--off); color: var(--off); text-decoration: line-through; }
.calendar li a.is-warn { border-color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, white); }
.agenda { display: none; }
.cal-short, .cal-dot { display: none; }
.calendar abbr { text-decoration: none; }
@media (max-width: 760px) {
  /* mobile : grille compacte (pastille = nombre de tournois, lien vers le jour dans la liste) + liste par jour */
  .calendar td { height: 46px; padding: 3px; text-align: center; }
  .calendar th { text-align: center; padding: 6px 0; }
  .calendar ul, .cal-long { display: none; }
  .cal-short { display: inline; }
  .calendar .daynum { display: block; font-size: .85rem; }
  .cal-dot { display: inline-block; min-width: 22px; margin-top: 2px; padding: 1px 5px; border-radius: 11px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.5; text-decoration: none; }
  .agenda { display: block; }
  .agenda-day { scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
}
.agenda-day { margin: 18px 0 8px; font-family: var(--font-display); font-weight: 750; color: var(--ink); font-size: 1.05rem; }

/* ---------------------------------------------------------------- Pagination */

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; background: var(--surface); }
.pager span.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- Espace club & administration */

.space { display: grid; gap: 22px; grid-template-columns: 1fr; padding-top: 20px; }
@media (min-width: 960px) { .space { grid-template-columns: 230px 1fr; } }
.space-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px; align-self: start; }
.space-nav .club-name { font-family: var(--font-display); font-weight: 800; color: var(--ink); padding: 6px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-stretch: 88%; line-height: 1.2; }
.space-nav a { display: block; padding: 8px 10px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.97rem; }
.space-nav a:hover { background: var(--ink-wash); }
.space-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.space-nav .count { float: right; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 0.8rem; }
@media (max-width: 959px) {
  .space-nav { display: flex; overflow-x: auto; gap: 4px; padding: 6px; -webkit-overflow-scrolling: touch; }
  .space-nav .club-name { display: none; }
  .space-nav a { white-space: nowrap; flex: none; }
}
.space-main h1 { font-size: 1.8rem; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 22px; }
.kpi { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1.1; font-stretch: 85%; }
.kpi span { font-size: 0.88rem; color: var(--muted); }
.kpi.alert { border-color: var(--accent); }
.kpi.alert b { color: var(--accent); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th { text-align: left; font-size: 0.85rem; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.actions-cell { white-space: nowrap; }
.table .sub { display: block; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 700px) {
  table.table.stack thead { display: none; }
  table.table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.table.stack td { display: block; border: 0; padding: 4px 12px; }
  table.table.stack td[data-label]::before { content: attr(data-label) ' : '; font-weight: 700; color: var(--muted); font-size: 0.85rem; }
}
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { border-color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; background: var(--ink); min-height: 1px; border-radius: 2px 2px 0 0; }
.bars span:hover { background: var(--accent); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { min-height: 36px; padding: 5px 8px; width: auto; }
details.more-actions { margin-top: 6px; }
details.more-actions summary { cursor: pointer; color: var(--link); font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
details.more-actions summary::-webkit-details-marker { display: none; }
details.more-actions summary::after { content: '▾'; font-size: .8em; }
details.more-actions[open] summary::after { content: '▴'; }
details.more-actions[open] { white-space: normal; width: min(310px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); padding: 10px 12px 12px; }
details.more-actions[open] summary { margin-bottom: 4px; }
details.more-actions .inline-form { display: flex; flex-wrap: wrap; width: 100%; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
details.more-actions .inline-form input, details.more-actions .inline-form select { flex: 1 1 100%; min-width: 0; width: 100%; }
details.more-actions .inline-form .btn { flex: none; white-space: nowrap; }
details.more-actions br { display: none; }
.table td.actions-cell details.more-actions[open] { white-space: normal; }
.picker-map { height: 340px; border-radius: var(--r-m); border: 1px solid var(--line); margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.diff { font-size: 0.85rem; color: var(--muted); word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .filters, .map-pane, .view-switch { display: none !important; }
}

/* ==========================================================================
   v2 : tournoi gratuit, affiches, contact, offres, à la une, apprendre, jouer
   ========================================================================== */
.badge.free { background: color-mix(in srgb, var(--verified) 16%, white); color: color-mix(in srgb, var(--verified) 85%, black); border: 1px solid color-mix(in srgb, var(--verified) 40%, white); }
.badge.plus { background: var(--ink); color: #fff; letter-spacing: .02em; }
.hero-compact { padding: 28px 0 8px; }
.hero-compact h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.section-title { margin-top: 34px; }
.btn-gold { background: #C9A227; border-color: #C9A227; color: #1b1b1b; }
.btn-gold:hover { background: #b38f1f; border-color: #b38f1f; }

/* Formulaire tournoi */
.flyer-field { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.flyer-thumb img { width: 110px; height: auto; max-height: 150px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.chip-checks .check { margin: 0; }
.certify { background: color-mix(in srgb, var(--verified) 7%, white); border: 1.5px solid color-mix(in srgb, var(--verified) 45%, white); border-radius: var(--r-m); padding: 14px 16px; margin: 6px 0 18px; }
.certify .check { font-weight: 700; align-items: flex-start; }
.certify .hint { display: block; margin-top: 6px; }
.certify.has-error, .certify.is-invalid { border-color: var(--accent); background: var(--accent-soft); }

/* Fiche tournoi */
.event-hero { flex-wrap: wrap; }
.event-hero-main { flex: 1; min-width: 220px; }
.event-top { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .event-top.has-flyer { grid-template-columns: minmax(240px, 46%) 1fr; } }
.event-flyer { display: block; position: relative; margin: 0; }
.event-flyer img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: var(--r-m); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); background: #fff; }
.event-flyer figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; text-align: center; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; }
.contact-actions .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; white-space: nowrap; }
.btn svg, .aside-box p > svg, a > svg { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.event-item .ev-flyer { flex: none; position: relative; z-index: 1; }
.event-item .ev-flyer img { display: block; width: 66px; height: 88px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); background: #fff; box-shadow: 0 4px 10px -6px rgba(0,0,0,.5); }

/* À la une (sponsorisé, hors classement) */
.featured { margin: 0 0 22px; padding: 14px; border: 1.5px solid #C9A227; border-radius: var(--r-m); background: color-mix(in srgb, #C9A227 7%, white); }
.featured-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.featured-head h2 { margin: 0; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 6px; }
.featured-head svg { width: 20px; height: 20px; color: #a8841a; }
.featured-head a { margin-left: auto; }
.featured-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.poster-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: grid; grid-template-columns: 104px 1fr; }
.poster-link { display: block; text-decoration: none; }
.poster { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #0b120e; }
.poster.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster.gen { color: #fff; padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.poster.gen.p1 { background: linear-gradient(160deg, #0f5c3f, #0b120e); }
.poster.gen.p2 { background: linear-gradient(160deg, #7a1f2b, #120b0d); }
.poster.gen.p3 { background: linear-gradient(160deg, #1d3b6e, #0b0e14); }
.poster.gen.p4 { background: linear-gradient(160deg, #3a2a5c, #0e0b14); }
.poster.gen.p5 { background: linear-gradient(160deg, #6b4a12, #14100b); }
.poster.gen.p6 { background: linear-gradient(160deg, #13474f, #0b1214); }
.poster.gen .suit { position: absolute; top: 4px; right: 8px; font-size: 2.2rem; line-height: 1; opacity: .9; color: #fff; }
.poster.gen .suit.red { color: #f0a3a3; }
.poster.gen .pt { font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: .95rem; line-height: 1.05; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.poster.gen .pd { font-size: .7rem; opacity: .85; margin-top: 3px; }
.poster-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.poster-meta .date { font-weight: 700; font-size: .9rem; color: var(--accent); }
.poster-meta h3 { font-size: 1.02rem; margin: 0; }
.poster-meta h3 a { color: var(--ink); text-decoration: none; }
.poster-meta h3 a:hover { text-decoration: underline; }
.section-featured { padding-bottom: 0; }

/* Offres */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } .space-main .plans { grid-template-columns: 1fr 1fr; } }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.plan-card h2 { margin: 0; font-size: 1.35rem; }
.plan-card h2 small { display: block; font-size: 1rem; color: var(--accent); font-weight: 700; margin-top: 2px; }
.plan-card ul { padding-left: 1.1em; margin: 0; flex: 1; }
.plan-card li { margin-bottom: 6px; }
.plan-card.hl { border: 2px solid var(--ink); box-shadow: 0 12px 30px -20px rgba(19,52,59,.6); }
.plan-card .btn { align-self: flex-start; }
.extra-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .extra-grid { grid-template-columns: 1fr 1fr; } }
.extra-grid > div { background: var(--surface); border-left: 4px solid var(--ink); border-radius: 0 var(--r-m) var(--r-m) 0; padding: 12px 14px; }
.extra-grid p { margin: 4px 0 0; }
.upsell { background: var(--ink-wash); border: 1.5px dashed var(--ink); border-radius: var(--r-m); padding: 16px; margin: 18px 0; }
.upsell h2 { margin-top: 0; }
@media (min-width: 700px) { .form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.sim-total { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; margin: 6px 0 0; }
.sim-total b { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); }

/* Agenda intégrable */
.widget-body { background: #fff; }
.widget { padding: 12px; }
.widget-title { font-size: 1.15rem; margin: 0 0 8px; }
.widget .event-item { padding: 10px 6px; }
.widget-foot { margin: 10px 0 0; font-size: .85rem; text-align: right; }
.widget-preview { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; max-width: 720px; }

/* Apprendre */
.learn { max-width: 860px; }
.art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 18px; margin-bottom: 12px; }
.art summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); list-style-position: outside; }
.art .kick { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.art[open] summary { margin-bottom: 10px; }
.ranks { display: grid; gap: 10px; }
.rk { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.lex dt { font-weight: 700; color: var(--ink); margin-top: 8px; }
.lex dd { margin: 2px 0 0; }
.blinds tr.pause td { background: var(--ink-wash); font-style: italic; }
.hand { display: flex; gap: 5px; flex-wrap: wrap; min-height: 64px; align-items: center; }
.pc { width: 40px; height: 56px; border-radius: 6px; background: #fff; border: 1px solid #c9cfcf; box-shadow: 0 2px 4px rgba(0,0,0,.18); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #15191b; line-height: 1; }
.pc span { font-size: 1.15rem; }
.pc.red { color: #c0262d; }
.pc.back { background: repeating-linear-gradient(45deg, #7a1f2b 0 6px, #8f2a37 6px 12px); border-color: #5c1620; }
.pc.slot { background: transparent; border: 1.5px dashed rgba(255,255,255,.35); box-shadow: none; }

/* Jouer */
.felt { background: radial-gradient(ellipse at center, #1f7a4f 0%, #0f5c3f 55%, #0a3d2a 100%); border: 10px solid #5b3a1c; border-radius: 120px / 90px; padding: 22px 18px; color: #fff; display: grid; gap: 14px; justify-items: center; max-width: 760px; margin: 0 auto; }
@media (max-width: 560px) { .felt { border-radius: 40px; border-width: 6px; padding: 16px 10px; } }
.felt .seat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.felt .who { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.felt .who b { font-family: var(--font-display); }
.felt .chips { background: rgba(0,0,0,.3); border-radius: 99px; padding: 2px 10px; font-size: .9rem; }
.felt .bet { color: #ffd76a; font-weight: 700; font-size: .9rem; }
.felt .mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.felt .pot { font-weight: 700; color: #ffd76a; min-height: 1.3em; }
.felt .gmsg { text-align: center; min-height: 2.6em; max-width: 34em; font-size: .95rem; }
.felt .hint { font-size: .9rem; opacity: .9; min-height: 1.2em; }
.felt .pc { width: 44px; height: 62px; }
.ctrl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.ctrl .btn[disabled] { opacity: .45; cursor: not-allowed; }

.only-mobile { margin: 10px 0 0; }
@media (min-width: 900px) { .only-mobile { display: none; } }

[hidden] { display: none !important; }

/* Partage d'un tournoi */
.share-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 10px 0; }
.share-links a { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 4px 8px; border-radius: var(--r-s); font-weight: 700; font-size: .92rem; text-decoration: none; color: #fff; }
.share-links .sh-wa { background: #1f8f4e; }
.share-links .sh-fb { background: #1b5fbf; }
.share-links .sh-sms { background: var(--ink); }
.share-links .sh-mail { background: #59696e; }
.share-links .sh-x { background: #111; }
.share-links a:hover { filter: brightness(1.12); }
.share-copy { display: flex; gap: 6px; }
.share-copy input { flex: 1; min-width: 0; min-height: 36px; padding: 4px 8px; font-size: .85rem; }
[data-native-share] { width: 100%; justify-content: center; gap: 8px; display: inline-flex; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.tabs .count { display: inline-block; min-width: 22px; text-align: center; background: var(--ink-wash); color: var(--ink); border-radius: 99px; padding: 0 7px; font-size: .82rem; margin-left: 2px; }
.tabs .count.warn { background: var(--warning); color: #fff; }
.recurring-box { border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: 12px 14px; margin: 0 0 18px; background: var(--surface); }
.recurring-box .check { font-weight: 700; }
/* Rôles des comptes */
.badge.role-superadmin { background: var(--accent); color: #fff; }
.badge.role-moderator { background: #1e5e9e; color: #fff; }
.badge.role-content_manager { background: #6b3fa0; color: #fff; }
.badge.role-member { background: color-mix(in srgb, var(--verified) 16%, white); color: color-mix(in srgb, var(--verified) 85%, black); }
.users-table tr.row-role-superadmin td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.users-table tr.row-role-moderator td:first-child { box-shadow: inset 4px 0 0 #1e5e9e; }
.users-table tr.row-role-content_manager td:first-child { box-shadow: inset 4px 0 0 #6b3fa0; }
.users-table tr.row-role-member td:first-child { box-shadow: inset 4px 0 0 var(--verified); }
.users-table .role-form { margin-top: 6px; }
.role-legend { display: flex; flex-wrap: wrap; gap: 6px; }
/* Offres pas encore ouvertes */
.plan-card { position: relative; }
.plan-card.is-soon { background: #f1f2f0; border-style: dashed; box-shadow: none; }
.plan-card.is-soon h2, .plan-card.is-soon ul, .plan-card.is-soon p.muted { opacity: .55; }
.plan-card.is-soon h2 small { color: var(--muted); }
.soon-ribbon { position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.is-soon-soft { background: #f1f2f0 !important; }
.is-soon-soft strong, .is-soon-soft p { opacity: .7; }
.interest-form { margin: 0; }
.btn-interest { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-interest:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.interest-done { display: inline-block; font-weight: 700; color: var(--verified); font-size: .93rem; }
.extra-grid .interest-form, .extra-grid .interest-done { margin-top: 8px; }
a.link-soon { color: var(--muted); }
@media (min-width: 900px) { .hero-actions.only-mobile { display: none; } }
.optin-check { font-weight: 400; font-size: .93rem; }
.calendar a.is-cont { opacity: .75; font-style: italic; }
/* Abonnements */
.follow-box h2 { display: flex; align-items: center; gap: 8px; }
.follow-box h2 svg { width: 20px; height: 20px; }
.follow-box input[type=email] { width: 100%; }
.follow-wide { max-width: 560px; margin: 26px 0 10px; }
.follow-list { list-style: none; padding: 0; margin: 14px 0; }
.follow-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: 6px; }
.optin-yes { color: var(--verified) !important; font-weight: 700; }
.terms-notice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Hold'em multi-joueurs */
.hd-settings { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; margin-bottom: 14px; }
.hd-settings label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.hd-settings select { width: auto; min-height: 38px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 14px; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.felt-multi { max-width: 900px; border-radius: 80px / 60px; gap: 10px; }
.felt-multi .bots { display: grid; gap: 10px; width: 100%; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); justify-items: center; }
.felt-multi .bots[data-count="1"] { --n: 1; }
.felt-multi .bots[data-count="2"] { --n: 2; }
.felt-multi .bots[data-count="3"] { --n: 3; }
.felt-multi .seat { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 14px; min-width: 0; transition: background .2s; }
.felt-multi .seat.is-turn { background: rgba(255, 215, 106, .18); box-shadow: 0 0 0 2px #ffd76a; }
.felt-multi .seat.is-win { background: rgba(120, 220, 140, .2); box-shadow: 0 0 0 2px #7fdc8c; }
.felt-multi .seat.is-folded .hand, .felt-multi .seat.is-out { opacity: .4; }
.felt-multi .who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.felt-multi .dealer { background: #fff; color: #111; border-radius: 50%; width: 22px; height: 22px; display: inline-grid; place-items: center; font-weight: 800; font-size: .75rem; }
.felt-multi .blind { background: rgba(0,0,0,.35); border-radius: 99px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.felt-multi .act { font-size: .85rem; opacity: .9; min-height: 1.2em; text-align: center; }
.felt-multi .bet { color: #ffd76a; font-weight: 700; font-size: .9rem; min-height: 1.2em; }
.felt-multi .hand { min-height: 0; justify-content: center; }
.felt-multi .you .seat { padding: 10px 16px; }
.felt-multi .hint { min-height: 1.2em; font-size: .9rem; }
@media (max-width: 640px) {
  .felt-multi { border-radius: 30px; padding: 12px 6px; }
  .felt-multi .bots[data-count="3"] .pc, .felt-multi .bots[data-count="2"] .pc { width: 30px; height: 42px; font-size: .85rem; }
  .felt-multi .bots[data-count="3"] .pc span { font-size: .9rem; }
  .felt-multi .bots .seat { padding: 6px 4px; }
  .felt-multi .bots .chips { font-size: .78rem; padding: 1px 7px; }
}
.ctrl { align-items: center; }
.raise-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 12px; }
.raise-label { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: .9rem; min-width: 220px; }
.raise-label output { color: var(--accent); }
.raise-label input[type=range] { width: 100%; accent-color: var(--accent); min-height: 30px; padding: 0; border: 0; }
.raise-box .quick { display: flex; gap: 6px; }

/* Feuille de route « Où va PokerSpot ? » */
.roadmap .rm-promise { margin-bottom: 22px; }
.roadmap .rm-promise h2 { font-size: 1.15rem; margin-top: 0; }
.roadmap .rm-promise ul { margin: 0 0 10px; padding-left: 1.2em; }
.rm-cols { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-bottom: 22px; }
.rm-col { background: var(--ink-wash); border-radius: var(--r-m); padding: 14px; }
.rm-col > h2 { font-size: 1.1rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.rm-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rm-dot.ok { background: var(--verified); }
.rm-dot.wip { background: var(--warning); }
.rm-dot.idea { background: var(--link); }
.rm-note { margin: -6px 0 10px; }
.rm-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; margin-bottom: 10px; }
.rm-item h3 { font-size: 1rem; margin: 0 0 4px; }
.rm-item p { margin: 0; font-size: .92rem; color: var(--muted); }
.rm-vote .interest-form, .rm-vote .interest-done { display: inline-block; margin-top: 8px; }
.rm-bottom { display: grid; gap: 18px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.rm-follow .optin-check { margin: 4px 0 10px; }
@media (max-width: 900px) {
  .rm-cols, .rm-bottom { grid-template-columns: 1fr; }
}
.roadmap h2 svg { width: 20px; height: 20px; flex: none; vertical-align: -3px; margin-right: 4px; }

/* Jouez les mains des pros */
.hero .kicker { font-size: .9rem; font-weight: 700; margin: 0 0 6px; color: var(--muted); }
.hero .kicker a { color: inherit; }
.ph-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ph-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ph-card:hover, .ph-card:focus-visible { border-color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.ph-card h2 { font-size: 1.2rem; margin: 0; padding-right: 54px; }
.ph-year { position: absolute; top: 14px; right: 14px; background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; border-radius: 99px; padding: 2px 9px; }
.ph-event, .ph-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.ph-who { margin: 0; font-size: .95rem; }
.ph-hole { display: flex; gap: 5px; margin: 4px 0; }
.ph-felt { max-width: 860px; border-radius: 80px / 60px; }
.ph-opps { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; width: 100%; }
.ph-felt .seat { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 14px; transition: background .2s; }
.ph-felt .seat.is-turn { background: rgba(255, 215, 106, .18); box-shadow: 0 0 0 2px #ffd76a; }
.ph-felt .seat.is-win { background: rgba(120, 220, 140, .2); box-shadow: 0 0 0 2px #7fdc8c; }
.ph-felt .seat.is-folded .hand { opacity: .4; }
.ph-felt .who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.ph-felt .blind { background: rgba(0,0,0,.35); border-radius: 99px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.ph-felt .act { font-size: .88rem; color: #ffd76a; min-height: 1.2em; text-align: center; }
.ph-made { font-size: .85rem; font-weight: 700; background: rgba(0,0,0,.35); border-radius: 99px; padding: 1px 9px; }
.ph-panel { max-width: 860px; margin: 14px auto 0; }
.ph-ask, .ph-reveal, .ph-end { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.ph-q { margin: 0 0 10px; font-weight: 700; }
.ph-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-reveal.is-same { border-left: 5px solid var(--verified); }
.ph-reveal.is-close { border-left: 5px solid var(--warning); }
.ph-reveal.is-diff { border-left: 5px solid var(--accent); }
.ph-verdict { font-weight: 800; font-size: 1.05rem; margin: 0 0 6px; }
.ph-compare { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; font-size: .95rem; }
.ph-why { margin: 0 0 12px; }
.ph-score { font-weight: 800; font-size: 1.1rem; margin: 0 0 8px; }
.ph-eq { margin: 12px 0; }
.ph-eq caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.ph-log { max-width: 860px; margin: 16px auto 0; }
.ph-log summary { cursor: pointer; font-weight: 700; }
.ph-log ol { margin: 10px 0 0; padding-left: 1.3em; }
.ph-log li.ph-street { font-weight: 700; list-style: none; margin: 8px 0 2px -1.3em; }
.ph-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 860px; margin: 18px auto 0; }
.ph-sources { max-width: 860px; margin: 24px auto 0; }
.ph-sources h2 { font-size: 1.1rem; }
@media (max-width: 600px) {
  .ph-felt { border-radius: 40px; border-width: 6px; padding: 16px 8px; }
  .ph-felt .pc { width: 38px; height: 54px; font-size: .95rem; }
  .ph-choices .btn { flex: 1 1 45%; }
}

/* Liste des clubs : logo */
.club-cell { display: flex; align-items: center; gap: 10px; }
.club-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--line); display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--ink); overflow: hidden; }
span.club-logo { background: var(--ink-wash); }
/* Diffusion */
.mailing-form fieldset { margin-bottom: 14px; }
.mail-body { white-space: pre-wrap; font-family: var(--font-body); font-size: .95rem; margin: 10px 0 0; }
.filters-panel .form-grid { margin-bottom: 4px; }

/* Logo PokerSpot (épingle + nom bicolore) */
:root { --header-h: 64px; }
.brand { font-stretch: 100%; gap: 10px; }
.brand img { width: auto; height: 46px; }
.brand .bn { display: block; font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.brand .bn b { color: #FB031F; font-weight: 800; }
.brand small { margin-top: 3px; font-size: .7rem; letter-spacing: .06em; opacity: .85; }
@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand img { height: 40px; }
  .brand .bn { font-size: 1.2rem; }
  .brand small { font-size: .6rem; letter-spacing: .03em; }
}
.price-tag { display: inline-block; font-size: .8rem; font-weight: 700; background: var(--ink-wash); border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.pricing-table input, .pricing-table select { max-width: 9em; }
.linklike.danger { color: #c0392b; }

/* À propos : l'histoire du site */
.about-story { margin: 28px 0 8px; padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-m); }
.about-story-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.about-story-head img { flex: none; width: 50px; height: auto; }
.about-story-head h2 { margin: 0; }
.about-by { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.about-lead { font-size: 1.08rem; }
.about-quote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--ink); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 18px; }
.about-col { padding: 14px 16px; background: var(--ink-wash); border-radius: var(--r-s); }
.about-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; }
.about-col h3 svg { width: 18px; height: 18px; color: var(--accent); }
.about-col p { margin: 0; }
.about-conviction { margin-top: -6px; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.about-sign { margin: 14px 0 4px; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; text-align: right; }
@media (max-width: 600px) {
  .about-story { padding: 18px 16px 14px; }
  .about-cols { grid-template-columns: 1fr; }
  .about-quote { font-size: 1.12rem; }
}

/* Tournoi en plusieurs jours (Day 1A, Day 1B, Day 2…) */
.days-box { margin: 4px 0 14px; padding: 12px 14px; background: var(--ink-wash); border-radius: var(--r-s); }
.days-box > .check { font-weight: 600; }
#days-fields { margin-top: 10px; }
.day-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .9fr) auto; gap: 10px; align-items: end; }
.day-row .field { margin-bottom: 8px; }
.day-row .day-remove { margin-bottom: 18px; color: var(--muted); }
.days-actions { margin: 4px 0 6px; }
.days-list { list-style: none; margin: 4px 0 0; padding: 0; }
.days-list li { display: flex; gap: 10px; padding: 3px 0; }
.days-list b { min-width: 64px; }
@media (max-width: 560px) {
  .day-row { grid-template-columns: 1fr 1fr; gap: 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .day-row .field:first-child { grid-column: 1 / -1; }
  .day-row .day-remove { grid-column: 1 / -1; justify-self: start; margin: 0; }
}
@media (min-width: 561px) {
  .day-row + .day-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .day-row + .day-row .day-remove { margin-bottom: 18px; }
}

/* Administration : audience maison */
.aud-periods { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.aud-up { color: var(--verified); font-weight: 700; }
.aud-down { color: var(--accent); font-weight: 700; }
.aud-chart { margin-bottom: 18px; }
.aud-chart h2, .aud-grid h2 { font-size: 1.05rem; margin: 0 0 12px; }
.aud-chart svg { display: block; width: 100%; height: 220px; }
.aud-pv { fill: color-mix(in srgb, var(--ink) 18%, white); }
.aud-vis { fill: var(--accent); }
.aud-axis { stroke: var(--line); stroke-width: 2; }
.aud-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; color: var(--muted); }
.aud-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.aud-key.vis { background: var(--accent); }
.aud-key.pv { background: color-mix(in srgb, var(--ink) 18%, white); margin-left: 10px; }
.aud-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 18px; }
.aud-list { margin: 0; padding-left: 1.3em; }
.aud-list li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); }
.aud-list li:last-child { border-bottom: 0; }
.aud-list li > a { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.aud-list li > b { margin-left: auto; font-variant-numeric: tabular-nums; }
.aud-bars { list-style: none; margin: 0; padding: 0; }
.aud-bars li { position: relative; display: flex; gap: 8px; padding: 6px 8px; margin-bottom: 4px; border-radius: var(--r-s); overflow: hidden; }
.aud-bars .aud-label { flex: 1 1 auto; position: relative; z-index: 1; overflow-wrap: anywhere; }
.aud-bars .aud-val { position: relative; z-index: 1; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aud-bars .aud-val small { font-weight: 400; color: var(--muted); }
.aud-bars .aud-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); z-index: 0; }

/* Diffusion : champs personnalisés et aperçu */
.merge-fields { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.merge-fields .btn { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; padding: 4px 8px; }
.mail-preview { margin: 12px 0; padding: 12px 14px; background: var(--ink-wash); border-radius: var(--r-s); }
.mail-preview pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: .95rem; }

/* Administration : exports et sauvegarde */
.data-page .panel { margin-bottom: 16px; }
.data-page .panel h2 { font-size: 1.15rem; margin: 0 0 10px; }
.data-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.data-row .field { margin: 0; min-width: 180px; }
.data-import { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.data-import .check { margin: 6px 0; }
.aud-export { margin-left: auto; align-self: center; }

/* Carte des clubs */
.filters .f-q { flex: 2 1 170px; }
.mk-chip.club.idle { background: repeating-conic-gradient(var(--ink) 0deg 30deg, #fff 30deg 45deg); }
.mk-chip.club.idle b { font-size: 1rem; }
.club-item { align-items: center; }
.club-item .club-logo { width: 48px; height: 48px; font-size: 1rem; }
.club-item .ev-badges:empty { display: none; }
.club-list-note { margin: 14px 0 0; }
.zone-notice { margin: 0 0 10px; }
.zone-notice[hidden] { display: none; }
.pop-club-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.pop-club-head h3 { margin: 0; }
.pop-club .ev-badges { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 899px) { .filters .f-q { flex: 1 1 100%; } }

/* Diffusion : onglets, envois programmés, textes automatiques */
.mail-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin: 6px 0 16px; }
.mail-tabs a { padding: 9px 14px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: var(--r-s) var(--r-s) 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.mail-tabs a:hover { background: var(--ink-wash); }
.mail-tabs a.is-active { border-bottom-color: var(--accent); color: var(--accent); }
.mail-auto-group h2 { margin-top: 0; }
.mail-auto-list { list-style: none; margin: 0; padding: 0; }
.mail-auto-list > li { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.mail-auto-list > li:first-child { border-top: 0; }
.mail-auto-info { flex: 1; min-width: 0; }
.mail-auto-info p { margin: 4px 0 0; }
.mail-auto-info .badge { margin-left: 6px; }
.var-list { columns: 2 260px; margin: 6px 0; padding-left: 18px; }
tr.is-off td { opacity: .6; }
@media (max-width: 640px) { .mail-auto-list > li { flex-direction: column; } }
.propose-box { margin: 18px 0 6px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.propose-box p { margin: 0; flex: 1 1 220px; }

/* Réseaux sociaux PokerSpot */
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 0; }
.social-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.social-links a:hover span, .social-links a:focus-visible span { text-decoration: underline; }
.site-footer .social-links a { color: #fff; }

/* Administration : veille des tournois */
.watch-item { margin: 14px 0; }
.watch-head { display: flex; gap: 14px; align-items: flex-start; }
.watch-flyer img { width: 110px; max-height: 160px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.watch-info { min-width: 0; flex: 1; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 4px; }
.watch-title { font-size: 1.1rem; margin: 2px 0 4px; overflow-wrap: anywhere; }
.watch-text { margin: 8px 0; }
.watch-text summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.watch-text > div { max-height: 320px; overflow: auto; padding: 8px 10px; background: var(--paper); border-radius: 6px; margin-top: 6px; }
.watch-form { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.watch-actions select, .watch-actions input[type="text"] { max-width: 100%; min-width: 0; flex: 1 1 220px; }
@media (max-width: 560px) { .watch-head { flex-direction: column; } }

/* Administration : logos des clubs */
.table td.logo-cell { width: 56px; padding-right: 0; }
.club-logo-thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.club-logo-thumb.lg { width: 80px; height: 80px; }
.club-logo-thumb.none { background: var(--paper, #f0f2f1); color: var(--muted); font-size: .75rem; font-weight: 700; }
.logo-edit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .table.stack td.logo-cell { width: auto; padding: 4px 12px 0; } }
.cal-kicker { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.watch-bulk { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 14px 0 8px; padding: 10px 14px; }
.watch-bulk select { flex: 1 1 220px; max-width: 360px; }
.watch-meta input[type="checkbox"] { width: 18px; height: 18px; margin: 0 4px 0 0; }

/* Rejoindre l'espace membres d'un club */
.join-choices { display: grid; gap: 16px; }
@media (min-width: 760px) { .join-choices { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } }
.join-choices h2 { font-size: 1.15rem; margin-top: 0; }

/* Billetterie */
.ticket-box .ticket-seats { font-size: 1.05rem; }
.ticket-state { padding: 10px 12px; border-radius: var(--r-m); background: var(--ink-wash); }
.ticket-state.ticket-confirmed { background: #E3F1E8; }
.ticket-state.ticket-offered { background: #FBEBD4; }
.ticket-box form { margin: 0 0 8px; }
.ticket-signup summary { cursor: pointer; font-weight: 700; color: var(--link, #1E5E9E); min-height: 44px; display: flex; align-items: center; }
.table tr.is-muted td { opacity: .6; }
.plain-list { list-style: none; margin: 0 0 18px; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.check .fw-normal { font-weight: 400; }
/* Logiciel de tournoi : assistant et préparation */
.tm-wizard fieldset, #reglages fieldset { margin-bottom: 16px; }
details.tm-advanced { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.tm-advanced > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.tm-section { margin-top: 32px; }
.tm-section .actions, .tm-imports { margin-top: 12px; }
.tm-templates { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.table tr.tm-end td { background: rgba(30, 94, 158, .08); font-weight: 700; }
.tm-photo img { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; border: 1px solid var(--line); }

/* ---------------------------------------------------------------- Espace club : menu en groupes, fiche, jauge, visite */
.space-nav[data-space-nav] { display: block; overflow: visible; }
.space-nav .nav-group { margin: 2px 0; }
.space-nav .nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 4px; min-height: 36px; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: var(--r-s); }
.space-nav .nav-group > summary::-webkit-details-marker { display: none; }
.space-nav .nav-group > summary::after { content: '▾'; font-size: .9rem; transition: transform .15s; }
.space-nav .nav-group:not([open]) > summary::after { transform: rotate(-90deg); }
.space-nav .nav-group > summary:hover { background: var(--ink-wash); color: var(--ink); }
.space-nav .nav-group > summary:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
/* menus en gras, sous-menus en retrait et plus légers */
.space-nav .nav-group + .nav-group { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.space-nav .nav-group > summary { color: var(--ink); font-size: 1rem; font-weight: 800; text-transform: none; letter-spacing: 0; padding: 8px 10px; }
.space-nav .nav-group > a { font-weight: 500; font-size: .93rem; margin: 1px 0 1px 14px; padding: 6px 10px 6px 12px; border-left: 2px solid var(--line); border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--ink-soft, var(--ink)); }
.space-nav .nav-group > a:last-of-type { margin-bottom: 4px; }
.space-nav .nav-group > a[aria-current="page"] { border-left-color: var(--accent); font-weight: 700; color: #fff; }
.space-nav .nav-tabs-groups a { font-weight: 800; }
.space-nav .nav-tabs-items a { font-weight: 500; }
.space-nav .nav-tabs-items a[aria-current="page"] { font-weight: 700; }
.space-nav .nav-tabs { display: none; }
@media (max-width: 959px) {
  .space-nav[data-space-nav] { padding: 6px; }
  .space-nav[data-space-nav] .nav-groups { display: none; }
  .space-nav[data-space-nav] .nav-tabs { display: block; }
  .nav-tabs-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .space-nav .nav-tabs-groups a { text-align: center; white-space: normal; line-height: 1.15; padding: 9px 4px; font-size: .9rem; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
  .space-nav .nav-tabs-groups a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .nav-tabs-items { display: flex; gap: 4px; overflow-x: auto; margin-top: 6px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .space-nav .nav-tabs-items a { white-space: nowrap; flex: none; font-size: .92rem; min-height: 40px; display: inline-flex; align-items: center; }
}

.completion { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; margin: 0 0 20px; }
.completion.is-done { border-color: color-mix(in srgb, var(--verified) 45%, white); }
.completion-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.completion h2 { font-size: 1.1rem; margin: 0; }
.completion-bar { height: 12px; border-radius: 99px; background: var(--ink-wash); overflow: hidden; margin: 10px 0 8px; }
.completion-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--warning), var(--verified)); transition: width .4s ease; }
.completion.is-done .completion-bar span { background: var(--verified); }
.completion-list { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 2px; }
.completion-done { margin: 0; color: color-mix(in srgb, var(--verified) 80%, black); font-weight: 700; }

.profile-layout { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .profile-layout { grid-template-columns: minmax(0, 1fr) 320px; } .profile-preview { position: sticky; top: calc(var(--header-h) + 16px); } }
.profile-form fieldset, .profile-form .more-info { margin-bottom: 18px; }
.profile-form .more-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 16px; }
.profile-form .more-info > summary { cursor: pointer; font-weight: 800; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.section-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.save-status { font-weight: 700; font-size: .95rem; }
.save-status.is-ok { color: color-mix(in srgb, var(--verified) 85%, black); }
.save-status.is-err { color: var(--accent); }
.save-sticky { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; background: color-mix(in srgb, var(--paper) 94%, transparent); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .save-sticky { position: static; border-top: 0; background: none; } .js .profile-form .save-sticky .btn { display: none; } .js .profile-form .save-sticky .save-status:empty { display: none; } }
@media (max-width: 959px) { .js .profile-form .section-save { display: none; } }
.logo-pick { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.logo-preview, .pv-logo { width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.5rem; }
.logo-preview img, .pv-logo img { width: 100%; height: 100%; object-fit: cover; }
.sched-helper { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.sched-days { display: flex; flex-wrap: wrap; gap: 4px; }
.sched-helper .day-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); cursor: pointer; font-size: .9rem; }
.sched-helper .day-chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.sched-helper input[type=time] { width: auto; min-height: 36px; }
.profile-preview details > summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.pv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; margin: 6px 0 8px; }
.pv-card .club-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pv-card .pv-logo { width: 64px; height: 64px; font-size: 1.2rem; }
.pv-name { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.pv-desc { white-space: pre-line; font-size: .95rem; margin: 0 0 10px; }
.pv-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0 0 8px; font-size: .9rem; }
.pv-facts dt { font-weight: 700; color: var(--muted); }
.pv-facts dd { margin: 0; white-space: pre-line; }
.pv-card .is-empty { color: var(--muted); font-style: italic; }
.pv-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.tour-spot { position: fixed; z-index: 1400; pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 4px #F2B705, 0 0 0 9999px rgba(10, 20, 24, .55); transition: all .2s ease; }
.tour-box { position: fixed; z-index: 1450; width: min(360px, calc(100vw - 24px)); background: #fff; color: var(--text); border-radius: 12px; padding: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.tour-box h2 { font-size: 1.15rem; margin: 0 0 8px; }
.tour-box p { margin: 0 0 10px; }
.tour-count { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tour-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.space > *, .profile-layout > * { min-width: 0; }
.profile-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .profile-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.sched-helper .day-chip { position: relative; }
.sched-helper .day-chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none; border: 0; background: none; }
.sched-helper .day-chip:focus-within { outline: 3px solid var(--link); outline-offset: 1px; }
.profile-form [id], .profile-form .field { scroll-margin-top: calc(var(--header-h) + 24px); }
/* Accueil : ce week-end / près de chez vous */
.section-soon { padding-top: 18px; }
.soon-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.soon-tab { font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; padding: 10px 16px; border-radius: 99px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.soon-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.soon-count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .85rem; margin-left: 4px; }
.soon-near-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.soon-near-head p { margin: 0; flex: 1 1 280px; }
/* Favoris */
.fav-btn { margin: 4px 0 8px; }
.fav-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.fav-count { display: inline-block; min-width: 1.4em; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .78rem; text-align: center; }
.fav-section { margin-top: 24px; }
.fav-item { display: flex; justify-content: space-between; gap: 8px; }
.fav-club { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; margin: 0 0 10px; background: var(--surface); }
.fav-club-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.fav-club h3 { margin: 0; }
.fav-next { margin: 6px 0 0; padding-left: 1.1em; }
