:root {
  --bordeaux: #7b002c;
  --bordeaux-dark: #54001c;
  --beige: #f8f1e6;
  --text: #2b2b2b;
  --muted: #6d6d6d;
  --border: #e4d4c3;
  --white: #ffffff;
  --success: #176a3f;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--beige);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 3rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(84, 0, 28, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  color: var(--bordeaux);
}

nav {
  display: flex;
  gap: 0.75rem;
}

nav a {
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(123, 0, 44, 0.1);
}

nav a.active {
  background: var(--bordeaux);
  color: var(--white);
}

main {
  padding-bottom: 4rem;
}

.section {
  padding: 3rem 0;
}

.hidden {
  display: none !important;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.1rem;
  color: #1f1f1f;
}

.intro-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 28px rgba(90, 40, 40, 0.08);
}

.card ul {
  padding-left: 1.25rem;
}

.timeline {
  margin-top: 2.5rem;
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

.timeline ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li + li {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.timeline-year {
  font-weight: 600;
  color: var(--bordeaux);
}

.section-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.map-wrapper iframe {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 25px 30px rgba(84, 0, 28, 0.1);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.filters select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1rem;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.checkbox-inline input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.required {
  font-weight: 600;
}

.degustation-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem;
}

.degustation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.degustation-card {
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 15px 25px rgba(84, 0, 28, 0.08);
}

.degustation-card-main h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  color: var(--bordeaux);
}

.degustation-card-main p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.degustation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(123, 0, 44, 0.15);
  color: var(--bordeaux);
  font-weight: 600;
  font-size: 0.8rem;
}

.degustation-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-primary,
.btn-secondary,
.btn-small {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-primary {
  background: var(--bordeaux);
  color: var(--white);
  padding: 0.9rem 1.5rem;
}

.btn-secondary {
  background: transparent;
  color: var(--bordeaux);
  border: 1px solid var(--bordeaux);
  padding: 0.8rem 1.4rem;
}

.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--white);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-small:hover,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-small:focus-visible {
  transform: translateY(-1px);
}

.btn-delete {
  color: #b00020;
  border-color: #f3b4c0;
}

.degustation-detail {
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 18px 28px rgba(84, 0, 28, 0.08);
  min-height: 200px;
}

.degustation-detail h3 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
}

.degustation-detail img {
  border-radius: 0.75rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
}

.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  width: min(600px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.modal-content form {
  display: grid;
  gap: 1rem;
}

.modal-content label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
}

.modal-content textarea {
  min-height: 120px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.offres-form {
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.offres-form input,
.offres-form select {
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.offres-form fieldset {
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.offres-form legend {
  font-weight: 600;
  color: var(--bordeaux);
}

#offres-message {
  margin: 0;
  font-weight: 600;
  color: var(--success);
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .degustation-layout {
    grid-template-columns: 1fr;
  }

  .degustation-detail {
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filters {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
