:root {
  --bleu-nuit: #0b1f3a;
  --bleu: #14315c;
  --orange: #f4622a;
  --orange-fonce: #d84e1a;
  --gris-clair: #f4f5f7;
  --gris: #6b7280;
  --gris-fonce: #1f2430;
  --blanc: #ffffff;
  --bordure: #e2e5ea;
  --radius: 10px;
  --ombre: 0 2px 10px rgba(11, 31, 58, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gris-fonce);
  background: var(--gris-clair);
  line-height: 1.55;
}

a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; border-radius: var(--radius); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bleu-nuit);
  color: var(--blanc);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--ombre);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1120px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blanc);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand .logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.brand .brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #b7c2d6;
}

nav.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main-nav a {
  color: #dce3f0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 600;
}
nav.main-nav a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
nav.main-nav a.active { background: var(--orange); color: var(--blanc); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #3a4b6b;
  color: var(--blanc);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .header-bar { flex-wrap: wrap; }
  nav.main-nav { display: none; width: 100%; flex-direction: column; gap: 2px; }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Logo du club : toujours sur une plaque blanche (le logo comporte du noir) */
.brand-logo { display: inline-flex; align-items: center; background: var(--blanc); border-radius: 10px; padding: 4px 10px; }
.brand-logo img { display: block; height: 44px; width: auto; border-radius: 0; }
.site-header .brand-logo { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); }
.site-header .brand-logo img { height: 50px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 46px; }
.admin-logo { margin-bottom: 14px; }
.admin-logo img { height: 32px; }
.login-logo img { height: 58px; }
@media (max-width: 860px) {
  .site-header .brand-logo img { height: 38px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu));
  color: var(--blanc);
  padding: 64px 20px;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 12px; }
