/* =========================================================
   Mersier Pâtisserie — Style v2
   Palette cuivré Pantone · Macondo Swash Caps · Baskerville · Inter
   Style new-yorkais moderne, airy, raffiné
   ========================================================= */

:root {
  /* ============ Palette cuivré (Pantone-inspired) ============ */
  --copper-50:  #FAF6F1;
  --copper-100: #F5ECDF;
  --copper-200: #E8D3B7;
  --copper-300: #D8B186;
  --copper-400: #C9885E;
  --copper-500: #B87333; /* Cuivre principal */
  --copper-600: #9A5E2A;
  --copper-700: #7C4920;
  --copper-800: #5E3717;
  --copper-900: #3F250F;

  /* ============ Neutres ============ */
  --white:     #FFFFFF;
  --off-white: #FBFAF7;
  --cream:     #F5EFE8;
  --paper:     #F9F4EC;
  --border:    #ECE3D5;
  --border-strong: #D9CBB4;

  --ink-900: #1A130D;  /* 17:1 sur blanc — texte principal */
  --ink-700: #3D2F23;  /* 11:1 sur blanc — paragraphes */
  --ink-500: #6B5947;  /*  6:1 sur blanc — muted, lisible AAA */
  --ink-400: #877262;  /*  4.6:1 sur blanc — muted minimal AA */
  --ink-300: #A89685;  /*  3.0:1 — décoratif, JAMAIS pour texte de lecture */

  /* ============ Aliases sémantiques ============ */
  --color-primary: var(--copper-500);
  --color-primary-dark: var(--copper-700);
  --color-primary-light: var(--copper-400);
  --color-accent: var(--copper-300);
  --color-bg: var(--off-white);
  --color-surface: var(--white);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-500);
  --color-success: #4A7C59;
  --color-error: #B33A3A;
  --color-warning: var(--copper-500);

  /* ============ Typo ============ */
  --font-brand:  'Macondo Swash Caps', 'Baskerville', Georgia, serif;
  --font-serif:  'Libre Baskerville', 'Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* ============ Ombres ============ */
  --shadow-xs: 0 1px 2px rgba(26, 19, 13, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 19, 13, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 19, 13, 0.08);
  --shadow-lg: 0 24px 56px rgba(26, 19, 13, 0.12);
  --shadow-copper: 0 12px 32px rgba(184, 115, 51, 0.18);

  /* ============ Radius & transitions ============ */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ============ Layout ============ */
  --container: 1340px;
  --container-narrow: 880px;
  --header-h: 88px;
}

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ============ Typographie ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-900);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--copper-600); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--copper-800); }

::selection { background: var(--copper-200); color: var(--ink-900); }

/* Eyebrow & display (Macondo Swash Caps) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: 1rem;
}
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--copper-700);
}

/* ============ Layout helpers ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 64px; }
.section-title h2 { margin-bottom: 0; }
.section-title .eyebrow { margin-bottom: 0.75rem; }
.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 56px auto;
  width: 80%;
}
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 24px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(217, 203, 180, 0.4);
  transition: background .3s, border-color .3s;
}
.site-header--transparent {
  background: transparent;
  border-bottom-color: transparent;
  position: fixed;
  left: 0; right: 0;
}
.site-header--transparent .header-top {
  background: rgba(26, 19, 13, 0.5);
}
.site-header--transparent .main-nav a { color: rgba(255, 255, 255, 0.92); }
.site-header--transparent .main-nav a:hover { color: var(--copper-300); }
.site-header--transparent .main-nav a::after { background: var(--copper-300); }
.site-header--transparent .btn-icon { color: white; }
.site-header--transparent .btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}
.site-header--transparent .brand-logo--dark { display: none; }
.site-header--transparent .brand-logo--white { display: block; }
.site-header--transparent .brand-name { color: white; }
.site-header--transparent .brand-tagline { color: rgba(255, 255, 255, 0.7); }
.site-header--transparent.is-scrolled {
  background: rgba(251, 250, 247, 0.95);
  border-bottom-color: rgba(217, 203, 180, 0.4);
}
.site-header--transparent.is-scrolled .header-top { background: var(--ink-900); }
.site-header--transparent.is-scrolled .main-nav a { color: var(--ink-700); }
.site-header--transparent.is-scrolled .main-nav a:hover { color: var(--copper-600); }
.site-header--transparent.is-scrolled .main-nav a::after { background: var(--copper-500); }
.site-header--transparent.is-scrolled .btn-icon { color: var(--ink-700); }
.site-header--transparent.is-scrolled .brand-logo--dark { display: block; }
.site-header--transparent.is-scrolled .brand-logo--white { display: none; }
.site-header--transparent.is-scrolled .brand-name { color: var(--ink-900); }
.site-header--transparent.is-scrolled .brand-tagline { color: var(--ink-500); }
.header-top {
  background: var(--ink-900);
  color: var(--copper-100);
  font-size: 0.78rem;
  padding: 8px 0;
  letter-spacing: 0.04em;
}
.header-top a { color: var(--copper-200); }
.header-top a:hover { color: var(--copper-400); }
.header-top .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.header-main {
  height: var(--header-h);
  padding: 0 32px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  line-height: 1;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-logo--white { display: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ink-900);
  letter-spacing: 0.02em;
  line-height: 0.9;
  transition: color .3s;
}
.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-500);
  transition: color .3s;
}
.brand:hover .brand-name { color: var(--copper-600); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.main-nav a {
  color: var(--ink-700);
  position: relative;
  padding: 8px 0;
  transition: color .25s var(--ease);
}
.main-nav a:hover { color: var(--copper-600); }
.main-nav a.active { color: var(--copper-700); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--copper-500);
  transition: all .3s var(--ease-out);
  transform: translateX(-50%);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .25s var(--ease);
  text-decoration: none;
}
.btn-icon:hover { border-color: var(--copper-300); background: var(--copper-50); color: var(--copper-700); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--copper-500);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
}
.menu-toggle { display: none; background: none; border: none; color: var(--ink-900); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 38px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink-900);
  color: white;
}
.hero--fullscreen {
  min-height: 100vh;
  margin-top: calc(-1 * (var(--header-h) + 38px));
  padding-top: calc(var(--header-h) + 38px);
}
.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  display: block;
  opacity: 0.95;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.02);
  transition: transform 8s var(--ease-out);
}
.hero:hover .hero-image { transform: scale(1.05); }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 19, 13, 0.15) 0%,
    rgba(26, 19, 13, 0.4) 60%,
    rgba(26, 19, 13, 0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 80px 32px;
  text-align: center;
  color: white;
}
.hero-content .eyebrow { color: var(--copper-300); }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: white;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
  line-height: 1.05;
}
.hero h1 .accent {
  display: block;
  font-family: var(--font-serif);
  color: var(--copper-300);
  font-size: 0.85em;
  letter-spacing: 0.02em;
  margin-top: 0.1em;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
  user-select: none;
}
.hero-scroll span { white-space: nowrap; }
.hero-scroll svg { display: none; }  /* on remplace l'ancien icône par un trait animé */
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.15) 100%);
  position: relative;
  overflow: hidden;
}
.hero-scroll::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  background: var(--copper-300);
  transform: translateX(-50%);
  animation: scrollDot 2.2s var(--ease-out) infinite;
  z-index: 1;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, -48px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s var(--ease);
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--copper-500);
  color: white;
  border-color: var(--copper-500);
}
.btn-primary:hover {
  background: var(--copper-700);
  border-color: var(--copper-700);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-copper);
}
.btn-outline {
  background: transparent;
  color: var(--copper-700);
  border-color: var(--copper-400);
}
.btn-outline:hover {
  background: var(--copper-500);
  border-color: var(--copper-500);
  color: white;
}
.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: white;
  color: var(--ink-900);
  border-color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-500);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--copper-600); }
