/* Maya v2 — CSS Shop public
 * Design : chaleureux artisan (tons chauds, bois, terre, cafe)
 * Mobile-first, zero ressource externe
 * §8 : porte, pas scene — sobre, lisible, pas de decoration superflue
 * s012: fondations, s013: double porte, s014: formulaires, s015: panier
 * s016: checkout, s018: admin, s020: presence, s022: chat, s024: polish
 */

/* Police de marque — Chow Fun (Harold Lohner 2001, freeware) */
@font-face {
  font-family: 'Chow Fun';
  src: url('/static/fonts/ChowFun.ttf') format('truetype');
  font-display: swap;
}
/* Police corps de texte — Carlito (libre, Apache 2.0) */
@font-face {
  font-family: 'Carlito';
  src: url('/static/fonts/Carlito-Regular.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Carlito';
  src: url('/static/fonts/Carlito-Bold.ttf') format('truetype');
  font-weight: bold; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Carlito';
  src: url('/static/fonts/Carlito-Italic.ttf') format('truetype');
  font-weight: normal; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Carlito';
  src: url('/static/fonts/Carlito-BoldItalic.ttf') format('truetype');
  font-weight: bold; font-style: italic; font-display: swap;
}

body {
  font-family: 'Carlito', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.maya-brand {
  font-family: 'Chow Fun', 'Georgia', serif;
  font-weight: normal;
}

/* Polices manuscrites disponibles (pour bulles Apprenti ou autres touches perso) */
@font-face { font-family: 'Caveat'; src: url('/static/fonts/Caveat-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Cookie'; src: url('/static/fonts/Cookie-Regular.ttf') format('truetype'); font-display: swap; }

.font-caveat { font-family: 'Caveat', cursive; }
.font-cookie { font-family: 'Cookie', cursive; }

/* Bulles Apprenti en Cookie (calligraphique doux, accents complets) */
.chat-bubble.apprenti {
  font-family: 'Cookie', cursive;
  font-size: 1.35rem;
  line-height: 1.5;
}

/* ─── Palette ─────────────────────────────────────────────── */
:root {
  --bois:        #5C3D2E;
  --bois-clair:  #8B6548;
  --terre:       #A0755A;
  --cafe:        #3E2723;
  --cafe-clair:  #6D4C41;
  --creme:       #FFF8F0;
  --creme-fonce: #F5E6D3;
  --sable:       #E8D5C0;
  --texte:       #2C1810;
  --texte-doux:  #5D4037;
  --accent:      #B8860B;
  --accent-hover:#9A7209;
  --blanc:       #FFFFFF;
  --erreur:      #C62828;
  --succes:      #2E7D32;

  --font-body:   'Carlito', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-titre:  'Carlito', system-ui, -apple-system, sans-serif;

  --max-width:   1100px;
  --radius:      6px;
  --shadow:      0 1px 3px rgba(60, 30, 10, 0.12);
  --shadow-lg:   0 4px 12px rgba(60, 30, 10, 0.15);
}

/* ─── Reset minimal ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--texte);
  background: var(--creme);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--bois); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--bois);
  color: var(--creme);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--creme);
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 700;
}

.logo:hover { color: var(--sable); }
.logo-img { height: 36px; width: auto; border-radius: 50%; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--sable);
  font-size: 0.95rem;
  transition: color 0.15s;
}

.main-nav a:hover { color: var(--blanc); }
.nav-search { font-size: 1.1rem; }

/* ─── Menu déroulant Catalogue ────────────────────────────── */
.nav-categories { position: relative; }
.nav-cat-toggle {
  background: transparent;
  border: 0;
  color: var(--sable);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  transition: color 0.15s;
}
.nav-cat-toggle:hover,
.nav-cat-toggle[aria-expanded="true"] { color: var(--blanc); }
.nav-cat-caret { font-size: 0.7rem; margin-left: 0.15rem; }

.nav-cat-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 15rem;
  background: var(--cafe);
  border: 1px solid var(--bois);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 100;
}
.nav-cat-menu.is-open { display: block; }

.nav-cat-menu li { margin: 0; }
.nav-cat-menu a {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--sable);
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-cat-menu a:hover { background: rgba(255,255,255,0.06); color: var(--blanc); }
.nav-cat-count { opacity: 0.65; font-size: 0.8rem; }
.nav-cat-sep { height: 1px; background: var(--bois); margin: 0.3rem 0; }

/* ─── Content ─────────────────────────────────────────────── */
.content {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--cafe);
  color: var(--sable);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer-inner { max-width: 64rem; margin: 0 auto; }
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
}
.footer-text { flex: 1; min-width: 0; }
.footer-brand { margin: 0 0 0.15rem; }
.footer-brand .maya-brand { font-size: 1.75rem; color: var(--creme); line-height: 1.1; }
.footer-identity { color: var(--creme); font-size: 0.9rem; margin: 0 0 0.35rem; opacity: 0.95; }
.footer-links { font-size: 0.85rem; margin: 0 0 0.25rem; color: var(--sable); }
.footer-links a { color: var(--sable); }
.footer-links a:hover { color: var(--creme); }
.footer-legal { font-size: 0.78rem; opacity: 0.85; margin: 0; }
.footer-legal a { color: var(--sable); }
.footer-legal a:hover { color: var(--creme); }

.footer-apprenti-btn {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  background: transparent;
  color: var(--creme);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.footer-apprenti-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--creme);
}
.footer-apprenti-btn .maya-brand { font-size: 1.45rem; line-height: 1; }
.footer-apprenti-sub { font-size: 0.72rem; opacity: 0.85; letter-spacing: 0.02em; }

