/* ARMAT — styles du panier de demande de devis.
 * Ne redéfinit aucune règle de armat.css / site.css : uniquement des classes neuves,
 * préfixées .panier-, pour ne rien casser dans le site existant.
 */

.panier-lien {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  border: 1px solid #d8d2c8;
  border-radius: 4px;
  white-space: nowrap;
}
.panier-lien:hover,
.panier-lien:focus-visible { border-color: #444; }
.panier-lien [data-panier-compteur] {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 0.25em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: #444;
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.panier-lien [data-panier-compteur][data-vide="oui"] { background: #c9c2b6; color: #444; }

/* bloc produit : ajouter à la demande */
.panier-bloc {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: #fbfaf7;
  max-width: 34rem;
}
.panier-bloc__titre {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #444;
}
.panier-bloc__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.panier-bloc label { font-size: 0.9rem; color: #444; }
.panier-bloc input[type="number"] {
  width: 7rem;
  min-height: 44px;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  border: 1px solid #b9b2a6;
  border-radius: 4px;
  background: #fff;
  color: #222;
}
.panier-bloc input[type="number"]:focus-visible {
  outline: 2px solid #444;
  outline-offset: 2px;
}
.panier-bloc .panier-bloc__unite { font-size: 0.9rem; color: #5c5751; }
.panier-bloc .panier-bloc__note {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #5c5751;
}
.panier-bloc .panier-bloc__note a { color: #444; }

.panier-message {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #7a1010;
}
.panier-message[data-visible="non"] { display: none; }
.panier-message a { color: #7a1010; }

/* page panier */
.panier-table { width: 100%; border-collapse: collapse; }
.panier-table th,
.panier-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #e4ded4;
  vertical-align: top;
}
.panier-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b655d;
  border-bottom-width: 2px;
}
.panier-nom { display: block; font-weight: 600; }
.panier-mode { display: block; font-size: 0.82rem; color: #6b655d; font-weight: 400; }
.panier-retirer {
  min-height: 44px;
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  color: #7a1010;
  background: none;
  border: 1px solid #e0d6d6;
  border-radius: 4px;
  cursor: pointer;
}
.panier-retirer:hover { border-color: #7a1010; }

.panier-vide {
  padding: 1.5rem;
  background: #fbfaf7;
  border: 1px dashed #d8d2c8;
  border-radius: 6px;
}
.panier-form { margin: 1.75rem 0 0; max-width: 40rem; }
.panier-form fieldset { margin: 0 0 1.25rem; padding: 0; border: 0; }
.panier-form legend { font-weight: 700; margin-bottom: 0.6rem; }
.panier-champ { margin: 0 0 0.9rem; }
.panier-champ label { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; color: #444; }
.panier-champ input,
.panier-champ textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  border: 1px solid #b9b2a6;
  border-radius: 4px;
  background: #fff;
  color: #222;
}
.panier-champ textarea { min-height: 8rem; resize: vertical; }
.panier-apercu {
  width: 100%;
  min-height: 12rem;
  margin: 0.6rem 0 0;
  padding: 0.7rem;
  font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid #d8d2c8;
  border-radius: 4px;
  background: #fbfaf7;
  color: #333;
}
.panier-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0; }
.panier-actions .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* message d'information, sans dépendre de la couleur seule */
.panier-info {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid #E20612;
  background: #fbfaf7;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #444;
}

@media (max-width: 640px) {
  .panier-table thead { display: none; }
  .panier-table tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid #e4ded4; }
  .panier-table th,
  .panier-table td { display: block; border: 0; padding: 0.15rem 0; }
  .panier-bloc { padding: 0.9rem; }
  .panier-bloc input[type="number"] { width: 5.5rem; }
  .panier-actions .btn { width: 100%; text-align: center; }
}
