:root {
    /* mapping admin → design system */
    --admin-bg: var(--color-primary-base);
    --content-bg: var(--color-background-base);
    --card-bg: var(--color-surface-base);

    --primary: var(--color-primary-base);
    --muted: var(--color-text-secondary);

    --border-base: var(--color-border-base);
    --border-muted: var(--color-border-muted);
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
  overflow: hidden;
}

.txt_l{
  text-align: left !important;
}
.txt_r{
  text-align: right  !important;
}


/* sécurisation footer */
footer {
    flex-shrink: 0;
}

.admin-header .chip {
  color: var(--color-text-primary);
}

.flash {
    position: fixed;
    bottom: 0;
    margin-top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9001;

    max-width: 600px;
    width: calc(100% - 20px);

    padding: 14px 18px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;

    z-index:9001
}

.flash-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(+50px);
}

/* couleurs */
.flash-success {
    background: var(--color-feedback-success);
    color: var(--color-text-onprimary);
}

.flash-error {
    background: var(--color-feedback-error);
    color: var(--color-text-onprimary);
}

.flash-info {
    background: var(--color-primary-soft);
    color: var(--color-text-primary);
}

.flash button {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    float: right;
    width: 16px;
    height: 16px;
    padding: 0;
}

.flash-inner {
    width: clalc(100% - 16px);
}

.admin-header {
    display: flex;
    align-items: center;

    background: var(--admin-bg);
    color: var(--color-text-onprimary);

    padding: var(--sp-12) var(--sp-16);
    height: var(--height-row);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 44px;
    width: auto;
}

.header-title {
    font-family: var(--font-family);
    font-size: var(--text-h2-18-sb-font-size);
    font-weight: var(--text-h2-18-sb-font-weight);
    line-height: var(--text-h2-18-sb-line-height);
}

.page-header {
    text-align: center;
    margin: 16px;
}

.page-header-top {
  height: 100%;
}

.page-header-titles{
  width: calc(100% - 200px);
  margin-left: auto;
  margin-right: auto;
}
.page-header-titles h1 {
    color: var(--color-text-primary);
    margin: 20px 0;
    font-size: var(--text-h1-24-sb-font-size);
    font-weight: var(--text-h1-24-sb-font-weight);
    letter-spacing: var(--text-h1-24-sb-letter-spacing);
    line-height: var(--text-h1-24-sb-line-height);
}

.page-header-titles p {
    color: var(--color-text-primary);
    margin: 4px 0 0;
    font-size: var(--text-h2-18-sb-font-size);
    font-weight: var(--text-h2-18-sb-font-weight);
    letter-spacing: var(--text-h2-18-sb-letter-spacing);
    line-height: var(--text-h2-18-sb-line-height);
}

.page-header-pre-actions {
    float: left;
}
.page-header-actions {
    float: right;
}
.page-header-actions, .page-header-pre-actions{
  max-width: var(--height-chip);
  font-size: var(--text-button-14-med-font-size);
  font-weight: var(--text-button-14-med-font-weight);
  letter-spacing: var(--text-button-14-med-letter-spacing);
  line-height: var(--text-button-14-med-line-height);
  color: var(--color-text-secondary);
}
.page-header-actions button, .page-header-pre-actions button{
  margin-bottom: 4px;
  background: var(--color-surface-base);
  border: 1px solid var(--color-border-base);
  color:var(--color-text-primary);
  border-radius: 0;
  height: var(--height-chip);
  width: var(--height-chip);
  padding: 0;
}

.page-header-actions button:hover,
.page-header-pre-actions button:hover,
.page-header-actions button.on{
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-base);
  color:var(--color-primary-base);
  border-radius: 0;
}

.page-header-search {
    margin-top: 12px;
}

.admin-search {
  margin-top: 25px;
}
.admin-search .lucide-search {
  z-index: 2;
  position: absolute;
  margin-top: 6px;
  margin-left: -389px;
}
.admin-search input {
  height: var(--height-chip);
  padding: var(--sp-16);
  border-radius: var(--radius-pill);
  background: var(--color-surface-base);
  border: 1px solid var(--color-border-muted);

  display: flex;
  align-items: left;
  gap: var(--sp-10);
  padding-left: 45px;
  margin-left: auto;
    margin-right: auto;
    max-width: 805px;
}

