/* style.css — Villa Sadema design system + components */

/* ============ FONTS ============ */
/* Instrument Serif (display) — Google Fonts. Switzer (body) — Fontshare. */

/* ============ TOKENS ============ */
:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 7rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — warm Quercy limestone sand */
  --color-bg: #fbf6ec;
  --color-surface: #ffffff;
  --color-surface-2: #fdfbf5;
  --color-surface-offset: #f3e8d6;
  --color-surface-offset-2: #ecdbc0;
  --color-surface-dynamic: #e6d2ae;
  --color-divider: #e1d2b4;
  --color-border: #d8c4a0;

  /* Text — deep espresso */
  --color-text: #2b2019;
  --color-text-muted: #6e5d4c;
  --color-text-faint: #a99a85;
  --color-text-inverse: #fbf6ec;

  /* Primary — spiced terracotta */
  --color-primary: #b0491f;
  --color-primary-hover: #8e3a18;
  --color-primary-active: #6e2c12;
  --color-primary-highlight: #f0d9c8;

  /* Secondary — zellige emerald */
  --color-secondary: #185c4a;
  --color-secondary-hover: #124a3b;
  --color-secondary-active: #0d392d;
  --color-secondary-highlight: #cfe3da;

  /* Gold — saffron accent */
  --color-gold: #b9862e;
  --color-gold-hover: #97691f;
  --color-gold-active: #785316;
  --color-gold-highlight: #eee0c1;

  --color-error: #a12c2c;
  --color-error-highlight: #f0d6d6;
  --color-success: #3f7a45;
  --color-success-highlight: #d8e8da;

  /* Constant light text/border for use over photographic hero imagery —
     never flips with theme, since the dark image overlay is theme-independent. */
  --color-on-media: #fdfaf3;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 45 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.25 0.03 45 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.25 0.03 45 / 0.16);

  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Work Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #1c1712;
  --color-surface: #221b15;
  --color-surface-2: #27201a;
  --color-surface-offset: #2c241c;
  --color-surface-offset-2: #332a20;
  --color-surface-dynamic: #3d3122;
  --color-divider: #3a3025;
  --color-border: #48392a;

  --color-text: #eee4d5;
  --color-text-muted: #b3a28c;
  --color-text-faint: #7a6c58;
  --color-text-inverse: #251d16;

  --color-primary: #e1793d;
  --color-primary-hover: #ec9257;
  --color-primary-active: #f2a873;
  --color-primary-highlight: #4a3324;

  --color-secondary: #4fa98d;
  --color-secondary-hover: #6bbfa3;
  --color-secondary-active: #86d0b8;
  --color-secondary-highlight: #24413a;

  --color-gold: #d9a748;
  --color-gold-hover: #e6bc6c;
  --color-gold-active: #f0cd8d;
  --color-gold-highlight: #4a3b23;

  --color-error: #e08080;
  --color-error-highlight: #4a2a2a;
  --color-success: #7bbf82;
  --color-success-highlight: #253b28;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg: #1c1712;
    --color-surface: #221b15;
    --color-surface-2: #27201a;
    --color-surface-offset: #2c241c;
    --color-surface-offset-2: #332a20;
    --color-surface-dynamic: #3d3122;
    --color-divider: #3a3025;
    --color-border: #48392a;
    --color-text: #eee4d5;
    --color-text-muted: #b3a28c;
    --color-text-faint: #7a6c58;
    --color-text-inverse: #251d16;
    --color-primary: #e1793d;
    --color-primary-hover: #ec9257;
    --color-primary-active: #f2a873;
    --color-primary-highlight: #4a3324;
    --color-secondary: #4fa98d;
    --color-secondary-hover: #6bbfa3;
    --color-secondary-active: #86d0b8;
    --color-secondary-highlight: #24413a;
    --color-gold: #d9a748;
    --color-gold-hover: #e6bc6c;
    --color-gold-active: #f0cd8d;
    --color-gold-highlight: #4a3b23;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  }
}

