/* ==========================================================================
   Site public d'un club : la STRUCTURE commune aux 3 styles.
   Les couleurs, polices et décors viennent de css/styles/<style>.css, qui redéfinit les jetons ci-dessous.
   La couleur du club est --accent (injectée dans la page) ; --accent-vif est sa version lisible sur le fond.
   ========================================================================== */
.site {
  /* Jetons du site (valeurs par défaut claires, remplacées par chaque style) */
  --s-bg: #F5F6F8;          /* fond de page */
  --s-surface: #FFFFFF;     /* cartes et encadrés */
  --s-surface-2: #EEF0F4;   /* fond discret (pastilles, rangées) */
  --s-text: #0E1424;
  --s-muted: #5E6778;
  --s-line: #DDE1E8;
  --s-head-bg: #FFFFFF;     /* en-tête */
  --s-head-text: var(--s-text);
  --s-hero-bg: #0E1424;     /* bandeau d'accueil */
  --s-hero-text: #FFFFFF;
  --s-hero-muted: rgba(255, 255, 255, .72);
  --s-foot-bg: #0E1424;
  --s-foot-text: rgba(255, 255, 255, .78);
  --accent-vif: var(--accent);
  --titre: Inter, system-ui, sans-serif;
  --corps: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --titre-poids: 700;
  --titre-casse: none;
  --titre-espace: -.02em;
  --r: 14px;                /* arrondi des cartes */
  /* Les composants communs (boutons, champs) lisent ces jetons de base.css */
  --surface: var(--s-surface); --surface-2: var(--s-surface-2); --line: var(--s-line); --line-strong: color-mix(in srgb, var(--s-line) 60%, var(--s-text));
  --ink: var(--s-text); --ink-2: var(--s-text); --muted: var(--s-muted);
  background: var(--s-bg); color: var(--s-text); font-family: var(--corps); font-size: 1rem;
}
.site h1, .site h2, .site h3 { font-family: var(--titre); font-weight: var(--titre-poids); text-transform: var(--titre-casse); letter-spacing: var(--titre-espace); }
.site a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.site input, .site select, .site textarea { background: var(--s-surface); color: var(--s-text); border-color: var(--s-line); }
.site .btn:not(.btn-primary) { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.site .btn:not(.btn-primary):hover { border-color: currentColor; }
.site .btn-lg { min-height: 50px; padding: 0 24px; border-radius: 10px; font-weight: 600; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.site-banner { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: var(--f13); padding: 8px 16px; }
.site-banner a { color: inherit; font-weight: 600; }
.site-flashes { padding-top: 16px; }

/* ---------- En-tête ---------- */
.site-head { background: var(--s-head-bg); color: var(--s-head-text); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid color-mix(in srgb, var(--s-head-text) 10%, transparent); }
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
/* Logo : hauteur fixée par logo_club(), largeur selon sa forme (carré, bannière, haut) ; jamais déformé */
.site-brand img.logo { width: auto; object-fit: contain; border-radius: 8px; display: block; }
/* Logo prévu pour fond clair affiché sur un bandeau foncé : petite pastille blanche pour rester lisible */
.logo-pastille { background: #fff; padding: 4px 6px; box-sizing: content-box; }
.site-brand .monogram { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: var(--titre); }
.site-brand-nom { font-family: var(--titre); font-weight: var(--titre-poids); font-size: 1.1rem; text-transform: var(--titre-casse); letter-spacing: var(--titre-espace); line-height: 1.1; }
.site-burger { display: none; }
/* Nom du club : jamais plus de deux lignes, même quand le menu est long (forum, galerie...) */
.site-brand { flex-shrink: 0; }
.site-brand-nom { min-width: 8em; max-width: 13em; }
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a { padding: 8px 10px; white-space: nowrap; border-radius: 8px; text-decoration: none; color: color-mix(in srgb, var(--s-head-text) 72%, transparent); font-weight: 500; font-size: .94rem; transition: color var(--t), background var(--t); }
.site-nav a:hover { color: var(--s-head-text); background: color-mix(in srgb, var(--s-head-text) 7%, transparent); }
.site-nav a[aria-current] { color: var(--s-head-text); box-shadow: inset 0 -2px 0 var(--accent-vif); border-radius: 0; }
.site-nav .site-account { margin-left: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; border-radius: 8px; }
.site-nav .site-account:hover { background: color-mix(in srgb, var(--accent) 86%, black); color: var(--accent-ink); }
/* « En direct » : tournoi en cours ou du jour (point rouge fixe, sans clignotement) */
.point-direct { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 3px color-mix(in srgb, #E5484D 25%, transparent); vertical-align: 1px; }
/* Se déconnecter : même allure que les liens du menu (c'est un envoi POST protégé), avec un contour discret pour le distinguer */
.site-nav .site-deconnexion { display: inline-flex; margin: 0 0 0 6px; }
.site-nav .site-deconnexion button { font: inherit; font-weight: 500; font-size: .94rem; white-space: nowrap; padding: 7px 12px; border-radius: 8px; cursor: pointer; background: transparent;
  color: color-mix(in srgb, var(--s-head-text) 72%, transparent); border: 1px solid color-mix(in srgb, var(--s-head-text) 28%, transparent); transition: color var(--t), background var(--t), border-color var(--t); }
.site-nav .site-deconnexion button:hover { color: var(--s-head-text); background: color-mix(in srgb, var(--s-head-text) 7%, transparent); border-color: color-mix(in srgb, var(--s-head-text) 45%, transparent); }
.site-nav .site-langue { margin-left: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 6px; padding: 6px 8px; }

.site-main { min-height: 60vh; padding-bottom: 72px; }

/* ---------- Titres de page (toutes les pages sauf l'accueil) ---------- */
.page-hero { background: var(--s-hero-bg); color: var(--s-hero-text); padding: 48px 0 40px; margin-bottom: 36px; position: relative; overflow: hidden; }
.page-hero .fil { color: var(--s-hero-muted); font-size: .9rem; margin: 0 0 10px; }
.page-hero .fil a { color: inherit; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.05; margin: 0 0 10px; max-width: 24ch; }
.page-hero p { color: var(--s-hero-muted); margin: 0; font-size: 1.05rem; }
.page-hero .actions { margin-top: 20px; }
.surtitre { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-vif); margin-bottom: 10px; }

/* ---------- Accueil : bandeau principal ---------- */
.h-hero { position: relative; background: var(--s-hero-bg); color: var(--s-hero-text); overflow: hidden; isolation: isolate; }
.h-hero.avec-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--photo) center / cover no-repeat; }
.h-hero.avec-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--s-hero-bg) 94%, transparent) 35%, color-mix(in srgb, var(--s-hero-bg) 55%, transparent)); }
.h-hero-in { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; padding: 80px 20px 88px; }
.h-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); line-height: .98; margin: 0 0 20px; }
.h-hero .lead { font-size: 1.18rem; color: var(--s-hero-muted); max-width: 52ch; margin: 0 0 30px; }
.h-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.h-hero .btn:not(.btn-primary) { color: var(--s-hero-text); }

/* Prochain tournoi mis en avant, avec compte à rebours */
.h-next { background: color-mix(in srgb, var(--s-hero-text) 7%, transparent); border: 1px solid color-mix(in srgb, var(--s-hero-text) 16%, transparent); border-radius: calc(var(--r) + 4px); padding: 26px; backdrop-filter: blur(6px); }
.h-next-lbl { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-vif); margin: 0 0 8px; }
.h-next h2 { font-size: 1.6rem; margin: 0 0 6px; line-height: 1.1; }
.h-next .quand { color: var(--s-hero-muted); margin: 0 0 20px; }
.compte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.compte div { background: color-mix(in srgb, var(--s-hero-text) 8%, transparent); border-radius: 10px; padding: 10px 4px 8px; text-align: center; }
.compte b { display: block; font-family: var(--titre); font-size: 1.9rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.compte span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--s-hero-muted); }
.compte-direct { margin: 0 0 20px; font-weight: 600; color: var(--accent-vif); }
.jauge { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--s-hero-text) 14%, transparent); overflow: hidden; margin-bottom: 8px; }
.jauge span { display: block; height: 100%; background: var(--accent-vif); border-radius: inherit; }
.h-next .places { display: flex; justify-content: space-between; font-size: .9rem; color: var(--s-hero-muted); margin: 0 0 18px; }
.h-next .places b { color: var(--s-hero-text); }

/* Chiffres du club */
.h-stats { background: var(--s-surface); border-bottom: 1px solid var(--s-line); }
.h-stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-stats .wrap > div { padding: 26px 20px; border-left: 1px solid var(--s-line); }
.h-stats .wrap > div:first-child { border-left: 0; padding-left: 0; }
.h-stats b { display: block; font-family: var(--titre); font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--s-text); }
.h-stats span { color: var(--s-muted); font-size: .92rem; }