.admin-content {
  position: absolute;
  top: 64px;        /* header (56) + search (48) */
  bottom: 56px;     /* footer */
  left: 0;
  right: 0;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  padding: 16px;
  background: var(--content-bg);
  padding: 0 16px 16px 16px;

}

.filters-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.filters-bar button {
    all: unset;
}

.filters-bar .btn {
    height: var(--height-chip);
}

.icon {
  width: 22px;
  height: 22px;
  color: var(--color-text-secondary);
}

.icon.on, .icon:hover {
  color: var(--color-primary-base);
}

.matches-list {
 text-align: center;
}

.match-card {
    background: var(--card-bg);
    border-radius: var(--radius-16);
    padding: var(--sp-16);

    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-base);
}

.match-card .team {
  color: #000;
  margin-top: 10px;
}
.match-card .team img{
  height: 48px;
  width: 48px;
}

.match-card .vs {
    opacity: 0.5;
}

.match-card .meta {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
}

.admin-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    height: 65px;
    background: var(--color-surface-base);
    border-top: 1px solid var(--border-base);
    text-align: center;
    z-index: 3000;
}

.admin-footer .elem{
  height: 45px;
  margin-top: -2px;
}

.footer-icons {
    display: flex;
    justify-content: space-around;
}

.footer-icons a {
    text-decoration: none;
    color: var(--color-text-secondary);
  display: inline-block;
}
.footer-icons a img {
  height: 22px;
}
.footer-icons a span{
    display:block;
    font-size:  var(--text-caption-12-reg-font-size);
    font-weight: var(--text-caption-12-reg-font-weight);
    letter-spacing: var(--text-caption-12-reg-letter-spacing);
    line-height :var(--text-caption-12-reg-line-height);
}

.footer-icons a:hover .icon,
.footer-icons a:hover,
.footer-icons a.on .icon,
.footer-icons a.on {
    color: var(--color-primary-base) !important;
}

.config-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 6px;

    color: #ffffff;
    cursor: pointer;

    font-size: 30px;
    perspective: 600px;

    right: 11px;
    position: absolute;
}

.config-toggle:hover {
    background: rgba(255,255,255,0.15);
}

/* chevron */
.chevron {
    display: inline-block;
    font-size: 1.6rem;
    line-height: 1;

    transform-origin: center;
    transition: transform 0.35s ease;
    transform-style: preserve-3d;
      margin-top: -5px;
}

/* état ouvert */
.config-toggle.open .chevron {
    transform: rotateY(-560deg);
}

/* panneau latéral */
.config-panel {
    position: fixed;
    top: 64px;
    right: -280px;
    width: 280px;

    background: #ffffff;
    color: #0f172a;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);

    z-index: 3001;
    transition: right 0.25s ease;

    height: calc(100vh - 129px);
}
@supports (height: 100dvh) {
  .config-panel {
    height: calc(100dvh - 129px);
  }
}

/* état ouvert */
.config-panel.open {
    right: 0;
}

.config-panel h3{
  text-align: center;
    width: 100%;
}

/* header du panel */
.config-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}


/* navigation */
.config-nav {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-nav a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

.category-selector {
    margin-left: 16px;
    position: absolute;
    right: 12px;
}
.category-selector.superAdmin {
    right: 70px;
}

.config-panel .lang-switcher {
  bottom: 11px;
  position: absolute;
  left: 50%;
  margin-left: -68px;
}

/* ===== TABLE ADMIN ===== */

.h1-admin-table{
  text-align: center;
  color: #00298a;
  margin-bottom: 5px;
}
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table thead th {
    text-align: left;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    padding: 8px 12px;
}

.admin-table tbody tr.club-row {
    background: #0b12201c;
    border-radius: 6px;
}

.admin-table tbody tr.club-row td {
  padding: 0 3px;
  vertical-align: middle;
}

.admin-table tbody tr.club-row:hover {
  background: var(--accent);
  color: #fff;
}
.admin-table tbody tr.club-row:hover > .admin-action a svg{
  color: #FFF;
}
.club-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: none;
    border-radius: 6px;
    padding: 0px;
    margin: 5px 0 0 5px;
}