/* ============ ZELLIGE PATTERN TEXTURE (decorative, subtle) ============ */
.zellige-bg {
  position: relative;
}
.zellige-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M28 0 L56 28 L28 56 L0 28 Z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============ BASE ELEMENTS ============ */
body {
  overflow-x: hidden;
}
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--color-primary);
}
.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
  max-width: 18ch;
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
  font-family: var(--font-body);
  line-height: 1.65;
}
.section-head {
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-16));
}
.section-head--center {
  text-align: center;
  margin-inline: auto;
}
.section-head--center .section-lede {
  margin-inline: auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}
.btn-outline {
  background: transparent;
  color: var(--color-on-media);
  border: 1px solid oklch(from var(--color-on-media) l c h / 0.55);
}
.btn-outline:hover {
  background: oklch(from var(--color-on-media) l c h / 0.12);
  border-color: var(--color-on-media);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-faint);
}
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  min-height: 36px;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  flex-shrink: 0;
}
.brand svg {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1;
}
.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
  font-weight: 500;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.main-nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.main-nav a[aria-current='page'] {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
  width: 20px;
  height: 20px;
}
.theme-toggle .icon-sun svg,
.theme-toggle .icon-moon svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .icon-sun {
  display: grid;
}
[data-theme='dark'] .theme-toggle .icon-sun {
  display: none;
}
[data-theme='dark'] .theme-toggle .icon-moon {
  display: grid;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-1);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: 90;
  }
  .main-nav a {
    padding: var(--space-4);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0;
  }
  body.nav-open .main-nav {
    transform: translateX(0);
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .header-inner {
    gap: var(--space-3);
    padding-inline: var(--space-4);
  }
  .brand-name span {
    display: none;
  }
  .header-actions {
    gap: var(--space-1);
  }
  .booking-panel {
    padding: var(--space-4) var(--space-3);
  }
  .calendar-grid {
    gap: 3px;
  }
  .calendar-day {
    min-height: 34px;
    font-size: var(--text-xs);
  }
  .calendar-legend {
    gap: var(--space-2) var(--space-3);
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-on-media);
}
.hero-page {
  min-height: 52vh;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(0.15 0.03 40 / 0.35) 0%,
    oklch(0.15 0.03 40 / 0.35) 40%,
    oklch(0.12 0.03 40 / 0.86) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  width: 100%;
  padding: var(--space-10) var(--space-5) clamp(var(--space-16), 8vw, var(--space-24));
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f0cd8d;
  text-shadow: 0 1px 6px oklch(0.1 0.02 40 / 0.5);
  margin-bottom: var(--space-5);
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: var(--space-5);
}
.hero p {
  font-size: var(--text-lg);
  max-width: 56ch;
  color: oklch(from var(--color-on-media) l c h / 0.88);
  margin-bottom: var(--space-8);
  font-family: var(--font-body);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: oklch(from var(--color-on-media) l c h / 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-scroll svg {
  width: 16px;
  height: 16px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ============ ACTIVITY GRID (home) ============ */
.activities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}
.activity-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4.3;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.activity-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.activity-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.15 0.03 40 / 0.05) 40%, oklch(0.1 0.03 40 / 0.92) 100%);
}
.activity-card:hover img {
  transform: scale(1.06);
}
.activity-card-content {
  position: absolute;
  inset: auto var(--space-4) var(--space-4) var(--space-4);
  z-index: 1;
}
.activity-card-index {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  opacity: 0.8;
  margin-bottom: var(--space-2);
  display: block;
}
.activity-card-content h3 {
  font-size: var(--text-lg);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}
.activity-card-content p {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.8);
  margin-bottom: 0;
}
.activity-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.16);
  backdrop-filter: blur(6px);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
}
.activity-card-arrow {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.16);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: transform var(--transition-interactive);
}
.activity-card-arrow svg {
  width: 15px;
  height: 15px;
}
.activity-card:hover .activity-card-arrow {
  transform: rotate(45deg);
}