/* ---------- Accueil façon V1 : bloc du club (logo, citation, chiffres) et actualité à la une ---------- */
.h-club { padding-top: 48px; padding-bottom: 44px; }
.h-club-tete { justify-content: center; text-align: center; margin-bottom: 28px; }
.h-club-tete h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; }
.h-club .h-hero-in { padding: 0; align-items: stretch; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.h-club .h-hero-seul { grid-template-columns: minmax(0, 1fr); }
.h-club-carte { position: relative; background: color-mix(in srgb, var(--s-hero-text) 6%, transparent); border: 1px solid color-mix(in srgb, var(--s-hero-text) 14%, transparent); border-radius: calc(var(--r) + 4px); padding: 32px; }
.h-club-identite { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.h-club-logo { width: 190px; max-height: 220px; object-fit: contain; }
.h-club-logo.monogram { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 24px; background: var(--accent); color: var(--accent-ink); font: 700 3.2rem var(--titre); }
.h-club-saison { margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--accent-vif); }
.h-club blockquote.lead { margin: 0 0 22px; font-size: 1.05rem; max-width: none; }
/* Les 4 chiffres dans la carte du club (le décor de chaque style s'applique toujours à .h-stats) */
.h-club-carte .h-stats { background: transparent; border: 0; margin: 26px 0 0; padding: 0; }
.h-club-carte .h-stats .wrap { max-width: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.h-club-carte .h-stats .wrap > div, .h-club-carte .h-stats .wrap > div:first-child { border: 0; padding: 14px 10px; text-align: center; background: color-mix(in srgb, var(--s-hero-text) 6%, transparent); border-radius: var(--r); }
.h-club-carte .h-stats b { color: var(--accent-vif); }
.h-club-carte .h-stats span { color: var(--s-hero-muted); font-size: .82rem; }
/* Actualité à la une : photo en haut de la carte, texte, date et « Lire la suite » */
.h-une { display: flex; flex-direction: column; position: relative; overflow: hidden; color: inherit; text-decoration: none; }
.h-une-image { display: block; width: calc(100% + 52px); max-width: none; margin: -26px -26px 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.h-une-vide { display: grid; place-items: center; font-size: 2.4rem; letter-spacing: .2em; color: var(--accent-vif); background: color-mix(in srgb, var(--accent) 14%, transparent); }   /* actualité sans photo */
.h-une h2 { font-size: 1.3rem; }
.h-une-texte { color: var(--s-hero-muted); font-size: .95rem; margin: 0 0 14px; }
.h-une-pied { margin: auto 0 0; display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--s-hero-muted); }
.h-une-pied span { color: var(--accent-vif); font-weight: 600; }
.h-une:hover h2 { text-decoration: none; } /* pas de soulignement de la une au survol */
/* Titres : deuxième mot de la couleur du club ; bouton « Voir... » centré sous la section */
.mot-accent { color: var(--accent-vif); }
.sec-pied { text-align: center; margin: 26px 0 0; }
.news-suite { display: block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--accent-vif); }

/* Prochaine étape : grande carte (date, nom, compte à rebours, bouton) puis ses tournois */
.etape-carte { padding: 24px; }
.etape-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--s-line); }
.etape-pave { width: 76px; text-align: center; border: 1px solid var(--s-line); border-radius: var(--r); padding: 8px 4px; background: var(--s-surface-2); }
.etape-pave b { display: block; font-family: var(--chiffres, var(--titre)); font-size: 2.1rem; line-height: 1; color: var(--accent-vif); margin: 2px 0; }
.etape-pave-large { width: auto; min-width: 76px; padding-left: 12px; padding-right: 12px; }   /* étape de plusieurs jours : « 28 - 29 » */
.etape-pave-large b { font-size: 1.7rem; white-space: nowrap; }
.etape-pave small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--s-muted); }
.etape-infos h3 { margin: 0 0 4px; font-size: 1.5rem; }
.etape-infos p { margin: 0; }
.etape-infos p + p { margin-top: 6px; }
.etape-compte { display: grid; justify-items: end; gap: 6px; text-align: right; }
.etape-compte b { font-family: var(--titre); font-size: 1.3rem; color: var(--accent-vif); }
.etape-compte small { color: var(--s-muted); }
.etape-sous { margin: 18px 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--s-muted); }
/* Prochains événements : dans un grand cadre, comme la V1 */
.panneau-evenements { padding: 22px; }
.partenaire-events li .btn { justify-self: start; margin-top: 6px; }

/* ---------- Sections ---------- */
.section-site { padding: 64px 0 0; }
.sec-tete { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-tete h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; line-height: 1.1; }
/* En-tête de section façon V1 : surtitre entre deux traits qui s'estompent, titre centré, puis un trait qui s'estompe de chaque côté d'un petit losange */
.sec-tete { flex-direction: column; align-items: center; text-align: center; }
.sec-tete > div { display: grid; justify-items: center; }
.sec-tete .surtitre, .page-hero .surtitre { display: inline-flex; align-items: center; gap: 14px; }
.sec-tete .surtitre::before, .sec-tete .surtitre::after, .page-hero .surtitre::before, .page-hero .surtitre::after { content: ""; width: clamp(30px, 8vw, 70px); height: 1px; background: linear-gradient(90deg, transparent, var(--accent-vif)); }
.sec-tete .surtitre::after, .page-hero .surtitre::after { background: linear-gradient(270deg, transparent, var(--accent-vif)); }
.sec-tete h2::after, .h-club-tete h1::after, .page-hero h1::after { content: "\25C6"; display: block; width: min(300px, 70vw); margin: .7rem auto 0; font-size: .6rem; line-height: 1; text-align: center; color: var(--accent-vif);
  /* chaque trait s'estompe aux deux extrémités (côté extérieur et côté losange), comme les traits du surtitre */
  background: linear-gradient(90deg, transparent, var(--accent-vif) 45%, var(--accent-vif) 70%, transparent) left center / calc(50% - 14px) 1px no-repeat, linear-gradient(90deg, transparent, var(--accent-vif) 30%, var(--accent-vif) 55%, transparent) right center / calc(50% - 14px) 1px no-repeat; }
.page-hero { text-align: center; } .page-hero h1 { margin-left: auto; margin-right: auto; max-width: none; }
.sec-tete .surtitre { margin-bottom: 6px; }
.sec-tete > a { font-weight: 600; color: var(--accent-vif); text-decoration: none; white-space: nowrap; }
.sec-tete > a:hover { text-decoration: underline; }

/* Tournois à venir : cartes « billet » */
.billets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }   /* auto-fit : 2 tournois se partagent toute la largeur de la carte, sans colonne vide */
.billet { display: grid; grid-template-columns: 84px 1fr; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--r); text-decoration: none; color: inherit; overflow: hidden; transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.billet:hover { transform: translateY(-2px); border-color: var(--accent-vif); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.billet-date { background: var(--accent); color: var(--accent-ink); display: grid; place-content: center; text-align: center; padding: 14px 6px; position: relative; }
.billet-date::after { content: ""; position: absolute; right: -1px; top: 10px; bottom: 10px; border-right: 2px dashed color-mix(in srgb, var(--s-surface) 80%, transparent); }
.billet-date small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.billet-date b { display: block; font-family: var(--titre); font-size: 2.2rem; line-height: 1; margin: 2px 0; }
.billet-corps { padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.billet-corps h3 { margin: 0; font-size: 1.12rem; line-height: 1.2; }
.billet-corps p { margin: 0; color: var(--s-muted); font-size: .9rem; }
.billet-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: .88rem; }
.billet .jauge { background: var(--s-surface-2); height: 6px; margin: 4px 0 0; }
.etiquette { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--s-surface-2); color: var(--s-text); white-space: nowrap; }
.etiquette-ok { background: color-mix(in srgb, #1F9D6B 18%, transparent); color: #1F9D6B; }
.etiquette-direct { background: var(--accent); color: var(--accent-ink); }
.etiquette-stop { background: color-mix(in srgb, #D62F45 16%, transparent); color: #D62F45; }

/* Liste de tournois (calendrier, résultats) */
.events { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 78px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; border: 1px solid var(--s-line); border-radius: var(--r); background: var(--s-surface); text-decoration: none; color: inherit; transition: border-color var(--t), transform var(--t); }
.event:hover { border-color: var(--accent-vif); transform: translateX(2px); }
.event .date { text-align: center; border-right: 1px solid var(--s-line); padding-right: 14px; line-height: 1.05; }
.event .date b { display: block; font-family: var(--titre); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.event .date span { font-size: .75rem; color: var(--s-muted); text-transform: uppercase; letter-spacing: .08em; }
.event h3 { margin: 0 0 4px; font-size: 1.08rem; }
.event p { margin: 0; color: var(--s-muted); font-size: .9rem; }
.event .places { text-align: right; font-size: .9rem; color: var(--s-muted); white-space: nowrap; }
.event .places b { color: var(--s-text); font-size: 1.1rem; }
.mois-titre { font-size: 1.05rem; margin: 32px 0 12px; color: var(--s-muted); text-transform: capitalize; }

/* Accueil : « Bonjour » du membre connecté (tournoi du jour, rang, prochaine inscription, adhésion) */
.bonjour-jourj { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.bonjour-jourj small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.bonjour-jourj b { font-family: var(--titre); font-size: 1.15rem; }
.bonjour-place { font-size: 1.05rem; }
.bonjour-place b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
/* Accueil : tournois des partenaires (souvent en ligne), une carte par partenaire */
.partenaires-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); justify-content: center; gap: 18px; }   /* auto-fit : 1 ou 2 partenaires remplissent la largeur, sans colonne vide */
.partenaire-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: inherit; text-decoration: none; }
a.partenaire-tete:hover h3 { color: var(--accent-vif); }
.partenaire-tete img { height: 40px; max-width: 110px; object-fit: contain; }
.partenaire-tete h3 { margin: 0; font-size: 1.1rem; flex: 1; }
.partenaire-initiale { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--s-surface-2); }
.partenaire-events ul { list-style: none; margin: 0; padding: 0; }
.partenaire-events li > :not(.pe-titre) { margin-left: 16px; }   /* date, « En ligne », tarif : décalés vers la droite pour se détacher du titre */
.partenaire-events li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--s-line); }
.pe-date { font-size: .82rem; color: var(--s-muted); }
.pe-titre { font-weight: 600; }
.pe-infos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--s-muted); }
.pe-infos a { font-weight: 600; color: var(--accent-vif); }
/* Cartes et colonnes (accueil, pages intérieures) */
.duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.carte { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--r); padding: 24px; }
.carte > h3 { margin: 0 0 16px; font-size: 1.15rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; background: var(--s-surface-2); color: var(--s-text); border: 2px solid var(--s-line); }
/* Photo de profil dans la pastille : recadrée en cercle */
.avatar-photo { padding: 0; overflow: hidden; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--s-line); }
.rank li:last-child { border-bottom: 0; }
.rank .pos { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--s-surface-2); flex: none; font-variant-numeric: tabular-nums; }
.rank .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .pts { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Dernier tournoi */

/* Actualités */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { text-decoration: none; color: inherit; display: grid; align-content: start; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--r); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, .12); }
.news-card .vignette { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: var(--s-surface-2); }
.news-card .vignette-vide { aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 2.6rem; color: color-mix(in srgb, var(--accent-vif) 70%, transparent); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, var(--s-surface-2)), var(--s-surface-2)); letter-spacing: .2em; }
.news-card .txt { padding: 16px 18px 20px; display: grid; gap: 6px; }
.news-card time { font-size: .8rem; color: var(--s-muted); text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; }
.news-card p { margin: 0; color: var(--s-muted); font-size: .92rem; }
.news-card.une { grid-column: span 2; grid-row: span 2; grid-template-rows: 1fr auto; }
.news-card.une .vignette, .news-card.une .vignette-vide { aspect-ratio: auto; height: 100%; min-height: 240px; }
.news-card.une .txt { align-content: center; padding: 26px; }
.news-card.une h3 { font-size: 1.5rem; }

