/* ==========================================================================
   PassionPadel.fr — Proposition de design V3 « Court Éditorial »
   Un seul fichier CSS pour tout le site (remplace styles.css / pages.css /
   navigation.css / centres.css). Mobile-first, sans !important.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #0057FF;
  --blue-600: #0046CC;
  --blue-50: #EEF3FF;
  --blue-100: #DCE7FF;
  --ink: #0A1830;
  --ink-2: #12264A;
  --text: #2A303A;
  --muted: #5B6270;
  --lime: #D6FF4B;
  --lime-ink: #2B3305;
  --lime-50: #F4FFC9;
  --paper: #F8F7F4;
  --paper-2: #EFEEE8;
  --white: #FFFFFF;
  --red: #D23B3B;
  --red-50: #FDEDED;
  --line: rgba(20, 23, 28, .12);
  --line-strong: rgba(20, 23, 28, .22);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(10, 24, 48, .06);
  --shadow-md: 0 1px 2px rgba(10, 24, 48, .05), 0 14px 34px -14px rgba(10, 24, 48, .22);

  --wrap: 1200px;
  --gutter: 20px;

  --f-display: 'Chillax', 'Albert Sans', system-ui, sans-serif;
  --f-body: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
}

@font-face {
  font-family: 'Chillax';
  src: url('https://cdn.fontshare.com/wf/ZYDQ23QUC5RIWZP2XNQDB6EQIKJAJRWI/OQWULF7QT4HTMBH6W3XY6DESOSZLWT3L/7L7IIHAKMJC3Z2MTNHMMKSRMMTKZN4OJ.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.section-tight { padding-block: 32px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { top: 12px; }

/* ---------- 3. Boutons & petits éléments ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--f-body);
  padding: 14px 22px; border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .18s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-light { background: var(--paper); color: var(--blue); }
.btn-light:hover { background: #fff; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #E6FF8A; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost.on-light { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost.on-light:hover { background: var(--paper-2); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.on-dark { color: var(--lime); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--f-body); padding: 7px 12px; border-radius: 100px;
  background: var(--blue-50); color: var(--blue-600);
}
.chip .ico { width: 14px; height: 14px; }
.chip-lime { background: var(--lime); color: var(--lime-ink); }
.chip-line { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--blue); text-decoration: none;
}
.link-arrow .ico { width: 1.05em; height: 1.05em; transition: transform .18s; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(248, 247, 244, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav { flex: 1; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; background: var(--blue-50); }
.header-cta { margin-left: auto; }
.burger {
  display: none; margin-left: 6px; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger .ico { width: 22px; height: 22px; }

@media (max-width: 1040px) {
  .site-header .bar { gap: 12px; }
  .burger { display: inline-flex; }
  .nav {
    position: absolute; inset: 68px 12px auto 12px; flex: none;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-md); padding: 8px; display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 14px 14px; font-size: 18px; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .header-cta { padding: 10px 12px; font-size: 13px; }
  .brand img { height: 22px; }
}

/* ---------- 5. Footer ---------- */
.site-footer { background: var(--ink); color: #B5C2DD; margin-top: 40px; }
.site-footer .top { display: grid; gap: 40px; padding-block: 56px 40px; grid-template-columns: 1.3fr repeat(3, 1fr); }
.site-footer img { height: 28px; width: auto; margin-bottom: 18px; }
.site-footer p { font-size: 15px; max-width: 34ch; }
.site-footer h4 { font: 700 13px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 15px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .top > :first-child { grid-column: 1 / -1; } }

/* ---------- 6. Hero homepage ---------- */
.hero { padding: 12px var(--gutter) 0; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--wrap) + 40px); margin-inline: auto;
  background: var(--blue); color: #fff; border-radius: var(--r-xl);
  padding: 56px 28px 96px;
  display: grid; gap: 40px; align-items: center;
}
.hero-card::before {            /* halo */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(214, 255, 75, .28), transparent 70%);
}
.hero-card::after {             /* lignes de terrain en filigrane */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) left 38% top 0 / 2px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) left 0 top 62% / 100% 2px no-repeat;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: var(--lime); color: var(--lime-ink);
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 100px;
}
.hero .badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-ink); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.hero h1 { color: #fff; font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { color: #D4E0FF; font-size: 19px; max-width: 46ch; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta .btn { padding: 16px 26px; font-size: 16px; }

.court-card {
  position: relative; justify-self: center; width: min(100%, 380px);
  background: var(--ink); border-radius: var(--r-lg); padding: 18px;
  box-shadow: 0 30px 60px -24px rgba(0, 10, 40, .6); border: 1px solid rgba(255, 255, 255, .1);
}
.court-card svg { width: 100%; height: auto; }
.court-tag {
  position: absolute; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13px;
  padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px;
}
.court-tag b { font-family: var(--f-num); font-size: 20px; color: var(--blue); letter-spacing: .02em; }
.court-tag.t1 { left: -18px; top: 18%; }
.court-tag.t2 { right: -14px; top: 52%; }
.court-tag.t3 { left: 8%; bottom: -14px; }
@media (max-width: 520px) { .court-tag.t1 { left: -6px; } .court-tag.t2 { right: -6px; } }
@media (min-width: 940px) {
  .hero-card { grid-template-columns: 1.15fr .85fr; padding: 72px 64px 120px; gap: 56px; }
}

/* Stats chevauchant le hero */
.stats {
  position: relative; z-index: 2; margin: -56px auto 0; max-width: calc(var(--wrap) - 80px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat { padding: 22px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(30px, 5vw, 52px)/1 var(--f-num); color: var(--blue); letter-spacing: .01em; }
.stat span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) { .stats { margin-inline: var(--gutter); } .stat { padding: 16px 6px; } }

/* ---------- 7. Titres de section ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 14px; max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 46ch; margin: 12px 0 0; }

/* ---------- 8. Bento du guide ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tile h3 { font-size: 24px; }
.tile p { color: var(--muted); font-size: 15.5px; margin: 0; flex: 1; }
.tile .icon-box {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 6px;
}
.tile .icon-box .ico { width: 26px; height: 26px; }
.tile .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); font-size: 15px; margin-top: 6px; }
.tile .go .ico { width: 1.05em; height: 1.05em; transition: transform .18s; }
.tile:hover .go .ico { transform: translateX(4px); }
.tile.s2 { grid-column: span 2; } .tile.s3 { grid-column: span 3; } .tile.s4 { grid-column: span 4; }

.tile.feature { background: var(--ink); border-color: var(--ink); color: #B9C6E3; min-height: 340px; }
.tile.feature h3 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); max-width: 14ch; }
.tile.feature p { color: #B9C6E3; max-width: 44ch; font-size: 17px; flex: none; }
.tile.feature .icon-box { background: rgba(214, 255, 75, .14); color: var(--lime); }
.tile.feature .go { color: var(--lime); }
.tile.feature .bg-court { position: absolute; right: -40px; bottom: -60px; width: 300px; opacity: .5; pointer-events: none; }
.tile.feature .mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; position: relative; }
.tile.feature .mini span { font: 600 13px/1 var(--f-body); color: #fff; padding: 8px 12px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .2); }

.tile.tint { background: var(--blue-50); border-color: var(--blue-100); }
.tile.lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.tile.lime h3 { color: var(--lime-ink); }
.tile.lime p { color: #4A5313; }
.tile.lime .icon-box { background: rgba(43, 51, 5, .1); color: var(--lime-ink); }
.tile.lime .go { color: var(--lime-ink); }
.tile .big-num { position: absolute; right: 22px; top: 8px; font: 800 96px/1 var(--f-num); color: rgba(0, 87, 255, .07); pointer-events: none; }
.tile.lime .big-num { color: rgba(43, 51, 5, .08); }

@media (max-width: 960px) { .tile.s2, .tile.s3, .tile.s4 { grid-column: span 3; } .tile.feature { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tile.s2, .tile.s3, .tile.s4 { grid-column: 1 / -1; } .tile { padding: 24px; } }

/* ---------- 9. Les 4 règles essentielles ---------- */
.steps { display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.step { padding: 28px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step .n { font: 800 64px/1 var(--f-num); color: var(--blue); letter-spacing: .01em; }
.step h3 { font-size: 21px; margin: 10px 0 8px; }
.step p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* ---------- 10. Bandeau « trouver un centre » ---------- */
.band {
  position: relative; overflow: hidden; background: var(--lime); color: var(--lime-ink);
  border-radius: var(--r-xl); padding: 40px 28px; display: grid; gap: 28px; align-items: center;
}
.band h2 { color: var(--lime-ink); font-size: clamp(30px, 4.4vw, 48px); max-width: 16ch; }
.band p { color: #4A5313; font-size: 18px; margin: 12px 0 0; max-width: 42ch; }
.search-box {
  display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-md);
}
.search-box .field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--muted); min-width: 0; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--f-body); color: var(--ink); padding: 14px 0; }
.search-box input::placeholder { color: #8A909C; }
.search-box .btn { border-radius: 10px; }
.band .quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.band .quick a { font-size: 13px; font-weight: 600; color: var(--lime-ink); text-decoration: none; padding: 7px 12px; border-radius: 100px; background: rgba(43, 51, 5, .1); }
.band .quick a:hover { background: rgba(43, 51, 5, .18); }
@media (min-width: 940px) { .band { grid-template-columns: 1fr 1fr; padding: 56px 56px; gap: 56px; } }
@media (max-width: 520px) { .search-box { flex-direction: column; } .search-box .btn { justify-content: center; } }

/* ---------- 11. En-tête de page intérieure ---------- */
.page-head { position: relative; overflow: hidden; padding: 40px 0 36px; }
.page-head .art { position: absolute; right: 2%; top: -10px; width: 380px; color: var(--blue); opacity: .14; pointer-events: none; -webkit-mask-image: linear-gradient(#000 35%, transparent 80%); mask-image: linear-gradient(#000 35%, transparent 80%); }
.page-head > .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.page-head h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.02em; max-width: 20ch; margin: 16px 0 20px; }
.page-head .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin-bottom: 22px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .page-head .art { width: 220px; right: -40px; opacity: .09; } }

/* ---------- 12. Article ---------- */
.article-grid { display: grid; gap: 40px; padding-bottom: 24px; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }

.prose { max-width: 740px; }
.prose > section { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose > section:first-child { border-top: 0; padding-top: 8px; }
.prose h2 { font-size: clamp(26px, 3.2vw, 36px); display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.prose h2 .no { font: 800 .8em/1 var(--f-num); color: var(--blue); letter-spacing: .04em; }
.prose h3 { font-size: 22px; margin: 28px 0 8px; }
.prose p { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose strong { color: var(--ink); font-weight: 650; }

.checklist, .faultlist { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.checklist li, .faultlist li {
  position: relative; padding: 14px 16px 14px 56px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md); font-size: 17px; line-height: 1.5; color: var(--text);
}
.checklist li::before, .faultlist li::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 16px;
}
.checklist li::before {
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B3305' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.faultlist li::before {
  background-color: var(--red-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D23B3B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.checklist.ordered { counter-reset: c; }
.checklist.ordered li::before {
  counter-increment: c; content: counter(c); background-image: none;
  display: grid; place-items: center; font: 800 16px/1 var(--f-num); color: var(--lime-ink);
}

.callout { border-radius: var(--r-md); padding: 20px 22px; margin: 22px 0; display: flex; gap: 14px; align-items: flex-start; }
.callout .ico { width: 24px; height: 24px; margin-top: 3px; }
.callout p { margin: 0; font-size: 17px; line-height: 1.6; }
.callout.info { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-600); }
.callout.info p { color: var(--ink); }
.callout.warn { background: var(--red-50); border: 1px solid #F6C9C9; color: var(--red); }
.callout.warn p { color: #5A1B1B; }

.versus { display: grid; gap: 14px; margin: 22px 0; }
@media (min-width: 640px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus > div { border-radius: var(--r-md); padding: 22px; border: 1px solid var(--line); background: var(--white); }
.versus h3 { margin: 0 0 8px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.versus p { font-size: 16px; margin: 0; color: var(--muted); }
.versus .ok { border-color: #CFE98A; background: var(--lime-50); }
.versus .ko { border-color: #F6C9C9; background: var(--red-50); }
.versus .tag { font: 700 12px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; }
.versus .ok .tag { background: var(--lime); color: var(--lime-ink); }
.versus .ko .tag { background: var(--red); color: #fff; }

.figure { margin: 24px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.figure svg { width: 100%; height: auto; border-radius: 12px; }
.figure figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.takeaway {
  background: var(--ink); color: #C7D3EE; border-radius: var(--r-lg); padding: 32px; margin-top: 12px; position: relative; overflow: hidden;
}
.takeaway .eyebrow { margin-bottom: 14px; }
.takeaway p { color: #fff; font: 600 clamp(20px, 2.6vw, 26px)/1.4 var(--f-display); margin: 0; max-width: 34ch; }
.takeaway p em { font-style: normal; color: var(--lime); }

/* Aside */
.aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .aside { position: sticky; top: 92px; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel h4 { font: 700 13px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.toc a::before { counter-increment: t; content: counter(t, decimal-leading-zero); font: 700 14px/1 var(--f-num); color: var(--blue); letter-spacing: .06em; }
.toc.plain a::before { display: none; }
.toc a:hover { background: var(--paper-2); }
.toc a.is-active { background: var(--blue-50); color: var(--blue-600); font-weight: 600; }
.panel.dark { background: var(--ink); border-color: var(--ink); color: #B9C6E3; }
.panel.dark h4 { color: var(--lime); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 12px; font-size: 15px; }
.facts li:last-child { border: 0; padding: 0; }
.facts b { font: 800 26px/1 var(--f-num); color: #fff; letter-spacing: .03em; text-align: right; }

/* Pager prev/next */
.pager { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, transform .15s; }
.pager a:hover { border-color: var(--blue); transform: translateY(-2px); }
.pager small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.pager strong { font: 600 21px/1.2 var(--f-display); color: var(--ink); }
.pager .next { text-align: right; }

/* ---------- 13. Hub des règles ---------- */
.quick-facts { background: var(--ink); color: #B9C6E3; border-radius: var(--r-xl); padding: 32px 28px; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); position: relative; overflow: hidden; }
.quick-facts .qf b { display: block; font: 800 clamp(34px, 5vw, 56px)/1 var(--f-num); color: var(--lime); letter-spacing: .01em; }
.quick-facts .qf span { display: block; margin-top: 8px; font-size: 15px; color: #fff; font-weight: 500; }
.quick-facts .qf small { display: block; font-size: 13.5px; color: #8FA0C4; margin-top: 2px; }
@media (max-width: 760px) { .quick-facts { grid-template-columns: 1fr 1fr; } }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.cards .tile { padding: 26px; }
.cards .tile h3 { font-size: 22px; }

.gear { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .gear { grid-template-columns: 1fr; } }
.gear div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.gear h3 { font-size: 21px; margin: 14px 0 6px; }
.gear p { font-size: 15.5px; color: var(--muted); margin: 0; }
.gear .icon-box { width: 46px; height: 46px; border-radius: 14px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s; }
.faq details[open] { border-color: var(--blue); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 600 19px/1.3 var(--f-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--blue); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); font-size: 16.5px; }
.faq .answer p { margin: 0; }

/* ---------- 14. Annuaire des centres ---------- */
.finder { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-md); display: grid; gap: 8px; }
.finder .field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; min-height: 54px; color: var(--muted); }
.finder .field:focus-within { background: var(--blue-50); }
.finder input, .finder select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--f-body); color: var(--ink); height: 54px; }
.finder select { cursor: pointer; appearance: none; -webkit-appearance: none; }
.finder .btn { justify-content: center; border-radius: 12px; min-height: 54px; }
@media (min-width: 900px) { .finder:not(.finder-4) { grid-template-columns: 1.6fr 1fr auto; } .finder:not(.finder-4) .field + .field { border-left: 1px solid var(--line); border-radius: 0; } }

.dir { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 1000px) { .dir { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; } }
.filters { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .filters { position: sticky; top: 92px; } }
.filters .panel { padding: 20px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 4px; }
.filters legend { font: 700 13px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15.5px; cursor: pointer; color: var(--text); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; margin: 0; cursor: pointer; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check .count { margin-left: auto; font-size: 13px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { text-align: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 4px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results-bar h2 { font-size: 24px; }
.results-bar h2 small { font: 500 16px var(--f-body); color: var(--muted); margin-left: 8px; }
.sort { font: 500 14px var(--f-body); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { font: 600 14px var(--f-body); color: var(--ink); border: 1px solid var(--line-strong); background: #fff; border-radius: 10px; padding: 8px 10px; }

.centers { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .centers { grid-template-columns: 1fr; } }
.center {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  transition: box-shadow .2s, border-color .2s;
}
.center:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.center.featured { border: 2px solid var(--blue); box-shadow: 0 0 0 5px var(--blue-50); }
.center .badge-premium { position: absolute; top: -12px; right: 18px; background: var(--lime); color: var(--lime-ink); font: 700 12px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; }
.center .head { display: flex; gap: 14px; align-items: center; }
.center .logo { width: 64px; height: 64px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; padding: 8px; }
.center .logo img { width: 100%; height: 100%; object-fit: contain; }
.center .logo.dark { background: var(--ink); border-color: var(--ink); }
.center .logo.ph { font: 800 22px var(--f-num); color: var(--blue); background: var(--blue-50); border-color: var(--blue-100); letter-spacing: .04em; }
.center h3 { font-size: 20px; line-height: 1.2; }
.center .where { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.center .where .ico { width: 15px; height: 15px; }
.center .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.center .tags span { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--paper-2); color: var(--ink); }
.center .tags span.k { background: var(--blue-50); color: var(--blue-600); }
.center .desc { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.center .services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.center .services li { display: inline-flex; align-items: center; gap: 6px; }
.center .services li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime-ink); opacity: .55; }
.center .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .dots { border: 0; background: transparent; color: var(--muted); }
.pagination .off { opacity: .4; }

.listing-cta { margin-top: 28px; border-radius: var(--r-lg); background: var(--blue-50); border: 1px dashed var(--blue); padding: 24px; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.listing-cta h3 { font-size: 20px; }
.listing-cta p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none; transition: none; }
}


/* ==========================================================================
   Ajouts production : contenu CMS, listes, FAQ dynamique, erreurs, centres PHP
   ========================================================================== */

/* Contenu issu de la base (apprendre / tournois / FAQ) et pages éditoriales */
.prose h3:first-child { margin-top: 0; }
.prose ul:not([class]), .prose ol:not([class]) { margin: 0 0 1.2em; padding-left: 1.35em; display: grid; gap: .5em; }
.prose ul:not([class]) li, .prose ol:not([class]) li { font-size: 18px; line-height: 1.6; padding-left: .2em; }
.prose ul:not([class]) li::marker { color: var(--blue); }
.prose ol:not([class]) li::marker { color: var(--blue); font-weight: 700; }
.prose a:not(.btn):not(.link-arrow) { font-weight: 600; }
.prose img { border-radius: var(--r-md); height: auto; margin: 1em 0; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--blue-50); color: var(--ink); font-weight: 650; }
.prose-solo { max-width: 780px; margin-inline: 0; }
.prose-solo > section:first-child { padding-top: 0; }
.detail-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r-lg); margin: 0 0 32px; border: 1px solid var(--line); }
.lead-img { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.panel .lead-img { border: 0; width: 100%; }

.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.linklist a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.linklist a::after { content: "→"; color: var(--blue); transition: transform .15s; }
.linklist a:hover { background: var(--paper-2); }
.linklist a:hover::after { transform: translateX(3px); }
.prose .linklist { margin-top: 12px; }
.prose .linklist a { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; font-size: 17px; }
.prose .linklist { gap: 8px; }

/* Cartes de liste avec visuel (apprendre / tournois) */
.tile .thumb { margin: -28px -28px 10px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-50); }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .thumb img { transform: scale(1.04); }
.intro-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; margin-bottom: 24px; display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .intro-block.has-img { grid-template-columns: 340px minmax(0, 1fr); } }
.intro-block img { width: 100%; border-radius: var(--r-md); }
.intro-block h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }

/* FAQ alimentée par la base */
.faq details .answer { padding-top: 2px; }
.faq .answer p, .faq .answer li { color: var(--muted); font-size: 16.5px; }
.faq .answer ul, .faq .answer ol { padding-left: 1.3em; margin: .5em 0; }
.faq .answer a { font-weight: 600; }
.faq.wide { max-width: none; }

/* Pages d'erreur / contact / plan du site */
.error-hero { text-align: center; padding: 72px 0 40px; }
.error-hero .code { font: 800 clamp(120px, 24vw, 240px)/.85 var(--f-num); color: var(--blue); letter-spacing: .02em; }
.error-hero .code span { color: var(--lime-ink); background: var(--lime); border-radius: 24px; padding: 0 .12em; }
.error-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 20px 0 12px; }
.error-hero p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; font-size: 18px; }
.error-hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.contact-card { display: grid; gap: 14px; background: var(--ink); color: #B9C6E3; border-radius: var(--r-xl); padding: 36px 32px; max-width: 640px; }
.contact-card h2 { color: #fff; font-size: 28px; }
.contact-card a.mail { font: 700 clamp(22px, 4vw, 32px)/1.2 var(--f-display); color: var(--lime); text-decoration: none; word-break: break-all; }
.contact-card a.mail:hover { text-decoration: underline; }

.sitemap { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sitemap .panel h2 { font: 700 13px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* Annuaire PHP : 4 filtres dans la barre */
.finder.finder-4 { grid-template-columns: 1fr; }
.finder.finder-4 .field { border-radius: 12px; }
.finder.finder-4 .field label { display: none; }
.finder.finder-4 select { width: 100%; }
@media (min-width: 700px) { .finder.finder-4 { grid-template-columns: 1fr 1fr; } .finder.finder-4 .search-field { grid-column: 1 / -1; } .finder.finder-4 .btn { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .finder.finder-4 { grid-template-columns: 1.6fr 1fr 1fr .8fr auto; }
  .finder.finder-4 .search-field, .finder.finder-4 .btn { grid-column: auto; }
  .finder.finder-4 .field + .field { border-left: 1px solid var(--line); border-radius: 0; }
}
.finder.finder-4 .field { position: relative; }
.finder-reset { display: inline-flex; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.centers-wrap { margin-top: 36px; }
.centers.cols-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .centers.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .centers.cols-3 { grid-template-columns: 1fr; } }
.empty { text-align: center; background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 48px 24px; }
.empty h3 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.results-bar .page-info { font: 500 16px var(--f-body); color: var(--muted); margin-left: 8px; }
.center .btn.btn-ghost.on-light { background: transparent; }

/* Finitions production */
.finder select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6270' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 18px; padding-right: 26px; }
.center .logo { background: var(--ink); border-color: var(--ink); }
.cards .tile .thumb { margin: -26px -26px 10px; }

/* Pushs vers les niveaux de tournois (P25 … P2000), colonne de droite */
.level-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.level-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; transition: transform .18s, border-color .18s, background .18s; }
.level-list b { font: 800 28px/1 var(--f-num); color: var(--blue); letter-spacing: .02em; }
.level-list span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.level-list .ico { width: 14px; height: 14px; transition: transform .18s; }
.level-list a:hover { border-color: var(--blue); background: var(--blue-50); transform: translateX(2px); }
.level-list a:hover span { color: var(--blue); }
.level-list a:hover .ico { transform: translateX(3px); }

.level-list a.is-current { background: var(--blue); border-color: var(--blue); }
.level-list a.is-current b, .level-list a.is-current span { color: #fff; }
