/* Coach — onglet « Régulières ».
   Hiérarchie voulue : échéance en haut, séances au milieu, économie en bas. */

:root {
  --rr-brio:   #B04B3D;
  --rr-soft:   #FAEBE6;
  --rr-ink:    #111111;
  --rr-muted:  #64738B;
  --rr-line:   #F0F0F0;
  --rr-ok:     #16A34A;
  --rr-warn:   #E6A817;
  --rr-danger: #DC2626;
}

/* ── Onglets ────────────────────────────────────────────────────────── */
.mr_tabs { display: flex; gap: 8px; margin: 24px 0 20px; border-bottom: 1px solid var(--rr-line); }
.mr_tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 12px 18px; font-size: 15px; font-weight: 600;
  color: var(--rr-muted); cursor: pointer;
}
.mr_tab:hover { color: var(--rr-ink); }
.mr_tab_active { color: var(--rr-brio); border-bottom-color: var(--rr-brio); }
.mr_tab_count {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  background: var(--rr-soft); color: var(--rr-brio);
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.mr_tab_count_alert { background: #FEF2F2; color: var(--rr-danger); }

/* ── Carte série ────────────────────────────────────────────────────── */
.rr-card {
  background: #FFF; border: 1px solid var(--rr-line);
  border-radius: 12px; padding: 24px; margin-bottom: 20px;
}
.rr-card-creneaux { margin: 0 0 4px; font-size: 14px; color: var(--rr-ink); }
.rr-card-periode  { margin: 0 0 3px; font-size: 13px; color: var(--rr-muted); }

/* Une date écartée par l'hôte passe en orange : le coach doit le remarquer
   sans lire la ligne, sinon il ne s'en aperçoit qu'au planning. */
.rr-action-sub.is-partiel { color: #EA580C; font-weight: 600; }
.rr-card-badges { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }

/* Le liseré rend la pastille lisible sur les fonds clairs des tuiles et lui
   donne un contour net : un aplat seul flottait sur la carte blanche. */
.rr-badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.rr-badge-ok     { background: #F0FDF4; color: #166534; border-color: #D2EEDA; }
.rr-badge-warn   { background: #FFF8E6; color: #7D5A00; border-color: #F2E3BC; }
.rr-badge-muted  { background: #F4F4F5; color: #52525B; border-color: #E6E6E8; }
.rr-badge-remise { background: var(--rr-soft); color: var(--rr-brio); border-color: #F1DDD6; }

/* ── Carte de synthèse (liste des demandes régulières) ──────────────── */
/* Trois étages seulement : qui/quand, les deux échéances qui comptent, les
   actions. Tout ce qui se consulte plutôt qu'il ne se décide est sur la page
   de gestion — la carte doit tenir dans un regard. */
.rr-syn {
  padding: 22px 24px 18px;
  border-color: #EDEDED;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rr-syn:hover {
  border-color: #E0DAD7;
  box-shadow: 0 6px 20px -8px rgba(60, 30, 24, .16);
}

/* ── En-tête ─────────────────────────────────────────────────────────
   `align-items: flex-start` et non le défaut `stretch` : les badges doivent
   s'aligner sur la première ligne du titre, pas s'étirer sur toute sa hauteur
   quand le nom de salle passe sur deux lignes. */
.rr-syn-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px 20px; flex-wrap: wrap;
}
.rr-syn-ident { flex: 1 1 260px; min-width: 0; }
.rr-syn-ident h3 { margin: 0 0 9px; font-size: 18.5px; line-height: 1.3; letter-spacing: -0.01em; }
.rr-syn-lien { color: inherit; text-decoration: none; }
.rr-syn-lien:hover { color: var(--rr-brio); }

/* Une seule ligne de méta, en items séparés plutôt qu'en paragraphes
   empilés : trois lignes de 13 px sous le titre donnaient un pavé gris sans
   hiérarchie, alors qu'aucune des trois n'a la priorité sur les autres. */
.rr-syn-meta {
  margin: 0; display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--rr-muted);
}
.rr-syn-meta-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rr-syn-meta-item .material-symbols-outlined {
  font-size: 16px; color: #A8A29E;
  font-variation-settings: 'wght' 300;
}

/* ── Demande périmée ─────────────────────────────────────────────────
   Les 72 h sont passées : la demande ne mène plus nulle part. La carte est
   entièrement désaturée — badges, teinte de marque, tuile de paiement en
   rouge comprises — pour qu'elle se lise comme un historique et non comme
   une action en attente, et le survol cesse de la faire réagir. Seul le
   message d'explication garde ses couleurs : c'est la seule chose qu'il
   reste à lire. */
.rr-syn.is-perimee { background: #FAFAFA; border-color: #E7E5E4; }
.rr-syn.is-perimee:hover { border-color: #E7E5E4; box-shadow: none; }
.rr-syn.is-perimee .rr-syn-head,
.rr-syn.is-perimee .rr-syn-alerte,
.rr-syn.is-perimee .rr-syn-grid,
.rr-syn.is-perimee .rr-syn-avoir { filter: grayscale(1); opacity: .6; }

.rr-syn-perime {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 14px 0 0; padding: 10px 13px; border-radius: 9px;
  background: #F4F4F5; border: 1px solid #DEDEE1;
  color: #3F3F46; font-size: 13px; font-weight: 600; line-height: 1.45;
}
.rr-syn-perime .material-symbols-outlined { font-size: 17px; flex-shrink: 0; color: #71717A; }

.rr-syn-alerte {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 14px 0 0; padding: 10px 13px; border-radius: 9px;
  background: #FFF7ED; border: 1px solid #FBE3CC;
  color: #9A3412; font-size: 13px; font-weight: 600; line-height: 1.45;
}
.rr-syn-alerte .material-symbols-outlined { font-size: 17px; flex-shrink: 0; }

/* ── Les deux tuiles ─────────────────────────────────────────────────
   Même poids typographique, teintes différentes. La séance porte la couleur
   de la marque : c'est ce que le coach a acheté, et il doit la repérer d'un
   coup d'œil. Le paiement reste neutre tant qu'il n'y a rien d'anormal — une
   somme à sortir n'a pas à être mise en valeur — et bascule en rouge dès
   qu'il est en retard, où il prend alors le dessus.
   Le filet coloré à gauche donne la lecture sans avoir à teinter tout le
   bloc, qui écraserait le reste de la carte. */
.rr-syn-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px; margin: 16px 0 0;
}
.rr-syn-tuile {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--rr-line); border-left: 3px solid #E4E4E7;
  border-radius: 10px; padding: 14px 16px; background: #FCFCFC;
}
.rr-syn-tuile.is-seance {
  background: linear-gradient(180deg, #FDF6F3 0%, #FFFCFB 100%);
  border-color: #F2E1DB; border-left-color: var(--rr-brio);
}
.rr-syn-tuile.is-seance .rr-syn-label { color: var(--rr-brio); }
.rr-syn-tuile.is-late {
  background: #FEF5F5; border-color: #F6D4D4; border-left-color: var(--rr-danger);
}
.rr-syn-tuile.is-late .rr-syn-label { color: var(--rr-danger); }
.rr-syn-tuile.is-late strong { color: #991B1B; }
/* Rien à annoncer : la tuile reste pour tenir la grille, mais s'efface. */
.rr-syn-tuile.is-vide { background: #FCFCFC; }
.rr-syn-tuile.is-vide strong { color: var(--rr-muted); font-weight: 600; }

.rr-syn-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 700; color: var(--rr-muted);
}
.rr-syn-label .material-symbols-outlined { font-size: 15px; }
.rr-syn-tuile strong {
  font-size: 17px; color: var(--rr-ink); letter-spacing: -0.01em;
  /* La date longue et le montant tombent sur la même ligne de base d'une
     tuile à l'autre, quelle que soit leur longueur. */
  line-height: 1.35;
}
.rr-syn-detail { font-size: 12.5px; color: var(--rr-muted); line-height: 1.45; }

.rr-syn-avoir {
  display: flex; align-items: center; gap: 7px;
  margin: 12px 0 0; padding: 10px 14px;
  background: #F0F7FF; border: 1px solid #DBEAFE; border-radius: 9px;
  font-size: 13px; color: #1E40AF;
}
.rr-syn-avoir .material-symbols-outlined { font-size: 18px; }

/* ── Actions ─────────────────────────────────────────────────────────
   Trois niveaux et non trois boutons semblables : plein pour ce qui coûte de
   l'argent, contour pour la sortie vers le dossier, discret pour une simple
   consultation. Sans cette gradation, « Voir le contrat » pesait autant que
   « Payer ». */
.rr-syn-actions {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid #F4F4F4;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rr-syn-actions .rr-btn-pay {
  padding: 10px 24px; font-size: 14px; border-radius: 9px;
  box-shadow: 0 2px 8px -2px rgba(176, 75, 61, .45);
  transition: background .18s ease, box-shadow .18s ease;
}
.rr-syn-actions .rr-btn-pay:hover { box-shadow: 0 4px 12px -2px rgba(176, 75, 61, .5); }
.rr-syn-actions .rr-btn-pay.is-late {
  background: var(--rr-danger); box-shadow: 0 2px 8px -2px rgba(220, 38, 38, .45);
}
/* Signature + règlement : le geste qui confirme la série, et le seul qui soit
   daté. Il prend la place de droite — celle du bouton vers le dossier, qui
   s'efface alors — et la remplit franchement : halo, icône, taille. Rien
   d'autre sur la carte n'a ce poids. */
.rr-syn-actions .rr-btn-pay.is-finalisation {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 26px; font-size: 14.5px;
  box-shadow: 0 0 0 4px rgba(176, 75, 61, .16), 0 3px 10px -2px rgba(176, 75, 61, .5);
}
.rr-syn-actions .rr-btn-pay.is-finalisation:hover {
  box-shadow: 0 0 0 5px rgba(176, 75, 61, .22), 0 5px 14px -2px rgba(176, 75, 61, .55);
}
.rr-syn-actions .rr-btn-pay.is-finalisation .material-symbols-outlined {
  font-size: 19px; color: inherit;
}
/* Consultation : gris tant qu'on ne le survole pas. */
.rr-syn-actions .rr-btn-doc {
  padding: 9px 15px; color: var(--rr-muted); border-color: #EAEAEA;
}
.rr-syn-actions .rr-btn-doc .material-symbols-outlined { color: #A8A29E; font-size: 17px; }
.rr-syn-actions .rr-btn-doc:hover { color: var(--rr-brio); }
.rr-syn-actions .rr-btn-doc:hover .material-symbols-outlined { color: var(--rr-brio); }

/* Contrat signé hors plateforme et pas encore importé : une mention, pas un
   bouton — il n'y a rien à ouvrir. Ton neutre, l'absence étant normale. */
.rr-doc-absent {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; font-size: 13px; line-height: 1.4;
  color: var(--rr-muted);
}
.rr-doc-absent .material-symbols-outlined { font-size: 17px; color: #A8A29E; }

/* Le dossier : un bouton, mais au même niveau visuel que « Voir le contrat »
   — les deux sont de la consultation. Il était en contour brio et tirait l'œil
   comme une action à faire, alors qu'une série active n'appelle rien. */
.rr-btn-detail {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border: 1px solid #EAEAEA; border-radius: 8px;
  background: #FFF; color: var(--rr-muted);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.rr-btn-detail:hover { border-color: #DCD3CF; background: #FDFBFA; color: var(--rr-brio); }
.rr-btn-detail .material-symbols-outlined {
  font-size: 17px; color: #A8A29E; transition: transform .18s ease, color .18s ease;
}
.rr-btn-detail:hover .material-symbols-outlined { color: var(--rr-brio); transform: translateX(2px); }

@media (max-width: 560px) {
  .rr-syn { padding: 18px 16px 14px; }
  .rr-syn-actions { flex-direction: column; align-items: stretch; }
  .rr-syn-actions .rr-btn-pay,
  .rr-syn-actions .rr-btn-doc,
  .rr-btn-detail { text-align: center; justify-content: center; }
  .rr-btn-detail { margin-left: 0; }
  /* Empilées, les actions suivent l'ordre du DOM : la finalisation y est en
     dernier pour occuper la droite en écran large. On la remonte. */
  .rr-syn-actions .rr-btn-pay.is-finalisation { order: -1; margin-left: 0; }
}

/* ── Échéance : l'action à faire, donc en haut ──────────────────────── */
.rr-echeance {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--rr-soft); border-radius: 10px;
  padding: 18px 20px; margin: 20px 0; flex-wrap: wrap;
}
.rr-echeance.is-late { background: #FEF2F2; }
.rr-echeance-label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--rr-brio); font-weight: 700; margin-bottom: 4px;
}
.rr-echeance.is-late .rr-echeance-label { color: var(--rr-danger); }
.rr-echeance-info strong { font-size: 16px; color: var(--rr-ink); }
.rr-echeance-info p { margin: 4px 0 0; font-size: 13px; color: var(--rr-muted); }
/* Composition du montant : subordonnée au total qu'elle explique. */
.rr-echeance-detail { font-size: 12px !important; opacity: .85; }
.rr-echeance-info .rr-warn { color: #991B1B; font-weight: 600; line-height: 1.6; max-width: 460px; }

.rr-btn-pay {
  background: var(--rr-brio); color: #FFF; text-decoration: none;
  padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 15px;
  white-space: nowrap;
}
.rr-btn-pay:hover { background: #963F33; }
.rr-echeance.is-late .rr-btn-pay { background: var(--rr-danger); }

/* Le temps d'obtenir un lien de paiement neuf du serveur. Le bouton garde sa
   place — un rétrécissement ferait sauter la ligne d'actions. */
.rr-btn-pay.is-busy, .rr-action-cta.is-busy, .rr-modal-cta.is-busy {
  opacity: .65; pointer-events: none;
}

/* ── Séances : deux pastilles distinctes ────────────────────────────── */
/* La liste complète ne vit plus que sur la page de gestion : la carte de
   synthèse n'annonce que la prochaine séance. */
.rr-seances-liste { list-style: none; margin: 0; padding: 0; }
.rr-seances-liste li {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--rr-line); font-size: 14px;
}
.rr-seances-liste li:last-child { border-bottom: none; }
.rr-seance-date  { min-width: 92px; font-weight: 600; color: var(--rr-ink); }
.rr-seance-heure { min-width: 110px; color: var(--rr-muted); font-size: 13px; }

.rr-pastille {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.p-ok      { background: #F0FDF4; color: #166534; }
.p-attente { background: #FFF8E6; color: #7D5A00; }
.p-retard  { background: #FEF2F2; color: #991B1B; }
.p-annule  { background: #F4F4F5; color: #52525B; text-decoration: line-through; }
.p-muted   { background: #F4F4F5; color: #52525B; }

.rr-avoir {
  margin: 12px 0 0; padding: 12px 16px; background: #EFF6FF;
  border-radius: 8px; font-size: 13px; color: #1E40AF;
}

/* ── Résiliation ────────────────────────────────────────────────────── */
/* Le pied de carte a disparu avec la liste : résiliation et documents sont
   sur la page de gestion, qui les met chacun dans son bloc. */
.rr-resilier {
  background: none; border: 1px solid #E5E5E5; border-radius: 6px;
  padding: 8px 16px; font-size: 13px; color: var(--rr-muted); cursor: pointer;
}
.rr-resilier:hover { border-color: var(--rr-danger); color: var(--rr-danger); }

.rr-btn-doc {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF; border: 1px solid var(--rr-line); border-radius: 6px;
  padding: 8px 14px; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--rr-brio); text-decoration: none; cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.rr-btn-doc:hover { border-color: var(--rr-brio); background: #FFFBFA; }
.rr-btn-doc .material-symbols-outlined { font-size: 18px; color: var(--rr-brio);  }

/* ── Popup des factures ─────────────────────────────────────────────── */
.rr-modal-factures { max-width: 560px; }
.rr-fact-icon { color: var(--rr-brio); }
#rr-fact-sous-titre { font-size: 14px; color: var(--rr-muted); margin: 0 0 20px; }

.rr-fact-liste { list-style: none; margin: 0; padding: 0; text-align: left; }
.rr-fact-liste li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--rr-line);
}
.rr-fact-liste li:last-child { border-bottom: none; }

.rr-fact-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rr-fact-info strong { font-size: 14.5px; color: var(--rr-ink); }
.rr-fact-info span { font-size: 12.5px; color: var(--rr-muted); }

.rr-fact-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rr-fact-voir, .rr-fact-dl {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 6px; padding: 7px 13px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: opacity .18s ease, border-color .18s ease, background-color .18s ease;
}
.rr-fact-voir { border: 1px solid var(--rr-line); color: var(--rr-ink); background: #FFF; }
.rr-fact-voir:hover { border-color: var(--rr-brio); color: var(--rr-brio); }
/* Le téléchargement est l'action retenue : c'est le PDF que le coach
   transmet à son comptable, consulter n'est qu'une vérification. */
.rr-fact-dl { background: var(--rr-brio); color: #FFF; border: 1px solid var(--rr-brio); }
.rr-fact-dl:hover { opacity: .88; color: #FFF; }
.rr-fact-voir .material-symbols-outlined,
.rr-fact-dl .material-symbols-outlined { font-size: 17px; }
/* `color: #FFF` était posé sur les deux : l'icône de « Voir » était donc
   blanche sur fond blanc, donc invisible. Chacune suit la couleur de son
   bouton. */
.rr-fact-voir .material-symbols-outlined { color: inherit; }
.rr-fact-dl .material-symbols-outlined { color: #FFF; }

@media (max-width: 560px) {
  /* Les deux actions passent pleine largeur plutôt que de se tasser sous
     l'intitulé de la facture. */
  .rr-fact-liste li { flex-direction: column; align-items: stretch; }
  .rr-fact-actions { width: 100%; }
  .rr-fact-voir, .rr-fact-dl { flex: 1; justify-content: center; }
}

/* ── États ──────────────────────────────────────────────────────────── */
.rr-loading { padding: 40px; text-align: center; color: var(--rr-muted); }
.rr-vide {
  background: #FFF; border: 1px solid var(--rr-line); border-radius: 12px;
  padding: 48px 32px; text-align: center;
}
.rr-vide .material-symbols-outlined { font-size: 44px; color: var(--rr-brio); }
.rr-vide h3 { margin: 14px 0 8px; font-size: 18px; }
.rr-vide p { color: var(--rr-muted); font-size: 14px; max-width: 440px; margin: 0 auto 22px; line-height: 1.7; }
.rr-cta {
  display: inline-block; background: var(--rr-brio); color: #FFF;
  padding: 13px 28px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.rr-sub { font-size: 13px; color: var(--rr-muted); }

@media (max-width: 640px) {
  .rr-echeance { flex-direction: column; align-items: stretch; }
  .rr-btn-pay { text-align: center; }
  .rr-seances-liste li { gap: 8px; }
  .rr-seance-date, .rr-seance-heure { min-width: auto; }
}

/* ── Action requise : série acceptée, à signer et régler ─────────────── */
/* Un seul encart par série, en haut de page. Il remplace les N lignes que
   la bannière de paiement ponctuel affichait, une par séance. */
#rr_action_required { margin: 20px 0 4px; display: grid; gap: 12px; }

.rr-action-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  background: #FFFBFA; border: 1.5px solid var(--rr-brio); border-radius: 12px;
  padding: 18px 22px;
}
.rr-action-main { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 320px; }
.rr-action-icon { font-size: 26px; color: var(--rr-brio); flex-shrink: 0; }
.rr-action-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--rr-ink); }
.rr-action-sub { margin: 0 0 2px; font-size: 13px; color: var(--rr-muted); line-height: 1.5; }
.rr-action-sub strong { color: var(--rr-ink); }
.rr-action-delai { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--rr-warn); }
.rr-action-delai.is-late { color: var(--rr-danger); }

.rr-action-cta {
  flex-shrink: 0; background: var(--rr-brio); color: #FFF;
  padding: 12px 26px; border-radius: 9px; font-size: 14.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background .15s ease;
}
.rr-action-cta:hover { background: #963F33; color: #FFF; }

/* ── Modale « votre hôte a accepté » ─────────────────────────────────── */
.rr-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1200;
  background: rgba(17, 17, 17, .48);
  align-items: center; justify-content: center; padding: 16px;
}
.rr-modal-overlay.open { display: flex; }
.rr-modal {
  position: relative; background: #FFF; border-radius: 16px;
  width: 100%; max-width: 480px; padding: 32px 30px 26px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
  max-height: 90vh; overflow-y: auto; text-align: center;
}
.rr-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 26px; line-height: 1;
  color: #9CA3AF; cursor: pointer; padding: 0 4px;
}
.rr-modal-icon { font-size: 46px; color: var(--rr-ok); }
.rr-modal h2 { font-size: 21px; margin: 12px 0 10px; line-height: 1.3; }
.rr-modal > p { font-size: 14px; color: var(--rr-muted); line-height: 1.65; margin: 0; }
.rr-modal strong { color: var(--rr-ink); }

.rr-modal-etapes { list-style: none; margin: 22px 0 18px; padding: 0; text-align: left; counter-reset: etape; }
.rr-modal-etapes li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--rr-line); border-radius: 10px;
  margin-bottom: 8px; background: #FFF;
}
.rr-modal-etapes li::before {
  counter-increment: etape; content: counter(etape);
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--rr-soft); color: var(--rr-brio); font-size: 12px; font-weight: 700;
}
.rr-modal-etapes li strong { flex: 1; font-size: 13.5px; font-weight: 600; }
.rr-modal-etapes li span { font-size: 13px; color: var(--rr-muted); white-space: nowrap; }
.rr-modal-etapes li.is-done { background: #F6FBF7; border-color: #CFE9D6; }
.rr-modal-etapes li.is-done::before { background: #DCFCE7; color: var(--rr-ok); content: '✓'; }
.rr-modal-etapes li.is-done span { color: var(--rr-ok); font-weight: 600; }

/* Délai en noir et non en jaune : le gras porte déjà l'information, et
   réserver la couleur au seuil des 24 h rend l'alerte réellement distinctive.
   L'encart hors modale (.rr-action-delai) garde le jaune, d'où la couleur
   posée ici plutôt que sur --rr-warn. */
.rr-modal-delai { margin: 0 0 20px; font-size: 13px; font-weight: 600; color: var(--rr-ink); }
.rr-modal-delai-txt { margin: 0; font-size: 13px; font-weight: 600; color: var(--rr-ink); }
.rr-modal-delai-txt.is-late { color: var(--rr-danger); }

.rr-modal-cta {
  display: block; background: var(--rr-brio); color: #FFF;
  padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: background .15s ease;
}
.rr-modal-cta:hover { background: #963F33; color: #FFF; }
.rr-modal-later {
  background: none; border: none; margin-top: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--rr-muted); cursor: pointer;
}
.rr-modal-later:hover { color: var(--rr-ink); }

@media (max-width: 640px) {
  .rr-action-card { flex-direction: column; align-items: stretch; }
  .rr-action-cta { text-align: center; }
  .rr-modal { padding: 26px 20px 22px; }
}
