/* Livrables des modules hors stationnement : l'écran et les pages A4 du rapport commun.
   Les pages sont dessinées à taille réelle (A4 paysage à 96 ppp : 1123 × 794 px) puis
   capturées à l'échelle 2 ; rien ici ne doit dépendre de la largeur de la fenêtre. */

.rc-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 14px; }
.rc-barre .form-actions { margin: 0; }
.rc-barre .rc-etat { flex-basis: 100%; margin: 0; }
.rc-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rc-options:empty { display: none; }
.rc-options .hint { flex-basis: 100%; margin: 0; }
.rc-perimetre { margin: 0 0 12px; color: var(--muted, #4d575c); }
/* L'état de la date du document, et le geste qui la fige. Un encadré discret : c'est une
   information de suivi, pas une alerte — elle ne doit pas concurrencer les bloquants. */
.rc-validation {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  margin: 0 0 12px; padding: 9px 12px; border-left: 4px solid var(--edy-turquoise);
  border-radius: 0 6px 6px 0; background: #f2f7f8; color: var(--muted, #4d575c);
  font-size: 12.5px;
}
.rc-validation strong { color: var(--edy-marine); }
.rc-validation .btn-lien {
  padding: 0; border: 0; background: none; color: var(--edy-marine-clair);
  font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.rc-validation .btn-lien:disabled { color: var(--muted, #4d575c); cursor: default; }
.rc-fichiers { margin-bottom: 14px; }
.rc-pages { display: flex; flex-direction: column; gap: 18px; overflow-x: auto; padding: 4px 0 24px; }

/* ---------------------------------------------------------------- La page A4 */
.rc-page {
  position: relative; box-sizing: border-box; flex: none;
  width: 1123px; height: 794px; overflow: hidden;
  background: #fff; color: #222; border: 1px solid #c9d2d3; box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  display: flex; flex-direction: column;
  font-size: 12px; line-height: 1.35;
}
.rc-page.rc-deborde { outline: 3px solid #b42318; }
.rc-page-entete {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 18px 36px 10px; border-bottom: 2px solid var(--edy-turquoise); margin: 0 0 12px;
}
.rc-partie { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--edy-marine-clair); font-weight: 700; }
.rc-titre { margin: 2px 0 0; font-size: 21px; line-height: 1.15; color: var(--edy-marine); }
.rc-sous-titre { margin: 3px 0 0; font-size: 12px; color: #4d575c; }
.rc-marque { font-weight: 800; font-size: 15px; color: var(--edy-marine); letter-spacing: .02em; white-space: nowrap; padding-top: 4px; }
.rc-corps { flex: 1 1 auto; min-height: 0; padding: 0 36px; overflow: hidden; }
/* Le pied du rapport stationnement, à l'identique : dossier à gauche, partie courante au
   centre, numéro de page à droite en chiffres tabulaires. Trois colonnes de grille plutôt
   qu'un `space-between`, pour que le centre reste centré même quand le dossier est long.
   Le numéro ne porte pas de total : à l'export PowerPoint il devient un champ qui se
   renumérote, et un total figé y deviendrait faux dès la première diapositive insérée.
   Alignement demandé par Eddy le 23/09/2026 — les deux rapports se lisaient différemment. */
.rc-page-pied {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: 16px; padding: 8px 36px 12px;
  border-top: 1px solid var(--edy-gris-clair); margin-top: 10px; font-size: 9.5px; color: var(--edy-gris);
}
.rc-page-pied > :first-child { justify-self: start; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-pied-dossier { justify-self: center; color: var(--edy-encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-numero { justify-self: end; font-variant-numeric: tabular-nums; }
.rc-intro { margin: 0 0 10px; font-size: 12.5px; }
.rc-corps .hint { font-size: 10.5px; color: #666; margin: 8px 0 0; }
.rc-corps h3 { margin: 10px 0 6px; font-size: 13px; color: var(--edy-marine); }
.rc-corps h4 { margin: 8px 0 4px; font-size: 12px; }
.rc-corps .table-scroll { overflow: visible; margin: 0; }
.rc-table th, .rc-table td, .rc-corps .analysis-table th, .rc-corps .analysis-table td, .rc-corps .data-table th, .rc-corps .data-table td {
  padding: 3px 7px; font-size: 11px; line-height: 1.25;
}
.rc-compact .analysis-table th, .rc-compact .analysis-table td, .rc-compact .data-table th, .rc-compact .data-table td,
.rc-compact table th, .rc-compact table td { padding: 1px 4px; font-size: 9.5px; line-height: 1.2; }
.rc-compact h3 { margin: 4px 0 2px; font-size: 12px; }
.rc-compact h4 { margin: 4px 0 2px; font-size: 10.5px; }
.rc-compact .table-scroll { margin: 0; }
.rc-corps .warning-text { color: #b42318; font-weight: 600; }
/* Sur une page A4, l'attribution des fonds reste lisible mais discrète (elle s'étalait sur
   deux lignes dans la petite carte) ; le fond des conteneurs reprend le beige du décor
   fictif, pour que les marges hors décor ne virent pas au gris. */
.rc-page .leaflet-control-attribution { font-size: 8.5px; line-height: 1.15; padding: 1px 4px; }
.rc-page .leaflet-container { background: #f4f1e9; }
/* Les étiquettes d'état des écrans (« reconstituée », « corrigée ») n'ont pas leur place
   dans le document remis : le détail des estimations reste dans le classeur et sa méthode.
   Décision d'Eddy, 22/09/2026. */
.rc-page .tag { display: none; }

/* ------------------------------------------------- Garde, intercalaires et page de fin
   Le rapport de stationnement et celui des autres modules partaient dans deux directions
   graphiques : vert sombre centré ici, marine à liseré là-bas. Un client qui reçoit les
   deux voyait deux prestataires (Eddy, 23/09/2026). Ces trois pages reprennent donc la
   grammaire du rapport de stationnement, teintes de la charte comprises : fond marine,
   liseré turquoise à gauche, cercle décoratif hors cadre, numéro de partie en filigrane.

   Le rapport de stationnement ouvre sur une vue aérienne du secteur ; un dossier de
   comptages n'a pas de périmètre unique à montrer, sa garde reste donc un aplat — même
   composition, sans photographie. */
.rc-garde, .rc-fin { position: relative; overflow: hidden; color: #fff; background: var(--edy-marine); }
.rc-garde::before, .rc-transition::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 18px;
  background: var(--edy-turquoise); z-index: 1;
}
.rc-garde::after, .rc-transition::after {
  content: ''; position: absolute; right: -125px; top: -138px; width: 470px; height: 470px;
  border: 2px solid rgba(35, 183, 191, .30); border-radius: 50%;
}
.rc-garde-bandeau {
  position: relative; z-index: 1; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 24px; padding: 40px 54px 0 72px;
}
.rc-garde-bandeau > div { display: flex; flex-direction: column; gap: 4px; }
.rc-garde-marque { font-weight: 800; font-size: 28px; letter-spacing: .02em; }
.rc-garde-activite { font-size: 14px; color: var(--edy-turquoise-pale); }
.rc-garde-genre { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 850; color: var(--edy-turquoise-pale); }
.rc-garde-corps { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 54px 0 72px; }
.rc-garde h1 { margin: 0 0 10px; font-size: 46px; line-height: 1.08; letter-spacing: -.02em; color: #fff; max-width: 860px; }
.rc-garde-lieu { margin: 0 0 26px; font-size: 18px; font-weight: 650; color: var(--edy-turquoise-pale); }
.rc-garde-parties { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.rc-garde-parties li { padding: 5px 13px; border: 1px solid rgba(169, 226, 230, .55); border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 600; }
.rc-brouillon { margin: 26px 0 0; color: #ffd7cf; font-weight: 800; letter-spacing: .06em; }
.rc-garde-pied {
  position: relative; z-index: 1; display: flex; justify-content: space-between;
  padding: 0 54px 26px 72px; font-size: 10.5px; color: var(--edy-turquoise-pale);
}

/* L'intercalaire qui ouvre chaque partie. */
.rc-transition { position: relative; overflow: hidden; background: var(--edy-marine); color: #fff; padding: 0 58px 12px; }
.rc-transition-corps {
  position: relative; z-index: 1; display: flex; flex: 1 1 auto; min-height: 0;
  flex-direction: column; justify-content: center; max-width: 760px; padding-left: 34px;
}
.rc-transition-numero { order: 1; font-size: 13px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; color: var(--edy-turquoise-pale); }
.rc-transition-titre { order: 2; margin: 12px 0 0; font-size: 52px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.rc-transition-sous { order: 3; margin: 18px 0 0; font-size: 18px; font-weight: 650; color: var(--edy-turquoise-pale); }
.rc-transition-elements { order: 4; margin: 10px 0 0; font-size: 13px; letter-spacing: .08em; color: rgba(169, 226, 230, .8); white-space: pre; }
.rc-transition-filigrane {
  position: absolute; z-index: 0; right: 64px; bottom: 74px; color: rgba(169, 226, 230, .14);
  font-size: 235px; font-weight: 900; line-height: .8; font-variant-numeric: tabular-nums;
}
.rc-transition .rc-page-pied {
  position: relative; z-index: 1; border-top-color: rgba(169, 226, 230, .35); color: #cbe9eb;
}
.rc-transition .rc-pied-dossier { color: var(--edy-turquoise-pale); }

/* La page de fin, qui manquait au rapport commun : le document s'arrêtait sur un tableau. */
.rc-fin { background: linear-gradient(135deg, var(--edy-marine-clair), var(--edy-marine)); }
.rc-fin-corps {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 12px; padding: 0 110px;
}
.rc-fin-corps span { font-size: 13px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; color: var(--edy-turquoise-pale); }
.rc-fin-corps h2 { margin: 6px 0 10px; font-size: 32px; font-weight: 800; color: #fff; }
.rc-fin-corps p { max-width: 620px; margin: 0; font-size: 14px; line-height: 1.6; color: #d6eef0; }
.rc-fin-marque { margin-top: 26px; font-size: 20px; font-weight: 800; color: #fff; }
.rc-fin-marque small { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--edy-turquoise-pale); }

/* Sommaire : l'entête à liseré du rapport de stationnement, puis les renvois de pages. */
.rc-sommaire-entete { position: relative; margin: 30px 0 0; padding: 4px 0 16px 25px; border-left: 8px solid var(--edy-turquoise); }
.rc-sommaire-entete::after { content: ''; position: absolute; right: 0; top: 6px; width: 122px; height: 5px; background: var(--edy-marine); }
.rc-sommaire-entete span { color: var(--edy-marine); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rc-sommaire-entete h2 { margin: 5px 0 0; color: var(--edy-encre); font-size: 34px; line-height: 1.05; }
.rc-sommaire-entete p { margin: 6px 0 0; color: #69766f; font-size: 13px; }
.rc-sommaire { list-style: none; margin: 0; padding: 14px 0 0; column-count: 2; column-gap: 40px; }
.rc-sommaire li { display: flex; align-items: baseline; gap: 6px; break-inside: avoid; padding: 3px 0; font-size: 12px; }
.rc-sommaire-1 { font-weight: 800; color: var(--edy-marine); margin-top: 10px; font-size: 13px; }
.rc-sommaire-2 { padding-left: 14px; }
.rc-sommaire-3 { padding-left: 28px; color: #4d575c; }
.rc-sommaire-titre { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-sommaire-points { flex: 1 1 auto; border-bottom: 1px dotted #9aa8a2; transform: translateY(-3px); min-width: 12px; }
.rc-sommaire-page { flex: none; font-variant-numeric: tabular-nums; color: var(--edy-marine); font-weight: 800; }

/* Comptage */
/* Carte et photo : EXACTEMENT la même boîte A4 paysage, côte à côte — 240 px de haut comme
   à l'écran (les règles de index.html posent déjà la légende en bandeau sur la photo). La
   carte était à 190 px et la photo à 240 px : deux cadres visiblement inégaux. */
.rc-media { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.rc-media .comptage-mini-carte, .rc-media .comptage-mini-carte.compacte { height: 240px; width: calc(240px * 297 / 210); min-height: 0; margin: 0; }
.rc-media .photo-grid.report { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; width: calc(240px * 297 / 210); }
.rc-media .photo-card { margin: 0; height: 240px; }
.rc-media .photo-card img { height: 240px; width: 100%; object-fit: cover; }
.rc-media .photo-card figcaption { font-size: 10px; }
.rc-indicateurs { grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 10px; }
.rc-indicateurs { margin-bottom: 6px; }
.rc-indicateurs .indicator { padding: 5px 12px; }
.rc-indicateurs .indicator strong { font-size: 18px; }
.rc-corps .analysis-table th, .rc-corps .analysis-table td { padding: 2px 6px; font-size: 10.5px; }
/* Page des graphiques : le profil horaire en pleine largeur, puis les deux distributions
   (horaire, journalière) côte à côte dessous — l'ordre de lecture du classeur. En deux
   colonnes, le profil restait à mi-largeur et le tiers bas de la page était vide. */
.rc-colonnes.rc-comptage-graphiques { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; gap: 8px; }
.rc-corps .hourly-profile { margin-top: 0; }
/* Les graphiques occupent la page, comme dans le rapport stationnement : le tiers bas
   restait vide. La courbe horaire (viewBox 3:1) reçoit la colonne la plus large, sans
   quoi elle reste naine à côté des barres journalières. */
.rc-corps .hourly-profile .bars { height: 225px; }
.rc-corps .graphiques-flux { margin-top: 0; display: grid; grid-template-columns: 3fr 2fr; gap: 0 28px; align-items: start; }
.rc-corps .graphiques-flux > h3, .rc-corps .graphiques-flux > p { grid-column: 1 / -1; }
.rc-corps .graphiques-flux svg { max-height: 300px; width: 100%; height: auto; }
.rc-corps .graphiques-flux .barres-jours { height: 180px; }
/* Les chiffres se lisent centrés dans leur colonne ; les intitulés de ligne restent à gauche. */
.rc-page td { text-align: center; }
.rc-page td:first-child, .rc-page th[scope="row"] { text-align: left; }
.rc-page thead th { text-align: center; }
.rc-page thead th:first-child { text-align: left; }

/* La carte globale des trafics, juste après la synthèse et avant le premier compteur : la
   carte de l'écran Carte (sens 1 en rouge, sens 2 en bleu, TMJO au bout de chaque flèche)
   en pleine largeur, sa légende au-dessus. Les TMJO sont dans le tableau de synthèse, pas
   ici en double. Demande d'Eddy le 23/09/2026. */
.rc-carte-comptage { width: 1051px; height: 580px; border: 1px solid #c9d2d3; border-radius: 6px; overflow: hidden; }
.rc-comptage-carte .legend-sens { display: block; margin: 0 0 6px; font-size: 12px; }
.rc-comptage-carte .legend-sens i { display: inline-block; width: 14px; height: 4px; margin: 0 4px 2px 0; border-radius: 2px; }
.rc-comptage-carte .legend-sens i.sens1 { background: #c0392b; }
.rc-comptage-carte .legend-sens i.sens2 { background: #1d4ed8; }

/* Directionnels */
.rc-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; height: 100%; }
.rc-dir-schema { grid-template-columns: 590px 1fr; }
.rc-legende-branches { margin: 0 0 4px; font-size: 11px; color: #4d575c; }
.rc-schema svg, .rc-corps .junction-schema svg { width: 100%; height: auto; max-height: 590px; }
.rc-dir-matrice .table-scroll + .table-scroll { margin-top: 14px; }
.rc-dir-matrice .table-scroll { margin-top: 0; }
.rc-plan, .rc-corps .board-plan { width: 1051px; height: 640px; min-height: 0; margin: 0; }
/* La carte d'ensemble des carrefours (écran Cartographie globale), une page par période. */
.rc-carte-directionnel { width: 1051px; height: 598px; border: 1px solid #c9d2d3; border-radius: 6px; overflow: hidden; }

/* Remontées de file */
.rc-file { grid-template-columns: 660px 1fr; }
.rc-file-texte { min-width: 0; overflow: hidden; }
.rc-file-carte.queue-report-board { padding: 0; border: 0; }
.rc-file-carte .queue-report-map { width: 660px; height: 560px; aspect-ratio: auto; }
.rc-file-carte .queue-report-legend { margin-top: 6px; font-size: 10.5px; display: flex; flex-direction: column; gap: 2px; }
.rc-file-syntheses table { width: 100%; }
.rc-file-syntheses table th, .rc-file-syntheses table td { padding: 2px 4px; font-size: 9.5px; }
.rc-file-syntheses h3 { font-size: 12px; }

/* RPM */
.rc-rpm { grid-template-columns: 640px 1fr; }
.rc-carte-rpm { width: 640px; height: 640px; border: 1px solid #c9d2d3; border-radius: 6px; overflow: hidden; }
/* Le schéma des itinéraires (viewBox A4 paysage) sur sa propre page, aussi grand que la
   page le permet, centré. */
.rc-schema-rpm { margin: 0; height: 640px; display: flex; align-items: center; justify-content: center; }
.rc-schema-rpm svg { width: auto; height: auto; max-width: 100%; max-height: 640px; display: block; }
.rc-schema-rpm .hint { display: none; }
.rc-rpm-texte .rpm-mvt-puce { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.rc-file-bilan table th, .rc-file-bilan table td { font-size: 11px; padding: 3px 8px; }
.rc-file-bilan h3 { font-size: 14px; }
.rc-file-bilan .panel, .rc-file-bilan .queue-summary { border: 0; padding: 0; box-shadow: none; }
