/* =========================================================================
   Club Chevry 2 Échecs — Thème du nouveau site
   Style : SOMBRE PREMIUM · fond noir + échiquier en filigrane (beaux gris)
   Rouge du club lumineux en accent · cartes translucides (l'échiquier
   transparaît) · typographie Space Grotesk + Inter conservée
   ========================================================================= */

:root {
  --red:        #f5262f;   /* rouge du club, avivé pour briller sur le noir */
  --red-soft:   #ff5a62;
  --red-dark:   #c81620;
  --red-glow:   rgba(245,38,47,.42);
  --red-tint:   rgba(245,38,47,.14);

  --ink:        #ededf2;   /* texte principal (presque blanc) */
  --ink-dim:    #cfcfd8;
  --muted:      #8d8d9b;   /* texte secondaire */

  --bg:         #0c0c10;   /* fond de page (noir profond) */
  --bg-2:       rgba(0,0,0,.28);          /* bandes de sections */
  --surface:    rgba(22,22,29,.66);       /* cartes translucides */
  --surface-2:  #16161d;                  /* surface opaque */
  --charcoal:   #101015;
  --charcoal-2: #1c1c25;

  --line:       rgba(255,255,255,.09);
  --line-2:     rgba(255,255,255,.16);
  --line-dark:  rgba(255,255,255,.08);

  --shadow:     0 12px 34px rgba(0,0,0,.45);
  --shadow-lg:  0 28px 64px rgba(0,0,0,.6);
  --radius:     16px;
  --maxw:       1180px;
  --font-head:  "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  /* Échiquier en filigrane, gris subtils, fixé en fond d'écran */
  background-image: repeating-conic-gradient(#16161e 0 25%, #0d0d12 0 50%);
  background-size: 150px 150px;
  background-attachment: fixed;
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: #fff;
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}

a { color: var(--red-soft); text-decoration: none; transition: color .15s ease; }
a:hover { color: #fff; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--red-soft);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); display: inline-block; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .82em 1.6em; border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .97rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 22px var(--red-tint); }
.btn-primary:hover { color: #fff; background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 30px var(--red-glow); }
.btn-dark { background: var(--surface-2); color: #fff; border-color: var(--line-2); }
.btn-dark:hover { color: #fff; background: var(--charcoal-2); transform: translateY(-2px); }
.btn-light { background: #fff; color: #14141a; }
.btn-light:hover { background: #fff; color: var(--red); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.4); }
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: rgba(255,255,255,.05); color: #fff; border-color: var(--red); }

/* ---------- Bandeau haut ---------- */
.topbar { background: #08080b; color: var(--muted); font-size: .84rem; border-top: 3px solid var(--red); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 9px 24px; }
.topbar a { color: var(--ink-dim); }
.topbar a:hover { color: var(--red-soft); }
.topbar .tb-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,14,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 48px; height: 48px; border-radius: 10px; box-shadow: var(--shadow); }
.brand .b-name { font-family: var(--font-head); font-weight: 700; font-size: 1.16rem; color: #fff; line-height: 1.05; letter-spacing: -.02em; }
.brand .b-sub { font-size: .71rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 9px 14px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink-dim);
  position: relative;
}
.menu > li > a:hover, .menu > li.current > a { color: var(--red-soft); }
.menu > li.current > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--red); border-radius: 2px; }
.menu .has-sub > a::after { content: " ▾"; color: var(--muted); font-size: .8em; }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 6px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .16s ease;
}
.menu .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: .92rem; color: var(--muted); font-weight: 500; }
.submenu a:hover { background: rgba(255,255,255,.06); color: var(--red-soft); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: var(--surface-2); color: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--ink); background: transparent; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; top: -30%; right: -12%; width: 640px; height: 640px;
  background: radial-gradient(circle, var(--red-glow), transparent 62%); pointer-events: none; opacity: .5;
}
.hero .container { position: relative; z-index: 2; padding: 96px 24px 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.8vw, 4.3rem); font-weight: 700; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--red-soft); text-shadow: 0 0 40px var(--red-glow); }
.hero p.lead { font-size: 1.2rem; color: var(--ink-dim); max-width: 40ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-badges { display: flex; gap: 0; margin-top: 50px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; width: fit-content; background: var(--surface); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.hero-badge { padding: 18px 26px; border-right: 1px solid var(--line); }
.hero-badge:last-child { border-right: none; }
.hero-badge .num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-badge .lbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 5px; }

.hero-piece {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 22px;
  background: #1a1720 url('../images/hero-chess.png') center/cover no-repeat;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,.5); position: relative; overflow: hidden;
}
.hero-piece::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(8,8,11,.1) 0%, rgba(8,8,11,.35) 100%);
}
.hero-piece .glyph { position: relative; font-size: clamp(8rem, 17vw, 12.5rem); color: rgba(255,255,255,.94); line-height: 1; text-shadow: 0 10px 34px rgba(0,0,0,.55); }
.hero-piece .tag { position: absolute; bottom: 20px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: 7px 16px; border-radius: 999px; box-shadow: 0 8px 24px var(--red-glow); }

