/* =========================================================================
   central.css — Central (ex-outil Agenda), sous-module /agenda/
   -------------------------------------------------------------------------
   Refonte du 10/09/2026, direction 1b du dossier `redesign-compte-admin` :
   rail de sections vertical, mise en page aérée, ombres très basses,
   accent porté par la halle.

   ⚠️ CE FICHIER EST UNE COPIE HABILLÉE DE `admin.css`, PAS UNE RÉÉCRITURE.
      Les huit cents lignes qui suivent le socle (carte, étaliers, galerie,
      statistiques, modales) sont celles de l'outil actuel, INCHANGÉES : elles
      lisent des variables, et ce sont les variables qui ont changé. C'est ce
      qui permet à `central.html` de partager `admin.js` sans qu'une ligne de
      JavaScript bouge.

   ⚠️ LES ANCIENS NOMS DE VARIABLES SURVIVENT EN ALIAS (§2). `--cream`,
      `--ink`, `--mauve`, `--border`… ne sont plus des couleurs, ce sont des
      renvois vers les jetons de la refonte. Les supprimer casserait les
      huit cents lignes du bas d'un coup.
   ========================================================================= */

:root{
  /* ----------------------------------------------------------------------
     1. JETONS DE LA REFONTE (§ « Jetons de design » du dossier)
     ---------------------------------------------------------------------- */
  --bg:#F4F5F6;        /* fond d'application */
  --sf:#FFFFFF;        /* surfaces : cartes, tableaux, barre haute, modales */
  --bd:#E6E8EA;        /* bordures */
  --sub:#F0F1F3;       /* fond subtil : filets, groupes de pastilles, survols */
  --tx:#17191B;        /* texte principal */
  --t2:#4E555B;        /* texte secondaire — 4,5:1 minimum sur --sf */
  --mu:#666E74;        /* texte atténué : surtitres, en-têtes de colonnes */
  --dim:#C7CCD1;       /* gris estompé : bordures pointillées, états inactifs */

  --r1:16px;           /* conteneurs */
  --r2:12px;           /* champs, cartes internes */
  --rp:999px;          /* boutons, pastilles, étiquettes */
  --rowpad:16px;       /* densité des lignes de tableau — 10px en Compact */

  --sh1:0 1px 2px rgba(22,32,27,.07);
  --sh2:0 1px 2px rgba(22,32,27,.06), 0 12px 32px rgba(22,32,27,.07);
  --shac:0 4px 12px color-mix(in srgb, var(--ac) 27%, transparent);

  --topbar-h:65px;     /* hauteur de la barre haute — le rail s'y accroche */

  /* ----------------------------------------------------------------------
     1 bis. L'ACCENT SUIT LA HALLE
     ----------------------------------------------------------------------
     Les trois couleurs sont celles de l'outil actuel : elles ne sont pas
     réinventées ici. La valeur par défaut est celle des Védasiennes, comme
     dans `admin.js` (`state.halle = 'hv'`) : sans elle, l'outil clignote
     d'une couleur à l'autre au démarrage.

     ⚠️ LE TEXTE POSÉ SUR L'ACCENT EST TOUJOURS BLANC. Les trois teintes
        sont assez foncées pour ça (le jaune des 610 d'avant le 10/09 ne
        l'était pas — c'est ce qui avait imposé deux dérogations). */
  --h610:#2541B2;   --h610-strong:#1B3084;
  --hv:#FF6B1A;     --hv-strong:#D9530A;
  --groupe:#2F8F2A; --groupe-strong:#24701F;
  --ac:var(--hv);   --ac-strong:var(--hv-strong);
  --acs:color-mix(in oklab, var(--ac) 15%, white);   /* accent doux : pastille active */

  /* ----------------------------------------------------------------------
     2. ALIAS — l'ancien vocabulaire, branché sur les nouveaux jetons
     ---------------------------------------------------------------------- */
  --cream:var(--sub);
  --bone:#E1E4E6;
  --ink:var(--tx);
  --mauve:var(--mu);
  --border:var(--bd);
  --border-soft:#EFF0F2;
  --border-strong:var(--dim);
  --line:var(--bd);              /* utilisé par l'onglet Carte */
  --text:var(--tx);
  --text-2:var(--t2);
  --accent:var(--ac);
  --accent-strong:var(--ac-strong);
  --radius:14px;                 /* rayon des cartes de contenu */
  --shadow:var(--sh2);

  /* ----------------------------------------------------------------------
     3. TYPOGRAPHIE
     ---------------------------------------------------------------------- */
  --police:"Outfit", system-ui, -apple-system, sans-serif;
  /*  Le repli est celui de la maquette, au mot près : `'IBM Plex Mono',
      monospace`. Y glisser `ui-monospace` ou `Menlo` ferait dessiner les
      chiffres par une autre police le jour où le Google Font ne répond pas. */
  --police-donnees:"IBM Plex Mono", monospace;
}

html[data-halle="h610"]{  --ac:var(--h610);   --ac-strong:var(--h610-strong); }
html[data-halle="groupe"]{ --ac:var(--groupe); --ac-strong:var(--groupe-strong); }

*{ box-sizing:border-box; }
/* L'attribut HTML `hidden` doit TOUJOURS l'emporter (sinon .boot/.modal-backdrop
   en display:grid restent visibles → modale ouverte au chargement). */
[hidden]{ display:none !important; }
body{
  margin:0; background:var(--bg); color:var(--tx);
  font-family:var(--police); font-size:15px;
  -webkit-font-smoothing:antialiased;
}
.boot{ display:grid; place-items:center; height:100vh; color:var(--mu); font-size:14px; }

/*  Les colonnes de chiffres se lisent en diagonale ou ne se lisent pas.

    ⚠️ LA DATE N'EST PAS DANS CETTE LISTE, ET C'EST VOULU. Dans la maquette,
       le quantième ne porte AUCUNE `font-family` — il hérite d'Outfit :

         <span style="font-size:26px;font-weight:600;letter-spacing:-.03em;
                      line-height:1;">{{ e.num }}</span>

       Le mettre en IBM Plex Mono changeait le dessin du chiffre : le zéro y
       est pointé. « 05 », « 20 » et « 30 » ne ressemblaient plus à ceux de la
       maquette. La chasse fixe sert aux HORAIRES, aux URL, aux axes et aux
       colonnes de valeurs — pas à un chiffre de 26 px qu'on lit comme un
       titre. `tabular-nums` suffit à l'aligner.  */
.cell-hour, .st-y, .st-x, .st-rang, .st-rang-val,
.swatch-item .sw-hex, .ct-prix-cellule, .st-cle a,
table.st-grid td.num, table.st-grid th.num{
  font-family:var(--police-donnees);
  font-variant-numeric:tabular-nums;
}
.cell-date{ font-variant-numeric:tabular-nums; }
.st-valeur, .ret-valeur, .st-bulle b{ font-variant-numeric:tabular-nums; }

