/* LamaRadar — feuille de style unique.
   Univers lumineux crème/camel, marron pour le texte, orange réservé aux accents.
   Les animations 2.5D de la mascotte sont pilotées par src/mascot.js via des variables CSS. */

/* ---------- Jetons ---------- */
:root {
  --cream: #faf5ec;
  --cream-2: #f4ecdf;
  --sand: #ede2cf;
  --sand-2: #e3d3ba;
  --paper: #fffdf9;
  --paper-2: #fcf7ef;
  --camel: #d8b68a;
  --camel-2: #c7a173;
  --camel-soft: #ebd6b7;
  --camel-soft-2: #e0c59e;
  --ink: #261e18;
  --ink-2: #382c23;
  --brown: #664935;
  --muted: #64564c;
  --line: #e6dac8;
  --line-2: #d6c3aa;
  --fire: #e86b20;
  --fire-ink: #9c410c;
  --fire-soft: #fde8d4;
  --cta-1: #f8ab5d;
  --cta-2: #eb8f3d;
  --cta-ink: #2e1a0b;
  --green: #20633f;
  --red: #8c2921;
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 30px;
  --shadow-s: 0 1px 3px rgba(60, 42, 28, 0.05), 0 6px 16px rgba(60, 42, 28, 0.06);
  --shadow: 0 2px 8px rgba(60, 42, 28, 0.06), 0 22px 50px rgba(60, 42, 28, 0.11);
  --shadow-l: 0 4px 14px rgba(60, 42, 28, 0.08), 0 32px 72px rgba(60, 42, 28, 0.14);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--camel-2) var(--cream);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; min-height: 44px; }
button:disabled { opacity: 0.6; cursor: wait; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--fire-ink);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--cream-2);
  padding: 1px 5px;
  border-radius: 6px;
}
.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
.noscript-note {
  display: block;
  text-align: center;
  background: var(--fire-soft);
  color: var(--ink-2);
  padding: 10px 16px;
  font-size: 13px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brown);
  margin-bottom: 14px;
}

/* ---------- Boutons ---------- */
.ghost-btn, .primary-btn, .secondary-btn, .offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-s);
  padding: 10px 16px;
  font-weight: 750;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ghost-btn {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  min-height: 44px;
}
.ghost-btn:hover {
  background: var(--paper);
  border-color: var(--camel-2);
}
.primary-btn, .offer-btn {
  border: 1px solid transparent;
  background: var(--camel-soft);
  color: var(--ink-2);
}
.primary-btn:hover, .offer-btn:hover {
  background: var(--camel-soft-2);
}
.secondary-btn {
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-2);
}
.secondary-btn:hover {
  background: var(--cream-2);
}
.orange-btn, .primary-btn.orange-btn {
  background: linear-gradient(180deg, var(--cta-1), var(--cta-2));
  color: var(--cta-ink);
  border-color: #dd8a43;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(204, 110, 40, 0.18);
}
.orange-btn:hover, .primary-btn.orange-btn:hover {
  background: linear-gradient(180deg, #f9b570, #ea9645);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--brown);
  font-weight: 750;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.danger-link {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 8px;
}
@media (hover: hover) {
  .primary-btn:hover, .offer-btn:hover, .secondary-btn:hover { transform: translateY(-1px); }
}

/* ---------- Bandeau et en-tête ---------- */
.announcement {
  background: var(--sand);
  color: var(--ink-2);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 245, 236, 0.90);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f1e2cc;
  box-shadow: inset 0 0 0 1px rgba(110, 82, 64, 0.08);
}
.brand-mark img {
  width: 30px;
  height: 30px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 26px;
  margin-right: auto;
}
.main-nav a {
  font-size: 15px;
  font-weight: 650;
  color: #4f443c;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover {
  color: var(--fire-ink);
  border-bottom-color: var(--camel);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-block: 64px 76px;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(44px, 4.9vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: wrap;
}
.hero h1 span { color: var(--fire-ink); }
.hero-text {
  max-width: 600px;
  font-size: 18px;
  color: var(--muted);
  margin: 22px 0 28px;
}
.lama-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  padding: 7px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-s);
  max-width: 640px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lama-search:focus-within {
  border-color: var(--camel-2);
  box-shadow: 0 0 0 4px rgba(217, 184, 143, 0.35), var(--shadow-s);
}
.lama-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 6px;
  font-size: 16px;
  color: var(--ink);
}
@supports selector(:has(*)) {
  .lama-search input:focus-visible { outline: none; }
  .lama-search:has(input:focus-visible) {
    outline: 3px solid var(--fire-ink);
    outline-offset: 3px;
  }
}
.lama-search input::placeholder { color: #857769; }
.search-icon {
  flex: none;
  margin-left: 10px;
  color: var(--brown);
}
.lama-search button {
  flex: none;
  border: 1px solid #dd8a43;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--cta-1), var(--cta-2));
  color: var(--cta-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.lama-search button:hover {
  background: linear-gradient(180deg, #f9b570, #ea9645);
}
.search-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 600px;
}
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.quick-tags button {
  border: 1px solid var(--line-2);
  background: rgba(255, 253, 248, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 38px;
  color: #4f443c;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.quick-tags button:hover {
  background: var(--paper);
  border-color: var(--camel-2);
  transform: translateY(-1px);
}

/* Scène de la mascotte */
.hero-card {
  position: relative;
  margin: 0;
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(110% 85% at 65% 15%, #fffbf2 0%, #f7ebda 45%, #ecd5b6 100%);
  border: 1px solid rgba(110, 82, 64, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(214, 184, 145, 0.25));
  pointer-events: none;
  z-index: -1;
}
.lr-mascot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(420px, 84%);
  height: auto;
  aspect-ratio: 400/440;
  transform: translateX(-50%);
  overflow: visible;
  display: block;
}
.fire-pill {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 253, 248, 0.95);
  color: var(--brown);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-s);
  border: 1px solid rgba(217, 184, 143, 0.4);
}
.radar-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fire);
}
.radar-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--fire);
  opacity: 0;
  animation: lr-ping 2.4s ease-out infinite;
}
.speech {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 5;
  max-width: min(240px, 46%);
  margin: 0;
  background: rgba(255, 253, 248, 0.96);
  padding: 13px 15px;
  border-radius: 18px 18px 4px 18px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.38;
  box-shadow: var(--shadow-s);
  border: 1px solid rgba(217, 184, 143, 0.4);
  text-wrap: balance;
}
.speech::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 0 0 0 3px;
  transform: skewY(-28deg) rotate(-8deg);
  z-index: -1;
  border-bottom: 1px solid rgba(217, 184, 143, 0.35);
  border-left: 1px solid rgba(217, 184, 143, 0.35);
}