/* ---------- Bande défilante (marquee) ---------- */
.marquee { background: rgba(0,0,0,.5); color: #fff; overflow: hidden; white-space: nowrap; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee .track { display: inline-block; animation: scroll 34s linear infinite; font-family: var(--font-head); font-weight: 500; letter-spacing: .02em; }
.marquee .track span { margin: 0 24px; font-size: .88rem; color: var(--ink-dim); }
.marquee .track span::after { content: "♟"; margin-left: 24px; color: var(--red-soft); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .eyebrow { justify-content: flex-start; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-alt { background: var(--bg-2); }
.section-dark { background: rgba(0,0,0,.4); color: var(--ink-dim); }
.section-dark h2, .section-dark h3 { color: #fff; }

.checker-rule { height: 4px; background: var(--red); box-shadow: 0 0 18px var(--red-glow); }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.news-card {
  background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 30px var(--red-tint); border-color: var(--line-2); }
.news-thumb {
  height: 150px; display: grid; place-items: center; color: #fff; font-size: 3.3rem;
  background: #0a0a0e; position: relative;
}
.news-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-conic-gradient(rgba(255,255,255,.05) 0 25%, transparent 0 50%);
  background-size: 48px 48px;
}
.news-thumb span { position: relative; }
.news-cat { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .71rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 14px var(--red-glow); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.news-card h3 { font-size: 1.24rem; margin: 8px 0 8px; }
.news-card p { color: var(--muted); font-size: .96rem; margin: 0 0 18px; }
.news-card .read { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: .4em; transition: gap .15s ease, color .15s ease; }
.news-card .read:hover { color: var(--red-soft); gap: .7em; }

/* ---------- Cartes activités ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature {
  background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative; overflow: hidden;
}
.feature::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); box-shadow: 0 0 16px var(--red-glow); transform: scaleY(0); transform-origin: top; transition: transform .2s ease; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), 0 0 30px var(--red-tint); border-color: var(--line-2); }
.feature:hover::after { transform: scaleY(1); }
.feature .ficon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--red-tint); color: var(--red-soft); font-size: 1.7rem; margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(245,38,47,.25); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0 0 14px; }
.feature .read { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--red-soft); }

/* ---------- Horaires ---------- */
.hours-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hours-table { width: 100%; border-collapse: collapse; background: var(--surface); backdrop-filter: blur(8px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hours-table th, .hours-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.hours-table th { background: rgba(0,0,0,.45); color: #fff; font-family: var(--font-head); font-weight: 600; }
.hours-table td { color: var(--ink-dim); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { color: var(--red-soft); font-weight: 700; font-family: var(--font-head); }
.hours-table tbody tr:hover td { background: rgba(255,255,255,.04); }

/* ---------- Bandeau CTA rejoindre ---------- */
.join { position: relative; background: rgba(0,0,0,.45); color: #fff; text-align: center; padding: 92px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.join::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 640px; height: 360px; background: radial-gradient(ellipse, var(--red-glow), transparent 68%); opacity: .55; }
.join .container { position: relative; z-index: 2; }
.join h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.join p { color: var(--ink-dim); max-width: 54ch; margin: 0 auto 30px; font-size: 1.14rem; }

/* ---------- Page intérieure ---------- */
.page-hero { position: relative; background: rgba(0,0,0,.32); color: var(--ink); padding: 72px 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; top: -40%; right: -8%; width: 480px; height: 480px;
  background: radial-gradient(circle, var(--red-glow), transparent 65%); opacity: .4; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3rem); }
.page-hero p { color: var(--ink-dim); max-width: 62ch; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--red-soft); }

.info-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.card { background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.32rem; }
.card.section-dark { background: rgba(0,0,0,.5); border-color: var(--line-2); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci { color: var(--red-soft); font-size: 1.3rem; width: 28px; text-align: center; }
.contact-list .cl { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list .cv { font-weight: 600; color: var(--ink); }

.tarif-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.tarif { border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; background: rgba(255,255,255,.03); transition: border-color .18s ease, transform .18s ease; }
.tarif:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 0 24px var(--red-tint); }
.tarif .price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: #fff; }
.tarif .price span { font-size: .9rem; color: var(--muted); }
.tarif h4 { margin: 0 0 8px; color: var(--red-soft); font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Pied de page ---------- */
.site-footer { background: #08080b; color: var(--muted); padding: 66px 0 26px; font-size: .95rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; letter-spacing: .03em; margin-bottom: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--red-soft); }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: #66666f; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .hours-wrap, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-piece { max-width: 340px; margin: 0 auto; }
  .menu-toggle { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface-2); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
    padding: 10px; gap: 2px; display: none;
  }
  .menu.open { display: flex; }
  .menu > li.current > a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(255,255,255,.04); margin: 4px 0 4px 12px; display: none; }
  .menu .has-sub.open .submenu { display: block; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .topbar .tb-info { gap: .9rem; }
  .section { padding: 62px 0; }
  .hero .container { padding: 64px 24px 72px; }
  .hero-badges { width: 100%; }
}

/* =========================================================================
   Rubrique CALENDRIER 2025 / 2026 — agenda interactif
   ========================================================================= */
.cal-toolbar {
  position: sticky; top: 71px; z-index: 30;
  background: rgba(10,10,14,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.cal-toolbar .container { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--ink-dim); cursor: pointer; transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--red); color: #fff; }
.filter-chip.active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 16px var(--red-tint); }
.filter-chip .n { opacity: .6; font-size: .82em; margin-left: .35em; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend .dot { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.dot-cours { background: rgba(255,255,255,.16); border: 1px solid var(--line-2); }
.dot-comp  { background: transparent; border: 1.5px solid var(--ink-dim); }
.dot-blitz { background: #34343f; }
.dot-tournoi { background: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.dot-vac { background: repeating-linear-gradient(45deg,#2a2a33 0 4px,#16161d 4px 8px); border: 1px dashed var(--line-2); }

.cal-wrap { padding: 46px 0 88px; }
.cal-month { margin: 42px 0 18px; display: flex; align-items: center; gap: 16px; }
.cal-month:first-child { margin-top: 0; }
.cal-month h2 { font-size: 1.35rem; margin: 0; white-space: nowrap; }
.cal-month .rule { flex: 1; height: 1px; background: var(--line); }
.cal-month .count { font-size: .82rem; color: var(--muted); }

.cal-day {
  display: grid; grid-template-columns: 92px 1fr; gap: 22px; align-items: center;
  background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.cal-day:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.cal-day.temps-fort { border-left: 3px solid var(--red); }
.cal-day.is-vac { background: rgba(255,255,255,.02); }

.cal-date { text-align: center; border-right: 1px solid var(--line); padding-right: 8px; }
.cal-date .dow { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red-soft); font-weight: 700; }
.cal-date .d { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; line-height: 1.05; color: #fff; }
.cal-date .sess { display: inline-block; margin-top: 5px; font-size: .64rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 999px; padding: 2px 8px; }

.cal-items { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .84rem; font-weight: 500; padding: 6px 13px; border-radius: 999px;
  border: 1.5px solid transparent; white-space: nowrap;
}
.chip .lvl { font-weight: 700; font-size: .74em; text-transform: uppercase; letter-spacing: .03em; opacity: .7; }
.chip-cours   { background: rgba(255,255,255,.06); color: var(--ink-dim); border-color: var(--line); }
.chip-comp    { background: transparent; color: var(--ink); border-color: var(--line-2); }
.chip-blitz   { background: #2c2c37; color: #fff; }
.chip-tournoi { background: var(--red); color: #fff; box-shadow: 0 4px 14px var(--red-glow); }
.chip-vac     { background: transparent; color: var(--muted); border: 1.5px dashed var(--line-2); font-style: italic; }

.cal-day.hidden { display: none; }
.cal-empty { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

.cal-ics { display: inline-flex; align-items: center; gap: .5em; }

@media (max-width: 620px) {
  .cal-day { grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; }
  .cal-date .d { font-size: 1.6rem; }
  .cal-toolbar { top: 63px; }
}

/* ---- Calendrier : version épurée (bandeau récap + 1 ligne/jour) ---- */
.cal-info {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin: 30px 0 6px; font-size: .95rem;
}
.cal-info .ci-ttl { font-family: var(--font-head); font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: .5em; }
.cal-info .ci-list { color: var(--muted); }
.cal-info .ci-list b { color: var(--ink); font-weight: 600; }

.cal-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-meta { font-size: .9rem; color: var(--muted); }
.cal-meta .th { color: var(--ink); }
.cal-day.plain { box-shadow: none; }
.cal-day.plain:hover { box-shadow: var(--shadow); }

/* ---- Calendrier : APERÇU COMPACT ---- */
.cal-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; align-items: start; }
.cal-mini { background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.cal-mini > h3 { font-family: var(--font-head); font-size: .98rem; margin: 0 0 4px; padding: 10px 12px 9px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.cal-mini > h3 .mc { color: var(--muted); font-size: .72rem; font-weight: 500; }
.mini-day { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 9px; font-size: .9rem; transition: background .12s ease; }
.mini-day:hover { background: rgba(255,255,255,.05); }
.mini-day.hidden { display: none; }
.mini-day.tf { box-shadow: inset 2px 0 0 var(--red); }
.md-date { font-family: var(--font-head); font-weight: 700; min-width: 22px; text-align: right; color: #fff; flex: none; }
.md-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.md-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-label.is-tournoi { color: var(--red-soft); font-weight: 600; }
.md-label.is-competition { color: var(--ink); font-weight: 500; }
.md-label.is-blitz { color: var(--ink); font-weight: 500; }
.md-more { margin-left: auto; flex: none; color: var(--muted); font-size: .72rem; }
.cal-mini.hidden { display: none; }

/* =========================================================================
   ARTICLES / ANNONCES
   ========================================================================= */
.article-hero { position: relative; background: rgba(0,0,0,.32); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.article-hero .breadcrumb { margin-bottom: 14px; }
.article-hero .meta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 20ch; }
.badge-cat { display: inline-flex; align-items: center; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; box-shadow: 0 4px 14px var(--red-glow); }
.article-date { font-size: .9rem; color: var(--muted); font-weight: 600; }

.article-body { max-width: 760px; margin: 0 auto; padding: 48px 0 20px; font-size: 1.06rem; line-height: 1.75; color: var(--ink-dim); }
.article-content p { margin: 0 0 1.2em; }
.article-content a { color: var(--red-soft); text-decoration: underline; }
.article-content a:hover { color: #fff; }
.article-content h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.article-content h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.article-content ul, .article-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-content li { margin-bottom: .4em; }
.article-content img { width: 100%; height: auto; border-radius: 10px; display: block; }
.article-content figure { margin: 1.6em 0; }
.article-content figure.wp-block-image img { box-shadow: var(--shadow); }
.article-content figcaption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 8px; }
.article-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1.6em 0; }
.article-content .wp-block-gallery figure { margin: 0; }
.article-content .wp-block-gallery img { aspect-ratio: 4/3; object-fit: cover; }
.article-content .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.article-content th, .article-content td { border: 1px solid var(--line-2); padding: 8px 12px; text-align: left; }
.article-content th { background: rgba(255,255,255,.05); font-family: var(--font-head); color: #fff; }
.article-content iframe { max-width: 100%; border-radius: 10px; }
.article-foot { max-width: 760px; margin: 10px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

.arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

/* ---- Archives : barre de navigation par année ---- */
.year-nav-bar { position: sticky; top: 71px; z-index: 30; background: rgba(10,10,14,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 14px 0; }
.year-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.year-nav .filter-chip { text-decoration: none; }
.year-nav .filter-chip:hover { border-color: var(--red); color: #fff; }
section[id^="annee-"] { scroll-margin-top: 132px; }
@media (max-width: 620px){ .year-nav-bar { top: 63px; } }

/* ---- Liens utiles ---- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.link-list { list-style: none; margin: 8px 0 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: none; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink-dim); }
.link-list a:hover { color: var(--red-soft); }
.link-list a .ext { color: var(--muted); font-size: .85em; transition: transform .15s ease; }
.link-list a:hover .ext { color: var(--red-soft); transform: translate(2px,-2px); }

/* ---- Inscription : étapes + formulaire ---- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 0; }
.steps li { counter-increment: s; padding: 14px 0 14px 46px; position: relative; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li:last-child { border-bottom: none; }
.steps li strong { color: #fff; display: block; font-family: var(--font-head); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .9rem; box-shadow: 0 4px 14px var(--red-glow); }

.form { display: grid; gap: 15px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-row { display: grid; gap: 6px; }
.form label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); }
.form label .req { color: var(--red-soft); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; font-family: var(--font-body); font-size: 1rem; background: rgba(255,255,255,.04); color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: #6a6a76; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.form select option { background: #16161d; color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--muted); }
@media (max-width: 560px){ .form .row2 { grid-template-columns: 1fr; } }

/* ---- Formulaire intelligent (inscription) ---- */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.choice { position: relative; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 16px 12px; cursor: pointer; text-align: center; background: rgba(255,255,255,.03); transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.choice:hover { border-color: var(--ink-dim); transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice.sel { border-color: var(--red); background: var(--red-tint); box-shadow: 0 0 20px var(--red-tint); }
.choice .ic { font-size: 1.7rem; line-height: 1; }
.choice .t { font-family: var(--font-head); font-weight: 600; margin-top: 6px; font-size: .95rem; color: var(--ink); }
.reco { display: none; margin: 4px 0 2px; background: var(--red-tint); border: 1px solid rgba(245,38,47,.35); border-radius: 12px; padding: 14px 16px; font-size: .95rem; color: var(--ink); }
.reco.show { display: block; }
.reco .r-ttl { font-family: var(--font-head); font-weight: 700; color: var(--red-soft); display: block; margin-bottom: 2px; }
.form-section[hidden] { display: none; }
.form-block-title { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 8px 0 2px; }
.form-ok { display: none; background: rgba(46,160,80,.14); border: 1px solid rgba(46,160,80,.4); color: #7fdca0; border-radius: 12px; padding: 14px 16px; margin-top: 12px; font-size: .95rem; }
.form-ok.show { display: block; }