.btn-danger {
  background: var(--color-error);
  color: white;
  border-color: var(--color-error);
}
.btn-danger:hover { background: #8B2929; border-color: #8B2929; }

.btn-sm { padding: 10px 20px; font-size: 0.72rem; }
.btn-lg { padding: 18px 40px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ============ Product card ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 32px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .4s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--copper-200);
  box-shadow: var(--shadow-lg);
}
.product-card > a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card-image {
  aspect-ratio: 4 / 5;
  background: var(--copper-50);
  overflow: hidden;
  position: relative;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--copper-50) 0%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-placeholder img {
  width: 45% !important;
  height: auto !important;
  opacity: 0.7;
  object-fit: contain !important;
  transition: transform .8s var(--ease-out), opacity .4s !important;
}
.product-card:hover .product-card-placeholder img { opacity: 0.9; transform: scale(1.08) !important; }
.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-category {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: 10px;
  font-weight: 500;
}
.product-card-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink-900);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.product-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-card-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--copper-700);
  font-weight: 500;
}
.product-card-price small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 400;
  margin-bottom: 2px;
}
.product-card-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-700);
  font-weight: 500;
}

/* Badges */
.product-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--white);
  color: var(--ink-700);
  border: 1px solid var(--border);
}
.badge-new       { background: var(--copper-700); color: white; border-color: var(--copper-700); }
.badge-signature { background: var(--copper-300); color: var(--ink-900); border-color: var(--copper-300); }
.badge-seasonal  { background: var(--copper-100); color: var(--copper-800); border-color: var(--copper-200); }
.badge-gluten    { background: white; color: var(--ink-700); }

/* ============ Categories pills ============ */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cat-pill {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.cat-pill:hover {
  border-color: var(--copper-500);
  color: var(--copper-700);
}
.cat-pill.active {
  background: var(--copper-500);
  color: white;
  border-color: var(--copper-500);
}

/* ============ Forms ============ */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.form-group label .required { color: var(--copper-600); }
.form-control,
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"],
input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all .2s var(--ease);
}
input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none;
  border-color: var(--copper-500);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.12);
}
.form-help { font-size: 0.78rem; color: var(--ink-500); margin-top: 6px; }
.form-error { color: var(--color-error); font-size: 0.82rem; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink-700);
}
.form-checkbox input { width: auto; margin-top: 3px; accent-color: var(--copper-500); }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