.hero p { font-size: 1.05rem; color: #cfd9ec; max-width: 640px; margin: 0 auto 22px; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--blanc);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { background: var(--orange-fonce); text-decoration: none; }
.btn.secondaire { background: transparent; border: 1px solid var(--blanc); color: var(--blanc); }
.btn.discret { background: var(--bleu); }
.btn.danger { background: #b91c1c; }
.btn.petit { padding: 6px 14px; font-size: 0.85rem; }

/* ---------- Sections / cards ---------- */
main { min-height: 60vh; }
.section { padding: 48px 20px; }
.section h2 {
  font-size: 1.6rem;
  margin: 0 0 24px;
  color: var(--bleu-nuit);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.carte {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  overflow: hidden;
  border: 1px solid var(--bordure);
}
.carte img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.carte-corps { padding: 16px; }
.carte-corps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.carte-corps p { color: var(--gris); font-size: 0.92rem; margin: 0 0 10px; }
.badge {
  display: inline-block;
  background: var(--gris-clair);
  color: var(--bleu-nuit);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Partenaires ---------- */
.partenaires-intro { max-width: 720px; color: var(--gris); }
.partenaires-rubrique { margin-top: 32px; }
.partenaires-rubrique h3 { margin: 0 0 14px; font-size: 1.15rem; color: var(--bleu-nuit); }
.carte-partenaire .carte-corps { text-align: center; display: flex; flex-direction: column; align-items: center; height: 100%; box-sizing: border-box; }
.carte-partenaire .partenaire-logo { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.carte-partenaire .partenaire-logo img { width: auto; max-width: 100%; max-height: 80px; aspect-ratio: auto; object-fit: contain; }
.carte-partenaire .partenaire-extrait { margin: 10px 0 0; }
.carte-partenaire .partenaire-liens { margin: auto 0 0; padding-top: 12px; font-size: 0.9rem; }
.partenaire-fiche { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; max-width: 860px; }
.partenaire-fiche-logo { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: center; }
.partenaire-fiche-logo img { max-width: 100%; max-height: 160px; width: auto; }
.partenaire-fiche-texte p { margin: 0 0 14px; line-height: 1.6; }
@media (max-width: 640px) {
  .partenaire-fiche { grid-template-columns: 1fr; }
}

/* ---------- Équipe dirigeante ---------- */
.dirigeants-grille { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.carte-dirigeant .carte-corps { text-align: center; }
.dirigeant-photo { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--gris-clair); display: flex; align-items: center; justify-content: center; }
.carte .dirigeant-photo img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.dirigeant-initiales { font-size: 2rem; font-weight: 700; color: var(--bleu-nuit); letter-spacing: 0.04em; }
.carte-dirigeant .dirigeant-fonction { color: var(--orange-fonce); font-weight: 700; font-size: 0.9rem; margin: 0 0 8px; }
.carte-dirigeant .dirigeant-description { white-space: pre-line; margin: 8px 0 0; }
.dirigeants-rubrique { margin-top: 32px; }
.dirigeants-rubrique h3 { margin: 0 0 14px; font-size: 1.15rem; color: var(--bleu-nuit); }
.conseil-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 20px; }
.conseil-liste li { display: flex; align-items: center; gap: 10px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius); padding: 8px 12px; }
.conseil-liste .conseil-photo { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--gris-clair); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: var(--bleu-nuit); }
.conseil-liste .conseil-photo img { width: 100%; height: 100%; object-fit: cover; }
.conseil-liste .conseil-fonction { display: block; font-size: 0.8rem; color: var(--gris); }

/* ---------- Installations sportives ---------- */
.installations-infos { max-width: 760px; margin: 0 0 24px; }
.installations-infos ul { margin: 8px 0 0; padding-left: 20px; }
.installations-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.installation .carte-corps h3 { font-size: 1.2rem; margin-bottom: 4px; }
.installation-adresse { margin: 0 0 12px; font-weight: 600; color: var(--bleu-nuit); }
.installation .installation-photo { margin: 0 0 14px; }
.installation .installation-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; }
.installation h4 { margin: 14px 0 6px; font-size: 0.95rem; color: var(--bleu-nuit); }
.installation ul { margin: 0; padding-left: 20px; }
.installation li { margin: 0 0 4px; }
.installation-liens { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; font-size: 0.9rem; }
.installations-source { margin: 20px 0 0; font-size: 0.85rem; color: var(--gris); }

/* ---------- Histoire du club ---------- */
.histoire-intro { max-width: 760px; }
.histoire-intro p { margin: 0 0 14px; line-height: 1.7; }
.frise { list-style: none; margin: 32px 0 0; padding: 0 0 0 28px; position: relative; max-width: 860px; }
.frise::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--bordure); }
.frise-etape { position: relative; padding: 0 0 28px 0; }
.frise-etape:last-child { padding-bottom: 0; }
.frise-etape::before { content: ''; position: absolute; left: -28px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid var(--blanc); box-shadow: 0 0 0 2px var(--orange); box-sizing: border-box; }
.frise-annee { display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--orange-fonce); margin-bottom: 4px; }
.frise-etape h3 { margin: 0 0 6px; font-size: 1.15rem; }
.frise-etape p { margin: 0 0 10px; line-height: 1.65; color: var(--gris); }
.frise-photo { margin: 10px 0 0; max-width: 480px; }
.frise-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* ---------- Tables (matchs, admin) ---------- */
table { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: var(--radius); overflow: hidden; }
table th, table td { padding: 10px 12px; border-bottom: 1px solid var(--bordure); text-align: left; font-size: 0.92rem; }
table th { background: var(--gris-clair); color: var(--bleu-nuit); }
.table-wrap { position: relative; overflow-x: auto; box-shadow: var(--ombre); border-radius: var(--radius); }
.procedure .box { margin-bottom: 24px; max-width: 860px; }
.procedure-sous-titre { color: var(--gris); margin-top: -8px; }
.procedure-titre { margin: 32px 0 14px; }
.procedure h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--bleu-nuit); }
.procedure ol, .procedure ul { padding-left: 1.4em; }
.procedure li { margin-bottom: 8px; }
.procedure ol ol, .procedure li ul { margin-top: 8px; }
.tarifs-sous-titre { color: var(--gris); margin-top: -8px; }
.tableau-tarifs { min-width: 860px; }
.tableau-tarifs th[scope="row"] { background: transparent; color: var(--bleu-nuit); white-space: nowrap; }
.tableau-tarifs td.centre { text-align: center; font-weight: 700; }
.tableau-tarifs td.tarif { font-weight: 700; color: var(--orange-fonce); white-space: nowrap; }
.tarifs-note { font-size: 0.85rem; color: var(--gris); margin: 10px 0 28px; }
.tarifs-listes { margin-bottom: 24px; }
.tarifs-listes .box { max-width: none; }
.tarifs-listes h3 { margin-top: 0; }
.tarifs-listes ul { padding-left: 1.2em; margin-bottom: 0; }
.tarifs-listes li { margin-bottom: 8px; }
.liens-utiles .box { max-width: 860px; margin-bottom: 24px; }
.liens-utiles h3 { margin-top: 0; }
.instance { border-top: 1px solid var(--bordure, #d8dde6); padding: 12px 0; }
.instance:last-of-type { border-bottom: 1px solid var(--bordure, #d8dde6); }
.instance summary { cursor: pointer; list-style: none; padding-right: 28px; position: relative; }
.instance summary::-webkit-details-marker { display: none; }
.instance summary::after { content: '+'; position: absolute; right: 4px; top: 0; font-size: 1.4rem; line-height: 1.2; color: var(--orange); }
.instance[open] summary::after { content: '\2212'; }
.instance-nom { display: block; font-weight: 700; font-size: 1.05rem; }
.instance h4 { margin: 18px 0 10px; font-size: 0.95rem; color: var(--bleu-nuit); }
.instance-site { margin: 14px 0 0; font-size: 0.9rem; }
.liste-liens { list-style: none; padding: 0; margin: 0; }
.liste-liens li { margin-bottom: 10px; }
.liste-liens a { font-weight: 700; }
.lien-detail { display: block; font-size: 0.85rem; color: var(--gris); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guide-intro { max-width: 860px; }
.guide-types { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 24px; }
.guide-types h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--bleu-nuit); }
.guide-types p { margin: 0; color: var(--gris-fonce); font-size: 0.95rem; }
.guide-attention {
  max-width: 860px; margin: 0 0 32px; padding: 14px 18px; background: #fff4ec;
  border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0;
}
.guide-titre-tableau { margin: 0 0 12px; font-size: 1.3rem; color: var(--bleu-nuit); }
.guide-legende { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; }
.guide-legende li { display: flex; align-items: center; gap: 6px; }
.tableau-ballon { border-collapse: separate; border-spacing: 4px; min-width: 900px; background: var(--blanc); }
.tableau-ballon th, .tableau-ballon td { border-bottom: none; padding: 0; text-align: center; }
.tableau-ballon thead th { background: transparent; padding: 6px 4px; font-size: 0.85rem; line-height: 1.2; white-space: nowrap; }
.tableau-ballon .taille { display: block; font-weight: 500; font-size: 0.75rem; color: var(--gris); }
.tableau-ballon tbody th {
  position: sticky; left: 0; z-index: 1; background: var(--blanc); text-align: left;
  padding: 10px 12px; white-space: nowrap; color: var(--bleu-nuit); font-size: 0.9rem;
}
.tableau-ballon thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--blanc); text-align: left; padding-left: 12px; }
.note {
  display: flex; align-items: center; justify-content: center; min-width: 52px; min-height: 40px;
  padding: 0 6px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; white-space: nowrap;
}
.guide-legende .note { min-width: 48px; min-height: 26px; display: inline-flex; font-size: 0.75rem; }
.note.n4 { background: #17803a; color: #fff; }
.note.n3 { background: #34c759; color: #0b2e16; }
.note.n2 { background: #7ed957; color: #0b2e16; }
.note.n1 { background: #c9ea70; color: #2b3a05; }
.note.n0 { background: #ffe066; color: #4a3b00; }
.note.nm { background: #ff9f43; color: #4a2300; }
.note.na { background: #eceef2; }
.bloc-tailles { max-width: 860px; margin-bottom: 28px; }
.bloc-tailles h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--bleu-nuit); }
.tableau-tailles { border-collapse: collapse; min-width: 480px; }
.tableau-tailles th, .tableau-tailles td { text-align: center; padding: 12px 10px; border-bottom: 1px solid var(--bordure); }
.tableau-tailles th[scope="row"] { text-align: left; background: var(--gris-clair); color: var(--bleu-nuit); white-space: nowrap; position: sticky; left: 0; }
.tableau-tailles td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau-tailles tr:last-child th, .tableau-tailles tr:last-child td { border-bottom: none; }
.tableau-tailles .ligne-taille td { padding: 8px 6px; }
.pastille-taille {
  display: inline-block; min-width: 48px; padding: 6px 10px; border-radius: 8px;
  background: var(--bleu-nuit); color: var(--blanc); font-weight: 700;
}
.document-edition { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 90px auto; gap: 12px; align-items: end; }
.document-edition .champ { margin: 0; }
@media (max-width: 760px) { .document-edition { grid-template-columns: 1fr; } }
.actu-source { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--bordure); font-size: 0.9rem; color: var(--gris); }
.actus-ffhb-intro { margin-top: -8px; color: var(--gris); font-size: 0.92rem; }
.actu-figure { margin: 0 0 16px; }
.credit-photo-legende { margin-top: 6px; font-size: 0.8rem; color: var(--gris); text-align: right; }
.carte-image { position: relative; }
.credit-photo {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px;
  background: rgba(11, 31, 58, 0.78); color: var(--blanc); font-size: 0.7rem; letter-spacing: 0.02em;
}
.section-head h2 a { color: inherit; }
.section-head h2 a:hover { color: var(--orange-fonce); text-decoration: none; }
.reseaux-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.reseau-carte h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--bleu-nuit); }
.reseau-carte p { margin: 0 0 14px; color: var(--gris); font-size: 0.92rem; }
.embed-consentement { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.embed-consentement p { margin: 0; }
.embed-consentement .reseau-lien { font-size: 0.9rem; }
.embed-cadre { display: block; width: 100%; height: 520px; border: 0; border-radius: var(--radius); background: var(--gris-clair); }
.defilement {
  overflow: hidden; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius);
  box-shadow: var(--ombre); padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.defilement-piste {
  display: flex; width: max-content; margin: 0; padding: 0; list-style: none;
  animation: defilement var(--duree, 40s) linear infinite;
}
.defilement:hover .defilement-piste, .defilement:focus-within .defilement-piste { animation-play-state: paused; }
.defilement-piste li { flex: 0 0 190px; width: 190px; padding: 0 20px; display: flex; align-items: center; justify-content: center; }
.defilement-piste a { display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.defilement-piste img { max-height: 64px; max-width: 150px; width: auto; height: auto; object-fit: contain; border-radius: 0; }
@keyframes defilement { to { transform: translateX(-50%); } }

/* Bandeau défilant sous le menu : derniers résultats, prochains matchs et événements (partials/bandeau.ejs). */
.bandeau-infos { display: flex; align-items: stretch; background: var(--blanc); border-bottom: 1px solid var(--bordure); font-size: 0.88rem; line-height: 1.3; }
.bandeau-titre { flex: 0 0 auto; display: flex; align-items: center; padding: 0 14px; background: var(--orange); color: var(--blanc); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
.bandeau-titre:hover { text-decoration: none; background: var(--orange-fonce); }
.bandeau-fenetre {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
}
.bandeau-piste { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: defilement var(--duree, 60s) linear infinite; }
.bandeau-infos:hover .bandeau-piste, .bandeau-infos:focus-within .bandeau-piste, .bandeau-infos.en-pause .bandeau-piste { animation-play-state: paused; }
.bandeau-element { flex: 0 0 auto; border-right: 1px solid var(--bordure); }
.bandeau-element a { display: flex; align-items: center; gap: 8px; padding: 9px 18px; color: var(--gris-fonce); white-space: nowrap; }
.bandeau-element a:hover { text-decoration: none; background: var(--gris-clair); }
.bandeau-etiquette { padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; background: #e0edff; color: #1d4ed8; }
.bandeau-quand { color: var(--gris); font-variant-numeric: tabular-nums; }
.bandeau-texte { font-weight: 700; color: var(--bleu); }
.bandeau-affiche { display: inline-flex; align-items: center; gap: 6px; }
.bandeau-logo { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.bandeau-score { font-variant-numeric: tabular-nums; }
.bandeau-suffixe { color: var(--gris); font-weight: 600; }
.bandeau-annule .bandeau-score { text-decoration: line-through; }
.bandeau-detail { font-weight: 800; font-variant-numeric: tabular-nums; }
.bandeau-victoire .bandeau-etiquette, .bandeau-bravo .bandeau-etiquette { background: #e6f4ea; color: #15803d; }
.bandeau-victoire .bandeau-detail, .bandeau-bravo .bandeau-detail { color: #15803d; }
.bandeau-defaite .bandeau-etiquette { background: #fdecea; color: #b91c1c; }
.bandeau-defaite .bandeau-detail { color: #b91c1c; }
.bandeau-nul .bandeau-etiquette, .bandeau-tournoi .bandeau-etiquette { background: #f3f4f6; color: #4b5563; }
.bandeau-a-venir .bandeau-etiquette { background: #fff1ea; color: var(--orange-fonce); }
.bandeau-a-venir .bandeau-detail { color: var(--gris); font-weight: 600; }
.bandeau-annule .bandeau-etiquette { background: #f3f4f6; color: #6b7280; }
.bandeau-annule .bandeau-texte { text-decoration: line-through; color: var(--gris); }
.bandeau-annule .bandeau-detail { color: #b91c1c; }
.bandeau-evenement .bandeau-detail, .bandeau-top .bandeau-detail { color: var(--gris); font-weight: 600; }
.bandeau-top .bandeau-etiquette { background: var(--orange); color: var(--blanc); }
.bandeau-pause { flex: 0 0 auto; width: 40px; border: 0; border-left: 1px solid var(--bordure); background: var(--blanc); color: var(--bleu); cursor: pointer; font-size: 0.75rem; }
.bandeau-pause:hover, .bandeau-pause:focus-visible { background: var(--gris-clair); }
@media (max-width: 640px) {
  .bandeau-infos { font-size: 0.82rem; }
  .bandeau-titre { padding: 0 10px; }
  .bandeau-element a { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bandeau-fenetre { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .bandeau-piste { animation: none; }
  .bandeau-element[aria-hidden="true"] { display: none; }
  .bandeau-pause { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .defilement { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .defilement-piste { animation: none; }
  .defilement-piste li[aria-hidden="true"] { display: none; }
}
.galerie-ajouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; margin-bottom: 24px; }
.galerie-ajouts .box { margin: 0; }
.galerie-note { color: var(--gris); font-size: 0.9rem; margin: -8px 0 18px; }
.miniature-vide { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; width: 100%; background: var(--bleu-nuit); color: var(--blanc); font-weight: 700; letter-spacing: 0.04em; }
.video-embed { position: relative; }
.video-lecture { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--bleu-nuit); cursor: pointer; }
.video-lecture img, .video-lecture .miniature-vide { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.video-lecture .miniature-vide { display: flex; }
a.video-lecture { text-decoration: none; }
.video-externe .miniature-vide { align-items: flex-end; padding-bottom: 12px; box-sizing: border-box; }
.video-lecture-icone {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(11, 31, 58, 0.78); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); transition: background 0.15s;
}
.video-lecture-icone::after {
  content: ''; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--blanc);
}
.video-lecture:hover .video-lecture-icone, .video-lecture:focus-visible .video-lecture-icone { background: var(--orange); }
.embed-cadre.embed-lecteur { height: auto; aspect-ratio: 16 / 9; }
.video-fichier { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.galerie-lien-youtube { display: block; margin-top: 4px; font-size: 0.85rem; }
.lien-modifier { float: right; margin-left: 12px; }
.lien-modifier-carte { display: inline-block; margin-bottom: 8px; font-size: 0.8rem; font-weight: 700; color: var(--orange-fonce); }
/* Vignettes des équipes : l'image est affichée en entier (proportions conservées), sur un fond neutre */
.carte-equipe img { object-fit: contain; background: #e9ecf1; }
.carte-equipe-photo { display: block; line-height: 0; }
.carte figcaption + .galerie-admin { padding-top: 0; }
.supprimer-discret { background: none; border: 0; padding: 0; margin-left: 10px; color: #b91c1c; font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.supprimer-discret:hover { text-decoration: underline; }
.barre-selection { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.barre-selection-aide { color: var(--gris); font-size: 0.85rem; }
.barre-selection .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* Protection des photos pour les visiteurs (voir aussi public/js/main.js) */
body.site-public:not(.est-admin) img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
body.site-public:not(.est-admin) .carte img,
body.site-public:not(.est-admin) .actu-figure img,
body.site-public:not(.est-admin) .video-lecture img { pointer-events: none; }
@media print {
  body.site-public:not(.est-admin) .carte img,
  body.site-public:not(.est-admin) .actu-figure img,
  body.site-public:not(.est-admin) .video-lecture img { display: none; }
}
.videos-intro { max-width: 640px; color: var(--gris); margin-top: -8px; }
.videos-admin { margin: 0 0 18px; }
.videos-rubrique { margin: 30px 0 14px; font-size: 1.25rem; color: var(--bleu-nuit); }
.etiquette {
  display: inline-block; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}
.etiquette-promo { background: var(--orange); }
.etiquette-destockage { background: var(--bleu); }
.prix-original { color: #c0392b; text-decoration: line-through; margin-right: 6px; }
.prix-licencie { color: #15803d; margin-top: 4px; }
.prix-licencie strong { color: #15803d; }
.choix-tarif { border: 1px solid var(--bordure); border-radius: 8px; padding: 10px 14px; }
.choix-tarif legend { font-weight: 700; padding: 0 4px; }
.ligne-licence { padding: 8px 0; border-top: 1px dashed var(--bordure); }
.ligne-licence:first-child { border-top: 0; padding-top: 0; }
.ligne-licence-titre { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ligne-licence-titre strong { white-space: nowrap; }
.ligne-licence-champs { display: grid; gap: 6px; }
.ligne-licence-champs label { display: grid; gap: 2px; font-size: 0.85rem; font-weight: 600; }
.choix-tarif + .choix-tarif { margin-top: 12px; }
[data-ajouter-licencie] { margin-top: 8px; }
.ligne-licencie { color: #15803d; font-weight: 600; }
.remise-statut { color: #15803d; font-size: 0.8rem; font-weight: 600; }
.statuts-licencie { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 8px 0; }
.statuts-licencie label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
.fiche-licencie { display: grid; gap: 6px; }
.fiche-licencie + .fiche-licencie { border-top: 1px solid var(--gris-clair); padding-top: 12px; margin-top: 12px; }
.fiche-licencie-titre { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.fiche-licencie-famille { font-size: 0.85rem; color: var(--gris); }
.formulaires-licencie { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.formulaires-licencie form { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; margin: 0; }
.remise-pourcent {
  display: inline-block; background: #c0392b; color: #fff; border-radius: 999px;
  padding: 1px 8px; font-size: 0.8rem; font-weight: 700; margin-right: 6px;
}
.classement-notre-equipe td { background: var(--gris-clair); font-weight: 700; color: var(--bleu-nuit); }

/* ---------- Forms ---------- */
form.box, .box {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--ombre);
}
.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.champ input, .champ textarea, .champ select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.champ input[type="checkbox"], .champ input[type="radio"] { width: auto; padding: 0; }
.champ input[data-marquage-texte]:not(:placeholder-shown) { text-transform: uppercase; }
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.champ-inline { display: flex; align-items: center; gap: 8px; }
.champ-inline label { margin: 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alerte { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.92rem; }
.alerte.succes { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7ddc3; }
.alerte.erreur { background: #fdecea; color: #b91c1c; border: 1px solid #f5c2c0; }
.alerte.attention { background: #fff4e5; color: #8a4b00; border: 1px solid #f3d3a3; }
.badge-attention { background: #fff4e5; color: #8a4b00; }
.badge-pret { background: #e3f4e6; color: #1c5d2b; }
.badge-fait { background: #e9ecf1; color: #4a5568; }
/* Suivi de préparation des commandes (administration) */
.suivi-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.suivi-filtres a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid #d5dae3; font-size: 0.85rem; text-decoration: none; color: inherit; background: #fff; }
.suivi-filtres a.actif { background: var(--bleu-nuit); border-color: var(--bleu-nuit); color: #fff; }
.suivi-commande summary { cursor: pointer; font-size: 0.85rem; margin-top: 6px; }
.suivi-commande form { margin-top: 8px; padding: 10px; border: 1px solid #d5dae3; border-radius: 8px; background: #f8f9fb; min-width: 230px; }
.suivi-commande label { display: block; font-size: 0.8rem; margin: 0 0 3px; font-weight: 600; }
.suivi-commande select, .suivi-commande input[type="text"] { width: 100%; margin-bottom: 8px; font-size: 0.85rem; padding: 5px 6px; }
.suivi-commande .suivi-case { display: flex; gap: 6px; align-items: flex-start; font-weight: 400; margin-bottom: 8px; }
.suivi-note { display: block; font-size: 0.8rem; color: var(--gris); margin-top: 4px; }
.choix-paiement-titre { margin: 22px 0 10px; font-size: 1.05rem; color: var(--bleu-nuit); }
.choix-paiement { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.choix-paiement-option { border: 1px solid var(--bordure); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.choix-paiement-option p { margin: 0; color: var(--gris); font-size: 0.88rem; }
.choix-paiement-option .alerte { margin: 0; font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bleu-nuit);
  color: #b7c2d6;
  padding: 36px 20px 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 20px;
}
.footer-grid h4 { color: var(--blanc); margin: 0 0 10px; font-size: 0.95rem; }
.footer-grid a { color: #b7c2d6; }
.footer-bas {
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid #223354;
  padding-top: 16px;
  max-width: 1120px;
  margin: 0 auto;
}
.footer-bas a { color: #b7c2d6; text-decoration: underline; }
.footer-bas a:hover { color: var(--blanc); }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  background: var(--bleu-nuit);
  color: var(--blanc);
  padding: 20px 14px;
  flex-shrink: 0;
}
.admin-sidebar h2 { font-size: 1rem; margin: 0 0 18px; color: var(--blanc); }
.admin-sidebar a {
  display: block;
  color: #dce3f0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.12); text-decoration: none; }
.admin-main { flex: 1; min-width: 0; padding: 28px 32px; max-width: 1000px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-carte { background: var(--blanc); border-radius: var(--radius); padding: 18px; box-shadow: var(--ombre); }
.stat-carte .valeur { font-size: 1.8rem; font-weight: 800; color: var(--bleu-nuit); }
.stat-carte .label { color: var(--gris); font-size: 0.85rem; }
.actions-ligne { display: flex; gap: 8px; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bleu-nuit); }
.login-box { width: 100%; max-width: 380px; }

@media (max-width: 760px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-main { padding: 20px; }
}

/* Matchs : icône domicile / déplacement, vignette d'adresse, compétition et filtres */
.cellule-match { min-width: 200px; }
.match-adv { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.match-logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.match-lieu {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-right: 8px; padding: 0; vertical-align: middle;
  border-radius: 50%; border: 1px solid transparent; font: inherit; line-height: 1;
}
.match-lieu.domicile { background: #e8f0fb; color: var(--bleu); }
.match-lieu.deplacement { background: #fdece5; color: var(--orange-fonce); }
button.match-lieu { cursor: pointer; }
button.match-lieu:hover { border-color: currentColor; }
button.match-lieu:focus-visible, .vignette-lieu-fermer:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.match-intitule { vertical-align: middle; }
.match-competition { display: block; margin: 2px 0 0 36px; color: var(--gris); }
tr[hidden] { display: none; }

.vignette-lieu {
  position: absolute; z-index: 60; width: min(320px, calc(100vw - 16px));
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.22); padding: 12px 14px 14px; font-size: 0.92rem;
}
.vignette-lieu-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; color: var(--bleu-nuit); }
.vignette-lieu-fermer {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: var(--gris-clair); color: var(--gris-fonce); cursor: pointer;
}
.vignette-lieu-fermer:hover { background: var(--bordure); }
.vignette-lieu-adresse { margin: 0 0 8px; }
.vignette-lieu-lien { font-weight: 600; }

.filtres-matchs { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 12px; }
.filtres-matchs label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gris); }
.filtres-matchs select { max-width: 100%; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 6px; background: var(--blanc); color: var(--gris-fonce); font: inherit; }
.filtres-vide { margin: 12px 0 0; color: var(--gris); }

/* Résultats : score coloré et série de victoires / nuls / défaites */
.score { font-weight: 800; }
.score-victoire { color: #15803d; }
.score-defaite { color: #c62828; }
.score-nul { color: #000; }
.affiches-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 540px)); gap: 20px; }
.affiche { margin: 0; }
.affiche img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--ombre); display: block; }
.affiche figcaption { margin-top: 10px; }
.actu-articles { margin: 28px 0 12px; }
.match-statut { display: table; margin: 4px 0 0 36px; padding: 1px 8px; border-radius: 999px; background: #f3f4f6; color: #4b5563; font-size: 0.78rem; font-weight: 700; }
.match-statut-reporte { background: #fff4e0; color: #b45309; }
.match-statut-forfait-pehb { background: #fdecea; color: #b91c1c; }
.match-statut-forfait-adversaire { background: #e6f4ea; color: #15803d; }
.match-statut-sans-resultat { background: #e6f4ea; color: #15803d; }

.forme-equipe { margin: 10px 0 14px; }
.forme-equipe small { color: var(--gris); }
.serie-resultats { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 6px 0 0; padding: 0; }
.serie-resultats li { display: inline-flex; line-height: 0; cursor: help; }
.serie-resultats svg { display: block; }
.serie-victoire circle { fill: #15803d; }
.serie-defaite circle { fill: #c62828; }
.serie-nul circle { fill: #6b7280; }


/* ---------- Événements du club ---------- */
.evenements { display: grid; gap: 20px; }
.evenements.avec-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.evenement-top {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--bleu) 55%, #1d4a86 100%);
  box-shadow: var(--ombre);
  overflow: hidden;
}
.evenement-top::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 98, 42, 0.55), rgba(244, 98, 42, 0) 70%);
  pointer-events: none;
}
.etiquette-top {
  display: inline-block;
  background: linear-gradient(90deg, #fbb927, var(--orange));
  color: var(--bleu-nuit);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.evenement-top h3 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.2; color: #fff; }
.evenement-top p { margin: 0 0 6px; }
.evenement-top .evenement-quand { font-weight: 700; color: #fbb927; }
.evenement-top .evenement-lieu { color: rgba(255, 255, 255, 0.85); }
.evenement-description { margin-top: 10px !important; white-space: pre-line; color: rgba(255, 255, 255, 0.92); }
.evenement-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.evenement {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--ombre);
}
.evenement-est-top { border-color: #f0b34a; }
.evenement-pastille {
  flex: 0 0 auto;
  min-width: 56px;
  text-align: center;
  background: var(--bleu-nuit);
  color: #fff;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.evenement-pastille strong { display: block; font-size: 1.5rem; line-height: 1.1; color: #fbb927; }
.evenement-corps { min-width: 0; }
.evenement-corps h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--bleu-nuit); }
.evenement-corps p { margin: 0 0 2px; font-size: 0.92rem; color: var(--gris); }
.etoile-top { color: var(--orange); }
.evenement-modifier { display: inline-block; margin-top: 6px; font-size: 0.8rem; font-weight: 700; color: var(--orange-fonce); }
.evenement-top .evenement-modifier { color: #fbb927; }
.champ-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) {
  .evenements.avec-top { grid-template-columns: 1fr; }
  .champ-ligne { grid-template-columns: 1fr; gap: 0; }
}

/* Abonnement du calendrier du club à un agenda (flux iCalendar). */
.lien-agenda { margin: 0 0 14px; font-size: 0.95rem; }
.abonnement-agenda { max-width: 860px; }
.abonnement-agenda .actions-agenda { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.abonnement-agenda input[readonly] { width: 100%; max-width: 560px; font-family: inherit; }
.abonnement-agenda details { margin-top: 14px; }
.abonnement-agenda summary { cursor: pointer; font-weight: 700; }
.abonnement-agenda ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }

/* Tournois. */
[hidden] { display: none !important; }
.match-statut-ecole { background: #e0edff; color: #1d4ed8; }
.score-bravo { font-size: 1.35rem; white-space: nowrap; }
.score-bravo small { display: block; font-size: 0.78rem; font-weight: 700; color: #15803d; }
.score-texte { font-weight: 700; }

/* Page Arbitrage : documents de la fédération, lecteur chargé au clic. */
.arbitrage-intro { max-width: 860px; }
.arbitrage-titre { margin: 28px 0 12px; }
.arbitrage-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.arbitrage-grille-unique { grid-template-columns: minmax(0, 860px); }
.arbitrage-carte { margin: 0; }
.arbitrage-carte h4 { margin: 0 0 4px; }
.arbitrage-carte .carte-corps p { margin: 6px 0 0; }
.arbitrage-lire { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 22px; border: 2px solid var(--blanc); border-radius: 999px; font-size: 1.05rem; }
.arbitrage-lire small { font-weight: 400; font-size: 0.75rem; letter-spacing: 0; opacity: 0.85; }
.arbitrage-lecture:hover .arbitrage-lire, .arbitrage-lecture:focus-visible .arbitrage-lire { background: var(--orange); border-color: var(--orange); }

/* Chatbot des règles (page Arbitrage) */
.chatbot { max-width: 860px; margin: 24px 0 8px; border-top: 4px solid var(--orange); }
.chatbot-titre { margin: 0 0 6px; color: var(--bleu-nuit); }
.chatbot-intro { margin: 0 0 14px; }
.chatbot-fil { display: flex; flex-direction: column; gap: 12px; }
.chatbot-fil:not(:empty) { margin-bottom: 14px; max-height: 32rem; overflow-y: auto; padding-right: 4px; }
.chatbot-message { padding: 10px 14px; border-radius: var(--radius); max-width: 92%; overflow-wrap: anywhere; }
.chatbot-message p { margin: 0 0 8px; }
.chatbot-message p:last-child, .chatbot-message ul:last-child { margin-bottom: 0; }
.chatbot-message ul { margin: 0 0 8px; padding-left: 1.2em; }
.chatbot-question { align-self: flex-end; background: var(--bleu); color: var(--blanc); white-space: pre-wrap; }
.chatbot-reponse { align-self: flex-start; background: var(--gris-clair); border: 1px solid var(--bordure); }
.chatbot-reponse.erreur { border-color: #fca5a5; background: #fef2f2; }
.chatbot-attente { color: var(--gris); font-style: italic; }
.chatbot-ref { display: inline-block; margin: 0 2px; padding: 0 7px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--bordure); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.chatbot-ref:hover { border-color: var(--orange); text-decoration: none; }
.chatbot-sources { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bordure); font-size: 0.85rem; }
.chatbot-sources ul { margin: 4px 0 0; }
.chatbot-exemples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chatbot-exemple { padding: 6px 12px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); color: var(--bleu); font: inherit; font-size: 0.88rem; cursor: pointer; text-align: left; }
.chatbot-exemple:hover, .chatbot-exemple:focus-visible { border-color: var(--orange); }
.chatbot-formulaire textarea { width: 100%; resize: vertical; min-height: 3.2rem; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: var(--radius); font: inherit; }
.chatbot-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.chatbot-actions .btn[disabled] { opacity: 0.6; cursor: wait; }
.arbitrage-box { max-width: 860px; }
/* Recherche par mots dans le livret de l'arbitrage */
.recherche-livret { margin: 24px 0 8px; border-top: 4px solid var(--bleu); }
.recherche-livret-formulaire { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.recherche-livret-formulaire input { flex: 1 1 14rem; min-width: 0; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: var(--radius); font: inherit; }
.recherche-livret-resultats { margin-top: 14px; }
.recherche-livret-liste { margin: 8px 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 12px; }
.recherche-livret-lien { font-weight: 600; overflow-wrap: anywhere; }
.recherche-livret-extrait { margin: 4px 0 0; font-size: 0.9rem; color: var(--texte, inherit); overflow-wrap: anywhere; }
.recherche-livret-extrait mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 2px; }

/* Ressources de la fédération (pages Entraîneurs, Arbitrage, Vidéos) : rubriques repliables et recherche sur place. */
.ressources-page .box, .box.ressources-page { max-width: 860px; }
.ressources-liste { margin-top: 12px; }
.ressources-liste a { font-weight: 600; }
.ressource-description { margin-top: 2px; }
.ressources-filtre { max-width: 860px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.ressources-filtre label { font-weight: 700; font-size: 0.95rem; }
.ressources-filtre input { padding: 10px 12px; border: 1px solid var(--bordure, #d8dde6); border-radius: var(--radius); font: inherit; }
.ressources-videos { margin-bottom: 28px; }

/* ---------- Administration : statistiques de fréquentation ---------- */
.stats-periodes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.stats-tendance { color: var(--gris); font-size: 0.78rem; margin-top: 4px; min-height: 1em; }
.stats-bloc { max-width: none; margin-bottom: 28px; }
.stats-legende { display: flex; gap: 18px; font-size: 0.85rem; color: var(--gris); margin-bottom: 10px; }
.stats-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.stats-pastille.vues, .stats-barres .vues { background: #b9c6dd; }
.stats-pastille.visites, .stats-barres .visites { background: var(--orange); }
.stats-courbe { display: flex; align-items: flex-end; gap: 2px; height: 190px; }
.stats-colonne { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.stats-barres { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1px; border-bottom: 1px solid var(--bordure); }
.stats-barres span { flex: 1 1 0; max-width: 14px; min-height: 0; border-radius: 2px 2px 0 0; }
.stats-date { height: 18px; font-size: 0.68rem; color: var(--gris); text-align: center; white-space: nowrap; overflow: visible; }
.stats-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 8px 32px; }
.stats-colonnes section { min-width: 0; }
.stats-aide { color: var(--gris); font-size: 0.85rem; margin: 0 0 10px; }
.stats-tableau td:first-child { overflow-wrap: anywhere; }
.stats-nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.stats-nombre { text-align: right; }
.stats-jauge { display: block; height: 4px; margin-top: 4px; background: var(--gris-clair); border-radius: 2px; }
.stats-jauge span { display: block; height: 100%; background: var(--orange); border-radius: 2px; }

/* ---------- Vérification anti-robot des formulaires ---------- */
.verif-humain input { max-width: 120px; }
.verif-humain small { display: block; color: var(--gris); font-size: 0.8rem; margin-top: 4px; }