/* ---------- Barre haute ---------- */
.topbar{
  display:flex; align-items:center; gap:20px;
  min-height:var(--topbar-h); padding:16px 26px;
  background:var(--sf); border-bottom:1px solid var(--bd);
  position:sticky; top:0; z-index:20;
}
.brand{ display:flex; align-items:center; gap:10px; font-size:17px; font-weight:600; letter-spacing:-.02em; }
.logo-dot{ width:10px; height:10px; border-radius:50%; background:var(--ac); }
.halle-switch{
  display:flex; gap:2px; margin-left:8px;
  background:var(--sub); border:none; border-radius:var(--rp); padding:4px;
}
.hs-btn{
  border:none; background:transparent; padding:7px 16px; border-radius:var(--rp);
  cursor:pointer; font-family:inherit; font-weight:500; color:var(--t2); font-size:13.5px;
}
.hs-btn:hover{ color:var(--tx); }
.hs-btn.is-active{ background:var(--ac); color:#fff; font-weight:600; }
.user-box{ margin-left:auto; display:flex; align-items:center; gap:14px;
  font-size:13.5px; font-weight:600; color:var(--t2); }
.link-out{ color:var(--mu); text-decoration:none; font-weight:400; }
.link-out:hover{ text-decoration:underline; }

/* ---------- Coquille : rail de sections + contenu ---------- */
/*  Les dix onglets tenaient sur une rangée horizontale ; sur un portable,
    les derniers passaient sous le pli sans que rien ne le signale. Une
    colonne ne déborde pas, quel que soit le nombre de sections — c'est le
    motif déjà retenu pour le rail des rapports de Statistiques.          */
.shell{ display:flex; align-items:flex-start; }

.rail{
  flex:0 0 212px; width:212px;
  display:flex; flex-direction:column; gap:2px;
  padding:24px 16px 20px;
  border-right:1px solid var(--bd);
  position:sticky; top:var(--topbar-h);
  min-height:calc(100vh - var(--topbar-h));
}
.rail-titre{
  padding:0 14px 12px; font-size:11px; font-weight:600;
  text-transform:uppercase; letter-spacing:.12em; color:var(--mu);
}
/*  ⚠️ `.tab` ET `data-tab` SONT LE CONTRAT AVEC `admin.js` : il bascule les
    sections par `$$('.tab')` puis `[data-panel="…"]`. Le rail ne change que
    la mise en page — les noms de classes, jamais.                        */
.rail .tab{
  display:block; width:100%; text-align:left;
  border:none; background:transparent; cursor:pointer;
  padding:10px 14px; border-radius:10px;
  font-family:inherit; font-size:14.5px; font-weight:400; color:var(--t2);
}
.rail .tab:hover{ background:var(--sub); color:var(--tx); }
.rail .tab.is-active{
  background:var(--sf); color:var(--tx); font-weight:600; box-shadow:var(--sh1);
}
.rail-pied{
  margin-top:auto; padding:14px 14px 0;
  border-top:1px solid var(--bd); font-size:12.5px;
}

/* ---------- Contenu ---------- */
.content{ flex:1; min-width:0; max-width:1180px; padding:32px 34px 44px; }
.panel{ display:none; }
.panel.is-active{ display:block; animation:fade .2s ease; }
@keyframes fade{ from{ opacity:0; transform:translateY(4px);} to{ opacity:1; transform:none;} }
.panel-head{ display:flex; align-items:center; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.panel-head h2{ font-size:20px; margin:0; }
.period-filter{ display:flex; gap:4px; background:var(--cream); border:1px solid var(--border);
  border-radius:999px; padding:4px; flex-wrap:wrap; }
.pf-btn{ border:none; background:transparent; padding:7px 14px; border-radius:999px;
  cursor:pointer; font-weight:600; color:var(--text-2); font-size:13px; white-space:nowrap; }
.pf-btn:hover{ background:#fff; }
.pf-btn.is-active{ background:var(--accent); color:#fff; }
/*  Idem pour le filtre de période : le blanc par défaut suffit.  */
.month-pick{ display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--text-2); }
.month-pick input{ border:1px solid var(--border); border-radius:10px; padding:7px 10px; font:inherit; font-size:13.5px; background:#fff; color:var(--text); }
.month-pick input:focus{ outline:none; border-color:var(--accent); }
.head-actions{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }

/* ---------- Buttons ---------- */
.btn{ border:1px solid var(--border); background:#fff; color:var(--text);
  padding:9px 16px; border-radius:999px; cursor:pointer; font-weight:600; font-size:13.5px; }
.btn:hover{ border-color:var(--border-soft); background:var(--cream); }
.btn.primary{ background:var(--ink); color:#fff; border-color:var(--ink); }
.btn.primary:hover{ background:#2E2E2E; }
.btn.ghost{ background:transparent; }
.btn.danger{ color:#b3261e; border-color:#f0c9c5; }

/* ---------- Import zone ---------- */
.import-zone{ background:#fff; border:1px dashed var(--border-strong,#B8B2A4);
  border-radius:var(--radius); padding:16px; margin-bottom:18px; }
.import-grid{ display:flex; align-items:center; gap:14px; margin-bottom:10px; flex-wrap:wrap; }
.drop{ display:inline-block; background:var(--cream); border:1px solid var(--border);
  border-radius:10px; padding:10px 16px; cursor:pointer; font-weight:600; font-size:13.5px; }
.or{ color:var(--mauve); font-size:13px; }
#csvPaste{ width:100%; font-family:ui-monospace,Menlo,monospace; font-size:12.5px;
  border:1px solid var(--border); border-radius:10px; padding:10px; resize:vertical; }
.import-foot{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:10px; flex-wrap:wrap; }
.import-foot small{ color:var(--mauve); }

/* ---------- Table ---------- */
.table-wrap{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
table.grid{ width:100%; border-collapse:collapse; font-size:13.5px; }
table.grid th{ text-align:left; padding:11px 14px; background:var(--cream);
  color:var(--text-2); font-weight:700; border-bottom:1px solid var(--border); white-space:nowrap; }
table.grid td{ padding:15px 14px; border-bottom:1px solid var(--border-soft); vertical-align:middle; }
table.grid tr:last-child td{ border-bottom:none; }
table.grid tr:hover td{ background:#fcfbf6; }
.cell-date{ font-weight:700; white-space:nowrap; }
.cell-hour{ white-space:nowrap; color:var(--text-2); }
.cell-surtitre{ color:var(--text-2); }
.cell-nom{ font-weight:600; min-width:160px; }
.cell-detail{ min-width:180px; }
/* Rond de couleur + icône en tête de ligne */
.cell-ico{ width:58px; white-space:nowrap; }
.ev-dot{ display:inline-block; width:14px; height:14px; border-radius:50%; vertical-align:middle;
  box-shadow:0 0 0 1px rgba(0,0,0,.08); margin-right:7px; }
.ev-ic{ display:inline-block; width:22px; height:22px; vertical-align:middle; color:var(--text-2); }
.ev-ic svg{ width:100%; height:100%; display:block; }
/* Cellules éditables en direct */
.ed{ display:inline-block; min-width:32px; border-radius:6px; padding:2px 5px; margin:-2px -5px; cursor:text; }
.ed:hover{ background:var(--cream); box-shadow:inset 0 0 0 1px var(--border); }
.ed:focus{ outline:none; background:#fff; box-shadow:inset 0 0 0 2px var(--accent); }
/* Diffusion (21/09/2026) : une adresse d'étalier vide se lit comme une invite. */
.ed:empty::before{ content:attr(data-vide); color:var(--mu); font-style:italic; }
.notif-email{ min-width:180px; }
.swatch{ display:inline-block; width:12px; height:12px; border-radius:50%; vertical-align:middle; margin-right:5px; }
.pill-mini{ font-size:11px; color:var(--text-2); background:var(--cream);
  border:1px solid var(--border); border-radius:999px; padding:2px 8px; }
.row-actions{ display:flex; gap:6px; justify-content:flex-end; }
.icon-btn{ border:1px solid var(--border); background:#fff; border-radius:8px;
  width:30px; height:30px; cursor:pointer; font-size:14px; line-height:1; }
.icon-btn:hover:not(:disabled){ background:var(--cream); }
.icon-btn.del:hover{ border-color:#f0c9c5; color:#b3261e; }
.empty-state{ padding:40px; text-align:center; color:var(--mauve); }

/* ---------- Forms ---------- */
.form-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:22px; }
.form-card label, .modal-body label{ display:block; font-size:13px; font-weight:600;
  color:var(--text-2); margin-bottom:14px; }
.form-card input, .form-card textarea, .modal-body input, .modal-body select, .modal-body textarea{
  display:block; width:100%; margin-top:5px; padding:9px 11px; font-size:14px;
  border:1px solid var(--border); border-radius:10px; background:#fff; color:var(--text);
  font-family:inherit; }
.form-card input:focus, .modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus,
.form-card textarea:focus{ outline:none; border-color:var(--accent); }
.form-row{ display:flex; gap:14px; flex-wrap:wrap; }
.form-row > label{ flex:1; min-width:160px; }
fieldset{ border:1px solid var(--border-soft); border-radius:12px; padding:14px 16px 2px; margin:0 0 14px; }
legend{ font-size:12px; font-weight:700; color:var(--mauve); text-transform:uppercase; letter-spacing:.05em; padding:0 6px; }
label.check{ display:flex; align-items:center; gap:8px; font-weight:600; }
label.check input{ width:auto; margin:0; }

/* ---------- État de la soirée (toggle modale) ---------- */
.status-field{ margin:4px 0 14px; }
.status-label{ display:block; font-size:13px; font-weight:600; color:var(--text-2); margin-bottom:7px; }
.status-toggle{ display:inline-flex; gap:4px; background:var(--cream);
  border:1px solid var(--border); border-radius:999px; padding:4px; }
.st-btn{ border:none; background:transparent; padding:7px 16px; border-radius:999px;
  cursor:pointer; font-weight:600; color:var(--text-2); font-size:13px; }
.st-btn:hover{ background:#fff; }
.st-btn.is-active{ background:var(--text); color:#fff; }
.st-btn.st-attente.is-active{ background:#475569; }
.st-btn.st-reporte.is-active{ background:#B8860B; }
.st-btn.st-annule.is-active{ background:#b3261e; }
.status-note{ font-size:12px; color:var(--mauve); margin:7px 0 0; }
.recur-note{ font-size:12px; color:var(--text-2); margin:8px 0 0; background:var(--cream);
  border:1px solid var(--border-soft); border-radius:8px; padding:8px 11px; }

/* ---------- Tableau des récurrences (liste admin) ---------- */
.recur-wrap{ margin-top:18px; }
.recur-head{ padding:11px 14px; background:var(--cream); border-bottom:1px solid var(--border);
  font-weight:700; color:var(--text-2); font-size:14px; }
.recur-sub{ font-weight:400; color:var(--mauve); font-size:12px; }

/* ---------- Badges d'état dans la liste ---------- */
.st-tag{ font-size:10px; font-weight:800; padding:2px 7px; border-radius:999px;
  text-transform:uppercase; letter-spacing:.03em; vertical-align:middle; white-space:nowrap; }
.st-tag.st-reporte{ background:#FBEFCB; color:#7a5c00; }
.st-tag.st-annule{ background:#F6D2CE; color:#922019; }
.st-tag.st-actif{ background:#D8EFD3; color:#2f6e29; }
.st-tag.st-attente{ background:#E2E8F0; color:#475569; }
/* Tag neutre (ex. « vous ») : ni reporté, ni annulé, ni actif, ni en attente. */
.st-tag:not(.st-reporte):not(.st-annule):not(.st-actif):not(.st-attente){ background:var(--cream); color:var(--text-2); border:1px solid var(--border); }
.hint{ color:var(--mauve); font-size:13px; margin:-6px 0 16px; }
.lib-hint{ font-weight:400; color:var(--mauve); font-size:11.5px; }

/* ---------- Modale soirée : sélecteur d'icône + couleur ---------- */
.icon-grid{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.icon-tile{ width:42px; height:42px; border:1px solid var(--border); border-radius:10px; background:#fff;
  cursor:pointer; display:grid; place-items:center; color:var(--text-2); font-size:10px; padding:6px; }
.icon-tile svg{ width:100%; height:100%; }
.icon-tile:hover{ border-color:var(--accent); }
.icon-tile.on{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent) inset; color:var(--accent-strong); }
.color-row{ display:flex; align-items:center; gap:8px; margin-top:6px; flex-wrap:wrap; }
.color-swatches{ display:flex; flex-wrap:wrap; gap:6px; }
.swatch-btn{ width:26px; height:26px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px var(--border);
  cursor:pointer; padding:0; }
.swatch-btn.on{ box-shadow:0 0 0 2px var(--accent); }
#colorPicker{ width:40px; height:34px; padding:2px; border:1px solid var(--border); border-radius:8px; background:#fff; cursor:pointer; }
.mini-btn{ padding:6px 12px; font-size:12.5px; }

/* ---------- Onglet Bibliothèque ---------- */
.biblio-block{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; margin-bottom:18px; }
.biblio-block h3{ margin:0 0 4px; font-size:16px; }
.add-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:12px 0 4px; }
.add-row input[type=text]{ flex:1; min-width:180px; padding:9px 11px; border:1px solid var(--border); border-radius:10px; font:inherit; }
.add-row input[type=color]{ width:46px; height:38px; padding:2px; border:1px solid var(--border); border-radius:8px; background:#fff; cursor:pointer; }
.add-icon{ margin:12px 0 4px; }
.add-icon input[type=text]{ width:100%; padding:9px 11px; border:1px solid var(--border); border-radius:10px; font:inherit; margin-bottom:8px; }
.add-icon textarea{ width:100%; font-family:ui-monospace,Menlo,monospace; font-size:12px; border:1px solid var(--border); border-radius:10px; padding:10px; resize:vertical; }
.add-icon-foot{ display:flex; align-items:center; gap:12px; margin-top:8px; }
.icon-preview{ width:40px; height:40px; border:1px solid var(--border); border-radius:10px; display:grid; place-items:center; color:var(--text); padding:6px; }
.icon-preview svg{ width:100%; height:100%; }
.swatch-list{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.swatch-item{ display:flex; align-items:center; gap:10px; }
.swatch-item .sw{ width:24px; height:24px; border-radius:50%; box-shadow:0 0 0 1px var(--border); }
.swatch-item .sw-lbl{ font-weight:600; }
.swatch-item .sw-hex{ color:var(--mauve); font-size:12px; font-family:ui-monospace,Menlo,monospace; }
.swatch-item .del{ margin-left:auto; }
.icon-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-top:14px; }
.icon-item{ display:flex; align-items:center; gap:9px; border:1px solid var(--border-soft); border-radius:10px; padding:8px 10px; }
.icon-item .ic-prev{ width:30px; height:30px; flex:none; display:grid; place-items:center; color:var(--text); }
.icon-item .ic-prev svg{ width:100%; height:100%; }
.icon-item .ic-lbl{ font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.icon-item .del{ margin-left:auto; flex:none; }
tr.row-annule .cell-nom{ text-decoration:line-through; text-decoration-color:#b3261e80; }
tr.row-annule td{ opacity:.72; }

/* ---------- Cards (outils) ---------- */
.cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; }
.tool-card{ display:block; background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:22px; text-decoration:none; color:inherit; transition:.15s; }
.tool-card:hover{ border-color:var(--accent); box-shadow:var(--shadow); }
.tool-card h3{ margin:0 0 8px; font-size:17px; }
.tool-card p{ margin:0 0 14px; color:var(--text-2); font-size:13.5px; line-height:1.5; }
.chip{ display:inline-block; background:var(--cream); border:1px solid var(--border);
  border-radius:999px; padding:6px 14px; font-size:12.5px; font-weight:600; color:var(--accent-strong); }

/* ---------- Modal ---------- */
.modal-backdrop{ position:fixed; inset:0; background:rgba(20,18,15,.45);
  display:grid; place-items:center; z-index:50; padding:18px; }
.modal{ background:#fff; border-radius:18px; width:min(560px,100%); max-height:92vh;
  overflow:auto; box-shadow:0 30px 80px -30px rgba(0,0,0,.5); }
.modal-head{ display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; border-bottom:1px solid var(--border-soft); position:sticky; top:0; background:#fff; }
.modal-head h3{ margin:0; font-size:18px; }
.modal-close{ border:none; background:transparent; font-size:26px; line-height:1; cursor:pointer; color:var(--mauve); }
.modal-body{ padding:20px 22px; }
.modal-foot{ display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }

/* ---------- Toast ---------- */
.toast{ position:fixed; bottom:24px; left:50%; transform:translateX(-50%);
  background:var(--ink); color:#fff; padding:12px 20px; border-radius:999px; font-size:13.5px;
  box-shadow:var(--shadow); z-index:60; }
.toast.err{ background:#b3261e; }

@media (max-width:640px){
  .halle-switch{ order:3; width:100%; margin:8px 0 0; justify-content:center; }
  .topbar{ flex-wrap:wrap; }
  table.grid .hide-sm{ display:none; }
}

/* Étiquette des retransmissions dans la liste (D087). Bleu, pour trancher
   avec les étiquettes de statut qui utilisent le jaune et le rouge. */
.st-tag.st-sport{
  background:#2541B2; color:#fff;
  font-size:11px; font-weight:700; letter-spacing:.04em;
  padding:2px 8px; border-radius:100px; white-space:nowrap;
}

/* Le bloc « La rencontre » de la modale, visuellement détaché du reste. */
#sportFields{
  border:1px solid rgba(37,65,178,.35); border-radius:10px;
  padding:14px 16px 6px; margin:4px 0 14px; background:rgba(37,65,178,.04);
}
#sportFields legend{
  font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; color:#2541B2; padding:0 6px;
}

/* ============================================================
   ÉTALIERS (lot 3)
   ============================================================ */

/* Une fiche non publiée est visible dans la liste mais visuellement en
   retrait : on doit voir d'un coup d'œil ce qui est en ligne. */
.row-brouillon td{ opacity:.62; }

.pub-toggle{
  font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:5px 11px; border-radius:100px; cursor:pointer;
  border:1.5px solid #b9b9b9; background:transparent; color:#777;
  transition:background .15s, color .15s, border-color .15s;
}
.pub-toggle:hover{ border-color:#666; color:#333; }
.pub-toggle.is-on{ background:#1f9d55; border-color:#1f9d55; color:#fff; }

/* ---- Zone photo de la modale ---- */
.photo-zone{ display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.photo-apercu{
  width:140px; height:105px; flex:none; border-radius:10px; overflow:hidden;
  background:#ececec; border:1px solid #d5d5d5;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:#888; text-align:center; padding:6px;
}
.photo-apercu img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ---- Galerie de la fiche étalier — 01/09/2026 ----
   La colonne `galerie_json` et son API existaient depuis le lot 3 ; il
   manquait l'écran pour les remplir.

   Les vignettes sont en 3/4 : c'est le format dans lequel le site public les
   affichera. Les montrer ici au format d'arrivée évite la mauvaise surprise
   du recadrage découvert après coup.                                       */
.galerie-grille{
  display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 12px;
}
.galerie-vignette{
  position:relative; margin:0;
  width:96px; aspect-ratio:3/4;
  border-radius:10px; overflow:hidden;
  background:#ececec; border:1px solid #d5d5d5;
}
.galerie-vignette img{ width:100%; height:100%; object-fit:cover; display:block; }

/*  Les commandes restent visibles en permanence, sans survol : cet écran
    sert aussi depuis un téléphone, où le survol n'existe pas.             */
.galerie-actions{
  position:absolute; left:0; right:0; bottom:0;
  display:flex; justify-content:center; gap:2px;
  padding:3px 2px; background:rgba(0,0,0,.55);
}
.galerie-btn{
  border:0; background:transparent; color:#fff;
  font-size:11px; line-height:1; padding:3px 5px;
  cursor:pointer; border-radius:4px;
}
.galerie-btn:hover:not(:disabled){ background:rgba(255,255,255,.22); }
.galerie-btn:disabled{ opacity:.3; cursor:default; }
.galerie-del:hover{ background:#c0392b; }

.galerie-compte{
  font-size:12px; color:#888; margin-left:10px;
}

/* ---- Cases à cocher des tags ---- */
.tag-grid{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:6px; }
.tag-check{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; font-weight:400; cursor:pointer; white-space:nowrap;
}
.tag-check input{ margin:0; }

/* ---- Grille des horaires ---- */
.horaires-grid{ display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.horaire-row{
  display:grid; grid-template-columns:96px 1fr 1fr; gap:8px; align-items:center;
}
.horaire-row .hj{ font-size:13px; color:#666; }
.horaire-row input{ width:100%; }
@media(max-width:560px){
  .horaire-row{ grid-template-columns:70px 1fr 1fr; gap:6px; }
  .horaire-row input{ font-size:13px; }
}

/* L'aperçu recadre comme le site, sinon il ne veut rien dire. */
.photo-apercu img{ object-fit:cover; }

/* ---------- Onglet Site (lot 4) ---------- */
/*  Les six entités éditoriales partagent un panneau. On les distingue par
    une seconde rangée d'onglets, volontairement plus discrète que la
    première : ce sont des sous-sections, pas des sections.               */
.sous-onglets{
  display:flex; gap:6px; flex-wrap:wrap;
  margin:0 0 16px; padding:5px;
  background:var(--cream); border:1px solid var(--border); border-radius:999px;
}
.sous-onglet{
  border:none; background:transparent; padding:7px 15px; border-radius:999px;
  cursor:pointer; font-weight:600; font-size:13px; color:var(--text-2);
  white-space:nowrap;
}
.sous-onglet:hover{ background:#fff; }
.sous-onglet.is-active{ background:#fff; color:var(--text); box-shadow:0 1px 2px rgba(0,0,0,.08); }

/*  Les statistiques d'avis : une fiche unique, éditée à même le panneau
    plutôt que dans une modale — il n'y en a qu'une, l'ouvrir n'apporterait
    rien.                                                                 */
.stats-form{
  max-width:640px; margin-top:12px; padding:18px;
  background:var(--cream); border:1px solid var(--border); border-radius:10px;
}
.stats-form .form-row{ margin-bottom:12px; }

/*  Dans la modale Site, l'aperçu sert aussi aux PDF : le nom du fichier
    s'affiche alors à la place de la vignette.                            */
#edFields .photo-apercu span{
  padding:0 12px; font-size:12.5px; color:var(--text-2);
  word-break:break-all; text-align:center;
}

/* ---------- Onglet Site · les envois des visiteurs (lot 5) ---------- */
/*  Un séparateur discret entre ce que TU publies (à gauche) et ce que
    les visiteurs T'ENVOIENT (à droite). Ce ne sont pas les mêmes gestes :
    l'un se rédige, l'autre se traite.                                  */
.sous-onglets-sep{
  width:1px; align-self:stretch; margin:2px 6px;
  background:var(--border);
}

/*  Un message jamais ouvert. Le liseré à gauche suffit : une ligne
    entièrement colorée rendrait la liste illisible dès dix messages.   */
.row-nouveau td:first-child{ box-shadow:inset 3px 0 0 var(--accent); }
.row-nouveau .cell-nom{ font-weight:700; }

/*  Les champs en lecture seule de la modale : le contenu reçu.
    Volontairement sans cadre de saisie — on doit voir au premier coup
    d'œil ce qui se modifie et ce qui ne se modifie pas.                */
.champ-lecture{ margin-bottom:14px; }
.champ-lecture-label{
  display:block; margin-bottom:4px;
  font-size:11px; font-weight:600; text-transform:uppercase;
  letter-spacing:.06em; color:var(--text-2);
}
.champ-lecture-valeur{
  padding:9px 12px; background:var(--cream);
  border:1px solid var(--border); border-radius:8px;
  font-size:14px; line-height:1.55; white-space:pre-wrap; word-break:break-word;
}
.champ-lecture-valeur a{ color:var(--accent); }

/* Un événement dont l'heure de début manque. Discret mais repérable :
   la liste en compte 28 après l'import du calendrier 2026-2027, et il
   faudra y revenir quand les diffuseurs annonceront les coups d'envoi. */
.heure-absente{
  font-size:11.5px; font-style:italic; color:var(--mauve);
  border-bottom:1px dotted var(--mauve);
}

/* =========================================================================
   ONGLET RETOURS — lot 7 · 29/08/2026
   Fréquentation, messages, abonnés.
   ========================================================================= */

/*  Les compteurs du tableau de bord. Ce sont des boutons et pas des cartes :
    chacun mène à sa liste, et un chiffre qu'on ne peut pas ouvrir oblige à
    retraverser le menu pour voir ce qu'il compte.                          */
.ret-chiffres{
  display:grid; gap:12px; margin-bottom:8px;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
}
.ret-chiffre{
  display:flex; flex-direction:column; gap:3px; text-align:left;
  padding:16px 18px;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  font:inherit; color:inherit;
}
/*  Seuls les compteurs qui mènent quelque part se comportent comme des
    boutons. Le total de fréquentation, lui, n'est qu'un encadré : lui donner
    un curseur de main promettrait un clic qui ne fait rien.                */
.ret-chiffre[data-vue]{ cursor:pointer; }
.ret-chiffre[data-vue]:hover{ border-color:var(--accent); }
.ret-valeur{ font-size:30px; font-weight:700; line-height:1.1; }
.ret-label{ font-size:13.5px; font-weight:600; color:var(--text-2); }
.ret-aide{ font-size:12px; color:var(--mauve); }

/*  Un compteur qui attend une action se signale par sa couleur, pas par un
    point rouge de plus : le chiffre EST l'alerte.                          */
.ret-chiffre.is-alerte{ border-color:var(--accent); background:var(--cream); }
.ret-chiffre.is-alerte .ret-valeur{ color:var(--accent-strong); }

/*  ---- Les styles de la fréquentation ont été retirés le 10/09/2026 ----

    `.ret-periode`, `.ret-carte`, `.ret-colonnes`, `.ret-barre*`, `.ret-rang`,
    `.graphique` et les `.gr-*` ne servaient qu'à l'écran de fréquentation de
    l'onglet Retours, parti dans Statistiques. Plus une seule de ces classes
    n'est produite, ni par index.html ni par admin.js.

    ⚠️ `.ret-periode` MÉRITE UNE MENTION. C'était le seul groupe de
       sous-onglets branché par CLASSE de conteneur et non par identifiant :
       n'importe quel autre onglet qui reprenait ce nom voyait ses boutons
       câblés sur la fréquentation. L'onglet Statistiques a dû s'en garder.
       Le piège n'existe plus.

    `.ret-chiffres` et `.ret-chiffre` RESTENT plus haut : le tableau de bord
    de la Messagerie s'en sert toujours.                                    */


/* ============================================================
   ONGLET CARTE — lot 11 · 02/09/2026
   ------------------------------------------------------------
   Deux colonnes : l'ossature à gauche (les familles et leurs
   rubriques, qu'on touche rarement), les articles à droite
   (qu'on touche tous les jours).
   ============================================================ */

.ct-colonnes {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
/* En dessous, les deux colonnes se superposent : l'ossature d'abord,
   puis les articles. Un ordinateur portable de 13 pouces passe encore
   en deux colonnes ; une tablette, non. */
@media (max-width: 900px) {
  .ct-colonnes { grid-template-columns: minmax(0, 1fr); }
}

.ct-ossature {
  border: 1px solid var(--line, #e3e3e3);
  border-radius: 10px;
  padding: 12px;
  /* Elle suit le défilement : la liste des articles est longue, et on
     change de rubrique en cours de route. */
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.ct-ossature-head,
.ct-articles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ct-ossature-head h3,
.ct-articles-head h3 { margin: 0; font-size: 15px; }

.btn-mini { padding: 5px 10px; font-size: 12px; }

.ct-famille { margin-bottom: 12px; }

.ct-famille-titre {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #7a7a7a;
  padding: 4px 0;
}
.ct-famille-titre .ct-nom { flex: 1; cursor: text; }

.ct-rubriques { list-style: none; margin: 2px 0 0; padding: 0; }

.ct-rubrique {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
}
.ct-rubrique:hover { background: rgba(0, 0, 0, .04); }
.ct-rubrique.is-active { background: rgba(0, 0, 0, .07); font-weight: 600; }
.ct-rubrique .ct-nom { flex: 1; }
.ct-rubrique .ct-compte { font-size: 12px; color: #8a8a8a; }

/* Une ligne masquée reste lisible : elle n'est pas barrée, elle est pâle.
   Barrer dirait « supprimé », et c'est justement ce qu'elle n'est pas. */
.ct-masque { opacity: .45; }

/* Les petites actions d'une ligne d'ossature : renommer, masquer,
   monter, descendre, supprimer. Discrètes jusqu'au survol — cinq icônes
   en permanence sur vingt-deux lignes feraient un mur. */
.ct-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.ct-famille-titre:hover .ct-actions,
.ct-rubrique:hover .ct-actions,
.ct-actions:focus-within { opacity: 1; }

.ct-actions button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1;
  color: #666;
}
.ct-actions button:hover { background: rgba(0, 0, 0, .09); color: #111; }

/* Les prix, dans le tableau des articles : à chasse fixe, pour que la
   colonne se lise en diagonale. */
.ct-prix-cellule {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ct-prix-cellule .ct-lib {
  color: #8a8a8a;
  font-size: 12px;
  margin-right: 3px;
}

.ct-prix-champs {
  border: 1px solid var(--line, #e3e3e3);
  border-radius: 9px;
  padding: 12px 14px 6px;
  margin: 4px 0 12px;
}
.ct-prix-champs legend { font-size: 13px; font-weight: 700; padding: 0 6px; }

/* =========================================================================
   ONGLET STATISTIQUES — 09/09/2026

   ⚠️ AUCUNE CLASSE `ret-*` N'EST REDÉFINIE ICI. L'onglet réemploie telles
      quelles `.ret-carte`, `.ret-chiffres`, `.ret-chiffre`, `.ret-barre`,
      `.ret-colonnes`, `.graphique` et `.gr-*` — elles ne portent que du
      dessin, aucun écouteur.

      La seule exception est `.ret-periode`, qui EST branchée en JavaScript
      par classe de conteneur (`$$('.ret-periode .sous-onglet')`). La
      réutiliser câblerait nos boutons sur l'onglet Retours. `.st-periode`
      ci-dessous en recopie donc les cinq lignes sous un autre nom : c'est
      une duplication assumée, et elle est moins chère qu'un onglet qui en
      casse un autre.
   ========================================================================= */

.st-barre{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:16px;
}
.st-periode{
  display:inline-flex; flex-wrap:wrap; gap:6px; padding:5px;
  background:var(--cream); border:1px solid var(--border); border-radius:999px;
}
.st-barre .status-note{ margin:0; }

/*  Le rail des rapports.

    Une colonne à gauche plutôt qu'une barre de sous-onglets horizontale :
    à sept rapports, la barre déborde sur un portable et les derniers
    deviennent invisibles. Sous 860 px elle redevient une barre qui défile,
    ce qui est le comportement le moins mauvais sur un écran étroit.        */
.st-layout{ display:grid; grid-template-columns:196px 1fr; gap:22px; align-items:start; }
.st-rail{
  position:sticky; top:14px; padding:8px;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
}
.st-rail-titre{
  padding:9px 12px 5px; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.06em; color:var(--mauve);
}
.st-rail .sous-onglet{
  display:block; width:100%; text-align:left; border-radius:10px;
  padding:9px 12px; white-space:nowrap;
}
.st-rail .sous-onglet.is-active{ box-shadow:inset 3px 0 0 var(--accent); }

@media (max-width:860px){
  .st-layout{ grid-template-columns:1fr; }
  .st-rail{ position:static; display:flex; gap:6px; overflow-x:auto; }
  .st-rail-titre{ display:none; }
  .st-rail .sous-onglet{ width:auto; }
}

/* ---------- Statistiques : cartes, compteurs, graphiques, tableau -------- */
/*  Tout est préfixé `st-`. Rien ne redéfinit une classe `ret-*` : les deux
    onglets vivent côte à côte sans se marcher dessus.                      */

.st-carte{
  padding:18px 20px 16px; margin-bottom:16px;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
}
.st-carte h3{ margin:0 0 4px; font-size:14px; }
.st-carte-tete{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.st-carte-tete h3{ margin:0; }
.st-colonnes{ display:grid; gap:16px; margin-bottom:16px;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.st-colonnes .st-carte{ margin-bottom:0; }

.st-chiffres{ display:grid; gap:12px; margin-bottom:16px;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.st-chiffre{ display:flex; flex-direction:column; gap:3px; padding:15px 17px;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius); }
.st-valeur{ font-size:29px; font-weight:700; line-height:1.1; font-variant-numeric:tabular-nums; }
.st-label{ font-size:13px; font-weight:600; color:var(--text-2); }
.st-aide{ font-size:11.5px; color:var(--mauve); }
.st-delta{ font-size:12px; font-weight:700; }
.st-delta.up{ color:#2F8F2A; } .st-delta.down{ color:#b3261e; } .st-delta.flat{ color:var(--mauve); }

.st-dates{ display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-2); }
.st-dates input{ border:1px solid var(--border); border-radius:9px; padding:6px 9px;
  font:inherit; font-size:12.5px; background:#fff; color:var(--text); }
.st-dates input:focus{ outline:none; border-color:var(--accent); }
.st-compare{ display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-2); }
.st-metriques{ margin-bottom:14px; }

/*  Les axes et le survol.

    ⚠️ L'axe des ordonnées est une colonne de texte posée À CÔTÉ du SVG, et
       non dedans : le viewBox est étiré en largeur, un texte à l'intérieur
       serait déformé et un point rond deviendrait un ovale.               */
.st-zone{ display:flex; gap:9px; }
.st-y{ flex:0 0 44px; display:flex; flex-direction:column; justify-content:space-between;
  text-align:right; font-size:10.5px; color:var(--mauve);
  font-variant-numeric:tabular-nums; line-height:1; }
.st-plot{ position:relative; flex:1; min-width:0; }
.st-graphique{ display:block; width:100%; height:170px; overflow:visible; }
.st-grille{ stroke:var(--border-soft); stroke-width:1; vector-effect:non-scaling-stroke; }
.st-aplat{ fill:var(--accent); opacity:.15; }
.st-ligne{ fill:none; stroke:var(--accent-strong); stroke-width:2; }
.st-ligne.compare{ stroke:var(--mauve); stroke-dasharray:3 3; stroke-width:1.5; opacity:.85; }
.st-barreau{ fill:var(--accent); transition:fill .1s; }
.st-barreau.is-vise{ fill:var(--accent-strong); }
.st-x{ display:flex; justify-content:space-between; margin:7px 0 0 53px;
  font-size:10.5px; color:var(--mauve); font-variant-numeric:tabular-nums; }
.st-x--colonnes span{ flex:1; text-align:center; }
.st-legende{ display:flex; gap:16px; font-size:11.5px; color:var(--mauve); margin:8px 0 0 53px; }
.st-legende i{ display:inline-block; width:14px; height:3px; vertical-align:middle;
  margin-right:5px; background:var(--accent-strong); }
.st-legende i.pointille{ background:var(--mauve); }

/*  La zone de capture couvre tout le dessin et vient APRÈS la bulle dans le
    DOM : sinon la bulle passant sous le curseur déclencherait un mouseleave
    et le graphique clignoterait.                                          */
.st-survol{ position:absolute; inset:0; cursor:crosshair; }
.st-guide{ position:absolute; top:0; bottom:0; width:1px; margin-left:-.5px;
  background:var(--mauve); opacity:.5; pointer-events:none; display:none; }
.st-point{ position:absolute; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%;
  background:var(--accent-strong); border:2px solid #fff; box-sizing:border-box;
  pointer-events:none; display:none; box-shadow:0 1px 4px rgba(0,0,0,.35); }
.st-point.prec{ background:var(--mauve); }
.st-bulle{ position:absolute; display:none; pointer-events:none; z-index:4;
  background:var(--ink); color:#fff; border-radius:9px; padding:8px 11px;
  font-size:12px; line-height:1.45; white-space:nowrap;
  box-shadow:0 8px 22px -8px rgba(0,0,0,.55); }
.st-bulle b{ font-size:15px; }
.st-bulle .sec{ color:#B9B4AC; font-size:11px; }

/*  La météo sous la courbe (16/10/2026). Une case par jour, posée au même x
    que le point de la courbe : `left` en %, centrée par translateX. La
    marge de 53 px est celle de `.st-x` : l'axe des ordonnées et son écart.
    Couleurs en teintes claires, trait foncé — pas d'aplat (voir les notes
    des matchs, « trop marqué »).                                         */
.st-meteo{ position:relative; margin:8px 0 0 53px; }
.st-meteo--complet{ height:34px; }
.st-meteo--icone{ height:18px; }
.st-meteo--bande{ height:10px; }
.st-meteo-j{ position:absolute; top:0; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:1px 2px 2px; border-radius:6px; box-sizing:border-box;
  font-family:var(--police-donnees); font-size:10px; line-height:1;
  color:var(--t2); font-variant-numeric:tabular-nums; }
.st-meteo-j.is-vise{ background:var(--sub); color:var(--tx); }
.st-meteo--icone .st-meteo-j{ padding:0; }
.st-meteo-j svg.mt{ display:block; width:18px; height:18px; }
.st-meteo--icone .st-meteo-j svg.mt{ width:16px; height:16px; }
.st-meteo--bande .st-meteo-j{ height:10px; padding:0; border-radius:0;
  border-left:1px solid var(--sf); }
.st-meteo--bande .st-meteo-j.is-vise{ outline:1.5px solid var(--tx); outline-offset:0; z-index:1; }
.st-meteo-note{ display:flex; flex-wrap:wrap; gap:4px 14px; margin:6px 0 0 53px;
  font-size:11px; color:var(--mauve); }
.st-meteo-note i{ display:inline-block; width:10px; height:10px; border-radius:2px;
  margin-right:5px; vertical-align:-1px; }

svg.mt{ overflow:visible; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.mt-sol{ fill:#FCEBB0; stroke:#C98A00; }
.mt-rayon{ fill:none; stroke:#C98A00; }
.mt-nuage{ fill:#F1F3F5; stroke:#7D858C; }
.mt-eau{ fill:none; stroke:#2F74D0; }
.mt-eclair{ fill:#F6CF4A; stroke:#B07A00; stroke-width:1.1; }
.mt-brume{ fill:none; stroke:#8C939A; }
.mt-neige{ fill:#7FAEE6; stroke:none; }

/*  La bande des longues périodes : une teinte par temps, du plus sec au
    plus mouillé. La légende reprend les mêmes classes.                    */
.b-soleil{ background:#F7DE85; }
.b-eclaircies{ background:#F4EACB; }
.b-nuages{ background:#DDE1E5; }
.b-brouillard{ background:#E9EBED; }
.b-averses{ background:#C6DBF5; }
.b-pluie{ background:#8FB7EA; }
.b-orage{ background:#7E95D6; }
.b-neige{ background:#EAF3FC; box-shadow:inset 0 0 0 1px #C6DBF5; }

/*  Le tableau. La barre de part est un fond posé DERRIÈRE le texte, et non
    une colonne à côté : les chemins de page sont longs, une barre qui leur
    volerait la moitié de la largeur les rendrait illisibles.              */
.st-filtres{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.st-recherche input{ border:1px solid var(--border); border-radius:999px; padding:7px 14px;
  font:inherit; font-size:13px; background:#fff; min-width:190px; }
.st-recherche input:focus{ outline:none; border-color:var(--accent); }
.st-col{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px;
  background:var(--cream); border:1px solid var(--border); border-radius:999px;
  font-size:12.5px; cursor:pointer; color:var(--text-2); }

table.st-grid th{ text-align:left; font-size:11.5px; text-transform:uppercase;
  letter-spacing:.04em; color:var(--mauve); font-weight:700;
  padding:0 0 9px; border-bottom:1px solid var(--border); }
table.st-grid th.num, table.st-grid td.num{ text-align:right; font-variant-numeric:tabular-nums; }
table.st-grid th button{ border:none; background:transparent; cursor:pointer; padding:0;
  font:inherit; color:inherit; text-transform:inherit; letter-spacing:inherit; }
table.st-grid th button:hover{ color:var(--text-2); }
table.st-grid th .fleche{ opacity:0; margin-left:4px; }
table.st-grid th.tri .fleche{ opacity:1; color:var(--accent-strong); }
table.st-grid td{ padding:9px 0; border-bottom:1px solid var(--border-soft); }
table.st-grid td:not(:first-child), table.st-grid th:not(:first-child){ padding-left:14px; }
table.st-grid tbody tr:hover{ background:var(--cream); }
table.st-grid tr.is-vide{ opacity:.55; }

/*  ⚠️ LES LARGEURS SONT FIXÉES, ET C'EST NÉCESSAIRE. Sans elles, la colonne
    des chemins prend toute la place disponible et repousse les trois
    colonnes de chiffres contre le bord droit : sur un écran large, l'œil ne
    fait plus le lien entre un nom à gauche et son nombre à un demi-mètre de
    là. `table-layout:fixed` empêche aussi une adresse très longue d'élargir
    la table au-delà de sa carte.                                          */
/*  ⚠️ `min-width` EST INDISPENSABLE AVEC `table-layout:fixed`. Les quatre
    colonnes fixes pèsent 292 px : sur un téléphone de 320 px, la colonne des
    chemins tombait à zéro et le tableau était rogné sans défilement. Le
    `min-width` force `.table-wrap` à défiler horizontalement plutôt qu'à
    écraser la seule colonne lisible.                                       */
table.st-grid{ table-layout:fixed; min-width:520px; }

/*  ⚠️ ET IL FAUT AUTORISER LE DÉFILEMENT. `.table-wrap` est en
    `overflow:hidden` pour tout le projet (l. 91) : avec le `min-width`
    ci-dessus, le tableau serait ROGNÉ au lieu de défiler — pire que le
    défaut qu'on répare. On ne surcharge que dans cet onglet, pour ne rien
    changer aux tableaux des autres.                                        */
[data-panel="stats"] .table-wrap{ overflow-x:auto; }
table.st-grid th:first-child, table.st-grid td:first-child{ width:38px; }
table.st-grid th:nth-child(3), table.st-grid td:nth-child(3){ width:92px; }
table.st-grid th:nth-child(4), table.st-grid td:nth-child(4){ width:70px; }
table.st-grid th:nth-child(5), table.st-grid td:nth-child(5){ width:92px; }

.st-rang{ color:var(--mauve); font-weight:700; font-size:12px;
  font-variant-numeric:tabular-nums; }

/*  La barre de part est un fond posé DERRIÈRE le nom. Elle est volontairement
    discrète : à 60 % de part, une barre trop marquée écrase visuellement
    tout le reste du tableau et on ne lit plus que la première ligne.      */
.st-cle{ position:relative; display:block; padding:4px 8px; border-radius:6px;
  overflow:hidden; min-width:0; }
.st-part-fond{ position:absolute; inset:0 auto 0 0; background:var(--accent);
  opacity:.13; border-radius:6px; }
.st-cle a{ position:relative; color:var(--text); text-decoration:none; font-weight:600;
  display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.st-cle a:hover{ text-decoration:underline; text-decoration-color:var(--accent); }

/*  Le classement compact des cartes de synthèse. */
.st-rang-ligne{
  position:relative; display:flex; align-items:center; gap:10px;
  padding:9px 12px; margin-bottom:5px;
  background:#fff; border:1px solid var(--border-soft); border-radius:8px;
  font-size:13px; overflow:hidden;
}
.st-rang-fond{ position:absolute; inset:0 auto 0 0; background:var(--accent); opacity:.16; }
.st-rang-nom{ position:relative; flex:1; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.st-rang-val{ position:relative; font-weight:700; font-variant-numeric:tabular-nums; }

.st-solo-tete{ display:flex; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.st-solo-tete h3{ margin:0; font-size:17px; }

/*  À l'impression : on ne garde que le contenu de l'onglet.

    ⚠️ TOUT EST PRÉFIXÉ PAR `[data-panel="stats"]` SAUF LA BARRE DU HAUT.
       Sans ce cadrage, la règle s'appliquait à TOUS les onglets : imprimer
       une fiche étalier ou la carte perdait aussi ses commandes.
    ⚠️ `.st-barre` désigne la barre d'outils, et elle seule. Le classement
       emploie `.st-rang-ligne` — le confondre revenait à imprimer deux
       cartes vides.                                                        */
@media print{
  .topbar, .tabs, #toast{ display:none !important; }
  [data-panel="stats"] .st-rail,
  [data-panel="stats"] .head-actions,
  [data-panel="stats"] .st-barre,
  [data-panel="stats"] .st-filtres,
  [data-panel="stats"] #stSoloRetour{ display:none !important; }
  [data-panel="stats"] .st-layout{ grid-template-columns:1fr; }
  [data-panel="stats"] .st-carte,
  [data-panel="stats"] .st-chiffre{ break-inside:avoid; }
}

/* ---------- Onglet Agenda : trois blocs empilés — 10/09/2026 ------------ */
/*  Le lien vers l'agenda public, les infos générales de la halle et la
    bibliothèque partagent un onglet. Un titre les sépare, sans en faire des
    sous-onglets : trois blocs qu'on lit à la suite valent mieux que trois
    clics pour les atteindre.                                              */
.agenda-titre{
  margin:34px 0 14px; padding-top:22px;
  border-top:1px solid var(--border);
  font-size:15px;
}
.agenda-titre:first-of-type{ margin-top:26px; }
.agenda-titre-ligne{ display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; }
.agenda-titre-ligne .agenda-titre{ flex:1; }

/* ---------- Deux métiers dans une seule modale — 10/09/2026 ------------- */
/*  Le programmateur choisit les matchs pour les deux halles ; le créateur de
    contenu écrit l'annonce de la sienne. Ils ouvrent le MÊME formulaire, et
    ce sont ces deux règles qui leur disent où ils sont.

    ⚠️ ON VERROUILLE, ON NE MASQUE PAS. Le créateur de contenu doit LIRE la
       date, l'heure et l'affiche — c'est ce qu'il annonce. Les cacher
       l'obligerait à ouvrir un autre onglet pour savoir de quoi il parle.

    ⚠️ LE GRISÉ N'EST PAS LA SÉCURITÉ, IL LA RACONTE. Ce qui empêche
       réellement d'écrire, c'est `readOnly` / `disabled` posé par
       `appliquerMode()`, et surtout le fait que `saveEvent()` n'envoie que
       `reglages[halle]` en mode créateur. Une feuille de style désactivée
       ne rouvre donc rien.                                                */
.mode-note{
  margin:0 0 16px; padding:9px 12px;
  border-left:3px solid var(--accent);
  background:var(--border-soft); border-radius:0 8px 8px 0;
  font-size:12.5px; color:var(--text-2); line-height:1.5;
}
.mode-note strong{ color:var(--text); }

label.est-verrouille{ color:var(--mauve); }
label.est-verrouille input,
label.est-verrouille select,
label.est-verrouille textarea{
  background:var(--bone); border-color:var(--border-soft);
  color:var(--text-2); cursor:default;
}
/*  Firefox rend `readOnly` sans le moindre signe : sans ce complément, le
    champ paraît saisissable et la frappe n'y laisse rien. Le curseur est le
    seul indice qu'on puisse donner avant le clic.  */
label.est-verrouille input:focus,
label.est-verrouille select:focus,
label.est-verrouille textarea:focus{ outline-color:var(--mauve); }


/* =========================================================================
   REPRISE — 10/09/2026
   -------------------------------------------------------------------------
   Ce qui précède est la feuille de l'outil Agenda, arrivée telle quelle. Les
   alias du socle lui ont déjà donné la nouvelle palette ; ce bloc reprend les
   pièces que la refonte redessine vraiment — titres, pastilles, boutons,
   tableaux, champs, modales.

   ⚠️ IL EST EN FIN DE FICHIER, ET C'EST CE QUI LE FAIT GAGNER. Les
      sélecteurs y sont volontairement IDENTIQUES à ceux du haut : à
      spécificité égale, c'est le dernier qui l'emporte. Les déplacer plus
      haut les rendrait inopérants sans le moindre message d'erreur.
   ========================================================================= */

/* ---------- Titres d'écran ---------- */
.panel-head{ align-items:flex-start; gap:16px; margin-bottom:22px; }
.panel-head h2{
  font-size:28px; font-weight:600; letter-spacing:-.025em; line-height:1.15; margin:0;
}
/*  Le nom de la halle est un complément, pas le titre : il passe en second
    plan plutôt que de doubler la taille du titre.  */
.panel-head h2 span{ font-weight:400; color:var(--t2); }
.head-actions{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; padding-top:4px; }

/* ---------- Onglets et filtres : des BOUTONS, pas un segment ------------- */
/*  ⚠️ CORRIGÉ LE 10/09/2026. Ils étaient soudés dans un bandeau gris, à la
       manière du sélecteur de halle. La maquette ne les traite pas pareil, et
       la distinction n'est pas décorative :

       — le SÉLECTEUR DE HALLE est un segment (conteneur `--sub`, pastilles
         collées) parce qu'on y choisit UN état parmi trois, exclusifs, et que
         le groupe compte autant que le choix ;
       — les FILTRES et les SOUS-ONGLETS sont des boutons séparés, blancs,
         espacés, parce qu'ils ouvrent chacun une vue.

       D'où : ici pas de conteneur, et chaque bouton porte sa propre surface.  */
.period-filter, .st-periode, .sous-onglets{
  background:transparent; border:none; border-radius:0; padding:0; gap:8px;
}
/*  ⚠️ NI OMBRE NI BORDURE. Relevé dans la maquette (bloc 1b) :

      <span style="font-size:13px;font-weight:500;color:var(--t2);
                   background:var(--sf);border-radius:var(--rp);
                   padding:8px 15px;">Mois précédent</span>

    Du blanc posé sur le fond gris, rien d'autre. L'ombre `--sh1` y est
    réservée aux BOUTONS D'ACTION (Exporter, Importer, + Nouvelle soirée) :
    c'est ce qui les distingue d'un filtre. En la donnant aussi aux filtres,
    on effaçait la distinction — et on obtenait dix reliefs sur une page qui
    n'en veut que trois.  */
.pf-btn, .sous-onglet{
  font-family:inherit; font-size:13px; font-weight:500; color:var(--t2);
  background:var(--sf); border:none; box-shadow:none;
  padding:8px 15px; border-radius:var(--rp); cursor:pointer; white-space:nowrap;
}
.pf-btn:hover, .sous-onglet:hover{ background:var(--sub); color:var(--tx); }

/*  L'actif porte l'accent DOUX et garde son texte foncé. Un aplat d'accent
    plein ferait trois aplats de couleur sur la même ligne que le sélecteur de
    halle et le bouton principal : l'œil ne saurait plus lequel est l'action. */
.pf-btn.is-active, .sous-onglet.is-active{
  background:var(--acs); color:var(--tx); font-weight:600;
  border:none; box-shadow:none;
}

/*  ⚠️ LE RAIL DES RAPPORTS N'EST PAS UNE RANGÉE DE BOUTONS. Il emploie la
       même classe `.sous-onglet`, mais dans une colonne posée sur une carte
       blanche : des boutons blancs cerclés y feraient une grille de cadres
       dans un cadre. Il reprend donc sa mise en page de liste.  */
.st-rail .sous-onglet{
  background:transparent; border:none; box-shadow:none;
  padding:9px 12px; border-radius:10px; font-size:13px;
}
.st-rail .sous-onglet:hover{ background:var(--sub); }

/*  Le séparateur de l'onglet Site — entre ce qu'on publie et ce qu'on reçoit.
    Sans conteneur autour, il lui faut sa propre hauteur.  */
.sous-onglets-sep{ align-self:center; height:24px; margin:0 4px; }

/*  L'état d'une soirée, dans la modale : quatre pastilles, l'active en encre.
    Même logique de boutons, mais sur fond subtil — elles vivent DANS une
    surface blanche, où du blanc sur du blanc ne se verrait pas.  */
.status-toggle{ background:transparent; border:none; padding:0; gap:8px; }
.st-btn{
  font-family:inherit; background:var(--sub); color:var(--t2);
  padding:8px 16px; border-radius:var(--rp); font-weight:500;
}
.st-btn:hover{ background:var(--bd); color:var(--tx); }
.st-btn.is-active{ background:var(--tx); color:var(--sf); font-weight:600; }

/* ---------- Boutons ---------- */
/*  Relevé maquette : `background:var(--sf); border-radius:var(--rp);
    padding:10px 18px; font-size:13.5px; font-weight:500; box-shadow:var(--sh1)`
    — pas de bordure, c'est l'ombre qui détache le bouton du fond.  */
.btn{
  border:none; background:var(--sf); color:var(--t2);
  padding:10px 18px; border-radius:var(--rp); cursor:pointer;
  font-family:inherit; font-weight:500; font-size:13.5px;
  box-shadow:var(--sh1);
}
.btn:hover{ background:var(--sub); border-color:var(--bd); }
.btn.primary{
  background:var(--ac); color:var(--sf); border:none;
  padding:10px 20px; font-weight:600; box-shadow:var(--shac);
}
.btn.primary:hover{ background:var(--ac-strong); }
.btn.ghost{ background:var(--sf); box-shadow:var(--sh1); }
.btn.danger{ color:#B4342A; border-color:#EBD3D1; box-shadow:none; }

/* ---------- Tableaux ---------- */
/*  La carte du tableau porte une ombre très basse au lieu d'une bordure : à
    quatre tableaux empilés, quatre traits gris faisaient une grille dans la
    grille.  */
.table-wrap{
  background:var(--sf); border:none; border-radius:14px;
  box-shadow:var(--sh1); overflow:hidden;
}
table.grid th{
  background:transparent; color:var(--mu);
  font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.12em;
  padding:15px 14px 11px; border-bottom:1px solid var(--bd);
}
table.grid td{ padding:var(--rowpad) 14px; border-bottom:1px solid var(--sub); }
table.grid tr:hover td{ background:var(--sub); }
.cell-nom{ font-weight:500; font-size:15px; }
.cell-date{ font-weight:600; }
.cell-surtitre{
  font-size:11px; font-weight:600; letter-spacing:.09em;
  text-transform:uppercase; color:var(--ac);
}
.empty-state{ padding:44px; color:var(--mu); font-size:14px; }
.icon-btn{ border:1px solid var(--bd); border-radius:9px; color:var(--t2); }
.icon-btn:hover:not(:disabled){ background:var(--sub); }
/*  Une flèche en bout de liste reste en place : elle s'éteint plutôt que
    de disparaître, pour que la colonne d'actions garde sa largeur. */
.icon-btn:disabled{ opacity:.35; cursor:default; }

/* ---------- Étiquettes d'état ---------- */
/*  ⚠️ « RETRANSMISSION » NE PORTE PLUS LE BLEU DES 610. C'était la couleur
       d'une halle appliquée à une étiquette qui vaut pour les deux : aux
       Védasiennes, un match s'affichait en bleu au milieu de l'orange. Elle
       passe en aplat d'encre, indépendant de la halle — l'étiquette porte
       déjà son libellé, elle n'a pas besoin d'une couleur pour se dire.  */
.st-tag{ font-size:11px; font-weight:600; letter-spacing:.03em; padding:4px 10px; }
.st-tag.st-sport{ background:var(--tx); color:var(--sf); font-weight:600; }

/*  Même raison pour le bloc « La rencontre » : il appartient au programmateur,
    qui travaille pour les deux halles. Neutre, donc.  */
#sportFields{
  border:1px solid var(--bd); background:var(--sub); border-radius:var(--r2);
}
#sportFields legend{ color:var(--mu); letter-spacing:.12em; }

/* ---------- Champs ---------- */
.form-card{ background:var(--sf); border:none; box-shadow:var(--sh1); border-radius:var(--radius); padding:24px 26px; }
.form-card label, .modal-body label{ font-size:12.5px; font-weight:600; color:var(--t2); }
.form-card input, .form-card textarea, .form-card select,
.modal-body input, .modal-body select, .modal-body textarea{
  border:1px solid var(--bd); border-radius:var(--r2);
  padding:12px 14px; font-size:15px; font-family:inherit;
}
.month-pick input, .st-dates input, .add-row input[type=text], .add-icon input[type=text]{
  border-radius:var(--r2);
}
fieldset{ border-color:var(--bd); border-radius:var(--r2); }
legend{ color:var(--mu); letter-spacing:.12em; }

/*  ---- L'anneau de focus ----
    ⚠️ `outline:none` SANS REMPLACEMENT ÉTAIT LE DÉFAUT LE PLUS GRAVE DE
       L'ANCIENNE FEUILLE : au clavier, plus rien n'indiquait où l'on était.
       La bordure d'accent seule ne suffit pas — elle fait un pixel.

    Les sélecteurs recopient ceux du haut du fichier, à spécificité égale :
    c'est la position en fin de fichier qui les fait gagner.  */
.form-card input:focus, .form-card textarea:focus,
.modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus,
.month-pick input:focus, .st-dates input:focus, .st-recherche input:focus,
.add-row input[type=text]:focus, .add-icon textarea:focus, #csvPaste:focus{
  outline:none; border-color:var(--ac);
  box-shadow:0 0 0 3px color-mix(in oklab, var(--ac) 22%, transparent);
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible,
input[type=checkbox]:focus-visible, input[type=color]:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px color-mix(in oklab, var(--ac) 22%, transparent);
}

/* ---------- Compteurs ---------- */
.ret-chiffres, .st-chiffres{ grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }
.ret-chiffre, .st-chiffre{
  background:var(--sf); border:none; box-shadow:var(--sh1);
  border-radius:var(--radius); padding:24px 26px; gap:6px;
}
.ret-chiffre[data-vue]:hover{ box-shadow:var(--sh2); }
.ret-valeur{ font-size:44px; font-weight:600; letter-spacing:-.035em; line-height:1; }
/*  Les compteurs de Statistiques restent plus petits : il y en a jusqu'à six
    de front, là où le tableau de bord en aligne trois.  */
.st-valeur{ font-size:34px; font-weight:600; letter-spacing:-.03em; }
.ret-label, .st-label{ font-size:13px; font-weight:500; color:var(--t2); }
.ret-aide, .st-aide{ font-size:13px; color:var(--mu); }
.st-carte, .biblio-block, .tool-card{
  background:var(--sf); border:none; box-shadow:var(--sh1); border-radius:var(--radius);
}
.tool-card:hover{ box-shadow:var(--sh2); }
.chip{ background:var(--sub); border:none; color:var(--t2); }
.st-rail{ border:none; box-shadow:var(--sh1); }
.st-rail .sous-onglet.is-active{ box-shadow:var(--sh1); }

/* ---------- Modale ---------- */
.modal-backdrop{ background:rgba(20,24,22,.34); }
.modal{
  width:min(720px,100%); border-radius:var(--r1);
  box-shadow:0 24px 64px rgba(20,24,22,.28);
}
.modal-head{ padding:24px 30px 20px; border-bottom:1px solid var(--bd); }
.modal-head h3{ font-size:24px; font-weight:600; letter-spacing:-.02em; }
.modal-close{ font-size:18px; color:var(--mu); }
.modal-body{ padding:26px 30px 8px; }
/*  Le pied de modale est un bandeau pleine largeur, alors qu'il vit à
    l'intérieur du corps déjà rembourré : les marges négatives lui rendent les
    bords. Cadré sur l'enfant DIRECT du corps — le même nom de classe sert
    aussi au formulaire des avis, qui n'est pas dans une modale.  */
.modal-body > .modal-foot{
  margin:24px -30px 0; padding:22px 30px;
  background:var(--bg); border-top:1px solid var(--bd);
  align-items:center;
}
.mode-note{ background:var(--sub); border-left-color:var(--ac); border-radius:0 var(--r2) var(--r2) 0; }

/* ---------- Divers ---------- */
.toast{ background:var(--tx); border-radius:var(--r2); box-shadow:var(--sh2); }
.import-zone{ background:var(--sf); border:1px dashed var(--dim); border-radius:var(--radius); }
.hint, .status-note{ color:var(--mu); }

/* ---------- Deux repères que la refonte avait effacés ---------- */
/*  ⚠️ LES CARTES N'ONT PLUS DE BORDURE (elles portent une ombre), et deux
       états s'appuyaient dessus pour se signaler. Les rendre par `border-color`
       ne marche plus : il n'y a plus de bordure à colorer. Un liseré interne
       en `box-shadow` fait le même travail sans rouvrir la bordure.  */

/*  Le compteur qui attend une action — « 3 retours à traiter ».  */
.ret-chiffre.is-alerte{
  background:var(--sub);
  box-shadow:var(--sh1), inset 0 0 0 1px var(--ac);
}
.ret-chiffre[data-vue]:hover{ box-shadow:var(--sh2), inset 0 0 0 1px var(--bd); }
.ret-chiffre.is-alerte:hover{ box-shadow:var(--sh2), inset 0 0 0 1px var(--ac); }

/*  Le rapport ouvert, dans le rail des Statistiques. Le rail est blanc : une
    pastille active blanche y était invisible, il ne restait que la graisse.  */
.st-rail .sous-onglet.is-active{
  background:var(--sub); color:var(--tx);
  box-shadow:inset 3px 0 0 var(--ac);
}

/* =========================================================================
   EN-TÊTES D'ÉCRAN — 10/09/2026, deuxième passe
   -------------------------------------------------------------------------
   Le même gabarit sur les neuf écrans : un titre, un résumé dessous, les
   actions alignées sur la ligne du titre, et les filtres sur une rangée à
   part. Les filtres étaient jusqu'ici mêlés au titre : ils repoussaient les
   boutons d'action sur une deuxième ligne, et l'écran n'avait plus de tête.
   ========================================================================= */

.panel-head{
  display:flex; align-items:flex-start; gap:24px;
  margin-bottom:18px;
}
.ph-titre{ min-width:0; }
.panel-head h2{
  font-size:32px; font-weight:600; letter-spacing:-.025em;
  line-height:1.1; margin:0;
}
.ph-resume{
  margin:7px 0 0; font-size:14.5px; color:var(--t2); line-height:1.45;
  max-width:74ch;
}
/*  Les actions restent en face du titre, jamais sous le résumé. */
.head-actions{ margin-left:auto; flex:none; padding-top:6px; }

/*  La rangée des filtres : pastilles à gauche, réglages fins à droite. */
.panel-filtres{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  margin:0 0 20px;
}
.panel-filtres .month-pick,
.panel-filtres .st-dates,
.panel-filtres .st-compare{ margin-left:auto; }
.panel-filtres .st-barre{ margin:0; gap:14px; flex:1; }

/* =========================================================================
   TABLEAU DES SOIRÉES — cinq colonnes
   ========================================================================= */

/*  La maquette pose le contenu à 26 px des bords de la carte. */
[data-panel="events"] table.grid th:first-child,
[data-panel="events"] table.grid td:first-child{ padding-left:26px; }
[data-panel="events"] table.grid th:last-child,
[data-panel="events"] table.grid td:last-child{ padding-right:26px; }

table.grid th.col-date{ width:116px; }
table.grid th.col-heure{ width:140px; }
table.grid th.col-etat{ width:158px; }
table.grid th.col-actions{ width:126px; text-align:right; }
table.grid th.col-visuel{ width:72px; text-align:center; }

/*  L'icône du générateur de visuels (23-24/09/2026). Toujours présente et
    cliquable : pleine à la couleur de la halle quand le visuel est déposé,
    grisée en pointillés sinon — le clic mène alors au générateur pour le
    faire.  */
.cell-visuel{ text-align:center; }
.ev-visuel{
  display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:8px; vertical-align:middle;
  color:var(--dim); border:1px dashed var(--dim); text-decoration:none;
  transition:background .15s, color .15s, border-color .15s;
}
.ev-visuel:hover{ color:var(--ac); border-color:var(--ac); background:var(--sub); }
.ev-visuel.est-depose{ color:#fff; background:var(--ac); border:1px solid var(--ac); }
.ev-visuel.est-depose:hover{ background:var(--ac-strong); border-color:var(--ac-strong); color:#fff; }

/*  La fenêtre Visuel (08/10/2026) : le générateur de la halle, par-dessus la
    liste. Presque plein écran, parce que le générateur a besoin de son
    panneau de réglages (380 px) ET de son aperçu côte à côte.  */
.vz-fenetre{
  width:min(1440px,100%); height:calc(100vh - 36px); max-height:none;
  display:flex; flex-direction:column; overflow:hidden;
}
.vz-fenetre .modal-head{ padding:16px 22px 14px; align-items:center; }
.vz-titres{ flex:1; min-width:0; }
.vz-titres .modal-surtitre{ margin-bottom:4px; }
.vz-titres h3{ font-size:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vz-outils{ display:flex; align-items:center; gap:18px; flex:none; }
.vz-nav{ display:flex; align-items:center; gap:8px; }
.vz-nav .icon-btn{ width:34px; height:34px; font-size:20px; background:var(--sf); }
.vz-nav .icon-btn:disabled{ opacity:.35; cursor:default; background:var(--sf); }
.vz-pos{ font-family:var(--police-donnees); font-size:13px; color:var(--mu); min-width:52px; text-align:center; }
.vz-plein{ font-size:13px; color:var(--t2); text-decoration:none; white-space:nowrap; }
.vz-plein:hover{ color:var(--ac); }
.vz-corps{ position:relative; flex:1; min-height:0; }
.vz-corps iframe{ display:block; width:100%; height:100%; border:0; }
/*  Le voile reste tant que le générateur ne s'est pas placé sur
    l'événement : dessous, c'est une autre fiche.  */
.vz-attente{
  position:absolute; inset:0; display:grid; place-items:center; align-content:center;
  background:var(--sf); color:var(--mu); font-size:14px; line-height:1.7; text-align:center; padding:24px;
}
.vz-attente a{ color:var(--ac); }

/*  La date : le quantième porte la lecture, le jour l'accompagne. */
.cell-date{ white-space:nowrap; }
/*  Relevé maquette : 26 px / 600, `-.03em`, `line-height:1`, aligné sur la
    LIGNE DE BASE de l'abréviation du jour (`align-items:baseline`, gap 7 px). */
/*  ⚠️ JAMAIS `display:flex` SUR LA CELLULE ELLE-MÊME (retiré le 23/09).
       Un <td> en flex cesse d'être une cellule : il ne prend plus la
       hauteur de la ligne, et son trait de séparation tombe plus haut que
       celui des voisines — le « décalage de la ligne » relevé par Gabriel.
       Deux <span> en ligne s'alignent déjà sur leur ligne de base ; l'écart
       de 7 px passe dans une marge.  */
.cell-date .d-num{
  margin-right:7px;
  font-size:26px; font-weight:600; letter-spacing:-.03em; line-height:1;
  color:var(--tx); font-variant-numeric:tabular-nums;
}
.cell-date .d-jour{
  font-size:11.5px; font-weight:500; text-transform:uppercase;
  letter-spacing:.1em; color:var(--mu);
}

.cell-hour{ color:var(--t2); font-size:13px; white-space:nowrap; }

/*  L'événement : la compétition en surtitre, le nom dessous. */
.cell-event{ min-width:0; }
.ev-surtitre{
  display:block; font-size:11px; font-weight:600; letter-spacing:.09em;
  text-transform:uppercase; color:var(--ac); margin-bottom:4px;
}
/*  Un sur-titre vide reste saisissable : sans cette invite, la ligne où
    cliquer pour l'écrire n'existe visuellement pas.  */
.ev-surtitre:empty::before{ content:'+ sur-titre'; color:var(--dim); letter-spacing:.04em; }
.ev-nom{ display:inline; font-size:15.5px; font-weight:500; letter-spacing:-.01em; color:var(--tx); }
.ev-prive{ margin-left:6px; font-size:12px; }

/*  L'état. Une seule étiquette par ligne, et elle ne dépend jamais de la
    halle : « Retransmission » veut dire la même chose des deux côtés.  */
.cell-etat .et-tag{
  display:inline-block; font-size:11px; font-weight:600;
  text-transform:uppercase; letter-spacing:.04em;
  padding:5px 11px; border-radius:var(--rp); white-space:nowrap;
}
.et-tag.et-retrans{ background:var(--tx); color:var(--sf); }
.et-tag.et-soiree{ background:var(--sub); color:var(--t2); }
.et-tag.et-attente{ background:#E2E8F0; color:#3F4A57; }
.et-tag.et-reporte{ background:#FBEFCB; color:#6E5300; }
.et-tag.et-annule{ background:#F6D2CE; color:#8E1F18; }

/*  L'étoile de mise en avant, puis les actions. */
/*  Maquette : `gap:10px`, étoile 15 px, crayon 13 px en `--t2`. */
.cell-actions .row-actions{ justify-content:flex-end; align-items:center; gap:10px; }
.ev-etoile{ font-size:15px; line-height:1; color:var(--dim); }
.ev-etoile.est-en-avant{ color:#C08A16; }
/*  L'étoile est un bouton depuis le 23/09 : un clic pose ou retire la mise
    en avant sans ouvrir la fiche. Même dessin qu'avant — aucun cadre.  */
button.ev-etoile{
  border:0; background:none; padding:4px; margin:0; cursor:pointer;
  font-family:inherit; border-radius:6px;
}
button.ev-etoile:hover{ background:var(--sub); }
button.ev-etoile:disabled{ cursor:default; background:none; }

/* =========================================================================
   STATISTIQUES — la part devient une barre à elle
   ========================================================================= */
/*  ⚠️ ELLE N'EST PLUS UN FOND DERRIÈRE LE NOM. Posée derrière un chemin de
       page, elle se lisait mal et disait la part une seconde fois. En
       colonne, le nom reste net et la comparaison se fait à la verticale.  */
/*  ⚠️ LA BARRE PREND LA PLACE QUI RESTE, ELLE N'A PAS DE LARGEUR À ELLE.
       Bornée à 132 px, elle ne servait à rien : sur les étaliers, 12 vues et
       9 vues donnaient deux traits séparés de dix pixels — l'écart existait,
       il ne se voyait pas. C'est pourtant la seule raison d'être de cette
       colonne, comparer d'un coup d'œil.

       Donc : toutes les autres colonnes sont bornées, et celle-ci est la
       SEULE en `auto`. Avec `table-layout:fixed`, c'est elle qui absorbe
       tout ce qui reste — la barre s'allonge avec la fenêtre.  */
table.st-grid th:nth-child(2), table.st-grid td:nth-child(2){ width:236px; }
table.st-grid th.col-barre, table.st-grid td.cell-barre{ width:auto; }

/*  ⚠️ LE TABLEAU DES STATISTIQUES N'EST PAS CELUI DES SOIRÉES, ET IL AVAIT
       HÉRITÉ DE SA DENSITÉ. `<table class="grid st-grid">` porte les deux
       classes : la règle `table.grid td{ padding:var(--rowpad) … }`, écrite
       pour les soirées (16 px, densité « Confort »), s'appliquait aussi ici et
       doublait la hauteur des lignes.

       La maquette tient ces listes SERRÉES — 12 px entre deux lignes, pas de
       filet, pas de rembourrage de cellule. Un tableau ne peut pas descendre
       aussi bas, mais il retrouve ici les 9 px que l'outil employait déjà.  */
table.st-grid th{ padding:0 0 9px; }
table.st-grid td{ padding:9px 0; border-bottom:1px solid var(--border-soft); }
table.st-grid th:not(:first-child), table.st-grid td:not(:first-child){ padding-left:14px; }

/*  Le nom n'a plus de fond derrière lui — la part a sa colonne depuis la
    refonte. Il n'a donc plus besoin du rembourrage qui faisait sa place.  */
.st-cle{ padding:0; }
.st-piste{
  display:block; height:10px; border-radius:999px;
  background:var(--sub); overflow:hidden;
}
.st-remplissage{ display:block; height:100%; background:var(--ac); border-radius:999px; }
/*  ⚠️ AU MINIMUM, LA BARRE DOIT RESTER UNE BARRE. Les cinq colonnes bornées
       pèsent 534 px : sous 720 px de table, il ne lui resterait qu'un moignon.
       En dessous, `.table-wrap` défile (règle plus haut, cadrée sur l'onglet). */
table.st-grid{ min-width:720px; }
/*  Les largeurs des colonnes de chiffres, décalées d'un cran par la barre. */
table.st-grid th:nth-child(4), table.st-grid td:nth-child(4){ width:92px; }
table.st-grid th:nth-child(5), table.st-grid td:nth-child(5){ width:76px; }
table.st-grid th:nth-child(6), table.st-grid td:nth-child(6){ width:92px; }

/*  Un en-tête de colonne qui n'a rien à montrer garde un nom pour qui écoute
    la page plutôt que de la regarder.  */
.sr-seul{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

/* ---------- Écrans étroits ---------- */
/*  La maquette prévoit un tiroir en dessous de 1024 px. Un tiroir demande du
    JavaScript, et `admin.js` ne doit pas bouger : le rail redevient donc une
    barre qui défile horizontalement — le comportement déjà retenu pour le
    rail des rapports de Statistiques sous 860 px.  */
/*  Le tableau des soirées défile plutôt que de perdre une colonne.
    ⚠️ LA MAQUETTE PROPOSE DE MASQUER « ÉTAT » EN PREMIER. On ne le fait pas :
       c'est la colonne qui dit qu'une soirée est en attente ou annulée, et
       une soirée annulée qu'on ne voit pas est pire qu'un défilement. */
@media (max-width:1000px){
  [data-panel="events"] .table-wrap{ overflow-x:auto; }
  [data-panel="events"] table.grid{ min-width:780px; }
}

@media (max-width:1024px){
  .panel-head{ flex-wrap:wrap; gap:14px; }
  .head-actions{ margin-left:0; padding-top:0; width:100%; }
  .panel-head h2{ font-size:28px; }
  .panel-filtres .month-pick,
  .panel-filtres .st-dates,
  .panel-filtres .st-compare{ margin-left:0; }

  .shell{ display:block; }
  .rail{
    position:static; width:auto; min-height:0;
    flex-direction:row; align-items:center; overflow-x:auto;
    padding:10px 16px; gap:4px;
    border-right:none; border-bottom:1px solid var(--bd); background:var(--sf);
  }
  .rail-titre{ display:none; }
  .rail .tab{ width:auto; white-space:nowrap; }
  /*  ⚠️ PAS DE `margin-left:auto` ICI. Dans une bande qui défile, il pousse
      « Déconnexion » à l'extrémité du contenu, donc hors de l'écran et
      rogné au bord. Le lien suit simplement la dernière section, séparé
      par un filet.  */
  .rail-pied{
    margin:0; padding:0 6px 0 14px;
    display:flex; align-items:center; align-self:stretch;
    border-top:none; border-left:1px solid var(--bd);
  }
  .content{ max-width:none; padding:24px 20px 44px; }
}
@media (max-width:640px){
  .panel-head h2{ font-size:24px; }
  .content{ padding:20px 16px 40px; }
  .modal-body{ padding:20px 18px 8px; }
  .modal-body > .modal-foot{ margin:20px -18px 0; padding:18px; }
  .modal-head{ padding:18px 18px 16px; }
}

/*  Les transitions de la refonte sont courtes (120–160 ms). Pour qui a
    demandé moins d'animation, elles n'ont pas à exister du tout.  */
@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}


/* =========================================================================
   TROISIÈME PASSE — 10/09/2026, d'après le relevé maquette contre code
   -------------------------------------------------------------------------
   Ce bloc corrige les écarts sortis d'une comparaison systématique du bloc
   1b de la maquette avec ce fichier. Il vient EN DERNIER, donc il gagne à
   spécificité égale — ne pas le remonter.

   ⚠️ CERTAINES RÈGLES DU SOCLE PORTENT TROIS CLASSES (les pastilles d'état).
      Être en fin de fichier ne suffit pas contre elles : il faut viser la
      même spécificité. C'est signalé sur place.
   ========================================================================= */

/* ---------- Barre haute ---------- */
/*  Le nom de la personne connectée est en encre pleine dans la maquette ;
    il héritait du gris secondaire de son conteneur.  */
#userName{ color:var(--tx); font-weight:600; }
.halle-switch{ gap:4px; margin-left:12px; }
.head-actions{ margin-left:auto; flex:none; padding-top:6px; gap:10px; }

/* ---------- Tableau des soirées : la grille de la maquette ---------------
   Relevé : `grid-template-columns:96px 132px minmax(0,1fr) 150px 76px;
   gap:20px; padding:var(--rowpad) 26px`, en-tête `padding:14px 26px`.
   Traduit en tableau : 10 px de rembourrage de chaque côté d'une cellule
   font les 20 px de gouttière, et les bords gardent leurs 26 px.  */
[data-panel="events"] table.grid th,
[data-panel="events"] table.grid td{ padding-left:10px; padding-right:10px; }
[data-panel="events"] table.grid th{ padding-top:14px; padding-bottom:14px; }
[data-panel="events"] table.grid th:first-child,
[data-panel="events"] table.grid td:first-child{ padding-left:26px; }
[data-panel="events"] table.grid th:last-child,
[data-panel="events"] table.grid td:last-child{ padding-right:26px; }
table.grid th.col-date{ width:116px; }
table.grid th.col-heure{ width:152px; }
table.grid th.col-etat{ width:170px; }
table.grid th.col-actions{ width:96px; }

/*  Dans la LISTE, les icônes d'action sont des glyphes nus : la maquette ne
    leur donne ni cadre ni fond. `.icon-btn` garde le sien partout ailleurs
    (étaliers, carte, comptes), où une seule icône isolée a besoin d'une
    cible visible.  */
[data-panel="events"] .cell-actions .icon-btn{
  border:none; background:transparent; box-shadow:none;
  width:auto; height:auto; padding:2px; font-size:13px; color:var(--t2);
}
[data-panel="events"] .cell-actions .icon-btn:hover{ background:transparent; color:var(--tx); }
[data-panel="events"] .cell-actions .icon-btn.del:hover{ color:#B4342A; }

/*  Le pied de la carte : « 8 soirées · septembre 2026 ». */
.table-pied{
  margin:0; padding:14px 26px; font-size:13px; color:var(--mu);
}

/* ---------- Cartes : les rembourrages de la maquette --------------------
   Relevé : « Padding de carte : 24–26px 26–30px ». Le bloc de reprise leur
   avait donné la surface et l'ombre, mais pas la respiration.  */
.st-carte{ padding:26px 30px 22px; }
.biblio-block{ padding:24px 26px; }
.tool-card{ padding:24px 26px; }
.st-carte h3, .biblio-block h3{ font-size:15px; font-weight:600; }

/*  Deux conteneurs que la reprise avait oubliés : ce sont des cartes, elles
    étaient restées grises et cerclées.  */
.stats-form{
  background:var(--sf); border:none; box-shadow:var(--sh1);
  border-radius:var(--radius); padding:24px 26px;
}
.ct-ossature{
  background:var(--sf); border:none; box-shadow:var(--sh1);
  border-radius:var(--radius); padding:18px;
}
.recur-head{ background:var(--sub); color:var(--t2); border-bottom-color:var(--bd); }

/*  Dans une carte de compteur, le libellé annonce et le chiffre répond.
    ⚠️ CORRIGÉ EN CSS, PAS DANS `admin.js` : le même JavaScript sert
       `index.html`, qui lit `admin.css` et doit garder son ordre actuel.  */
.ret-label, .st-label{ order:1; }
.ret-valeur, .st-valeur{ order:2; }
.ret-aide, .st-aide, .st-delta{ order:3; }

/* ---------- Les gris de l'ancienne charte, ramenés sur les jetons --------
   Le dossier pose le point comme un correctif de la refonte : « texte
   secondaire sous le seuil WCAG AA → tous les gris remontés ≥ 4,5:1 ».
   Sept valeurs en dur avaient survécu.  */
.ct-famille-titre{ color:var(--mu); }
.ct-rubrique .ct-compte{ color:var(--mu); }
.ct-prix-cellule .ct-lib{ color:var(--mu); }
.ct-actions button{ color:var(--t2); }
.ct-actions button:hover{ color:var(--tx); }
.galerie-compte{ color:var(--mu); }
.photo-apercu{ color:var(--mu); }
.pub-toggle{ border-color:var(--dim); color:var(--mu); }
.pub-toggle:hover{ border-color:var(--t2); color:var(--tx); }
.photo-apercu, .galerie-vignette{ background:var(--sub); border-color:var(--bd); }

/* ---------- Modale ------------------------------------------------------ */
/*  Le surtitre de l'en-tête : « HALLES 610 · ÉVÉNEMENTS ». */
.modal-head{ align-items:flex-start; gap:18px; }
.modal-surtitre{
  font-size:11px; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:var(--mu); margin-bottom:6px;
}
.modal-surtitre:empty{ display:none; }

/*  Le rythme du corps : 22 px entre deux groupes, 16 px dans les grilles. */
.modal-body label{ margin-bottom:22px; }
.modal-body .form-row{ gap:16px; }

/*  ⚠️ LE PIED LAISSAIT UN LISERÉ BLANC. Le corps gardait 8 px de
       rembourrage SOUS le bandeau gris, qui se voyaient entre lui et le bord
       arrondi du panneau.  */
.modal-body{ padding:26px 30px 0; }
.modal-body > .modal-foot{ margin:24px -30px 0; }

/*  Les valeurs de date et d'heure sont des données, comme la colonne
    Horaire du tableau — chasse fixe, 14 px.  */
#eventForm input[name=date],
#eventForm input[name=time_start],
#eventForm input[name=time_end],
#eventForm input[name=recur_until]{
  font-family:var(--police-donnees); font-size:14px;
  font-variant-numeric:tabular-nums;
}

/*  Les quatre pastilles d'État : 12,5 px, `padding:8px 13px`. */
.st-btn{ padding:8px 13px; font-size:12.5px; }

/*  ⚠️ TROIS CLASSES, PARCE QUE LE SOCLE EN A TROIS. `.st-btn.is-active`
       (deux classes) ne peut pas battre `.st-btn.st-attente.is-active`, même
       écrit en dernier. Dans la maquette, la pastille sélectionnée est en
       encre pleine QUELLE QU'ELLE SOIT : c'est la sélection qu'elle signale,
       pas la nature de l'état. Les étiquettes de la LISTE, elles, gardent
       leurs couleurs — là, c'est l'état qu'on lit.  */
.st-btn.st-attente.is-active,
.st-btn.st-reporte.is-active,
.st-btn.st-annule.is-active{ background:var(--tx); color:var(--sf); }

/* =========================================================================
   JOURNAL DES MODIFICATIONS — sous Comptes & accès (17/09/2026)
   =========================================================================
   Tout est préfixé `jr-`. Réutilise sans les redéfinir `.st-chiffres`,
   `.st-tag`, `.st-dates`, `.panel-filtres` et `table.grid`.               */

.jr{ margin-top:44px; padding-top:32px; border-top:1px solid var(--bd); }
.jr-tete{ display:flex; align-items:flex-start; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.jr-tete h2{ font-size:20px; margin:0; }

.jr-filtres select{
  border:1px solid var(--border); border-radius:9px; padding:7px 10px;
  background:var(--sf); color:var(--tx); font-family:inherit; font-size:13px; max-width:230px;
}
.jr-filtres select:focus, .jr-filtres input:focus{ outline:none; border-color:var(--accent); }
.jr-perimetre{ margin:-6px 0 14px; }
#jrResume{ grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }

.st-chiffre.jr-alerte{ border-color:#f0c9c5; }
.st-chiffre.jr-alerte .st-valeur{ color:#b3261e; }

.jr-table td{ padding-top:12px; padding-bottom:12px; }
.jr-ligne{ cursor:pointer; }
.jr-ligne:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.jr-quand{ white-space:nowrap; font-family:var(--police-donnees); font-size:13px;
  font-variant-numeric:tabular-nums; color:var(--t2); }
.jr-objet{ font-weight:600; color:var(--tx); }
.jr-resume{ font-size:12.5px; color:var(--mu); margin-top:2px; }
.jr-suppr .jr-resume{ color:#922019; }
.jr-chevron{ width:28px; text-align:center; color:var(--mu); font-size:18px;
  transition:transform .15s ease; }
.jr-ligne[aria-expanded="true"] .jr-chevron{ transform:rotate(90deg); }

/*  La ligne dépliée : pas de survol, fond subtil.  */
table.grid tr.jr-detail td,
table.grid tr.jr-detail:hover td{ background:var(--sub); padding:14px 18px 16px; }

.jr-grille{ display:grid; background:var(--sf); border:1px solid var(--bd); border-radius:10px;
  font-size:13px; overflow:hidden; }
.jr-grille > div{ padding:7px 12px; border-bottom:1px solid var(--border-soft); min-width:0;
  word-break:break-word; white-space:pre-wrap; }
.jr-grille-diff{ grid-template-columns:minmax(120px,170px) 1fr 1fr; }
.jr-entete{ font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--mu); }
.jr-champ{ color:var(--t2); font-weight:600; }
.jr-grille-diff .jr-avant{ color:#922019; text-decoration:line-through; text-decoration-color:rgba(146,32,25,.35); }
.jr-grille-diff .jr-apres{ color:#2f6e29; font-weight:600; }

/*  La fiche d'une suppression : deux paires champ/valeur par rang, pour
    qu'une soirée entière tienne sur un écran.  */
.jr-fiche{ grid-template-columns:minmax(110px,150px) 1fr minmax(110px,150px) 1fr; }

.jr-titre-detail{ margin:0 0 8px; font-size:12.5px; font-weight:600; color:var(--t2); }
.jr-vide{ margin:0; font-size:13px; color:var(--mu); }
.jr-technique{ margin:10px 0 0; font-size:11.5px; color:var(--mu);
  font-family:var(--police-donnees); }

.jr-pied{ display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; }
.jr-pied .status-note{ margin:0; }
.jr-pagination{ margin-left:auto; display:flex; gap:8px; }
.jr-pagination .btn:disabled{ opacity:.45; cursor:default; }

@media (max-width:860px){
  .jr-table th:nth-child(5), .jr-table td.jr-chevron{ display:none; }
  .jr-quand{ white-space:normal; }
  .jr-fiche{ grid-template-columns:minmax(100px,140px) 1fr; }
  .jr-grille-diff{ grid-template-columns:minmax(90px,120px) 1fr 1fr; }
}

/*  Sur téléphone, le tableau à cinq colonnes était rogné par `.table-wrap`
    (overflow:hidden) : chaque entrée devient une carte empilée.  */
@media (max-width:640px){
  .jr-table thead{ display:none; }
  .jr-table, .jr-table tbody{ display:block; }
  .jr-table tr.jr-ligne{ display:grid; grid-template-columns:1fr auto; gap:4px 10px;
    padding:12px 14px; border-bottom:1px solid var(--sub); }
  table.grid.jr-table tr.jr-ligne td{ padding:0; border:none; background:none; }
  .jr-table td.jr-quand{ grid-column:1; grid-row:1; font-size:12px; }
  .jr-table tr.jr-ligne td:nth-child(3){ grid-column:2; grid-row:1; }
  .jr-table tr.jr-ligne td.cell-nom{ grid-column:1 / -1; grid-row:2; font-size:12.5px; color:var(--t2); }
  .jr-table tr.jr-ligne td:nth-child(4){ grid-column:1 / -1; grid-row:3; }
  .jr-table tr.jr-detail{ display:block; }
  .jr-table tr.jr-detail[hidden]{ display:none; }
  .jr-table tr.jr-detail td{ display:block; }
  .jr-grille-diff{ grid-template-columns:minmax(70px,90px) 1fr 1fr; }
  .jr-filtres select{ max-width:none; flex:1 1 100%; }
}

/* =========================================================================
   DROITS PAR COMPTE — consultation seule                     (23/09/2026)
   ========================================================================= */
/*  `data-ecriture="non"` est posé sur <html> par `appliquerEcriture()`
    (admin.js) quand le compte ne peut pas modifier l'onglet ouvert.

    ⚠️ CE N'EST PAS LA SÉCURITÉ. L'API refuse l'écriture (require_droit) et
       `api()` ne l'envoie même pas. Ici, on retire seulement les boutons
       qui ne serviraient à rien, et on le dit à côté du titre.
       Le crayon RESTE : il ouvre la fiche pour la lire.  */
html[data-ecriture="non"] .panel.is-active .panel-head h2::after{
  content:'Consultation'; display:inline-block; vertical-align:middle;
  margin-left:12px; padding:4px 10px; border-radius:999px;
  font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  background:var(--sub); color:var(--mu);
}
html[data-ecriture="non"] .panel.is-active .head-actions .btn.primary,
html[data-ecriture="non"] .panel.is-active #importToggle,
html[data-ecriture="non"] .panel.is-active #importZone,
html[data-ecriture="non"] .panel.is-active .row-actions .dup,
html[data-ecriture="non"] .panel.is-active .row-actions .del,
html[data-ecriture="non"] .modal-foot [type="submit"],
html[data-ecriture="non"] .modal-foot .btn.primary,
html[data-ecriture="non"] .modal-foot .btn.danger{ display:none !important; }
html[data-ecriture="non"] .panel.is-active [contenteditable],
html[data-ecriture="non"] .panel.is-active button.ev-etoile{ pointer-events:none; }
/*  L'invite « + sur-titre » dit « cliquez ici pour écrire » : sans objet.  */
html[data-ecriture="non"] .panel.is-active .ev-surtitre:empty::before{ content:none; }

/*  La liste des droits dans la modale d'un compte : une case par ligne.  */
fieldset.droits{ display:grid; gap:9px; padding:12px 16px 14px; }
fieldset.droits legend{ font-weight:600; padding:0 6px; }
fieldset.droits label.check{ font-weight:400; align-items:flex-start; line-height:1.35; }
fieldset.droits label.check input{ margin-top:2px; }

/* =========================================================================
   CONCOURS SPORT — 24/09/2026 · préfixe cc-
   -------------------------------------------------------------------------
   Les cartes, courbes, histogrammes et classements sont ceux de l'onglet
   Statistiques (st-*) : rien ici ne les redéfinit. Ce bloc n'ajoute que
   ce que le concours a en propre — l'entonnoir, la liste des participants,
   le tirage et son écran, les réglages.
   ========================================================================= */

/* ⚠️ `min-width:0` : sans lui, la colonne de `.st-layout` prend la largeur
      minimale du tableau des participants (1 080 px) et toute la page
      déborde, au lieu du seul tableau qui défile. */
#ccMain{ min-width:0; }
.st-layout.cc-seul{ grid-template-columns:1fr; }
.cc-gris{ color:var(--mu); }
.cc-part{ font-weight:400; color:var(--mu); }
.cc-fictif{ margin:0 0 16px; padding:10px 14px; background:#FFF6D6; border:1px dashed #C9A200;
  border-radius:var(--r2); font-size:12.5px; color:#6B5500; }

/* Le choix du concours */
.cc-selecteur{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cc-selecteur .sous-onglet{ display:inline-flex; align-items:center; gap:8px; }
.cc-statut{ font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:999px;
  text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }
.cc-statut.ouvert{ background:#D8EFD3; color:#2f6e29; }
.cc-statut.cloture{ background:#FBEFCB; color:#7a5c00; }
.cc-statut.tire{ background:var(--acs); color:var(--ac-strong); }
.cc-statut.brouillon{ background:#E2E8F0; color:#475569; }
.cc-statut.archive{ background:var(--sub); color:var(--mu); }

/* L'entonnoir : du clic à la participation */
.cc-entonnoir{ display:grid; gap:10px; margin-top:6px; }
.cc-marche{ display:grid; grid-template-columns:190px 1fr 64px; gap:12px; align-items:center; font-size:13px; }
.cc-marche .nom{ color:var(--t2); font-weight:600; }
.cc-marche .piste{ position:relative; height:26px; background:var(--sub); border-radius:8px; overflow:hidden; }
.cc-marche .plein{ position:absolute; inset:0 auto 0 0; background:var(--ac); border-radius:8px; opacity:.85; }
.cc-marche .plein span{ position:absolute; left:10px; top:50%; transform:translateY(-50%);
  color:#fff; font-weight:700; font-size:12.5px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cc-marche .pct{ text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }
.cc-marche .dehors{ position:absolute; top:50%; transform:translateY(-50%);
  font-weight:700; font-size:12.5px; color:var(--tx); white-space:nowrap; font-variant-numeric:tabular-nums; }
.cc-lecture{ margin:14px 0 0; padding:12px 14px; background:var(--sub); border-radius:var(--r2);
  font-size:13px; line-height:1.55; color:var(--t2); }
.cc-lecture b{ color:var(--tx); }
@media (max-width:640px){ .cc-marche{ grid-template-columns:1fr 54px; } .cc-marche .nom{ grid-column:1 / -1; } }

/* Les participants */
.cc-barre-outils{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.table-wrap.cc-defile{ overflow-x:auto; }
table.grid.cc-table{ min-width:1080px; font-size:13px; }
table.grid.cc-table td{ padding:11px 14px; }
table.grid.cc-table td:first-child,
table.grid.cc-table td:nth-child(4){ white-space:nowrap; }
.cc-qui{ min-width:170px; }
.cc-qui b{ display:block; white-space:nowrap; }
.cc-qui small, .cc-contact small{ color:var(--mu); font-size:12px; }
.cc-contact{ font-variant-numeric:tabular-nums; }
.cc-alerte{ display:inline-block; margin:4px 4px 0 0; font-size:11px; font-weight:700; padding:2px 8px;
  border-radius:999px; background:#F6D2CE; color:#922019; white-space:nowrap; }
tr.cc-exclue td{ opacity:.5; }
tr.cc-exclue td:last-child{ opacity:1; }
.cc-pagination{ display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 16px; border-top:1px solid var(--bd); font-size:13px; color:var(--t2); background:var(--sf); }
.cc-pages{ display:flex; gap:6px; }
.cc-pagination .btn[disabled]{ opacity:.4; cursor:default; }
tr.cc-ligne{ cursor:pointer; }

/* Le tirage */
.cc-tirages{ display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); }
.cc-eligibles{ display:flex; gap:18px; flex-wrap:wrap; margin:10px 0 16px; font-size:13px; color:var(--t2); }
.cc-eligibles b{ color:var(--tx); font-variant-numeric:tabular-nums; }
.cc-gros-bouton{ width:100%; justify-content:center; padding:16px 20px !important; font-size:16px !important; }
.cc-gros-bouton[disabled]{ opacity:.45; cursor:not-allowed; box-shadow:none; }
.cc-gagnant{ display:grid; gap:4px; padding:16px; border-radius:var(--r2); background:var(--acs); }
.cc-gagnant .cc-rang{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ac-strong); }
.cc-gagnant .cc-nom{ font-size:22px; font-weight:700; }
.cc-gagnant .cc-coord{ font-size:13px; color:var(--t2); font-variant-numeric:tabular-nums; }
.cc-supp{ display:grid; gap:8px; margin-top:12px; }
.cc-supp div{ display:flex; justify-content:space-between; gap:10px; padding:10px 14px;
  border:1px solid var(--bd); border-radius:var(--r2); font-size:13.5px; }
.cc-supp div.is-passe{ opacity:.45; text-decoration:line-through; }
.cc-coches{ display:grid; gap:8px; margin:14px 0; font-size:13.5px; }
.cc-coches label{ display:flex; gap:10px; align-items:center; cursor:pointer; font-weight:400; }
.cc-coches input{ width:18px; height:18px; accent-color:var(--ac); margin:0; }
.cc-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.cc-trace{ font-size:12px; color:var(--mu); margin:12px 0 0; }

/*  L'écran de tirage — pensé pour être filmé en story. Les couleurs sont
    celles du SITE de la halle, pas l'accent de Central : la vidéo part sur
    le compte Instagram de la halle et doit en porter l'identité. */
.cc-scene{
  --scene:#2E6279; --scene-fonce:#17323C; --scene-vif:#FFC61E;
  position:fixed; inset:0; z-index:200; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:22px; padding:30px;
  background:radial-gradient(120% 90% at 50% 0%, var(--scene) 0%, var(--scene-fonce) 70%, #0E1116 100%);
  color:#fff; text-align:center; font-family:'Outfit', sans-serif;
}
.cc-scene.h610{ --scene:#FF4A1C; --scene-fonce:#8A2208; --scene-vif:#FFD500; }
.cc-scene[hidden]{ display:none; }
.cc-scene .logo{ height:64px; width:auto; }
.cc-scene .sur{ font-size:13px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; opacity:.8; }
.cc-scene h2{ margin:0; font-size:clamp(26px,4.4vw,46px); font-weight:700; line-height:1.1; color:#fff; }
.cc-fente{
  position:relative; width:min(640px,92vw); height:120px; overflow:hidden;
  border-radius:22px; background:rgba(255,255,255,.1); box-shadow:inset 0 0 0 2px rgba(255,255,255,.25);
  -webkit-mask-image:linear-gradient(transparent, #000 28%, #000 72%, transparent);
          mask-image:linear-gradient(transparent, #000 28%, #000 72%, transparent);
}
.cc-rouleau{ position:absolute; left:0; right:0; top:0; will-change:transform; }
.cc-rouleau div{ height:120px; display:flex; flex-direction:column; justify-content:center;
  font-size:clamp(28px,5vw,50px); font-weight:700; line-height:1.05; }
.cc-rouleau div small{ font-size:.42em; font-weight:500; opacity:.8; margin-top:6px; }
.cc-resultat{ min-height:92px; display:grid; gap:8px; justify-items:center; font-size:16px; }
.cc-resultat .bravo{ font-size:clamp(20px,3vw,28px); font-weight:700; color:var(--scene-vif); }
.cc-resultat .supp{ opacity:.85; }
.cc-apparait{ animation:ccApparait .5s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes ccApparait{ from{ opacity:0; transform:scale(.85) translateY(10px); } to{ opacity:1; transform:none; } }
.cc-scene-actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.cc-scene-actions button{ font:600 14px 'Outfit', sans-serif; padding:10px 18px; border-radius:999px;
  border:1px solid rgba(255,255,255,.5); background:transparent; color:#fff; cursor:pointer; }
.cc-scene-actions button.plein{ background:#fff; color:var(--scene-fonce); border-color:#fff; }
.cc-confettis{ position:fixed; inset:0; pointer-events:none; z-index:201; }
.cc-confettis[hidden]{ display:none; }

/* Les réglages */
.cc-reglages{ display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(360px,1fr)); align-items:start; }
.cc-titre-carte{ margin:0 0 14px; font-size:15px; }
.cc-champs{ display:grid; gap:14px; grid-template-columns:1fr 1fr; }
.cc-champs .large{ grid-column:1 / -1; }
.cc-champs label{ margin:0 !important; }
.cc-champs input, .cc-champs select{ margin-top:6px; width:100%; }
.cc-champs select{ border:1px solid var(--bd); border-radius:var(--r2); padding:10px 12px; font:inherit; background:var(--sf); }
.cc-champs .cc-aide{ display:block; margin-top:4px; font-size:11.5px; font-weight:400; color:var(--mu); }
.cc-coches-ligne{ border:0; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px 18px; }
.cc-coches-ligne legend{ font-size:13px; font-weight:600; padding:0; margin-bottom:6px; }
.cc-coches-ligne label{ display:inline-flex !important; align-items:center; gap:8px; font-weight:400; }
.cc-coches-ligne input{ width:auto !important; margin:0 !important; }
.cc-lien{ display:grid; grid-template-columns:1fr auto; gap:6px 10px; align-items:center;
  padding:12px 0; border-bottom:1px solid var(--bd); }
.cc-lien:last-of-type{ border-bottom:none; }
.cc-lien b{ font-size:13px; }
.cc-lien code{ grid-column:1; font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--t2); word-break:break-all; }
.cc-lien .btn{ grid-row:1 / span 2; grid-column:2; }
.cc-note-legale{ margin-top:14px; padding:12px 14px; border-radius:var(--r2); background:var(--sub);
  font-size:12.5px; line-height:1.55; color:var(--t2); }

/* =========================================================================
   DOCUMENTS — 04/10/2026 · admin.js (ONGLET DOCUMENTS) · api/documents.php
   Le cadre (rail des groupes, cartes, chiffres, barres) est celui des
   Statistiques et du Concours : ne sont ici que les pièces propres à
   l'onglet.
   ========================================================================= */
#docLayout.cc-seul{ grid-template-columns:1fr; }
#docRail .doc-compte{ float:right; font-size:11.5px; color:var(--mu); font-variant-numeric:tabular-nums; }

.doc-tete{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:12px 16px; margin-bottom:14px; }
.doc-tete .ph-titre{ flex:1 1 260px; min-width:0; }
.doc-tete .head-actions{ flex-wrap:wrap; }
.doc-tete h3{ margin:0; font-size:18px; }
.doc-tete .status-note{ margin-top:4px; max-width:60ch; }
.doc-vues{ margin-bottom:16px; }

/* La zone de dépôt */
.doc-depot{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:18px 20px;
  border:1.5px dashed var(--dim); border-radius:var(--r2); background:var(--sf); margin-bottom:12px; }
.doc-depot .status-note{ flex-basis:100%; margin:0; }
.doc-depot.survol{ border-color:var(--ac); background:var(--acs); }

.doc-envois{ display:grid; gap:6px; margin-bottom:14px; }
.doc-envois:empty{ display:none; }
.doc-envoi{ display:grid; grid-template-columns:minmax(0,1fr) 160px 150px; gap:12px; align-items:center;
  padding:8px 12px; border-radius:var(--r2); background:var(--sf); box-shadow:var(--sh1); font-size:13px; }
.doc-envoi-nom{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.doc-envoi-nom small{ color:var(--mu); margin-left:6px; }
.doc-barre{ height:6px; border-radius:999px; background:var(--sub); overflow:hidden; }
.doc-barre span{ display:block; height:100%; background:var(--ac); transition:width .2s; }
.doc-envoi-etat{ color:var(--t2); font-variant-numeric:tabular-nums; }
.doc-envoi.ok .doc-envoi-etat{ color:var(--groupe-strong); font-weight:600; }
.doc-envoi.echec .doc-envoi-etat{ color:#B4342A; }
.doc-envoi.echec .doc-barre{ visibility:hidden; }

/* La liste */
.doc-nom{ display:inline-flex; align-items:center; gap:10px; overflow-wrap:anywhere; }
.doc-ext{ flex:0 0 auto; min-width:44px; text-align:center; padding:4px 6px; border-radius:6px;
  font:600 10.5px/1 'IBM Plex Mono', monospace; background:var(--sub); color:var(--t2); }
.doc-table td.num{ font-variant-numeric:tabular-nums; white-space:nowrap; }
.doc-fil{ font:500 10.5px/1 'IBM Plex Mono', monospace; color:var(--mu); border:1px solid var(--bd); border-radius:999px; padding:3px 7px; white-space:nowrap; }
.doc-actions{ white-space:nowrap; text-align:right; }
.doc-actions .icon-btn{ margin-left:4px; width:32px; height:32px; padding:0; font-size:13px; vertical-align:middle; }
/* Mise en page souple (06/10/2026) : des largeurs fixes écrasaient le nom
   du document sur un écran étroit dès qu'une colonne s'ajoutait. Le nom a
   une largeur minimale ; les autres colonnes prennent ce qu'il leur faut ;
   au-delà, le tableau défile dans son cadre. */
.doc-table{ table-layout:auto; width:100%; }
/* min-width est ignoré sur une cellule de tableau : il se pose sur le nom. */
/* Sans min-width:0, la colonne de la grille s'élargit à la taille du tableau
   et toute la page déborde, au lieu de laisser le tableau défiler. */
#docMain{ min-width:0; }
.doc-table td:first-child .doc-nom{ display:flex; min-width:220px; overflow-wrap:anywhere; }
.doc-table .doc-fil{ margin-left:auto; }
.doc-table th, .doc-table td.num{ white-space:nowrap; }
.doc-actions a.icon-btn{ display:inline-flex; align-items:center; justify-content:center; text-decoration:none; color:var(--t2); }
.doc-actions .icon-btn[disabled]{ opacity:.35; cursor:default; }

/* Accès */
.doc-filet{ border:0; border-top:1px solid var(--bd); margin:18px 0 14px; }

/* Rapport */
.doc-filtres{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:16px; }
.doc-rapport td{ vertical-align:top; }
.doc-rapport td.mono{ font-family:'IBM Plex Mono', monospace; font-size:12.5px; }
.doc-consult{ display:block; font-size:13px; }
.doc-refus td{ color:var(--mu); }

@media (max-width:760px){
  .doc-envoi{ grid-template-columns:1fr; gap:4px; }
}

/* ---------- Archive générale et rubriques (06/10/2026) ---------- */
#docRail .doc-archive{ font-weight:600; margin-bottom:6px; }
.doc-groupe-tag{ display:inline-block; font-size:12px; padding:3px 9px; border-radius:999px; background:var(--sub); color:var(--t2); margin:2px 4px 2px 0; white-space:nowrap; }
.doc-recherche{ width:100%; max-width:420px; border:1px solid var(--bd); border-radius:var(--r2); padding:9px 12px; font:inherit; background:var(--sf); }
.doc-outils{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.doc-depot-cible{ display:inline-flex !important; align-items:center; gap:8px; margin:0 !important; font-weight:500; }
.doc-depot-cible select, .doc-rub-select{ border:1px solid var(--bd); border-radius:9px; padding:5px 8px; font:inherit; font-size:13px; background:var(--sf); max-width:180px; }
.doc-rubrique{ margin-bottom:18px; }
.doc-rubrique-tete{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 8px; }
.doc-rubrique-tete h4{ margin:0; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--t2); }
.doc-rubrique-tete .doc-compte{ font-weight:500; color:var(--mu); margin-left:6px; }
.doc-rubrique-vide{ margin:0 0 4px; }
.doc-table .doc-rub-select{ width:100%; }
/* Le tableau d'un groupe a une colonne de plus (Rubrique) pour qui peut ranger. */
.doc-choix{ display:grid; gap:12px; }
.doc-choix-liste{ max-height:340px; overflow:auto; border:1px solid var(--bd); border-radius:var(--r2); padding:6px 10px; }
.doc-choix-ligne{ display:flex !important; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--sub); margin:0 !important; font-weight:400 !important; }
.doc-choix-ligne:last-child{ border-bottom:0; }
.doc-choix-ligne small{ margin-left:auto; color:var(--mu); white-space:nowrap; }
.doc-choix select{ margin-top:6px; width:100%; border:1px solid var(--bd); border-radius:var(--r2); padding:9px 12px; font:inherit; background:var(--sf); }

/*  Les droits Documents dans la modale d'un compte  */
fieldset.droits .droits-sous-titre{ margin-top:8px; padding-top:10px; border-top:1px solid var(--bd);
  font-weight:600; font-size:13px; }

/*  Documents, 06/10/2026 : filtres de la liste (nom, rubrique, période de
    dépôt) et renommage d'un clic sur le nom.                              */
.doc-filtres .doc-recherche{ flex:1 1 220px; }
.doc-filtres .st-dates{ margin-left:0; }
.doc-filtre-rub{ border:1px solid var(--bd); border-radius:9px; padding:6px 9px; font:inherit; font-size:13px; background:var(--sf); max-width:260px; }
.doc-filtre-nb{ margin:0; }
.doc-filtre-actif [data-doc="monter"], .doc-filtre-actif [data-doc="descendre"]{ visibility:hidden; }
.doc-nom-edit{ cursor:text; border-bottom:1px dashed transparent; }
.doc-nom-edit:hover, .doc-nom-edit:focus{ border-bottom-color:var(--mu); outline:none; }
.doc-nom-champ{ flex:1 1 auto; min-width:180px; border:1px solid var(--ac); border-radius:7px; padding:5px 8px; font:inherit; background:var(--sf); }

/*  Documents, 12/10/2026 : la fenêtre ✎ — le nom, le fichier actuel, et
    son remplacement. L'extension suit le fichier : elle est à côté du
    champ, pas dedans.                                                     */
.doc-fic-nom{ display:flex; align-items:center; gap:10px; margin-top:5px; }
.doc-fic-nom input{ flex:1 1 auto; min-width:0; margin-top:0 !important; }
.doc-fic-nom .doc-ext{ text-transform:none; }
.doc-fic-titre{ font-size:12.5px; font-weight:600; color:var(--t2); margin:0 0 8px; }
.doc-fic-carte{ display:flex; align-items:center; gap:14px; padding:12px 14px; margin-bottom:22px;
  border-radius:var(--r2); background:var(--sub); }
.doc-fic-vignette{ flex:0 0 auto; width:72px; height:54px; display:flex; align-items:center; justify-content:center;
  border-radius:8px; overflow:hidden; background:var(--sf); }
.doc-fic-vignette img{ width:100%; height:100%; object-fit:cover; display:block; }
.doc-fic-infos{ flex:1 1 auto; min-width:0; display:grid; gap:2px; }
.doc-fic-infos b{ font-weight:600; overflow-wrap:anywhere; }
.doc-fic-infos small{ color:var(--mu); font-size:12.5px; font-variant-numeric:tabular-nums; }
.doc-fic-carte .btn{ flex:0 0 auto; text-decoration:none; }
.doc-fic-depot{ margin-bottom:12px; }
.doc-fic-nouveau{ flex-wrap:wrap; background:var(--acs); }
.doc-fic-nouveau .doc-barre{ flex-basis:100%; }

/*  Documents, 13/10/2026 : la vidéo en tête de la page des destinataires.
    Une section à part, au-dessus des rubriques, en teinte d'accent légère
    (pas d'aplat) ; ▶ allumé dit qu'elle y est.                            */
.doc-en-tete{ padding:12px 14px 2px; border:1px solid color-mix(in oklab, var(--ac) 35%, transparent);
  border-radius:var(--r2); background:color-mix(in oklab, var(--ac) 6%, var(--sf)); }
.doc-en-tete .doc-rubrique-tete{ flex-wrap:wrap; }
.doc-en-tete-note{ flex-basis:100%; margin:2px 0 0; max-width:80ch; }
.doc-actions .doc-tete-btn{ font-size:11px; }
.doc-actions .doc-tete-btn.is-on{ background:var(--acs); border-color:var(--ac); color:var(--tx); }

/* ---------- Catalogue des matchs (08/10/2026) ----------
   Les vues reprennent `.period-filter` ; la recherche et les menus, ceux des
   Documents. Les équipes sont des pastilles séparées, sans ombre (arbitrage
   du 15/09 : l'ombre est réservée aux boutons d'action).                    */
.cat-filtres{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:0 0 12px; }
.cat-filtres .doc-recherche{ flex:1 1 220px; }
.cat-equipes{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.cat-equipe{ border:1px solid var(--bd); background:var(--sf); color:var(--t2); border-radius:999px;
  padding:5px 12px; font:inherit; font-size:13px; cursor:pointer; }
.cat-equipe.is-active{ background:var(--ac); border-color:var(--ac); color:#fff; }
.cat-compte{ display:inline-block; min-width:18px; margin-left:4px; padding:0 6px; border-radius:999px;
  background:var(--ac); color:#fff; font-size:11px; font-weight:600; line-height:18px; text-align:center; }
.cat-compte:empty{ display:none; }
.cat-etat{ margin:0 0 12px; }
.cat-table tr.cat-mois td{ background:var(--sub); color:var(--t2); font-size:12px; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase; padding-top:8px; padding-bottom:8px; }
.cat-j{ color:var(--mu); font-size:12px; margin-left:4px; }
.cat-fav, .cat-ga{ display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px;
  font-size:11px; font-weight:500; vertical-align:2px; }
.cat-fav{ background:var(--acs); color:var(--tx); }
.cat-ga{ background:#EFE6F8; color:#5b2a86; }
.cat-maj{ display:inline-block; margin-top:4px; padding:1px 9px; border-radius:999px; font-size:12px;
  font-weight:500; background:#E3EDF7; color:#2c5d8f; }
.cat-maj-disparu{ background:#F6D2CE; color:#922019; }
.cat-switch{ position:relative; display:inline-block; width:38px; height:22px; vertical-align:middle; }
.cat-switch input{ position:absolute; opacity:0; width:0; height:0; }
.cat-switch span{ position:absolute; inset:0; background:var(--dim); border-radius:999px; cursor:pointer; transition:background .15s; }
.cat-switch span::before{ content:""; position:absolute; left:3px; top:3px; width:16px; height:16px;
  border-radius:50%; background:#fff; transition:transform .15s; }
.cat-switch input:checked + span{ background:var(--ac); }
.cat-switch input:checked + span::before{ transform:translateX(16px); }
.cat-switch input:disabled + span{ cursor:not-allowed; opacity:.5; }
.cat-switch input:focus-visible + span{ outline:2px solid var(--ac); outline-offset:2px; }
.cat-plus{ display:block; margin:14px auto 0; }
.cat-ligues{ margin-top:22px; }
.cat-ligues summary{ cursor:pointer; font-weight:600; margin-bottom:10px; }

/* =========================================================================
   ONGLET CREATOR — 06/11/2026
   -------------------------------------------------------------------------
   Ce que l'app Mac Creator a exporté, à retrouver et télécharger depuis un
   téléphone. Pensé d'abord pour l'écran du téléphone : une carte par
   publication, la vignette au format story, des boutons de 44 px au doigt.
   ========================================================================= */
/* Le suivi de la publication sur Instagram et Facebook (06/11/2026) */
.cr-suivi{ margin:0 0 22px; }
.cs-verdict{ padding:14px 18px; border-radius:var(--r1); background:#E1F0DF; }
.cs-verdict b{ display:block; font-size:16px; font-weight:600; }
.cs-verdict p{ margin:4px 0 0; color:var(--t2); font-size:14px; }
.cs-verdict ul{ margin:6px 0 0; padding-left:18px; font-size:14px; }
.cs-verdict li{ margin:2px 0; }
.cs-verdict.attention{ background:var(--acs); }
.cs-verdict.probleme{ background:#FBE1DC; }
.cs-verdict li.rouge{ font-weight:600; color:#9A2414; }
.cs-cartes{ display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:10px; margin:12px 0 4px; }
.cs-carte{ padding:12px 14px; border:1px solid var(--bd); border-radius:var(--r2); background:var(--sf); }
.cs-tete{ margin:0 0 3px; font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--mu); }
.cs-gros{ margin:0 0 2px; font-size:16px; font-weight:600; }
.cs-petit{ margin:0; font-size:12.5px; color:var(--t2); }
.cs-carte .cs-gros::before{ content:''; display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; background:#3E9A3A; vertical-align:2px; }
.cs-carte.non .cs-gros::before{ background:var(--ac); }
.cs-titre{ margin:16px 0 6px; font-size:13px; font-weight:600; color:var(--t2); }
.cs-liste{ list-style:none; margin:0; padding:0; border:1px solid var(--bd); border-radius:var(--r2); background:var(--sf); }
.cs-liste li{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:9px 14px; border-bottom:1px solid var(--bd); font-size:13.5px; }
.cs-liste li:last-child{ border-bottom:0; }
.cs-quand{ color:var(--mu); min-width:190px; }
.cs-nom{ flex:1; min-width:180px; font-weight:500; overflow-wrap:anywhere; }
.cs-nom em{ font-style:normal; color:var(--ac-strong); font-weight:400; }
.cs-res{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--t2); }
.cs-p{ display:inline-block; padding:2px 9px; border-radius:var(--rp); background:var(--sub); font-size:12px; font-weight:500; color:var(--t2); }
.cs-p.ok{ background:#E1F0DF; color:var(--tx); }
.cs-p.non{ background:#FBE1DC; color:#9A2414; }
.cs-p.cours{ background:#E6EEF8; color:var(--tx); }
.cs-pied{ margin:10px 0 0; font-size:12.5px; color:var(--mu); }
.cr-jour{ margin:26px 0 10px; font-size:13px; font-weight:600; color:var(--t2); }
.cr-jour:first-child{ margin-top:4px; }
.cr-cartes{ display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:12px; }
.cr-carte{
  display:flex; gap:16px; min-width:0; padding:14px;
  background:var(--sf); border-radius:var(--radius); box-shadow:var(--sh1);
}
.cr-vignette{
  position:relative; flex:0 0 72px; width:72px; height:128px; padding:0;
  border:none; border-radius:10px; overflow:hidden; cursor:pointer; background:var(--sub);
}
.cr-vignette img{ display:block; width:100%; height:100%; object-fit:cover; }
.cr-vignette.cr-sans{ background:var(--tx); }
.cr-vignette.cr-sans img{ object-fit:contain; }
.cr-lecture{
  position:absolute; left:6px; bottom:6px; width:24px; height:24px; padding-left:2px;
  display:grid; place-items:center; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--tx); font-size:10px;
}
.cr-sans .cr-lecture{ left:50%; top:50%; bottom:auto; transform:translate(-50%,-50%); width:34px; height:34px; font-size:13px; }
.cr-infos{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.cr-sur{ font-size:11px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--ac); }
.cr-nom{ font-size:15.5px; font-weight:600; line-height:1.3; overflow-wrap:anywhere; }
.cr-meta{ margin:0; font-size:13px; color:var(--mu); }
/*  Pastille claire, chiffre foncé : pas d'aplat pour un simple signalement. */
.cr-tag{
  align-self:flex-start; margin:4px 0 0; padding:2px 10px; border-radius:var(--rp);
  background:#FBEBD3; color:#6B4510; font-size:12px; font-weight:500;
}
.cr-actions{ margin-top:auto; padding-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.cr-actions .btn, .cr-boutons .btn{
  display:inline-flex; align-items:center; justify-content:center;
  line-height:1.2; text-decoration:none;
}
.cr-actions .btn{ padding:8px 14px; font-size:13px; }
.cr-actions .btn.primary{ padding:8px 16px; }
/*  « Prêt : toucher ici » : le fichier est arrivé, Safari attend un second
    toucher pour ouvrir le menu. Le bouton doit se voir.  */
.btn.cr-pret{ background:var(--ac); color:#fff; box-shadow:var(--shac); animation:cr-pret .9s ease-in-out infinite alternate; }
@keyframes cr-pret{ from{ transform:scale(1); } to{ transform:scale(1.04); } }

/* ---- La fenêtre d'une publication ---- */
.cr-fenetre{ width:min(860px,100%); }
.cr-titres{ min-width:0; }
.cr-titres h3{ overflow-wrap:anywhere; }
.cr-voir{ display:grid; grid-template-columns:minmax(0, 300px) 1fr; gap:24px; align-items:start; }
.cr-voir-media{ aspect-ratio:9/16; border-radius:12px; overflow:hidden; background:var(--tx); }
.cr-grand{ display:block; width:100%; height:100%; object-fit:contain; background:var(--tx); }
.cr-damier{ background:repeating-conic-gradient(#3a3d40 0% 25%, #2a2d30 0% 50%) 50% / 20px 20px; }
.cr-voir-infos{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.cr-voir-infos .status-note{ margin:0; }
.cr-fichier{ margin:0; font-family:var(--police-donnees); font-size:12px; color:var(--t2); overflow-wrap:anywhere; }
.cr-boutons{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 2px; }
.cr-desc{ margin-top:12px; padding:12px 14px; border-radius:var(--r2); background:var(--sub); }
.cr-desc-tete{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--mu);
}
.cr-desc-tete .btn{ padding:6px 14px; font-size:12.5px; letter-spacing:0; text-transform:none; }
.cr-desc p{ margin:8px 0 0; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.cr-autres{ margin-top:12px; display:flex; flex-wrap:wrap; gap:4px 14px; font-size:13px; }
.cr-autres span{ width:100%; font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--mu); }
.cr-autres a{ color:var(--t2); }

@media (max-width:640px){
  .cr-cartes{ grid-template-columns:1fr; }
  .cr-carte{ gap:14px; padding:12px; }
  /*  Au doigt : 44 px de haut.  */
  .cr-actions .btn{ padding:12px 16px; font-size:14px; }
  .cr-voir{ grid-template-columns:1fr; gap:16px; }
  .cr-voir-media{ width:min(100%, calc(58vh * 9 / 16)); margin:0 auto; }
  .cr-boutons .btn{ flex:1 1 auto; padding:13px 18px; font-size:15px; }
}


/* =========================================================================
   SIX SECTIONS, DEUX NIVEAUX — 17/11/2026, demandé par Gabriel
   -------------------------------------------------------------------------
   Événements · Matchs · Site · Communication · Gestion · Documents, chacune
   avec ses sous-sections (les `.tab`). Ordinateur : tout est déplié, les
   titres de section en petites capitales. Téléphone et tablette (≤ 1024 px) :
   une bande des six sections, et sous elle les sous-sections de la section
   ouverte (`.rail-groupe.is-ouvert`, posé par `ouvrirSection` dans admin.js).
   ========================================================================= */
.rail-sections{ display:none; }
.rail-groupe{ display:flex; flex-direction:column; gap:2px; }
.rail-groupe[hidden], .rail-sec[hidden]{ display:none !important; }
.rail-groupe + .rail-groupe{ margin-top:10px; }
/* Les titres de section en encre et plus gras (17/11/2026, demande de Gabriel :
   « qu'on voit la différence » avec les sous-sections, en gris). La section
   ouverte garde la couleur de la halle. */
.rail-groupe .rail-titre{ padding:0 14px 6px; color:var(--tx); font-weight:700; font-size:11.5px; }
.rail-groupe.is-ouvert .rail-titre{ color:var(--ac-strong); }
.rail-groupe .tab{ padding:7px 14px; font-size:14px; }
/* Une section sans sous-section (Documents) : son titre est l'onglet. Il a
   l'allure des autres titres, et la marque d'un onglet ouvert. */
.rail-groupe .tab.rail-titre-tab{
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:var(--tx);
}
.rail-groupe .tab.rail-titre-tab.is-active{ color:var(--ac-strong); }

/*  ⚠️ LE RAIL DÉFILE SUR UN PETIT ÉCRAN D'ORDINATEUR. Quinze sous-sections et
    six titres font près de 800 px : collé en haut (`sticky`), un rail plus
    haut que la fenêtre cacherait « Déconnexion » pour de bon.  */
.rail{ height:calc(100vh - var(--topbar-h)); overflow-y:auto; padding-top:20px; }

@media (max-width:1024px){
  /*  Deux lignes : les six sections sur toute la largeur, puis les
      sous-sections de la section ouverte, avec « Déconnexion » au bout.  */
  .rail{
    display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center;
    height:auto; overflow:visible; row-gap:0; padding:8px 16px;
  }
  .rail-sections{
    display:flex; gap:4px; overflow-x:auto; grid-column:1 / -1; grid-row:1;
    margin:0 -16px; padding:0 16px 8px; border-bottom:1px solid var(--bd);
    scrollbar-width:none;
  }
  .rail-sections::-webkit-scrollbar{ display:none; }
  .rail-sec{
    flex:0 0 auto; border:none; background:transparent; cursor:pointer;
    padding:9px 13px; border-radius:10px; white-space:nowrap;
    font-family:inherit; font-size:14.5px; font-weight:600; color:var(--tx);
  }
  .rail-sec.is-active{ background:var(--acs); color:var(--tx); font-weight:600; }
  .rail-pied{ grid-column:2; grid-row:2; margin-top:8px; }
  .rail-groupe{ display:none; }
  .rail-groupe + .rail-groupe{ margin-top:0; }
  .rail-groupe.is-ouvert{
    display:flex; flex-direction:row; gap:4px; overflow-x:auto;
    grid-column:1; grid-row:2; margin-top:8px;
    scrollbar-width:none;
  }
  .rail-groupe.is-ouvert::-webkit-scrollbar{ display:none; }
  .rail-groupe .tab{ font-size:13.5px; padding:8px 12px; }
  /* Sur téléphone, le bouton de la bande des sections suffit : pas de
     seconde bande pour une section sans sous-section. */
  .rail-groupe.rail-seul.is-ouvert{ display:none; }
}
@media (max-width:640px){
  .rail-sec{ padding:10px 12px; font-size:14px; min-height:44px; }
  .rail-groupe .tab{ min-height:40px; }
}

/* Dernières MAJ = le Catalogue sur sa vue « Mis à jour · 7 j » (17/11/2026) :
   pas de boutons de vue là ; et le Catalogue ne propose plus cette vue. */
[data-panel="catalogue"][data-mode="maj"] .panel-filtres{ display:none; }
[data-panel="catalogue"]:not([data-mode="maj"]) #catVue [data-vue="maj"]{ display:none; }

/* =========================================================================
   CALENDRIER — 17/11/2026 : les 30 prochains jours, du lundi au dimanche
   -------------------------------------------------------------------------
   Pastilles claires, jamais d'aplats : une soirée dans l'accent doux de la
   halle, un match en gris (il vaut pour les deux halles, comme l'étiquette
   « Retransmission » du Listing). Sur un téléphone, la grille devient la
   liste des jours qui ont quelque chose.
   ========================================================================= */
.cal-tete, .cal-grille{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.cal-tete{
  margin-bottom:6px; padding:0 8px;
  font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.1em; color:var(--mu);
}
.cal-jour{
  min-width:0; min-height:112px; padding:8px 8px 10px;
  display:flex; flex-direction:column; gap:4px;
  background:var(--sf); border-radius:var(--r2); box-shadow:var(--sh1);
}
.cal-jour.est-hors{ background:transparent; box-shadow:none; border:1px dashed var(--dim); opacity:.6; }
.cal-jour.est-auj{ box-shadow:inset 0 0 0 2px var(--ac); }
.cal-num{
  display:flex; align-items:baseline; flex-wrap:wrap; gap:5px; margin-bottom:2px;
  font-size:16px; font-weight:600; color:var(--tx);
}
.cal-jour.est-hors .cal-num{ color:var(--mu); }
.cal-mois{ font-family:inherit; font-size:12px; font-weight:500; color:var(--mu); }
.cal-jsem{ display:none; }
.cal-auj{
  margin-left:auto;
  font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--ac-strong);
}
.cal-ev{
  display:flex; align-items:flex-start; gap:6px; width:100%; min-width:0;
  padding:5px 7px; border:none; border-radius:8px; cursor:pointer; text-align:left;
  font-family:inherit; font-size:12.5px; line-height:1.3; color:var(--tx);
}
.cal-ev.est-soiree{ background:var(--acs); }
.cal-ev.est-match{ background:var(--sub); }
.cal-ev:hover{ box-shadow:inset 0 0 0 1px var(--dim); }
.cal-ev:focus-visible{ outline:2px solid var(--ac); outline-offset:1px; }
.cal-h{ flex:0 0 auto; font-family:var(--police-donnees); font-size:11px; color:var(--t2); padding-top:1px; }
.cal-n{
  min-width:0; overflow:hidden; word-break:break-word;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.cal-ev.est-annule .cal-n{ text-decoration:line-through; color:var(--mu); }
.cal-ev.est-reporte .cal-n, .cal-ev.est-attente .cal-n{ color:var(--t2); font-style:italic; }
.cal-etoile{ color:var(--ac-strong); }
.cal-recur{ color:var(--mu); }
.cal-rien{ margin-top:16px; }

@media (max-width:640px){
  .cal-tete{ display:none; }
  .cal-grille{ display:flex; flex-direction:column; gap:8px; }
  .cal-jour{ min-height:0; padding:12px 14px; gap:6px; }
  .cal-jour.est-hors, .cal-jour.est-vide:not(.est-auj){ display:none; }
  .cal-jsem{ display:inline; text-transform:capitalize; font-weight:500; color:var(--t2); }
  .cal-ev{ min-height:44px; align-items:center; padding:8px 10px; font-size:14px; }
  .cal-h{ font-size:12px; padding-top:0; }
  .cal-n{ -webkit-line-clamp:3; }
}


/* =========================================================================
   DOCUMENTS : LES NOMS DE GROUPE LONGS — 17/11/2026, relevé par Gabriel
   -------------------------------------------------------------------------
   « GROUPE ROMAGNOLI / HALLES VEDASIENNES + PARKING » sortait de la carte :
   `.st-rail .sous-onglet` interdit le retour à la ligne (`nowrap`), ce qui
   convient aux noms courts des Statistiques, pas à ceux que Greg tape. Ici
   seulement : le nom passe à la ligne, le nombre reste en haut à droite.
   ========================================================================= */
#docRail .sous-onglet{
  display:flex; align-items:flex-start; gap:10px;
  white-space:normal; overflow-wrap:anywhere; line-height:1.35;
}
#docRail .doc-compte{ float:none; flex:0 0 auto; margin-left:auto; padding-top:1px; }
@media (max-width:860px){
  /* Sur un écran étroit, la colonne devient une rangée qui défile : chaque
     groupe garde une largeur raisonnable et passe à la ligne au-delà. */
  #docRail .sous-onglet{ flex:0 0 auto; max-width:260px; }
}

/* =========================================================================
   DOCUMENTS : LE BOUT DE LIGNE DE L’ARCHIVE — 17/11/2026, relevé par Gabriel
   -------------------------------------------------------------------------
   L’étiquette « GROUPE ROMAGNOLI / HALLES VEDASIENNES + PARKING › PARKING …»
   ne passait pas à la ligne (`nowrap`) : le tableau s’élargissait au-delà
   de sa carte, qui coupe ce qui dépasse (`.table-wrap{overflow:hidden}`),
   et les boutons de fin de ligne (ouvrir, télécharger, +, ✎, 🗑) sortaient
   de l’écran. L’étiquette passe maintenant à la ligne ; et si un tableau de
   Documents dépasse encore, il défile de côté au lieu d’être coupé.
   ========================================================================= */
.doc-table .doc-groupe-tag{ white-space:normal; overflow-wrap:break-word; max-width:100%; line-height:1.35; border-radius:10px; }
/* Pour que la colonne Groupes ne se réduise pas à quelques lettres, elle garde
   170 px ; le nom du document cède un peu de place (180 px au lieu de 220).
   Les deux réunis tiennent dans la carte d'un écran de 1 280 px. */
.doc-archive-table td:nth-child(4){ min-width:170px; }
.doc-archive-table td:first-child .doc-nom{ min-width:180px; }
#docMain .table-wrap{ overflow-x:auto; }


/* =========================================================================
   PETITS ÉCRANS — CENTRAL SUR iPHONE ET iPAD (17/11/2026, demandé par Gabriel)
   -------------------------------------------------------------------------
   Étape 1 (déposée le 17/11) : plus aucun tableau coupé. Puis, le même soir,
   « tout le reste » de la maquette validée (docs 2/ressources/présensation/
   central-iphone-ipad) : menu en un geste, en-tête compact, sous-pages en
   boutons, filtres sur une ligne, « + » et « ⋯ », fiche plein écran,
   calendrier en petit mois, et sur iPad la fiche à droite de la liste.

   Tout est piloté par des classes que `assets/js/petits-ecrans.js` pose sur
   <html> (admin.js n'est pas touché) :
     html.pe-tel    téléphone, ou tablette tactile de 1 024 px ou moins ;
     html.pe-ipad   tablette tactile plus large (iPad en largeur) ;
     html.pe-cartes les tableaux deviennent des cartes (pe-tel ; pe-ipad
                    quand la fiche est ouverte à droite) ;
     html.pe-fiche  iPad : la fiche d'un événement est ouverte à droite.
   Sur un ordinateur, aucune de ces classes : rien ne change à l'œil, sauf un
   tableau trop large qui défile au lieu d'être coupé (règle 1).
   Pour essayer sur un ordinateur : `?pe=tel` ou `?pe=ipad` dans l'adresse.
   ========================================================================= */

/* 1. Partout : un tableau trop large DÉFILE au lieu d'être coupé (les
      arrondis restent : tout `overflow` autre que `visible` découpe aux coins). */
.table-wrap{ overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; }

/* 2. La colonne des boutons, quand elle termine la ligne, reste collée au bord
      droit pendant ce défilement ; une ombre la souligne tant que le tableau
      déborde (marque `tc-deborde` posée par le script). Sur un ordinateur, où
      le tableau tient dans sa carte, elle reste nue. */
.tc-wrap table.tc th.tc-actions,
.tc-wrap table.tc td.tc-actions{ position:sticky; right:0; z-index:1; background:var(--sf); }
.tc-wrap table.tc tr:hover td.tc-actions{ background:var(--sub); }
.tc-wrap.tc-deborde table.tc th.tc-actions,
.tc-wrap.tc-deborde table.tc td.tc-actions{ box-shadow:-12px 0 12px -12px rgba(22,32,27,.28); }

/* Les éléments ajoutés par le script n'existent qu'au doigt. */
.pe-section, .pe-plus, .pe-pilule, .pe-fab, .pe-cal-detail{ display:none; }

/* 3. Au doigt, les couleurs relues avec les règles d'Apple : le blanc sur
      l'orange vif des Védasiennes (#FF6B1A) ne fait que 2,85:1. Les aplats
      prennent l'orange fort de Central (#D9530A, 4,04:1 avec un texte gras),
      le texte d'accent un orange plus sombre. L'ordinateur garde ses couleurs.
      L'étoile éteinte, presque invisible (#C7CCD1, 1,6:1), passe en gris lisible. */
html.pe-tel:not([data-halle="h610"]):not([data-halle="groupe"]),
html.pe-ipad:not([data-halle="h610"]):not([data-halle="groupe"]){ --ac:#D9530A; --ac-strong:#B8450A; }
html.pe-tel button.ev-etoile:not(.est-en-avant),
html.pe-ipad button.ev-etoile:not(.est-en-avant){ color:#7D838A; }

/* -------------------------------------------------------------------------
   4. L'EN-TÊTE (pe-tel) : une ligne. Le nom de la section ouvre le menu ;
      la halle à droite, en court. Le nom du compte et « Déconnexion » sont
      dans le menu.
   ------------------------------------------------------------------------- */
html.pe-tel .topbar{ flex-wrap:nowrap; min-height:0; gap:8px; padding:6px 12px 6px 14px; }
html.pe-tel .topbar .brand,
html.pe-tel .topbar .user-box{ display:none; }
html.pe-tel .pe-section{
  display:flex; align-items:center; gap:7px; min-width:0; min-height:44px;
  margin:0; padding:4px 4px 4px 0; border:0; background:none; cursor:pointer;
  font-family:inherit; font-size:22px; font-weight:700; letter-spacing:-.025em; color:var(--tx);
}
html.pe-tel .pe-s-nom{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html.pe-tel .pe-chev{ flex:none; width:22px; height:22px; border-radius:50%; background:var(--sub); display:grid; place-items:center; }
html.pe-tel .pe-chev svg{ width:11px; height:11px; }
html.pe-tel .halle-switch{ order:0; flex:none; width:auto; margin:0 0 0 auto; padding:3px; }
html.pe-tel .hs-btn{ min-width:48px; height:36px; padding:0 13px; font-size:0; }
html.pe-tel .hs-btn::after{ content:attr(data-court); font-size:13.5px; }

/* 5. LES SOUS-PAGES (pe-tel) : une barre de boutons sous l'en-tête, collée
      en haut pendant le défilement. Les six sections sont dans le menu. */
html.pe-tel .rail{
  position:sticky; top:var(--pe-tete, 56px); z-index:19; display:block;
  height:auto; min-height:0; padding:8px 12px; overflow:visible;
  background:rgba(255,255,255,.96); border:0; border-bottom:1px solid var(--bd);
}
html.pe-tel .rail.pe-sans-sous{ display:none; }
html.pe-tel .rail-sections,
html.pe-tel .rail-pied{ display:none !important; }
html.pe-tel .rail-groupe{ display:none; }
html.pe-tel .rail-groupe.is-ouvert{
  display:flex; gap:2px; margin:0; padding:2px; overflow:visible;
  background:var(--sub); border-radius:10px;
}
html.pe-tel .rail-groupe.is-ouvert .rail-titre{ display:none; }
html.pe-tel .rail-groupe.is-ouvert .tab{
  flex:1 1 0; min-width:0; min-height:36px; padding:6px 4px; border-radius:8px;
  background:transparent; box-shadow:none; color:var(--t2);
  font-size:13.5px; font-weight:500; text-align:center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
html.pe-tel .rail-groupe.is-ouvert .tab.is-active{
  background:var(--sf); color:var(--tx); font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.12);
}
html.pe-tel .rail-groupe.is-ouvert .tab[hidden]{ display:none; }

/* 6. LE HAUT D'UNE PAGE (pe-tel) : le titre est déjà dans l'en-tête et la
      barre des sous-pages ; il reste le résumé, et « ⋯ » à droite. Les
      boutons de la page sont retirés de la vue, pas de la page : « ⋯ » et
      « + » appuient sur eux. */
html.pe-tel .content{ padding:12px 12px 112px; }
html.pe-tel .panel-head{ flex-wrap:nowrap; align-items:center; gap:10px; margin-bottom:10px; min-height:40px; }
html.pe-tel .panel-head h2{ display:none; }
html.pe-tel .panel-head .ph-titre{ flex:1; min-width:0; }
html.pe-tel .panel-head .ph-resume{ margin:0; font-size:13px; }
html.pe-tel .panel-head .head-actions{
  position:absolute !important; width:1px; height:1px; margin:0; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}
html.pe-tel .pe-plus:not([hidden]){
  display:grid; place-items:center; flex:none; margin-left:auto; width:40px; height:40px;
  border:1px solid var(--bd); border-radius:50%; background:var(--sf);
  font-size:20px; line-height:1; color:var(--t2); cursor:pointer;
}

/* 7. LES FILTRES (pe-tel) : un groupe de plus de trois choix devient un
      bouton (« 30 prochains jours ▾ ») ; les petits groupes restent en
      boutons, de largeur égale. Le « Mois précis » passe dans la feuille. */
html.pe-tel .panel-filtres{ gap:8px; margin-bottom:12px; }
html.pe-tel .period-filter.pe-groupe-replie{ display:none; }
html.pe-tel .panel-filtres > .month-pick{ display:none; }
html.pe-tel .pe-pilule{
  display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 14px;
  border:1px solid var(--bd); border-radius:999px; background:var(--sf); cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:600; color:var(--tx);
}
html.pe-tel .pe-pilule svg{ width:10px; height:10px; }
/*  La période d'abord, puis les petits groupes (comme dans la maquette). */
html.pe-tel .panel-filtres > .pe-pilule{ order:-1; }
html.pe-tel .period-filter:not(.pe-groupe-replie){ flex:1 1 auto; }
html.pe-tel .period-filter:not(.pe-groupe-replie) .pf-btn{ flex:1 1 0; min-height:34px; }

/* 8. LE BOUTON « + » (pe-tel) : le bouton principal de la page, en bas à droite. */
html.pe-tel .pe-fab:not([hidden]){
  display:grid; place-items:center; position:fixed; z-index:30;
  right:16px; bottom:calc(16px + env(safe-area-inset-bottom));
  width:56px; height:56px; border:0; border-radius:50%; cursor:pointer;
  background:var(--ac); color:#fff; font-size:30px; font-weight:300; line-height:1;
  box-shadow:0 6px 16px color-mix(in srgb, var(--ac) 40%, transparent);
}

/* 9. LES FEUILLES (menu, période, autres actions) : elles montent du bas,
      « Fermer » à gauche, et se ferment aussi en les tirant vers le bas. */
.pe-voile{ position:fixed; inset:0; z-index:70; background:rgba(10,12,14,.32); opacity:0; transition:opacity .25s; }
.pe-voile.pe-vu{ opacity:1; }
.pe-feuille{
  position:fixed; z-index:71; left:0; right:0; bottom:0; max-width:640px; margin:0 auto;
  max-height:calc(100% - 24px); display:flex; flex-direction:column;
  background:var(--sf); border-radius:16px 16px 0 0; box-shadow:0 -12px 40px rgba(0,0,0,.18);
  padding-bottom:env(safe-area-inset-bottom);
  transform:translateY(102%); transition:transform .32s cubic-bezier(.2,.85,.25,1);
}
.pe-feuille.pe-vu{ transform:none; }
.pe-poignee{ position:relative; flex:none; width:36px; height:5px; margin:7px auto 0; border-radius:3px; background:#C9CDD1; }
.pe-poignee::after{ content:""; position:absolute; inset:-8px -40px; }
.pe-poignee, .pe-f-tete{ touch-action:none; }
.pe-f-tete{ flex:none; display:grid; grid-template-columns:84px 1fr 84px; align-items:center; padding:2px 12px 6px; }
.pe-f-tete b{ text-align:center; font-size:16.5px; font-weight:650; }
.pe-fermer{
  justify-self:start; min-height:44px; padding:8px 4px; border:0; background:none; cursor:pointer;
  font-family:inherit; font-size:16px; color:var(--ac-strong);
}
.pe-f-corps{ overflow-y:auto; padding:0 16px 20px; -webkit-overflow-scrolling:touch; }
html.pe-feuille-ouverte, html.pe-feuille-ouverte body{ overflow:hidden; }
@media (prefers-reduced-motion:reduce){ .pe-voile, .pe-feuille{ transition:none; } }

.pe-m-groupe{ padding:8px 0 9px; border-top:1px solid var(--sub); }
.pe-m-groupe:first-child{ border-top:0; padding-top:2px; }
.pe-m-titre{ padding:0 2px 6px; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--tx); }
.pe-m-liste{ display:flex; flex-wrap:wrap; gap:6px; }
.pe-m-page{
  height:40px; padding:0 11px; border:0; border-radius:11px; background:var(--sub); cursor:pointer;
  font-family:inherit; font-size:14px; color:var(--tx);
}
.pe-m-page.pe-actif{ background:var(--acs); box-shadow:inset 0 0 0 1.5px var(--ac); font-weight:650; }
.pe-m-pied{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:4px; padding-top:10px; border-top:1px solid var(--sub); font-size:14px; color:var(--mu); }
.pe-m-pied a{ padding:10px 0; font-size:15px; color:#B3261E; text-decoration:none; }

.pe-liste{ background:var(--bg); border-radius:12px; overflow:hidden; }
.pe-liste button{
  display:flex; align-items:center; width:100%; min-height:48px; padding:0 14px; cursor:pointer;
  border:0; border-top:1px solid var(--bd); background:none; text-align:left;
  font-family:inherit; font-size:16px; color:var(--tx);
}
.pe-liste button:first-child{ border-top:0; }
.pe-coche{ margin-left:auto; font-weight:700; color:var(--ac-strong); }
.pe-mois{ margin-top:14px; }
.pe-mois .month-pick{ display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:15px; }
.pe-mois .month-pick input{ min-height:44px; font-size:16px; }

/* -------------------------------------------------------------------------
   10. LES CARTES (pe-cartes) : une ligne de tableau = une carte. Le nom de la
       colonne à gauche, la valeur à droite ; les boutons en bas. Le Listing,
       les Retransmissions, le Catalogue et les Documents ont leur carte.
       Les grilles des Statistiques (`.st-grid`) et le journal des Comptes
       (`.jr-table`, déjà adapté) gardent leur forme.
   ------------------------------------------------------------------------- */
html.pe-cartes .tc-wrap{ background:none; border:0; border-radius:0; box-shadow:none; overflow:visible; }
html.pe-cartes table.tc{ display:block; width:100%; min-width:0 !important; }
html.pe-cartes table.tc > thead{ display:none; }
html.pe-cartes table.tc > tbody{ display:block; }
html.pe-cartes table.tc > tbody > tr{
  display:block; position:relative; margin:0 0 10px; padding:10px 14px;
  background:var(--sf); border-radius:var(--r2); box-shadow:var(--sh1);
}
html.pe-cartes table.tc > tbody > tr.tc-fiche{ cursor:pointer; }
/*  `table.grid.tc` : plus fort que les marges propres à certains tableaux
    (Concours : `table.grid.cc-table td`). */
html.pe-cartes table.grid.tc > tbody > tr > td{
  display:block; position:relative; width:auto; min-width:0; max-width:none;
  padding:5px 0; border:0; text-align:left; white-space:normal; overflow-wrap:anywhere;
  background:none !important;
}
html.pe-cartes table.tc > tbody > tr > td[data-label]{ padding-left:102px; min-height:30px; }
html.pe-cartes table.tc > tbody > tr > td[data-label]::before{
  content:attr(data-label); position:absolute; left:0; top:7px; width:92px;
  font-family:var(--police); font-style:normal; font-size:12px; font-weight:600; line-height:1.3;
  letter-spacing:0; text-transform:none; color:var(--mu); white-space:normal;
}
html.pe-cartes table.tc > tbody > tr > td:empty{ display:none; }
/*  Une longue adresse e-mail (Diffusion) ne doit pas élargir la carte. */
html.pe-cartes table.tc > tbody > tr > td > *{ max-width:100%; }
html.pe-cartes table.tc .ed{ min-width:0; overflow-wrap:anywhere; word-break:break-word; }
/*  Une carte qui a sa fiche s'ouvre d'un toucher : ses textes modifiables
    sur place laissent passer le toucher (on modifie dans la fiche). Une
    ligne sans fiche (adresse d'un étalier, Diffusion) reste modifiable sur place. */
html.pe-cartes table.tc tr.tc-fiche .ed{ pointer-events:none; }
html.pe-cartes table.tc > tbody > tr > td.hide-sm{ display:block; }
html.pe-cartes table.tc > tbody > tr > td.tc-plein{ padding:6px 0; }
html.pe-cartes table.tc > tbody > tr > td.tc-actions{
  position:static; margin-top:6px; padding-top:10px; border-top:1px solid var(--sub); box-shadow:none;
}
html.pe-cartes table.tc .row-actions{ justify-content:flex-start; flex-wrap:wrap; gap:8px; }
html.pe-cartes table.tc .icon-btn{ width:40px; height:40px; font-size:16px; }
html.pe-cartes table.tc tr:hover td{ background:none; }

/* ---- Le Listing : la date à gauche, l'événement puis l'horaire au centre,
        le visuel en haut à droite ; en bas, l'état et les boutons. ---- */
html.pe-cartes table.tc > #eventsBody > tr{
  display:grid; grid-template-columns:46px minmax(0,1fr) 40px; grid-template-rows:auto auto auto;
  column-gap:12px; row-gap:2px; align-items:start; padding:12px 12px 10px 14px;
}
html.pe-cartes table.tc > #eventsBody > tr > td[data-label]{ padding-left:0; min-height:0; }
html.pe-cartes table.tc > #eventsBody > tr > td[data-label]::before{ content:none; }
html.pe-cartes #eventsBody > tr > td.cell-date{ grid-column:1; grid-row:1 / 3; padding:0; }
html.pe-cartes #eventsBody .cell-date .d-num{ display:block; margin:0; font-size:24px; }
html.pe-cartes #eventsBody .cell-date .d-jour{ display:block; margin-top:3px; }
html.pe-cartes #eventsBody > tr > td.cell-hour{ grid-column:2; grid-row:2; padding:4px 0 0; font-size:12.5px; }
html.pe-cartes #eventsBody > tr > td.cell-event{ grid-column:2; grid-row:1; padding:0; }
html.pe-cartes #eventsBody .ev-nom{ font-size:15.5px; font-weight:600; }
html.pe-cartes #eventsBody > tr > td.cell-visuel{ grid-column:3; grid-row:1 / 3; padding:0; }
html.pe-cartes #eventsBody .ev-visuel{ width:40px; height:40px; }
html.pe-cartes #eventsBody > tr > td.cell-etat{ grid-column:1 / 3; grid-row:3; justify-self:start; align-self:center; padding:10px 0 0; }
html.pe-cartes #eventsBody > tr > td.cell-actions{ grid-column:2 / 4; grid-row:3; justify-self:end; margin:0; padding:6px 0 0; border:0; }
html.pe-cartes #eventsBody .cell-actions .row-actions{ justify-content:flex-end; gap:6px; }
html.pe-cartes #eventsBody button.ev-etoile{ width:40px; height:40px; font-size:18px; }

/* ---- Les Retransmissions : la date et l'heure, l'état à droite ; l'affiche
        en gras ; le sport et la compétition ; les boutons. ---- */
html.pe-cartes table.tc > #retransBody > tr{
  display:flex; flex-wrap:wrap; align-items:baseline; column-gap:10px; padding:12px 14px 10px;
}
html.pe-cartes table.tc > #retransBody > tr > td[data-label]{ padding-left:0; min-height:0; }
html.pe-cartes table.tc > #retransBody > tr > td[data-label]::before{ content:none; }
html.pe-cartes #retransBody > tr > td:nth-child(1){ order:1; padding:0; font-weight:600; }
html.pe-cartes #retransBody > tr > td:nth-child(2){ order:2; padding:0; }
html.pe-cartes #retransBody > tr > td:nth-child(6){ order:3; padding:0; margin-left:auto; align-self:center; }
html.pe-cartes #retransBody > tr > td:nth-child(5){ order:4; flex-basis:100%; padding:8px 0 0; font-size:16px; font-weight:600; }
html.pe-cartes #retransBody > tr > td:nth-child(3){ order:5; padding:2px 0 0; font-size:13px; color:var(--t2); }
html.pe-cartes #retransBody > tr > td:nth-child(4){ order:6; padding:2px 0 0; font-size:13px; color:var(--t2); }
html.pe-cartes table.tc > #retransBody > tr > td:nth-child(4):not(:empty)::before{ content:"·\00a0"; position:static; width:auto; font:inherit; color:inherit; }
html.pe-cartes #retransBody > tr > td:nth-child(7){ order:7; flex-basis:100%; }

/* ---- Le Catalogue : même lecture, l'interrupteur « Au planning » en haut à
        droite ; les lignes de mois redeviennent de simples titres. ---- */
html.pe-cartes table.tc > #catBody > tr:not(.cat-mois){
  display:flex; flex-wrap:wrap; align-items:baseline; column-gap:10px; padding:12px 14px;
}
html.pe-cartes table.tc > #catBody > tr:not(.cat-mois) > td[data-label]{ padding-left:0; min-height:0; }
html.pe-cartes table.tc > #catBody > tr:not(.cat-mois) > td[data-label]::before{ content:none; }
html.pe-cartes #catBody > tr > td:nth-child(1){ order:1; padding:0; font-weight:600; }
html.pe-cartes #catBody > tr > td:nth-child(2){ order:2; padding:0; }
html.pe-cartes #catBody > tr > td:nth-child(5){ order:3; padding:0; margin-left:auto; align-self:center; }
html.pe-cartes #catBody > tr > td:nth-child(4){ order:4; flex-basis:100%; padding:6px 0 0; font-size:16px; font-weight:600; }
html.pe-cartes #catBody > tr > td:nth-child(3){ order:5; flex-basis:100%; padding:2px 0 0; font-size:13px; color:var(--t2); }
html.pe-cartes table.tc > #catBody > tr.cat-mois{ background:none; box-shadow:none; padding:14px 2px 4px; margin:0; }

/* ---- Les Documents : le nom du fichier en tête de carte, sur toute la
        largeur, sans les largeurs minimales du tableau d'ordinateur. ---- */
html.pe-cartes table.tc.doc-table > tbody > tr > td:first-child{ padding-left:0; padding-bottom:8px; }
html.pe-cartes table.tc.doc-table > tbody > tr > td:first-child::before{ content:none; }
html.pe-cartes table.tc.doc-table td:first-child .doc-nom{ min-width:0; flex-wrap:wrap; row-gap:6px; font-weight:600; }
html.pe-cartes table.tc.doc-archive-table > tbody > tr > td{ min-width:0; }

/* -------------------------------------------------------------------------
   11. LES FICHES (pe-tel) : elles montent du bas et prennent l'écran ; le
       bouton Enregistrer reste visible en bas pendant qu'on fait défiler.
       La fenêtre Visuel (générateur) prend tout l'écran.
   ------------------------------------------------------------------------- */
html.pe-tel .modal-backdrop{ padding:0; place-items:end stretch; }
html.pe-tel .modal{ width:100%; max-width:none; max-height:calc(100% - 12px); border-radius:16px 16px 0 0; }
html.pe-tel .modal-close{ width:44px; height:44px; font-size:30px; }
html.pe-tel .modal-body > .modal-foot{
  position:sticky; bottom:0; z-index:2; background:var(--sf); border-top:1px solid var(--sub);
  padding-bottom:calc(14px + env(safe-area-inset-bottom));
}
html.pe-tel .vz-fenetre{ width:100%; height:100%; max-height:none; border-radius:0; }
/*  Son en-tête sur deux lignes : le titre, puis ‹ 1 / 15 ›, « Plein écran » et ×. */
html.pe-tel .vz-fenetre .modal-head{ flex-wrap:wrap; row-gap:6px; padding:10px 12px 8px 16px; padding-top:calc(10px + env(safe-area-inset-top)); }
html.pe-tel .vz-fenetre .vz-titres{ flex:1 1 100%; }
html.pe-tel .vz-fenetre .vz-titres h3{ font-size:18px; }
html.pe-tel .vz-fenetre .vz-outils{ flex:1 1 100%; justify-content:space-between; gap:10px; }
html.pe-tel .vz-fenetre .vz-nav .icon-btn{ width:40px; height:40px; }

/* -------------------------------------------------------------------------
   12. LE CALENDRIER EN PETIT MOIS (pe-tel) : les 30 jours en une grille de
       sept colonnes, une pastille par rendez-vous ; le jour touché est
       détaillé dessous (les rendez-vous s'y ouvrent comme d'habitude).
   ------------------------------------------------------------------------- */
html.pe-tel .cal-tete{ display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:2px; margin:0; padding:0 8px 4px; text-align:center; font-size:11px; }
html.pe-tel .cal-grille{
  display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:2px;
  padding:6px; background:var(--sf); border-radius:16px; box-shadow:var(--sh1);
}
html.pe-tel .cal-grille .cal-jour,
html.pe-tel .cal-grille .cal-jour.est-hors,
html.pe-tel .cal-grille .cal-jour.est-vide{
  display:flex; flex-direction:row; flex-wrap:wrap; justify-content:center; align-content:flex-start; gap:3px;
  min-height:48px; min-width:0; padding:6px 2px 4px; cursor:pointer;
  background:none; border:0; border-radius:12px; box-shadow:none; opacity:1;
}
html.pe-tel .cal-grille .cal-jour.est-hors{ opacity:.35; cursor:default; }
html.pe-tel .cal-grille .cal-num{ flex:0 0 100%; justify-content:center; margin:0; font-size:15px; font-weight:500; }
html.pe-tel .cal-grille .cal-jsem,
html.pe-tel .cal-grille .cal-mois,
html.pe-tel .cal-grille .cal-auj{ display:none; }
html.pe-tel .cal-grille .cal-jour.est-auj .cal-num{ color:var(--ac-strong); font-weight:700; }
html.pe-tel .cal-grille .cal-ev{
  flex:none; width:6px; height:6px; min-height:0; padding:0; border-radius:50%;
  font-size:0; overflow:hidden; pointer-events:none;
  background:color-mix(in oklab, var(--ac) 55%, white);
}
html.pe-tel .cal-grille .cal-ev.est-match{ background:#B3B9BF; }
html.pe-tel .cal-grille .cal-ev *{ display:none; }
html.pe-tel .cal-grille .cal-ev:nth-of-type(n+4){ display:none; }
html.pe-tel .cal-grille .cal-jour.pe-choisi{ background:var(--ac); }
html.pe-tel .cal-grille .cal-jour.pe-choisi .cal-num{ color:#fff; }
html.pe-tel .cal-grille .cal-jour.pe-choisi .cal-ev{ background:rgba(255,255,255,.8); }
html.pe-tel .pe-cal-detail{ display:flex; flex-direction:column; gap:8px; margin-top:16px; }
html.pe-tel .pe-cal-titre{ padding:0 4px; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mu); }
html.pe-tel .pe-cal-detail .cal-ev{
  min-height:52px; padding:10px 14px; border-radius:var(--r2); align-items:center;
  font-size:15px; box-shadow:var(--sh1);
}
html.pe-tel .pe-cal-detail .cal-ev.est-soiree{ background:var(--sf); box-shadow:inset 3px 0 0 var(--ac), var(--sh1); }
html.pe-tel .pe-cal-detail .cal-ev.est-match{ background:var(--sf); }
html.pe-tel .pe-cal-detail .cal-h{ min-width:52px; font-size:12.5px; }
html.pe-tel .pe-cal-vide{ margin:0; padding:14px; color:var(--mu); font-size:14px; background:var(--sf); border-radius:var(--r2); }

/* -------------------------------------------------------------------------
   13. iPAD EN LARGEUR (pe-ipad) : la fiche d'un événement s'ouvre à droite,
       sans voile ; la liste reste à gauche, en cartes, et se touche : la
       fiche suit la carte touchée.
   ------------------------------------------------------------------------- */
html.pe-ipad.pe-fiche #modalBackdrop{ padding:0; place-items:stretch end; background:transparent; pointer-events:none; }
html.pe-ipad.pe-fiche #modalBackdrop > .modal{
  pointer-events:auto; width:440px; height:100%; max-height:none; border-radius:0;
  box-shadow:-12px 0 32px rgba(22,32,27,.14);
}
html.pe-ipad.pe-fiche .content{ margin-right:440px; }