/* Bandeau « Rejoindre le club » */
.h-rejoindre { margin-top: 72px; }
.h-rejoindre .wrap > div { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--r) + 6px); padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.h-rejoindre h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.h-rejoindre p { margin: 0; opacity: .88; max-width: 56ch; }
/* Devenez membre (comme la V1) : titre au-dessus, carte au texte centré, boutons dessous */
.h-rejoindre .wrap > div { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.h-rejoindre .wrap > div .actions { justify-content: center; }
.h-rejoindre .actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.h-rejoindre .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.h-rejoindre .btn:not(.btn-primary) { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 50%, transparent); }
.h-rejoindre .wrap > div::after { content: "♠ ♥ ♦ ♣"; position: absolute; right: -10px; bottom: -34px; font-size: 7rem; opacity: .1; letter-spacing: .1em; pointer-events: none; white-space: nowrap; }

/* ---------- Pages intérieures ---------- */
.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.panel { border: 1px solid var(--s-line); border-radius: var(--r); padding: 22px; background: var(--s-surface); }
.side-box { position: sticky; top: 92px; }
.prose { max-width: 70ch; font-size: 1.06rem; line-height: 1.72; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose img { border-radius: var(--r); margin-bottom: 20px; }
/* Article d'actualité : colonne de lecture centrée dans la page (comme la V1) */
.prose-centre { margin-inline: auto; }
.couverture { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--r); margin-bottom: 28px; display: block; }
/* Partie gardée d'une image d'actualité recadrée au format fixe (choisie par le club) */
.cadrage-haut { object-position: center top; }
.cadrage-centre { object-position: center; }
.cadrage-bas { object-position: center bottom; }
.table-site { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--s-surface); border-radius: var(--r); overflow: hidden; }
.table-site th { text-align: left; color: var(--s-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; border-bottom: 1px solid var(--s-line); background: var(--s-surface-2); }
.table-site td { padding: 12px 14px; border-bottom: 1px solid var(--s-line); }
.table-site tr:last-child td { border-bottom: 0; }
/* Lignes zébrées (classements, résultats, inscrits) : teinte légère prise dans la couleur du texte, valable pour les 8 styles */
.table-site tbody tr:nth-child(even) { background: color-mix(in srgb, var(--s-text) 4.5%, transparent); }
.table-site .n { text-align: right; font-variant-numeric: tabular-nums; }
.table-site tr.qualifie td:first-child { box-shadow: inset 4px 0 0 var(--accent-vif); }
.table-site tr.top3 td:first-child b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.cadre-table { border: 1px solid var(--s-line); border-radius: var(--r); overflow-x: auto; }
.tabs-site { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs-site a { padding: 7px 14px; border: 1px solid var(--s-line); border-radius: 99px; text-decoration: none; font-size: .9rem; color: var(--s-muted); background: var(--s-surface); }
.tabs-site a[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fiche { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.fiche li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--s-line); padding-bottom: 8px; overflow-wrap: anywhere; text-align: right; }
.fiche li span { text-align: left; flex: none; }
.fiche li:last-child { border-bottom: 0; }
.fiche span { color: var(--s-muted); }
.joueurs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.joueurs li { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 99px; padding: 5px 12px 5px 5px; display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.joueurs .avatar { width: 28px; height: 28px; font-size: .72rem; border-width: 1px; }
.lots { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lots li { display: flex; gap: 12px; align-items: center; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 10px; padding: 10px 14px; }
.lots b { font-family: var(--titre); color: var(--accent-vif); min-width: 3.5em; }
.vide { text-align: center; padding: 48px 20px; color: var(--s-muted); border: 1px dashed var(--s-line); border-radius: var(--r); }
.vide b { display: block; font-size: 2rem; letter-spacing: .3em; color: color-mix(in srgb, var(--accent-vif) 60%, transparent); margin-bottom: 8px; }

/* Records du club, sous le classement général : une carte par record */
.records { margin-top: 40px; }
.records h2 { font-size: 1.4rem; margin: 0 0 14px; }
.records-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-bottom: 10px; }
.record { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--s-line); border-radius: var(--r); background: var(--s-surface); }
.record-titre { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--s-muted); }
.record-valeur { font-family: var(--titre); font-size: 1.9rem; line-height: 1.1; color: var(--accent-vif); }
.record-valeur small { font-family: var(--corps, inherit); font-size: .9rem; color: var(--s-muted); font-weight: 500; }
.record-qui { font-weight: 600; }
/* Page Records : palmarès de tous les temps, une carte par rubrique (top 5) */
.palmares { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.palmares h2 { font-size: 1.15rem; margin: 0 0 6px; }
.palmares .who, .rang-avatars .who { display: flex; align-items: center; gap: 10px; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; border-width: 1px; flex: none; }
.badge-ok { color: #1F9D6B; font-weight: 600; }
.closed { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 40px 20px; }
.closed h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.membres-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; list-style: none; padding: 0; }
.membres-liste li { display: flex; gap: 10px; align-items: center; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 12px; padding: 10px 12px; }
.membres-liste .avatar { width: 38px; height: 38px; font-size: .85rem; }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--s-foot-bg); color: var(--s-foot-text); padding: 52px 0 24px; font-size: .94rem; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot .site-brand { color: #fff; margin-bottom: 14px; }
.site-foot-club p { margin: 0 0 8px; }
.site-foot-col { display: grid; gap: 8px; align-content: start; }
.site-foot-col strong { color: #fff; font-family: var(--titre); text-transform: var(--titre-casse); margin-bottom: 4px; }
.site-reseaux { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.site-reseaux a { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: inherit; text-decoration: none; }
.site-reseaux a:hover { background: rgba(255, 255, 255, .12); }
.site-prevention { position: sticky; bottom: 0; z-index: 40; padding: 8px 16px; background: #0B0F14; color: #E6EAF0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .78rem; line-height: 1.35; text-align: center; }   /* toujours visible en bas de l'écran (V1) */
.site-prevention a { color: var(--accent-vif); font-weight: 600; white-space: nowrap; }
.site-foot-bas .par-blindclub { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.site-foot-bas .par-blindclub img { height: 20px; width: auto; }
.site-foot-bas { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; opacity: .75; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 960px) {
  .h-hero-in { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px 60px; }
  .duo, .cols { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.une { grid-column: span 2; grid-row: auto; }
  .side-box { position: static; }
  .cols-direct > aside { order: -1; }   /* tournoi en cours : la carte du chrono en direct en premier sur téléphone */
}
@media (max-width: 1120px) {
  /* Menu replié derrière le bouton « burger » (ouvert par site.js ; sans JavaScript, il reste affiché) */
  .site-burger { display: grid; gap: 5px; padding: 10px; background: none; border: 0; cursor: pointer; }
  .site-burger span { display: block; width: 22px; height: 2px; background: var(--s-head-text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
  .site-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html:not(.sans-js) .site-nav:not(.ouvert) { display: none; }
  /* Le menu ouvert se pose juste sous l'en-tête (top: 100%), quelle que soit sa hauteur selon le style,
     et l'en-tête reste au-dessus du contenu (sinon les textes positionnés passent devant le menu) */
  .site-head { z-index: 60; }
  html .site-head:has(.site-nav.ouvert) { position: sticky; }
  .site-nav.ouvert, .sans-js .site-nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; max-height: calc(100vh - 80px); overflow-y: auto; background: var(--s-head-bg); border-bottom: 1px solid color-mix(in srgb, var(--s-head-text) 12%, transparent); padding: 8px 12px 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
  .sans-js .site-burger { display: none; }
  .sans-js .site-nav { position: static; box-shadow: none; }
  .site-nav a { padding: 13px 12px; font-size: 1.02rem; }
  .site-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--accent-vif); }
  .site-nav .site-account { margin: 10px 0 0; text-align: center; }
  .site-nav .site-deconnexion { margin: 8px 0 0; }
  .site-nav .site-deconnexion button { width: 100%; padding: 12px; }
}
/* Menu trop long pour la largeur (beaucoup de pages, forum...) : site.js ajoute .menu-compact à l'en-tête
   et le menu passe derrière le bouton, comme sur téléphone (mêmes règles que le bloc ci-dessus) */
.menu-compact .site-burger { display: grid; gap: 5px; padding: 10px; background: none; border: 0; cursor: pointer; }
.menu-compact .site-burger span { display: block; width: 22px; height: 2px; background: var(--s-head-text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.menu-compact .site-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-compact .site-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-compact .site-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-head.menu-compact { z-index: 60; }
.menu-compact .site-nav:not(.ouvert) { display: none; }
.menu-compact .site-nav.ouvert { display: grid; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; max-height: calc(100vh - 80px); overflow-y: auto; background: var(--s-head-bg); border-bottom: 1px solid color-mix(in srgb, var(--s-head-text) 12%, transparent); padding: 8px 12px 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.menu-compact .site-nav a { padding: 13px 12px; font-size: 1.02rem; }
.menu-compact .site-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--accent-vif); }
.menu-compact .site-nav .site-account { margin: 10px 0 0; text-align: center; }
.menu-compact .site-nav .site-langue { margin: 8px 0 0; text-align: center; }
@media (max-width: 860px) {
  .h-stats .wrap { grid-template-columns: 1fr 1fr; }
  .h-stats .wrap > div { padding: 18px 16px; }
  .h-stats .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .h-stats .wrap > div:nth-child(n+3) { border-top: 1px solid var(--s-line); }
  .site-foot-in { grid-template-columns: 1fr 1fr; }
  .site-foot-club { grid-column: span 2; }
  .h-rejoindre .wrap > div { grid-template-columns: 1fr; padding: 32px 24px; }
  /* Accueil : carte du club et actualité l'une sous l'autre, logo au-dessus du texte */
  .h-club .h-hero-in { grid-template-columns: minmax(0, 1fr); }
  .h-club-carte { padding: 24px 20px; }
  .h-club-identite { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 18px; }
  .h-club-identite .actions { justify-content: center; }
  .h-club-logo { width: 150px; max-height: 160px; }
  .h-club-carte .h-stats .wrap { grid-template-columns: 1fr 1fr; }
  .h-club-carte .h-stats .wrap > div:nth-child(n) { border: 0; padding: 12px 8px; }
  .etape-tete { grid-template-columns: auto minmax(0, 1fr); }
  /* Compte à rebours sur toute la largeur, en une ligne : « Dans 4 jours · 2 tournois ... [Infos] » */
  .etape-compte { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; text-align: left; }
  .etape-compte b { white-space: nowrap; }
  .etape-compte .btn { margin-left: auto; }
  .etape-pave { width: 60px; }
}
@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.une { grid-column: auto; grid-template-columns: 1fr; }
  .news-card.une .vignette, .news-card.une .vignette-vide { aspect-ratio: 16 / 9; min-height: 0; }
  .event { grid-template-columns: 60px 1fr; gap: 14px; }
  .event .places { grid-column: 2; text-align: left; }
  .compte b { font-size: 1.5rem; }
  .h-next { padding: 20px; }
  .section-site { padding-top: 48px; }
  .site-brand-nom { font-size: 1rem; }
  .page-hero { padding: 36px 0 30px; }
}

/* ── Mouvement du site (avec js/anime.js et base.css) ───────────────────────────────────────────────
   Entrées au chargement, halo qui dérive, photo qui zoome très lentement,
   chiffres du compte à rebours qui glissent. Rien ne clignote. */
/* Accueil : le titre, le texte, les boutons puis le prochain tournoi arrivent l'un après l'autre */
.h-hero h1 { animation: monte .9s var(--doux) both; }
.h-hero .lead { animation: monte .9s var(--doux) .12s both; }
.h-hero .actions { animation: monte .9s var(--doux) .22s both; }
.h-next { animation: glisse-gauche 1s var(--doux) .3s both; }
.page-hero .wrap > * { animation: monte .7s var(--doux) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.page-hero .wrap > :nth-child(n+3) { animation-delay: .16s; }
@keyframes monte { from { opacity: 0; transform: translateY(22px); } }
@keyframes glisse-gauche { from { opacity: 0; transform: translateX(28px); } }
/* Halo de couleur du club derrière le titre : dérive lente, comme un projecteur */
.h-lueur { position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; left: -12vw; top: -30%;
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-vif) 26%, transparent), transparent);
  pointer-events: none; animation: derive 22s ease-in-out infinite alternate; }
.h-hero.avec-photo .h-lueur { z-index: 0; opacity: .7; }
.h-hero-in { position: relative; z-index: 1; }
@keyframes derive { 50% { transform: translate(18vw, 12%) scale(1.15); } 100% { transform: translate(34vw, -6%) scale(.95); } }
/* Photo d'accueil : zoom très lent (effet « Ken Burns ») */
.h-hero.avec-photo::before { animation: zoom-lent 26s ease-in-out infinite alternate; }
@keyframes zoom-lent { to { transform: scale(1.07); } }
/* Podium : les marches montent (2e, 1re puis 3e), le vainqueur respire doucement */
@keyframes respire { 50% { transform: scale(1.06); } }
/* En-tête : ombre quand la page défile */
.site-head { transition: box-shadow .3s ease; }
.site-head.defile { box-shadow: 0 8px 28px rgba(0, 0, 0, .22); }
/* Compte à rebours : le chiffre qui change glisse vers le haut (site.js ajoute .tic) */
.compte b.tic { animation: chiffre .45s var(--doux); }
@keyframes chiffre { from { opacity: 0; transform: translateY(-40%); } }
/* Cartes et listes : légère élévation au survol */
.panel, .forum-categorie, .partenaire { transition: transform .25s var(--doux), box-shadow .25s ease, border-color .25s ease; }
.news-card { transition: transform .3s var(--doux), box-shadow .3s ease; }
.news-card .vignette { transition: transform .6s var(--doux); }
.news-card:hover .vignette { transform: scale(1.04); }
/* Bouton principal : un reflet passe au survol */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--doux); }

/* Moins d'animations si l'utilisateur l'a demandé à son système */
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { animation: none !important; transition: none !important; }
}
.table-site th:first-child, .table-site td:first-child { width: 76px; }

/* Formulaires du site (inscription, adhésion) */
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .grille-2 { grid-template-columns: 1fr; } }
.etapes-liste { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.etapes-liste b { display: block; }
.stack-site { display: grid; gap: 16px; }
/* Colonnes et piles : un enfant large (tableau, champ de fichier) défile ou se réduit au lieu d'élargir la page */
.cols > *, .stack-site > * { min-width: 0; }
.cols-contact { grid-template-columns: 1fr 1.5fr; }   /* contact : infos et FAQ à gauche, formulaire plus large à droite */
.contact-infos li { display: block; }
.contact-infos li span { display: flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 2px; }
.contact-infos svg, .panel h3 svg { width: 1.1em; height: 1.1em; vertical-align: -.2em; color: var(--accent-vif); }
.panel.faq-contact { max-width: none; margin: 0; }
.faq-contact .accordeons { max-width: none; }
.site fieldset.panel { margin: 0; min-width: 0; }
.legende { font-family: var(--titre); font-weight: var(--titre-poids); font-size: 1.1rem; padding: 0 6px; margin-left: -6px; }
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.option { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--s-line); border-radius: 12px; cursor: pointer; background: var(--s-surface-2); transition: border-color var(--t); }
.option:has(input:checked) { border-color: var(--accent-vif); box-shadow: inset 0 0 0 1px var(--accent-vif); }
.option span { display: grid; gap: 2px; }
.option em { font-style: normal; font-family: var(--titre); font-size: 1.3rem; color: var(--accent-vif); }
.option small { color: var(--s-muted); }

/* Espace membre */
.espace-tete { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }   /* photo, titre et infos centrés comme les autres pages */
.espace-tete h1 { margin-left: auto; margin-right: auto; }
.lien-prive svg { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: 6px; }   /* bouclier : lien réservé à l'équipe */
.avatar-xl { width: 84px; height: 84px; font-size: 1.6rem; flex: none; background: var(--accent); color: var(--accent-ink); border: 0; }
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tuile { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--r); padding: 18px 20px; }
.tuile span { display: block; color: var(--s-muted); font-size: .85rem; margin-bottom: 4px; }
.tuile b { font-family: var(--titre); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tuile small { font-size: .95rem; color: var(--s-muted); font-weight: 500; }
/* Espace membre : en-tête (photo qui mène au profil, pseudo, adhésion) et onglets */
.espace-photo { flex: none; border-radius: 50%; text-decoration: none; }
.espace-photo:hover .avatar { box-shadow: 0 0 0 3px var(--accent-vif); }
.espace-infos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; color: var(--s-hero-muted); }
.espace-infos form { display: inline; }
.espace-infos a:not(.etiquette) { color: inherit; }
.espace-onglets { margin: -12px 0 26px; }
/* Tableau de bord : mon rang dans chaque classement de la saison */
.mes-classements { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 14px; }
.mon-classement { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.mon-classement .surtitre { margin: 0; }
.mon-classement b { font-family: var(--titre); font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mon-classement b small { font-size: .95rem; color: var(--s-muted); font-weight: 500; font-family: inherit; }
.mes-classements .cta-perso { grid-column: span 2; display: grid; align-content: center; gap: 4px; }   /* carte double : « tournois entre amis » parmi les cartes du haut */
.mes-classements .cta-perso h3 { margin: 0; }
.mes-classements .cta-perso p { margin: 0 0 10px; }
@media (max-width: 620px) { .mes-classements .cta-perso { grid-column: auto; } }
.mon-classement:hover { border-color: var(--accent-vif); }
/* Tournois perso : liste, chrono (grands chiffres, sans clignotement), joueurs, structure */
.partie-perso { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.partie-perso h3 { margin: 0 0 4px; font-size: 1.1rem; }
.partie-perso p { margin: 0; font-size: .9rem; }
.partie-perso:hover { border-color: var(--accent-vif); }
/* Chrono d'une partie perso : carte aux couleurs du club, temps en cases fixes, blindes en trois cases, chiffres de la partie dans la carte (visibles en plein écran) */
.chrono-perso { text-align: center; padding: 22px 20px 20px; border-radius: calc(var(--r) + 8px); margin-bottom: 18px; color: var(--s-text);
  background: radial-gradient(ellipse 90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 22%, var(--s-surface)), var(--s-surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--s-line)); box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 14%, transparent); }
.chrono-perso:fullscreen { display: flex; flex-direction: column; justify-content: center; gap: 2vh; padding: 3vh 4vw; border: 0; border-radius: 0; background: radial-gradient(ellipse 90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 26%, var(--s-bg)), var(--s-bg) 75%); }
.cp-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.cp-nom { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; }
.cp-etat { padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: color-mix(in srgb, var(--s-text) 10%, transparent); color: var(--s-muted); }
.cp-etat.en-jeu { background: color-mix(in srgb, #2BC275 22%, transparent); color: #2BC275; }
.cp-niveau { margin: 0; font-size: .9rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-vif); }
.cp-temps { margin: 2px 0 8px; font-family: var(--titre); font-size: clamp(4.2rem, 20vw, 10rem); line-height: 1; white-space: nowrap; }
.chrono-perso:fullscreen .cp-temps { font-size: min(34vh, 24vw); }
.cp-ch { display: inline-block; width: .62em; text-align: center; font-variant-numeric: tabular-nums; }
.cp-ch.cp-sep { width: .3em; }
.cp-vainqueur { font-size: clamp(2.4rem, 9vw, 5rem); }
.cp-blindes { margin: 0; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 700; }
.cp-blindes-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; margin: 0 auto; }
.cp-blindes-cases > div { padding: 10px 8px; border-radius: 12px; background: color-mix(in srgb, var(--s-text) 7%, transparent); border: 1px solid var(--s-line); }
.cp-blindes-cases span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--s-muted); }
.cp-blindes-cases b { font-size: clamp(1.4rem, 5vw, 2.4rem); font-variant-numeric: tabular-nums; }
.cp-blindes-cases > div.pleine { grid-column: 1 / -1; }
.chrono-perso:fullscreen .cp-blindes-cases { max-width: 70vw; } .chrono-perso:fullscreen .cp-blindes-cases b { font-size: 6vh; } .chrono-perso:fullscreen .cp-blindes-cases span { font-size: 1.6vh; }
.cp-temps, .cp-blindes, .cp-suivant, .structure-perso td, .joueurs-perso, .cp-stats { font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.cp-suivant { margin: 10px 0 0; }
.cp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 760px; margin: 18px auto 0; }
.cp-stats > div { padding: 10px 6px; border-top: 2px solid var(--accent-vif); background: color-mix(in srgb, var(--s-text) 5%, transparent); border-radius: 0 0 10px 10px; }
.cp-stats > div > span { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); }
.cp-stats b { font-size: clamp(1.1rem, 4vw, 1.8rem); white-space: nowrap; } .cp-stats small { font-weight: 400; color: var(--s-muted); }
.chrono-perso:fullscreen .cp-stats { max-width: 80vw; } .chrono-perso:fullscreen .cp-stats b { font-size: 4.4vh; } .chrono-perso:fullscreen .cp-stats > div > span { font-size: 1.5vh; }
@media (max-width: 520px) { .cp-stats { grid-template-columns: 1fr 1fr; } }
.cp-commandes { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.cp-options { display: flex; justify-content: center; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; color: var(--s-muted); }
.cp-voix { display: inline-flex; align-items: center; gap: 6px; } .cp-voix select { max-width: 220px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--s-line); background: var(--s-surface); color: inherit; }
.joueurs-perso { list-style: none; margin: 0; padding: 0; }
.joueurs-perso li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--s-line); }
.joueurs-perso li:last-child { border-bottom: 0; }
.joueurs-perso form { margin: 0 0 0 auto; }
.jp-nom { font-weight: 600; }
.jp-sorti .jp-nom { font-weight: 400; color: var(--s-muted); }
.jp-place { min-width: 34px; font-variant-numeric: tabular-nums; }
.ajout-perso { display: flex; gap: 8px; margin-top: 14px; }
.ajout-perso input { flex: 1; min-width: 0; }
.structure-perso { margin-top: 12px; font-size: .9rem; }
.structure-perso .niveau-en-cours td { background: color-mix(in srgb, var(--accent) 16%, transparent); font-weight: 700; }
/* Statistiques */
.titre-bloc { font-size: 1.3rem; margin: 0 0 14px; }
.stat-grand { margin: 0 0 10px; }
.stat-grand b { font-family: var(--titre); font-size: 2rem; margin-right: 6px; }
/* Suffixe d'un rang (1er, 2e) : police du texte, car certaines polices de titre n'ont que des capitales */
.rang-suffixe { font-family: var(--corps, Inter, system-ui, sans-serif); font-size: .6em; font-weight: 600; margin-left: 1px; }
.fil-espace { color: var(--s-muted); font-size: .9rem; margin: 0 0 8px; }
@media (max-width: 860px) { .tuiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .avatar-xl { width: 64px; height: 64px; font-size: 1.2rem; } }

