/* ============================================================================
   Composants de page : ce que les vues (listes, fiches, tableaux de bord) affichent
   en dehors des composants Blade.
   - cmp-tone--<ton> : ton transversal. Pose les variables --tone-* lues par
     cmp-pill, cmp-dot, cmp-tile, cmp-dt__link... Le ton vient des données
     (statut_classes.tone renvoyé par les modèles) ou de la vue.
   - cmp-pill : pastille (statut, phase, montant, compteur)
   - cmp-dot : point de statut
   - cmp-tile : tuile d'icône (dégradé du ton)
   - cmp-dt__* : contenus de cellules de tableau (date, nom, sous-titre, lien, vide)
   ============================================================================ */

/* Tons de couleur. Valeurs brutes --tone-200..500 (pour les variantes) + rôles par défaut :
   fond 15 %, texte 300, bordure 25 %, icône 400 ; --tone-rgb sert aux points et aux tuiles. */
.cmp-tone--emerald { --tone-rgb: 16, 185, 129; --tone-200: var(--cmp-p-emerald-200); --tone-300: var(--cmp-p-emerald-300); --tone-400: var(--cmp-p-emerald-400); --tone-500: var(--cmp-p-emerald-500);
                     --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--amber { --tone-rgb: 245, 158, 11; --tone-200: var(--cmp-p-amber-200); --tone-300: var(--cmp-p-amber-300); --tone-400: var(--cmp-p-amber-400); --tone-500: var(--cmp-p-amber-500);
                   --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--sky { --tone-rgb: 56, 189, 248; --tone-200: var(--cmp-p-sky-200); --tone-300: var(--cmp-p-sky-300); --tone-400: var(--cmp-p-sky-400); --tone-500: var(--cmp-p-sky-500);
                 --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--red { --tone-rgb: 239, 68, 68; --tone-200: var(--cmp-p-red-200); --tone-300: var(--cmp-p-red-300); --tone-400: var(--cmp-p-red-400); --tone-500: var(--cmp-p-red-500);
                 --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--rose { --tone-rgb: 244, 63, 94; --tone-200: var(--cmp-p-rose-200); --tone-300: var(--cmp-p-rose-300); --tone-400: var(--cmp-p-rose-400); --tone-500: var(--cmp-p-rose-500);
                  --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--teal { --tone-rgb: 20, 184, 166; --tone-200: var(--cmp-p-teal-200); --tone-300: var(--cmp-p-teal-300); --tone-400: var(--cmp-p-teal-400); --tone-500: var(--cmp-p-teal-500);
                  --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--indigo { --tone-rgb: var(--cmp-indigo-rgb, var(--cmp-indigo-rgb, 99, 102, 241)); --tone-200: var(--cmp-p-indigo-200); --tone-300: var(--cmp-p-indigo-300); --tone-400: var(--cmp-p-indigo-400); --tone-500: var(--cmp-p-indigo-500);
                    --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--purple { --tone-rgb: 168, 85, 247; --tone-200: var(--cmp-p-purple-200); --tone-300: var(--cmp-p-purple-300); --tone-400: var(--cmp-p-purple-400); --tone-500: var(--cmp-p-purple-500);
                    --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--cyan { --tone-rgb: 6, 182, 212; --tone-200: var(--cmp-p-cyan-200); --tone-300: var(--cmp-p-cyan-300); --tone-400: var(--cmp-p-cyan-400); --tone-500: var(--cmp-p-cyan-500);
                  --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--blue { --tone-rgb: 59, 130, 246; --tone-200: var(--cmp-p-blue-200); --tone-300: var(--cmp-p-blue-300); --tone-400: var(--cmp-p-blue-400); --tone-500: var(--cmp-p-blue-500);
                  --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
.cmp-tone--violet { --tone-rgb: 139, 92, 246; --tone-200: var(--cmp-p-violet-200); --tone-300: var(--cmp-p-violet-300); --tone-400: var(--cmp-p-violet-400); --tone-500: var(--cmp-p-violet-500);
                    --tone-bg: color-mix(in oklab, var(--tone-500) 15%, transparent); --tone-fg: var(--tone-300); --tone-bd: color-mix(in oklab, var(--tone-500) 25%, transparent); --tone-icon: var(--tone-400); }
/* Tons neutres (blanc translucide) */
.cmp-tone--neutral { --tone-rgb: 120, 120, 130; --tone-bg: var(--cmp-p-white-a04); --tone-fg: var(--cmp-p-white-a50); --tone-bd: var(--cmp-p-white-a08); --tone-icon: var(--cmp-p-white-a40); }
.cmp-tone--neutral-soft { --tone-rgb: 120, 120, 130; --tone-bg: var(--cmp-p-white-a04); --tone-fg: var(--cmp-p-white-a45); --tone-bd: var(--cmp-p-white-a08); --tone-icon: var(--cmp-p-white-a40); }
.cmp-tone--past { --tone-rgb: 120, 120, 130; --tone-bg: var(--cmp-p-white-a04); --tone-fg: var(--cmp-p-white-a40); --tone-bd: var(--cmp-p-white-a08); --tone-icon: var(--cmp-p-white-a40); }
.cmp-tone--trashed { --tone-rgb: 120, 120, 130; --tone-bg: var(--cmp-p-white-a06); --tone-fg: var(--cmp-p-white-a40); --tone-bd: var(--cmp-p-white-a08); --tone-icon: var(--cmp-p-white-a40); }
.cmp-tone--canceled { --tone-rgb: 120, 120, 130; --tone-bg: var(--cmp-p-white-a06); --tone-fg: var(--cmp-p-white-a45); --tone-bd: var(--cmp-p-white-a08); --tone-icon: var(--cmp-p-white-a40); }
.cmp-tone--empty { --tone-rgb: 120, 120, 130; --tone-bg: var(--cmp-p-white-a03); --tone-fg: var(--cmp-p-white-a30); --tone-bd: var(--cmp-p-white-a06); --tone-icon: var(--cmp-p-white-a40); }
.cmp-tone--idle { --tone-rgb: 120, 120, 130; --tone-bg: var(--cmp-p-white-a04); --tone-fg: var(--cmp-p-white-a40); --tone-bd: var(--cmp-p-white-a06); --tone-icon: var(--cmp-p-white-a40); }

/* Pastille. Taille par défaut : 10 px, coins small. Le gap reste dans la vue (mise en page). */
.cmp-pill { padding-inline: calc(var(--cmp-space) * 2); padding-block: calc(var(--cmp-space) * 0.5); border-radius: var(--cmp-radius-small);
            font-size: 0.625rem; font-weight: var(--cmp-fw-medium); border: 1px solid var(--tone-bd, var(--cmp-p-white-a08));
            background-color: var(--tone-bg, var(--cmp-p-white-a04)); color: var(--tone-fg, var(--cmp-p-white-a50)); }
.cmp-pill--phase  { font-size: 0.6562rem; }
.cmp-pill--amount { font-size: 0.7188rem; font-family: var(--cmp-font-mono); font-weight: var(--cmp-fw-semibold); }
.cmp-pill--count  { font-size: 0.75rem; font-family: var(--cmp-font-mono); font-weight: var(--cmp-fw-semibold); min-width: 28px; }
.cmp-pill--plain  { font-weight: inherit; }
.cmp-pill--tag    { font-size: 0.6875rem; }
.cmp-pill--vivid  { color: var(--tone-400); border-color: color-mix(in oklab, var(--tone-500) 20%, transparent); }
.cmp-pill__icon   { font-size: 0.75rem; }
.cmp-pill--big    { padding-inline: calc(var(--cmp-space) * 2.5); padding-block: calc(var(--cmp-space) * 1); border-radius: var(--cmp-radius-control);
                    font-size: var(--cmp-fs-xs); line-height: var(--cmp-lh-xs); }
.cmp-pill--status { border-radius: var(--cmp-radius-control); }
@media (min-width: 40rem) {
    .cmp-pill--status { padding-inline: calc(var(--cmp-space) * 2.5); padding-block: calc(var(--cmp-space) * 1); font-size: var(--cmp-fs-xs); line-height: var(--cmp-lh-xs); }
}
.cmp-pill__unit { color: color-mix(in oklab, var(--tone-fg) 75%, transparent); }

/* Point de statut (#888 si pas de ton) */
.cmp-dot { width: calc(var(--cmp-space) * 1.5); height: calc(var(--cmp-space) * 1.5); border-radius: var(--cmp-radius-pill);
           background-color: rgb(var(--tone-rgb, 136, 136, 136)); }
.cmp-dot--xs { width: calc(var(--cmp-space) * 1); height: calc(var(--cmp-space) * 1); }

/* Tuile d'icône */
.cmp-tile { width: calc(var(--cmp-space) * 9); height: calc(var(--cmp-space) * 9); border-radius: var(--cmp-radius-control); color: var(--cmp-p-white-a80);
            background: linear-gradient(135deg, rgba(var(--tone-rgb), 0.25), rgba(var(--tone-rgb), 0.10)); border: 1px solid rgba(var(--tone-rgb), 0.25); }
.cmp-tile > i { font-size: 1rem; }
.cmp-tile--avatar { background: var(--cmp-avatar-bg); border-width: 0; border-style: solid; color: var(--cmp-text-strong); font-size: var(--cmp-fs-xs); line-height: var(--cmp-lh-xs); font-weight: var(--cmp-fw-bold); }
.cmp-tile--soft { border-color: rgba(var(--tone-rgb), 0.20); }
.cmp-tile--row  { width: calc(var(--cmp-space) * 8); height: calc(var(--cmp-space) * 8); }
@media (min-width: 40rem) { .cmp-tile--row { width: calc(var(--cmp-space) * 9); height: calc(var(--cmp-space) * 9); } }

/* Contenus de cellules de tableau */
.cmp-dt__date  { color: var(--cmp-p-white-a70); font-size: 0.75rem; font-family: var(--cmp-font-mono); }
.cmp-dt__name  { font-weight: var(--cmp-fw-medium); color: var(--cmp-text-strong); }
.cmp-dt__name.cmp-dt__name--strong { font-weight: var(--cmp-fw-bold); }   /* nom principal d'une ligne (ex. titre de l'événement) */
.cmp-dt__sub   { font-size: 0.6875rem; color: var(--cmp-p-white-a40); }
.cmp-dt__sub--dim  { color: var(--cmp-p-white-a35); }
.cmp-dt__sub--mono { font-family: var(--cmp-font-mono); }
.cmp-dt__mono  { font-family: var(--cmp-font-mono); }
.cmp-dt__meta  { color: var(--cmp-p-white-a60); font-size: var(--cmp-fs-xs); line-height: var(--cmp-lh-xs); }
.cmp-dt__meta--soft { color: var(--cmp-p-white-a65); }
.cmp-dt__meta--dim  { color: var(--cmp-p-white-a55); }
.cmp-dt__lines { line-height: var(--cmp-lh-snug); }
.cmp-dt__empty { color: var(--cmp-p-white-a25); font-size: 0.7812rem; }
.cmp-dt__empty--inherit { font-size: inherit; line-height: inherit; }
.cmp-dt__link  { font-size: 0.7812rem; color: var(--cmp-p-white-a80); transition: color var(--cmp-dur-fast) var(--cmp-ease); }
@media (hover: hover) { .cmp-dt__link:hover { color: var(--tone-fg); } }
.cmp-dt__link--tone { color: var(--tone-300); }
@media (hover: hover) { .cmp-dt__link--tone:hover { color: var(--tone-200); } }
.cmp-dt__link-icon { font-size: 0.8125rem; color: color-mix(in oklab, var(--tone-icon) 70%, transparent); }
.cmp-dt__link-icon--sm { font-size: 0.75rem; }

/* Bouton d'aperçu en cellule (allumé quand l'événement est en direct) */
.cmp-dt__preview { width: calc(var(--cmp-space) * 9); height: calc(var(--cmp-space) * 9); border-radius: var(--cmp-radius-control); border: 1px solid var(--cmp-p-white-a08);
                   background-color: var(--cmp-p-white-a03); color: var(--cmp-p-white-a35); transition: color var(--cmp-dur-fast) var(--cmp-ease), background-color var(--cmp-dur-fast) var(--cmp-ease), border-color var(--cmp-dur-fast) var(--cmp-ease); }
.cmp-dt__preview > i { font-size: 1rem; }
@media (hover: hover) { .cmp-dt__preview:hover { background-color: var(--cmp-p-white-a06); color: var(--cmp-p-white-a60); } }
.cmp-dt__preview.is-live { background-color: color-mix(in oklab, var(--cmp-p-emerald-500) 15%, transparent); color: var(--cmp-p-emerald-300); border-color: color-mix(in oklab, var(--cmp-p-emerald-500) 40%, transparent); }
@media (hover: hover) { .cmp-dt__preview.is-live:hover { background-color: color-mix(in oklab, var(--cmp-p-emerald-500) 25%, transparent); } }

/* Indicateur « en direct » : anneau du ton + point qui pulse */
.cmp-live { width: calc(var(--cmp-space) * 4); height: calc(var(--cmp-space) * 4); border-radius: var(--cmp-radius-pill);
            background-color: var(--tone-bg); border: 1px solid color-mix(in oklab, var(--tone-500) 30%, transparent); }
.cmp-live__dot { width: calc(var(--cmp-space) * 1.5); height: calc(var(--cmp-space) * 1.5); border-radius: var(--cmp-radius-pill);
                 background-color: var(--tone-400); animation: imp-pulse 1.5s ease-in-out infinite; }

/* Carte de section (fiches, tableaux de bord). Le verre et la lueur viennent encore de section-glow
   (animations.css) ; le ton fixe la couleur de la lueur. */
.cmp-card { --card-rgb: var(--tone-rgb, var(--cmp-indigo-rgb, 99, 102, 241)); }
.cmp-card__head { position: relative; z-index: 1; padding-inline: calc(var(--cmp-space) * 5); padding-block: calc(var(--cmp-space) * 4);
                  border-bottom: 1px solid var(--cmp-lit-w-6); }
.cmp-card__body { position: relative; z-index: 1; padding: calc(var(--cmp-space) * 5); }
.cmp-card__layer { position: relative; z-index: 1; }
.cmp-card__title { font-size: 1rem; line-height: calc(1.5 / 1); font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-90); }
.cmp-card__icon { font-size: 1.125rem; color: rgb(var(--tone-rgb)); }

/* Formulaires de page */
.cmp-label { font-size: 0.6875rem; font-weight: var(--cmp-fw-medium); color: var(--cmp-ink-50); text-transform: uppercase; letter-spacing: 0.05em; }
.cmp-label__req { color: var(--cmp-p-red-400); }
.cmp-hint { font-size: 0.6875rem; color: var(--cmp-ink-35); }
.cmp-form-actions { margin-top: calc(var(--cmp-space) * 6); padding-top: calc(var(--cmp-space) * 4); border-top: 1px solid var(--cmp-lit-w-6); }

/* Boutons de modale : Annuler, Valider (grisé tant que le formulaire est incomplet) */
.cmp-cancel { padding-inline: calc(var(--cmp-space) * 4); padding-block: calc(var(--cmp-space) * 2.5); font-size: 0.875rem; line-height: calc(1.25 / 0.875);
              font-weight: var(--cmp-fw-medium); border-radius: var(--cmp-radius-panel); color: var(--cmp-ink-60); background-color: var(--cmp-p-white-a04);
              cursor: pointer; transition: color var(--cmp-dur-fast) var(--cmp-ease), background-color var(--cmp-dur-fast) var(--cmp-ease); }
@media (hover: hover) { .cmp-cancel:hover { background-color: var(--cmp-p-white-a08); color: var(--cmp-ink-100); } }
.cmp-submit { padding-inline: calc(var(--cmp-space) * 5); padding-block: calc(var(--cmp-space) * 2.5); font-size: 0.875rem; line-height: calc(1.25 / 0.875);
              font-weight: var(--cmp-fw-medium); border-radius: var(--cmp-radius-panel); border: 1px solid color-mix(in oklab, var(--tone-500) 30%, transparent);
              background-color: color-mix(in oklab, var(--tone-500) 20%, transparent); color: var(--tone-300); cursor: pointer;
              transition: all var(--cmp-dur-fast) var(--cmp-ease); }
@media (hover: hover) { .cmp-submit:not(.is-off):hover { background-color: color-mix(in oklab, var(--tone-500) 30%, transparent); color: var(--tone-200); } }
.cmp-submit.is-off { background-color: var(--cmp-p-white-a02); color: var(--cmp-ink-25); border-color: var(--cmp-p-white-a06); cursor: not-allowed; }

/* Choix segmenté (statut actif / inactif...) */
.cmp-choice { padding-inline: calc(var(--cmp-space) * 4); padding-block: calc(var(--cmp-space) * 2.5); font-size: 0.875rem; line-height: calc(1.25 / 0.875);
              font-weight: var(--cmp-fw-medium); border-radius: var(--cmp-radius-panel); border: 1px solid var(--cmp-p-white-a06);
              background-color: var(--cmp-p-white-a03); color: var(--cmp-ink-45); cursor: pointer; transition: all var(--cmp-dur-fast) var(--cmp-ease); }
@media (hover: hover) { .cmp-choice:not(.is-on):hover { background-color: var(--cmp-p-white-a06); color: var(--cmp-ink-70); } }
.cmp-choice.is-on { background-color: color-mix(in oklab, var(--tone-500) 20%, transparent); color: var(--tone-300); border-color: color-mix(in oklab, var(--tone-500) 40%, transparent);
                    box-shadow: var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none),
                                0 10px 15px -3px color-mix(in oklab, var(--tone-500) 10%, transparent), 0 4px 6px -4px color-mix(in oklab, var(--tone-500) 10%, transparent); }
.cmp-pill__ticon { font-size: 0.75rem; color: var(--tone-icon); }
.cmp-avatar-fill { background: var(--cmp-avatar-bg); }

/* Sélecteur d'icône (rubriques, modes de paiement). --data : couleur venant des données (--tone-rgb),
   --palette : ton de la palette (cmp-tone--*). */
.cmp-ipick { border-radius: var(--radius-md); border: 1px solid var(--cmp-p-white-a06); color: var(--cmp-ink-50); cursor: pointer;
             transition: all var(--cmp-dur-fast) var(--cmp-ease); }
.cmp-ipick > i { font-size: 1.125rem; }
@media (hover: hover) { .cmp-ipick:not(.is-on):hover { background-color: var(--cmp-p-white-a06); color: var(--cmp-ink-80); } }
.cmp-ipick--data.is-on { border-width: 2px; background: rgba(var(--tone-rgb), 0.20); border-color: rgba(var(--tone-rgb), 0.50); color: rgb(var(--tone-rgb)); }
.cmp-ipick--palette.is-on { background-color: color-mix(in oklab, var(--tone-500) 20%, transparent); color: var(--tone-300); border-color: color-mix(in oklab, var(--tone-500) 50%, transparent); }

/* État (workers) : fond doux, bordure et texte dans la couleur du ton ; « offline » = gris neutre */
.cmp-tone--offline { --tone-rgb: 120, 120, 130; --state-soft: var(--cmp-lit-w-4); --state-line: var(--cmp-lit-w-8); }
.cmp-state-soft { background: var(--state-soft, rgba(var(--tone-rgb), 0.12)); }
.cmp-state-line { border: 1px solid var(--state-line, rgba(var(--tone-rgb), 0.25)); }
.cmp-state-fg   { color: rgb(var(--tone-rgb)); }
.cmp-state-dot  { background: rgb(var(--tone-rgb)); }

/* Nuance 300 historique (rgb) des tons, pour les textes colorés écrits en rgb() */
.cmp-tone--emerald { --tone-rgb300: 110, 231, 183; } .cmp-tone--sky { --tone-rgb300: 125, 211, 252; } .cmp-tone--indigo { --tone-rgb300: 165, 180, 252; }
.cmp-tone--red { --tone-rgb300: 252, 165, 165; } .cmp-tone--amber { --tone-rgb300: 252, 211, 77; } .cmp-tone--purple { --tone-rgb300: 216, 180, 254; }
.cmp-tone--fuchsia { --tone-rgb: 217, 70, 239; --tone-rgb300: 240, 171, 252; }
.cmp-tonec300 { color: rgb(var(--tone-rgb300)); }

/* ---- Détails de pages (valeurs reprises à l'identique de la v1) ---- */
.cmp-tone--dim { --tone-rgb: 150, 150, 160; }
[data-cmp-scheme] { color-scheme: var(--cmp-color-scheme, dark); }
.cmp-ph-ink-35::placeholder { color: var(--cmp-ink-35); }
.cmp-wbdc-6 { border-color: var(--cmp-lit-w-6); }
.cmp-c-rose400v3 { color: var(--cmp-lit-251-113-133); }

/* Bouton de marque (connexion, création de mot de passe, barre publique) */
.cmp-brand { background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark)); }
.cmp-brand--cta { box-shadow: 0 8px 30px var(--cmp-lit-indigo-35); }
.cmp-brand--nav { box-shadow: 0 6px 24px var(--cmp-lit-indigo-30); }
.cmp-brand--sm  { box-shadow: 0 6px 20px var(--cmp-lit-indigo-25); }
/* Appel à l'action violet (tableau de bord admin) */
.cmp-cta-violet { background: linear-gradient(135deg, var(--cmp-lit-x7c3aed) 0%, var(--cmp-lit-x6d28d9) 100%); box-shadow: 0 10px 32px var(--cmp-lit-124-58-237-40); }
/* Initiale d'un admin récent */
.cmp-initial-violet { background: linear-gradient(135deg, var(--cmp-lit-purple-30), var(--cmp-lit-violet-18)); }

/* Assistants (nouvel événement, nouvel admin) : étapes et barre de progression */
.cmp-step-glow-current { box-shadow: var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), 0 0 24px var(--cmp-lit-indigo-45), inset 0 0 0 1px var(--cmp-lit-w-10); }
.cmp-step-glow-done { box-shadow: var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), 0 0 12px var(--cmp-lit-emerald-30); }
.cmp-bar-step { background-image: linear-gradient(to right in oklab, color-mix(in oklab, var(--cmp-p-emerald-400) 70%, transparent) 0%, color-mix(in oklab, var(--cmp-p-indigo-400) 70%, transparent) 100%); }
.cmp-bar-amber { background-image: linear-gradient(to right in oklab, var(--cmp-p-amber-400) 0%, var(--cmp-p-amber-500) 100%); }

/* Langue principale de la borne, choix actif/inactif (ombre colorée), drapeaux */
.cmp-lang-glow { box-shadow: var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), 0 0 18px var(--cmp-lit-amber-20); }
.cmp-choice-shadow { box-shadow: var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none),
                     0 10px 15px -3px color-mix(in oklab, var(--tone-500) 10%, transparent), 0 4px 6px -4px color-mix(in oklab, var(--tone-500) 10%, transparent); }
.cmp-flag.fi { box-shadow: 0 0 0 1px var(--cmp-lit-w-8); }
.cmp-flag--lg.fi { width: 36px; height: 27px; border-radius: 4px; }
.cmp-flag--sm.fi { width: 22px; height: 16px; border-radius: 3px; }

/* Totaux par devise (liste des dons) : couleur fournie par la donnée (--tone-c, --tone-rgb) */
.cmp-tonec-c { color: var(--tone-c); }
.cmp-total-glow { text-shadow: 0 0 20px rgba(var(--tone-rgb), 0.5); }

/* Rubrique d'un événement : couleur des données, gris si aucune */
.cmp-rub { background: var(--cmp-lit-w-4); border: 1px solid var(--cmp-lit-w-6); }
.cmp-rub.is-on { background: rgba(var(--tone-rgb), 0.18); border-color: rgba(var(--tone-rgb), 0.45); box-shadow: 0 0 14px rgba(var(--tone-rgb), 0.30); }
.cmp-rub__icon { color: var(--cmp-lit-w-55); }
.cmp-rub.is-on .cmp-rub__icon { color: rgb(var(--tone-rgb)); filter: drop-shadow(0 0 6px rgba(var(--tone-rgb), 0.6)); }
.cmp-rub__name { color: var(--cmp-lit-w-90); }
.cmp-rub__name.is-on { color: rgb(var(--tone-rgb)); }

/* Vignette vidéo : noir, ou dégradé de remplacement (donnée) quand le fichier manque */
.cmp-vthumb { background-color: var(--cmp-p-black); }
.cmp-vthumb[style*="--cmp-vthumb-bg"] { background: var(--cmp-vthumb-bg); }

/* Point « en direct » */
.cmp-live-core { box-shadow: var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), var(--cmp-shadow-none), 0 0 10px var(--cmp-lit-emerald-90); }

/* Menu déroulant flottant (actions de fiche, filtres) */
.cmp-popmenu { background: var(--cmp-lit-10-10-18-95); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
               border: 1px solid var(--cmp-lit-w-8); box-shadow: var(--cmp-dropdown-shadow); }
.cmp-popmenu--soft { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--cmp-dropdown-shadow); }
.cmp-popmenu--deep { background: var(--cmp-lit-15-15-22-96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
                     border-color: var(--cmp-lit-w-10); box-shadow: var(--cmp-dropdown-shadow); }
@media (max-width: 768px) {
    .cmp-popmenu:not(.keep-blur) { background: var(--cmp-lit-night-92) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* Barre publique (pages de connexion) et fond des pages d'authentification */
.cmp-navglass { backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
.cmp-langbtn { box-shadow: 0 0 0 2px var(--cmp-lit-indigo-55), 0 0 14px var(--cmp-lit-indigo-30-b), 0 0 0 4px var(--cmp-lit-w-4); }
.cmp-langflag { box-shadow: 0 0 0 1.5px var(--cmp-lit-w-20); }
.cmp-langmenu { background: var(--cmp-lit-15-17-30-92); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
                border: 1px solid var(--cmp-lit-w-10); box-shadow: 0 24px 60px var(--cmp-lit-k-50-b), 0 0 0 1px var(--cmp-lit-w-3) inset; }
@media (max-width: 768px) {
    .cmp-langmenu:not(.keep-blur) { background: var(--cmp-lit-night-92) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
.cmp-auth-bg { background-image: radial-gradient(500px circle at 15% 25%, var(--cmp-lit-indigo-18), transparent 65%),
                                 radial-gradient(600px circle at 85% 30%, var(--cmp-lit-purple-14), transparent 65%),
                                 radial-gradient(450px circle at 50% 80%, var(--cmp-lit-sky-12), transparent 65%); }

/* Carte d'indicateur (tableaux de bord) : le verre et la lueur viennent encore de card-glow (animations.css) */
.cmp-kpi { }
/* Élément entièrement dans son ton (fond, texte, bordure) ; icône dans la nuance 400 du ton */
.cmp-toned { background-color: var(--tone-bg); color: var(--tone-fg); border-color: var(--tone-bd); }
.cmp-toneicon { color: var(--tone-icon); }
/* Élément entièrement dans son ton (fond, texte, bordure) ; icône dans la nuance 400 du ton */
.cmp-toned { background-color: var(--tone-bg); color: var(--tone-fg); border-color: var(--tone-bd); }
.cmp-toneicon { color: var(--tone-icon); }

/* Pastilles de filtre des statistiques des dons (classes générées en JS) */
/* Pills de filtre (segmented) : classes maison (indépendantes de Tailwind, générées en JS) */
.fpill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 10px;
    font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
    color: var(--cmp-lit-w-62);
    background: var(--cmp-lit-w-4);
    border: 1px solid var(--cmp-lit-w-10);
    cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.fpill:hover { background: var(--cmp-lit-w-9); color: var(--cmp-lit-w-92); }
.fpill.is-active {
    background: var(--cmp-lit-indigo-22);
    border-color: var(--cmp-lit-indigo4-55);
    color: var(--cmp-lit-xc7d2fe);
    box-shadow: 0 0 16px var(--cmp-lit-indigo-22), inset 0 1px 0 var(--cmp-lit-w-10);
}
.fpill .fi { border-radius: 3px; }

/* Tendance (ui.trend) : variation sur la période précédente */
.cmp-trend { font-size: 0.7188rem; font-weight: var(--cmp-fw-semibold); white-space: nowrap; }
.cmp-trend > i { font-size: 0.8125rem; }
.cmp-trend.is-up   { color: var(--cmp-p-emerald-400); }
.cmp-trend.is-down { color: var(--cmp-p-red-400); }
.cmp-trend.is-none { color: var(--cmp-ink-35); }

/* ==== Tableau de bord super admin (maquette HappyBox) ==== */
/* Titre de page et sous-titre */
.cmp-page-title { font-size: 1.5rem; line-height: calc(2 / 1.5); font-weight: var(--cmp-fw-bold); color: var(--cmp-ink-100); }
.cmp-page-sub   { font-size: 0.8125rem; color: var(--cmp-ink-50); margin-top: calc(var(--cmp-space) * 1); }
/* Sélecteur segmenté (période, devise) : liens */
.cmp-seg { padding: calc(var(--cmp-space) * 0.75); gap: calc(var(--cmp-space) * 0.5); border-radius: var(--cmp-radius-control);
           background-color: var(--cmp-p-white-a04); border: 1px solid var(--cmp-p-white-a08); }
.cmp-seg__item { padding-inline: calc(var(--cmp-space) * 3); padding-block: calc(var(--cmp-space) * 1.5); border-radius: var(--cmp-radius-small);
                 font-size: 0.7812rem; font-weight: var(--cmp-fw-medium); color: var(--cmp-ink-60); text-decoration-line: none; white-space: nowrap;
                 transition: color var(--cmp-dur-fast) var(--cmp-ease), background-color var(--cmp-dur-fast) var(--cmp-ease); }
@media (hover: hover) { .cmp-seg__item:not(.is-active):hover { color: var(--cmp-ink-90); background-color: var(--cmp-p-white-a06); } }
.cmp-seg__item.is-active { background-color: var(--cmp-p-indigo-500); color: #ffffff; }
/* En-tête de carte : mention à droite, lien « Voir tout », compteur */
.cmp-card__aside { font-size: 0.75rem; color: var(--cmp-ink-50); }
.cmp-more { font-size: 0.7812rem; font-weight: var(--cmp-fw-medium); color: var(--cmp-p-indigo-400); text-decoration-line: none; white-space: nowrap; }
@media (hover: hover) { .cmp-more:hover { text-decoration-line: underline; } }
.cmp-count { min-width: 22px; height: 22px; padding-inline: calc(var(--cmp-space) * 1.5); border-radius: var(--cmp-radius-pill);
             display: inline-flex; align-items: center; justify-content: center;
             font-size: 0.6875rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-70); background-color: var(--cmp-p-white-a08); }
/* Légendes et graphiques */
.cmp-legend__item { font-size: 0.75rem; color: var(--cmp-ink-60); }
.cmp-legend__row  { font-size: 0.8125rem; color: var(--cmp-ink-70); }
.cmp-legend__val  { font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-100); white-space: nowrap; }
.cmp-chart { height: 260px; }
.cmp-donut { width: 210px; height: 210px; }
.cmp-donut__value { font-size: 1.25rem; font-weight: var(--cmp-fw-bold); color: var(--cmp-ink-100); }
.cmp-donut__label { font-size: 0.75rem; color: var(--cmp-ink-50); }
.cmp-empty { padding-block: calc(var(--cmp-space) * 6); text-align: center; font-size: 0.8125rem; color: var(--cmp-ink-45); }
/* Ligne de liste (salle, événement, client) */
.cmp-row { padding-block: calc(var(--cmp-space) * 2.5); border-bottom: 1px solid var(--cmp-p-white-a06); color: inherit; }
.cmp-row:last-child { border-bottom: 0; }
@media (hover: hover) { .cmp-row:hover .cmp-row__title { color: var(--cmp-p-indigo-400); } }
.cmp-row__title  { font-size: 0.8125rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-90); transition: color var(--cmp-dur-fast) var(--cmp-ease); }
.cmp-row__sub    { font-size: 0.7188rem; color: var(--cmp-ink-50); }
.cmp-row__meta   { font-size: 0.7188rem; color: var(--cmp-ink-55); }
.cmp-row__amount { font-size: 0.8125rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-100); white-space: nowrap; }
.cmp-row .cmp-pill { margin-top: calc(var(--cmp-space) * 1); }
/* Rang du top 5 (podium coloré) */
.cmp-rank { width: 26px; height: 26px; border-radius: var(--cmp-radius-pill); font-size: 0.75rem; font-weight: var(--cmp-fw-bold);
            color: var(--cmp-ink-70); background-color: var(--cmp-p-white-a08); }
.cmp-rank.is-podium { color: var(--cmp-p-amber-300); background-color: color-mix(in oklab, var(--cmp-p-amber-500) 20%, transparent); }
/* Vignette (ui.thumb) */
.cmp-thumb { width: 40px; height: 40px; border-radius: var(--cmp-radius-small); background-color: var(--cmp-p-white-a06); color: var(--cmp-ink-50); }
.cmp-thumb > i { font-size: 1.125rem; }
/* Compteur en tuile (statut des bornes) */
.cmp-statbox { padding: calc(var(--cmp-space) * 3.5); border-radius: var(--cmp-radius-control); background-color: var(--tone-bg); gap: calc(var(--cmp-space) * 1); }
.cmp-statbox__ico   { font-size: 1.375rem; color: var(--tone-fg); }
.cmp-statbox__value { font-size: 1.5rem; line-height: 1.2; font-weight: var(--cmp-fw-bold); color: var(--cmp-ink-100); }
.cmp-statbox__label { font-size: 0.75rem; color: var(--tone-fg); }
/* Petit tableau (dernières transactions) */
.cmp-minitable { font-size: 0.7812rem; color: var(--cmp-ink-80); table-layout: fixed; }
.cmp-minitable th { font-size: 0.6562rem; font-weight: var(--cmp-fw-semibold); text-transform: uppercase; letter-spacing: 0.04em; color: var(--cmp-ink-50);
                    padding-block: calc(var(--cmp-space) * 2); border-bottom: 1px solid var(--cmp-p-white-a08); }
.cmp-minitable td { padding-block: calc(var(--cmp-space) * 2.25); border-bottom: 1px solid var(--cmp-p-white-a05); }
.cmp-minitable tr:last-child td { border-bottom: 0; }
.cmp-minitable__amount { font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-100); white-space: nowrap; }
.cmp-dot--soft { opacity: 0.45; }
.cmp-statbox--plain .cmp-statbox__label { color: var(--cmp-ink-70); }
.cmp-statbox--muted .cmp-statbox__label, .cmp-statbox--muted .cmp-statbox__ico { color: var(--cmp-ink-70); }
/* Liste déroulante simple (période du tableau de bord) */
.cmp-ddbtn { padding-inline: calc(var(--cmp-space) * 3); padding-block: calc(var(--cmp-space) * 2); border-radius: var(--cmp-radius-small);
             font-size: 0.8125rem; color: var(--cmp-ink-80); background-color: var(--cmp-p-white-a04); border: 1px solid var(--cmp-p-white-a10); cursor: pointer; white-space: nowrap; }
.cmp-ddbtn > i { font-size: 1rem; color: var(--cmp-ink-50); }
.cmp-ddbtn__chevron { transition: transform var(--cmp-dur-fast) var(--cmp-ease); }
.cmp-ddbtn.is-open .cmp-ddbtn__chevron { transform: rotate(180deg); }
.cmp-ddmenu { z-index: var(--z-dropdown, 50); margin-top: calc(var(--cmp-space) * 1.5); min-width: 220px; padding: calc(var(--cmp-space) * 1.5);
              border-radius: var(--cmp-radius-control); background: var(--cmp-dropdown-bg); border: 1px solid var(--cmp-p-white-a10); box-shadow: var(--cmp-dropdown-shadow); }
.cmp-ddmenu__item { padding-inline: calc(var(--cmp-space) * 3); padding-block: calc(var(--cmp-space) * 2); border-radius: var(--cmp-radius-small);
                    font-size: 0.8125rem; color: var(--cmp-ink-80); text-decoration-line: none; }
@media (hover: hover) { .cmp-ddmenu__item:hover { background-color: var(--cmp-p-white-a06); } }
.cmp-ddmenu__item.is-active { color: var(--cmp-p-indigo-400); font-weight: var(--cmp-fw-semibold); }
/* Petite « liste » d'en-tête de carte (Par jour, Par volume...) */
.cmp-chipsel { padding-inline: calc(var(--cmp-space) * 2.5); padding-block: calc(var(--cmp-space) * 1); border-radius: var(--cmp-radius-small);
               border: 1px solid var(--cmp-p-white-a10); white-space: nowrap; }
.cmp-chipsel > i { font-size: 0.75rem; }

/* Tableau de bord super admin : tailles et espacements en px, mesurés sur la maquette (1 280 px ramenés à 1 440).
   En px et non en rem : ils ne suivent pas la taille de police du profil, comme la maquette. */
.cmp-sdash > * + * { margin-top: 14px; }
.cmp-sdash__grid { gap: 14px; }
.cmp-sdash__tiles { gap: 10px; }
.cmp-sdash .cmp-page-title { font-size: 1.5rem; line-height: 1.25; }
.cmp-sdash .cmp-page-sub   { font-size: 0.8125rem; margin-top: 2px; }
/* Contrôles placés dans la barre du haut (actions de page) : même hauteur pour tous */
.cmp-topbar__actions .cmp-ddbtn, .cmp-topbar__actions .cmp-seg__item { font-size: 0.8125rem; }
.cmp-topbar__actions .cmp-ddbtn { height: 36px; padding-inline: 12px; }
.cmp-topbar__actions .cmp-seg { height: 36px; }
.cmp-topbar__actions .cmp-btn, .cmp-topbar__primary .cmp-btn { height: 36px; padding-inline: 14px; font-size: 0.8125rem; }
/* Cartes d'indicateurs */
.cmp-sdash .cmp-sc { gap: 14px; margin-bottom: 0; }
.cmp-sdash .cmp-sc__tile { padding: 16px 18px; min-height: 104px; }
.cmp-sdash .cmp-sc__title { font-size: 0.8438rem; line-height: 1.3; }
.cmp-sdash .cmp-sc__value { font-size: 1.5rem; line-height: 1.2; }
.cmp-sdash .cmp-sc__sub   { font-size: 0.7188rem; line-height: 1.3; margin-top: 3px; }
/* Cartes de section */
.cmp-sdash .cmp-card__head { padding: 16px 18px 6px; }
.cmp-sdash .cmp-card__body { padding: 6px 18px 14px; }
.cmp-sdash .cmp-card__title { font-size: 0.9375rem; line-height: 1.3; }
.cmp-sdash .cmp-card__icon { font-size: 1.1875rem; }
.cmp-sdash .cmp-more, .cmp-sdash .cmp-card__aside { font-size: 0.7812rem; }
.cmp-sdash .cmp-legend__item { font-size: 0.7188rem; }
.cmp-sdash .cmp-legend__row  { font-size: 0.7812rem; }
.cmp-sdash .cmp-chart { height: 250px; }
.cmp-sdash .cmp-donut { width: 190px; height: 190px; }
.cmp-sdash .cmp-donut__value { font-size: 1.25rem; }
.cmp-sdash .cmp-donut__label { font-size: 0.7188rem; }
/* Lignes de liste */
.cmp-sdash .cmp-row { padding-block: 8px; }
.cmp-sdash .cmp-row__title  { font-size: 0.8125rem; }
.cmp-sdash .cmp-row__sub, .cmp-sdash .cmp-row__meta { font-size: 0.7188rem; }
.cmp-sdash .cmp-row__amount { font-size: 0.8125rem; }
.cmp-sdash .cmp-thumb { width: 38px; height: 38px; }
.cmp-sdash .cmp-avatar--sm { width: 32px; height: 32px; font-size: 0.7188rem; }
.cmp-sdash .cmp-pill { font-size: 0.6562rem; padding: 2px 7px; }
.cmp-sdash .cmp-rank { width: 24px; height: 24px; font-size: 0.7188rem; }
/* Tuiles des bornes et petit tableau */
.cmp-sdash .cmp-statbox { padding: 14px; gap: 4px; }
.cmp-sdash .cmp-statbox__ico { font-size: 1.375rem; }
.cmp-sdash .cmp-statbox__value { font-size: 1.375rem; }
.cmp-sdash .cmp-statbox__label { font-size: 0.75rem; }
.cmp-sdash .cmp-minitable { font-size: 0.75rem; }
.cmp-sdash .cmp-minitable th { font-size: 0.6562rem; padding-block: 7px; }
.cmp-sdash .cmp-minitable td { padding-block: 8px; }
/* Ajustements : spécificité au-dessus des règles de thème, interlignes indépendants de la police du profil */
.cmp-sdash .cmp-sc .cmp-sc__tile { font-size: 0.8125rem; line-height: 1.35; }
.cmp-sdash .cmp-sc .cmp-sc__value { font-size: 1.5rem; line-height: 1.2; white-space: nowrap; }
.cmp-sdash .cmp-sc .cmp-sc__valrow { flex-wrap: wrap; row-gap: 2px; }
.cmp-sdash .cmp-row { font-size: 0.8125rem; line-height: 1.35; }
.cmp-sdash .cmp-row .cmp-pill { margin-top: 3px; line-height: 1.4; }
.cmp-sdash .cmp-statbox { font-size: 0.8125rem; line-height: 1.3; padding: 12px 14px; gap: 2px; }
.cmp-sdash .cmp-statbox__value { line-height: 1.15; margin-top: 4px; }
.cmp-sdash .cmp-card { font-size: 0.8125rem; line-height: 1.4; }
/* Carte dont le corps remplit toute la hauteur (tuiles des bornes alignées sur les cartes voisines) */
.cmp-card--fill > .cmp-card__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.cmp-card--fill > .cmp-card__body > * { flex: 1 1 auto; }
.cmp-sdash .cmp-statbox { padding: 14px 8px; gap: 3px; }
.cmp-sdash .cmp-statbox__ico { font-size: 1.5rem; margin-bottom: 4px; }
.cmp-sdash .cmp-statbox__label { font-size: 0.6875rem; line-height: 1.25; }
/* Passe « écarts avec la maquette » : cartes d'indicateurs alignées, cartes plus basses, listes plus serrées */
.cmp-sdash .cmp-sc .cmp-sc__tile { padding: 14px 16px; min-height: 0; }
.cmp-sdash .cmp-sc .cmp-sc__title { font-size: 0.7812rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-sdash .cmp-sc .cmp-sc__valrow { flex-wrap: nowrap; gap: 8px; }
.cmp-sdash .cmp-sc .cmp-trend { font-size: 0.6875rem; }
.cmp-sdash .cmp-chart { height: 175px; }
.cmp-sdash .cmp-donut { width: 150px; height: 150px; }
.cmp-sdash .cmp-donut__value { font-size: 1.0625rem; }
.cmp-sdash .cmp-donut__label { font-size: 0.6562rem; }
.cmp-sdash .cmp-legend__row { font-size: 0.75rem; align-items: flex-start; }
.cmp-sdash .cmp-legend__row .truncate { white-space: normal; overflow: visible; }
.cmp-sdash .cmp-card__title { white-space: nowrap; }
.cmp-sdash .cmp-chipsel { font-size: 0.7188rem; padding: 3px 8px; }
.cmp-sdash .cmp-row { padding-block: 6px; gap: 10px; }
.cmp-sdash .cmp-thumb { width: 34px; height: 34px; }
.cmp-sdash .cmp-row__meta { font-size: 0.6875rem; }
.cmp-sdash .cmp-avatar--sm { width: 28px; height: 28px; font-size: 0.6562rem; }
.cmp-sdash .cmp-row__sub { font-size: 0.6875rem; }
.cmp-sdash .cmp-minitable td { padding-block: 5px; }
.cmp-sdash .cmp-minitable th { padding-block: 5px; }
.cmp-sdash .cmp-minitable__time { width: 52px; }
.cmp-sdash .cmp-minitable__amountcol { width: 72px; }
.cmp-sdash .cmp-statbox__label { font-size: 0.6562rem; }
/* Passe 2 : titres des cartes entiers, dernière rangée serrée comme la maquette, libellé de l'anneau contenu */
.cmp-sdash .cmp-sc .cmp-sc__tile { padding: 14px; }
.cmp-sdash .cmp-sc .cmp-sc__title { font-size: 0.75rem; }
.cmp-sdash .cmp-donut__label { max-width: 96px; text-align: center; line-height: 1.2; }
.cmp-sdash .cmp-minitable { font-size: 0.7188rem; }
.cmp-sdash .cmp-minitable td { padding-block: 4px; }
.cmp-sdash .cmp-row:has(.cmp-avatar) { padding-block: 4px; }
.cmp-sdash .cmp-row:has(.cmp-avatar) .cmp-row__title { font-size: 0.75rem; }
.cmp-sdash .cmp-row:has(.cmp-avatar) .cmp-row__sub { font-size: 0.6562rem; }
.cmp-sdash .cmp-row:has(.cmp-avatar) .cmp-avatar--sm { width: 26px; height: 26px; font-size: 0.625rem; }
.cmp-sdash .cmp-statbox__value { font-size: 1.25rem; }
.cmp-sdash .cmp-sc .cmp-sc__title { font-size: 0.7188rem; }
.cmp-sdash .cmp-minitable th, .cmp-sdash .cmp-minitable td { padding-inline-end: 10px; }
.cmp-sdash .cmp-minitable th:last-child, .cmp-sdash .cmp-minitable td:last-child { padding-inline-end: 0; }
/* Passe 3 : dernière rangée aussi serrée que la maquette */
.cmp-sdash .cmp-card__head { padding: 13px 18px 4px; }
.cmp-sdash .cmp-card__body { padding: 4px 18px 12px; }
.cmp-sdash .cmp-row:has(.cmp-avatar) { padding-block: 3px; line-height: 1.2; }
.cmp-sdash .cmp-minitable td { padding-block: 3px; }
.cmp-sdash .cmp-statbox { padding: 10px 6px; }
.cmp-sdash .cmp-statbox__ico { font-size: 1.375rem; margin-bottom: 2px; }
/* Passe « détails de la maquette » */
.cmp-thumb__text { font-family: Georgia, 'Times New Roman', serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; color: var(--cmp-ink-80); }
.cmp-rank.is-gold   { color: #8a5a00; background-color: #fde68a; }
.cmp-rank.is-silver { color: var(--cmp-ink-70); background-color: var(--cmp-p-white-a10); }
.cmp-rank.is-bronze { color: #9a3412; background-color: #fed7aa; }
.cmp-sdash__trendcol { min-width: 58px; }
/* Lignes d'événements et de salles : noms entiers comme la maquette */
.cmp-sdash .cmp-row:has(.cmp-thumb) { gap: 8px; }
.cmp-sdash .cmp-row:has(.cmp-thumb) .cmp-row__title { font-size: 0.75rem; }
.cmp-sdash .cmp-row:has(.cmp-thumb) .cmp-row__meta { font-size: 0.6562rem; }
.cmp-sdash .cmp-row:has(.cmp-thumb) .cmp-row__amount { font-size: 0.7812rem; }
.cmp-sdash .cmp-thumb { width: 32px; height: 32px; }
.cmp-sdash .cmp-sdash__trendcol { min-width: 52px; }
/* Passe 4 : anneau plus compact, légende sur une ligne, clients plus serrés (maquette) */
.cmp-sdash .cmp-donut { width: 136px; height: 136px; }
.cmp-sdash .cmp-legend__row { font-size: 0.7188rem; }
.cmp-sdash .cmp-legend__row .truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-sdash .cmp-row:has(.cmp-avatar) { padding-block: 2px; }
.cmp-sdash .cmp-row:has(.cmp-avatar) .cmp-row__title { font-size: 0.7188rem; }
.cmp-sdash .cmp-row:has(.cmp-avatar) .cmp-row__sub { font-size: 0.625rem; }
.cmp-sdash .cmp-row:has(.cmp-avatar) .cmp-avatar--sm { width: 24px; height: 24px; font-size: 0.5938rem; }
/* Compacité de la maquette : titres de carte 14 px, montants 12 px, pastilles 10 px */
.cmp-sdash .cmp-card__title { font-size: 0.875rem; }
.cmp-sdash .cmp-row:has(.cmp-thumb) .cmp-row__amount, .cmp-sdash .cmp-row__amount { font-size: 0.75rem; }
.cmp-sdash .cmp-row .cmp-pill { font-size: 0.625rem; padding: 1px 6px; margin-top: 2px; }
.cmp-sdash .cmp-row:has(.cmp-thumb) { padding-block: 5px; }
/* En-tête de carte qui contient une liste déroulante : au-dessus du corps (même z-index 1, le corps venant après,
   il recouvrait le menu ouvert). */
.cmp-card__head:has(.cmp-ddmenu), .cmp-showcard__head:has(.cmp-ddmenu) { z-index: 3; }
/* Priorité au-dessus des règles du thème (chargé après) pour les tailles propres au tableau de bord */
.cmp-sdash .cmp-card .cmp-card__title { font-size: 0.875rem; }
/* Icônes de titre et d'indicateur : plus grandes et colorées par le ton de la carte (maquette) */
.cmp-sdash .cmp-card .cmp-card__icon { font-size: 1.375rem; color: rgb(var(--tone-rgb)); }
.cmp-sdash .cmp-sc .cmp-sc__ico > i { font-size: 1.625rem !important; }

/* ── Écarts maquette (13 oct.) ── */
/* Numéro de carte d'un formulaire en une page (1, 2, 3 devant le titre) : pastille ronde de la couleur principale */
.cmp-stepnum { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 9999px;
    font-size: 0.75rem; font-weight: var(--cmp-fw-bold); background-color: var(--accent, var(--cmp-p-indigo-500)); color: var(--cmp-lit-white, #fff); }
/* Ajouter une salle : recherche des bornes à droite de l'en-tête de carte (PC) */
@media (min-width: 1024px) { .cmp-salle-new__bornesearch { width: 420px; } }
/* Autocomplétion (admin d'une salle...) : liste de résultats sous le champ, par-dessus la page (menu déroulant du thème) */
.cmp-autocomplete__list { z-index: 40; margin-top: 4px; max-height: 320px; overflow-y: auto; }
/* Deux façons de faire côte à côte (créer un compte | ou | choisir un compte existant) : trait vertical « ou » sur PC,
   trait horizontal « ou » sur mobile. Dans une colonne, la fiche d'ajout de personne passe sur une seule colonne. */
.cmp-orsplit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cmp-orsplit__title { font-size: 0.875rem; font-weight: var(--cmp-fw-bold); color: var(--cmp-ink-90); margin-bottom: 10px; }
.cmp-orsplit__sep { display: flex; align-items: center; gap: 10px; color: var(--cmp-ink-40); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; }
.cmp-orsplit__sep::before, .cmp-orsplit__sep::after { content: ''; flex: 1; border-top: 1px solid var(--cmp-line-10, var(--cmp-line-8)); }
@media (min-width: 1024px) {
    .cmp-orsplit { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; }
    .cmp-orsplit__sep { flex-direction: column; }
    .cmp-orsplit__sep::before, .cmp-orsplit__sep::after { border-top: 0; border-inline-start: 1px solid var(--cmp-line-10, var(--cmp-line-8)); }
}
.cmp-orsplit .cmp-ajoutp__fiche { grid-template-columns: minmax(0, 1fr); }
/* Personne retenue (admin d'une salle, organisateur d'un événement) : fiche résumée */
.cmp-personcard { padding: 12px 14px; border-radius: var(--cmp-radius-card, 14px); border: 1px solid var(--cmp-line-8); background-color: var(--cmp-surf-3); }
/* Choix par cartes (bornes d'une salle...) : grosse icône, nom, coche en haut à droite, halo de la couleur de chaque carte
   (ton cmp-tone--<ton> sur la carte). Repris des cartes de choix de l'assistant IA d'Alyah Plus. */
.cmp-tilepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cmp-tilepick__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0;
    padding: 18px 10px 14px; border-radius: var(--cmp-radius-card, 14px); border: 1px solid var(--cmp-line-8); background-color: var(--cmp-surf-3);
    cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s, box-shadow .2s; }
@media (hover: hover) { .cmp-tilepick__item:not(.is-on):hover { border-color: rgba(var(--tone-rgb), 0.5); background-color: rgba(var(--tone-rgb), 0.06); } }
.cmp-tilepick__icon { font-size: 2.25rem; line-height: 1; color: rgba(var(--tone-rgb), 0.55); transition: color .15s; }
.cmp-tilepick__name { max-width: 100%; font-size: 0.8125rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-70); }
.cmp-tilepick__sub { max-width: 100%; font-size: 0.6875rem; color: var(--cmp-ink-45); }
.cmp-tilepick__check { position: absolute; top: 8px; inset-inline-end: 8px; width: 18px; height: 18px; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--cmp-line-15); color: transparent; font-size: 0.6875rem; transition: .15s; }
.cmp-tilepick__item.is-on { border-color: rgb(var(--tone-rgb)); background-color: rgba(var(--tone-rgb), 0.13);
    box-shadow: 0 0 0 2px rgba(var(--tone-rgb), 0.5), 0 0 22px rgba(var(--tone-rgb), 0.35); }
.cmp-tilepick__item.is-on .cmp-tilepick__icon { color: rgb(var(--tone-rgb)); }
.cmp-tilepick__item.is-on .cmp-tilepick__name { color: var(--cmp-ink-95); }
.cmp-tilepick__item.is-on .cmp-tilepick__check { background-color: rgb(var(--tone-rgb)); border-color: rgb(var(--tone-rgb)); color: var(--cmp-lit-white, #fff); }
.cmp-tilepick--docs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* bouton « retirer » d'une carte choisie (justificatif...), en haut à gauche (la coche est à droite) */
.cmp-tilepick__remove { position: absolute; top: 4px; inset-inline-start: 4px; }
/* Top / flop des événements : vignette et nom du type teintés par la couleur de la rubrique (--tone-rgb sur l'élément) */
.cmp-sdash .cmp-sdash__type { background-color: rgba(var(--tone-rgb), 0.15); color: rgb(var(--tone-rgb)); }
.cmp-sdash .cmp-sdash__typename { color: rgb(var(--tone-rgb)); font-weight: var(--cmp-fw-semibold); }
/* Rond plein à la place d'une icône (titre « Événements en cours ») */
.cmp-card__disc { width: 18px; height: 18px; border-radius: 9999px; background-color: rgb(var(--tone-rgb)); }
/* Top 5 : colonnes nom / événements / montant / tendance plus serrées pour garder le nom entier */
.cmp-sdash .cmp-sdash__top .cmp-row { gap: 8px; }
.cmp-sdash .cmp-sdash__top .cmp-row__meta { font-size: 0.6875rem; min-width: 66px; }
.cmp-sdash .cmp-sdash__top .cmp-sdash__trendcol { min-width: 44px; }
/* Bornes : tuiles basses, alignées en haut du corps de carte */
.cmp-sdash .cmp-sdash__tiles { align-content: start; }
.cmp-sdash .cmp-sdash__tiles .cmp-statbox { padding: 12px 6px; gap: 2px; }
/* Dernières transactions / derniers clients : texte plus petit pour éviter de couper les noms */
.cmp-sdash .cmp-minitable { font-size: 0.6875rem; }
.cmp-sdash .cmp-minitable__time { width: 44px; }
.cmp-sdash .cmp-minitable__amountcol { width: 54px; }
/* Lignes plus denses (maquette) : titres 12 px, écarts 8 px, colonne d'appoint 10.5 px */
.cmp-sdash .cmp-row { gap: 8px; }
.cmp-sdash .cmp-row__meta { font-size: 0.6562rem; }
.cmp-sdash .cmp-sdash__top .cmp-row { gap: 6px; }
.cmp-sdash .cmp-sdash__top .cmp-row__meta { font-size: 0.6562rem; min-width: 0; }
.cmp-sdash .cmp-sdash__top .cmp-thumb { width: 28px; height: 28px; }
.cmp-sdash .cmp-sdash__top .cmp-rank { width: 22px; height: 22px; }
.cmp-sdash .cmp-sdash__top .cmp-sdash__trendcol { min-width: 40px; }
.cmp-sdash .cmp-minitable__time { width: 36px; }
.cmp-sdash .cmp-minitable__venuecol { width: 116px; }
.cmp-sdash .cmp-sdash__venue { max-width: 36%; }
.cmp-sdash .cmp-sdash__top .cmp-row:has(.cmp-thumb) .cmp-row__title { font-size: 0.7188rem; }
.cmp-sdash .cmp-sdash__top .cmp-sdash__trendcol { min-width: 36px; }
.cmp-sdash .cmp-sdash__live .cmp-row:has(.cmp-thumb) .cmp-row__title { font-size: 0.7188rem; }
.cmp-sdash .cmp-sdash__live .cmp-row { gap: 6px; }
/* Derniers clients : lignes et avatars plus compacts (maquette) */
.cmp-sdash .cmp-row:has(.cmp-avatar) { padding-block: 1px; line-height: 1.12; }
.cmp-sdash .cmp-sdash__top .cmp-row { gap: 5px; }
/* Dernières transactions : en-têtes sans interlettrage (« HEURE » tient dans sa colonne), colonnes recalées */
.cmp-sdash .cmp-minitable th { letter-spacing: 0; }
.cmp-sdash .cmp-minitable__time { width: 42px; }
.cmp-sdash .cmp-minitable__amountcol { width: 50px; }
.cmp-sdash .cmp-minitable__venuecol { width: 118px; }
.cmp-sdash .cmp-minitable__time { width: 46px; }
.cmp-sdash .cmp-minitable__amountcol { width: 58px; }
.cmp-sdash .cmp-minitable__venuecol { width: 114px; }
.cmp-sdash .cmp-minitable th, .cmp-sdash .cmp-minitable td { padding-inline: 3px; }
.cmp-sdash .cmp-minitable th:first-child, .cmp-sdash .cmp-minitable td:first-child { padding-inline-start: 0; }
.cmp-sdash .cmp-minitable th:last-child, .cmp-sdash .cmp-minitable td:last-child { padding-inline-end: 0; }
.cmp-sdash .cmp-minitable__time { width: 38px; }
.cmp-sdash .cmp-minitable__venuecol { width: 114px; }

/* ============================================================================
   Assistant « Ajouter une salle partenaire » (salles/create) : étapes, cartes de choix, zone de logo, note
   ============================================================================ */
.cmp-wizard > * + * { margin-top: 14px; }
.cmp-wizard__grid, .cmp-wizard__side, .cmp-wizard__pick { gap: 14px; }
.cmp-wizard__title { font-size: 0.9375rem; font-weight: var(--cmp-fw-bold); color: var(--cmp-ink-90); }
.cmp-wizard__subtitle { font-size: 0.875rem; font-weight: var(--cmp-fw-bold); color: var(--cmp-ink-90); margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.cmp-wizard__hint { font-size: 0.7812rem; color: var(--cmp-ink-55); margin-top: 2px; }
.cmp-wizard__fields { gap: 14px 18px; margin-top: 16px; }
.cmp-wizard .cmp-label { margin-bottom: 6px; }   /* tous les libellés des parcours guidés (grilles de champs et blocs isolés) */
.cmp-wizard__nav { padding-top: 4px; }
.cmp-wizard__next { min-width: 120px; }

/* Étapes numérotées reliées par un trait */
.cmp-steps { padding: 14px 24px; gap: 14px; }
.cmp-steps__item { color: var(--cmp-ink-55); font-size: 0.8125rem; font-weight: var(--cmp-fw-medium); cursor: pointer; background: none; border: 0; }
.cmp-steps__num { width: 26px; height: 26px; border-radius: 9999px; font-size: 0.75rem; font-weight: var(--cmp-fw-semibold);
    background-color: var(--cmp-p-white-a06); color: var(--cmp-ink-60); }
.cmp-steps__item.is-active { color: var(--cmp-ink-90); font-weight: var(--cmp-fw-semibold); }
.cmp-steps__item.is-active .cmp-steps__num, .cmp-steps__item.is-done .cmp-steps__num { background-color: var(--accent, var(--cmp-p-indigo-500)); color: var(--cmp-lit-white, #fff); }
.cmp-steps__line { height: 1px; background-color: var(--cmp-p-white-a08); min-width: 16px; }
.cmp-steps__line.is-done { background-color: var(--accent, var(--cmp-p-indigo-500)); }

/* Carte de choix (bouton radio illustré) */
.cmp-radiocard { padding: 14px 16px; border-radius: var(--cmp-radius-control); border: 1px solid var(--cmp-p-white-a08); background: transparent; cursor: pointer; width: 100%; }
.cmp-radiocard.is-on { border-color: color-mix(in oklab, var(--accent, var(--tone-500)) 35%, transparent); background-color: color-mix(in oklab, var(--accent, var(--tone-500)) 6%, transparent); }
.cmp-radiocard__dot { width: 18px; height: 18px; margin-top: 1px; border-radius: 9999px; border: 1.5px solid var(--cmp-ink-30); }
.cmp-radiocard.is-on .cmp-radiocard__dot { border: 5px solid var(--accent, var(--tone-500)); }
.cmp-radiocard__title { font-size: 0.8125rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-90); }
.cmp-radiocard__desc { font-size: 0.7188rem; color: var(--cmp-ink-55); margin-top: 3px; line-height: 1.4; }

/* Zone de dépôt d'image (logo) */
.cmp-dropzone { margin-top: 14px; padding: 16px; border: 1px dashed var(--cmp-p-white-a12, var(--cmp-p-white-a08)); border-radius: var(--cmp-radius-control); }
.cmp-dropzone.is-over { border-color: var(--accent, var(--cmp-p-indigo-500)); }
.cmp-dropzone__preview { width: 108px; height: 108px; border-radius: var(--cmp-radius-control); background-color: var(--cmp-p-white-a04, var(--cmp-p-white-a06)); overflow: hidden; color: var(--cmp-ink-40); }
.cmp-dropzone__preview i { font-size: 2rem; }
.cmp-dropzone__preview img { width: 100%; height: 100%; object-fit: contain; }
.cmp-dropzone__hint { font-size: 0.7188rem; color: var(--cmp-ink-50); margin-top: 10px; line-height: 1.5; }

/* Note d'information teintée */
.cmp-note { padding: 10px 12px; border-radius: var(--cmp-radius-control); background-color: rgba(var(--tone-rgb), 0.08); color: var(--cmp-ink-70); font-size: 0.7188rem; line-height: 1.45; }
.cmp-note > i { color: rgb(var(--tone-rgb)); font-size: 1rem; }

/* Compteur de caractères, listes de choix, case cochée, bouton icône */
.cmp-counter { font-size: 0.6875rem; color: var(--cmp-ink-45); margin-top: 4px; }
.cmp-picklist { margin-top: 8px; max-height: 360px; overflow-y: auto; }
.cmp-picklist .cmp-row:disabled { opacity: 0.5; cursor: default; }
.cmp-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--cmp-ink-30); color: transparent; font-size: 0.8125rem; }
.cmp-check.is-on { background-color: var(--accent, var(--cmp-p-indigo-500)); border-color: transparent; color: var(--cmp-lit-white, #fff); }
.cmp-iconbtn { width: 28px; height: 28px; border-radius: 8px; color: var(--cmp-ink-50); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (hover: hover) { .cmp-iconbtn:hover { color: var(--cmp-ink-90); background-color: var(--cmp-p-white-a06); } }
.cmp-wizard .cmp-thumb { width: 32px; height: 32px; }

/* Récapitulatif clé / valeur */
.cmp-recap { gap: 0 32px; margin-top: 14px; }
.cmp-recap__row { padding-block: 9px; border-bottom: 1px solid var(--cmp-p-white-a06); font-size: 0.8125rem; }
.cmp-recap__label { color: var(--cmp-ink-55); }
.cmp-recap__value { color: var(--cmp-ink-90); font-weight: var(--cmp-fw-medium); }
.cmp-salle-logo { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.cmp-wizard__nav .cmp-btn { height: 40px; padding-inline: 18px; font-size: 0.8125rem; }
/* Texte d'aide puis champs : au moins 16 px d'air (ne jamais coller un champ à un texte) */
.cmp-wizard__pick { margin-top: 16px; }
/* Statut des bornes : les tuiles occupent toute la hauteur de la carte (maquette), contenu centré verticalement */
.cmp-sdash .cmp-sdash__tiles { align-content: stretch; grid-auto-rows: 1fr; height: 100%; }
.cmp-sdash .cmp-sdash__tiles .cmp-statbox { height: 100%; justify-content: center; }
.cmp-sdash .cmp-sdash__tiles .cmp-statbox__label { white-space: nowrap; font-size: 0.6562rem; }

/* ============================================================================
   Tableau de bord : typographie lisible (proportions de la maquette, un cran au-dessus pour le confort).
   En rem : suit le réglage « Taille de police » de Paramètres (calé sur 16 px). Prioritaire sur les réglages
   compacts précédents (!important), sans toucher aux valeurs des indicateurs propres à chaque thème.
   Les noms longs passent sur deux lignes au lieu d'être coupés ou rapetissés.
   ============================================================================ */
.cmp-sdash .cmp-card .cmp-card__title          { font-size: 1rem !important; }   /* 16 */
.cmp-sdash .cmp-sc .cmp-sc__title              { font-size: 0.8125rem !important; }   /* 13 */
.cmp-sdash .cmp-sc .cmp-sc__sub                { font-size: 0.75rem !important; }     /* 12 */
.cmp-sdash .cmp-card .cmp-row__title           { font-size: 0.8125rem !important; line-height: 1.3; }   /* 13 */
.cmp-sdash .cmp-card .cmp-row__sub             { font-size: 0.75rem !important; }     /* 12 */
.cmp-sdash .cmp-card .cmp-row__meta            { font-size: 0.75rem !important; }     /* 12 */
.cmp-sdash .cmp-card .cmp-row__amount          { font-size: 0.8125rem !important; }   /* 13 */
.cmp-sdash .cmp-card .cmp-row .cmp-pill        { font-size: 0.6875rem !important; padding: 2px 7px !important; }   /* 11 */
.cmp-sdash .cmp-card .cmp-trend                { font-size: 0.75rem !important; }
.cmp-sdash .cmp-card .cmp-minitable            { font-size: 0.75rem !important; }     /* 12 */
.cmp-sdash .cmp-card .cmp-minitable th         { font-size: 0.6875rem !important; }   /* 11 */
.cmp-sdash .cmp-card .cmp-legend__row          { font-size: 0.78125rem !important; }  /* 12,5 */
.cmp-sdash .cmp-card .cmp-statbox__label       { font-size: 0.75rem !important; white-space: normal; }
.cmp-sdash .cmp-card .cmp-more, .cmp-sdash .cmp-chipsel { font-size: 0.78125rem !important; }
/* noms longs : deux lignes plutôt que coupés */
.cmp-sdash .cmp-card .cmp-row__title.truncate {
    white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmp-sdash .cmp-card .cmp-row { gap: 10px !important; padding-block: 7px !important; }
.cmp-sdash .cmp-card .cmp-minitable td { padding-block: 6px !important; vertical-align: middle; }
/* colonnes d'appoint du Top 5 : sous 1500 px de large, le nombre d'événements passe sous le nom (place pour le nom) */
@media (max-width: 1499.98px) { .cmp-sdash .cmp-sdash__top .cmp-row__meta { display: none; } }
.cmp-sdash__evt-inline { display: none; }
@media (max-width: 1499.98px) { .cmp-sdash__evt-inline { display: inline; } }
/* tableau « Dernières transactions » : une ligne par cellule (« … » si trop long), colonnes recalées pour 12 px */
.cmp-sdash .cmp-card .cmp-minitable__time { width: 44px !important; }
.cmp-sdash .cmp-card .cmp-minitable__amountcol { width: 62px !important; }
.cmp-sdash .cmp-card .cmp-minitable__venuecol { width: 38% !important; }
.cmp-sdash .cmp-card .cmp-minitable__venuecol { width: 36% !important; }
/* nom de l'événement : peut passer sur deux lignes (la cellule reste une vraie cellule de tableau) */
.cmp-sdash .cmp-card .cmp-minitable td:nth-child(2) { white-space: normal; text-overflow: clip; line-height: 1.3; }

/* Indicateur « En direct » (tableau de bord, période Aujourd'hui) : point pulsant + heure de la dernière mise à jour */
.cmp-live-pill { margin-inline-start: 0; padding: 1px 8px; white-space: nowrap; border-radius: 9999px; font-size: 0.75rem; font-weight: var(--cmp-fw-semibold);
    letter-spacing: 0; vertical-align: middle; background: rgba(16, 185, 129, 0.12); color: var(--cmp-p-emerald-600, #059669); }
.cmp-live-pill__dot { width: 7px; height: 7px; border-radius: 9999px; background: #10b981; animation: cmp-live-pulse 1.6s ease-in-out infinite; }
.cmp-live-pill__time { font-weight: var(--cmp-fw-medium); opacity: 0.75; font-variant-numeric: tabular-nums; }
@keyframes cmp-live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); } 50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); } }
@media (prefers-reduced-motion: reduce) { .cmp-live-pill__dot { animation: none; } }
/* Période personnalisée dans la liste des périodes */
.cmp-ddmenu__range { margin-top: 6px; padding: 10px 8px 6px; border-top: 1px solid var(--cmp-p-white-a08); display: grid; gap: 8px; min-width: 260px; }
.cmp-ddmenu__label { font-size: 0.75rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-70); }
.cmp-ddmenu__sub { font-size: 0.6875rem; color: var(--cmp-ink-55); margin-bottom: 3px; }

/* Tableau de bord : icônes plus grandes (indicateurs 44 px, titres de carte 28 px), en rem pour suivre la taille de police.
   Thèmes plat, verre et Legacy uniquement : les styles design system ont leurs icônes calibrées dans un disque ou un carré. */
:is([data-theme="light-flat"], [data-theme="dark-flat"], [data-theme="light-glass"], [data-theme="dark-glass-modern"], [data-theme="dark-glass"]) .cmp-sdash .cmp-sc .cmp-sc__ico > i { font-size: 2.75rem !important; }
:is([data-theme="light-flat"], [data-theme="dark-flat"], [data-theme="light-glass"], [data-theme="dark-glass-modern"], [data-theme="dark-glass"]) .cmp-sdash .cmp-card .cmp-card__icon { font-size: 1.75rem !important; }
:is([data-theme="light-flat"], [data-theme="dark-flat"], [data-theme="light-glass"], [data-theme="dark-glass-modern"], [data-theme="dark-glass"]) .cmp-sdash .cmp-card .cmp-card__disc { width: 1.4rem; height: 1.4rem; }
/* titres des indicateurs : en entier (deux lignes si besoin) plutôt que coupés */
.cmp-sdash .cmp-sc .cmp-sc__title { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25; }
/* Cartes de synthèse alignées en colonnes (maquette), sur toutes les pages : les cartes partagent les mêmes lignes (titre / chiffre / sous-titre).
   La ligne des titres prend la hauteur du plus long, montants et sous-titres tombent à la même hauteur partout. */
@media (min-width: 1024px) {
    .cmp-sc { grid-template-rows: auto auto auto; row-gap: 0; }
    .cmp-sc .cmp-sc__tile { display: grid; align-content: start; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
}
/* Plusieurs rangées (cmp-sc--c<colonnes> : nombre de colonnes sur grand écran) : sans écart de ligne (subgrid),
   chaque rangée après la première reçoit l'écart entre cartes */
@media (min-width: 1024px) {
    .cmp-sc--c2 > .cmp-sc__tile:nth-child(n + 3), .cmp-sc--c3 > .cmp-sc__tile:nth-child(n + 4), .cmp-sc--c4 > .cmp-sc__tile:nth-child(n + 5),
    .cmp-sc--c5 > .cmp-sc__tile:nth-child(n + 6), .cmp-sc--c6 > .cmp-sc__tile:nth-child(n + 7) { margin-top: var(--cmp-gap-cartes); }
}

/* Listes du tableau de bord en colonnes (maquette) : les lignes partagent la grille de la carte (subgrid),
   chaque colonne (rang, logo, nom, détail, montant, tendance) a la même largeur et le même alignement d'une ligne à l'autre. */
@media (min-width: 1024px) {
    .cmp-sdash :is(.cmp-sdash__top, .cmp-sdash__live, .cmp-sdash__upcoming, .cmp-sdash__clients) > .cmp-card__body { display: grid; column-gap: 10px; align-content: start; }
    .cmp-sdash :is(.cmp-sdash__top, .cmp-sdash__live, .cmp-sdash__upcoming, .cmp-sdash__clients) > .cmp-card__body > .cmp-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: inherit; }
    .cmp-sdash :is(.cmp-sdash__top, .cmp-sdash__live, .cmp-sdash__upcoming, .cmp-sdash__clients) > .cmp-card__body > .cmp-empty { grid-column: 1 / -1; }
    /* Top 5 : rang | logo | salle | événements | montant | tendance */
    .cmp-sdash .cmp-sdash__top > .cmp-card__body { grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; }
    .cmp-sdash .cmp-sdash__top .cmp-row__meta { text-align: end; min-width: 0; }
    .cmp-sdash .cmp-sdash__top .cmp-row__amount { text-align: end; }
    .cmp-sdash .cmp-sdash__top .cmp-sdash__trendcol { min-width: 0; text-align: start; }
    /* Top / flop des événements : rang | type | événement | date | montant (pas de tendance) */
    .cmp-sdash .cmp-sdash__evtop > .cmp-card__body { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
    /* En cours : photo | événement | date | montant + état ; à venir : photo | événement | date | J-n */
    .cmp-sdash :is(.cmp-sdash__live, .cmp-sdash__upcoming) > .cmp-card__body { grid-template-columns: auto minmax(0, 1fr) auto auto; }
    .cmp-sdash :is(.cmp-sdash__live, .cmp-sdash__upcoming) .cmp-row__meta { text-align: start; }
    .cmp-sdash .cmp-sdash__upcoming .cmp-row > .cmp-pill { justify-self: stretch; justify-content: center; }
    /* Derniers clients : avatar | nom + e-mail | date | salle (au plus un tiers de la carte) */
    .cmp-sdash .cmp-sdash__clients > .cmp-card__body { grid-template-columns: auto minmax(0, 1fr) auto fit-content(34%); }
    .cmp-sdash .cmp-sdash__clients .cmp-sdash__venue { max-width: none; min-width: 0; }
}
/* Statut des bornes : libellé toujours sur deux lignes de hauteur, pour que icône et chiffre restent alignés
   d'une tuile à l'autre quand un libellé passe à la ligne (« Total des bornes ») */
.cmp-sdash .cmp-sdash__tiles .cmp-statbox__label { line-height: 1.25; min-height: 2.5em; }
@media (min-width: 1024px) and (max-width: 1499.98px) {
    /* la colonne « événements » passe sous le nom de la salle : une colonne de moins */
    .cmp-sdash .cmp-sdash__top > .cmp-card__body { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
}

/* Tableau de bord trop étroit pour son contenu (écran moyen, ou grande taille de texte) : la largeur disponible est
   mesurée en rem, donc elle suit la taille du texte. Sous 64,5 rem (1 032 px à taille normale) :
   indicateurs 3 par rangée, cartes 2 par rangée (la 3e en pleine largeur), graphique et répartition l'un sous l'autre.
   À partir de 1024 px seulement (en dessous, les grilles sont déjà sur une colonne). */
.cmp-sdash { container: sdash / inline-size; }
@media (min-width: 1024px) { @container sdash (max-width: 67.49rem) {
    /* indicateurs : 5 par rangée demandent ~ 13,5 rem chacun (montant + tendance + icône) */
    .cmp-sdash .cmp-sc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cmp-sdash .cmp-sc .cmp-sc__tile:nth-child(n + 4) { margin-top: var(--cmp-gap-cartes); }   /* 2e rangée (les lignes partagées n'ont pas d'écart) */
} }
@media (min-width: 1024px) { @container sdash (max-width: 64.49rem) {
    .cmp-sdash .cmp-sdash__grid.lg\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cmp-sdash .cmp-sdash__grid.lg\:grid-cols-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }   /* carte seule sur sa rangée : pleine largeur */
    .cmp-sdash .cmp-sdash__grid.lg\:grid-cols-5 { grid-template-columns: minmax(0, 1fr); }
    .cmp-sdash .cmp-sdash__grid.lg\:grid-cols-5 > * { grid-column: 1 / -1; }
} }

/* Écart entre cartes : UN seul jeton pour l'horizontal (cartes voisines) et le vertical (rangées, blocs de la page),
   pour qu'ils restent égaux quelles que soient la densité (options.css) et la taille du texte (rem). 14 px à taille normale. */
:root { --cmp-gap-cartes: 0.875rem; }
.cmp-sc { column-gap: var(--cmp-gap-cartes) !important; margin-bottom: var(--cmp-gap-cartes) !important; }
.cmp-sdash > * + * { margin-top: var(--cmp-gap-cartes) !important; }
.cmp-sdash .cmp-sdash__grid { gap: var(--cmp-gap-cartes) !important; }
.cmp-sdash .cmp-sc { margin-bottom: 0 !important; }
/* grand écran : lignes partagées (subgrid) sans écart, la 2e rangée reçoit une marge ; sur mobile, cartes empilées avec l'écart normal */
@media (min-width: 1024px) { .cmp-sdash .cmp-sc { row-gap: 0 !important; } }
@media (max-width: 1023.98px) { .cmp-sc, .cmp-sdash .cmp-sc { row-gap: var(--cmp-gap-cartes) !important; } }   /* même écart que sur grand écran, sur toutes les pages */

/* Cartes de synthèse homogènes sur toutes les pages : mêmes mesures que le tableau de bord (marges, textes, icône),
   quelle que soit la taille demandée par la page (cmp-sc--xl, --lg…). En rem : suivent la taille du texte ; la densité
   (options.css) règle la marge verticale. */
.cmp-sc .cmp-sc__tile { padding: 0.875rem 1rem !important; min-height: 0 !important; }
.cmp-sc .cmp-sc__head { margin-bottom: 0 !important; }
.cmp-sc .cmp-sc__title { font-size: 0.8125rem !important; line-height: 1.25; white-space: normal; }
.cmp-sc .cmp-sc__value { font-size: 1.5rem !important; line-height: 1.2; }
.cmp-sc .cmp-sc__sub { font-size: 0.75rem !important; line-height: 1.3; }
:is([data-theme="light-flat"], [data-theme="dark-flat"], [data-theme="light-glass"], [data-theme="dark-glass-modern"], [data-theme="dark-glass"]) .cmp-sc .cmp-sc__ico > i { font-size: 2.75rem !important; }

/* Rangées de cartes de synthèse selon la place réelle (largeur du contenu en rem : suit la taille du texte), à partir de 1024 px :
   6 cartes sous 84 rem -> 3 par rangée (2 rangées) ; 5 cartes sous 67,5 rem -> 3 par rangée. La 2e rangée reçoit l'écart entre
   cartes (les lignes partagées n'ont pas d'écart). Le tableau de bord a ses propres règles (conteneur sdash). */
.cmp-sc-zone { container: cartes / inline-size; }
@media (min-width: 1024px) {
    @container cartes (max-width: 83.99rem) {
        .cmp-sc.lg\:grid-cols-6:not(.cmp-sc--ligne) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .cmp-sc.lg\:grid-cols-6:not(.cmp-sc--ligne) > .cmp-sc__tile:nth-child(n + 4) { margin-top: var(--cmp-gap-cartes); }
    }
    @container cartes (max-width: 67.49rem) {
        .cmp-sc.lg\:grid-cols-5:not(.cmp-sdash .cmp-sc, .cmp-sc--ligne) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .cmp-sc.lg\:grid-cols-5:not(.cmp-sdash .cmp-sc, .cmp-sc--ligne) > .cmp-sc__tile:nth-child(n + 4) { margin-top: var(--cmp-gap-cartes); }
    }
    /* « une rangée » (option uneLigne) : 5 cartes tant qu'elles gardent leur texte entier, en dessous 3 par rangée */
    @container cartes (max-width: 55.99rem) {
        .cmp-sc--ligne.lg\:grid-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .cmp-sc--ligne.lg\:grid-cols-5 > .cmp-sc__tile:nth-child(n + 4) { margin-top: var(--cmp-gap-cartes); }
    }
}

/* Flat Design clair : icône et sous-titre des cartes de synthèse lisibles sur la teinte de la carte (contraste mesuré) */
[data-theme="light-flat"] .cmp-sc__tile .cmp-sc__ico > i { color: color-mix(in oklab, rgb(var(--sc-rgb)) 78%, #000) !important; }
[data-theme="light-flat"] .cmp-sc__tile .cmp-sc__sub { color: #4f5568 !important; }
/* Dons : totaux encaissés par devise, centrés sous les cartes de synthèse, détail ligne par ligne */
.cmp-devtot-zone { margin-bottom: var(--cmp-gap-cartes); }
.cmp-devtot-zone > .flex { gap: var(--cmp-gap-cartes); }
.cmp-devtot { width: 20rem; max-width: 100%; padding: 1rem 1.25rem; cursor: pointer; border-radius: var(--cmp-radius-card, 12px);
    background: rgba(var(--tone-rgb), 0.08); border: 1px solid rgba(var(--tone-rgb), 0.18); color: var(--cmp-text); }
@media (hover: hover) { .cmp-devtot:hover { border-color: rgba(var(--tone-rgb), 0.45); } }
.cmp-devtot__ico { font-size: 1.5rem; color: color-mix(in oklab, rgb(var(--tone-rgb)) 78%, #000); }
[data-theme*="dark"] .cmp-devtot__ico, [data-theme="dark-glass"] .cmp-devtot__ico { color: color-mix(in oklab, rgb(var(--tone-rgb)) 60%, #fff); }
.cmp-devtot__title { font-size: 0.8125rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-text-strong); }
.cmp-devtot__value { font-size: 1.75rem; font-weight: var(--cmp-fw-bold); color: var(--cmp-text-strong); margin: 0.25rem 0 0.625rem; font-variant-numeric: tabular-nums; }
.cmp-devtot__lignes { font-size: 0.78rem; border-top: 1px solid rgba(var(--tone-rgb), 0.2); padding-top: 0.5rem; display: grid; gap: 0.25rem; }
.cmp-devtot__lignes dt { color: var(--cmp-text-muted); }
.cmp-devtot__lignes dd { font-weight: var(--cmp-fw-semibold); color: var(--cmp-text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-devtot__net { border-top: 1px dashed rgba(var(--tone-rgb), 0.25); padding-top: 0.25rem; margin-top: 0.125rem; }

/* Disposition « synthèse » (cmp-synthese) : cartes de synthèse à gauche, bloc complémentaire à droite (ex. totaux par devise).
   La zone mesure sa largeur (conteneur) ; ses deux enfants passent côte à côte quand elle fait au moins 70 rem (96 rem pour la variante une rangée), sinon empilés.
   Écarts = écart entre cartes ; le bloc de droite prend la hauteur des cartes. */
.cmp-synthese { container: synthese / inline-size; margin-bottom: var(--cmp-gap-cartes); }
.cmp-synthese > div { min-width: 0; }
.cmp-synthese .cmp-sc, .cmp-synthese .cmp-devtot-zone { margin-bottom: 0 !important; }
.cmp-synthese__cote { margin-top: var(--cmp-gap-cartes); }
@container synthese (min-width: 70rem) {
    .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__grille { display: grid; grid-template-columns: minmax(0, 1fr) 31rem; gap: var(--cmp-gap-cartes); align-items: stretch; }
    .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__cote { margin-top: 0; }
    /* les deux côtés finissent au même niveau : les cartes de gauche s'étirent sur la hauteur de la zone */
    .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__principal .cmp-sc-zone, .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__principal .cmp-sc { height: 100%; }
    .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__principal .cmp-sc { align-content: stretch; }
    .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__cote .cmp-devtot-zone { height: 100%; }
    .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__cote .cmp-devtot-zone > .flex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; }
    .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__cote .cmp-devtot-zone > .flex:not(:has(> button:nth-of-type(2))) { grid-template-columns: minmax(0, 1fr); }
    .cmp-synthese:not(.cmp-synthese--ligne) .cmp-synthese__cote .cmp-devtot { width: auto; height: 100%; display: flex; flex-direction: column; justify-content: center; }
}
/* variante une rangée (5 cartes du co-hôte) : côte à côte seulement s'il reste assez de place pour des cartes lisibles */
@container synthese (min-width: 96rem) {
    .cmp-synthese--ligne .cmp-synthese__grille { display: grid; grid-template-columns: minmax(0, 1fr) 31rem; gap: var(--cmp-gap-cartes); align-items: stretch; }
    .cmp-synthese--ligne .cmp-synthese__cote { margin-top: 0; }
    /* les deux côtés finissent au même niveau : les cartes de gauche s'étirent sur la hauteur de la zone */
    .cmp-synthese--ligne .cmp-synthese__principal .cmp-sc-zone, .cmp-synthese--ligne .cmp-synthese__principal .cmp-sc { height: 100%; }
    .cmp-synthese--ligne .cmp-synthese__principal .cmp-sc { align-content: stretch; }
    .cmp-synthese--ligne .cmp-synthese__cote .cmp-devtot-zone { height: 100%; }
    .cmp-synthese--ligne .cmp-synthese__cote .cmp-devtot-zone > .flex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; }
    .cmp-synthese--ligne .cmp-synthese__cote .cmp-devtot-zone > .flex:not(:has(> button:nth-of-type(2))) { grid-template-columns: minmax(0, 1fr); }
    .cmp-synthese--ligne .cmp-synthese__cote .cmp-devtot { width: auto; height: 100%; display: flex; flex-direction: column; justify-content: center; }
}
/* bloc de droite masqué (ex. aucun don, totaux vides) : les cartes prennent toute la largeur, pas de colonne vide */
.cmp-synthese__grille:has(.cmp-synthese__cote .cmp-devtot-zone[style*="display: none"]) { grid-template-columns: minmax(0, 1fr); }
.cmp-synthese__cote:has(> .cmp-devtot-zone[style*="display: none"]) { display: none; }

/* Thèmes verre : les menus déroulants floutent ce qui est derrière eux (fond translucide + flou).
   Un élément flouté ne peut pas flouter au-delà d'un parent lui-même flouté : pendant qu'un menu est ouvert, son conteneur
   (barre du haut, carte, menu latéral) suspend son propre flou, le temps de l'ouverture. */
html:is([data-theme="light-glass"], [data-theme="dark-glass-modern"], [data-theme="dark-glass"]) :is(.cmp-ddmenu, .cmp-select__dropdown, .cmp-topbar__dropdown, .cmp-qf__menu, .cmp-dt__menu, .cmp-popmenu, .cmp-langmenu, .cmp-sidebar__menu) {
    backdrop-filter: blur(22px) saturate(1.6) !important; -webkit-backdrop-filter: blur(22px) saturate(1.6) !important;
}
html[data-theme="light-glass"][data-theme] :is(.cmp-ddmenu, .cmp-select__dropdown, .cmp-topbar__dropdown, .cmp-qf__menu, .cmp-dt__menu, .cmp-popmenu, .cmp-langmenu, .cmp-sidebar__menu) { background: rgba(255, 255, 255, 0.42) !important; }
html[data-theme="dark-glass-modern"][data-theme] :is(.cmp-ddmenu, .cmp-select__dropdown, .cmp-topbar__dropdown, .cmp-qf__menu, .cmp-dt__menu, .cmp-popmenu, .cmp-langmenu, .cmp-sidebar__menu) { background: rgba(22, 25, 33, 0.45) !important; }
html[data-theme="dark-glass"][data-theme] :is(.cmp-ddmenu, .cmp-select__dropdown, .cmp-topbar__dropdown, .cmp-qf__menu, .cmp-dt__menu, .cmp-popmenu, .cmp-langmenu, .cmp-sidebar__menu) { background: rgba(10, 10, 18, 0.45) !important; }
:is([data-theme="light-glass"], [data-theme="dark-glass-modern"], [data-theme="dark-glass"]) :is(.cmp-topbar, .cmp-sidebar, .section-glow, .card-glow, .cmp-dt, .cmp-card):has(:is(.cmp-ddmenu, .cmp-select__dropdown, .cmp-sidebar__menu, .cmp-dt__menu, .cmp-popmenu):not([style*="none"])) {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}

/* ── Vue d'ensemble d'un événement (events/partials/_tab-overview) : reprend le tableau de bord (.cmp-sdash) ── */
.cmp-edash__pas { font-size: 0.75rem; color: var(--cmp-ink-55); }
.cmp-edash__jourj { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem; min-height: 15rem; }
.cmp-edash__compte { font-size: 2.75rem; line-height: 1.1; font-weight: 700; color: rgb(var(--tone-rgb)); }
.cmp-edash__date { font-size: 1rem; font-weight: 600; text-transform: capitalize; }
.cmp-edash__heure { font-size: 0.875rem; color: var(--cmp-ink-55); font-variant-numeric: tabular-nums; }
.cmp-edash__lieu { font-size: 0.8125rem; color: var(--cmp-ink-55); margin-top: 0.25rem; }
.cmp-edash .cmp-minitable .cmp-pill { margin-top: 2px; }

/* Bouton de la barre du haut qui signale un état en direct (ex. aperçu de la borne pendant l'événement) */
.cmp-ddbtn.is-live { color: rgb(var(--tone-rgb)); border-color: rgba(var(--tone-rgb), 0.45); background-color: rgba(var(--tone-rgb), 0.10); }
.cmp-ddbtn.is-live > i { color: inherit; }
/* point « en direct » pulsant (bouton de la barre du haut, badge de phase) */
.cmp-live-dot, .cmp-ddbtn__live { position: relative; width: 0.625rem; height: 0.625rem; border-radius: 9999px; background-color: rgb(var(--tone-rgb)); }
.cmp-live-dot::after, .cmp-ddbtn__live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-color: rgb(var(--tone-rgb)); animation: cmp-ddbtn-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes cmp-ddbtn-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmp-live-dot::after, .cmp-ddbtn__live::after { animation: none; } }

/* ── Bandeau d'alerte (ui/alert) : fond teinté léger, sans bordure ni halo, dans tous les thèmes ── */
.cmp-alert { padding: 0.875rem 1rem; border-radius: var(--cmp-radius-panel); border: 0; background-color: rgba(var(--tone-rgb), 0.08); }
.cmp-alert__icon { width: 2.25rem; height: 2.25rem; border-radius: var(--cmp-radius-small); background-color: rgba(var(--tone-rgb), 0.14); color: rgb(var(--tone-rgb)); font-size: 1.125rem; }
.cmp-alert__title { font-size: 0.8125rem; font-weight: 600; color: rgb(var(--tone-rgb)); }
.cmp-alert__text { font-size: 0.75rem; color: var(--cmp-ink-65); margin-top: 0.125rem; }
.cmp-alert__detail { font-weight: 500; color: var(--cmp-ink-85); }
.cmp-alert__action { padding: 0.375rem 0.75rem; border-radius: var(--cmp-radius-small); font-size: 0.75rem; font-weight: 500; color: rgb(var(--tone-rgb));
    background-color: rgba(var(--tone-rgb), 0.12); border: 0; cursor: pointer; align-self: center; }
.cmp-alert__action:hover { background-color: rgba(var(--tone-rgb), 0.18); }
.cmp-alert__close { color: var(--cmp-ink-40); cursor: pointer; }
.cmp-alert__close:hover { color: var(--cmp-ink-70); }

/* ── Badge de phase d'un événement (ui/phase-badge), à côté du titre dans la barre du haut ── */
.cmp-phase { padding: 0.1875rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; line-height: 1.4; white-space: nowrap;
    color: rgb(var(--tone-rgb)); background-color: rgba(var(--tone-rgb), 0.10); border: 1px solid rgba(var(--tone-rgb), 0.20); }
.cmp-phase > i { font-size: 0.875rem; }
.cmp-phase.is-live { font-weight: 600; }
.cmp-phase__rel { font-weight: 400; opacity: 0.8; }
/* dans la barre du haut : même hauteur, mêmes coins et même taille de texte que les boutons voisins (étiré sur la rangée) */
.cmp-topbar__actions > .cmp-phase { align-self: stretch; border-radius: var(--cmp-radius-small); padding-block: 0; padding-inline: calc(var(--cmp-space) * 3); font-size: 0.8125rem; }

/* Lignes de légende et de mini-tableau cliquables (vues d'ensemble : mènent à l'onglet détaillé) */
.cmp-legend__row.is-click, .cmp-minitable tr.is-click { cursor: pointer; }
@media (hover: hover) { .cmp-legend__row.is-click:hover, .cmp-minitable tr.is-click:hover td { color: var(--cmp-p-indigo-400); } }

/* ── Création guidée d'un événement (events/create) : une question par étape, résumé à droite ── */
.cmp-evwz__question { font-size: 1.125rem; line-height: 1.35; font-weight: var(--cmp-fw-bold); color: var(--cmp-ink-90); }
.cmp-evwz__question--next { margin-top: 28px; }
.cmp-evwz__types { gap: 10px; margin-top: 16px; }
.cmp-evwz__chips { margin-top: 16px; }
.cmp-evwz__chipslabel { font-size: 0.75rem; color: var(--cmp-ink-55); margin-inline-end: 4px; }
.cmp-evwz__phrase { margin-top: 16px; }
.cmp-evwz__salles { gap: 10px; margin-top: 16px; }
.cmp-evwz__prise { color: var(--cmp-danger-fg, rgb(220, 38, 38)); }
@media (min-width: 1024px) { .cmp-evwz .cmp-evwz__resume { position: sticky; top: 16px; } }   /* résumé qui suit le défilement (cmp-card est en relative) */
.cmp-evwz .cmp-radiocard.is-off { opacity: 0.6; cursor: not-allowed; }
.cmp-evwz .cmp-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

/* Tuile de choix (icône + libellé), teintée par --tone-rgb (couleur venant des données) : types d'événement */
.cmp-tilechoice { --tone-rgb: 99, 102, 241; gap: 8px; padding: 14px 8px; min-height: 92px; border-radius: var(--cmp-radius-control);
    border: 1px solid var(--cmp-p-white-a08); background: transparent; cursor: pointer; transition: border-color var(--cmp-dur-fast) var(--cmp-ease), background-color var(--cmp-dur-fast) var(--cmp-ease); }
.cmp-tilechoice__icon { width: 40px; height: 40px; border-radius: 9999px; font-size: 1.25rem; color: rgb(var(--tone-rgb)); background-color: rgba(var(--tone-rgb), 0.12); }
.cmp-tilechoice__label { font-size: 0.8125rem; font-weight: var(--cmp-fw-medium); color: var(--cmp-ink-80); line-height: 1.25; }
@media (hover: hover) { .cmp-tilechoice:not(.is-on):hover { border-color: rgba(var(--tone-rgb), 0.35); background-color: rgba(var(--tone-rgb), 0.04); } }
.cmp-tilechoice.is-on { border-color: rgba(var(--tone-rgb), 0.6); background-color: rgba(var(--tone-rgb), 0.10); box-shadow: 0 0 0 1px rgba(var(--tone-rgb), 0.35) inset; }
.cmp-tilechoice.is-on .cmp-tilechoice__icon { color: var(--cmp-lit-white, #fff); background-color: rgb(var(--tone-rgb)); }
.cmp-tilechoice.is-on .cmp-tilechoice__label { color: var(--cmp-ink-100); font-weight: var(--cmp-fw-semibold); }

/* ── Bandeau du filtre pays (ui.scope-notice) : discret, au-dessus des listes filtrées ── */
.cmp-scope-notice { margin-bottom: var(--cmp-gap-cartes, 0.875rem); padding: 0.5rem 0.875rem; border-radius: var(--cmp-radius-control);
    font-size: 0.8125rem; color: var(--cmp-ink-70); background-color: var(--cmp-p-white-a04); border: 1px dashed var(--cmp-p-white-a10); }
.cmp-scope-notice > .ti { color: var(--cmp-ink-50); }
.cmp-scope-notice__pays { font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-90); }
.cmp-scope-notice__sep { color: var(--cmp-ink-40); }
.cmp-scope-notice__all { font-weight: var(--cmp-fw-semibold); color: var(--accent, var(--cmp-p-indigo-500)); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Drapeau du pays (ui.drapeau, listes, fiches) : petit, arrondi, aligné sur le texte */
.cmp-flag { width: 1.1em; height: 0.8em; border-radius: 2px; vertical-align: -0.05em; box-shadow: 0 0 0 1px var(--cmp-p-white-a08); flex-shrink: 0; }
.cmp-topbar__sub .cmp-flag { margin-inline-end: 0.35em; }
/* étape « organisateurs » : l'e-mail d'abord, le compte est détecté */
.cmp-ajoutp__email { margin-top: 16px; }
.cmp-ajoutp__email > .relative, .cmp-ajoutp__email > .cmp-label { max-width: 34rem; }   /* le champ email reste compact ; la fiche d'un nouveau compte prend la largeur */
.cmp-ajoutp__detect { min-height: 1.5rem; margin-top: 8px; font-size: 0.8125rem; }
.cmp-ajoutp__ok { color: var(--cmp-p-emerald-500); }
.cmp-ajoutp__new { color: var(--cmp-p-amber-500); }
.cmp-ajoutp__ko { color: var(--cmp-danger-fg, rgb(220, 38, 38)); }
/* Préparation d'un événement : ce qui reste à faire en rouge (titre de l'étape et compteur « x / n prêtes ») */
.cmp-edash .cmp-row__title.is-alerte, .cmp-edash__pas.is-alerte { color: var(--cmp-danger-fg, rgb(220, 38, 38)); font-weight: var(--cmp-fw-semibold); }
/* étape « La borne » : choix par défaut, blocs par langue / devise */
.cmp-choice--sm { padding-inline: calc(var(--cmp-space) * 3); padding-block: calc(var(--cmp-space) * 1.25); font-size: 0.75rem; }
.cmp-evwz__defaut { margin-top: 10px; }
.cmp-evwz__blocs { gap: 12px; margin-top: 10px; }
.cmp-evwz__bloc { padding: 12px; border-radius: var(--cmp-radius-control); border: 1px solid var(--cmp-p-white-a08); background-color: var(--cmp-p-white-a02, transparent); }
.cmp-evwz__bloctitre { font-size: 0.8125rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-80); margin-bottom: 8px; }
.cmp-recap__row { background: none; border-inline: 0; border-top: 0; width: 100%; cursor: pointer; }
/* consigne d'une étape de préparation à faire : phrase complète, sur plusieurs lignes si besoin */
.cmp-edash__consigne { white-space: normal; line-height: 1.4; margin-top: 2px; color: var(--cmp-ink-70); }
/* ui/alert : éléments cliquables sous le message (ex. ce qui manque pour un événement) */
.cmp-alert__items { margin-top: 8px; }
.cmp-alert__item { padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: var(--cmp-fw-medium); color: rgb(var(--tone-rgb));
    background-color: rgba(var(--tone-rgb), 0.12); border: 0; }
button.cmp-alert__item { cursor: pointer; }
@media (hover: hover) { button.cmp-alert__item:hover { background-color: rgba(var(--tone-rgb), 0.18); } }
.cmp-alert__item > .ti { font-size: 0.75rem; }
.cmp-alert__title + .cmp-alert__items { margin-top: 10px; }
/* Ligne de menu indisponible (ex. rapport avant la fin de l'événement) : grisée, info-bulle qui explique pourquoi */
.cmp-ddmenu__item.is-disabled { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) { .cmp-ddmenu__item.is-disabled:hover { background-color: transparent; } }
/* récapitulatif : option « envoyer l'email d'accès » */
.cmp-evwz__acces { margin-top: 16px; padding: 12px 14px; border-radius: var(--cmp-radius-control); background-color: var(--cmp-p-white-a04); }
.cmp-evwz__acces-titre { font-size: 0.8125rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-ink-90); }
/* Aperçu d'un email dans une modale (cadre blanc fixe, l'email a ses propres couleurs) */
.cmp-apercu-email { height: 520px; border-radius: var(--cmp-radius-control); overflow: hidden; border: 1px solid var(--cmp-p-white-a08); background-color: var(--cmp-lit-white, #fff); }
.cmp-apercu-email iframe { border: 0; }
.cmp-apercu-email > div { background-color: rgba(255, 255, 255, 0.7); color: var(--accent, var(--cmp-p-indigo-500)); font-size: 1.75rem; }
/* création d'événement : la salle choisie se voit nettement (contour, fond, coche, mention « Sélectionnée ») */
.cmp-evwz .cmp-radiocard.is-on { border-color: var(--accent, var(--cmp-p-indigo-500)); background-color: color-mix(in oklab, var(--accent, var(--cmp-p-indigo-500)) 12%, transparent);
    box-shadow: 0 0 0 1px var(--accent, var(--cmp-p-indigo-500)) inset; }
.cmp-evwz__coche { width: 1.5rem; height: 1.5rem; border-radius: 9999px; font-size: 0.875rem; color: var(--cmp-lit-white, #fff); background-color: var(--accent, var(--cmp-p-indigo-500)); }
.cmp-evwz__choisie { font-size: 0.6875rem; font-weight: var(--cmp-fw-semibold); color: var(--accent, var(--cmp-p-indigo-500)); margin-top: 1px; }
/* tableau de bord admin client : phrase du taux appliqué sous les cartes (comme en v1) */
.cmp-sdash__note { font-size: 0.8125rem; color: var(--cmp-ink-60); padding: 0.5rem 0.875rem; border-radius: var(--cmp-radius-control); background-color: var(--cmp-p-white-a04); }
.cmp-sdash__note > .ti { color: var(--accent, var(--cmp-p-indigo-500)); }

.cmp-ajoutp__fiche { margin-top: 1rem; }
/* tableau de bord du co-hôte : état vide */
.cmp-udash__vide { gap: 10px; padding-block: 3rem; }
/* Carte de bienvenue du tableau de bord de l'organisateur : ce qu'il reste à compléter, aux couleurs de la marque (couleur principale) */
.cmp-bienvenue { --tone-rgb: var(--cmp-primary-rgb); margin-bottom: var(--cmp-gap-cartes); border-radius: var(--cmp-radius-card, 12px);
    background: linear-gradient(135deg, rgba(var(--tone-rgb), 0.16), rgba(var(--tone-rgb), 0.04)); border: 1px solid rgba(var(--tone-rgb), 0.22); }
.cmp-bienvenue__corps { gap: 1.25rem; padding: 1.5rem; }
@media (min-width: 1024px) { .cmp-bienvenue__corps { gap: 1.75rem; padding: 1.75rem 2rem; } }
.cmp-bienvenue__ico { width: 3.5rem; height: 3.5rem; border-radius: var(--cmp-radius-panel); font-size: 1.75rem; color: rgb(var(--tone-rgb)); background-color: rgba(var(--tone-rgb), 0.14); }
.cmp-bienvenue__titre { font-size: 1.375rem; line-height: 1.3; font-weight: var(--cmp-fw-bold); color: var(--cmp-text-strong); }
.cmp-bienvenue__texte { font-size: 0.9375rem; line-height: 1.55; color: var(--cmp-ink-70); margin-top: 0.375rem; max-width: 46rem; }
.cmp-bienvenue__events { gap: 0.875rem; margin-top: 1rem; }
.cmp-bienvenue__nom { font-size: 0.875rem; font-weight: var(--cmp-fw-semibold); color: var(--cmp-text-strong); }
.cmp-bienvenue__nom > .ti { color: rgb(var(--tone-rgb)); }
.cmp-bienvenue__quand { font-weight: 400; color: var(--cmp-ink-55); }
.cmp-bienvenue__items { gap: 0.5rem; margin-top: 0.5rem; }
.cmp-bienvenue__item { padding: 0.3125rem 0.75rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: var(--cmp-fw-medium); color: var(--cmp-text-strong);
    background-color: var(--cmp-surf-6); border: 1px solid rgba(var(--tone-rgb), 0.28); }
.cmp-bienvenue__item > .ti { color: rgb(var(--tone-rgb)); }
@media (hover: hover) { .cmp-bienvenue__item:hover { border-color: rgba(var(--tone-rgb), 0.6); background-color: rgba(var(--tone-rgb), 0.1); } }
.cmp-bienvenue__ok { margin-top: 0.5rem; font-size: 0.8125rem; font-weight: var(--cmp-fw-semibold); color: rgb(var(--tone-rgb)); }
.cmp-bienvenue__cta { height: 44px; padding-inline: 1.25rem; font-size: 0.9375rem; }
.cmp-udash__vide .cmp-tile { width: 3.5rem; height: 3.5rem; font-size: 1.75rem; border-radius: var(--cmp-radius-panel); }