/* Mascotte : transformations 2.5D calculées à partir des variables posées par mascot.js */
.lr-mascot * { transform-box: view-box; }
.lr-sweep {
  transform-origin: 200px 215px;
  animation: lr-sweep 8.5s linear infinite;
}
.hero-card.is-scanning .lr-sweep {
  animation-duration: 4.2s;
}
.lr-bust {
  animation: lr-breathe 5.5s ease-in-out infinite;
}
.lr-head {
  transform-origin: 200px 270px;
  transform: translate(calc(var(--lr-tx, 0) * 5px), calc(var(--lr-ty, 0) * 4px)) rotate(calc(var(--lr-tilt, 0) * 1deg + var(--lr-tx, 0) * 2.5deg));
}
.lr-ear-l {
  transform-origin: 154px 118px;
  transform: translateX(calc(var(--lr-tx, 0) * -3px)) rotate(calc(var(--lr-perk, 0) * 12deg + var(--lr-earl, 0) * 1deg));
}
.lr-ear-r {
  transform-origin: 246px 118px;
  transform: translateX(calc(var(--lr-tx, 0) * -3px)) rotate(calc(var(--lr-perk, 0) * -12deg - var(--lr-earr, 0) * 1deg));
}
.lr-tuft {
  transform: translate(calc(var(--lr-tx, 0) * 6px), calc(var(--lr-ty, 0) * 3px));
}
.lr-brows {
  transform: translate(calc(var(--lr-tx, 0) * 7px), calc(var(--lr-ty, 0) * 4px - var(--lr-perk, 0) * 6px));
}
.lr-eyes {
  transform: translate(calc(var(--lr-tx, 0) * 7px), calc(var(--lr-ty, 0) * 4px));
}
.lr-iris {
  transform: translate(calc(var(--lr-lx, 0) * 5.5px), calc(var(--lr-ly, 0) * 5.5px));
}
.lr-eye {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.09s ease;
}
.lr-mascot.is-blinking .lr-eye {
  transform: scaleY(0.08);
}
.lr-muzzle {
  transform: translate(calc(var(--lr-tx, 0) * 10px), calc(var(--lr-ty, 0) * 7px));
}
.lr-scarf {
  transform: translateX(calc(var(--lr-tx, 0) * 2.5px));
}
.is-paused .lr-sweep, .is-paused .lr-bust, .is-paused .radar-dot::after {
  animation-play-state: paused;
}
@keyframes lr-sweep { to { transform: rotate(360deg); } }
@keyframes lr-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes lr-ping { 0% { transform: scale(0.6); opacity: 0.7; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Engagements ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.6);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-block: 26px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-item svg {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 13px;
  background: #f3e4cf;
  color: var(--brown);
}
.trust-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-item strong {
  font-size: 15px;
  color: var(--ink);
}
.trust-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
main section[id] { scroll-margin-top: 84px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); }
.section-lead {
  margin: 10px 0 0;
  max-width: 560px;
  font-size: 15px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--line-2);
  background: rgba(255, 253, 248, 0.75);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #4f443c;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.filter:hover {
  border-color: var(--camel-2);
  background: var(--paper);
}
.filter.is-active {
  background: var(--camel-soft);
  border-color: var(--camel-2);
  color: var(--ink-2);
}
.feed-tools {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  padding-bottom: 26px;
}
.feed-tools label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.feed-tools input, .feed-tools select {
  width: 100%;
  min-height: 46px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  color: var(--ink);
}
.feed-tools input::placeholder { color: #857769; }
#retryDeals, #loadMore { margin-top: 20px; }

/* États de chargement et vides */
.status-card, .empty-card {
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 120px;
}
.status-card p, .empty-card p {
  margin: 4px 0 0;
  color: var(--muted);
}
.status-lama, .empty-card > span {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e4cf;
  font-size: 30px;
}
.status-lama img, .empty-card > span img {
  width: 42px;
  height: 42px;
  display: block;
}
.status-lama::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--camel);
  opacity: 0;
  animation: lr-ping 2s ease-out infinite;
}
.empty-card .secondary-btn {
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- Cartes des bons plans ---------- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.deal-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--camel-2);
  }
}
.deal-visual {
  height: 130px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: repeating-radial-gradient(circle at 50% 125%, transparent 0 24px, rgba(201, 167, 127, 0.28) 25px 26px), linear-gradient(180deg, #fbf2e5, #eddac1);
}
.deal-visual:has(img) {
  height: 190px;
  background: #fff;
}
.deal-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.deal-fallback {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 6px rgba(255, 253, 248, 0.65), var(--shadow-s);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: var(--brown);
}
.deal-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.deal-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.merchant { color: var(--brown); }
.deal-card h3 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.deal-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--camel-2);
  text-underline-offset: 3px;
}
.deal-note {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}
.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: auto 0 0;
  padding-top: 16px;
}
.price-row strong {
  font-size: 28px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.price-row s {
  font-size: 13px;
  color: #6f6257;
  font-variant-numeric: tabular-nums;
}
.price-row > span {
  font-size: 12px;
  font-weight: 800;
  background: var(--fire-soft);
  color: var(--fire-ink);
  padding: 3px 8px;
  border-radius: 999px;
}
.deal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--brown);
}
.deal-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.deal-facts svg {
  flex: none;
  color: var(--camel-2);
}
.deal-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--cream-2);
  padding: 9px 12px;
  border-radius: var(--radius-s);
  font-size: 12px;
  color: #4f443c;
  margin-top: 14px;
}
.score-fire {
  font-weight: 850;
  color: var(--fire-ink);
}
.score-warm {
  font-weight: 850;
  color: var(--brown);
}
.promo-code {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbf2e5;
  border: 1.5px dashed var(--camel-2);
  border-radius: var(--radius-s);
  padding: 2px 4px 2px 12px;
  font-size: 12px;
  color: var(--brown);
  margin-top: 14px;
}
.promo-code strong {
  margin-right: auto;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.promo-code button {
  border: 0;
  background: transparent;
  font-weight: 800;
  color: var(--ink-2);
  padding: 0 10px;
  border-radius: 9px;
  transition: background-color 0.15s ease;
}
.promo-code button:hover {
  background: var(--paper);
}
.deal-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
}
.vote-btn, .favorite-btn {
  width: 44px;
  min-width: 44px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  border-radius: var(--radius-s);
  font-size: 18px;
  color: var(--brown);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.vote-btn:hover, .favorite-btn:hover {
  border-color: var(--camel-2);
}
.vote-btn.is-active, .favorite-btn.is-active {
  background: #f6e6d2;
  border-color: var(--camel-2);
  color: var(--fire-ink);
}
.offer-btn {
  flex: 1;
  padding: 11px;
}

/* ---------- Catégories ---------- */
.categories-section {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.category-card {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.category-card:hover {
  border-color: var(--camel-2);
  box-shadow: var(--shadow-s);
}
@media (hover: hover) {
  .category-card:hover { transform: translateY(-2px); }
}
.category-card .cat-icon {
  grid-row: 1/3;
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #f3e4cf;
  border-radius: 14px;
}
.category-card strong {
  font-size: 16px;
  line-height: 1.25;
}
.category-card small {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Assistant ---------- */
.assistant-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #f7ecdc, #efdfc7);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 56px;
  overflow: hidden;
  position: relative;
}
.assistant-section::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 46px, rgba(201, 167, 127, 0.22) 47px 48px);
  pointer-events: none;
}
.assistant-copy { position: relative; }
.assistant-copy h2 { font-size: clamp(34px, 3.6vw, 46px); }
.assistant-copy p {
  color: var(--muted);
  max-width: 620px;
  margin: 16px 0;
}
.assistant-copy ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 15px;
}
.assistant-copy li {
  position: relative;
  padding-left: 26px;
}
.assistant-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--camel-2);
  background: radial-gradient(circle, var(--fire) 0 2.5px, transparent 3px);
}
.assistant-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-s);
}
.demo-label {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--cream-2);
  padding: 4px 10px;
  border-radius: 999px;
}
.chat-bubble {
  max-width: 90%;
  padding: 13px 16px;
  border-radius: 18px;
  font-size: 15px;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--ink-2);
  color: #fffaf2;
  border-bottom-right-radius: 6px;
}
.chat-bubble.lama {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.chat-bubble.lama img {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 50%;
  background: #f3e4cf;
}
.chat-bubble strong { font-size: 15px; }
.chat-bubble p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Principes ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 0;
}
.principle-card {
  border-top: 2px solid var(--camel);
  padding-top: 20px;
}
.principle-card > span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--fire-ink);
}
.principle-card h3 {
  font-size: 20px;
  margin: 8px 0;
}
.principle-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Pied de page ---------- */
footer {
  background: #f1e6d6;
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-grid strong { font-size: 14px; }
.footer-grid a, .footer-grid span, .footer-grid p {
  font-size: 14px;
  color: #5a4e45;
  margin: 0;
}
.footer-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-brand { margin-bottom: 4px; }
.footer-grid .footer-brand {
  font-size: 20px;
  color: var(--ink);
}
.footer-bottom {
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
  margin-top: 32px;
  font-size: 13px;
  color: #5d5149;
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}
.legal-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Bouton flottant ---------- */
.floating-lama {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  box-shadow: 0 10px 30px rgba(74, 52, 36, 0.18);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.2s ease;
}
.floating-lama:hover {
  box-shadow: 0 14px 36px rgba(74, 52, 36, 0.24);
}
.floating-head {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e4cf;
  transition: transform 0.25s ease;
}
.floating-head svg {
  width: 36px;
  height: 36px;
  display: block;
  overflow: visible;
}
@media (hover: hover) {
  .floating-lama:hover .floating-head { transform: rotate(-8deg); }
}
.floating-lama b { font-size: 14px; }
.lr-mini-iris {
  transform: translate(calc(var(--lr-mini-x, 0) * 7px), calc(var(--lr-mini-y, 0) * 8px));
}
/* Sur l’accueil, le bouton n’apparaît qu’une fois la recherche du haut dépassée */
html:not(.lr-hero-out):has(.hero) .floating-lama {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
}

/* ---------- Assistant (dialogue) ---------- */
.assistant-drawer {
  position: fixed;
  z-index: 40;
  inset: auto 14px 14px auto;
  margin: 0 0 0 auto;
  padding: 0;
  width: min(440px, calc(100% - 28px));
  height: min(700px, calc(100dvh - 28px));
  max-height: calc(100dvh - 28px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(52, 36, 26, 0.24);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.assistant-drawer:not([open]) { display: none; }
.assistant-drawer.is-open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.assistant-drawer::backdrop { background: rgba(48, 39, 30, 0.32); }
.drawer-backdrop { display: none !important; }
.drawer-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf3e6, var(--paper));
}
.drawer-head > div {
  display: flex;
  gap: 11px;
  align-items: center;
}
.drawer-head > div > span {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e4cf;
}
.drawer-head > div > span img {
  width: 36px;
  height: 36px;
  display: block;
}
.drawer-head strong, .drawer-head small { display: block; }
.drawer-head strong { font-size: 16px; }
.drawer-head small { font-size: 12px; color: var(--muted); }
.drawer-head button {
  flex: none;
  border: 0;
  background: var(--cream-2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--ink-2);
}
.drawer-body {
  flex: 1;
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
}
.drawer-message {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  max-width: 94%;
}
.lama-message {
  background: #f3e7d7;
  color: var(--ink-2);
  border-bottom-left-radius: 6px;
}
.system-message {
  background: var(--paper-2);
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 12px;
}
.user-message {
  background: var(--ink-2);
  color: #fffaf2;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.assistant-result {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.assistant-result strong, .assistant-result span { display: block; }
.assistant-result strong { font-size: 14px; }
.assistant-result span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.assistant-result a {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--fire-ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drawer-form {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.drawer-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: var(--radius-s);
  padding: 11px 12px;
}
.drawer-form input:focus {
  border-color: var(--camel-2);
  box-shadow: 0 0 0 3px rgba(217, 184, 143, 0.35);
}
.drawer-form button {
  border: 1px solid #dd8a43;
  background: linear-gradient(180deg, var(--cta-1), var(--cta-2));
  color: var(--cta-ink);
  border-radius: var(--radius-s);
  padding: 0 16px;
  font-weight: 800;
}

/* ---------- Dialogues ---------- */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(45, 34, 28, 0.4);
  backdrop-filter: blur(3px);
}
.modal-shell {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(52, 36, 26, 0.25);
  padding: 0;
  overscroll-behavior: contain;
}
.wide-modal { width: min(780px, calc(100vw - 24px)); }
.admin-modal-shell { width: min(960px, calc(100vw - 24px)); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
  z-index: 2;
}
.modal-head > div {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.modal-head strong, .modal-head small { display: block; }
.modal-head strong {
  font-size: 16px;
  line-height: 1.3;
}
.modal-head small {
  font-size: 12px;
  color: var(--muted);
}
.modal-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e4cf;
  font-size: 21px;
}
.modal-icon img {
  width: 32px;
  height: 32px;
  display: block;
}
.modal-close {
  flex-shrink: 0;
  border: 0;
  background: var(--cream-2);
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--ink-2);
}
.modal-close:hover { background: var(--sand); }
.modal-body {
  padding: 20px;
  overflow-wrap: anywhere;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}
.modal-action {
  width: 100%;
  margin-top: 3px;
}

/* Formulaires */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--ink);
}
.field span {
  font-size: 13px;
  font-weight: 750;
  color: #4f443c;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--camel-2);
  box-shadow: 0 0 0 3px rgba(217, 184, 143, 0.35);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.form-grid .field { margin-bottom: 14px; }
.full { grid-column: 1/-1; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #4f443c;
  margin: 7px 0 15px;
}
.check-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brown);
}
.check-row a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}
.error-text { color: var(--red) !important; }
.success-text { color: var(--green) !important; }