/* action */
.admin-action{
    text-align: right;
}

.admin-action a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding-right: 8px;
}

.admin-action a:hover {
    text-decoration: underline;
}

.team-row td {
    font-size: 0.85rem;
    color: #cbd5f5;
    padding: 6px 12px;
}

.team-row {
    background: #020617;
}
.admin-action a {
    opacity: 0.85;
}

.admin-action a:hover {
    opacity: 1;
}

svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
    padding-top: 2px;
}

.admin-action svg {
    color: var(--bg-main);
    cursor: pointer;
}

.admin-action svg:hover {
  color: var(--bg-main) !important;
}

.admin-action .danger svg {
    color: red;
    cursor: pointer;
}

.section_card{
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.section_card--wide {
  max-width: 660px;
}

/* Formulaire club en grille 2 colonnes */
.club-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12) var(--sp-16);
  margin-top: var(--sp-4);
}
.club-form-grid .form-group.full {
  grid-column: 1 / -1;
}
@media (max-width: 480px) {
  .club-form-grid {
    grid-template-columns: 1fr;
  }
  .section_card--wide { max-width: 500px; }
}
.h1_card{
  text-align: center;
}
.club-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card-bg);
    border-radius: var(--radius-12);
    padding: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.club-card-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.club-card-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.club-location {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 4px 0;
}

.club-instagram {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 0.9rem;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--radius-12);
    padding: 16px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.team-card h3 {
    margin-bottom: 36px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
}
/* ===== BOUTONS FORMULAIRES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  height: var(--height-button);
  padding: 0 var(--sp-24);
  border-radius: var(--radius-12);
  background: var(--color-primary-base);
  color: var(--color-text-onprimary);
  border: 0;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
}

/* ===== BOUTON RETOUR ===== */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: var(--radius-12);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-back i { width: 16px; height: 16px; }
.btn-back:hover {
  background: var(--color-background-base);
  color: var(--color-text-primary);
}

.page-header-pre-actions {
  float: left;
  text-align: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  height: var(--height-button);
  padding: 0 var(--sp-16);
  border-radius: var(--radius-12);
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-base);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--color-background-base);
  color: var(--color-text-primary);
}

/* ===== ICON-BTN (bouton icône dans page-header) ===== */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--color-primary-base);
  color: var(--color-primary-base);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: var(--color-primary-base);
  color: var(--color-text-onprimary);
}
.icon-btn.success {
  border-color: var(--color-feedback-success);
  color: var(--color-feedback-success);
}
.icon-btn.success:hover {
  background: var(--color-feedback-success);
  color: var(--color-text-onprimary);
}
.icon-btn svg {
  width: 20px !important;
  height: 20px !important;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  margin-top: var(--sp-16);
}
.form-actions .btn-primary {
  flex: 1;
}
.team-logo-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.team-logo-edit {
    margin-bottom: 20px;
}

.team-logo-preview img {
    height: 155px;
    object-fit: contain;
    background: #ffffff;
    border-radius: var(--radius-12);
    padding: 8px;
    border: 1px dashed #e5e7eb;
}

.team-logo-input {
  width: calc( 100% - 100px );
  float: right;
  margin-top: -10px;
}

.team-logo-input label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.club-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.club-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.club-option img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
}

.club-option span {
    font-weight: 600;
    font-size: 0.9rem;
}

.club-option:hover {
    border-color: var(--primary);
}

.club-option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}
.club-select-wrapper {
    position: relative;
}

/* bouton actuel */
.club-select-current {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: var(--radius-12);
    cursor: pointer;
    border: 2px solid #e5e7eb;
    width: 100%;
}