/* Sécurité du compte : double authentification (Mon espace > Sécurité) */
.etapes-2fa { padding-left: 1.2em; margin: 0; }
.etapes-2fa > li { margin-bottom: 22px; }
.qr-2fa { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.qr-img { background: #fff; padding: 8px; border-radius: 10px; line-height: 0; }
.qr-img svg { width: 200px; height: 200px; max-width: 60vw; max-height: 60vw; }
.cle-2fa { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.codes-secours { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.codes-secours li { font-family: ui-monospace, Menlo, Consolas, monospace; padding: 8px 10px; border: 1px dashed currentColor; border-radius: 8px; text-align: center; }

/* Partenaires : page /partenaires (cartes) et bandeau de logos en bas de chaque page */
.partenaires { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 16px; }
.partenaire { display: flex; flex-direction: column; gap: 10px; }
.partenaire h2 { font-size: 1.2rem; margin: 0; }
.partenaire p { margin: 0; }
.partenaire-logo { height: 90px; display: flex; align-items: center; }
.partenaire-logo img { max-height: 90px; max-width: 100%; object-fit: contain; }
.partenaire-offre { padding: 10px 12px; border-radius: calc(var(--r) / 2); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.partenaire-offre b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.partenaire > a { margin-top: auto; font-weight: 600; }
.site-partenaires { border-top: 1px solid var(--s-line); padding: 20px 0; }
.site-partenaires .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-partenaires strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.site-partenaires a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; opacity: .85; }
.site-partenaires a:hover { opacity: 1; }
.site-partenaires img { height: 36px; width: auto; max-width: 140px; object-fit: contain; }

/* Règles du poker : classement des mains avec des cartes dessinées en CSS (rouge pour cœur et carreau) */
.regles { padding-bottom: 56px; }
.regles-titre { margin-top: 1.6em; font-size: 1.4rem; }
.mains { list-style: none; padding: 0; margin: 16px 0 32px; display: grid; gap: 10px; max-width: 880px; }
.mains li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--r); padding: 12px 16px; }
.mains .rang { font-weight: 700; color: var(--s-muted); text-align: center; }
.main-texte strong { display: block; }
.main-texte span { color: var(--s-muted); font-size: .92rem; }
.main-cartes { display: flex; gap: 5px; }
.carte-jeu { display: inline-grid; place-items: center; width: 38px; height: 52px; border-radius: 6px; background: #fff; color: #111; border: 1px solid #D5D9E0;
         font-weight: 700; font-size: .95rem; line-height: 1; align-content: center; font-variant-emoji: text; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.carte-jeu.rouge { color: #C8102E; }
@media (max-width: 640px) {
  .mains li { grid-template-columns: 28px 1fr; }
  .main-cartes { grid-column: 1 / -1; }
  .carte-jeu { width: 34px; height: 46px; font-size: .85rem; }
}

/* ---------- Galerie photos : albums, mosaïque et visionneuse ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-bottom: 24px; }
.album { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }
.album-couv { display: block; aspect-ratio: 4 / 3; background: var(--s-surface-2); overflow: hidden; }
.album-couv img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.album:hover .album-couv img { transform: scale(1.03); }
.album-texte { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.page-hero .surtitre a { color: inherit; }
.mosaique { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; margin-bottom: 32px; }
.mosaique a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--s-surface-2); }
.mosaique img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visionneuse { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 15, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 20px; }
.visionneuse[hidden] { display: none; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 4px; }
.visionneuse p { color: #fff; margin: 12px 0 0; text-align: center; min-height: 1.4em; }
.visionneuse button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.visionneuse button:hover { background: rgba(255, 255, 255, .24); }
.visionneuse .v-fermer { top: 12px; right: 12px; }
.visionneuse .v-prec { left: 12px; top: 50%; }
.visionneuse .v-suiv { right: 12px; top: 50%; }

/* Événement hors tournoi dans le calendrier : pas un lien, bordure en pointillés pour le distinguer d'un tournoi */
.event-hors-tournoi { border-style: dashed; }
.event-hors-tournoi:hover { transform: none; }
/* Pastille du type d'événement (« Tournoi partenaire »...) : couleurs explicites, le gris par défaut du badge devenait blanc sur blanc */
.event .badge-event { background: color-mix(in srgb, var(--accent-vif, var(--accent)) 14%, transparent); color: var(--s-text); border: 1px solid var(--s-line); }
.event-logo { display: block; margin: 0 0 6px auto; max-height: 36px; max-width: 120px; object-fit: contain; }
.event-symbole { color: var(--accent-vif, var(--accent)); }
.event-details { margin-top: 6px; font-size: .94rem; font-style: italic; }
.event-details > :first-child { margin-top: 0; }
.event-details > :last-child { margin-bottom: 0; }

/* Tournoi en cours : ma place et composition des tables (page du tournoi, pensée pour le téléphone) */
.ma-place { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; margin: 0 0 22px; border-radius: 12px; background: var(--s-surface); border: 2px solid var(--accent-vif); }
.ma-place span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.ma-place strong { font-size: 1.5rem; }
.tables-direct { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 10px; }
.table-direct { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 12px; padding: 12px 14px; }
.table-direct.mienne { border-width: 2px; border-color: var(--accent-vif); }
.table-direct h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.table-direct ol { list-style: none; margin: 0; padding: 0; }
.table-direct li { display: flex; gap: 10px; align-items: center; padding: 4px 0; border-top: 1px solid var(--s-line); font-size: .95rem; }
.table-direct li:first-child { border-top: 0; }
.table-direct li b { width: 24px; text-align: center; font-variant-numeric: tabular-nums; opacity: .7; }
.table-direct li.moi { font-weight: 700; }
.table-direct li.libre { opacity: .55; }

/* Profil : photo à côté du champ d'envoi */
.profil-photo-ligne { display: flex; gap: 16px; align-items: center; }
.profil-photo-ligne input[type=file] { max-width: 100%; }
/* Recadrage de la photo de profil (js/recadrage.js) : cadre carré, rond indiquant ce qui sera visible */
.recadrage { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.recadrage-cadre { position: relative; width: min(100%, 280px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--s-surface-2); }
.recadrage-cadre canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.recadrage-cadre canvas:active { cursor: grabbing; }
.recadrage-cadre::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 200px rgba(0, 0, 0, .45); pointer-events: none; }
.recadrage-outils { flex: 1; min-width: 180px; }
.recadrage-outils input[type=range] { width: 100%; accent-color: var(--accent); }

/* Page d'un tournoi : présentation du festival (étape) auquel il appartient, repliable */
.freres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.freres a { padding: 5px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--s-hero-text) 25%, transparent); color: var(--s-hero-text); text-decoration: none; font-size: .9rem; transition: background .2s, border-color .2s; }
.freres a:hover { background: color-mix(in srgb, var(--s-hero-text) 10%, transparent); border-color: var(--accent-vif); }
.freres small { color: var(--s-hero-muted); margin-left: 4px; }
.freres .frere-ici { padding: 5px 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 600; }
.freres .frere-ici small { color: inherit; opacity: .8; }
.accordeon { margin: 28px 0 12px; }
.accordeon > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: var(--titre-poids, 700); font-size: 1.35rem; padding: 10px 0; border-bottom: 1px solid var(--s-line); }
.accordeon > summary::-webkit-details-marker { display: none; }
.accordeon > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--accent-vif); transition: transform .25s var(--doux, ease); }
.accordeon[open] > summary::after { transform: rotate(45deg); }
.accordeon[open] > summary { margin-bottom: 14px; }
.encadre-festival { border: 1px solid var(--s-line, var(--line)); border-left: 3px solid var(--accent); border-radius: var(--r, 8px); padding: 12px 16px; background: var(--s-surface, transparent); }
.encadre-festival summary { cursor: pointer; font-weight: 700; color: var(--accent-vif, var(--accent)); }
.encadre-festival .prose { margin-top: 10px; }
.billet-festival { display: block; font-size: .78rem; font-weight: 600; color: var(--accent-vif, var(--accent)); margin-bottom: 2px; }


