/* Paisapp — feuille de style commune. Téléphone d'abord ; couleurs des drapeaux de la Colombie et d'Antioquia
   (03-cible.md §2 ter, 05-architecture.md §12). */

:root {
  --blue: #003893;
  --yellow: #fcd116;
  --red: #ce1126;
  --green: #05662f;
  --white: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --border: #d9dee4;
  --surface: #f4f6f9;
  --radius: 10px;
  --space: 1rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}

#app {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* largeur de lecture ; titre du site et mention de démonstration sur toute la largeur de la page */
#app > * { width: 100%; max-width: 72rem; margin-left: auto; margin-right: auto; box-sizing: border-box; }
#app > .site-title, #app > .demo-ribbon { max-width: none; }
/* lien d'évitement : hors de la vue jusqu'au focus, sans la largeur de la page */
#app > .skip-link { width: auto; max-width: none; margin: 0; }

a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3 { color: var(--blue); line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0 0 var(--space); }
h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--blue);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* Mention de démonstration : bande dans le flux de la page, au-dessus de l'en-tête (ne couvre jamais rien, A74). */
.demo-ribbon {
  margin: 0;
  padding: 0.35rem var(--space);
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  padding: 0.5rem var(--space);
}

.logo { display: block; flex: 0 1 auto; }
.logo img { display: block; width: 180px; height: auto; }

.langs { display: flex; gap: 0.35rem; flex: 0 0 auto; }
.langs button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--blue); color: var(--white); }

.main-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.35rem var(--space);
  background: var(--yellow);
  scrollbar-width: none;
}
.main-nav a {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.main-nav a[aria-current="page"] { background: var(--blue); color: var(--white); }

.degraded {
  margin: 0.5rem var(--space) 0;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--red);
  background: #fdecee;
  font-size: 0.9rem;
}

main { flex: 1 0 auto; padding: var(--space); }
main:focus { outline: none; }

.hero { padding: 1rem 0 0.5rem; }
.hero .tagline { color: var(--muted); margin: 0; }

.panel {
  margin: 1rem 0;
  padding: var(--space);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel h2 { margin-top: 0; }

.unavailable { color: var(--muted); font-style: italic; }
.notice {
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--yellow);
  background: #fffbe6;
}

.info-page { max-width: 44rem; }

.not-found { text-align: center; padding: 2rem 0; }