.club-select-current span {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-select-current img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}

.club-select-current svg {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.7;
}

/* liste cachée par défaut */
.club-select-list {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(100% + 0);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  max-height: 192px;
  overflow-y: auto;
  width: 96%;
  margin-left: 2%;
}

/* état ouvert */
.club-select-wrapper.open .club-select-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

/* options */
.club-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.club-option:hover {
    border-color: #d90000;
}

.club-option.selected {
    border-color: #3eeb25;
    background: #f4ffef;
}
.club-card .muted, .team-card .muted {
    font-size: 0.8rem;
    color: var(--danger);
    text-align: center;
}

.club-select-wrapper .form-group{
  margin-top: 15px;
  width: 90% ;
  margin-left: auto;
  margin-right: auto;
}

.aj_circle {
  text-align: center;
  margin-bottom: 20px;
  float: right;
  top: 12px;
  position: absolute;
  right: 23px;
}
.aj_circle svg{
  height: 50px;
  width: 50px;
}

.admin-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: green;
}

.admin-add:hover {
  color: #00b500;
}

.btn-icon{
  float: right;
}
.btn-icon svg{
  height: 40px;
  color: green;
}
.club-row.highlight {
    background: rgba(34, 197, 94, 0.25); /* vert accent */
    box-shadow: inset 4px 0 0 var(--accent);
    animation: highlightFade 3s ease forwards;
}


/* MATCH CARD */

.match-card {
  max-width: 394px;
  display: inline-block;
  width: 100%;
  margin: 10px;
  vertical-align: top;
}

/* header */
.match-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}
.match-card-header-content{
  width: 36%;
  text-align: center;
}
.match-card-header-content.one{
  text-align: left;
  width: 32%;
}
.match-card-header-content.end{
  text-align: right;
  width: 32%;
}
.match-card-header-content.end:hover{
  color: var(--color-primary-base) !important;
  cursor: pointer;
}
.match-card-header-content.end:hover .editarTitle{
  color: var(--color-primary-base) !important;
}
.match-card-header-content.end:hover svg{
  color: var(--color-primary-base) !important;
}
.editarTitle{
  vertical-align: super;
  color: var(--color-text-primary);
}
.match-card-header-content.end svg{
  width: 20px;
  height: 20px;
  padding: 2px;
  color: var(--color-text-secondary);
}
.match-datetime {
  color: var(--color-text-primary);
  vertical-align: top;
    text-transform: capitalize;
}
.match-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  background: var(--color-background-base);
  border: 1px solid var(--color-border-muted);
  color: var(--color-text-primary);
  padding: 3px 5px;
  height: auto;
  font-size: var(--text-caption-12-reg-font-size);
  font-weight: var(--text-caption-12-reg-font-weight);
  letter-spacing: var(--text-caption-12-reg-letter-spacing);
  line-height: var(--text-caption-12-reg-line-height);
  vertical-align: top;
}

/* pastille verte */
.match-status-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
}
.match-status-dot.scheduled{
  background: var(--color-feedback-warning);
}
.match-status-dot.ready{
  background: var(--color-surface-base);
}
.match-status-dot.playing{
  background: var(--color-feedback-success);
}
.match-status-dot.finished{
  background: var(--color-text-primary);
}
.match-status-dot.suspended{
  background: var(--color-feedback-error);
}
.btn-edit {
  margin-left: auto;
  height: var(--height-chip);
  padding: 0 var(--sp-12);
}

/* body */
.match-card-body {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--sp-12);
}

.team {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  text-align: center;
}

.team img {
  margin-top: 4px;
  width: 40px;
  object-fit: contain;
}

/* score */
.score {
  padding-top: 25px;
}

/* footer */
.match-card-footer {
  margin-top: -9px;
  text-align: center;
}
.match-card-footer span{
  display: block;
  text-transform: uppercase;
}


/* overlay */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.1);
  z-index: 4000;
}