/* Texte enrichi (pages, actualités) : tailles d'image choisies dans l'éditeur, tableaux, citations */
.prose img:not(.couverture) { height: auto; border-radius: 8px; display: block; margin: 16px auto; max-width: 100%; }
.prose img.img-petite { max-width: min(33%, 260px); }
.prose img.img-moyenne { max-width: min(60%, 520px); }
.prose img.img-grande { max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--s-line, var(--line)); padding: 8px 12px; text-align: left; }
.prose th { background: var(--s-surface-2, transparent); }
.prose blockquote { border-left: 3px solid var(--accent); margin: 16px 0; padding: 4px 16px; color: var(--s-muted, inherit); font-style: italic; }
@media (max-width: 640px) { .prose img.img-petite, .prose img.img-moyenne { max-width: 100%; } }

/* Forum des membres */
.forum { padding-bottom: 48px; }
.forum-categories { display: grid; gap: 12px; margin: 8px 0 32px; }
.forum-categorie { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--s-line); border-radius: var(--r, 10px); background: var(--s-surface); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.forum-categorie:hover { border-color: var(--accent); transform: translateY(-1px); }
.forum-categorie.non-lu { border-left: 4px solid var(--accent); }
.forum-categorie-nom { font-weight: 700; font-size: 1.1rem; }
.forum-categorie-desc, .forum-chiffres { color: var(--s-muted); font-size: .92rem; }
.forum-pastille { font-size: .78rem; font-weight: 600; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.forum-liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--s-line); border-radius: var(--r, 10px); background: var(--s-surface); }
.forum-liste li { display: grid; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--s-line); }
.forum-liste li:last-child { border-bottom: 0; }
.forum-liste a { font-weight: 600; text-decoration: none; color: inherit; }
.forum-liste a:hover { color: var(--accent-vif, var(--accent)); }
.forum-liste li.non-lu a { color: var(--accent-vif, var(--accent)); }
.forum-liste li.non-lu a::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.forum-liste small { color: var(--s-muted); }
.forum-marque { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; color: var(--s-muted); vertical-align: middle; }
.forum-barre { display: flex; justify-content: flex-end; margin: 8px 0 16px; }
.forum-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.forum-pages a { min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid var(--s-line); border-radius: 6px; text-decoration: none; color: inherit; }
.forum-pages a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.forum-message { border: 1px solid var(--s-line); border-radius: var(--r, 10px); background: var(--s-surface); padding: 14px 18px; margin: 0 0 12px; scroll-margin-top: 90px; }
.forum-message:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.forum-message header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.forum-message header .avatar { width: 40px; height: 40px; font-size: .85rem; }
.forum-message header small { display: block; color: var(--s-muted); font-size: .82rem; }
.forum-message footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: .88rem; }
.forum-message footer form { margin: 0; }
.forum-jaime, .forum-lien, .forum-message summary { font: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--s-muted); }
.forum-jaime.actif { color: var(--accent-vif, var(--accent)); font-weight: 600; }
.forum-jaime:hover, .forum-lien:hover, .forum-message summary:hover { color: inherit; }
.forum-modifier[open], .forum-signaler[open] { flex-basis: 100%; }
.forum-modifier form, .forum-signaler form { display: grid; gap: 8px; margin-top: 8px; }
.forum-form { margin-top: 24px; display: grid; gap: 12px; max-width: 860px; }
.forum-form h2 { margin: 0; }
.forum-sondage { border: 1px solid var(--s-line); border-left: 4px solid var(--accent); border-radius: var(--r, 10px); background: var(--s-surface); padding: 16px 18px; margin: 0 0 16px; }
.forum-sondage h2 { font-size: 1.15rem; margin: 0 0 12px; }
.forum-choix { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; align-items: center; gap: 12px; margin-bottom: 8px; }
.forum-voter { font: inherit; text-align: left; padding: 8px 12px; border: 1px solid var(--s-line); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; transition: border-color .2s; }
.forum-voter:hover, .forum-choix.mien .forum-voter { border-color: var(--accent); font-weight: 600; }
.forum-barre-vote { position: relative; display: block; width: 100%; box-sizing: border-box; padding: 6px 10px; border-radius: 6px; overflow: hidden; font-variant-numeric: tabular-nums; }
.forum-barre-vote::before { content: ""; position: absolute; inset: 0; width: var(--pc); background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 6px; animation: barre-vote .8s ease-out; transform-origin: left; }
.forum-barre-vote b, .forum-barre-vote small { position: relative; }
@keyframes barre-vote { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.forum-sondage-form { border: 1px dashed var(--s-line); border-radius: 8px; padding: 10px 14px; }
.forum-sondage-form summary { cursor: pointer; font-weight: 600; }
.forum-moderation { margin-top: 28px; border-top: 1px solid var(--s-line); padding-top: 12px; }
.forum-moderation summary { cursor: pointer; color: var(--s-muted); }
.forum-moderation-outils { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.forum-moderation-outils form { display: flex; gap: 6px; margin: 0; }
@media (max-width: 640px) { .forum-choix { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .forum-barre-vote::before { animation: none; } .forum-categorie:hover { transform: none; } }
/* Vidéo YouTube insérée dans une page ou une actualité (Core\Html) : lecteur 16/9 sur toute la largeur du texte */
.prose .video-youtube { aspect-ratio: 16 / 9; margin: 16px 0; border-radius: 10px; overflow: hidden; background: #000; }
.prose .video-youtube iframe { display: block; width: 100%; height: 100%; border: 0; }
.envoi-photos { display: grid; gap: 8px; margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--s-line); border-radius: 12px; }
.envoi-photos label { font-weight: 600; }
.envoi-photos .btn { justify-self: start; }
.envoi-photos p { margin: 0; }

/* Classements : podium (3 premiers, le 1er au centre et plus haut) et photo devant chaque joueur du tableau */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); justify-content: center; align-items: end; gap: 12px; margin: 8px 0 26px; }
.podium-marche { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.podium-marche .avatar-podium { width: 76px; height: 76px; font-size: 1.3rem; border-color: var(--accent-vif); }
.podium-marche.p1 .avatar-podium { width: 96px; height: 96px; font-size: 1.6rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-vif) 30%, transparent); }
.podium-nom { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--titre); }
.podium-pts { color: var(--s-muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.podium-socle { display: grid; place-items: center; width: 100%; margin-top: 6px; border-radius: var(--r) var(--r) 0 0; background: var(--accent); color: var(--accent-ink); font-family: var(--titre); font-weight: 700; font-size: 1.6rem; }
.podium-marche.p1 .podium-socle { height: 84px; }
.podium-marche.p2 .podium-socle { height: 60px; opacity: .85; }
.podium-marche.p3 .podium-socle { height: 44px; opacity: .7; }
.joueur-ligne { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 520px) { .podium { gap: 6px; } .podium-marche .avatar-podium { width: 56px; height: 56px; } .podium-marche.p1 .avatar-podium { width: 72px; height: 72px; } }

/* Actualité sans photo : logo du club (ou monogramme) au centre de la vignette, à taille fixe pour tous les logos */
.vignette-logo.vignette-vide, .vignette-logo.h-une-vide { display: flex; align-items: center; justify-content: center; }
.vignette-logo img { height: 84px; width: auto; max-width: 62%; object-fit: contain; }
.news-card.une .vignette-logo img, .h-une-image.vignette-logo img { height: 110px; }
.vignette-monogramme { font-family: var(--titre); font-weight: 800; letter-spacing: .04em; }
.h-une-image.vignette-logo { min-height: 160px; }
.menu-compact .site-nav .site-deconnexion { margin: 8px 0 0; } .menu-compact .site-nav .site-deconnexion button { width: 100%; padding: 10px 12px; }

/* Carte de la buvette : en-tête, une tuile par rubrique, prix en pastille */
.buvette { border: 1px solid var(--s-line); border-radius: calc(var(--r) + 2px); background: var(--s-surface); overflow: hidden; }
.buvette-tete { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: color-mix(in srgb, var(--accent) 12%, var(--s-surface-2)); border-bottom: 1px solid var(--s-line); }
.buvette-symbole { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; }
.buvette-tete h2 { margin: 0; font-size: 1.15rem; }
.buvette-tete p { margin: 2px 0 0; font-size: .88rem; color: var(--s-muted); }
.buvette-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 18px 20px 20px; }
.buvette-rubrique { padding: 14px 16px; border: 1px solid var(--s-line); border-radius: var(--r); background: var(--s-surface-2); }
.buvette-rubrique h3 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-vif); }
.buvette-rubrique ul { list-style: none; margin: 0; padding: 0; }
.buvette-rubrique li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--s-line); }
.buvette-rubrique li:first-child { border-top: 0; }
.buvette-nom small { display: block; margin-top: 1px; font-size: .82rem; color: var(--s-muted); }
.buvette-etoile { color: var(--accent-vif); }
.buvette-prix { flex: none; padding: 3px 10px; border-radius: 99px; background: var(--s-surface); border: 1px solid var(--s-line); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.buvette-rubrique li.en-avant .buvette-prix { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* Chiffres « de titrage » (alignés sur la ligne) quelle que soit la police du style : évite les 00 qui ressemblent à « oo » */
body { font-variant-numeric: lining-nums; }

/* Classements comme la V1 : championnats côte à côte, recherche, détail des résultats d'un joueur */
.classement-outils { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 14px; }
.classement-recherche { display: grid; gap: 4px; font-size: .85rem; color: var(--s-muted); }
.classement-recherche input { padding: 9px 12px; min-width: 240px; border: 1px solid var(--s-line); border-radius: 8px; background: var(--s-surface); color: var(--s-text); font: inherit; }
.classements-cote { display: grid; gap: 28px; align-items: start; }
.classements-cote.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.classements-cote.cols-3, .classements-cote.cols-4 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.classement-bloc h2 { font-size: 1.3rem; margin: 0 0 10px; text-align: center; }
.classement-bloc .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-classement th:first-child, .table-classement td:first-child { width: 56px; }
.table-classement td:last-child, .table-classement th:last-child { width: 44px; padding-left: 0; }
.table-classement tr.moi td { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.table-classement tr.trouve td { background: color-mix(in srgb, var(--accent-vif) 28%, transparent); }
.classement-plus { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--s-muted); cursor: pointer; transition: transform var(--t), background var(--t); }
.classement-plus:hover { background: color-mix(in srgb, var(--s-text) 8%, transparent); }
.classement-plus[aria-expanded="true"] { transform: rotate(180deg); }
.classement-detail td { padding: 4px 14px 14px 70px; background: var(--s-surface-2); }
.classement-detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.classement-detail li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.classement-detail li.non-retenu { opacity: .5; text-decoration: line-through; }
.classement-place { margin-left: auto; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .classements-cote.cols-2 { grid-template-columns: 1fr; } .classement-recherche input { min-width: 0; width: 100%; } .classement-detail td { padding-left: 14px; } }
.classement-moi { text-align: center; margin: 0 0 12px; }

/* Règlement et statuts : accordéons (details) */
.accordeons { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.accordeon { border: 1px solid var(--s-line); border-radius: var(--r); background: var(--s-surface); }
.accordeon > summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-weight: 600; position: relative; }
.accordeon > summary::-webkit-details-marker { display: none; }
/* Flèche (chevron) à droite, qui se retourne quand l'article est ouvert */
.accordeon > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--accent-vif, var(--accent)); border-bottom: 2px solid var(--accent-vif, var(--accent)); transform: rotate(45deg); transition: transform var(--t); }
.accordeon[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
.accordeon[open] { border-color: color-mix(in srgb, var(--accent-vif, var(--accent)) 55%, var(--s-line)); }
.tabs-reglement { max-width: 820px; margin: 0 auto 18px; padding: 6px; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); }
.tabs-reglement a { flex: 1; text-align: center; border: 0; border-radius: 10px; background: transparent; }
.reglement-recherche { display: block; }
.reglement-recherche input { width: 100%; padding: 12px 16px; border: 1px solid var(--s-line); border-radius: 99px; background: var(--s-surface); color: var(--s-text); font: inherit; }
.reglement-intro { margin: 0; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--accent-vif, var(--accent)) 40%, var(--s-line)); border-radius: 10px; background: color-mix(in srgb, var(--accent-vif, var(--accent)) 8%, transparent); font-size: .92rem; }
.accordeon-corps { padding: 0 18px 16px; }
.faq-contact { max-width: 820px; margin: 36px auto 0; }
.faq-contact h2 { font-size: 1.4rem; margin: 0 0 14px; }
.fiche.avantages li { display: block; }
.fiche.avantages li span { display: block; font-weight: 600; }

