/*
 * CÔTOYEN — compléments de charte pour la console (après cotoyen-theme.css).
 *   bleu Côtoyen #1E4AA8 (boutons, menu actif), survol #163A86 ;
 *   bleu nuit #14254F (titres du logo) ; ambre #F5A524 (accent, signalement).
 */
:root {
  --ct-primary: #1E4AA8;
  --ct-primary-hover: #163A86;
  --ct-primary-tint: #EEF3FB;
  --ct-navy: #14254F;
  --ct-accent: #F5A524;
  --ct-accent-tint: #FEF5E2;
  --ct-ring: rgba(30, 74, 168, .22);
  /* Variables du gabarit qui pilotent le menu actif et quelques bordures. */
  --primary-rgb: 30, 74, 168;
  --primary-transparent: #EEF3FB;
  --primary-linear-gradient: linear-gradient(270deg, rgba(30, 74, 168, 0.2) 0%, #FFFFFF 100%);
}

/* Logo Côtoyen (signe + nom), au format horizontal. */
.sidebar .sidebar-logo .logo img,
.sidebar .sidebar-logo .dark-logo img,
.header .header-left .logo img,
.header .header-left .dark-logo img { width: auto; height: 34px; max-width: 100%; }
.sidebar .sidebar-logo .logo-small img,
.logo-small img { width: 34px; height: 34px; }

/* Boutons principaux : bleu Côtoyen, texte blanc. */
.btn-primary, .btn.btn-primary { background-color: var(--ct-primary); border-color: var(--ct-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn.btn-primary:hover, .btn.btn-primary:focus { background-color: var(--ct-primary-hover) !important; border-color: var(--ct-primary-hover) !important; }
.btn-outline-primary { color: var(--ct-primary); border-color: var(--ct-primary); }
.btn-outline-primary:hover { background-color: var(--ct-primary); border-color: var(--ct-primary); color: #fff; }
.bg-primary { background-color: var(--ct-primary) !important; }
.text-primary { color: var(--ct-primary) !important; }

/* Liens et focus. */
a:hover { color: var(--ct-primary); }
.form-control:focus, .form-select:focus { border-color: var(--ct-primary); box-shadow: 0 0 0 .2rem var(--ct-ring); }
.form-check-input:checked { background-color: var(--ct-primary); border-color: var(--ct-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem var(--ct-ring); }
.page-link.active, .active > .page-link { background-color: var(--ct-primary); border-color: var(--ct-primary); }

/* Pastilles d'icône des cartes et des états vides. */
.ct-icon { background: var(--ct-primary-tint); color: var(--ct-primary); }
.ct-icon-accent { background: var(--ct-accent-tint); color: #B4690E; }

/* Le code INSEE, les clés de module : chasse fixe, lisible, sans le rose de Bootstrap. */
.ct-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; color: var(--ct-navy);
  background: var(--ct-primary-tint); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }

/* Une ligne « libellé … valeur » des fiches. */
.ct-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .8125rem; }
.ct-facts > div > span:first-child { color: #6B7280; white-space: nowrap; }
.ct-facts > div > span:last-child { text-align: right; overflow-wrap: anywhere; }

/* Les cases d'un choix (rôle, commune, service) : toute la carte est cliquable. */
.ct-choice { display: block; border: 1px solid #E5E7EB; border-radius: 8px; padding: .75rem .9rem .75rem 2.4rem; cursor: pointer; margin: 0; }
.ct-choice:hover { border-color: #C7D2E8; }
.ct-choice:has(.form-check-input:checked) { border-color: var(--ct-primary); background: var(--ct-primary-tint); }
.ct-choice:has(.form-check-input:disabled) { cursor: not-allowed; opacity: .65; }
.ct-choice .form-check-input { margin-left: -1.65rem; }

/* Les filtres des listes, alignés sur une ligne tant que la place le permet. */
.ct-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ct-filters .input-icon { flex: 1 1 240px; }
.ct-filters select.form-control { width: auto; min-width: 170px; flex: 0 1 auto; }

/* Tableaux : la colonne d'actions ne se replie pas, les lignes inactives s'estompent. */
.table td.ct-actions { white-space: nowrap; text-align: right; }
.table tr.ct-muted td { opacity: .6; }
.table tr.ct-muted td.ct-actions { opacity: 1; }

/* Résultats du référentiel officiel (Déclarer une commune). */
.ct-result { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid #EEF0F3; }
.ct-result:last-child { border-bottom: 0; }

/* Page de connexion : le panneau d'illustration. */
.ct-auth-panel { background: var(--ct-primary-tint); }
.ct-auth-panel img { width: min(440px, 80%); height: auto; }

/* Le mot de passe provisoire, à recopier. */
.ct-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em;
  color: var(--ct-navy); background: #fff; border: 1px dashed #D97706; border-radius: 6px; padding: 2px 10px; user-select: all; }

/* Pagination de Laravel sous une carte. */
nav[role="navigation"] .pagination { margin-bottom: 0; }

/* La pastille « primaire transparente » : le gabarit ne la définit qu'en thème sombre. */
.badge.badge-primary-transparent { background: var(--ct-primary-tint); color: var(--ct-primary); }

/* Les messages : le gabarit écrit en couleur vive sur fond pâle de la même teinte
   (jaune sur jaune). Un texte foncé, lisible, sur le même fond. */
.alert-success, .alert-success .alert-link { color: #0A6B35; }
.alert-warning, .alert-warning .alert-link { color: #7A4F00; }
.alert-danger, .alert-danger .alert-link { color: #A30D0D; }
.alert-success { border-color: rgba(3, 201, 90, .35); }
.alert-warning { border-color: rgba(255, 193, 7, .5); }
.alert-danger { border-color: rgba(231, 13, 13, .3); }

/* Cases et boutons radio : un contour visible avant d'être cochés. */
.form-check-input { border-color: #AEB7C4; }

/* Un bloc qui accepte de rétrécir dans une ligne flex (nom + e-mail tronqués). */
.ct-min0 { min-width: 0; }

/* ---------------- Signalements ---------------- */
/* Les onglets de statut, avec leur compte. */
.ct-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.ct-tabs .ct-count { display: inline-block; min-width: 1.4em; margin-left: .25rem; padding: 0 .35em; border-radius: 999px;
  background: rgba(20, 37, 79, .1); font-size: .75rem; line-height: 1.5; text-align: center; }
.ct-tabs .btn-primary .ct-count { background: rgba(255, 255, 255, .25); }

/* Une cellule de texte long : elle se replie au lieu d'étirer le tableau. */
.table td.ct-cell-wide { white-space: normal; min-width: 220px; max-width: 420px; }

/* La description, telle que l'habitant l'a écrite (ses retours à la ligne compris). */
.ct-prose { white-space: pre-line; overflow-wrap: anywhere; font-size: .9375rem; color: #1F2937; }

/* Les photos d'un signalement. */
.ct-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.ct-photos a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #EEF0F3; border: 1px solid #E5E7EB; }
.ct-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-photos a:hover, .ct-photos a:focus-visible { border-color: var(--ct-primary); }

/* Le suivi : du plus récent au plus ancien. */
.ct-timeline { list-style: none; padding: 0; margin: 0; }
.ct-timeline li { position: relative; padding: 0 0 1rem 1.4rem; border-left: 2px solid #E5E7EB; margin-left: .35rem; font-size: .875rem; }
.ct-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.ct-timeline li::before { content: ""; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ct-primary); }

/* ---------------- Pilotage : carte et statistiques ---------------- */
/* La carte prend la hauteur de l'écran, sans descendre sous une taille lisible. */
.ct-map { height: 68vh; min-height: 420px; border-radius: 10px; border: 1px solid #E5E7EB; background: #EEF0F3; z-index: 0; }
.ct-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; margin: 0; padding: 0; font-size: .8125rem; color: #4B5563; }
.ct-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.ct-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(20, 37, 79, .25); }
.ct-dot-urgent { background: #fff; border-color: #C0392B; box-shadow: none; }
.ct-map-popup { display: grid; gap: .8rem; min-width: 200px; font-size: .8125rem; }
.ct-map-item { display: grid; gap: .3rem; }
.ct-map-item + .ct-map-item { padding-top: .8rem; border-top: 1px solid #E5E7EB; }
.ct-map-item strong { font-size: .9375rem; color: var(--ct-navy); }
.ct-map-popup p { margin: 0; }
.ct-map-popup .btn { justify-self: start; margin-top: .25rem; color: #fff; }
/* Le nombre de signalements au même endroit, écrit sur le point. */
.leaflet-tooltip.ct-map-count { background: transparent; border: 0; box-shadow: none; padding: 0; color: #fff; font-weight: 700; font-size: .75rem; }
.leaflet-tooltip.ct-map-count::before { display: none; }

/* La courbe des douze mois : deux barres par mois, reçus et résolus. */
.ct-trend { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5rem; align-items: end; height: 220px; }
.ct-trend-month { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.ct-trend-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; flex: 1 1 auto; width: 100%; }
.ct-trend-bar { width: 42%; max-width: 22px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--ct-primary); }
.ct-trend-bar.ct-resolved { background: #2E9E6B; }
.ct-trend-label { margin-top: .4rem; font-size: .6875rem; color: #6B7280; white-space: nowrap; }
.ct-trend-month.ct-current .ct-trend-label { color: var(--ct-navy); font-weight: 600; }

/* Une répartition : une ligne par type, service ou urgence, avec sa part en barre. */
.ct-breakdown { list-style: none; margin: 0; padding: 0; }
.ct-breakdown li { padding: .7rem 1.25rem; border-top: 1px solid #EEF0F3; }
.ct-breakdown li:first-child { border-top: 0; }
.ct-breakdown-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; font-size: .875rem; }
.ct-breakdown-head > span:first-child { min-width: 0; overflow-wrap: anywhere; color: #1F2937; }
.ct-breakdown-head > span:last-child { flex: 0 0 auto; font-size: .8125rem; color: #6B7280; white-space: nowrap; }
.ct-share-track { display: block; height: 8px; border-radius: 999px; background: #EEF0F3; overflow: hidden; }
.ct-share-fill { display: block; height: 100%; border-radius: 999px; background: var(--ct-primary); }

/* ---------------- Bacs et capteurs ---------------- */
.ct-map-short { height: 46vh; min-height: 320px; }
/* La jauge d'un bac : le taux, et un trait à son seuil. */
.ct-gauge { display: flex; align-items: center; gap: .6rem; min-width: 150px; }
.ct-gauge-track { position: relative; flex: 1 1 auto; height: 10px; border-radius: 999px; background: #EEF0F3; overflow: hidden; }
.ct-gauge-fill { display: block; height: 100%; border-radius: 999px; }
.ct-gauge-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(20, 37, 79, .55); }
.ct-gauge-value { flex: 0 0 3.2em; text-align: right; font-size: .8125rem; font-weight: 600; color: #1F2937; }
.ct-gauge-big .ct-gauge-track { height: 16px; }
.ct-gauge-big .ct-gauge-value { flex-basis: 4em; font-size: 1.25rem; }
/* La courbe du taux de remplissage d'un bac. */
.ct-curve { width: 100%; height: 180px; display: block; }
.ct-curve-axis { display: flex; justify-content: space-between; font-size: .6875rem; color: #6B7280; margin-top: .25rem; }
/* La tournée : les arrêts, numérotés. */
.ct-stops { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.ct-stops li { counter-increment: stop; display: flex; align-items: center; gap: .9rem; padding: .8rem 1.25rem; border-top: 1px solid #EEF0F3; }
.ct-stops li:first-child { border-top: 0; }
.ct-stops li::before { content: counter(stop); flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--ct-primary); color: #fff;
  font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; justify-content: center; }
.ct-stops .ct-stop-main { flex: 1 1 auto; min-width: 0; }
/* Une adresse à copier (le lien d'envoi des mesures). */
.ct-copy { display: block; padding: .6rem .75rem; border-radius: 8px; background: #F3F5F9; border: 1px dashed #AEB7C4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8125rem; overflow-wrap: anywhere; user-select: all; }
@media print { .sidebar, .header, .page-breadcrumb .btn, .ct-filters, .ct-noprint { display: none !important; } .page-wrapper { margin: 0 !important; } }

/* ---- Supervision : scénarios, niveaux, écran ---- */
/* Une liste à cocher qui peut être longue (bacs, comptes) : elle défile dans son cadre. */
.ct-pick { max-height: 260px; overflow-y: auto; padding: .6rem .8rem; border: 1px solid #E5E7EB; border-radius: 8px; background: #FAFBFC; display: grid; gap: .3rem; }
.ct-pick-off { opacity: .45; pointer-events: none; }
/* La liste de faits en « dl » (supervision) : en grille. Celle en « div » (fiches) garde ses lignes — sans le « dl », la
   grille s'appliquait aussi à elle et cassait les fiches (bac, commune, inscription, rôles). */
dl.ct-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; font-size: .875rem; }
dl.ct-facts dt { color: #6B7280; font-weight: 500; }
dl.ct-facts dd { margin: 0; color: #1F2937; }
.ct-note { padding: .7rem .9rem; border-radius: 8px; background: var(--ct-primary-tint, #EEF3FB); font-size: .875rem; white-space: pre-line; }
/* ---- La fiche d'un scénario, sur le modèle de DigitalWan : étapes, frise SLA, actions, audience, lien ---- */
.ct-row-muted > td { opacity: .62; }
.table td.ct-wrap, .table th.ct-wrap { white-space: normal; }
.ct-hint { display: flex; gap: 10px; align-items: flex-start; background: var(--ct-primary-tint); color: var(--ct-navy); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.ct-hint > i { font-size: 18px; color: var(--ct-primary); margin-top: 1px; flex: none; }
.ct-hint.is-warning { background: #FFF6DE; }
.ct-hint.is-warning > i { color: #A06F00; }
.ct-channel-chip { width: 26px; height: 26px; border-radius: 7px; background: var(--ct-primary-tint); color: var(--ct-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.ct-reach { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F1F3F5; color: #A3ACB7; font-size: 15px; flex: none; }
.ct-reach.is-on { background: #E8FAF0; color: #038A3F; }
.ct-audience { max-height: 460px; overflow-y: auto; }
.ct-audience > div:last-child { border-bottom: 0 !important; }
.ct-setup { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-setup-step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #DDE4F0; border-radius: 999px; font-size: 13px; color: var(--ct-navy); background: #fff; }
.ct-setup-step i { font-size: 17px; }
.ct-setup-step.is-done { color: #6B7280; }
.ct-setup-step.is-done i { color: #2E9E6B; }
.ct-setup-step.is-todo { border-color: #F2C55C; background: #FFFBEF; font-weight: 600; }
.ct-setup-step.is-todo i { color: #C58A00; }
.ct-setup-step:hover { border-color: var(--ct-primary); color: var(--ct-primary); }
.ct-sla { position: relative; padding-left: 44px; }
.ct-sla::before { content: ''; position: absolute; left: 15px; top: 14px; bottom: 22px; width: 2px; background: linear-gradient(180deg, #C0392B 0%, var(--ct-primary) 22%, #F5A524 100%); }
.ct-sla-start, .ct-sla-level, .ct-sla-add { position: relative; }
.ct-sla-dot { position: absolute; left: -44px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--ct-primary); color: var(--ct-primary); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.ct-sla-start .ct-sla-dot { background: #C0392B; border-color: #C0392B; color: #fff; font-size: 16px; }
.ct-sla-level .ct-sla-dot { top: 10px; }
.ct-sla-dot.is-add { border-style: dashed; color: #6B7280; border-color: #B6C2CF; top: 3px; }
.ct-sla-level { border: 1px solid #DDE4F0; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: #fff; }
.ct-sla-level:hover { border-color: #C9D6E3; box-shadow: 0 2px 10px rgba(20, 37, 79, .05); }
.ct-sla-level.is-empty { border-style: dashed; background: #FAFBFC; }
.ct-sla-delay { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: #7A4F00; background: #FEF5E2; border-radius: 999px; padding: 2px 10px; }
.ct-action-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #DDE4F0; border-radius: 8px; padding: 4px 10px; font-size: 13px; background: #FAFBFC; color: var(--ct-navy); max-width: 100%; }
.ct-action-chip > i:first-child { font-size: 16px; color: var(--ct-primary); }
.ct-action-chip small { color: #6B7280; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ct-chip-levels { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ct-navy); margin-left: 2px; }
.ct-chip-levels i, .ct-level-pick i { font-size: 15px; line-height: 1; }
.ct-chip-levels i.is-critical, .ct-level-pick.is-critical i { color: #C0392B; }
.ct-chip-levels i.is-warning, .ct-level-pick.is-warning i { color: #E8800A; }
.ct-chip-levels i.is-info, .ct-level-pick.is-info i { color: #1E4AA8; }
.ct-chip-levels i:last-of-type { margin-right: 3px; }
.ct-action-card { border: 1px solid #DDE4F0; border-radius: 10px; margin-bottom: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ct-action-card.is-on { border-color: var(--ct-primary); box-shadow: inset 0 0 0 1px var(--ct-primary); }
.ct-action-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.ct-action-head label { cursor: pointer; }
.ct-action-icon { width: 38px; height: 38px; border-radius: 9px; background: #F1F4F8; color: var(--ct-navy); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.ct-action-card.is-on .ct-action-icon { background: var(--ct-primary-tint); color: var(--ct-primary); }
.ct-action-body { display: none; padding: 0 14px 14px 64px; }
.ct-action-card.is-on .ct-action-body { display: block; }
@media (max-width: 575.98px) { .ct-action-body { padding-left: 14px; } }
.ct-action-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.ct-level-pick { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #DDE4F0; border-radius: 999px; padding: 3px 11px; font-size: 13px; cursor: pointer; user-select: none; background: #fff; margin: 0; color: #6B7280; }
.ct-level-pick input { margin: 0; accent-color: var(--ct-primary); }
.ct-level-pick:has(input:checked) { color: var(--ct-navy); border-color: #B9C7D6; background: #F7F9FB; font-weight: 500; }
.ct-share { display: flex; gap: 8px; align-items: stretch; }
.ct-share-url { flex: 1; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--ct-navy); color: #E3EAF2; padding: 10px 12px; border-radius: 8px; word-break: break-all; }

/* ----------------------------------------------------------------------
   Transformateurs — l'état, les phases, la carte, la frise des jours et
   les courbes des courants (cotoyen-transfo.js).
   ---------------------------------------------------------------------- */
.ct-power { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #fff; white-space: nowrap; }
.ct-power.is-ok { background: #2E9E6B; }
.ct-power.is-info { background: #2F80C9; }
.ct-power.is-defaut { background: #E8930C; }
.ct-power.is-perte { background: #C0392B; }
.ct-power.is-coupure { background: #7A1420; }
.ct-power.is-inconnu { background: #8A94A6; }

.ct-phase { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; padding: .12rem 0; }
.ct-phase-name { width: 1.6rem; font-weight: 600; color: var(--ct-navy); }
.ct-phase-bar { flex: 0 0 64px; height: 6px; border-radius: 3px; background: #E5E9F0; overflow: hidden; }
.ct-phase-bar > span { display: block; height: 100%; background: var(--ct-primary); border-radius: 3px; }
.ct-phase-bar > span.is-over { background: #C0392B; }
.ct-phase-values { flex: 1 1 auto; white-space: nowrap; }
.ct-lamp-on { color: #D98A00; }

.ct-dot-square { border-radius: 3px; }
.ct-transfo-pin { display: block; width: 18px; height: 18px; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(20, 37, 79, .35), 0 1px 3px rgba(0, 0, 0, .25); }
.ct-transfo-pin.is-alert { box-shadow: 0 0 0 3px rgba(192, 57, 43, .45), 0 1px 3px rgba(0, 0, 0, .25); }

.ct-days { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .25rem; }
.ct-day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; padding: .3rem .4rem; border: 1px solid #E5E9F0; border-radius: 8px; color: #4B5563; font-size: .75rem; line-height: 1.2; }
.ct-day strong { font-size: .95rem; color: var(--ct-navy); }
.ct-day:hover { border-color: var(--ct-primary); color: var(--ct-primary); }
.ct-day.is-current { background: var(--ct-primary); border-color: var(--ct-primary); color: #fff; }
.ct-day.is-current strong { color: #fff; }
.ct-day-nav { min-width: 34px; font-size: 1rem; }

.ct-chart { min-height: 290px; }
.ct-chart-wrap { position: relative; }
.ct-chart-svg { display: block; max-width: 100%; }
.ct-chart-tick { font-size: 11px; fill: #6B7280; }
.ct-chart-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8125rem; color: #4B5563; margin-bottom: .35rem; }
.ct-chart-legend span, .ct-chart-tip span { display: inline-flex; align-items: center; gap: .4rem; }
.ct-chart-legend i, .ct-chart-tip i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.ct-chart-legend i.is-dash { height: 0; border-top: 2px dashed #C0392B; background: none; }
.ct-chart-legend i.is-night { height: 10px; background: rgba(31, 42, 68, .12); }
.ct-chart-legend i.is-cut { height: 10px; background: rgba(107, 114, 128, .28); }
.ct-chart-tip { position: absolute; top: 8px; display: flex; flex-direction: column; gap: .15rem; padding: .4rem .6rem; background: #fff; border: 1px solid #E5E9F0; border-radius: 8px; box-shadow: 0 4px 14px rgba(20, 37, 79, .12); font-size: .75rem; pointer-events: none; white-space: nowrap; }
.ct-chart-tip[hidden] { display: none; }
.ct-phase-key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: .45rem; vertical-align: middle; }
.ct-phase-key-1 { background: #1B6FD1; }
.ct-phase-key-2 { background: #D98A00; }
.ct-phase-key-3 { background: #C2255C; }

/* Places PMR : l'état d'une place (vert libre, orange titulaire, rouge sans titulaire) et son point sur la carte. */
.ct-pmr-state { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #fff; white-space: nowrap; }
.ct-pmr-pin { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-size: 14px; box-shadow: 0 0 0 1px rgba(20, 37, 79, .35), 0 1px 3px rgba(0, 0, 0, .25); }
.ct-pmr-pin.is-alert { box-shadow: 0 0 0 4px rgba(192, 57, 43, .45), 0 1px 3px rgba(0, 0, 0, .25); }