/* sheet */
.sheet {
  position: fixed;
  top: 64px;
  right: 0;

  width: 100%;
  max-width: 500px;
  height: calc(100dvh - 64px);

  background: var(--content-bg);

  transform: translateX(100%);
  transition: transform 0.25s ease;

  z-index: 4001;

  display: flex;
  flex-direction: column;
}
@supports (height: 100dvh) {
  .sheet {
    height: calc(100dvh - 64px);
  }
}
.sheet h3{
  color: var(--color-text-primary);
}
/* état ouvert */
.sheet.open {
  transform: translateX(0);
}

/* header */
#editMatchSheet .page-header {
  border-bottom: 1px solid var(--border-base);
  padding-bottom: 10px;
}

.sheet h1{
  text-align: center;
  padding-top: 8px;
}

.sheet .page-header{
  padding-left: 20px;
  padding-right: 20px;
}
#appSheetView .page-header {
  padding-left: 0px;
  padding-right: 0px;
}
.sheet-content {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px 16px;
  text-align: center;
}

/* footer collé en bas */
.sheet-footer {
  flex-shrink: 0;

  display: flex;
  gap: var(--sp-12);

  background: var(--content-bg);

  border-top: 1px solid var(--border-base);

  padding: 16px;
}

.sheet-footer.footer-clean {
  padding: 0;
}

.sheet-footer.footer-dirty {
  padding: 16px;
}

.sheet-footer.footer-playing {
  padding: 16px;
}

.sheet-footer.footer-hidden{
  display: none;
  padding: 0;
}
.match-card--readonly {
  cursor: default;
}

/* bloc résumé match */
.match-summary {
  text-align: center;
}

/* mode lecture seule (popin) */
.match-card--readonly {
  cursor: default;
}

/* masquer le bouton éditer */
.match-card--readonly .match-card-header-content.end {
  display: none;
}

/* supprimer les effets hover */
.match-card--readonly:hover {
  box-shadow: var(--shadow-card);
  transform: none;
}

.edit-block {
  margin-top: var(--sp-24);
  max-width: 394px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--border-base);
}

.edit-block-title {
  font-size: var(--text-h2-18-sb-font-size);
  font-weight: var(--text-h2-18-sb-font-weight);
  margin-bottom: var(--sp-16);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--text-caption-12-reg-font-size);
  color: var(--color-text-secondary);
}

.form-group input,
.form-group select {
  height: var(--height-row);
  padding: 0 var(--sp-12);
  border-radius: var(--radius-12);
  border: 1px solid var(--border-base);
  background: var(--color-surface-base);
}


.programming-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.programming-item {
  all: unset;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: var(--height-row);
  padding: 0 var(--sp-16);

  background: var(--color-surface-base);
  border:none;
  border-radius: var(--radius-12);
  box-shadow: inset 0 0 0 1px var(--color-border-muted);
}
button.programming-item:hover, .programming-item:hover {
  color: var(--color-text-primary);
  background:var(--color-primary-soft);
}
button.programming-item:active,
.programming-item:active, .programming-item.on{
  color:var(--color-text-disabled);
  background:var(--color-surface-base);
  border: none;
  box-shadow: inset 0 0 0 2px var(--color-border-muted);
}