/* Page Tournois comme la V1 : pastilles d'étapes, grande carte de l'étape, onglets, cartes de tournois avec tuiles */
.etapes-rangee { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 14px; margin: 0 0 18px; scrollbar-width: thin; }
.etape-pastille { flex: 0 0 auto; display: grid; gap: 2px; justify-items: center; padding: 12px 20px; border: 1px solid var(--s-line); border-radius: 40px; background: var(--s-surface); color: var(--s-text); text-decoration: none; min-width: 112px; transition: transform var(--t), box-shadow var(--t); }
.etape-pastille:hover { transform: translateY(-2px); }
.etape-pastille b { font-size: .98rem; }
.etape-pastille small { color: var(--s-muted); font-size: .85rem; }
.etape-pastille.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 38%, transparent); }
.etape-pastille.active small { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.etape-carte { position: relative; padding: 28px 30px 30px; margin: 0 0 22px; border: 1px solid var(--s-line); border-radius: var(--r); background: var(--s-surface); overflow: hidden; }
.etape-carte::before, .panneau-evenements::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-vif, var(--accent)) 18%, var(--accent-vif, var(--accent)) 82%, transparent); }   /* liseré de couleur en haut des grandes cartes, estompé sur les côtés */
.panneau-evenements { position: relative; overflow: hidden; }
.etape-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.etape-delai { margin: 0 0 4px; color: var(--s-muted); }
.etape-carte h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: .02em; }
.etape-infos { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 18px 0 20px; font-size: 1.05rem; }
.etape-infos span { display: inline-flex; align-items: center; gap: 8px; }
.etape-infos svg, .tournoi-quand svg, .etape-carte .btn svg { width: 1.15em; height: 1.15em; color: var(--accent-vif, var(--accent)); flex: none; }
.etape-carte .btn svg { color: inherit; vertical-align: -.2em; }
.etape-desc { margin: 0 0 20px; max-width: 760px; }
.etape-onglets { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin: 0 0 20px; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); }
.etape-onglets a { flex: 1 1 110px; text-align: center; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--s-muted); font-weight: 500; }
.etape-onglets a[aria-current] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tournois-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; align-items: start; }
.tournoi-carte { display: block; padding: 22px 24px; border: 1px solid var(--s-line); border-radius: var(--r); background: var(--s-surface); color: var(--s-text); text-decoration: none; transition: transform var(--t), border-color var(--t); }
a.tournoi-carte:hover { transform: translateY(-2px); border-color: var(--accent-vif, var(--accent)); }
.tournoi-carte h3 { margin: 0 0 12px; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; }
.tournoi-symbole { color: var(--accent-vif, var(--accent)); margin-right: 6px; }
.tournoi-quand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.tournoi-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tournoi-tuiles div, .tournoi-tuiles .tuile-lien { padding: 12px 14px; border-radius: 10px; background: var(--s-surface-2); min-width: 0; }
/* Tuile « Inscrits » cliquable : ouvre la liste des inscrits (ou les tables) sur l'écran du chrono */
.tournoi-tuiles .tuile-lien { display: block; color: inherit; text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
.tournoi-tuiles .tuile-lien:hover, .tournoi-tuiles .tuile-lien:focus-visible { border-color: var(--accent-vif); }
.tournoi-tuiles small { display: block; color: var(--s-muted); font-size: .82rem; margin-bottom: 4px; }
.tournoi-tuiles b { display: block; font-size: 1.25rem; font-variant-numeric: lining-nums tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pause-ligne td { text-align: center; color: var(--s-muted); font-style: italic; }
@media (max-width: 560px) { .etape-carte { padding: 22px 18px; } .tournoi-tuiles { gap: 6px; } .tournoi-tuiles div, .tournoi-tuiles .tuile-lien { padding: 10px; } }

/* Carte de tournoi autonome (page Tournois) : inscription, inscrits et tables dans la carte */
.inscription-carte { margin: 16px 0 6px; }
.tournoi-carte h3 a { color: inherit; text-decoration: none; }
.tournoi-carte h3 a:hover { color: var(--accent-vif, var(--accent)); }

/* Chrono perso en plein écran : joueurs en jeu sur le côté (on élimine sans quitter le plein écran), options qui s'effacent */
.cp-joueurs { display: none; }
.chrono-perso:fullscreen { padding-right: calc(min(26vw, 340px) + 3vw); }
.chrono-perso:fullscreen .cp-joueurs { display: block; position: fixed; top: 0; right: 0; bottom: 0; width: min(26vw, 340px); overflow-y: auto; padding: 3vh 1.4vw; text-align: left; background: color-mix(in srgb, var(--s-text) 6%, transparent); border-left: 1px solid color-mix(in srgb, var(--s-text) 18%, transparent); }
.cp-joueurs h3 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--s-muted); }
.cp-joueurs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cp-joueurs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--s-text) 12%, transparent); font-weight: 600; }
.chrono-perso:fullscreen .cp-options { transition: opacity .4s; }
.chrono-perso:fullscreen.inactif .cp-options { opacity: 0; pointer-events: none; }
.chrono-perso:fullscreen.inactif { cursor: none; }

