/* ==========================================================================
   bcr-ui.css — socle graphique commun du site public BC Rousseau
   Reprend le style des pages modernes existantes (Tarifs, Documents, Accès, ABCR…) :
   Bebas Neue (titres) + DM Sans (texte), bleu nuit, rouge club, fond crème.
   Préfixe unique .bcr-* : n'interfère pas avec les styles propres à chaque page.
   ========================================================================== */

:root {
  --bcr-red:    #D8323E;
  --bcr-red-d:  #a82030;
  --bcr-red-lt: #fdf0f1;
  --bcr-navy:   #0f2239;
  --bcr-navy-2: #1a3a5c;
  --bcr-orange: #E67E30;
  --bcr-warm:   #faf8f5;
  --bcr-white:  #fff;
  --bcr-border: #ece8e2;
  --bcr-text:   #1a1208;
  --bcr-muted:  #6b5c4e;
  --bcr-ok:     #1f7a3d;
  --bcr-ok-lt:  #eef8f0;
  --bcr-warn-lt:#fff7e6;
  --bcr-radius: 14px;
  --bcr-fh:     'Bebas Neue', sans-serif;
  --bcr-fb:     'DM Sans', 'Lato', system-ui, sans-serif;
}

/* ── Conteneur de page ─────────────────────────────────────────────────── */
.bcu-wrap {
  font-family: var(--bcr-fb);
  color: var(--bcr-text);
  background: var(--bcr-warm);
  margin: 0 -20px;
  padding: 0 0 56px;
  line-height: 1.55;
}
.bcu-wrap *, .bcu-wrap *::before, .bcu-wrap *::after { box-sizing: border-box; }
.bcu-header { max-width: 860px; margin: 0 auto; padding: 28px 24px 18px; }
.bcu-body   { max-width: 860px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 14px; }
.bcu-wrap.bcu-narrow .bcu-header, .bcu-wrap.bcu-narrow .bcu-body { max-width: 640px; }

/* ── Titres ────────────────────────────────────────────────────────────── */
.bcu-page-title {
  font-family: var(--bcr-fh);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 400;
  letter-spacing: .5px;
  line-height: 1.1;
  color: var(--bcr-navy);
  margin: 0;
  display: flex; align-items: center; gap: 12px;
}
.bcu-page-title::after { content: ''; flex: 1; height: 2px; background: var(--bcr-red); }
.bcu-sub { font-size: 14px; color: var(--bcr-muted); margin: 6px 0 0; }
.bcu-section-label {
  font-family: var(--bcr-fh);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .4px;
  color: var(--bcr-navy);
  margin: 10px 0 2px;
  display: flex; align-items: center; gap: 10px;
}
.bcu-section-label::after { content: ''; flex: 1; height: 1px; background: var(--bcr-border); }

/* ── Cartes ────────────────────────────────────────────────────────────── */
.bcu-card {
  background: var(--bcr-white);
  border: 1px solid var(--bcr-border);
  border-radius: var(--bcr-radius);
  padding: 20px 22px;
}
.bcu-card > :first-child { margin-top: 0; }
.bcu-card > :last-child  { margin-bottom: 0; }
.bcu-card h2, .bcu-card h3 { font-family: var(--bcr-fh); font-weight: 400; letter-spacing: .4px; color: var(--bcr-navy); margin: 0 0 8px; }
.bcu-card h2 { font-size: 24px; } .bcu-card h3 { font-size: 20px; }
.bcu-card p { margin: 0 0 10px; }
.bcu-card a:not(.bcu-btn) { color: var(--bcr-red); }
.bcu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.bcu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--bcr-fb); font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 11px 20px; border-radius: 9px; border: 1.5px solid var(--bcr-navy);
  background: var(--bcr-white); color: var(--bcr-navy); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.bcu-btn:hover { background: var(--bcr-navy); color: #fff; text-decoration: none; }
.bcu-btn.primary { background: var(--bcr-red); border-color: var(--bcr-red); color: #fff; }
.bcu-btn.primary:hover { background: var(--bcr-red-d); border-color: var(--bcr-red-d); }
.bcu-btn.block { width: 100%; }
.bcu-btn:focus-visible { outline: 3px solid rgba(216, 50, 62, .35); outline-offset: 2px; }

/* ── Formulaires ───────────────────────────────────────────────────────── */
.bcu-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bcu-form .full { grid-column: 1 / -1; }
.bcu-form label, .bcu-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--bcr-text); }
.bcu-form input[type=text], .bcu-form input[type=email], .bcu-form input[type=tel], .bcu-form input[type=date],
.bcu-form input[type=number], .bcu-form input[type=password], .bcu-form select, .bcu-form textarea,
.bcu-input {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd6cc; border-radius: 9px;
  font: inherit; font-size: 15px; background: #fff; color: var(--bcr-text);
}
.bcu-form textarea { min-height: 110px; resize: vertical; }
.bcu-form input:focus, .bcu-form select:focus, .bcu-form textarea:focus, .bcu-input:focus {
  outline: none; border-color: var(--bcr-navy); box-shadow: 0 0 0 3px rgba(15, 34, 57, .12);
}
.bcu-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.bcu-check input { margin-top: 3px; }
.bcu-hint { font-size: 12.5px; color: var(--bcr-muted); margin-top: 4px; }
@media (max-width: 560px) { .bcu-form { grid-template-columns: 1fr; } }