.programming-left {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.programming-left i {
  width: 20px;
  height: 20px;
  color: var(--color-text-secondary);
}

.programming-label {
  font-size: var(--text-body-14-reg-font-size);
  font-weight: var(--text-body-14-reg-font-weight);
  color: var(--color-text-primary);
}

.programming-item i[data-lucide="chevron-right"] {
  color: var(--color-text-secondary);
}

.status-chips {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.status-chips .chip {
  cursor: pointer;
}

.status-chips .chip[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.programming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc( 100% - 33px );
  margin-bottom: 8px;
}

.programming-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.programming-input {
  appearance: auto;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0;
  cursor: pointer;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: var(--height-row);
  padding: 0 var(--sp-16);

  background: var(--color-surface-base);
  border:none;
  border-radius: var(--radius-12);
  box-shadow: inset 0 0 0 1px var(--color-border-muted);
    width: calc(100%);
  display: inline-block;
  font-size: var(--text-body-14-reg-font-size);
    font-weight: var(--text-body-14-reg-font-weight);
    color: var(--color-text-primary);
  margin-bottom: 8px;
  padding-right: 12px;
}

.programming-input:hover{
  color: var(--color-text-primary);
  background:var(--color-primary-soft);
}
.programming-input:active,
.programming-item:focus,
.programming-item.on{
  color:var(--color-text-disabled);
  background:var(--color-surface-base);
  border: none;
  box-shadow: inset 0 0 0 2px var(--color-border-muted);
}
#matchTimeInput{
  height: 20px;
  margin-top: 10px;
  width: calc(100%);
  text-align: left;
}
#matchDateInput{
  height: 20px;
  margin-top: 10px;
  width: calc(100%);
  text-align: left;
}
.programming-left.posAbs{
  position: absolute;
    margin-top: 14px;
    margin-left: 13px;
    display: inline-block;
}
.programming-left.posAbs svg{


}
.programming-input:focus {
  outline: none;
}

.programming-input-invisible,
.programming-input-invisible:hover,
.programming-input-invisible:active,
.programming-input-invisible:focus{
  border: 0 #fff;
  background: none;
  box-shadow: none;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  height: 20px;
  margin-top: 8px;
}

.content-heure{
  display: inline-block;
  position: relative;
  width: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border-muted);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.spinner.gris {
  border: 4px solid var(--color-border-base);
  border-top-color: var(--color-text-secondary);
}

.sheet-loader {
  position: fixed;
  inset: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* animation de SORTIE uniquement */
.sheet-loader.is-hiding {
  animation: loaderFadeOut 0.25s ease-out forwards;
}

@keyframes loaderFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0);
  }
}

.sheet-loader[hidden] {
  display: none !important;
}


@keyframes fadeBlur {
  from {
    backdrop-filter: blur(0);
    opacity: 0;
  }
  to {
    backdrop-filter: blur(8px);
    opacity: 1;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes highlightFade {
    0% {
        background: rgba(34, 197, 94, 0.35);
    }
    100% {
        background: transparent;
    }
}
.goals-grid{
  padding-left: 10px;
}
.goals-team{
  padding-top: 10px;
}

.goal-row ,.dorsal-row {
  display: inline-block;
}
.dorsal-row {
  margin-left: 15px;
}
.goal-form input.number {
  font-family: var(--font-family);
  background: : var(--color-background-base);
  box-shadow: inset 0 0 0 1px var(--color-border-muted);
  color: : var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0%;
  width: 58px;
  padding: 0 5px 0 10px;
  height: 37px;
  border-radius: 5px;
}
.goal-form span {
  padding: 0 5px;
}
.goal_type{
  font-family: var(--font-family);
  background: var(--color-surface-base);
  box-shadow: none;
  border: none;
  color: var(--color-primary-base);
  font-size: 12px;
  letter-spacing: 0%;
  padding: 0 10px;
  width: 70px;
  height: 35px;
  border-radius: 30px;
  display: inline-block;
  margin-right: 10px;
  box-shadow: inset 0 0 0 1px var(--color-primary-base);
}
.goal_type:hover{
  background:var(--color-primary-soft);
  color:var(--color-primary-base);
}
.goal_type:active,
.goal_type:focus,
{
  color:var(--color-text-disabled);
  background:var(--color-surface-base);
  border: none;
  box-shadow: inset 0 0 0 2px var(--color-border-muted);
}


.goal-form button{
  width: calc(100% - 100px);
  max-width: 220px;
  font-size: 12px;
  padding: 10px 15px;

}

.team-goals{
  padding: 0;
  margin: 0;
  text-align: left;
}

.goal-item {
  color: rgb(0, 145, 53);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  display: block;
  transition: opacity .25s ease, transform .25s ease;
}

.goal-item::before {
  content: "• ";
}

.goal-del {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0px;
  color: var(--color-text-secondary);
  display: inline-block;
  align-items: center;
  font-size: 12px;
  width: 40px;
  position: absolute;
  margin-top: -5px;
}
.goal-del svg{
  color: var(--color-text-secondary);
  height: 22px;
  width: 22px;
  opacity: 0.9;
}
.goal-del svg:hover {
  color: var(--color-feedback-error);
  opacity: 1;
}

.goals-list{
      padding-left: 0px;
}
.goals-list .goal-item {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  letter-spacing: 0%;
  color: var(--color-text-primary);
  padding-left: 5px;
  padding-bottom: 8px;
}
.goals-list .goal-item:hover {
  color: var(--color-feedback-error);
}
.goal-item.goal-removing {
  opacity: 0;
  transform: translateX(-8px);
}
.goals-list .goal-item::before {
  content: " ";
}

.filter-title{
  text-transform: capitalize;
}
#filtersContent{
  text-align: left;
}
#filtersContent .but-1,
#filtersContent .but-2{
  width: auto;
  padding: 12px 16px;
  min-width:60px;
  margin: 4px;
}
#filtersSheet .page-header {
  border-bottom: 1px solid var(--border-base);
  padding-bottom: 10px;
  margin: 8px 16px;
}
#filtersSheet .page-header-titles h1 {
  margin: 8px 0 2px;
}
#filtersSheet .page-header-titles p {
  margin: 0 0 4px;
}