@media (max-width: 1100px) {
  .activities {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .activities {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ INTRO / SPLIT LAYOUT ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
}
.split--reverse .split-media {
  order: 2;
}
.split-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.2;
}
.split-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.split-text .lede {
  font-size: var(--text-lg);
  color: var(--color-text);
}
@media (max-width: 860px) {
  .split,
  .split--reverse .split-media {
    order: initial;
  }
  .split {
    grid-template-columns: 1fr;
  }
}

/* ============ PILLARS / FEATURE LIST ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.pillar {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
}
.pillar-icon svg {
  width: 22px;
  height: 22px;
}
.pillar h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (max-width: 860px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ============ CARD GRIDS (rooms, treatments, menu, shop) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.info-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.info-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.info-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.info-card-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.info-card-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.info-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}
.tag {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  font-weight: 500;
}
.tag--accent {
  background: var(--color-secondary-highlight);
  color: var(--color-secondary);
}

/* ============ MENU LIST (restauration) ============ */
.menu-list {
  border-top: 1px solid var(--color-divider);
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
}
.menu-item-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  flex-shrink: 0;
}
.menu-item-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  flex: 1;
}
.menu-item-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-hover);
  background: var(--color-gold-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ============ GALLERY ============ */
.gallery {
  columns: 3 300px;
  column-gap: var(--space-5);
}
.gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  break-inside: avoid;
  box-shadow: var(--shadow-sm);
}

/* ============ STATS STRIP ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
}
.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ BANDS (dark section) ============ */
.band-dark {
  /* Constant brand-green band — stays dark in both themes, like the footer. */
  background: #123f33;
  color: #fff;
}
.band-dark .section-lede {
  color: oklch(1 0 0 / 0.78);
}
.band-dark .eyebrow {
  color: var(--color-gold);
}
.band-dark .eyebrow::before {
  background: var(--color-gold);
}

/* ============ CTA BAND ============ */
.cta-band {
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 7vw, var(--space-16));
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.cta-band p {
  color: oklch(1 0 0 / 0.85);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary);
}
.cta-band .btn-primary:hover {
  background: var(--color-bg);
}

/* ============ CONTACT / FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-item {
  display: flex;
  gap: var(--space-4);
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-item-icon svg {
  width: 20px;
  height: 20px;
}
.contact-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}
.contact-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.form-field {
  margin-bottom: var(--space-4);
}
.form-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 44px;
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-success-highlight);
  color: var(--color-success);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-4);
}
.form-success.visible {
  display: flex;
}
.form-success svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-secondary);
  color: #fff;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
[data-theme='dark'] .site-footer {
  background: #14231d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .site-footer {
    background: #14231d;
  }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(1 0 0 / 0.14);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-brand svg {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.footer-col p {
  color: oklch(1 0 0 / 0.72);
  font-size: var(--text-sm);
  max-width: 32ch;
}
.footer-col h5 {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.5);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: oklch(1 0 0 / 0.82);
  font-size: var(--text-sm);
}
.footer-col a:hover {
  color: var(--color-gold);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
}
.footer-legal-links a {
  color: oklch(1 0 0 / 0.6);
}
.footer-legal-links a:hover {
  color: var(--color-gold);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.55);
}

/* ============ LEGAL PAGES (mentions légales, CGV, RGPD, cookies) ============ */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding-block: var(--space-10);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.legal-page h2:first-child {
  margin-top: 0;
}
.legal-page h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.legal-page p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.legal-page ul {
  margin-bottom: var(--space-4);
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  line-height: 1.7;
}
.legal-page li {
  list-style: disc;
}
.legal-page .legal-updated {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding: var(--space-4);
  background: var(--color-surface-alt, oklch(0.97 0.01 90));
  border-radius: var(--radius-lg, 12px);
}
.legal-pending {
  background: oklch(0.93 0.08 85 / 0.5);
  border: 1px solid oklch(0.75 0.12 75 / 0.6);
  border-radius: 6px;
  padding: 0.05em 0.5em;
  font-style: italic;
  font-size: 0.94em;
}