@media (max-width: 560px) {
  .footer-main { flex-direction: column; text-align: center; gap: 0.9rem; }
}

/* ─── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--texte-doux);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--bois-clair); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.3rem; opacity: 0.5; }

/* ─── Page titles ─────────────────────────────────────────── */
.page-title {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  color: var(--cafe);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--sable);
  padding-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  color: var(--bois);
  margin-bottom: 0.75rem;
}

/* ─── Categories grid (accueil shop) ──────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-card {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--terre);
}

.category-card h2 {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  color: var(--bois);
  margin-bottom: 0.35rem;
}

.category-card .count {
  font-size: 0.85rem;
  color: var(--texte-doux);
}

/* ─── Recherche points relais (checkout) ──────────────────── */
.pickup-transparency {
  background: #fff8e1;
  border-left: 3px solid #d4a017;
  padding: 0.6rem 0.8rem;
  margin: 0.8rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
}
.pickup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.6rem 0;
}
.pickup-fallback-link {
  font-size: 0.85rem;
  color: var(--texte-doux);
  text-decoration: underline;
}
.pickup-list {
  margin: 0.6rem 0;
}
.pickup-list-ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
}
.pickup-item {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--sable);
  cursor: pointer;
  transition: background 0.1s;
}
.pickup-item:last-child { border-bottom: none; }
.pickup-item:hover { background: var(--creme); }
.pickup-item.selected {
  background: #F1F8E9;
  border-left: 3px solid #689F38;
}
.pickup-addr {
  font-size: 0.82rem;
  color: var(--texte-doux);
}
.pickup-dist {
  font-size: 0.78rem;
  color: #689F38;
  font-weight: 600;
}
.pickup-help {
  margin-top: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: #F1F8E9;
  border-left: 3px solid #689F38;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--texte);
}
.pickup-help a {
  color: #33691E;
  text-decoration: underline;
}

/* ─── Sous-catégories (chips) ─────────────────────────────── */
.subcategories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem 0;
}
.subcategory-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--creme);
  border: 1px solid var(--bordure);
  color: var(--texte);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.subcategory-chip:hover {
  background: var(--creme-fonce);
}
.subcategory-count {
  font-size: 0.78rem;
  color: var(--texte-doux);
  background: var(--bg-soft, rgba(0,0,0,0.05));
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
}