/* Sheets publics : header compact */
#appSheetView .page-header-titles h1 {
  margin: 8px 0 2px;
}
#appSheetView .page-header-titles p {
  margin: 0 0 4px;
}

.filter-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-feedback-success);
}

.score .penalties{
  font-size: 0.8em;
  opacity: .85;
  margin-left: 6px;
}
.score { text-align:center; }
.score-unknown { opacity:.45; }

.score-pen { margin-top:6px; line-height:1.05; }
.score-pen-label { font-size:12px; opacity:.75;    margin-bottom: 6px;}
.score-pen-value { font-size:14px; font-weight:700; opacity:.9;}

@media (max-width: 864px) {
  .admin-search .lucide-search {
    margin-left: -189px;
  }
  .admin-search input {
      max-width: 405px;
  }
  .match-card {
    width: 100%;
  }
  .page-header-titles {
    width: calc(100% - 120px);
  }
}
@media (max-width: 600px) {
  .spinner {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 670px) {
    .admin-table .col-city,.admin-table a.insta, .nb-teams {
        display: none;
    }
    .match-card {
      width: 100%;
      margin: 10px 0;
    }
}

@media (max-width: 440px) {
  .admin-search .lucide-search {
    margin-left: calc(-50% + 26px);
  }
  .admin-search input {
    max-width: 100%;
    width: 100%;
  }
  .match-card {
    width: 100%;
    margin: 10px 0;
  }
  #block-status{
    margin-bottom: 50px;
  }
}

@media (max-width: 300px) {
    .club-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .club-card-logo img {
        width: 64px;
        height: 64px;
    }
    .team-logo-edit {
        flex-direction: column;
        align-items: flex-start;
    }
    .matches-list{
      min-width: 300px;
    }
}

.media-upload-btn.icon-only {
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== CLUBS EDIT — layout côte à côte ===== */
.club-edit-layout {
  display: flex;
  gap: var(--sp-16);
  align-items: flex-start;
  padding: 0 var(--sp-16) var(--sp-24);
  max-width: 960px;
  margin: 0 auto;
}

.club-edit-form,
.club-edit-teams {
  flex: 1;
  min-width: 0;
}

@media (max-width: 800px) {
  .club-edit-layout {
    flex-direction: column;
  }
}

/* Sélecteur club dans team edit */
.team-club-selector {
  margin-top: 20px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}
.team-club-selector-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.team-club-selector-label {
  font-size: var(--text-caption-12-sb-font-size);
  font-weight: var(--text-caption-12-sb-font-weight);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.club-selector-warning {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #fff0f0;
  border: 1px solid #fca5a5;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  line-height: 1.3;
}
.club-selector-warning i { width: 13px; height: 13px; flex-shrink: 0; }

/* Liste de cartes équipes dans club edit */
.teams-card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.teams-card-grid .club-item-card {
  width: 100%;
}

/* Header section équipes */
.club-teams-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.club-teams-title {
  margin: 0;
  font-size: var(--text-h2-18-sb-font-size);
  font-weight: var(--text-h2-18-sb-font-weight);
  color: var(--color-text-primary);
}

/* Team mini-cards */
.team-mini-card {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-12);
  background: var(--color-background-base);
  border-radius: var(--radius-12);
  border: 1px solid var(--color-border-base);
  margin-bottom: var(--sp-8);
}
.team-mini-card:last-child { margin-bottom: 0; }

.team-mini-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--card-bg);
  border-radius: var(--radius-8);
  padding: 3px;
  flex-shrink: 0;
}