/* Page Devenir membre : ce que comprend l'abonnement (tournois live / online), comme la V1 */
.abonnement { margin-bottom: 24px; }
.abonnement-titre { margin: 0 0 4px; font-size: 1.3rem; }
.abonnement-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 14px; }
.abonnement h3 { margin: 0 0 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-vif); }
.abonnement-carte { padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--s-line); border-radius: 10px; background: var(--s-surface-2); }
.abonnement-carte b { display: block; margin-bottom: 2px; }
.abonnement-carte p { margin: 0; color: var(--s-muted); font-size: .9rem; }
.abonnement-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .88rem; color: var(--s-text); background: color-mix(in srgb, var(--accent-vif) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent-vif) 35%, transparent); }

/* Inscription d'un membre par son pseudo (visiteur non connecté) */
.inscription-pseudo { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--s-line); }
.inscription-pseudo-champ { display: flex; gap: 8px; margin-top: 4px; }
.inscription-pseudo-champ input { flex: 1; min-width: 0; }
.filtre-photos { margin-bottom: 14px; }   /* photos de l'étape : filtre par tournoi */

/* Règles du poker : hiérarchie des mains comme la V1 (première mise en avant, dernière grisée, kickers sans couleur) */
.regles .accordeons .mains { max-width: none; margin: 16px 0 24px; }
.mains .main-royale { border-color: var(--accent-vif); box-shadow: 0 0 0 1px var(--accent-vif) inset; }
.mains .main-royale .rang { color: var(--accent-vif); }
.mains .main-faible { opacity: .75; }
.carte-jeu.neutre { color: #5E6773; }

/* Bouton « Modifier ce texte » (équipe du club), comme la V1 */
.modifier-texte { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.modifier-texte .btn svg { width: 1em; height: 1em; vertical-align: -.12em; }

/* Calendrier public : bascule liste / tableau et couleurs par nature (club, en ligne, partenaire, événement) */
.cal-outils { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.cal-bascule { display: inline-flex; border: 1px solid var(--s-line); border-radius: 999px; overflow: hidden; background: var(--s-surface, #fff); }
.cal-bascule a { padding: 8px 18px; font-weight: 600; text-decoration: none; color: var(--s-text); }
.cal-bascule a.actif { background: var(--accent); color: var(--accent-ink, #fff); }
.cal-legende-pub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
/* Légende : le club et ses partenaires, avec leur logo et leur couleur */
.cal-legende-item { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .85rem; color: var(--s-text); }
.cal-legende-item img { height: 18px; width: auto; max-width: 56px; object-fit: contain; }
.cal-point { display: inline-block; width: .65em; height: .65em; border-radius: 50%; background: var(--c); flex: none; }
.cal-n-club { --c: #3D8BE0; }
.cal-n-partenaire { --c: #8A3FC7; }
.cal-n-autre { --c: #8A5FD0; }
.cal-bloc .event { border-left: 5px solid var(--c); }   /* liste : trait de couleur selon la nature */
.cal-barre-pub { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }   /* flèches aux extrémités, mois au centre */
.cal-barre-pub h2 { margin: 0; font-size: 1.2rem; min-width: 12ch; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.cal-off { opacity: .35; }
.cal-grille-pub { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--s-line); border-left: 1px solid var(--s-line); background: var(--s-surface, #fff); }
.cal-jour-nom-pub { padding: 6px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--s-muted); border-right: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); }
.cal-case-pub { min-height: 124px; padding: 4px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); min-width: 0; }
.cal-case-pub.hors { opacity: .45; }
.cal-case-pub.aujourdhui { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num-pub { font-size: .8rem; font-weight: 700; }
.cal-case-pub::before { content: ""; display: block; height: 3px; margin: -4px -4px 3px; background: var(--lis, transparent); }   /* liseré : couleur du type d'événement (dégradé s'il y en a plusieurs) */
.cal-case-pub.aujourdhui .cal-num-pub { align-self: flex-start; display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #fff); }
.cal-puce { display: flex; align-items: center; gap: 5px; padding: 3px 5px; border-radius: 6px; font-size: .72rem; line-height: 1.2; text-decoration: none; color: var(--s-text);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 16%, var(--s-surface, #fff)); }
.cal-puce:hover { background: color-mix(in srgb, var(--c) 28%, var(--s-surface, #fff)); }
.cal-puce img { width: 18px; height: 18px; flex: none; object-fit: contain; }
.cal-puce span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* intitulé sur 2 lignes, coupé par « … » seulement s'il est trop long */
@media (max-width: 700px) { .cal-case-pub { min-height: 84px; } .cal-puce { font-size: .62rem; padding: 2px 3px; gap: 3px; } .cal-puce img { width: 14px; height: 14px; } .cal-legende-pub { width: 100%; } }
.cal-fiche { position: relative; margin-top: 18px; padding: 20px 24px; border: 1px solid var(--s-line); border-top: 4px solid var(--c); border-radius: 12px; background: var(--s-surface, #fff); }
.cal-fiche h3 { margin: 0 0 4px; }
.cal-fiche .event-logo { float: right; max-height: 56px; max-width: 160px; margin-left: 16px; }
.cal-fiche-quand { margin: 0 0 10px; color: var(--s-muted); }
.cal-fiche-infos { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.cal-fiche-infos b { display: inline-block; min-width: 9ch; }
.cal-fiche-fermer { position: absolute; top: 8px; right: 14px; font-size: 1.6rem; text-decoration: none; color: var(--s-muted); }

/* Barre d'icônes en bas de l'écran (téléphone et tablette) : cachée sur ordinateur */
.site-tabbar, .site-plus-panneau { display: none; }
@media (max-width: 1120px) {
  .site-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--s-head-bg); color: var(--s-head-text); border-top: 1px solid color-mix(in srgb, var(--s-head-text) 14%, transparent);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .site-tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 2px; font-size: .7rem; font-weight: 500; text-decoration: none; color: color-mix(in srgb, var(--s-head-text) 66%, transparent); }
  .site-tabbar svg { width: 22px; height: 22px; }
  .site-tabbar .site-plus { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; font: inherit; font-size: .7rem; font-weight: 500; background: none; border: 0; cursor: pointer; color: color-mix(in srgb, var(--s-head-text) 66%, transparent); }
  .site-tabbar .site-plus[aria-expanded="true"] { color: var(--accent-vif, var(--accent)); font-weight: 700; }
  /* Panneau « Plus » : toutes les autres pages en grille d'icônes, juste au-dessus de la barre */
  .site-plus-panneau:not([hidden]) {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; position: fixed; left: 8px; right: 8px; z-index: 55;
    bottom: calc(66px + env(safe-area-inset-bottom)); max-height: 60vh; overflow-y: auto; padding: 10px; border-radius: 14px;
    background: var(--s-head-bg); color: var(--s-head-text); border: 1px solid color-mix(in srgb, var(--s-head-text) 18%, transparent); box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  }
  .site-plus-panneau a { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border-radius: 10px; text-align: center; text-decoration: none; color: inherit; font-size: .78rem; line-height: 1.2; background: color-mix(in srgb, var(--s-head-text) 8%, transparent); }
  .site-plus-panneau svg { width: 26px; height: 26px; color: var(--accent-vif, var(--accent)); }
  /* La barre d'icônes remplace le menu hamburger (sans JavaScript, le menu du haut reste affiché) */
  html:not(.sans-js) .site-head .site-burger, html:not(.sans-js) .menu-compact .site-burger { display: none; }
  .site-tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Connexion (visiteur non connecté) : pastille pleine à la couleur d'accent, bien visible dans la barre */
  .site-tabbar a.tab-connexion { color: var(--accent-ink, #fff); font-weight: 700; }
  .site-tabbar a.tab-connexion::before { content: ""; position: absolute; inset: 2px 6px; border-radius: 12px; background: var(--accent-vif, var(--accent)); z-index: -1; }
  .site-tabbar a.tab-connexion[aria-current] { box-shadow: none; color: var(--accent-ink, #fff); }
  .site-tabbar a[aria-current] { color: var(--accent-vif, var(--accent)); font-weight: 700; box-shadow: inset 0 3px 0 var(--accent-vif, var(--accent)); }
  .site-tabbar .pastille-bas { position: absolute; top: 4px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent-vif, var(--accent)); }
  /* La place de la barre est réservée en bas de page ; le bandeau de prévention se pose juste au-dessus */
  body.site { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .site-prevention { bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* Couleur choisie pour un partenaire (variable --pc posée sur la carte ou l'événement) */
.partenaire-events[style*="--pc"] { border-left: 4px solid var(--pc); }
.partenaire-events[style*="--pc"] .partenaire-initiale { background: var(--pc); color: #fff; }
.event-hors-tournoi[style*="--pc"] .date { background: var(--pc); color: #fff; }
.event-hors-tournoi[style*="--pc"] .date span { color: #fff; }

/* Logo Winamax à droite d'un lot en ticket Winamax */
.lots li .lot-winamax { height: 28px; width: 28px; margin-left: auto; border-radius: 6px; object-fit: contain; }

/* Boutique du club : une carte par article (photo, texte, choix de la taille et de la quantité) */
.boutique-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.boutique-article { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.boutique-photo { display: block; aspect-ratio: 1; border-radius: calc(var(--r) - 4px); overflow: hidden; background: var(--s-surface-2); }
.boutique-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boutique-texte h2 { font-size: 1.2rem; margin: 0 0 4px; }
.boutique-prix { font-family: var(--titre); font-size: 1.3rem; color: var(--accent-vif); margin: 0; }
.boutique-desc { color: var(--s-muted); margin: 8px 0 0; font-size: .95rem; }
.boutique-choix { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: auto; }
.boutique-choix label { display: grid; gap: 4px; }
.boutique-choix input[type=number] { width: 72px; }
.boutique-choix .btn { flex: 1 1 100%; }
