:root {
  --paper: #F6F0E7;
  --surface: #FDFAF6;
  --ink: #1E2A38;
  --muted: #8C8378;
  --border: #E4DACB;
  --brand: #4B7A5C;
  --brand-soft: #DCEADD;
  --warn: #9C7420;
  --warn-soft: #F5E7BE;
  --voice: #B5693C;
  --voice-soft: #EEE1D9;
  --voice-border: #DCC3AE;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.card-auth {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
}

.card-auth h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 20px;
}

.card-auth label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 6px;
}

.card-auth input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
}

.card-auth input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.champ-mdp {
  position: relative;
}

.champ-mdp input {
  padding-right: 40px;
}

.toggle-mdp {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

.card-auth button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 11px;
  background: var(--brand);
  color: var(--brand-soft);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.erreurs, .info {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13px;
}

.erreurs {
  background: var(--warn-soft);
  color: var(--warn);
}

.erreurs li + li {
  margin-top: 4px;
}

.info {
  background: var(--brand-soft);
  color: var(--brand);
}

.lien-secondaire {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.lien-secondaire a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

/* Pages plus longues qu'une carte de connexion (profil, zones...) */
body.page {
  align-items: flex-start;
}

.page-content {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.topbar .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--voice, var(--warn));
}

.topbar h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  margin: 2px 0;
}

.topbar .sub {
  font-size: 13px;
  color: var(--muted);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 10px 2px;
}

.section-label:first-of-type {
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 14px 15px;
}

.card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 6px;
}

.card label:first-of-type {
  margin-top: 0;
}

.champ-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  text-transform: none !important;
  margin: 14px 0 0 !important;
}

.champ-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
}

.card input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.bouton-brand {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 11px;
  background: var(--brand);
  color: var(--brand-soft);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.excl-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 2px 0;
}

.carte-liste {
  padding: 0;
}

.ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
}

