/* Combat Clash League — front.css
   Styles génériques pour les templates PHP (non-blocs).
   Les blocs Gutenberg utilisent main.css du thème. */

/* Formulaires */
.cc-registration-form .required { color: #b32d2e; }
.cc-registration-form input[type="text"],
.cc-registration-form input[type="email"],
.cc-registration-form input[type="password"] { max-width: 100%; }
.cc-error   { color: #b32d2e; }
.cc-success { color: #00a32a; }

/* Listes génériques (shortcodes anciens) */
.cc-tournaments-list, .cc-calendar-list { list-style: none; padding-left: 0; }
.cc-tournament-item { margin-bottom: 10px; }
.cc-status-pending { color: #dba617; margin-left: 8px; }
.cc-leaderboard-table { width: 100%; border-collapse: collapse; }
.cc-leaderboard-table th, .cc-leaderboard-table td { padding: 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); }

/* Galeries (fiches combattant/tournoi) */
.cc-fighter-single .cc-fighter-photos { margin-bottom: 1em; }
.cc-fighter-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cc-register-form { margin: 1em 0; }
.cc-registration-status { margin: 1em 0; font-style: italic; }
.cc-tournament-photos { margin: 1.5em 0; }
.cc-tournament-gallery { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cc-tournament-gallery img { display: block; max-width: 100%; height: auto; }

/* Fiche club */
.cc-club-single .cc-club-cover { display: block; width: 100%; height: auto; max-height: 280px; object-fit: cover; margin-bottom: 1em; }
.cc-club-single .cc-club-header-inner { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; margin-bottom: 1em; }
.cc-club-single .cc-club-logo img { width: 80px; height: 80px; object-fit: contain; }
.cc-club-single .cc-club-links-list, .cc-club-single .cc-club-address { list-style: none; padding-left: 0; }
.cc-club-single .cc-club-links-list li { margin-bottom: .25em; }
.cc-club-single .cc-club-address-text { font-style: normal; white-space: pre-line; }

/* Statuts */
.cc-fstatus-done        { color: #a8b070; }
.cc-fstatus-in_progress { color: var(--c-accent, #d94a1f); }
.cc-fstatus-planned     { color: #8a8275; }

/* ── Inscription en ligne ─────────────────────────────────────────────── */
.cc-registration-box{border:1px solid currentColor;padding:20px 24px;margin:24px 0;max-width:720px}
.cc-registration-box__title{margin:0 0 12px}
.cc-registration-box__status{font-weight:600}
.cc-registration-box__status--approved{color:#3c7a3c}
.cc-registration-box__status--rejected{color:#b32d2e}
.cc-eligibility{list-style:none;margin:0 0 16px;padding:0}
.cc-eligibility__item{padding:6px 10px;margin-bottom:4px;border-left:3px solid #dba617;background:rgba(219,166,23,.08)}
.cc-eligibility__item--block{border-left-color:#b32d2e;background:rgba(179,45,46,.08)}
.cc-notice{padding:10px 14px;border-left:3px solid #3c7a3c;background:rgba(60,122,60,.08)}
.cc-notice--error{border-left-color:#b32d2e;background:rgba(179,45,46,.08)}
.cc-registration-form__fee{opacity:.8}

/* ── Arbre d'élimination directe ──────────────────────────────────────── */
.cc-tree{display:flex;gap:28px;overflow-x:auto;padding:8px 0 20px;margin:0 0 24px}
.cc-tree__round{display:flex;flex-direction:column;min-width:190px}
.cc-tree__round-title{margin:0 0 10px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;opacity:.75}
.cc-tree__slots{display:flex;flex-direction:column;justify-content:space-around;flex:1;gap:14px}
.cc-tree__match{border:1px solid rgba(127,127,127,.45);border-radius:4px;overflow:hidden}
.cc-tree__match--bye{opacity:.7;border-style:dashed}
.cc-tree__fighter{display:flex;align-items:center;gap:6px;padding:6px 10px;font-size:13px;white-space:nowrap}
.cc-tree__fighter + .cc-tree__fighter{border-top:1px solid rgba(127,127,127,.3)}
.cc-tree__fighter--winner{font-weight:700;background:rgba(60,160,80,.15)}
.cc-tree__fighter--loser{opacity:.55}
.cc-tree__fighter--bye,.cc-tree__tbd{font-style:italic;opacity:.6}
.cc-tree__bib{font-size:11px;font-weight:700;color:#b8860b}
.cc-tree__score{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:600}

/* ── Face-à-face ([cc_face_a_face]) ───────────────────────────────────── */
.cc-h2h__form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:20px}
.cc-h2h__score{display:flex;align-items:center;justify-content:center;gap:14px;font-size:18px;margin:16px 0}
.cc-h2h__num{font-size:40px;font-weight:700}
.cc-h2h__list li{margin-bottom:6px}
.cc-h2h__date,.cc-h2h__extra{opacity:.7}
.cc-tree__match--conflict{border-color:#d63638;border-style:dashed}

/* Événement (regroupe plusieurs tournois) */
.cc-event-single .cc-event-image img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; margin-bottom: 1em; }
.cc-event-single .cc-event-meta { opacity: .8; margin-top: -.25em; }
.cc-event-tournament-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75em; }
.cc-event-tournament { display: flex; flex-wrap: wrap; gap: .25em 1em; align-items: baseline; padding: .75em 1em; border: 1px solid rgba(127, 127, 127, .3); border-radius: 4px; }
.cc-event-tournament__details, .cc-event-tournament__date { opacity: .8; font-size: .9em; }
.cc-event-tournament__status { margin-left: auto; font-size: .85em; font-weight: 600; }
.cc-leaderboard-weight { margin: 1.5em 0 .5em; }

/* Règlements */
.cc-rules-bar{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:0 0 20px;padding:8px 12px;font-size:14px;border:1px solid rgba(127,127,127,.35);border-radius:4px}
.cc-rules-note{opacity:.75}
.cc-rules-pdf{font-weight:600}
.cc-rules-index{margin:0 0 24px;padding-left:20px}
.cc-rules-subtitle{font-style:italic;opacity:.8}
.cc-rules-provisional{margin:0 0 20px;padding:10px 14px;border-left:4px solid var(--c-accent, #d94a1f);background:rgba(127,127,127,.12);font-weight:600}
.cc-rules-table{width:100%;border-collapse:collapse;margin:0 0 20px}
.cc-rules-table th,.cc-rules-table td{padding:6px 10px;border:1px solid rgba(127,127,127,.4);text-align:left;vertical-align:top}
.cc-rules-table thead th{background:rgba(127,127,127,.15)}