/* ============ CONSTRUCTION / COMING SOON PAGES ============ */
.hero-construction {
  min-height: 84vh;
}
.hero-blurred .hero-media img {
  filter: blur(22px) saturate(1.05) brightness(0.7);
  transform: scale(1.14);
}
.hero-content--center {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
}
.hero-content--center .hero-actions {
  justify-content: center;
}
.hero-content--center h1,
.hero-content--center p {
  margin-inline: auto;
}
.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(1 0 0 / 0.28);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f0cd8d;
  margin-bottom: var(--space-6);
}
.construction-badge svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.notice-box {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: oklch(0.96 0.05 85 / 0.55);
  border: 1px solid oklch(0.78 0.1 75 / 0.55);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
}
.notice-box svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: oklch(0.55 0.14 60);
  margin-top: 2px;
}
.notice-box h4 {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}
.notice-box p {
  font-size: var(--text-sm);
  color: inherit;
  margin: 0;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ BREADCRUMB / PAGE UTILITIES ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.divider-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-gold);
  margin-block: var(--space-6);
}
.divider-orn::before,
.divider-orn::after {
  content: '';
  height: 1px;
  width: 48px;
  background: var(--color-divider);
}
.divider-orn svg {
  width: 16px;
  height: 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: var(--radius-md);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  border: 1px dashed var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}
.placeholder-note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ============ CART ICON (header) ============ */
.cart-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.cart-link:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.cart-link svg {
  width: 20px;
  height: 20px;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
}
.cart-badge.visible {
  display: block;
}

/* ============ PRODUCT GRID (boutique) ============ */
.product-category {
  margin-bottom: var(--space-10);
}
.product-category:last-child {
  margin-bottom: 0;
}
.product-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-3);
}
.product-category-head h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
.product-category-head p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: var(--space-5);
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-media {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.product-card-body p {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-bottom: var(--space-3);
  flex: 1;
}
.product-card-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.qty-stepper button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}
.qty-stepper button:hover {
  background: var(--color-surface-offset);
}
.qty-stepper span {
  min-width: 22px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
}
.add-to-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.add-to-cart-btn:hover {
  background: var(--color-primary-hover);
}
.add-to-cart-btn svg {
  width: 17px;
  height: 17px;
}
.add-to-cart-btn.added {
  background: var(--color-secondary);
}
.shop-toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
}
.shop-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ CART / CHECKOUT PAGE ============ */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}
.cart-lines {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-line {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.cart-line:last-child {
  border-bottom: none;
}
.cart-line-media {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-line-body {
  flex: 1;
  min-width: 0;
}
.cart-line-body h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.cart-line-body span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.cart-line-price {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.cart-line-remove {
  color: var(--color-text-faint);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cart-line-remove:hover {
  color: var(--color-primary);
}
.cart-line-remove svg {
  width: 15px;
  height: 15px;
}
.cart-empty {
  padding: var(--space-10) var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
}
.cart-empty a {
  color: var(--color-primary);
  font-weight: 600;
}
.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.cart-summary h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  color: var(--color-text-muted);
}
.summary-row.total {
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.delivery-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
}
.delivery-option:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.delivery-option input {
  accent-color: var(--color-primary);
}
.delivery-option-label {
  flex: 1;
}
.delivery-option-label strong {
  display: block;
}
.delivery-option-label span {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-gold-highlight);
  color: var(--color-gold-hover);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-xs);
  margin-bottom: var(--space-5);
}
.demo-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.confirmation-box {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-10) var(--space-6);
}
.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-secondary-highlight);
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
}
.confirmation-icon svg {
  width: 30px;
  height: 30px;
}
.confirmation-recap {
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

/* ============ FAT BIKE BOOKING / PLANNING ============ */
.booking-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.calendar-header h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: capitalize;
}
.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
}
.calendar-nav-btn:hover:not(:disabled) {
  background: var(--color-surface-offset);
}
.calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.calendar-nav-btn svg {
  width: 15px;
  height: 15px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: var(--space-2);
}
.calendar-weekdays span {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 600;
  text-transform: uppercase;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day {
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid transparent;
  min-height: 44px;
}
.calendar-day.is-empty {
  visibility: hidden;
}
.calendar-day.is-available {
  background: var(--color-secondary-highlight);
  color: var(--color-secondary);
}
.calendar-day.is-available:hover {
  border-color: var(--color-secondary);
}
.calendar-day.is-limited {
  background: var(--color-gold-highlight);
  color: var(--color-gold-hover);
}
.calendar-day.is-limited:hover {
  border-color: var(--color-gold);
}
.calendar-day.is-full,
.calendar-day.is-closed {
  color: var(--color-text-faint);
  background: var(--color-surface-offset);
  cursor: not-allowed;
}
.calendar-day.is-selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}
.calendar-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.legend-dot.available {
  background: var(--color-secondary);
}
.legend-dot.limited {
  background: var(--color-gold);
}
.legend-dot.full {
  background: var(--color-text-faint);
}