/* ── Messages ──────────────────────────────────────────────────────────── */
.bcu-alert { border-radius: 10px; padding: 12px 14px; font-size: 14.5px; border: 1px solid; }
.bcu-alert.info    { background: #eef3fa; border-color: #c9d8ec; color: var(--bcr-navy); }
.bcu-alert.success { background: var(--bcr-ok-lt); border-color: #bfe3c7; color: #174d2a; }
.bcu-alert.warning { background: var(--bcr-warn-lt); border-color: #f3dca8; color: #6b4a07; }
.bcu-alert.error   { background: var(--bcr-red-lt); border-color: #f3c4c8; color: #8a1c26; }
.bcu-alert ul { margin: 6px 0 0; padding-left: 18px; }
.bcu-empty { text-align: center; color: var(--bcr-muted); padding: 32px 16px; }

/* ── Tableaux ──────────────────────────────────────────────────────────── */
.bcu-table-wrap { overflow-x: auto; border: 1px solid var(--bcr-border); border-radius: var(--bcr-radius); background: #fff; }
.bcu-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bcu-table th { text-align: left; font-weight: 600; background: #f4f1ec; color: var(--bcr-navy); padding: 10px 12px; white-space: nowrap; }
.bcu-table td { padding: 10px 12px; border-top: 1px solid var(--bcr-border); vertical-align: top; }
.bcu-table tr:hover td { background: #fcfbf9; }

/* ── Divers ────────────────────────────────────────────────────────────── */
.bcu-muted { color: var(--bcr-muted); }
.bcu-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bcr-red-lt); color: var(--bcr-red-d); }
.bcu-wrap img { max-width: 100%; height: auto; }

/* ── Bannière compacte sur les pages intérieures (index.php ajoute .is-compact si id ≠ 0) ── */
.entete_image.is-compact .slideshow-container { height: clamp(120px, 14vw, 200px); }
.entete_image.is-compact > a > img { width: 100%; height: clamp(120px, 14vw, 200px); object-fit: cover; display: block; }
.entete_image.is-compact .site-title { flex-direction: row; gap: 14px; }
.entete_image.is-compact .site-title__text {
  font-family: var(--bcr-fh); font-weight: 400; letter-spacing: .08em;
  font-size: clamp(24px, 3.2vw, 40px); margin: 0;
}
.entete_image.is-compact .site-logo {
  position: static; transform: none; animation: none; order: -1;
  width: clamp(34px, 4vw, 48px); max-width: none;
}
.entete_image.is-compact .mySlides img { animation: none; }

/* ── Zone de contenu : marge latérale attendue par les pages (qui utilisent margin: 0 -20px / 0 -12px) ── */
.include { padding-inline: 20px; }
@media (max-width: 600px) { .include { padding-inline: 12px; } .bcu-wrap { margin: 0 -12px; } }

/* ── Carte-lien de document ────────────────────────────────────────────── */
.bcu-doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--bcr-text) !important; text-decoration: none !important; font-weight: 600; transition: border-color .15s, transform .15s; }
.bcu-doc:hover { border-color: var(--bcr-red); transform: translateY(-1px); }
.bcu-doc-ico { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #fff; background: var(--bcr-red); border-radius: 6px; padding: 5px 7px; }

/* ── Contenu libre (pages anciennes remises au style commun) ──────────────── */
.bcu-content { font-size: 15.5px; }
.bcu-content h1, .bcu-content h2, .bcu-content h3, .bcu-content h4 {
  font-family: var(--bcr-fh); font-weight: 400; letter-spacing: .4px; color: var(--bcr-navy); line-height: 1.15; margin: 18px 0 8px;
}
.bcu-content h1 { font-size: 28px; } .bcu-content h2 { font-size: 24px; } .bcu-content h3 { font-size: 20px; } .bcu-content h4 { font-size: 18px; }
.bcu-content > :first-child, .bcu-content > div:first-child > :first-child { margin-top: 0; }
.bcu-content p { margin: 0 0 10px; }
.bcu-content ul, .bcu-content ol { margin: 0 0 12px; padding-left: 22px; }
.bcu-content li { margin: 3px 0; }
.bcu-content a { color: var(--bcr-red); }
.bcu-content table { border-collapse: collapse; width: 100%; margin: 8px 0 14px; font-size: 14.5px; }
.bcu-content th, .bcu-content td { border: 1px solid var(--bcr-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.bcu-content th { background: #f4f1ec; color: var(--bcr-navy); font-weight: 600; }
.bcu-content iframe { max-width: 100%; border: 0; border-radius: 10px; }
.bcu-content img { max-width: 100%; height: auto; border-radius: 8px; }
.bcu-content hr { border: 0; border-top: 1px solid var(--bcr-border); margin: 16px 0; }
.bcu-content input[type=text], .bcu-content input[type=email], .bcu-content input[type=tel], .bcu-content input[type=date],
.bcu-content input[type=number], .bcu-content select, .bcu-content textarea {
  width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid #ddd6cc; border-radius: 9px; font: inherit; font-size: 15px; background: #fff;
}
.bcu-content label { font-weight: 600; font-size: 13.5px; }
.bcu-content input[type=submit], .bcu-content button[type=submit] {
  font-family: var(--bcr-fb); font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 9px;
  border: 1.5px solid var(--bcr-red); background: var(--bcr-red); color: #fff; cursor: pointer;
}
.bcu-content input[type=submit]:hover, .bcu-content button[type=submit]:hover { background: var(--bcr-red-d); border-color: var(--bcr-red-d); }

/* ── Nom d'un joueur du club cliquable vers ses résultats (include/sb/sb_lib.php : sb_lien_joueur) ── */
a.sb-lien-joueur, a.sb-lien-joueur:link, a.sb-lien-joueur:visited { color: inherit !important; text-decoration: none !important; border-bottom: 1px dotted currentColor; }
a.sb-lien-joueur:hover { border-bottom-style: solid; }