/* ============ Alerts ============ */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border-left: 3px solid;
  background: white;
  font-size: 0.92rem;
}
.alert-success { border-color: var(--color-success); background: #F3F8F4; color: #2D5A3F; }
.alert-error   { border-color: var(--color-error); background: #FBF3F3; color: #7A2929; }
.alert-warning { border-color: var(--copper-500); background: var(--copper-50); color: var(--copper-800); }
.alert-info    { border-color: var(--copper-400); background: var(--copper-50); color: var(--copper-800); }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink-900);
  color: var(--copper-100);
  padding: 96px 0 32px;
  margin-top: 120px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper-500), transparent);
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-400);
  margin-bottom: 18px;
  font-weight: 500;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); transition: color .25s var(--ease); }
.site-footer a:hover { color: var(--copper-300); }
.site-footer p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--copper-300);
  margin-bottom: 16px;
  display: inline-block;
}
.footer-logo {
  width: 72px;
  height: 72px;
  opacity: 0.95;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-newsletter form {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border-bottom: 1px solid rgba(216, 177, 134, 0.3);
}
.footer-newsletter input {
  background: transparent;
  border: 0;
  color: white;
  padding: 12px 0;
  flex: 1;
  border-radius: 0;
}
.footer-newsletter input:focus { box-shadow: none; border-bottom-color: var(--copper-400); }
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-newsletter button {
  background: transparent;
  border: 0;
  color: var(--copper-300);
  padding: 0 0 0 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s;
}
.footer-newsletter button:hover { color: var(--copper-200); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

/* ============ Cart / Order ============ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
}
.cart-table td {
  padding: 24px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-item-image {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.cart-summary {
  background: var(--cream);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.cart-summary h3 {
  font-family: var(--font-serif);
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-strong);
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.cart-summary-line:last-of-type {
  border-bottom: 0;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 2px solid var(--ink-900);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--copper-700);
  font-weight: 500;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-control button {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink-700);
  transition: all .2s;
}
.qty-control button:hover { background: var(--copper-50); color: var(--copper-700); }
.qty-control input {
  width: 56px;
  text-align: center;
  border: 0;
  padding: 10px 0;
  background: transparent;
}
.qty-control input:focus { box-shadow: none; }

/* ============ Product detail ============ */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  margin-bottom: 96px;
}
.product-detail-image {
  background: var(--copper-50);
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.product-detail-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-detail-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: 16px;
  font-weight: 500;
}
.product-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
  font-weight: 400;
  line-height: 1.1;
}
.product-detail-short {
  font-size: 1.1rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: 32px;
}
.product-detail-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--copper-700);
  font-weight: 500;
  margin-bottom: 36px;
}
.product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.variant-btn {
  padding: 12px 22px;
  border: 1px solid var(--border-strong);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-700);
  transition: all .25s var(--ease);
}
.variant-btn:hover { border-color: var(--copper-500); color: var(--copper-700); }
.variant-btn.active {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}
.product-tabs {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 64px;
}
.product-tabs h3 {
  font-family: var(--font-serif);
  margin: 32px 0 16px;
  font-size: 1.4rem;
}
.allergens-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.allergen-tag {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--ink-700);
  letter-spacing: 0.04em;
}

/* ============ Checkout ============ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
}
.checkout-section { margin-bottom: 48px; }
.checkout-section h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.delivery-method-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.method-card {
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.method-card:hover { border-color: var(--copper-400); }
.method-card.active {
  border-color: var(--copper-500);
  background: var(--copper-50);
  box-shadow: var(--shadow-sm);
}
.method-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.method-card small {
  color: var(--ink-500);
  display: block;
}
.stripe-element {
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: white;
}

/* ============ Pagination ============ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  background: white;
  text-decoration: none;
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--copper-500); color: var(--copper-700); }
.pagination .current {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}

/* ============ Shop layout ============ */
.shop-header {
  background: var(--cream);
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
}
.shop-sidebar h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 16px;
  font-weight: 500;
}
.filter-group {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: 0; }
.filter-group a {
  display: block;
  padding: 6px 0;
  color: var(--ink-700);
  font-size: 0.92rem;
  transition: color .2s;
}
.filter-group a:hover, .filter-group a.active { color: var(--copper-700); }
.filter-group a small { color: var(--ink-300); margin-left: 6px; }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.shop-toolbar select {
  width: auto;
  padding: 8px 32px 8px 14px;
  font-size: 0.88rem;
}