/* ─── Product grid ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--terre);
}

.product-card-img {
  background: var(--creme-fonce);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terre);
  font-size: 2.5rem;
  overflow: hidden;
}
.product-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 0.75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-family: var(--font-titre);
  font-size: 1rem;
  color: var(--cafe);
  margin-bottom: 0.25rem;
}

.product-card-origin {
  font-size: 0.82rem;
  color: var(--texte-doux);
  margin-bottom: 0.5rem;
}

.product-card-price {
  margin-top: auto;
  font-weight: 700;
  color: var(--bois);
  font-size: 1.05rem;
}

.product-card-badge {
  display: inline-block;
  background: var(--creme-fonce);
  color: var(--bois-clair);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.product-card-badge.bio {
  background: #E8F5E9;
  color: var(--succes);
}

/* ─── Product detail ──────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-image {
  background: var(--creme-fonce);
  border-radius: var(--radius);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terre);
  font-size: 4rem;
  overflow: hidden;
}
.product-image-img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.product-info h1 {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  color: var(--cafe);
  margin-bottom: 0.5rem;
}

.product-price-main {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bois);
  margin-bottom: 1rem;
}

.product-meta {
  list-style: none;
  margin-bottom: 1rem;
}

.product-meta li {
  font-size: 0.9rem;
  color: var(--texte-doux);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--creme-fonce);
}

.product-meta li strong {
  color: var(--texte);
}

.product-description {
  color: var(--texte-doux);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Tea grammages table */
.tea-grammages {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.tea-grammages th {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 2px solid var(--sable);
  color: var(--bois);
  font-weight: 600;
}

.tea-grammages td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--creme-fonce);
}

/* ─── Search ──────────────────────────────────────────────── */
.search-form {
  margin-bottom: 1.5rem;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
}

.search-input-group input[type="text"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--blanc);
  color: var(--texte);
}

.search-input-group input[type="text"]:focus {
  outline: none;
  border-color: var(--bois-clair);
  box-shadow: 0 0 0 2px rgba(139, 101, 72, 0.2);
}

.search-input-group button {
  padding: 0.6rem 1.2rem;
  background: var(--bois);
  color: var(--creme);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

.search-input-group button:hover {
  background: var(--bois-clair);
}

.search-results-count {
  font-size: 0.9rem;
  color: var(--texte-doux);
  margin-bottom: 1rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--texte-doux);
}

.no-results p {
  margin-bottom: 0.5rem;
}

/* ─── Bio badge ───────────────────────────────────────────── */
.badge-bio {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge-bio.certified {
  background: #E8F5E9;
  color: var(--succes);
}

.badge-bio.repackaged {
  background: #FFF3E0;
  color: #E65100;
}

/* ─── Forms (s014) ────────────────────────────────────────── */
.account-form {
  max-width: 420px;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: 0.3rem;
}

.form-group label small {
  font-weight: 400;
  color: var(--texte-doux);
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--blanc);
  color: var(--texte);
}

.form-group input:focus {
  outline: none;
  border-color: var(--bois-clair);
  box-shadow: 0 0 0 2px rgba(139, 101, 72, 0.2);
}

.form-error {
  background: #FFEBEE;
  border: 1px solid #EF9A9A;
  color: var(--erreur);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--bois);
  color: var(--creme);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--bois-clair); }

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--creme-fonce);
  color: var(--texte);
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-secondary:hover { background: var(--sable); color: var(--texte); }