/* Compte */
.signup-confirmation { padding: 6px 0; }
.signup-confirmation-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 20px; background: var(--cream-2); color: var(--ink); font-size: 34px; }
.signup-confirmation h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.2; }
.signup-confirmation p { line-height: 1.6; }
.signup-confirmation-actions { display: grid; gap: 12px; margin-top: 24px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-2);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.auth-tab {
  border: 0;
  background: transparent;
  padding: 9px;
  border-radius: 10px;
  font-weight: 750;
  color: #5a4e45;
}
.auth-tab.is-active {
  background: #fff;
  color: var(--ink-2);
  box-shadow: 0 3px 12px rgba(50, 35, 25, 0.07);
}
.account-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 0;
}
.account-panel span {
  font-size: 13px;
  color: var(--muted);
}
.account-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e4cf;
}
.account-avatar img {
  width: 56px;
  height: 56px;
  display: block;
}
.account-name-field {
  width: min(100%, 320px);
  margin-top: 10px;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

/* ---------- Fiche d’un bon plan ---------- */
.detail-visual {
  display: grid;
  place-items: center;
  margin: 20px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail-visual img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}
.editorial { max-width: 980px; }
.editorial h1 { max-width: 850px; font-size: clamp(30px, 5vw, 54px); line-height: 1.12; }
.editorial-cover { margin: 26px 0; }
.editorial-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.editorial-cover figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.editorial .legal-copy { max-width: 780px; }
.editorial-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.editorial-callout { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.detail-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
}
.detail-price {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-align: right;
  color: var(--ink);
}
.detail-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  text-align: right;
  margin-top: 4px;
}
.detail-description {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 0;
}
.detail-top .deal-meta span + span::before {
  content: "·";
  margin-right: 7px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.detail-actions a, .detail-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-s);
  padding: 10px 15px;
  font-weight: 750;
}
.detail-actions a {
  background: var(--ink-2);
  color: #fffaf2;
}
.detail-actions a:hover { background: #2c231d; }
.detail-actions button {
  background: var(--cream-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.detail-actions button:hover { background: var(--sand); }
.affiliation-note {
  font-size: 13px;
  color: var(--muted);
  background: var(--paper-2);
  border-left: 3px solid var(--camel);
  padding: 8px 12px;
  border-radius: 0 10px 10px 0;
}
.legal-copy a, .affiliation-note a {
  color: var(--fire-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.price-history {
  margin: 24px 0;
  padding: 20px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-history h2, .comments-wrap h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
.price-history > p { font-size: 14px; }
.table-scroll { overflow: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
td, th {
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
caption {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.comments-wrap {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
#commentsList { min-height: 100px; }
.comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.comment:last-child { border-bottom: 0; }
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.comment-head strong { color: var(--ink-2); }
.comment p {
  margin: 5px 0 0;
  font-size: 14px;
}
.detail-description, .comment p, .admin-item p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.comment-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  background: #fff;
}
.comment-form button {
  border: 0;
  background: var(--ink-2);
  color: #fffaf2;
  border-radius: var(--radius-s);
  padding: 0 16px;
  font-weight: 750;
}
#dealPage > nav {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
#dealPage > nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Administration ---------- */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.admin-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.admin-section:first-of-type { border-top: 0; }
.admin-section h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.admin-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.admin-item:last-child { border-bottom: 0; }
.admin-item p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--muted);
}
.admin-item a {
  font-size: 13px;
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-actions button {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
}
.admin-actions .danger-small {
  color: var(--red);
  background: #fff5f3;
}

/* ---------- Notifications ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 80;
  width: max-content;
  max-width: calc(100vw - 24px);
  transform: translate(-50%, 20px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 11px 16px;
  border-radius: var(--radius-s);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Pages secondaires ---------- */
.legal-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 28px;
}
.legal-copy { max-width: 780px; }
.legal-copy h2 {
  font-size: 24px;
  margin: 32px 0 12px;
}
.legal-copy p, .legal-copy li {
  font-size: 16px;
  line-height: 1.75;
}
.owner-setup-card {
  max-width: 620px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin: 30px auto;
}
.seo-title {
  font-size: clamp(38px, 6vw, 62px);
  margin: 0 0 15px;
}
.seo-lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 22px;
}
.lost-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px;
  box-shadow: var(--shadow-s);
}
.lost-card > img {
  width: 120px;
  height: 120px;
  padding: 14px;
  border-radius: 50%;
  background: #f3e4cf;
}
.lost-card .legal-title { margin-bottom: 10px; }
.lost-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- Écrans intermédiaires ---------- */
@media (max-width: 1100px) {
  .hero { gap: 40px; }
  .main-nav { gap: 20px; }
  .header-row { gap: 24px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .lr-mascot {
    left: auto;
    right: -10px;
    width: 80%;
    transform: none;
  }
  .speech {
    top: 72px;
    right: auto;
    left: 22px;
    max-width: 46%;
    font-size: 14px;
    border-radius: 18px 18px 6px 18px;
  }
  .speech::after {
    left: auto;
    right: 14px;
    transform: skewY(28deg) rotate(8deg);
    border-radius: 0 0 4px 0;
  }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-row { gap: 12px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 44px 56px;
  }
  .hero-copy { max-width: 720px; }
  .hero-card { min-height: 480px; }
  .lr-mascot {
    width: min(390px, 72%);
    left: 50%;
    transform: translateX(-50%);
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .deal-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .assistant-section {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 32px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .section { padding-block: 68px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .announcement {
    font-size: 12px;
    padding: 7px 12px;
  }
  .header-row {
    min-height: 64px;
    gap: 8px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .brand { font-size: 19px; gap: 8px; }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .brand-mark img { width: 27px; height: 27px; }
  .header-actions { gap: 6px; }
  .header-actions .ghost-btn {
    padding: 9px 12px;
    font-size: 13px;
  }
  .header-actions :is(#accountButton, #adminButton) {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    line-height: 24px;
  }
  .header-actions #adminButton { font-size: 12px; }
  .site-header .primary-btn {
    font-size: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    gap: 0;
  }
  .site-header .primary-btn::after {
    content: "+";
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
  }
  .hero {
    padding-block: 32px 44px;
    gap: 28px;
  }
  .hero h1 {
    font-size: clamp(32px, 9.6vw, 42px);
    line-height: 1.02;
  }
  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .hero-text {
    font-size: 16px;
    margin: 16px 0 22px;
  }
  .lama-search {
    display: grid;
    grid-template-columns: 30px 1fr;
    padding: 8px;
    border-radius: 18px;
  }
  .lama-search input { padding: 10px 4px; }
  .search-icon { margin-left: 6px; }
  .lama-search button {
    grid-column: 1/-1;
    margin-top: 4px;
    padding: 13px 18px;
  }
  .quick-tags { display: none; }
  .hero-card {
    min-height: 320px;
    border-radius: 28px;
  }
  .lr-mascot {
    left: auto;
    right: -12px;
    width: min(230px, 62%);
    transform: none;
  }
  .speech {
    top: 66px;
    right: auto;
    left: 16px;
    max-width: min(190px, 52%);
    font-size: 13px;
    padding: 11px 13px;
    border-radius: 16px 16px 6px 16px;
  }
  .speech::after {
    left: auto;
    right: 12px;
    transform: skewY(28deg) rotate(8deg);
    border-radius: 0 0 4px 0;
  }
  .fire-pill {
    left: 16px;
    top: 16px;
    font-size: 10px;
    padding: 7px 11px 7px 9px;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
    padding-block: 22px;
  }
  .trust-item {
    flex-direction: column;
    gap: 8px;
  }
  .trust-item svg {
    width: 38px;
    height: 38px;
    padding: 8px;
  }
  .trust-item strong { font-size: 14px; }
  .section { padding-block: 52px; }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }
  .section-head h2 { font-size: 30px; }
  .filters { gap: 6px; }
  .filter {
    padding: 7px 12px;
    font-size: 13px;
  }
  .feed-tools {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .feed-tools label:first-child { grid-column: 1/-1; }
  .deal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .deal-visual { height: 104px; }
  .deal-visual:has(img) { height: 180px; }
  .deal-fallback {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .assistant-section {
    padding: 26px 20px;
    border-radius: 24px;
    gap: 24px;
  }
  .assistant-section::before {
    right: -200px;
    top: -200px;
  }
  .assistant-copy ul { font-size: 14px; }
  .assistant-demo { padding: 16px; }
  .chat-bubble { font-size: 14px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .floating-lama {
    right: 14px;
    bottom: 14px;
    padding: 4px;
  }
  .floating-lama b { display: none; }
  .empty-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .empty-card .secondary-btn { margin-left: 0; }
  .status-card, .empty-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .detail-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .detail-price, .detail-old { text-align: left; }
  .detail-actions a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .comment-form { flex-wrap: wrap; }
  .comment-form input { min-width: 120px; }
  .assistant-drawer {
    inset: auto 8px 8px auto;
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .drawer-form input { width: 100%; }
  .toast { bottom: 78px; }
  .admin-item { flex-direction: column; }
  .admin-actions { justify-content: flex-start; }
  .account-actions {
    flex-direction: column;
    width: 100%;
  }
  .account-actions .secondary-btn { width: 100%; }
  .owner-setup-card { padding: 22px; }
  .admin-modal-shell {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }
  .legal-copy h2 { font-size: 22px; }
  .lost-card {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 16px;
    text-align: left;
  }
  .lost-card > img {
    width: 88px;
    height: 88px;
    padding: 10px;
  }
}
@media (max-width: 374px) {
  .brand-name { font-size: 17px; }
  .header-actions :is(#accountButton, #adminButton) {
    max-width: 112px;
    padding-inline: 10px;
  }
  .speech {
    max-width: 52%;
    font-size: 13px;
  }
  .lr-mascot {
    right: -16px;
    width: min(214px, 62%);
  }
  .footer-grid { grid-template-columns: 1fr; }
}

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

/* Guides : contenu statique, photos créditées et illustrations identifiées. */
.guide-header nav { display: flex; flex-wrap: wrap; gap: 12px 22px; font-weight: 650; }
.guide-header nav a { text-decoration: none; }
.guide-intro { max-width: 850px; margin-bottom: 30px; }
.guide-intro h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.06; margin: 18px 0; letter-spacing: -.035em; }
.guide-intro h1 span { color: var(--fire-ink); }
.guide-lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.6; max-width: 780px; }
.guide-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 36px; }
.guide-filters a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--paper); font-weight: 650; font-size: 14px; }
.guide-filters a:hover { border-color: var(--fire); }
.guide-brand-section { margin: 38px 0 64px; scroll-margin-top: 100px; }
.guide-brand-section > h2, .related-guides > h2 { margin-bottom: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-card-image { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.guide-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-card-image > span { position: absolute; bottom: 10px; left: 12px; background: #fff9f0; color: #5b3c22; padding: 3px 8px; font-size: 11px; font-weight: 650; border-radius: 6px; }
.guide-card-copy { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.guide-card h3 { font-size: 20px; line-height: 1.3; margin: 6px 0 10px; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; }
.guide-card-copy > p:not(.eyebrow) { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0 0 16px; }
.guide-card-copy > .form-note { margin-top: auto; }
.guide-card .eyebrow { margin: 0; font-size: 11px; }
.guide-breadcrumb { margin-bottom: 24px; font-size: 14px; overflow-wrap: anywhere; }
.editorial section, .partner-list { scroll-margin-top: 110px; }
.guide-table-wrap { max-width: 100%; overflow-x: auto; margin: 22px 0 30px; border: 1px solid var(--line); border-radius: 14px; }
.guide-table { width: 100%; min-width: 500px; border-collapse: collapse; text-align: left; font-size: 14px; }
.guide-table caption { padding: 14px 16px; font-weight: 700; text-align: left; background: var(--paper); }
.guide-table th, .guide-table td { padding: 13px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.guide-table thead th { background: #f4eadc; color: #4b311f; }
.guide-table tbody th { width: 30%; font-weight: 650; }
.guide-table time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.guide-buy { margin: 30px 0; }
.guide-buy h2 { margin-top: 0; }
.guide-buy > p > a { font-weight: 650; }
.related-guides { margin: 48px 0 30px; }
.related-guides .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.partner-list { padding-left: 22px; }
.partner-list li { margin: 12px 0; overflow-wrap: anywhere; }
.partner-code { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .guide-header { flex-wrap: wrap; gap: 12px; }
  .guide-header nav { gap: 16px; font-size: 13px; }
  .guide-grid, .related-guides .guide-grid { grid-template-columns: 1fr; }
  .guide-brand-section { margin-bottom: 40px; }
  .guide-card-copy { padding: 18px; }
  .guide-table th, .guide-table td { padding: 11px 12px; }
  .guide-intro h1 { font-size: 40px; }
  .editorial-nav { gap: 10px 18px; }
}
/* Guest proposals share the existing dialog layout and keep a prominent receipt. */
.guest-honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.submission-confirmation { text-align:center; padding-block:2.5rem; }
.submission-confirmation h2 { font-size:clamp(1.5rem,4vw,2rem); line-height:1.25; }
.confirmation-mark { display:inline-grid; place-items:center; width:3.5rem; height:3.5rem; border-radius:50%; background:#ede8d1; color:#3d512e; font-size:2rem; margin-bottom:1rem; }
.submission-confirmation .modal-actions { justify-content:center; flex-wrap:wrap; }
.admin-item a,.admin-item p { overflow-wrap:anywhere; }
.verified-codes-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:24px; margin-block:32px; }
.verified-code-card { padding:28px; border:1px solid var(--border); border-radius:24px; background:var(--white); overflow-wrap:anywhere; }
.verified-code-card h2 { margin-block:12px; font-size:1.5rem; }
.verified-code-card .promo-code { margin-block:18px; flex-wrap:wrap; }
.code-discovery { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.code-discovery h2 { font-size:clamp(1.4rem,3vw,2rem); max-width:700px; margin-block:12px; }
/* Original editorial images are labelled in cards and explained on the full page. */
.deal-visual { position: relative; }
.image-label { position: absolute; bottom: 10px; left: 10px; padding: 4px 8px; color: #3b241d; background: #fff7e9; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.detail-visual { margin: 0 0 20px; }
.detail-visual figcaption { padding: 9px 12px; }