.booking-form-wrap {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.bike-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.bike-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.bike-selector-row-label strong {
  display: block;
  font-size: var(--text-sm);
}
.bike-selector-row-label span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.price-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: var(--space-5);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  margin: var(--space-5) 0;
}
.price-summary-item span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-1);
}
.price-summary-item strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.legal-box {
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  font-size: var(--text-sm);
}
.legal-box h5 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}
.legal-box h5 svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.legal-box ul {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-5);
  color: var(--color-text);
}
.legal-box li {
  margin-bottom: var(--space-1);
}
.attestation-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.attestation-field input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.attestation-field label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.form-error {
  display: none;
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
}
.form-error.visible {
  display: block;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-4);
}
@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============ TAJINE COMPOSE (Sajine) ============ */
.tajine-compose {
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-6);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  text-align: center;
}
.tajine-compose-head h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.tajine-compose-head p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0 auto var(--space-5);
  max-width: 52ch;
}
.tajine-supplements {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.tajine-supplements li {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-gold-highlight);
  color: var(--color-gold-hover);
  font-size: var(--text-sm);
  font-weight: 600;
}
.tajine-compose-foot {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin: 0;
}
.tajine-compose-foot { max-width: none; }
.tajine-compose-foot span { white-space: nowrap; }
.split p + p { margin-top: var(--space-4); }
.split .lede { font-size: var(--text-lg); color: var(--color-text); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px oklch(0 0 0 / 0.28); }
.wa-float:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.btn-whatsapp { background: #25D366; color: #fff; border: 1px solid #25D366; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* ============ COMMANDE TAJINES ============ */
.menu-item-price {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1px dashed var(--color-primary);
  width: 100%;
}
.btn-outline-dark:hover:not(:disabled) { background: var(--color-primary-highlight); }
.btn-outline-dark:disabled { opacity: .45; cursor: not-allowed; }
.tajine-left { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.tajine-pots { display: flex; flex-direction: column; gap: var(--space-4); margin: var(--space-4) 0; }
.tajine-pot {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--color-surface);
}
.tajine-pot-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.tajine-pot-head h5 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; }
.tajine-pot-remove {
  font-size: var(--text-xs); color: var(--color-text-muted); text-decoration: underline;
  background: none; border: 0; cursor: pointer; padding: var(--space-1);
}
.tajine-pot-remove:hover { color: var(--color-error, #b3261e); }
.tajine-label { display:block; font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); margin: var(--space-4) 0 var(--space-2); }
.tajine-nosupp { font-size: var(--text-sm); color: var(--color-text-muted); margin: var(--space-4) 0 0; }
.recipe-choices { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-2); }
.recipe-choice { position: relative; }
.recipe-choice input { position: absolute; opacity: 0; pointer-events: none; }
.recipe-choice span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  cursor: pointer; font-size: var(--text-sm); font-weight: 600; transition: border-color .15s, background .15s;
}
.recipe-choice span small { font-weight: 400; color: var(--color-text-muted); font-size: var(--text-xs); }
.recipe-choice input:checked + span { border-color: var(--color-primary); background: var(--color-primary-highlight); }
.recipe-choice input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.parts-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.supp-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.supp-choice { position: relative; }
.supp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.supp-choice span {
  display: inline-block; padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  border: 1px solid var(--color-border); font-size: var(--text-sm); cursor: pointer; transition: all .15s;
}
.supp-choice input:checked + span { background: var(--color-gold-highlight); border-color: var(--color-gold-hover); color: var(--color-gold-hover); font-weight: 600; }
.supp-choice input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.tajine-pot-total { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-divider); display: flex; justify-content: space-between; font-size: var(--text-sm); }
.tajine-pot-total strong { font-variant-numeric: tabular-nums; }
.tajine-step-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; margin-top: var(--space-6); }
.address-field { position: relative; }
.address-suggestions {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; list-style: none; padding: var(--space-1);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 10px 24px oklch(0 0 0 / .12); max-height: 240px; overflow: auto;
}
.address-suggestions li { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-sm); }
.address-suggestions li:hover, .address-suggestions li[aria-selected="true"] { background: var(--color-primary-highlight); }
.tajine-delivery-info { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: calc(-1 * var(--space-2)); margin-bottom: var(--space-4); }
.tajine-delivery-info strong { color: var(--color-text); }
@media (max-width: 560px) {
  .recipe-choices { grid-template-columns: 1fr; }
  .menu-item { flex-wrap: wrap; }
}
.tajine-pot-total strong { white-space: nowrap; }