/* ============ Status badges ============ */
.status-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-pending    { background: #FFF4E0; color: #8C5A0F; }
.status-paid       { background: #DDEEDB; color: #2D5A3F; }
.status-preparing  { background: #DCEAF5; color: #1F4670; }
.status-ready      { background: #DAEEEC; color: #1A5A56; }
.status-delivered  { background: #DDEEDB; color: #2D5A3F; }
.status-cancelled  { background: #F5DDDC; color: #7A2929; }
.status-refunded   { background: #E8E5E0; color: #5A4F45; }

/* ============ Tables ============ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.table th {
  padding: 14px 18px;
  background: var(--copper-50);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  font-weight: 500;
}
.table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--off-white); }

/* ============ Empty state ============ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-500);
}
.empty-state h3 {
  font-family: var(--font-serif);
  color: var(--ink-700);
  margin-bottom: 16px;
}

/* ============ Spinner ============ */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Responsive · mobile-first · v3
   Architecture: base = desktop (≥901px), surcharges < 900px
   ========================================================= */

/* ─── Safety net : aucun débordement horizontal global ─── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img, video, iframe { max-width: 100%; height: auto; }

/* Éviter qu'un long mot casse la mise en page */
.product-card-name, .product-card-desc, .carte-name, .carte-desc,
h1, h2, h3, p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ─── Améliorations contraste (s'applique à toutes tailles) ─── */
.eyebrow { color: var(--copper-700); }
.section--dark .eyebrow,
.hero .eyebrow,
[style*="ink-900"] .eyebrow { color: var(--copper-300); }

.product-card-price,
.product-card-link,
.product-detail-price,
.carte-price { color: var(--copper-800); }
.carte-num { color: var(--copper-700); }

.footer-bottom { color: rgba(255, 255, 255, 0.7); }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--copper-300); }
.site-footer p { color: rgba(255, 255, 255, 0.82); }
.site-header--transparent .brand-tagline { color: rgba(255, 255, 255, 0.85); }

.text-muted,
.product-card-desc { color: var(--ink-500); }

input::placeholder, textarea::placeholder {
  color: var(--ink-500);
  opacity: 0.9;
}

/* Focus accessible */
:focus-visible {
  outline: 2px solid var(--copper-500);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Touch targets : 44px minimum (Apple HIG) */
.btn { min-height: 44px; }
.btn-icon { width: 44px; height: 44px; }
input, select, textarea { min-height: 48px; font-size: 1rem; }

/* Badges réajustés contraste */
.badge-new       { background: var(--copper-800); color: white; }
.badge-signature { background: var(--copper-600); color: white; }
.badge-seasonal  { background: white; color: var(--copper-900); border: 1px solid var(--copper-400); }
.badge-gluten    { background: white; color: var(--ink-700); }

/* Status badges contraste AA */
.status-pending    { background: #FEF3C7; color: #78350F; }
.status-paid       { background: #D1FAE5; color: #064E3B; }
.status-preparing  { background: #DBEAFE; color: #1E3A8A; }
.status-ready      { background: #CCFBF1; color: #134E4A; }
.status-delivered  { background: #D1FAE5; color: #064E3B; }
.status-cancelled  { background: #FEE2E2; color: #7F1D1D; }
.status-refunded   { background: #E5E7EB; color: #1F2937; }

/* Animations respectent l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Tablette · ≤ 1024px
   ========================================================= */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .section { padding: 88px 0; }
  .section-tight { padding: 56px 0; }
  .section-title { margin-bottom: 48px; }

  /* Header un peu plus compact */
  :root { --header-h: 78px; }

  /* Carte (menu) un peu plus serré */
  .section--carte { padding: 96px 0; }

  /* Grilles complexes : passer en 1 colonne quand trop étroit */
  .product-detail { grid-template-columns: 1fr; gap: 48px; }
  .product-detail-image { aspect-ratio: 4/3; max-width: 600px; margin: 0 auto; }
  .checkout-layout { grid-template-columns: 1fr; gap: 40px; }
  .shop-layout { grid-template-columns: 220px 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-info { padding: 64px 40px; }
  .visit-map .map { min-height: 380px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; max-width: 720px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .footer-newsletter { grid-column: span 3; max-width: 480px; }

  .pillars-grid { gap: 40px; }

  /* Products grid : 3 colonnes au lieu de 4+ */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
  }
}

/* =========================================================
   Mobile · ≤ 900px
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .container { padding: 0 20px; }

  /* ─── Header mobile : compact ─── */
  .header-top { display: none; }
  .header-main {
    height: 64px;
    padding: 0 16px;
    max-width: 100%;
  }
  .brand { gap: 10px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 1.25rem; }
  .brand-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
  }
  /* Sur mobile : masquer le tagline pour gagner de la place */
  @media (max-width: 480px) {
    .brand-tagline { display: none; }
    .brand-logo { width: 32px; height: 32px; }
    .brand-name { font-size: 1.1rem; }
  }

  .header-actions { gap: 4px; }
  .btn-icon { width: 40px; height: 40px; }

  /* ─── BURGER MENU · implémentation propre ─── */
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    z-index: 1002;
    position: relative;
  }

  /* Masquer nav par défaut : drawer slide-in depuis la droite */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    max-width: 320px;
    height: 100dvh;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 28px 32px;
    box-shadow: -20px 0 60px rgba(26, 19, 13, 0.18);
    transform: translate3d(100%, 0, 0);
    transition: transform .3s ease-out;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1001;
    border: 0;
    margin: 0;
  }
  .main-nav.open {
    transform: translate3d(0, 0, 0);
  }

  /* Liens dans le drawer : style propre, dark sur fond blanc */
  .main-nav a {
    color: var(--ink-900) !important;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    display: block;
    text-align: left;
  }
  .main-nav a::after { display: none !important; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a:hover,
  .main-nav a.active { color: var(--copper-700) !important; }
  .main-nav a.active { font-weight: 600; }

  /* Overlay sombre derrière le drawer ouvert */
  body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(26, 19, 13, 0.5);
    z-index: 1000;
    animation: fadeIn .25s ease-out;
  }
  body.menu-open { overflow: hidden; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  /* Quand le menu est ouvert : le toggle reste visible et accessible.
     Le header transparent passe en solide pour que le burger soit lisible. */
  body.menu-open .site-header,
  body.menu-open .site-header--transparent {
    background: rgba(251, 250, 247, 0.96) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  body.menu-open .site-header .btn-icon,
  body.menu-open .site-header .menu-toggle,
  body.menu-open .site-header--transparent .btn-icon,
  body.menu-open .site-header--transparent .menu-toggle {
    color: var(--ink-900) !important;
  }
  body.menu-open .brand-name,
  body.menu-open .site-header--transparent .brand-name {
    color: var(--ink-900) !important;
  }
  body.menu-open .site-header--transparent .brand-logo--dark { display: block; }
  body.menu-open .site-header--transparent .brand-logo--white { display: none; }

  /* Icône burger → croix quand menu ouvert */
  body.menu-open .menu-toggle svg {
    transform: rotate(90deg);
    opacity: 0.4;
    transition: all .2s;
  }
  body.menu-open .menu-toggle::before {
    content: '×';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: var(--ink-900);
  }
  body.menu-open .menu-toggle svg { display: none; }

  /* ─── Typographie mobile ─── */
  h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.1; }
  h2 { font-size: clamp(1.55rem, 5.5vw, 2rem); line-height: 1.2; }
  h3 { font-size: 1.2rem; }

  /* ─── Sections : padding plus serré ─── */
  .section { padding: 64px 0; }
  .section-tight { padding: 36px 0; }
  .section-title { margin-bottom: 36px; padding: 0 8px; }

  /* ─── HERO mobile : design soigné ─── */
  .hero {
    min-height: 100svh;
    min-height: 100vh;
  }
  .hero--fullscreen {
    margin-top: calc(-1 * var(--header-h));
    padding-top: var(--header-h);
  }
  .hero-image {
    background-position: center center;
    background-size: cover;
  }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(26, 19, 13, 0.4) 0%,
      rgba(26, 19, 13, 0.55) 50%,
      rgba(26, 19, 13, 0.85) 100%);
  }
  .hero-content {
    padding: 32px 24px 100px;
    width: 100%;
    max-width: 480px;
  }
  .hero-logo { width: 64px; height: 64px; margin: 0 auto 18px; }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  }
  .hero h1 .accent {
    font-size: 0.7em;
    margin-top: 0.15em;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    padding: 0 4px;
  }
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-cta .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.78rem;
  }
  .hero-scroll {
    bottom: 24px;
    font-size: 0.62rem;
    letter-spacing: 0.24em;
  }
  .hero-scroll::after { height: 32px; }

  /* ─── Pills catégories ─── */
  .cat-pills {
    gap: 8px;
    padding: 0;
    justify-content: center;
  }
  .cat-pill {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 9px 14px;
    min-height: 36px;
  }

  /* ─── Products grid : 2 colonnes serrées sur mobile ─── */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-card-body { padding: 14px 12px; }
  .product-card-category { font-size: 0.6rem; letter-spacing: 0.14em; }
  .product-card-name { font-size: 0.98rem; line-height: 1.25; margin-bottom: 4px; }
  .product-card-desc {
    font-size: 0.78rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card-price { font-size: 0.98rem; }
  .product-card-price small { font-size: 0.55rem; letter-spacing: 0.08em; }
  .product-card-footer { padding-top: 10px; gap: 6px; }
  .product-card-link { font-size: 0.6rem; padding-right: 12px; letter-spacing: 0.1em; }
  .product-card-link::after { font-size: 0.85em; }

  /* Badges plus discrets sur mobile */
  .product-badges {
    top: 10px;
    left: 10px;
    gap: 4px;
  }
  .badge {
    font-size: 0.55rem;
    padding: 3px 8px;
    letter-spacing: 0.08em;
  }

  /* ─── Carte (menu) mobile ─── */
  .section--carte { padding: 64px 0; }
  .carte-item-link {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px 8px;
  }
  .carte-num { display: none; }
  .carte-content { width: 100%; }
  .carte-head {
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
  }
  .carte-name { font-size: 1.1rem; line-height: 1.25; }
  .carte-dots { display: none; }
  .carte-price { font-size: 1rem; }
  .carte-desc { font-size: 0.85rem; max-width: 100%; line-height: 1.55; }

  /* ─── Section histoire (about) ─── */
  .section--dark { padding: 64px 0; }
  .about-mark { width: 100px; }
  .about-mark-label { position: static; margin-top: 14px; }
  .about-mark-label strong { font-size: 1.5rem; }
  .about-glow { display: none; }

  /* ─── Trois exigences ─── */
  .pillars-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillar { text-align: center; padding: 0 8px; }
  .pillar-num {
    font-size: 1.8rem;
    min-width: auto;
    border-bottom: 0;
    margin-bottom: 12px;
    padding-bottom: 0;
  }
  .pillar h3 { font-size: 1.2rem; margin-bottom: 10px; }
  .pillar p { font-size: 0.9rem; line-height: 1.65; }

  /* ─── Visite (boutique + map) ─── */
  .section--visit .visit-info { padding: 48px 20px; }
  .visit-meta { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .visit-map .map { min-height: 280px; }

  /* ─── Contact ─── */
  .contact-form { padding: 28px 20px; }
  .contact-info-block { padding-bottom: 18px; }

  /* ─── Forms ─── */
  .form-row, .form-row-3 { grid-template-columns: 1fr !important; gap: 14px; }
  .form-group { margin-bottom: 18px; }
  .form-group label { font-size: 0.82rem; }

  /* ─── Page produit détail ─── */
  .product-detail { gap: 24px; }
  .product-detail-image { aspect-ratio: 1; max-width: 100%; }
  .product-detail-title { font-size: 1.7rem; line-height: 1.1; }
  .product-detail-short { font-size: 0.95rem; }
  .product-detail-price { font-size: 1.6rem; margin-bottom: 24px; }
  .product-variants { gap: 6px; }
  .variant-btn { padding: 10px 14px; font-size: 0.85rem; }
  .product-tabs { margin-top: 36px; padding-top: 36px; }

  /* ─── Panier ─── */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr {
    display: block;
    width: 100%;
  }
  .cart-table td {
    display: block;
    padding: 6px 0;
    border: 0;
    text-align: left !important;
  }
  .cart-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    background: var(--white);
  }
  .cart-item-image { width: 64px; height: 64px; }
  .qty-control input { width: 50px; }

  /* Le layout 2-colonnes panier devient 1-colonne */
  .cart-page-layout { grid-template-columns: 1fr !important; }

  /* ─── Boutique (shop) ─── */
  .shop-layout { grid-template-columns: 1fr; gap: 20px; }
  .shop-sidebar {
    background: var(--cream);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
  }
  .shop-toolbar { gap: 12px; }
  .shop-toolbar form { width: 100%; justify-content: space-between; }

  /* ─── Footer ─── */
  .site-footer { padding: 56px 0 28px; margin-top: 64px; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    margin-bottom: 32px;
  }
  .footer-newsletter { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.78rem;
    text-align: left;
  }
  .footer-links { gap: 16px; }

  /* ─── Tables (admin orders, etc.) ─── */
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.85rem;
  }
  .table th, .table td { padding: 10px 12px; }

  /* ─── Pagination ─── */
  .pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
    padding: 0 10px;
  }
}

/* =========================================================
   Phone · ≤ 480px : très petit écran
   ========================================================= */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.7rem, 8.5vw, 2.2rem); }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

  /* 1 colonne pour les produits sur très petit écran (plus de respect du contenu) */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .product-card-image { aspect-ratio: 4 / 3; }
  .product-card-name { font-size: 1.1rem; }
  .product-card-desc { -webkit-line-clamp: 3; font-size: 0.85rem; }

  .container { padding: 0 16px; }

  /* Boutons compacts */
  .btn { padding: 12px 20px; font-size: 0.78rem; }
  .btn-lg { padding: 14px 24px; font-size: 0.82rem; }

  /* Carte (menu) sur phone */
  .carte-item-link { padding: 18px 4px; }

  /* Hero ajustements ultra-mobile */
  .hero-content { padding: 24px 16px 90px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-subtitle { font-size: 0.9rem; }

  /* Section padding */
  .section { padding: 48px 0; }

  /* Forms */
  .contact-form { padding: 24px 18px; }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .site-header, .site-footer, .hero, .btn, .menu-toggle { display: none !important; }
  body { background: white; color: black; }
  .container { max-width: 100%; padding: 0; }
}

/* =========================================================
   v3.1 · Fix demandés : eyebrow, Mersier, scroll, footer, menu, carte, pâtissière
   ========================================================= */

/* ─── HERO : eyebrow lisible + brand Mersier en Macondo ─── */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eyebrow--hero {
  color: var(--copper-300);
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 0.74rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  padding: 6px 16px;
  border-top: 1px solid rgba(216, 177, 134, 0.5);
  border-bottom: 1px solid rgba(216, 177, 134, 0.5);
}
.hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 7rem);
  color: white;
  margin: 0 0 0.05em;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
  max-width: 580px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 36px;
}

/* On retire l'ancien hero-logo (remplacé par hero-brand texte) */
.hero-logo { display: none; }

/* ─── HERO scroll : simple flèche, plus de barre verticale ─── */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  user-select: none;
  transition: opacity .2s;
}
.hero-scroll:hover { color: white; opacity: 1; }
.hero-scroll svg {
  display: block;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll::before,
.hero-scroll::after {
  /* on supprime explicitement les artefacts de v2 */
  display: none !important;
  content: none;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ─── BURGER MENU · plus de fuite "lumière" depuis le header ─── */
/* Quand le menu mobile est ouvert : le header garde un fond opaque (pas de blur) */
@media (max-width: 900px) {
  body.menu-open .site-header,
  body.menu-open .site-header--transparent {
    background: var(--white) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(26, 19, 13, 0.06);
  }

  /* Drawer : un peu plus large + ombre + transition plus douce */
  .main-nav {
    width: min(340px, 90vw);
    padding: 96px 32px 40px;
    box-shadow: -20px 0 60px rgba(26, 19, 13, 0.25);
  }

  /* Le drawer doit recouvrir l'effet header — assurer aucun pixel de fuite */
  body.menu-open .main-nav {
    /* z-index supérieur à tout sauf le toggle */
    z-index: 1001;
  }

  /* Burger → X plus net (caractère unicode plus propre) */
  body.menu-open .menu-toggle::before {
    content: '';
    width: 22px;
    height: 22px;
    background:
      linear-gradient(45deg, transparent calc(50% - 1px), var(--ink-900) calc(50% - 1px), var(--ink-900) calc(50% + 1px), transparent calc(50% + 1px)),
      linear-gradient(-45deg, transparent calc(50% - 1px), var(--ink-900) calc(50% - 1px), var(--ink-900) calc(50% + 1px), transparent calc(50% + 1px));
    background-size: 22px 22px;
    background-position: center;
    background-repeat: no-repeat;
    position: static;
    display: block;
  }
}

/* ─── SECTION PÂTISSIÈRE · présentation Patrycja Mersier ─── */
.section--patissiere {
  background: var(--white);
  padding: 120px 0;
  position: relative;
}
.section--patissiere::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper-300), transparent);
}
.patissiere-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.patissiere-portrait {
  position: relative;
  border-radius: var(--radius-md);
  overflow: visible;
  aspect-ratio: 4 / 5;
}
.patissiere-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.patissiere-signature {
  position: absolute;
  right: -24px;
  bottom: 32px;
  background: var(--copper-700);
  color: white;
  padding: 18px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.patissiere-signature span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-200);
  margin-bottom: 4px;
}
.patissiere-signature strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: white;
  line-height: 1;
  display: block;
}
.patissiere-text .eyebrow { color: var(--copper-700); }
.patissiere-name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ink-900);
  font-weight: 400;
  margin: 8px 0 28px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.patissiere-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-700);
}
.patissiere-bio p { margin-bottom: 1em; }
.patissiere-bio p:last-child { margin-bottom: 0; }
.patissiere-cta { margin-top: 36px; }

