/*
Theme Name: Le DiVINsalon
Theme URI: https://www.ledivinsalon.com
Author: Le Divin Salon
Description: Thème sur mesure  (salon des vins de Châtillon-sur-Chalaronne).
Version: 1.0
Text Domain: ledivinsalon
*/

/* ---------- Design tokens ---------- */
:root {
  --wine: #6f2436;
  --wine-dark: #4a1824;
  --gold: #b8923f;
  --cream: #f6efe0;
  --paper: #fbf7ee;
  --ink: #2b2420;
  --ink-soft: #5b5148;
  --line: #e3d7bd;
  --radius: 3px;
  --max: 760px;
  --wide: 1080px;
}

@font-face {
  font-family: 'ds-fallback';
  src: local('Georgia');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", "Segoe UI", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .ds-brand {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  color: var(--wine-dark);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; margin-top: 1.6em; }
h3 { font-size: 1.35rem; margin-top: 1.2em; color: var(--wine); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--wine); }
a:hover { color: var(--gold); }

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

/* ---------- Header ---------- */
.ds-header {
  background: var(--wine-dark);
  border-bottom: 3px solid var(--gold);
}

.ds-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ds-brand {
  color: var(--cream);
  font-size: 1.7rem;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ds-brand:hover { color: var(--gold); }
.ds-brand span { color: var(--gold); }

.ds-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.ds-nav li { position: relative; }

.ds-nav a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.ds-nav a:hover { background: rgba(255,255,255,.08); color: var(--gold); }

.ds-nav .menu-item-has-children > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--wine-dark);
  border: 1px solid rgba(255,255,255,.15);
  min-width: 220px;
  padding: 6px;
  z-index: 20;
}
.ds-nav .menu-item-has-children:hover > ul,
.ds-nav .menu-item-has-children:focus-within > ul { display: block; }
.ds-nav .menu-item-has-children > ul a { white-space: normal; }

/* ---------- Hero (front page) ---------- */
.ds-hero {
  background: linear-gradient(180deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: var(--cream);
  text-align: center;
  padding: 64px 24px 56px;
}
.ds-hero h1 { color: var(--cream); font-size: 3rem; }
.ds-hero p { color: rgba(246,239,224,.85); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Layout ---------- */
.ds-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.ds-wrap.ds-wide { max-width: var(--wide); }

.ds-page-title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.ds-figure {
  margin: 24px 0;
  border: 1px solid var(--line);
  padding: 6px;
  background: #fff;
}
.ds-figure img { width: 100%; }

.ds-btn {
  display: inline-block;
  background: var(--wine);
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .95rem;
}
.ds-btn:hover { background: var(--gold); color: var(--wine-dark) !important; }

/* ---------- Producers grid ---------- */
.ds-intro { font-size: 1.05rem; }

.producers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.producer-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.producer-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.producer-info { padding: 16px 18px 20px; }
.producer-info h3 { margin-top: 0; font-size: 1.2rem; }

.producer-region {
  display: inline-block;
  font-size: .78rem;
  color: var(--wine);
  border: 1px solid var(--wine);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

.producer-info p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Agenda ---------- */
.agenda-day {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin-bottom: 26px;
}
.agenda-day h3 { margin-top: 0; }
.agenda-list { list-style: none; margin: 0; padding: 0; }
.agenda-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.agenda-list li:last-child { border-bottom: none; }

/* ---------- Blog ---------- */
.ds-blog-list { display: grid; gap: 36px; }
.ds-blog-item { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.ds-blog-item .ds-meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; }
.ds-blog-item h2 { margin-top: 0; }
.ds-blog-item h2 a { text-decoration: none; }

/* ---------- Footer ---------- */
.ds-footer {
  background: var(--wine-dark);
  color: var(--gold);
  text-align: center;
  padding: 30px 24px;
  font-size: .9rem;
}
.ds-footer a { color: var(--gold); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  .ds-header-inner { flex-direction: column; align-items: flex-start; }
  .ds-nav ul { gap: 2px; }
  .ds-hero { padding: 44px 20px; }
}

/* Accessibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