/* Calendrier : en-têtes des jours toujours alignés sur les dates (mobile compris) */
.calendar-weekdays,
.calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar-day { min-width: 0; min-height: 0; }
@media (max-width: 480px) {
  .calendar-weekdays, .calendar-grid { gap: 3px; }
  .calendar-weekdays span { font-size: 11px; letter-spacing: 0; }
  .calendar-day { font-size: var(--text-xs); }
}

.recipe-choice.is-soldout span { opacity: .45; cursor: not-allowed; }
.tajine-soldout { padding: var(--space-4); text-align: center; color: var(--color-text-muted); }

/* Tajines : photo principale, photo maison, galerie */
.hero-media--tajine img { object-position: 70% 55%; }
.tajine-real { margin: 0; }
.tajine-real figcaption { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); }
.tajine-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 260px; gap: var(--space-3); }
.tajine-tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg, 14px); background: var(--color-surface-2, #eee); }
.tajine-tile--large { grid-column: span 2; grid-row: span 2; }
.tajine-tile--full { grid-column: 1 / -1; }
.tajine-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tajine-tile:hover img { transform: scale(1.04); }
.tajine-tile figcaption { position: absolute; inset: auto 0 0 0; padding: var(--space-6) var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(to top, rgba(30,18,10,.78), rgba(30,18,10,0)); }
.tajine-tile figcaption strong { font-family: var(--font-display, serif); font-size: var(--text-lg); font-weight: 400; }
.tajine-tile figcaption span { font-size: var(--text-xs); opacity: .9; }
.tajine-gallery-note { margin-top: var(--space-3); text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); }
@media (max-width: 900px) { .tajine-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 200px; } }
@media (max-width: 520px) { .tajine-gallery { grid-auto-rows: 170px; gap: var(--space-2); } .tajine-tile figcaption strong { font-size: var(--text-base); } }

/* ---------- Retour de paiement en ligne ---------- */
.pay-return { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(30, 20, 12, 0.55); }
.pay-return__card { width: 100%; max-width: 30rem; background: var(--color-surface); color: var(--color-text, #2b1d12); border-radius: 1rem; padding: 2rem 1.75rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; border-top: 6px solid var(--color-primary); }
.pay-return__card.is-ok { border-top-color: #3f7d4e; }
.pay-return__card h2 { font-size: 1.5rem; margin: 0 0 .75rem; }
.pay-return__card p { color: var(--color-text-muted); line-height: 1.55; margin: 0 0 .75rem; }
.pay-return__ref strong { color: var(--color-text, #2b1d12); letter-spacing: .03em; }
.pay-return__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.25rem; }
.pay-return__err { color: #a12a1a; font-size: .9rem; margin-top: .75rem; min-height: 1em; }
.pay-secure { display: flex; align-items: center; gap: .5rem; justify-content: center; font-size: .85rem; color: var(--color-text-muted); margin-top: .75rem; }
.pay-return .pay-return__close { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.pay-return .pay-return__close:hover { background: var(--color-primary-highlight); color: var(--color-primary-hover); }
.pay-return__card { border-top: 0; box-shadow: inset 0 6px 0 var(--color-primary), 0 20px 60px rgba(0,0,0,.25); }
.pay-return__card.is-ok { box-shadow: inset 0 6px 0 #3f7d4e, 0 20px 60px rgba(0,0,0,.25); }