/* ─── LA CARTE · lisibilité forcée ─── */
.section--carte {
  background: var(--white);
}
.carte-list {
  border-top: 1px solid var(--border);
}
.carte-item {
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.carte-item:hover { background: var(--cream); }
.carte-item-link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 26px 16px;
  color: inherit;
  text-decoration: none;
}
.carte-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--copper-700);
  font-weight: 400;
}
.carte-content { display: flex; flex-direction: column; gap: 8px; }
.carte-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.carte-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.005em;
  flex: 0 0 auto;
}
.carte-item:hover .carte-name { color: var(--copper-700); }
.carte-dots {
  flex: 1;
  border-bottom: 1px dotted var(--border-strong);
  align-self: end;
  margin-bottom: 8px;
  min-width: 24px;
}
.carte-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--copper-800);
  white-space: nowrap;
  text-align: right;
}
.carte-price small {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.carte-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0;
  max-width: 78%;
}

/* ─── FOOTER · responsive correct ─── */
.site-footer { padding: 80px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 56px;
  margin-bottom: 64px;
  max-width: 100%;
}

/* Tablette : 2 colonnes */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    margin-bottom: 48px;
  }
  .footer-newsletter { grid-column: span 2; max-width: 480px; }
}

/* Mobile : 1 colonne pleine largeur */
@media (max-width: 700px) {
  .site-footer {
    padding: 56px 0 28px;
    margin-top: 64px;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    margin-bottom: 32px;
    text-align: left;
  }
  .footer-newsletter {
    grid-column: span 1 !important;
    max-width: 100%;
  }
  .footer-newsletter form { max-width: 100%; }
  .footer-logo { width: 56px; height: 56px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.78rem;
    text-align: left;
    padding-top: 24px;
  }
  .footer-links { gap: 14px; flex-wrap: wrap; }
}

