/* ============================================================
   Bianchi Dessert — jetons de design partagés (site + admin)
   ============================================================ */
:root {
  --ink: #14110e;          /* noir chaud du logo */
  --ink-2: #221d18;
  --gold: #c8a464;         /* or du logo */
  --gold-deep: #8f6e36;
  --gold-soft: #f0e4c8;
  --cream: #f5efe4;        /* fond de page */
  --paper: #ffffff;
  --text: #201a14;
  --muted: #7c7062;
  --line: #e6dccb;
  --good: #2f7d4f;
  --good-bg: #e6f3ea;
  --warn: #b8741a;
  --warn-bg: #fbeed7;
  --bad: #b23a3a;
  --bad-bg: #f9e3e3;
  --it-green: #009246;
  --it-red: #ce2b37;
  --whatsapp: #25d366;

  --display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(20, 17, 14, 0.10);
  --shadow-sm: 0 2px 8px rgba(20, 17, 14, 0.08);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; letter-spacing: .01em; line-height: 1;
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: var(--gold-soft); }
.btn-ink:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d4b378; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--paper); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #1fb85a; }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* Champs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--paper); font-size: 15px; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(200,164,100,.2); }
.field textarea { min-height: 80px; resize: vertical; }
.req { color: var(--bad); }

/* Pastilles de stock / promo */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; }
.pill-good { background: var(--good-bg); color: var(--good); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: #e9e4dc; color: #6b625a; }
.pill-gold { background: var(--gold); color: var(--ink); }
.pill-ink { background: var(--ink); color: var(--gold-soft); }
.pill-line { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--gold-soft); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 200; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); color: #fff; }

/* Tricolore fine (rappel du logo) */
.tricolore { height: 3px; background: linear-gradient(90deg, var(--it-green) 0 33.3%, #f4f4f4 33.3% 66.6%, var(--it-red) 66.6%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Multilingue ---------- */
.lang-switch { position: absolute; top: 12px; left: 14px; z-index: 2; }
.lang-switch select { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.08); border: 1px solid rgba(200,164,100,.4); color: #f6f1e8; border-radius: 999px; padding: 6px 26px 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c8a464' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.lang-switch select option { color: #201a14; }
html[dir="rtl"] body { font-family: "Tajawal", "Manrope", "Helvetica Neue", Arial, sans-serif; }
html[dir="rtl"] .lang-switch { left: auto; right: 14px; }
html[dir="rtl"] .lang-switch select { padding: 6px 12px 6px 26px; background-position: left 10px center; }
html[dir="rtl"] .hero-admin { right: auto; left: 14px; }
html[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-105%); box-shadow: 10px 0 40px rgba(0,0,0,.25); }
html[dir="rtl"] .drawer.open { transform: translateX(0); }
html[dir="rtl"] .annonce-track { animation-direction: reverse; }
html[dir="rtl"] .modal-close { right: auto; left: 12px; }
html[dir="rtl"] .price-old { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .line-price { text-align: left; }
html[dir="rtl"] .phone-row input { direction: ltr; text-align: right; }
html[dir="rtl"] .hero h1, html[dir="rtl"] footer .brand { letter-spacing: .06em; }
