/* ==========================================================================
   Rim Delice - identite visuelle (surcharge du theme OpenCart "basic")
   ========================================================================== */

:root {
  --rd-ink: #241610;
  --rd-ink-soft: #55443a;
  --rd-cream: #fbf6ec;
  --rd-sand: #f1e3cc;
  --rd-gold: #be8a4a;
  --rd-gold-l: #e3be8a;
  --rd-terra: #a9502c;
  --rd-line: rgba(36, 22, 16, 0.12);
  --rd-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --rd-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--rd-cream);
  color: var(--rd-ink);
  font-family: var(--rd-sans);
}

a { color: var(--rd-terra); }
a:hover { color: var(--rd-ink); }

/* ---------- bandeau annonce ---------- */
.rd-announce {
  background: var(--rd-terra);
  color: #fff8ec;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 14px;
}

/* ---------- barre haute ---------- */
#top {
  background: var(--rd-ink);
  color: #e9dcc8;
  padding: 9px 0;
  font-size: 13px;
}
#top a, #top .dropdown-toggle { color: #e9dcc8; }
#top a:hover { color: #fff; }
#top .dropdown-menu { background: #2e1d15; }
#top .dropdown-item { color: #e9dcc8; }
#top .dropdown-item:hover { background: #433025; color: #fff; }

/* ---------- entete ---------- */
header {
  background: var(--rd-cream);
  padding: 20px 0;
  border-bottom: 1px solid var(--rd-line);
}
#logo a.rd-wordmark {
  font-family: var(--rd-serif);
  font-size: 30px;
  letter-spacing: 0.01em;
  color: var(--rd-ink);
  text-decoration: none;
  line-height: 1;
}
#logo a.rd-wordmark span {
  display: block;
  font-family: var(--rd-sans);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rd-terra);
  margin-top: 7px;
}

/* ---------- boutons ---------- */
.btn-primary,
.rd-btn-primary {
  background: var(--rd-ink);
  border-color: var(--rd-ink);
  color: var(--rd-cream);
}
.btn-primary:hover,
.rd-btn-primary:hover {
  background: var(--rd-terra);
  border-color: var(--rd-terra);
  color: #fff;
}

/* ---------- page d'accueil ---------- */
.rd-home { background: var(--rd-cream); }
.rd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.rd-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 6%, #f7e8d0 0%, rgba(247, 232, 208, 0) 62%),
    radial-gradient(760px 640px at -6% 100%, #f0dcbe 0%, rgba(240, 220, 190, 0) 58%),
    linear-gradient(180deg, #fbf6ec 0%, #f7eedf 100%);
}
.rd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(36, 22, 16, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.rd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
  padding: 78px 22px 88px;
}
.rd-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rd-terra);
  font-weight: 700;
  margin: 0 0 16px;
}
.rd-title {
  font-family: var(--rd-serif);
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.rd-title em { font-style: italic; color: var(--rd-terra); }
.rd-lead {
  font-size: 18px;
  line-height: 1.65;
  max-width: 46ch;
  color: var(--rd-ink-soft);
  margin: 0;
}
.rd-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.rd-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.rd-btn:hover { transform: translateY(-2px); text-decoration: none; }
.rd-btn-ghost {
  border-color: rgba(36, 22, 16, 0.28);
  color: var(--rd-ink);
  background: transparent;
}
.rd-btn-ghost:hover { background: var(--rd-ink); color: var(--rd-cream); }
.rd-trust {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rd-ink-soft);
  flex-wrap: wrap;
}
.rd-trust li::before { content: "\2726"; color: var(--rd-gold); margin-right: 8px; }

.rd-hero-art { position: relative; display: flex; justify-content: center; }
.rd-medallion {
  width: min(420px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(from 210deg, #ecd3aa, #c08a45, #f0d9b5, #b4763b, #ecd3aa);
  box-shadow: 0 34px 70px rgba(36, 22, 16, 0.2);
}
.rd-medallion-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffcf5, #f2e2c8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rd-mono {
  font-family: var(--rd-serif);
  font-size: clamp(72px, 12vw, 118px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--rd-ink);
}
.rd-mono-sub {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--rd-terra);
  margin-top: 12px;
}
.rd-stamp {
  position: absolute;
  bottom: 2px;
  right: 4%;
  background: var(--rd-ink);
  color: var(--rd-cream);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
}

.rd-ribbon {
  background: var(--rd-ink);
  color: #efe2ce;
  padding: 15px 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rd-ribbon-inner {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.rd-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rd-gold); }

