/* ═══════════════════════════════════════════════════════════════
   CAPPADOCE — Stylesheet pages légales (mentions / cgv / confidentialité / allergènes)
   Reprend la DA Cappadoce : cream chaud #F4DFC0 + Playfair Display + Inter + ocre #A8893E
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ocre: #C9A55A;
  --ocre-dark: #6F5520;  /* WCAG AA 5.5:1 sur cream (avant #A8893E = 2.56:1 FAIL) */
  --brique: #C8321F;
  --creme: #F5EFE4;
  --cream-bg: #F4DFC0;
  --anthr: #2A2F33;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream-bg);
  background-image: url('assets/da-section-bg.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--anthr);
  line-height: 1.7;
  min-height: 100vh;
}

/* ─── HEADER simple avec retour accueil ─── */
.legal-header {
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid rgba(166, 124, 82, 0.25);
  background: rgba(244, 223, 192, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  color: var(--ocre-dark);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}
.legal-header-logo .balloon { font-size: 1.4rem; line-height: 1; }
.legal-header-back {
  color: var(--anthr);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.legal-header-back:hover { opacity: 1; color: var(--ocre-dark); }

/* ─── MAIN content ─── */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.legal-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ocre-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}
.legal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: var(--anthr);
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.legal-subtitle {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--ocre-dark);
  font-size: 1rem;
  margin: 0 0 3rem;
}
.legal-ornament {
  display: flex; justify-content: center; align-items: center;
  gap: 0.85rem;
  max-width: 200px;
  margin: 0 auto 3rem;
}
.legal-ornament .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ocre-dark), transparent); opacity: 0.55; }
.legal-ornament .star { color: var(--ocre-dark); font-size: 0.7rem; padding: 0 0.4rem; }

/* ─── Content blocks ─── */
.legal-section {
  background: rgba(255, 250, 240, 0.55);
  border: 1px solid rgba(166, 124, 82, 0.25);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}
.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--ocre-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.legal-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--anthr);
  margin: 1.5rem 0 0.65rem;
  font-weight: 600;
}
.legal-section p { margin-bottom: 1rem; font-size: 0.97rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--ocre-dark); font-weight: 600; }
.legal-section ul, .legal-section ol {
  margin: 0.75rem 0 1rem 1.5rem;
  font-size: 0.97rem;
}
.legal-section li { margin-bottom: 0.5rem; }
.legal-section strong { color: var(--anthr); font-weight: 600; }
.legal-section .legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.legal-section .legal-table th,
.legal-section .legal-table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(166, 124, 82, 0.25);
  text-align: left;
}
.legal-section .legal-table th {
  background: rgba(166, 124, 82, 0.12);
  font-weight: 700;
  color: var(--ocre-dark);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.legal-section .legal-table tbody tr:nth-child(even) { background: rgba(255, 250, 240, 0.45); }

/* Allergènes : grille 14 cards */
.allergenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}
.allergene-card {
  background: rgba(255, 250, 240, 0.65);
  border: 1px solid rgba(166, 124, 82, 0.25);
  padding: 1rem 1.25rem;
  text-align: center;
  border-radius: 4px;
}
.allergene-card .num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--ocre-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.allergene-card .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--anthr);
}

.legal-updated {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre-dark);
  text-align: center;
  margin-top: 2rem;
  opacity: 0.7;
}

/* ─── Footer minimal ─── */
.legal-footer {
  border-top: 1px solid rgba(166, 124, 82, 0.25);
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(244, 223, 192, 0.6);
}
.legal-footer p {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--anthr);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}
.legal-footer nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem;
}
.legal-footer a {
  color: var(--anthr);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.legal-footer a:hover { opacity: 1; color: var(--ocre-dark); }

@media (max-width: 640px) {
  .legal-header { padding: 1rem 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
  .legal-main { padding: 2.5rem 1rem 3rem; }
  .legal-section { padding: 1.5rem 1.25rem; }
}
