/*
 * Kœurflor — Charte : pièces propres à certains écrans (livreur, tableaux de bord, fiche, stock, téléphone)
 * Auteur : Jacks Ngalangala
 */
/* Page livreur */
.etape-livreur {
  background: var(--surface);
  border: 1px solid var(--sable);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.code-saisie {
  font: 800 28px var(--display);
  letter-spacing: 10px;
  text-align: center;
}
.texte-danger {
  color: var(--danger) !important;
}
.pastille-nombre {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font: 700 12px var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.droite-centre {
  text-align: center;
  padding: 12px 4px;
}
.pousse-texte {
  flex: 1;
}
.btn-ouverte {
  background: var(--success-soft);
  color: var(--success);
  border-color: transparent;
  font-weight: 700;
}
.btn-ouverte::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.barre-texte {
  text-decoration: line-through;
  color: var(--ink-muted);
}
.grille-tableau {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
}
.grille-fiche {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1100px) {
  .grille-tableau,
  .grille-fiche {
    grid-template-columns: 1fr;
  }
}
.case-tableau {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}
/* Zone tactile de 48 px autour de la case (C4) */
.case-zone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tactile);
  min-height: var(--tactile);
  cursor: pointer;
}
.option-logo-sombre {
  background: var(--brand-strong);
  color: var(--on-brand);
  border: 0;
}
.titre-centre {
  text-align: center;
}
.titre-section {
  font: 700 18px/24px var(--display);
}
.titre-choix {
  font: 700 20px/26px var(--display);
}
.page-boutique {
  background: var(--surface-alt);
}
.boutique-actions {
  position: absolute;
  right: 16px;
  top: calc(16px + env(safe-area-inset-top));
  display: flex;
  gap: 8px;
}
.boutique-onglets {
  background: var(--surface);
  padding: 14px 20px;
  border-bottom: 1px solid var(--sable);
  overflow-x: auto;
}
.boutique-onglets .onglets {
  flex-wrap: nowrap;
}
.boutique-corps {
  background: var(--surface-alt);
}
.vignette-bouton {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  min-width: var(--tactile);
  min-height: var(--tactile);
}
.vignette-bouton[aria-pressed='true'] {
  border-color: var(--brand);
}
.logo-grand {
  width: 96px;
  height: 96px;
  border-radius: 26px;
}
.stock-compte {
  min-width: 56px;
  align-items: center;
}
.grille-stock {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}
.tiroir:focus,
.fenetre:focus {
  outline: none;
}
.defile .tableau th,
.defile .tableau td {
  padding: 12px 8px;
}
.grille-fiche {
  grid-template-columns: minmax(0, 1fr) 320px;
}

/* Fiche pays › « Voir les points » : chaque élément manquant mène à l'endroit où le corriger */
.lien-point {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tactile);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--brand);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.lien-point:hover span {
  text-decoration: underline;
}
/* Champ ou réglage visé : mis en évidence le temps de le repérer */
.champ-vise,
.ligne-visee {
  outline: 3px solid var(--petal);
  outline-offset: 4px;
  border-radius: var(--r-sm);
  transition: outline-color 0.6s;
}

/* Bandeau de mise en ligne d'une boutique (web Pro) : étapes, dossier envoyé, dossier refusé */
.mel {
  border: 1px solid var(--warning-trait);
  background: var(--warning-soft);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.mel h2 {
  font: 800 22px var(--display);
  margin: 0;
}
.mel-texte {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 72ch;
}
.mel-envoye {
  background: var(--brand-soft);
  border-color: var(--brand-pale);
}
.mel-refuse {
  background: var(--danger-soft);
  border-color: var(--danger-trait, #f3c3bd);
}
.mel-replie {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
}
.mel-ligne-titre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--warning);
  flex: 1;
}
.mel-compte {
  font: 800 15px var(--display);
  color: var(--ink);
}
.mel-barre {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sable);
  appearance: none;
}
.mel-barre::-webkit-progress-bar {
  background: var(--sable);
}
.mel-barre::-webkit-progress-value {
  background: var(--brand);
  border-radius: 8px;
}
.mel-barre::-moz-progress-bar {
  background: var(--brand);
}
.mel-etapes {
  list-style: none;
  margin: 0;
  padding: 4px 18px;
}
.mel-etape {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 0;
  border-top: 1px solid var(--sable);
}
.mel-etape:first-child {
  border-top: 0;
}
.mel-rond {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink-faible);
}
.mel-rond-ok {
  border: 0;
  background: var(--success-soft);
  color: var(--success);
}
.mel-etape-texte {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mel > .puce,
.mel .ligne-entre > .puce {
  align-self: flex-start;
}