.rd-section { padding: 86px 22px; }
.rd-section-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.rd-section-head h2 {
  font-family: var(--rd-serif);
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.rd-sub { color: var(--rd-ink-soft); font-size: 16px; }

.rd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rd-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fffdf9;
  border: 1px solid var(--rd-line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(36, 22, 16, 0.13);
  text-decoration: none;
  color: inherit;
}
.rd-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #f7e8d1, #e8cda4);
}
.rd-card-art svg { width: 58%; height: 58%; }
.rd-card-body { padding: 16px 18px 20px; }
.rd-card-kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rd-terra);
}
.rd-card-name {
  display: block;
  font-family: var(--rd-serif);
  font-size: 19px;
  margin: 7px 0 8px;
  line-height: 1.25;
}
.rd-card-price { font-weight: 700; color: var(--rd-ink); }

.rd-story { background: var(--rd-ink); color: #f2e7d5; padding: 92px 0; }
.rd-story .rd-eyebrow { color: var(--rd-gold-l); }
.rd-story h2 {
  color: #fff;
  font-family: var(--rd-serif);
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 18px;
}
.rd-story p { color: #d8c8b3; line-height: 1.75; max-width: 52ch; }
.rd-story-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; }
.rd-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.rd-facts strong {
  display: block;
  font-family: var(--rd-serif);
  font-size: 40px;
  color: var(--rd-gold-l);
  line-height: 1;
}
.rd-facts span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfae98;
}

.rd-find { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rd-panel {
  background: #fffdf9;
  border: 1px solid var(--rd-line);
  border-radius: 18px;
  padding: 32px;
}
.rd-panel h3 {
  font-family: var(--rd-serif);
  font-size: 24px;
  margin: 0 0 14px;
}
.rd-panel address { font-style: normal; line-height: 1.8; color: var(--rd-ink-soft); }
.rd-hours { list-style: none; padding: 0; margin: 0; }
.rd-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rd-line);
  font-size: 15px;
}
.rd-hours li:last-child { border-bottom: 0; }
.rd-hours .closed { color: var(--rd-terra); }

.rd-cta {
  background: linear-gradient(120deg, #a9502c 0%, #c0703f 100%);
  color: #fff6e9;
  text-align: center;
  padding: 74px 22px;
}
.rd-cta h2 {
  font-family: var(--rd-serif);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 14px;
}
.rd-cta p { color: #ffe9d2; margin: 0 auto 28px; max-width: 52ch; }
.rd-cta .rd-btn-primary { background: #fff6e9; color: var(--rd-terra); }
.rd-cta .rd-btn-primary:hover { background: var(--rd-ink); color: var(--rd-cream); }

/* ---------- menu principal ---------- */
#menu.navbar,
#menu.bg-primary {
  background: var(--rd-ink) !important;
  border-radius: 12px;
  padding: 4px 10px;
  margin-top: 6px;
}
#menu .navbar-nav > li > a,
#menu .nav-link {
  color: #efe2ce !important;
  letter-spacing: 0.02em;
}
#menu .navbar-nav > li > a:hover,
#menu .nav-link:hover {
  color: #fff !important;
  background: transparent !important;
}
#menu .navbar-nav > li > a.active,
#menu .nav-link.active {
  color: #fff !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 var(--rd-gold);
}
#menu .dropdown-menu {
  background: #2e1d15;
  border: 0;
}
#menu .dropdown-menu a { color: #e9dcc8; }
#menu .dropdown-menu a:hover { background: #433025; color: #fff; }

/* ---------- listes, onglets, pagination ---------- */
.list-group-item.active,
#column-left .list-group-item.active,
.nav-tabs .nav-link.active,
.page-item.active .page-link {
  background-color: var(--rd-ink) !important;
  border-color: var(--rd-ink) !important;
  color: #fff !important;
}
.list-group-item a { color: var(--rd-ink); }
.page-link { color: var(--rd-terra); }

/* ---------- pied de page ---------- */
footer {
  background: #1c110c;
  color: #d9c9b4;
  padding: 56px 0 22px;
}
footer h5 {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer a { color: #d9c9b4; }
footer a:hover { color: #fff; }
footer hr { border-color: rgba(255, 255, 255, 0.14); margin: 34px 0 18px; }
footer p { font-size: 12px; color: #a08d78; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .rd-hero-grid,
  .rd-story-grid,
  .rd-find { grid-template-columns: 1fr; }
  .rd-hero-art { order: -1; margin-bottom: 12px; }
  .rd-cards { grid-template-columns: repeat(2, 1fr); }
  .rd-section { padding: 64px 22px; }
}
@media (max-width: 560px) {
  .rd-cards { grid-template-columns: 1fr; }
  .rd-trust { gap: 12px; }
  .rd-panel { padding: 24px; }
}