.btn-danger {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--blanc);
  color: var(--erreur);
  border: 1px solid var(--erreur);
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger:hover { background: #FFEBEE; }

.form-link {
  font-size: 0.9rem;
  color: var(--texte-doux);
}

.form-link a { text-decoration: underline; }

/* ─── Account page (s014) ─────────────────────────────────── */
.account-info {
  margin-bottom: 1.5rem;
}

.account-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form { display: inline; }

.order-card {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.order-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.order-date {
  font-size: 0.85rem;
  color: var(--texte-doux);
}

.order-total {
  font-weight: 700;
  color: var(--bois);
  margin-bottom: 0.5rem;
}

.order-lines {
  list-style: none;
  font-size: 0.85rem;
  color: var(--texte-doux);
}

.order-lines li {
  padding: 0.15rem 0;
}

/* ─── Chat (s022) ─────────────────────────────────────────── */
.chat-container {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.chat-messages {
  padding: 1rem;
  max-height: 450px;
  overflow-y: auto;
}

.chat-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.chat-bubble.visitor {
  background: var(--creme-fonce);
  margin-left: auto;
  text-align: right;
}

.chat-bubble.apprenti {
  background: #F1F8E9;
  border: 1px solid #C5E1A5;
}

.chat-bubble.laurent {
  background: #E3F2FD;
  border: 1px solid #90CAF9;
}

.apprenti-product-link {
  color: #33691E;
  text-decoration: underline;
  font-weight: 500;
}
.apprenti-product-link:hover {
  color: #1B5E20;
  text-decoration: none;
}

.chat-bubble.chat-typing {
  font-style: italic;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #689F38;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-role {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--bois);
  display: block;
  margin-bottom: 0.15rem;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--texte-doux);
  display: block;
  margin-top: 0.2rem;
  opacity: 0.7;
}

.chat-input-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--sable);
  background: var(--creme);
}

.chat-input-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.chat-tag {
  font-size: 0.78rem;
  color: var(--texte-doux);
  text-align: center;
  font-style: italic;
}

/* ─── Presence (s020) ─────────────────────────────────────── */
.presence-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--texte-doux);
  background: var(--creme-fonce);
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.presence-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.presence-available .presence-dot,
.presence-open .presence-dot { background: var(--succes); }
.presence-unavailable .presence-dot,
.presence-closed .presence-dot { background: var(--sable); }
.presence-override_closed .presence-dot { background: var(--erreur); }

.presence-available, .presence-open {
  background: #F1F8E9;
  border: 1px solid #C5E1A5;
}

.presence-unavailable, .presence-closed {
  background: var(--creme-fonce);
  border: 1px solid var(--sable);
}

.presence-override_closed {
  background: #FFF3E0;
  border: 1px solid #FFCC80;
}

.presence-contact {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--bois-clair);
}

/* ─── Contact + Messages (s020) ───────────────────────────── */
.form-hint {
  font-size: 0.82rem;
  color: var(--texte-doux);
  margin-bottom: 1rem;
}

.form-success {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  color: var(--succes);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.message-card {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.message-body {
  color: var(--texte);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
}

.message-reply {
  background: var(--creme-fonce);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.message-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.reply-form {
  display: flex;
  gap: 0.4rem;
  flex: 1;
  min-width: 200px;
}

.reply-form input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

/* ─── Admin (s018) ────────────────────────────────────────── */
.status-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.status-filters a {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--texte-doux);
  transition: all 0.15s;
}

.status-filters a.active,
.status-filters a:hover {
  background: var(--bois);
  color: var(--creme);
  border-color: var(--bois);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 2px solid var(--sable);
  color: var(--bois);
  font-weight: 600;
  font-size: 0.82rem;
}

.admin-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--creme-fonce);
}