.site-footer {
  margin-top: 2rem;
  padding: var(--space);
  background: var(--blue);
  color: var(--white);
  font-size: 0.9rem;
}
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--yellow); font-size: 1rem; margin: 0 0 0.35rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.15rem 0; }
.footer-groups { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.slogans { margin: 1rem 0 0.25rem; opacity: 0.9; }
.call { margin: 0; font-weight: 700; color: var(--yellow); }

@media (min-width: 48rem) {
  h1 { font-size: 2rem; }
  .logo img { width: 240px; }
  .site-header { padding: 0.75rem var(--space); }
}

/* Recherche (R1) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.search-layout { display: grid; gap: var(--space); }

.search-form {
  padding: var(--space);
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
}
.type-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; margin: 0.75rem 0 0.5rem; border-bottom: 2px solid var(--border); }
.type-tabs a {
  display: flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: 0 0.25rem; font-weight: 700; text-decoration: none; color: var(--blue);
  border-bottom: 4px solid transparent; margin-bottom: -2px;
}
.type-tabs a[aria-current="page"] { border-bottom-color: var(--yellow); background: var(--surface); border-radius: 8px 8px 0 0; }
.badge.soon { background: var(--green); }
.period { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.period input { width: 100%; }
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.types button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.types button[aria-pressed="true"] { background: var(--yellow); }
.filters { display: grid; gap: 0.5rem; }
.filters label { display: grid; gap: 0.2rem; font-size: 0.9rem; font-weight: 600; }
.filters select, .filters input {
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; }
.view-toggle { display: flex; align-items: center; gap: 0.75rem; margin: 0; padding: 0; border: 0; }
.view-toggle legend { float: left; margin-right: 0.5rem; font-size: 0.9rem; }
.view-toggle label { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; }
.reset { color: var(--yellow); font-weight: 600; }

.results-count { font-weight: 600; color: var(--muted); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.card h3 { margin: 0.25rem 0 0; font-size: 1.05rem; }
.card p { margin: 0; }
.card-image { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; background: var(--surface); }
.card-product .card-image { aspect-ratio: 4 / 3; }
.card .where, .card .contact, .card .business { color: var(--muted); font-size: 0.9rem; }
.price del { color: var(--muted); }
.price .promo { color: var(--red); font-size: 1.1rem; }
.badge { display: inline-block; padding: 0 0.4rem; border-radius: 4px; background: var(--red); color: var(--white); font-size: 0.75rem; vertical-align: middle; }
.lang-mark { color: var(--muted); }
.button {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1rem 0; }
.pagination a, .pagination span {
  min-width: 2.5rem; min-height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.6rem; border-radius: 8px; border: 1px solid var(--border); text-decoration: none;
}
.pagination span[aria-current] { background: var(--blue); color: var(--white); border-color: var(--blue); }

.shortcuts h2 { font-size: 1rem; }
.category-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.category-links a {
  display: inline-block; padding: 0.4rem 0.75rem; border-radius: 999px;
  background: var(--blue); color: var(--white); text-decoration: none; font-weight: 600;
}
.category-links a[aria-current] { background: var(--yellow); color: var(--blue); }

.comunas { width: 100%; max-width: 20rem; height: auto; }
.comunas polygon { stroke: var(--white); stroke-width: 0.8; }
.comunas .zone-1 { fill: #fcd116; }
.comunas .zone-2 { fill: #05662f; }
.comunas .zone-3 { fill: #8e7cc3; }
.comunas .zone-4 { fill: #ce1126; }
.comunas .zone-5 { fill: #e8618c; }
.comunas .zone-6 { fill: #f08a24; }
.comunas text { font-size: 8px; font-weight: 700; fill: var(--white); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, 0.45); stroke-width: 1.5px; }
.comunas a:hover polygon, .comunas a:focus polygon, .comunas a[aria-current] polygon { fill: var(--blue); }

@media (min-width: 48rem) {
  .types { grid-template-columns: repeat(4, 1fr); }
  .filters { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
}
@media (min-width: 64rem) {
  .search-layout { grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; }
}

/* Vitrine */
.showcase-head { display: flex; gap: var(--space); align-items: center; }
.business-logo { width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); }
.showcase-head h1 { margin: 0; }
.showcase-head .summary { margin: 0.25rem 0 0; }
.showcase-head .size { margin: 0; color: var(--muted); font-size: 0.9rem; }
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; margin: 1rem 0; border-bottom: 2px solid var(--border); }
.tabs a { flex: 0 0 auto; padding: 0.6rem 0.9rem; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { border-bottom-color: var(--yellow); color: var(--blue); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 1rem; margin: 0 0 1rem; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.prose { white-space: pre-line; max-width: 44rem; }
.business-card { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.delivery { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.delivery li { display: grid; gap: 0.15rem; padding: 0.6rem 0.75rem; border-left: 4px solid var(--green); background: var(--surface); border-radius: 0 6px 6px 0; }
.delivery .amount { font-weight: 600; }
.delivery .terms { color: var(--muted); }

/* Carte (Leaflet) */
.map { height: 26rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); z-index: 0; }
.map-small { height: 16rem; margin: 0 0 1rem; }
.map-actions { margin: 0.5rem 0; }
.map-actions .button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.map-list { margin: 1rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
.popup-title { font-weight: 700; }
.leaflet-popup-content ul { margin: 0.35rem 0 0; padding-left: 1rem; }
.you-are-here { fill: var(--blue); fill-opacity: 0.85; stroke: var(--white); stroke-width: 3; }

/* Fiche d'un événement */
.event-page .when { margin: 0.25rem 0 0; font-weight: 600; }
.status { padding: 0.5rem 0.75rem; border-radius: 6px; font-weight: 600; }
.status.open { background: #e6f2eb; color: var(--green); }
.status.booking { background: var(--surface); color: var(--blue); }
.status.full { background: #fdecee; color: var(--red); }

/* Liste, fiche produit, partage */
.list-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem;
  padding: 0 0.75rem; border-radius: 999px; background: var(--yellow); color: var(--blue); font-weight: 700; text-decoration: none;
}
.list-link .count { min-width: 1.5rem; padding: 0 0.35rem; border-radius: 999px; background: var(--blue); color: var(--white); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1000; margin: 0; padding: 0.6rem 1rem; border-radius: 8px; background: var(--text); color: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.button.add, .button.share { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.button.share { background: var(--surface); border: 1px solid var(--border); }
.share-message { margin-left: 0.5rem; color: var(--green); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.list-group { margin: 1rem 0; padding: var(--space); border: 1px solid var(--border); border-radius: var(--radius); }
.list-group h2 { margin-top: 0; }
.list-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.list-line { display: grid; grid-template-columns: 96px 1fr; gap: 0.5rem 0.75rem; align-items: center; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.list-line img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; grid-row: span 3; }
.line-main { display: grid; gap: 0.25rem; }
.list-line .quantity { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.list-line .quantity input { width: 5.5rem; min-height: 2.75rem; font: inherit; padding: 0 0.5rem; border: 1px solid var(--border); border-radius: 8px; }
.list-line .option select { min-height: 2.5rem; font: inherit; border-radius: 8px; border: 1px solid var(--border); }
.list-line select[aria-invalid="true"] { border-color: var(--red); }
.line-total { font-weight: 700; }
.link-button { justify-self: start; border: 0; background: none; color: var(--red); font: inherit; text-decoration: underline; cursor: pointer; min-height: 2.5rem; }
.subtotal { font-size: 1.1rem; }
.free-delivery { padding: 0.5rem 0.75rem; border-left: 4px solid var(--yellow); background: #fffbe6; }
.free-delivery.reached { border-left-color: var(--green); background: #e6f2eb; }
.product-image { max-width: 100%; height: auto; border-radius: var(--radius); }
.breadcrumb { font-size: 0.9rem; }

/* Téléphone étroit : l'en-tête tient sur une ligne (logo réduit, « Mi lista » réduite au compteur, boutons de langue plus petits) */
@media (max-width: 30rem) {
  .site-header { gap: 0.5rem; padding: 0.5rem 0.75rem; }
  .logo img { width: 132px; }
  .langs { gap: 0.25rem; }
  .langs button { min-width: 2.5rem; min-height: 2.5rem; padding: 0; font-size: 0.85rem; }
  .list-link { padding: 0 0.5rem; }
  .list-link .list-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Commande et suivi */
.order-form { display: grid; gap: 1rem; max-width: 40rem; }
.order-form fieldset { margin: 0; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.order-form legend { font-weight: 700; color: var(--blue); padding: 0 0.25rem; }
.field { display: grid; gap: 0.25rem; margin: 0.25rem 0; font-weight: 600; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  min-height: 2.75rem; padding: 0.4rem 0.6rem; font: inherit; font-weight: 400; border: 1px solid var(--border); border-radius: 8px;
}
.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 400; }
.choice input:disabled + * , .choice:has(input:disabled) { color: var(--muted); }
.consent { display: block; font-weight: 400; }
.consent .field-error { display: block; margin-top: 0.25rem; }
.field-error { color: var(--red); font-weight: 600; font-size: 0.9rem; }
.form-error { color: var(--red); font-weight: 600; }
.order-lines { width: 100%; border-collapse: collapse; }
.order-lines th, .order-lines td { padding: 0.4rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.order-lines td:last-child, .order-lines th:last-child { text-align: right; }
.order-lines td:not(:first-child), .order-lines th:not(:first-child) { white-space: nowrap; }
.confirm-dialog { max-width: 26rem; border: 0; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.confirm-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.dialog-actions { display: flex; gap: 0.5rem; }
.button.secondary { background: var(--surface); border: 1px solid var(--border); }
.button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.success { padding: 0.75rem; border-left: 4px solid var(--green); background: #e6f2eb; font-weight: 600; }
.order-state { font-size: 1.1rem; }
.state-refused { color: var(--red); }
.state-accepted, .state-delivered { color: var(--green); }
.muted { color: var(--muted); }
.history { padding-left: 1.2rem; }
.seller { margin: 1rem 0; }
.seller summary { cursor: pointer; font-weight: 600; min-height: 2.5rem; }

/* Devise d'affichage (DC-16) : sélecteur sous le menu, valeur approchée « ~ » */
.currency-bar { display: flex; justify-content: flex-end; padding: 0.25rem var(--space); font-size: 0.9rem; }
.currency-bar label { display: flex; align-items: center; gap: 0.4rem; }
.currency-bar select { min-height: 2.25rem; font: inherit; border: 1px solid var(--border); border-radius: 8px; padding: 0 0.4rem; }
.approx { color: var(--muted); font-weight: 400; white-space: nowrap; }

/* Parcours de l'entreprise (lot 15) : étapes, images */
.steps { display: flex; gap: 0.5rem; margin: 0.75rem 0; }
.steps a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem;
  border: 2px solid var(--blue); border-radius: 999px; font-weight: 700; text-decoration: none;
}
.steps a[aria-current="step"] { background: var(--blue); color: var(--white); }
.image-field img { object-fit: contain; background: var(--white); border: 1px solid var(--border); border-radius: 8px; }
.lang-group { border: 0; padding: 0; margin: 0.5rem 0; }
.lang-group legend { font-weight: 600; margin-bottom: 0.25rem; }
.lang-field { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; align-items: start; margin: 0.25rem 0; }
.lang-field span { font-weight: 700; padding-top: 0.5rem; }
.lang-field textarea { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.gallery-edit { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.gallery-edit li { display: grid; gap: 0.25rem; justify-items: start; }
.gallery-edit img { object-fit: cover; border-radius: 8px; }
/* groupes de champs : pas de largeur minimale imposée par leur contenu (champs de date sur téléphone) */
.account-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0.5rem 0; }
.account-form fieldset > legend { font-weight: 600; padding: 0; }
.inline-fields > * { min-width: 0; }
.inline-fields input { width: 100%; min-width: 0; box-sizing: border-box; }
/* Agenda de l'entreprise (lot 19) : réservations en cartes ; champs côte à côte empilés sur téléphone */
.reservations { list-style: none; padding: 0; }
.reservation-row { border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.75rem; margin: 0.5rem 0; }
@media (max-width: 420px) { .inline-fields { grid-template-columns: 1fr; } }
/* champ piège (DC-11) : hors de la vue, sans display:none (certains robots l'évitent alors) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Hors connexion (lot 20) */
.offline { margin: 0; padding: 0.5rem var(--space); background: #4a4a4a; color: #fff; font-weight: 600; text-align: center; }
.online-note { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
a[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.pending { margin: 0; padding: 0.5rem var(--space); background: #fff3cd; color: #5c4400; font-weight: 600; text-align: center; }

/* Manager (lot 23) */
.manager-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.5rem 0; margin-bottom: var(--space); border-bottom: 1px solid var(--border); }
.manager-nav a[aria-current] { font-weight: 700; text-decoration: none; }
.manager-nav .muted { margin-left: auto; font-size: 0.9rem; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.manager-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.manager-table th, .manager-table td { border-bottom: 1px solid var(--border); padding: 0.4rem; text-align: left; vertical-align: top; }
.label-row { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.label-row .field { display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: 0.5rem; }
.permissions label { display: inline-block; margin-right: 1rem; }
.pre { white-space: pre-wrap; }
[data-settings-form] input[type="number"] { max-width: 10rem; }

/* Chat (lot 24) */
.chat-log { list-style: none; margin: 0 0 var(--space); padding: 0.5rem; max-height: 60vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.chat-message { margin: 0.4rem 0; padding: 0.5rem 0.75rem; border-radius: var(--radius); background: var(--white); max-width: 85%; overflow-wrap: anywhere; }
.chat-message p { margin: 0.2rem 0; }
.chat-message.operator { border-left: 4px solid var(--blue); }
.chat-message.visitor { margin-left: auto; border-right: 4px solid var(--yellow); }
.chat-message.system { max-width: none; background: transparent; color: var(--muted); font-style: italic; text-align: center; }
.chat-meta { font-size: 0.85rem; }
.counters { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; margin: 0 0 var(--space); }
.counters li { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.75rem; background: var(--surface); }
.counters strong { display: block; font-size: 1.5rem; color: var(--blue); }
.chat-modes .button { margin: 0 0.25rem 0.25rem 0; }

/* Suppression du compte (DC-31) */
.danger-zone { border: 1px solid var(--red); border-radius: var(--radius); padding: var(--space); margin-top: calc(2 * var(--space)); }
.danger-zone h2 { color: var(--red); }
.button.danger { background: var(--red); color: var(--white); border-color: var(--red); }
.manager-title { font-weight: 700; color: var(--blue); margin: 0 auto 0 0.5rem; }
.manager-header { flex-wrap: wrap; }
@media (max-width: 480px) {
  .manager-header .logo img { width: 150px; height: auto; }
  .manager-title { order: 3; flex-basis: 100%; margin: 0; }
}
.quote-mark { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* Envoi en cours (docs/10-design.md) : bouton désactivé, indicateur qui tourne */
button[aria-busy="true"] { cursor: progress; opacity: 0.8; }
button[aria-busy="true"]::after { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-left: 0.5em; vertical-align: -0.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-spin 0.8s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button[aria-busy="true"]::after { animation: none; border-right-color: currentColor; } }

/* En-tête : titre au-dessus, phrase au-dessous (remarques du 30/09) */
.site-title { margin: 0; padding: 0.4rem var(--space); background: var(--blue); color: var(--white); font-size: 1rem; text-align: center; line-height: 1.3; }
.site-tagline { margin: 0; padding: 0.25rem var(--space); color: var(--muted); font-size: 0.9rem; text-align: center; }
/* Menu qui défile : indication du côté où il reste des éléments (10-design.md) */
.main-nav-wrap { position: relative; }
.main-nav-wrap[data-more-right]::after, .main-nav-wrap[data-more-left]::before {
  position: absolute; top: 0; bottom: 0; width: 2.75rem; display: flex; align-items: center; pointer-events: none;
  color: var(--blue); font-size: 1.5rem; font-weight: 700;
}
.main-nav-wrap[data-more-right]::after { content: "›"; right: 0; justify-content: flex-end; padding-right: 0.4rem; background: linear-gradient(to right, transparent, var(--yellow) 55%); }
.main-nav-wrap[data-more-left]::before { content: "‹"; left: 0; padding-left: 0.4rem; background: linear-gradient(to left, transparent, var(--yellow) 55%); z-index: 1; }
/* Carte entière cliquable, actions secondaires au-dessus (10-design.md) */
.card { position: relative; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.card button, .card .business a, .card .contact a, .card .where a, .card .share-message, .card [data-share] { position: relative; z-index: 1; }
.card > [data-product-card] { display: flex; flex-direction: column; gap: 0.25rem; }
.back-link { font-weight: 600; }