/* ─── PATISSIÈRE responsive ─── */
@media (max-width: 1024px) {
  .patissiere-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 640px;
  }
  .section--patissiere { padding: 80px 0; }
}
@media (max-width: 700px) {
  .patissiere-portrait { aspect-ratio: 4 / 5; max-width: 360px; margin: 0 auto; }
  .patissiere-signature {
    right: -12px;
    bottom: 20px;
    padding: 14px 20px;
  }
  .patissiere-signature strong { font-size: 1.25rem; }
  .patissiere-name { font-size: 2rem; margin: 6px 0 20px; }
  .patissiere-bio { font-size: 0.98rem; }
}

/* ─── CARTE mobile : compact mais lisible ─── */
@media (max-width: 700px) {
  .carte-item-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 4px;
  }
  .carte-num { display: none; }
  .carte-head { gap: 12px; flex-wrap: wrap; }
  .carte-name { font-size: 1.2rem; }
  .carte-dots { display: none; }
  .carte-price { font-size: 1.05rem; text-align: left; margin-left: auto; }
  .carte-desc { max-width: 100%; font-size: 0.9rem; }
}

/* ─── HERO mobile responsive (refresh) ─── */
@media (max-width: 700px) {
  .hero-brand { font-size: clamp(3.5rem, 16vw, 5rem); }
  .hero-title { font-size: clamp(1.15rem, 4.5vw, 1.5rem); margin-bottom: 18px; }
  .hero-subtitle { font-size: 0.95rem; max-width: 100%; margin-bottom: 28px; }
  .eyebrow--hero { font-size: 0.65rem; letter-spacing: 0.24em; padding: 5px 12px; }
  .hero-content { padding: 32px 24px 100px; }
}

