/* B4U V2 — version épurée · Récupérations.
   Ce qui est propre à cet écran ; la trousse commune est dans epure.css.
   Liste : le code postal du point de retrait en pastille sombre. Fiche : UN code-barres en grand, son colis,
   et le seul bouton principal. Sur téléphone : code très grand, bouton large sous la carte. */

/* ───────── Le code postal, lisible d'un coup d'œil ───────── */
.rc-cp { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1.45; letter-spacing: 0; background: var(--encre); color: #fff; border-radius: 7px; padding: 1px 8px; white-space: nowrap; }
.rc-pied { line-height: 1.7; }

/* ───────── En-tête de la fiche ───────── */
.fiche.etroite:has(> .rc-tete) { max-width: 700px; }
.rc-tete h2 { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.rc-tete h2 .rc-cp { font-size: 18px; padding: 2px 11px; }
.rc-tete .rc-proc { font-size: 14px; letter-spacing: 0; }
.rc-lieu .sous { margin-top: 4px; overflow-wrap: anywhere; }
.rc-lieu .rc-infos { margin-top: 2px; }
.rc-lieu .rc-infos:empty, .rc-court { display: none; }
span.rc-long { display: inline; }
.rc-lieu b { color: var(--encre); }
.rc-qui { white-space: nowrap; }

/* ───────── La carte du code-barres ───────── */
.rc-carte { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; }
.rc-haut-carte { padding: 22px 24px 20px; border-bottom: 0; border-radius: var(--rayon-l) var(--rayon-l) 0 0; }
.rc-haut { display: flex; align-items: center; gap: 12px; }
.rc-haut > b { flex: 1; font-size: 18px; font-weight: 800; }
.rc-haut .statut { height: 30px; padding: 0 11px; font-size: 13.5px; }

.rc-car { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; column-gap: 14px; align-items: center; margin-top: 18px; border-radius: 10px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rc-car:focus-visible { outline: 2px solid var(--focus, var(--bleu-600)); outline-offset: 6px; }
.rc-fenetre { grid-column: 2; grid-row: 1; overflow: hidden; min-width: 0; }
.rc-fleche { width: 48px; height: 48px; padding: 0; grid-row: 1; }
.rc-prec { grid-column: 1; }
.rc-suiv { grid-column: 3; }
.rc-prec .ic { transform: rotate(180deg); }
.rc-car .carrousel-diapo { padding: 0; gap: 12px; min-width: 0; }
.rc-code { width: 100%; height: 170px; overflow: hidden; background: #fff; cursor: zoom-in; }
.rc-code svg { display: block; width: 100%; height: auto; }
.rc-sans-code { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: default; color: var(--encre-2); text-align: center; border: 1px dashed var(--bord-fort); border-radius: 12px; padding: 0 16px; }
.rc-sans-code .ic { width: 30px; height: 30px; color: var(--encre-3); }
.rc-car .code-numero { font-size: 18px; font-weight: 500; letter-spacing: .03em; text-align: center; overflow-wrap: anywhere; }
.rc-car .carrousel-points { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 7px; margin-top: 16px; }
.rc-car .carrousel-points i { width: 9px; height: 9px; border-radius: 5px; background: #c3c7d1; }
.rc-car .carrousel-points i.on { width: 26px; background: var(--encre); }
/* Un seul colis : ni flèches ni points, le code prend toute la largeur. */
.rc-car[data-total="1"] .rc-fleche, .rc-car[data-total="1"] .carrousel-points { display: none; }
.rc-car[data-total="1"] .rc-fenetre { grid-column: 1 / -1; }
.rc-glisse { display: none; }
/* Carte étroite (téléphone, fenêtre réduite) : le code prend toute la largeur, les flèches passent dessous. */
@container (max-width: 520px) {
  .rc-car { grid-template-columns: 52px minmax(0, 1fr) 52px; row-gap: 16px; }
  .rc-fenetre { grid-column: 1 / -1; }
  .rc-fleche { grid-row: 2; width: 52px; border-radius: 12px; }
  .rc-car .carrousel-points { grid-column: 2; grid-row: 2; margin-top: 0; }
}

/* Le bas de la carte : les liens à gauche, le seul bouton principal à droite. */
.rc-bas { background: var(--surface); border: 1px solid var(--bord); border-top: 0; border-radius: 0 0 var(--rayon-l) var(--rayon-l); padding: 0 24px 22px; }
.rc-mot { color: var(--encre-2); overflow-wrap: anywhere; }
.rc-mot + .rc-gestes { margin-top: 14px; }
.rc-liens:empty { display: none; }
.rc-gestes { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.rc-liens { flex: 1; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.rc-liens a, .rc-liens button.lien, .rc-long button.lien { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.rc-principal { height: 44px; padding: 0 18px; }
.rc-refus { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rc-tel { display: none; }

/* ───────── Les colis de la commande ───────── */
.rc-colis { padding: 6px 0; overflow: hidden; }
.rc-ligne { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 24px; border: 0; border-top: 1px solid var(--ligne); background: none; color: inherit; font-size: 14.5px; text-align: left; }
.rc-ligne:first-child { border-top: 0; }
.rc-ligne:hover { background: var(--survol); }
.rc-ligne.actif, .rc-ligne.actif:hover { background: var(--fond); }
.rc-ligne > b { flex: none; width: 64px; font-weight: 700; }
.rc-ligne > .mono { flex: 1; min-width: 0; font-size: 13px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* À qui ce colis est confié, quand les colis de la commande ne vont pas tous à la même personne */
.rc-ligne-qui { flex: none; max-width: 30%; font-size: 13.5px; font-weight: 600; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────── Pour le retrait : au nom de qui, instructions ───────── */
.rc-retrait { display: flex; flex-direction: column; gap: 10px; }
.rc-info { overflow-wrap: anywhere; }

/* ───────── Téléphone : devant le relais, le code très grand et le bouton sous le pouce ───────── */
@media (max-width: 760px) {
  .rc-long, span.rc-long, .rc-bas .rc-liens button.rc-long { display: none; }
  .rc-court { display: block; }
  .rc-qui { white-space: normal; }
  .rc-haut-carte { padding: 18px 16px 16px; border-bottom: 1px solid var(--bord); border-radius: 18px; }
  .rc-code { height: 190px; }
  .rc-car .code-numero { font-size: 16.5px; letter-spacing: .02em; }
  .rc-glisse { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: var(--encre-2); }
  .rc-bas { background: none; border: 0; border-radius: 0; padding: 14px 0 0; }
  .rc-mot { text-align: center; }
  .rc-mot + .rc-gestes { margin-top: 12px; }
  .rc-gestes { flex-direction: column; align-items: stretch; gap: 6px; }
  .rc-principal { order: -1; width: 100%; height: 54px; border-radius: 14px; font-size: 17px; font-weight: 800; }
  .rc-liens { justify-content: center; gap: 0 26px; }
  .rc-refus { min-height: 44px; align-self: center; }
  .rc-liens a, .rc-liens button.lien { min-height: 44px; display: inline-flex; align-items: center; }
  .rc-tel { display: inline-flex; }
  .rc-pied { border-top: 0; padding-top: 14px; }
  .rc-ligne { padding: 12px 16px; gap: 10px; }
  .rc-ligne > b { width: 56px; }
}