.ligne-rang {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.ligne-corps {
  flex: 1;
  min-width: 0;
}

.ligne-corps .v {
  font-size: 14px;
  font-weight: 600;
}

.ligne-corps .k {
  font-size: 11px;
  color: var(--muted);
}

.ligne-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.ligne-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.ligne-btn-retirer {
  color: var(--warn);
}

.suggestions-label {
  margin: 12px 15px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.suggestions-magasins {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 15px 12px;
}

.suggestion-magasin button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.suggestion-magasin img {
  border-radius: 3px;
  display: inline-block;
}

.ligne-ajout {
  display: flex;
  gap: 8px;
  padding: 12px 15px;
}

.ligne-ajout input,
.ligne-ajout select {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
}

.ligne-ajout button {
  padding: 9px 14px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 15px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
}

.chip button {
  background: var(--surface);
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.ligne-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
}

.ligne-zone:last-child {
  border-bottom: none;
}

.ligne-zone input[type="text"],
.ligne-zone select {
  flex: 1 1 120px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.ligne-btn-texte {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--brand);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ligne-btn-texte.ligne-btn-retirer {
  color: var(--warn);
}

/* Écran Stock par zone */
.resume-alerte {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 20px;
  color: var(--warn);
}

.resume-alerte-icone {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.resume-alerte strong {
  display: block;
  font-size: 14px;
}

.resume-alerte span {
  font-size: 12px;
  opacity: 0.85;
}

.zones-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  margin-bottom: 4px;
}

.zone-carte {
  flex: 0 0 auto;
  width: 122px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.zone-carte.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1.5px var(--brand);
}

.zone-carte-icone {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.zone-carte-icone svg {
  width: 16px;
  height: 16px;
}

.zone-carte-nom {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.comp-bar {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 6px;
}

.zone-carte-meta {
  font-size: 10.5px;
  color: var(--muted);
}

.zone-carte-meta.alert {
  color: var(--warn);
  font-weight: 600;
}

.zone-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.zone-detail-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}

.zone-detail-head .cap {
  font-size: 12px;
  color: var(--muted);
}

.groupe-seuil {
  margin-top: 16px;
}

.groupe-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px 2px;
  color: var(--muted);
}

.groupe-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.groupe-label.groupe-a_recharger {
  color: var(--warn);
}

.groupe-label.groupe-a_recharger .dot {
  background: var(--warn);
}

.groupe-label.groupe-plein {
  color: var(--brand);
}

.groupe-label.groupe-plein .dot {
  background: var(--brand);
}

.liste-produits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.produit-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 11px;
}

.produit-icone {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.produit-icone svg {
  width: 17px;
  height: 17px;
}

.produit-icone.type-alimentaire { background: var(--brand-soft); color: var(--brand); }
.produit-icone.type-hygiene { background: var(--rose-soft, #F3E1E3); color: var(--rose, #C97C87); }
.produit-icone.type-menager { background: var(--warn-soft); color: var(--warn); }
.produit-icone.type-autre { background: var(--border); color: var(--muted); }

.produit-info {
  flex: 1;
  min-width: 0;
}

.produit-info .nom {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.produit-info .meta {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seuil-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 6px 11px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.seuil-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.seuil-btn.seuil-plein { background: var(--brand-soft); color: var(--brand); }
.seuil-btn.seuil-plein .dot { background: var(--brand); }
.seuil-btn.seuil-moyen { background: var(--border); color: var(--muted); }
.seuil-btn.seuil-moyen .dot { background: var(--muted); }
.seuil-btn.seuil-a_recharger { background: var(--warn-soft); color: var(--warn); }
.seuil-btn.seuil-a_recharger .dot { background: var(--warn); }

/* Écran Liste de courses */
.hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}

.progress-card {
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.progress-top {
  margin-bottom: 10px;
}

.progress-big {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--brand);
}

.progress-label {
  font-size: 11px;
  color: var(--ink);
  opacity: 0.7;
  margin-left: 6px;
}

.progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--surface);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.item-course {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
  width: 100%;
  text-align: left;
}

.prix-achat-input,
.magasin-achat-input {
  flex: 1 1 90px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
}

.simulateur-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.simulateur-ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.simulateur-ligne strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  color: var(--brand);
}

.simulateur-ligne strong.montant-alerte {
  color: var(--warn);
}

.economie-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
}

.economie-ligne:last-child {
  border-bottom: none;
}

.economie-mois {
  flex: 0 0 100px;
  font-size: 12.5px;
  font-weight: 600;
}

.economie-barre-piste {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}

.economie-barre {
  height: 100%;
  background: var(--brand);
}

.economie-montant {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  min-width: 70px;
  text-align: right;
}

.item-course.coche {
  opacity: 0.55;
}

.item-course.coche .nom {
  text-decoration: line-through;
}

.case-cocher {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.6px solid var(--border);
  background: var(--surface);
  color: var(--surface);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.case-cocher.on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-soft);
}

/* Écran Scan */
.viewfinder {
  background: #2A2622;
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewfinder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-help {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 16px;
}

.recognized {
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.photo-frame {
  background: var(--brand-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 14px;
}

.barcode-line {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.conseil-card {
  background: var(--voice-soft);
  border: 1px solid var(--voice-border);
  border-radius: 16px;
  padding: 15px 16px;
  margin-bottom: 18px;
}

.conseil-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--voice);
  margin-bottom: 8px;
}

.conseil-text {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 8px;
}

.conseil-note {
  font-size: 10.5px;
  color: var(--muted);
}

/* Écran Recettes */
.hero-recette {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 17px 18px;
  margin-bottom: 22px;
}

.hero-recette h2 {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  margin: 4px 0 8px;
}

.hero-badge {
  display: inline-block;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.origin-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
}

.origin-ia {
  background: var(--voice-soft);
  color: var(--voice);
}

.origin-statique {
  background: var(--border);
  color: var(--muted);
}

.chip-row-static {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}

.ing-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ing-icon svg {
  width: 14px;
  height: 14px;
}

.ing-icon.type-alimentaire { background: var(--brand-soft); color: var(--brand); }
.ing-icon.type-hygiene { background: var(--rose-soft, #F3E1E3); color: var(--rose, #C97C87); }
.ing-icon.type-menager { background: var(--warn-soft); color: var(--warn); }
.ing-icon.type-autre { background: var(--border); color: var(--muted); }

.recettes-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 20px;
}

.recette-carte {
  flex: 0 0 auto;
  width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.recette-carte .nom {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 33px;
  margin-bottom: 8px;
}

.recette-carte-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.recette-carte-pied a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.plan-liste {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.plan-jour {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
}

.plan-date {
  width: 42px;
  flex-shrink: 0;
  text-align: center;
}

.plan-date .jour {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: capitalize;
}

.plan-date .numero {
  font-size: 15px;
  font-weight: 700;
}

.plan-corps {
  flex: 1;
  min-width: 0;
}

.plan-ajout-forme {
  display: flex;
  gap: 6px;
}

.plan-ajout-forme select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
}

.plan-ajout-forme button {
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-soft);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.plan-recette-ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.plan-recette-ligne .nom-recette {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-recette-ligne a {
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.plan-recette-ligne button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  padding: 0 4px;
}

.chip-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-radio-label {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.chip-radio-input:checked + .chip-radio-label {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-soft);
}

.chip-radio-input:checked + .chip-radio-label.seuil-moyen {
  background: var(--border);
  color: var(--ink);
}

.chip-radio-input:checked + .chip-radio-label.seuil-a_recharger {
  background: var(--warn-soft);
  border-color: var(--warn);
  color: var(--warn);
}

.chip-radio-input:focus-visible + .chip-radio-label {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.produit-retirer {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

/* Écran Promos & veille (Bloc 7) */
.sync-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.sync-row svg {
  width: 13px;
  height: 13px;
}

.alert-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 22px;
}

.alert-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warn);
  flex-shrink: 0;
}

.alert-icon svg {
  width: 16px;
  height: 16px;
}

.alert-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--warn);
  margin-bottom: 2px;
}

.alert-body p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--warn);
  opacity: 0.85;
  line-height: 1.4;
}

.dotted-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.promo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
}

.produit-icone.type-unmatched {
  background: var(--border);
  color: var(--muted);
}

.promo-info .nom.non-associe {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}

.promo-info .match-action {
  display: block;
  margin-top: 3px;
  color: var(--brand);
  font-size: 11px;
}

.promo-right {
  flex-shrink: 0;
  text-align: right;
}

.reduction-badge {
  display: inline-block;
  background: var(--voice-soft);
  color: var(--voice);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.promo-right .dotted-link {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--brand);
}

.manual-add {
  display: block;
  width: 100%;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  margin-bottom: 10px;
}

.prospectus-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.prospectus-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 10px 0 4px;
}

.prospectus-form input[type="text"],
.prospectus-form textarea,
.prospectus-form input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.prospectus-form textarea {
  min-height: 70px;
  resize: vertical;
}