.admin-table tr:hover td {
  background: var(--creme-fonce);
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending { background: #FFF3E0; color: #E65100; }
.status-confirmed { background: #E8F5E9; color: var(--succes); }
.status-ready_for_pickup { background: #E3F2FD; color: #1565C0; }
.status-shipped { background: #F3E5F5; color: #7B1FA2; }
.status-delivered { background: #E8F5E9; color: var(--succes); }
.status-cancelled { background: #FFEBEE; color: var(--erreur); }

.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pagination {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
}

.pagination a {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.pagination a.active {
  background: var(--bois);
  color: var(--creme);
  border-color: var(--bois);
}

/* ─── Checkout (s016) ─────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--creme-fonce);
  font-size: 0.9rem;
}

.radio-label {
  display: block;
  padding: 0.4rem 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input { margin-right: 0.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

.order-confirmation { margin-bottom: 2rem; }

.order-status-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.order-status-banner.pending { background: #FFF3E0; color: #E65100; }
.order-status-banner.confirmed { background: #E8F5E9; color: var(--succes); }
.order-status-banner.ready { background: #E3F2FD; color: #1565C0; }
.order-status-banner.shipped { background: #E8F5E9; color: var(--succes); }
.order-status-banner.delivered { background: #E8F5E9; color: var(--succes); }
.order-status-banner.cancelled { background: #FFEBEE; color: var(--erreur); }

.payment-options {
  margin-bottom: 1.5rem;
}

.payment-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.checkout-summary-col {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
  }
  .order-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Cart (s015) ─────────────────────────────────────────── */
.nav-cart {
  color: var(--sable);
  font-size: 1rem;
  position: relative;
  transition: color 0.15s;
}

.nav-cart:hover { color: var(--blanc); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--accent);
  color: var(--blanc);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-header-row {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 1fr 30px;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--sable);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bois);
}

.cart-line {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 1fr 30px;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--creme-fonce);
  align-items: center;
  font-size: 0.9rem;
}

.cart-line-name {
  font-weight: 600;
  color: var(--cafe);
}

.cart-line-opt {
  font-size: 0.78rem;
  color: var(--texte-doux);
  display: block;
}

.cart-line-preorder {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #8a5a1a;
}

.cart-line-price,
.cart-line-total {
  color: var(--texte-doux);
}

.cart-line-total {
  font-weight: 600;
  color: var(--bois);
}

.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  background: var(--blanc);
  color: var(--texte);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover { background: var(--creme-fonce); }

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.cart-line-remove {
  background: none;
  border: none;
  color: var(--texte-doux);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

.cart-line-remove:hover { color: var(--erreur); }

.cart-footer {
  padding: 1rem 0;
}

.cart-total-row {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 1.2rem;
  color: var(--cafe);
}

/* Add to cart */
.add-to-cart-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--creme-fonce);
}

.btn-add-cart { margin-right: 0.75rem; }
.btn-add-cart:disabled { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.4); }

.stock-badge {
  display: inline-block;
  margin: 0.75rem 0 0.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}
.stock-badge.stock-ok { background: #e7f3e5; color: #2e6b2a; }
.stock-badge.stock-on-demand { background: #fdf0d8; color: #8a5a10; }
.stock-badge.stock-out { background: #f7dadc; color: #8a2225; }

.add-cart-feedback {
  color: var(--succes);
  font-weight: 600;
  font-size: 0.9rem;
}

.grammage-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--blanc);
  color: var(--texte);
  margin-bottom: 0.75rem;
}

/* Cart responsive */
@media (max-width: 639px) {
  .cart-header-row { display: none; }
  .cart-line {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .cart-line-price { display: none; }
  .cart-col-price { display: none; }
}

/* ─── Mode indicator + account (header) ───────────────────── */
.mode-indicator {
  font-size: 1.1rem;
  cursor: default;
}

.nav-account {
  color: var(--sable);
  font-size: 0.88rem;
  transition: color 0.15s;
}

.nav-account:hover { color: var(--blanc); }

/* ─── Bienvenue (double porte s013) ──────────────────────── */
.bienvenue-body {
  background: var(--creme);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bienvenue-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.bienvenue-header {
  margin-bottom: 2rem;
}

.bienvenue-logo {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

.bienvenue-header h1 {
  font-family: var(--font-titre);
  font-size: 1.8rem;
  color: var(--cafe);
  margin-bottom: 0.5rem;
}

.bienvenue-intro {
  color: var(--texte-doux);
  font-size: 1rem;
  line-height: 1.6;
}

.bienvenue-doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.door {
  background: var(--blanc);
  border: 2px solid var(--sable);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  position: relative;
}

.door-libre {
  border-color: var(--succes);
}

.door-badge {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  background: var(--succes);
  color: var(--blanc);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.door-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.door h2 {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  color: var(--cafe);
  margin-bottom: 0.5rem;
}

.door p {
  font-size: 0.9rem;
  color: var(--texte-doux);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.door-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.door-btn-libre {
  background: var(--succes);
  color: var(--blanc);
}

.door-btn-libre:hover {
  background: #1B5E20;
}

.door-btn-classique {
  background: var(--bois);
  color: var(--creme);
}

.door-btn-classique:hover {
  background: var(--bois-clair);
}

.bienvenue-note {
  font-size: 0.82rem;
  color: var(--texte-doux);
  line-height: 1.5;
  opacity: 0.8;
}

/* ─── Mode libre notice ──────────────────────────────────── */
.mode-libre-notice {
  background: #F1F8E9;
  border: 1px solid #C5E1A5;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--texte-doux);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.mode-libre-notice .notice-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.mode-libre-notice a {
  color: var(--bois);
  text-decoration: underline;
}

/* ─── Mode classique bar ─────────────────────────────────── */
.mode-classique-bar {
  background: var(--creme-fonce);
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--texte-doux);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mode-classique-bar a {
  color: var(--bois-clair);
  font-size: 0.78rem;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (min-width: 640px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .bienvenue-doors {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .content {
    padding: 2rem 1.5rem;
  }
}

/* ─── Mobile nav (s024) ───────────────────────────────────── */
@media (max-width: 639px) {
  .main-nav {
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .main-nav a:not(.nav-search):not(.nav-cart):not(.nav-account) {
    display: none; /* Cacher les liens texte sur mobile, garder icones */
  }

  .nav-cat-toggle { font-size: 0.85rem; padding: 0.2rem 0.4rem; }
  .nav-cat-menu { min-width: 13rem; right: 0; left: auto; }

  .logo-text { font-size: 1.1rem; }

  .presence-strip {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  .presence-contact { display: none; }

  .bienvenue-header h1 { font-size: 1.4rem; }
  .door { padding: 1rem; }
}

/* ─── Footer nav (s024) ───────────────────────────────────── */
.footer-nav {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.footer-nav a {
  color: var(--sable);
}

.footer-nav a:hover { color: var(--creme); }

/* ─── Accessibility (s024 polish) ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Focus visible pour navigation clavier */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--bois);
  color: var(--creme);
  padding: 0.5rem 1rem;
  z-index: 200;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* Contraste minimum WCAG AA sur les liens doux */
.footer-legal { color: #B8A898; } /* Ratio 4.5:1 sur #3E2723 */

/* ─── Page d'accueil ──────────────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.home-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.home-title {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
}
.home-title .maya-brand { color: var(--cafe); }
.home-tagline {
  margin: 0.6rem 0 0.25rem;
  color: var(--texte-doux);
  font-size: 1.05rem;
}
.home-place {
  margin: 0;
  color: var(--bois);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.home-intro {
  max-width: 42rem;
  margin: 1rem auto 2rem;
  text-align: center;
  color: var(--texte);
  line-height: 1.6;
}
.home-intro p { margin: 0.6rem 0; }

.home-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto 3rem;
}
.home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.4rem 1rem;
  border: 1px solid var(--sable);
  border-radius: var(--radius);
  background: var(--creme);
  color: var(--texte);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.home-card:hover {
  border-color: var(--cafe);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 61, 46, 0.15);
}
.home-card-icon { font-size: 2rem; line-height: 1; }
.home-card-title { font-weight: 600; color: var(--cafe); font-size: 1.05rem; }
.home-card-sub { font-size: 0.85rem; color: var(--texte-doux); }

.home-section-title {
  text-align: center;
  color: var(--cafe);
  font-size: 1.3rem;
  margin: 0 0 1.2rem;
}

.home-hours {
  max-width: 36rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.hours-status { margin-bottom: 1rem; }
.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.hours-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
}
.hours-pill-open {
  background: #E8F5E9;
  color: #1B5E20;
  border-color: #A5D6A7;
}
.hours-pill-open .hours-dot {
  background: #2E7D32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}
.hours-pill-closed {
  background: var(--creme);
  color: var(--cafe);
  border-color: var(--sable);
}
.hours-pill-closed .hours-dot { background: var(--bois); }
.hours-pill-override_closed {
  background: #FFF3E0;
  color: #BF360C;
  border-color: #FFCC80;
}
.hours-pill-override_closed .hours-dot { background: #E64A19; }

.hours-table {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 1.2rem;
  border-collapse: collapse;
  text-align: left;
}
.hours-table th,
.hours-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--sable);
  font-weight: normal;
}
.hours-table th { color: var(--bois); width: 9rem; }
.hours-table td { color: var(--texte); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }
.hours-table tr.hours-today th,
.hours-table tr.hours-today td {
  background: var(--creme);
  font-weight: 600;
  color: var(--cafe);
}

.home-news {
  max-width: 46rem;
  margin: 0 auto 3rem;
}
.home-news-intro {
  text-align: center;
  color: var(--texte-doux);
  font-style: italic;
  margin-top: -0.8rem;
  margin-bottom: 1.5rem;
}
.home-news-item {
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--accent);
  background: var(--creme);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1rem;
}
.home-news-item header { margin-bottom: 0.5rem; }
.home-news-item time {
  display: block;
  font-size: 0.8rem;
  color: var(--texte-doux);
  letter-spacing: 0.02em;
}
.home-news-item h3 {
  margin: 0.1rem 0 0;
  font-size: 1.1rem;
  color: var(--cafe);
}
.home-news-body p { margin: 0.4rem 0; line-height: 1.55; }
.home-news-body a { color: var(--accent); }

.home-visit-note { color: var(--texte-doux); font-size: 0.9rem; margin-top: 1rem; line-height: 1.55; }

@media (max-width: 560px) {
  .home-title { font-size: 2rem; }
  .home-hero { padding: 1.8rem 1rem 1rem; }
}

/* ─── Pages légales ───────────────────────────────────────── */
.legal-page { max-width: 46rem; margin: 0 auto; }
.legal-updated { font-size: 0.85rem; color: var(--texte-doux); margin-bottom: 1.5rem; }
.legal-body h2 { margin: 1.6rem 0 0.5rem; color: var(--cafe); font-size: 1.2rem; }
.legal-body h3 { margin: 1.1rem 0 0.4rem; color: var(--bois); font-size: 1.02rem; }
.legal-body p { margin: 0.5rem 0; line-height: 1.55; }
.legal-body ul { margin: 0.4rem 0 0.6rem 1.2rem; }
.legal-body li { margin: 0.2rem 0; line-height: 1.5; }
.legal-body a { color: var(--accent); text-decoration: underline; }

/* ─── Print (s024 polish) ─────────────────────────────────── */
@media print {
  .site-header, .site-footer, .search-form, .nav-search,
  .nav-cart, .mode-libre-notice, .mode-classique-bar,
  .presence-strip, .chat-input-form, .admin-actions,
  .btn-primary, .btn-secondary, .btn-danger { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  .content { max-width: 100%; padding: 0; }
  a { color: black; text-decoration: underline; }
  .product-detail { grid-template-columns: 1fr; }
  .order-confirmation { page-break-inside: avoid; }
}

/* ─── Composition / ingrédients + Préparation (s081d) ─── */
.product-ingredients,
.product-infusion {
  margin: 0.9rem 0;
  padding: 0.7rem 1rem;
  background: #fcfaf4;
  border: 1px solid #e6dfd0;
  border-radius: 5px;
}
.product-ingredients-title,
.product-infusion-title {
  font-weight: 600;
  color: #5a4220;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.product-ingredients p {
  margin: 0;
  font-size: 0.92rem;
  color: #3a2e1f;
  line-height: 1.5;
}
.product-infusion ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #3a2e1f;
  line-height: 1.6;
}
.product-infusion ul li { margin: 0.1rem 0; }

/* ─── Fiche technique café spécialité (s081b) ─── */
.coffee-fiche {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: #faf6ee;
  border: 1px solid #e6dfd0;
  border-radius: 6px;
}
.coffee-fiche-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #5a4220;
  margin-bottom: 0.4rem;
}
.coffee-fiche-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.8rem;
  margin: 0;
  font-size: 0.9rem;
}
.coffee-fiche-list dt {
  color: #8a7550;
  font-weight: 500;
  white-space: nowrap;
}
.coffee-fiche-list dd {
  color: #3a2e1f;
  margin: 0;
}

.coffee-aroma {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  background: #f5ede0;
  border-left: 3px solid #b89c63;
  border-radius: 0 4px 4px 0;
}
.coffee-aroma-title {
  font-weight: 600;
  color: #5a4220;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.coffee-aroma p {
  margin: 0;
  font-size: 0.95rem;
  color: #3a2e1f;
  font-style: italic;
}

.coffee-producer-story {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  background: #fbf7ef;
  border: 1px solid #e6dfd0;
  border-radius: 4px;
}
.coffee-producer-story summary {
  cursor: pointer;
  font-weight: 600;
  color: #5a4220;
  font-size: 0.92rem;
  user-select: none;
  list-style: none;
}
.coffee-producer-story summary::-webkit-details-marker { display: none; }
.coffee-producer-story summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.4em;
  color: #b89c63;
  transition: transform 0.15s;
}
.coffee-producer-story[open] summary::before { transform: rotate(90deg); }
.coffee-producer-story p {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: #4a3a24;
  line-height: 1.6;
}

/* ─── Prix transparent (s080b) — bloc dépliable fiche produit shop ─── */
/* Affiche uniquement les % (jamais les montants €), barres horizontales colorées,
   textes au "je" de Laurent, pas de comparaison, pas de négociation. */
.cost-breakdown {
  margin: 1.2rem 0;
  border: 1px solid #e6dfd0;
  border-radius: 6px;
  background: #fbf7ef;
  overflow: hidden;
}
.cost-breakdown summary {
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #5a4220;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.cost-breakdown summary::-webkit-details-marker { display: none; }
.cost-breakdown summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.4em;
  transition: transform 0.15s;
  color: #b89c63;
}
.cost-breakdown[open] summary::before { transform: rotate(90deg); }
.cost-breakdown summary:hover { background: #f3ebd9; }

.cost-breakdown .cb-intro {
  padding: 0.2rem 1rem 0.6rem;
  font-size: 0.87rem;
  color: #6a5a3d;
  line-height: 1.55;
}
.cost-breakdown .cb-intro p { margin: 0; }

.cost-breakdown .cb-lines {
  list-style: none;
  padding: 0 1rem;
  margin: 0;
}
.cost-breakdown .cb-line {
  padding: 0.7rem 0;
  border-top: 1px solid #eee3ca;
}
.cost-breakdown .cb-line:first-child { border-top: none; }

.cost-breakdown .cb-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.cost-breakdown .cb-icon { font-size: 1.1rem; }
.cost-breakdown .cb-label { font-weight: 600; color: #3a2e1f; flex: 1; }
.cost-breakdown .cb-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #5a4220;
  min-width: 3em;
  text-align: right;
}

.cost-breakdown .cb-bar-wrap {
  height: 6px;
  background: #f0e6d4;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.cost-breakdown .cb-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.25s ease;
}

.cost-breakdown .cb-desc {
  font-size: 0.83rem;
  color: #6a5a3d;
  line-height: 1.5;
  padding-left: 1.6rem;
}

.cost-breakdown .cb-footer {
  padding: 0.7rem 1rem 1rem;
  margin: 0;
  font-size: 0.8rem;
  color: #8a7550;
  font-style: italic;
  border-top: 1px solid #eee3ca;
}

@media (max-width: 600px) {
  .cost-breakdown .cb-desc { padding-left: 0; }
}