/* =========================================================
   v3.2 · Burger plein écran + Selection signature mobile
   ========================================================= */

@media (max-width: 900px) {
  /* ─── DRAWER PLEIN ÉCRAN ─── */
  /* Plus de problème de z-index avec Leaflet ou tout autre élément.
     Le menu prend 100% de l'écran quand il s'ouvre. */
  .main-nav {
    position: fixed !important;
    inset: 0;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh;
    height: 100vh;
    background: var(--white);
    padding: 0;
    margin: 0;
    z-index: 9990;
    transform: translate3d(0, -100%, 0);
    transition: transform .35s var(--ease-out), visibility 0s linear .35s;
    visibility: hidden;
    opacity: 1;
    box-shadow: none;
    border: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition: transform .35s var(--ease-out), visibility 0s;
  }

  /* Plus besoin du overlay sombre — le drawer couvre tout */
  body.menu-open::after { display: none !important; content: none !important; }
  body.menu-open { overflow: hidden; }

  /* Header au-dessus du drawer pour que le X reste cliquable */
  body.menu-open .site-header,
  body.menu-open .site-header--transparent {
    background: var(--white) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    z-index: 9991;  /* au-dessus du drawer */
  }

  /* Drawer : padding-top pour ne pas être caché par le header */
  .main-nav {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 64px;
    padding-left: 32px;
    padding-right: 32px;
    align-items: center;
    justify-content: flex-start;
  }

  /* Liens du menu : style centré, plus aéré */
  .main-nav a {
    color: var(--ink-900) !important;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    display: block;
    text-align: center;
    width: 100%;
    max-width: 320px;
    transition: color .2s;
  }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a:hover,
  .main-nav a.active { color: var(--copper-700) !important; }
  .main-nav a.active { font-weight: 600; }

  /* Drawer : pas de sceau en bas (évite scroll inutile).
     Le logo M reste visible dans le header (top-left) au-dessus du drawer. */
  .main-nav::after { content: none; display: none; }

  /* Croix X bien lisible en haut à droite */
  body.menu-open .menu-toggle {
    color: var(--ink-900) !important;
  }

  /* Le panier et le compte restent visibles quand menu ouvert (utile) */
  body.menu-open .header-actions {
    pointer-events: auto;
  }
  body.menu-open .header-actions .btn-icon:not(.menu-toggle) {
    color: var(--ink-900) !important;
  }

  /* Brand reste visible en haut à gauche pendant menu ouvert */
  body.menu-open .brand-name {
    color: var(--ink-900) !important;
  }
  body.menu-open .site-header--transparent .brand-logo--white { display: none !important; }
  body.menu-open .site-header--transparent .brand-logo--dark { display: block !important; }
}