.team-mini-info {
  flex: 1;
  min-width: 0;
}

.team-mini-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-mini-actions {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-shrink: 0;
}
.team-mini-actions a {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.team-mini-actions a:hover { color: var(--color-primary-base); }
.team-mini-actions a.danger:hover { color: var(--color-feedback-error); }
.team-mini-actions svg { width: 18px !important; height: 18px !important; }

/* Label de catégorie dans la section équipes */
.club-teams-cat-label {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin: var(--sp-12) 0 var(--sp-8);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}
.club-teams-cat-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-base);
}
.club-teams-cat-label:first-of-type { margin-top: var(--sp-4); }

/* ===== CLUBS GRID (liste en cards) ===== */
.clubs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  padding: 0 var(--sp-16) var(--sp-24);
  justify-content: center;
}

.club-item-card {
  background: var(--card-bg);
  border-radius: var(--radius-16);
  padding: var(--sp-16);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-base);
  width: 100%;
  max-width: 394px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

/* ligne logo + infos + actions */
.club-item-head {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.club-item-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--color-background-base);
  border-radius: var(--radius-8);
  padding: 4px;
  flex-shrink: 0;
}

.club-item-info {
  flex: 1;
  min-width: 0;
}

.club-item-name {
  display: block;
  font-size: var(--text-h2-18-sb-font-size);
  font-weight: var(--text-h2-18-sb-font-weight);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.club-item-location {
  display: block;
  font-size: var(--text-caption-12-reg-font-size);
  color: var(--color-text-secondary);
  margin-top: 3px;
}

.club-item-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

.club-item-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.club-item-actions a:hover { color: var(--color-primary-base); }
.club-item-actions a.danger:hover { color: var(--color-feedback-error); }
.club-item-actions svg { width: 22px !important; height: 22px !important; }

/* badges S13 / S15 */
.club-item-badges {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
  align-items: center;
}

.club-badge-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.club-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.club-badge.s13 { background: #dbeafe; color: #1d4ed8; }
.club-badge.s15 { background: #dcfce7; color: #16a34a; }
.club-badge.zero { background: var(--color-border-base); color: var(--color-text-secondary); }

.club-item-instagram {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.club-item-instagram:hover { color: #c2185b; }
.club-item-instagram svg { width: 14px !important; height: 14px !important; }

/* ── Gallery cover ── */
.gallery-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-8);
  overflow: hidden;
  background: var(--color-background-base);
}
.gallery-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Gallery badges ── */
.club-badge.gallery-images {
  background: #e0e7ff;
  color: #3730a3;
}
.club-badge.gallery-status-published {
  background: #dcfce7;
  color: #16a34a;
}
.club-badge.gallery-status-draft {
  background: #fef3c7;
  color: #92400e;
}

.gallery-sort-controls {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
}
.gallery-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-8);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.gallery-sort-btn:hover {
  background: var(--color-background-base);
  color: var(--color-primary-base);
}
.gallery-sort-btn.disabled {
  opacity: 0.25;
  pointer-events: none;
}
.gallery-sort-btn svg {
  width: 18px !important;
  height: 18px !important;
}

.media-upload-btn.icon-only svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.media-upload-btn.icon-only:hover svg {
    color: #16a34a;
}