/* =========================================================
   v3.2 · SECTION SÉLECTION SIGNATURE · mobile parfait
   ========================================================= */
@media (max-width: 700px) {
  /* Section title plus aéré sur mobile */
  .section--carte {
    padding: 56px 0 64px;
  }
  .section--carte .section-title {
    margin-bottom: 32px;
    padding: 0 12px;
  }
  .section--carte .section-title .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--copper-700);
  }
  .section--carte .section-title h2 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    margin-bottom: 12px;
  }
  .section--carte .section-title p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-500);
    margin: 0;
  }

  /* Liste : items mieux espacés, bordures haut + bas */
  .carte-list {
    border-top: 1px solid var(--border);
    margin: 0 -4px;
  }
  .carte-item {
    border-bottom: 1px solid var(--border);
  }
  .carte-item:last-child { border-bottom: 1px solid var(--border); }

  .carte-item-link {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 16px;
  }
  .carte-num { display: none; }

  .carte-content { gap: 10px; }

  /* Head : nom à gauche + prix à droite sur une vraie ligne */
  .carte-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .carte-name {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    font-weight: 400;
    color: var(--ink-900);
    line-height: 1.2;
    flex: 1 1 auto;
    margin: 0;
  }
  .carte-dots { display: none; }
  .carte-price {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--copper-800);
    white-space: nowrap;
    text-align: right;
    flex: 0 0 auto;
    line-height: 1.2;
  }
  .carte-price small {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-500);
    font-weight: 500;
    margin-right: 4px;
  }
  .carte-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-500);
    margin: 0;
    max-width: 100%;
  }

  /* Hover devient un état "active" plus subtil sur tactile */
  .carte-item:hover {
    background: var(--cream);
  }

  /* Bouton "Toute la carte" mieux mis en valeur */
  .section--carte .text-center {
    margin-top: 32px;
  }
}

/* Légère amélioration desktop tablette pour la carte (≤900) */
@media (max-width: 900px) and (min-width: 701px) {
  .carte-item-link {
    grid-template-columns: 36px 1fr auto;
    gap: 20px;
    padding: 22px 14px;
  }
  .carte-num { font-size: 0.85rem; }
  .carte-name { font-size: 1.35rem; }
  .carte-price { font-size: 1.15rem; }
  .carte-desc { font-size: 0.92rem; max-width: 85%; }
}

/* =========================================================
   v3.3 · Logo M en header mobile (sans texte "Mersier")
   ========================================================= */

@media (max-width: 700px) {
  /* Sur mobile, ne plus afficher le texte "Mersier" dans le header,
     juste le petit logo. Texte trop encombrant + dupliqué visuellement. */
  .brand-text { display: none; }
  .brand { gap: 0; }
  .brand-logo { width: 38px; height: 38px; }
}

/* Quand le menu est ouvert, idem : pas de texte "Mersier" dans le header.
   Le logo M reste visible top-left ; le X reste top-right. */
@media (max-width: 900px) {
  body.menu-open .brand-text { display: none; }
}
