/* =========================================================================
   LA VIE EN ROUGE — Feuille de style principale
   Palette & typographie reprises du site vitrine (Framer)
   ----------------------------------------------------------------------- */

:root {
  /* Palette */
  --bordeaux:      #5e1326;   /* rouge profond signature */
  --bordeaux-dark: #45091a;
  --bordeaux-soft: #7a2236;
  --cream:         #fcf7f6;   /* crème / fond clair */
  --cream-2:       #f4ece9;
  --gold:          #b08d57;   /* or / bronze (accent) */
  --gold-soft:     #c9a978;
  --mauve:         #635a5d;   /* gris-mauve (texte courant) */
  --mauve-light:   #7d7376;
  --ink:           #2b1419;   /* texte foncé */
  --line:          rgba(94, 19, 38, 0.14);

  /* Titre du hero d'accueil (personnalisable indépendamment dans l'admin,
     ex : "Osez voir" en blanc, "la vie en rouge" en une autre couleur). */
  --hero-title-color:  var(--cream);
  --hero-title-accent: var(--gold-soft);

  /* Typo */
  --serif: 'EB Garamond', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Mesures */
  --maxw: 1240px;
  --radius: 4px;
  --shadow-sm: 0 6px 24px rgba(43, 20, 25, 0.08);
  --shadow-md: 0 18px 50px rgba(43, 20, 25, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 96px;
}

/* ----------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--mauve);
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* --------------------------- Typographie ------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bordeaux);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h4 { font-size: 1.5rem; }
p  { margin-bottom: 1rem; }
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.1rem;
  display: inline-block;
}
.script { font-style: italic; }

/* ----------------------------- Layout --------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.lead { font-size: 1.22rem; color: var(--mauve); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--mauve-light); }
.divider { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 1.6rem 0; }
.center .divider { margin-left: auto; margin-right: auto; }

/* ----------------------------- Boutons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 2.1em;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  text-transform: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1.1;
}
.btn--primary { background: var(--bordeaux); color: var(--cream); }
.btn--primary:hover { background: var(--bordeaux-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--bordeaux); color: var(--bordeaux); background: transparent; }
.btn--outline:hover { background: var(--bordeaux); color: var(--cream); }
.btn--light { border-color: rgba(252,247,246,0.7); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--bordeaux); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.66em 1.4em; font-size: 0.96rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ----------------------------- Header --------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  display: flex; align-items: center;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  transition: background 0.45s var(--ease), -webkit-backdrop-filter 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease), padding 0.45s var(--ease),
              transform 0.5s var(--ease);
  will-change: transform;
}
/* Voile dégradé derrière l'en-tête transparent : garantit la lisibilité
   du logo et des liens par-dessus n'importe quelle image de hero. */
.site-header::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 240%;
  background: linear-gradient(to bottom, rgba(16,7,11,0.6) 0%, rgba(16,7,11,0.22) 48%, transparent 100%);
  z-index: -1; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.site-header.is-solid::before, body.header-solid .site-header::before { opacity: 0; }
/* Masqué quand on descend, réaffiché quand on remonte */
.site-header.is-hidden { transform: translateY(-100%); }
/* Barre : logo centré en absolu, liens répartis de part et d'autre */
.nav-bar { position: relative; display: flex; align-items: center; min-height: 58px; width: 100%; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; padding-right: 58px; }
.nav__group { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); }
.nav a {
  font-family: var(--serif);
  font-size: 1.5rem; letter-spacing: 0.02em; text-transform: none;
  color: var(--cream); font-weight: 500; position: relative; padding: 4px 2px;
  white-space: nowrap; transition: color 0.3s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold-soft); transition: width 0.35s var(--ease);
}
.nav a:hover { color: var(--gold-soft); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--gold-soft); }

/* Logo centré */
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: block; }
.brand img { height: 104px; width: auto; display: block; transition: height 0.45s var(--ease); filter: drop-shadow(0 6px 18px rgba(0,0,0,0.18)); }

/* Panier (discret, à droite) */
.cart-link { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; color: var(--cream); z-index: 2; transition: color 0.3s; }
.cart-link:hover { color: var(--gold-soft); }
.cart-link svg { width: 27px; height: 27px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.cart-count {
  position: absolute; top: -9px; right: -11px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 10px; background: var(--gold); color: #fff;
  font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  line-height: 1; font-family: system-ui, sans-serif;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* Header — état "scrollé" / pages claires : fond bordeaux, logo réduit */
/* Comme le site d'origine : l'en-tête reste TRANSPARENT + flou au défilement
   et sur les pages claires (aucune teinte colorée, jamais de bandeau rouge). */
.site-header.is-solid,
body.header-solid .site-header {
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  padding: 22px 0;
}

/* Burger (mobile) */
.burger { display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  flex-direction: column; gap: 5px; width: 30px; height: 22px; justify-content: center; z-index: 3; }
.burger span { display: block; height: 2px; width: 100%; background: var(--cream); transition: transform 0.35s var(--ease), opacity 0.3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- Footer --------------------------------- */
.site-footer { background: var(--bordeaux-dark); color: rgba(252,247,246,0.82); padding-top: 80px; }
.site-footer a { color: rgba(252,247,246,0.82); transition: color 0.3s; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 56px; }
.footer-brand img { height: 92px; margin-bottom: 18px; }
.footer-brand p { font-size: 1.02rem; max-width: 34ch; color: rgba(252,247,246,0.7); }
.footer-col h5 { color: var(--cream); font-size: 0.86rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer-col ul li { margin-bottom: 11px; font-size: 1.02rem; }
.footer-bottom {
  border-top: 1px solid rgba(252,247,246,0.14);
  padding: 26px 0; display: flex; flex-wrap: wrap; gap: 14px 28px;
  align-items: center; justify-content: space-between;
  font-size: 0.86rem; color: rgba(252,247,246,0.55);
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-band { background: var(--bordeaux-dark); text-align: center; font-size: 0.8rem; color: rgba(252,247,246,0.5); padding: 0 0 22px; letter-spacing: 0.04em; }

/* ----------------------------- Hero ----------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--cream); overflow: hidden; padding-top: calc(var(--header-h) + 18px); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(40,8,18,0.55) 0%, rgba(40,8,18,0.35) 40%, rgba(40,8,18,0.72) 100%); }
.hero__content { max-width: 760px; }
.hero h1 { color: var(--hero-title-color); margin-bottom: 1.4rem; }
.hero h1 .hero-accent { color: var(--hero-title-accent); }
.hero .lead { color: rgba(252,247,246,0.92); font-size: 1.35rem; margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__eyebrow { color: var(--gold-soft); }

/* Hero secondaire (pages intérieures) */
.page-hero { position: relative; min-height: 60vh; display: flex; align-items: center; color: var(--cream); overflow: hidden; padding-top: calc(var(--header-h) + 18px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40,8,18,0.6), rgba(40,8,18,0.5)); }
.page-hero__content { max-width: 820px; }
.page-hero h1 { color: var(--cream); }
.page-hero .lead { color: rgba(252,247,246,0.9); }

/* Bandeau dégradé sombre pour les pages sans photo (panier, commande, fiche,
   contact, mentions) : permet à l'en-tête transparent de rester lisible. */
.page-banner {
  position: relative;
  padding: 170px 0 56px;
  background: linear-gradient(150deg, var(--bordeaux-dark) 0%, var(--bordeaux) 58%, #4a0f20 100%);
  color: var(--cream);
}
.page-banner .eyebrow { color: var(--gold-soft); }
.page-banner h1 { color: var(--cream); margin: 0; }
.page-banner .lead { color: rgba(252,247,246,0.9); margin-top: 12px; }
.page-banner .breadcrumb { color: rgba(252,247,246,0.66); padding-top: 0; margin-bottom: 16px; }
.page-banner .breadcrumb a:hover { color: var(--gold-soft); }
.page-banner .breadcrumb span { color: var(--gold-soft); }
@media (max-width: 860px) { .page-banner { padding: 96px 0 40px; } }

/* --------------------------- Sections diverses ------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split__media.is-tall img { aspect-ratio: 4/5; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature__num { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; }
.feature h4 { margin: 14px 0 10px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value { text-align: center; }
.value .ic { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--gold); }
.value .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.3; }
.value h4 { font-size: 1.2rem; margin-bottom: 6px; }
.value p { font-size: 0.98rem; }

/* Bandeau citation / CTA */
.cta-band { position: relative; color: var(--cream); text-align: center; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(40,8,18,0.66); }
.cta-band h2, .cta-band h3 { color: var(--cream); }
.cta-band .container { position: relative; z-index: 1; }

/* ============================ BOUTIQUE ================================= */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 46px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters h5 { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bordeaux); margin: 26px 0 12px; font-weight: 600; }
.filters h5:first-child { margin-top: 0; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--mauve); cursor: pointer; transition: color 0.25s; font-size: 1.04rem; }
.filter-opt:hover { color: var(--bordeaux); }
.filter-opt input { accent-color: var(--bordeaux); width: 16px; height: 16px; }
.filter-reset { margin-top: 22px; font-size: 0.9rem; color: var(--gold); text-decoration: underline; letter-spacing: 0.05em; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.shop-toolbar .count { font-size: 0.98rem; color: var(--mauve-light); letter-spacing: 0.04em; }
.shop-toolbar select { padding: 9px 16px; border: 1px solid var(--line); border-radius: 30px; background: #fff; color: var(--mauve); }
.filter-toggle { display: none; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; aspect-ratio: 3/4; background: var(--cream-2); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__tag {
  position: absolute; top: 14px; left: 14px; background: rgba(252,247,246,0.92);
  color: var(--bordeaux); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; font-weight: 600;
}
.product-card__tag--gold { background: var(--gold); color: #fff; }
.product-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card__domaine { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.product-card__name { font-size: 1.3rem; color: var(--bordeaux); line-height: 1.18; margin-bottom: 6px; }
.product-card__meta { font-size: 0.95rem; color: var(--mauve-light); margin-bottom: 16px; }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__price { font-size: 1.5rem; color: var(--bordeaux); font-weight: 600; }
.product-card__price span { font-size: 0.9rem; color: var(--mauve-light); font-weight: 400; }

.empty-state { text-align: center; padding: 80px 0; color: var(--mauve-light); }

/* Fiche produit */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.product-detail__media { position: sticky; top: calc(var(--header-h) + 20px); }
.product-detail__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); background: var(--cream-2); aspect-ratio: 3/4; object-fit: cover; }
.product-detail__domaine { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; font-weight: 600; }
.product-detail h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 10px 0 14px; }
.product-detail__price { font-size: 2rem; color: var(--bordeaux); font-weight: 600; margin: 18px 0; }
.product-detail__attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.attr { background: #fff; padding: 16px 20px; }
.attr dt { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.attr dd { font-size: 1.1rem; color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--bordeaux); border-radius: 40px; overflow: hidden; }
.qty button { width: 44px; height: 48px; font-size: 1.3rem; color: var(--bordeaux); transition: background 0.25s; }
.qty button:hover { background: var(--cream-2); }
.qty input { width: 46px; height: 48px; text-align: center; border: none; background: transparent; color: var(--ink); font-size: 1.1rem; }
.product-detail__buy { display: flex; gap: 14px; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.tasting-note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-top: 22px; }
.tasting-note h4 { margin-bottom: 12px; }

/* ============================== PANIER ================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__img img { width: 92px; height: 120px; object-fit: cover; border-radius: var(--radius); background: var(--cream-2); }
.cart-item__name { font-size: 1.22rem; color: var(--bordeaux); }
.cart-item__domaine { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.cart-item__meta { font-size: 0.92rem; color: var(--mauve-light); }
.cart-item__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item__price { font-size: 1.2rem; color: var(--bordeaux); font-weight: 600; }
.cart-item__remove { font-size: 0.84rem; color: var(--mauve-light); text-decoration: underline; }
.cart-item__remove:hover { color: var(--bordeaux); }
.qty--sm { transform: scale(0.84); transform-origin: right; }

.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary h3 { font-size: 1.5rem; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 1.05rem; }
.summary-row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; font-size: 1.4rem; color: var(--bordeaux); font-weight: 600; }
.summary-note { font-size: 0.86rem; color: var(--mauve-light); margin-top: 16px; }

/* ============================== FORMS ================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bordeaux); font-weight: 600; }
.field input, .field textarea, .field select {
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(94,19,38,0.08);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.9rem; color: var(--mauve-light); }

/* ============================ AGE GATE ================================ */
.age-gate {
  position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center;
  background: var(--bordeaux-dark); color: var(--cream); text-align: center; padding: 30px;
}
.age-gate__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.22; }
.age-gate__bg img { width: 100%; height: 100%; object-fit: cover; }
.age-gate__inner { position: relative; z-index: 1; max-width: 560px; }
.age-gate img.logo { height: 150px; margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4)); }
.age-gate h1 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.age-gate p { color: rgba(252,247,246,0.86); font-size: 1.15rem; margin-bottom: 8px; }
.age-gate__actions { display: flex; gap: 16px; justify-content: center; margin: 32px 0 22px; flex-wrap: wrap; }
.age-gate__legal { font-size: 0.84rem; color: rgba(252,247,246,0.6); margin-top: 10px; }

/* =========================== Notifications ============================ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(140%);
  background: var(--bordeaux); color: var(--cream); padding: 15px 26px; border-radius: 40px;
  box-shadow: var(--shadow-md); z-index: 4000; font-size: 1rem; letter-spacing: 0.04em;
  transition: transform 0.5s var(--ease); display: flex; align-items: center; gap: 12px; max-width: 90vw;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
.toast svg { width: 20px; height: 20px; stroke: var(--gold-soft); fill: none; stroke-width: 2; flex: none; }

/* =========================== Fil d'Ariane ============================= */
.breadcrumb { font-size: 0.86rem; letter-spacing: 0.06em; color: var(--mauve-light); margin-bottom: 14px; padding-top: 18px; }
.breadcrumb a:hover { color: var(--bordeaux); }
.breadcrumb span { color: var(--gold); }

/* ========================= Anim. au défilement ======================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }

/* ============================ Domaines ================================ */
.region-title { display: flex; align-items: center; gap: 18px; margin: 0 0 36px; }
.region-title h3 { color: var(--bordeaux); white-space: nowrap; }
.region-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.domaine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.domaine-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.domaine-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.domaine-card__region { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.domaine-card h4 { font-size: 1.55rem; margin-bottom: 8px; }
.domaine-card__app { font-size: 0.96rem; color: var(--bordeaux-soft); font-style: italic; margin-bottom: 14px; }
.domaine-card p { color: var(--mauve); margin-bottom: 18px; }
.domaine-card a { margin-top: auto; color: var(--bordeaux); font-weight: 600; letter-spacing: 0.04em; font-size: 0.98rem; align-self: flex-start; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; transition: color 0.25s; }
.domaine-card a:hover { color: var(--gold); }
@media (max-width: 760px) { .domaine-grid { grid-template-columns: 1fr; } }

/* ============================ Utilitaires ============================= */
.bg-cream2 { background: var(--cream-2); }
.bg-bordeaux { background: var(--bordeaux); color: var(--cream); }
.bg-bordeaux h2, .bg-bordeaux h3 { color: var(--cream); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }
.hide { display: none !important; }
.spacer-header { height: var(--header-h); }

/* ============================ Responsive ============================== */
@media (max-width: 1080px) {
  .feature-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 18px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: fixed; inset: 62px 0 0 0; background: var(--bordeaux);
    flex-direction: column; align-items: center; justify-content: center; gap: 30px; z-index: 999;
    padding-right: 0;
  }
  .nav.is-open .nav__group { display: contents; }
  .nav.is-open a { font-size: 1.7rem; }
  .burger { display: flex; }
  .site-header, .site-header.is-solid { background: rgba(0,0,0,0); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 10px 0; }
  .brand { left: 0; transform: translateY(-50%); }
  .brand img, .site-header.is-solid .brand img, body.header-solid .brand img { height: 46px; }
  .cart-link { right: 48px; }
  .split, .product-detail, .cart-layout, .shop-layout { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .product-detail__media, .cart-summary, .filters { position: static; }
  .cart-layout { gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .filters {
    display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; margin-bottom: 24px;
  }
  .filters.is-open { display: block; }
  .filter-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .feature-grid, .values, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-detail__attrs { grid-template-columns: 1fr; }
  .hero .lead { font-size: 1.15rem; }
  .hero__actions .btn, .age-gate__actions .btn { width: 100%; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item__right { grid-column: 2; align-items: flex-start; text-align: left; }
  .cart-item__img img { width: 70px; height: 92px; }
}

/* ===================================================================== */
/*  Ajouts e-commerce : badges stock, galerie, erreurs, bandeau          */
/* ===================================================================== */
.stock-badge {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; font-weight: 600;
}
.product-card__media .stock-badge { position: absolute; top: 12px; right: 12px; margin: 0; }
.stock-badge--low { background: #fbf0dd; color: #8a5a16; border: 1px solid #e6c98f; }
.stock-badge--out { background: #f3e3e6; color: var(--bordeaux); border: 1px solid #e0b6bf; }

.cart-item__warn { color: #8a5a16; font-size: 0.85rem; margin-top: 4px; }

.form-error {
  background: #f9e7ea; border: 1px solid #e0b6bf; color: var(--bordeaux);
  border-radius: var(--radius); padding: 12px 14px; margin: 6px 0 14px; font-size: 0.95rem;
}

.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 84px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; padding: 0; opacity: 0.7; transition: opacity .2s, border-color .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active, .pd-thumb:hover { opacity: 1; border-color: var(--gold); }

.announce-bar {
  background: var(--bordeaux); color: #fff; text-align: center; padding: 9px 16px;
  font-size: 0.9rem; letter-spacing: 0.02em; position: relative; z-index: 60;
}

/* Nos Vins — groupes par couleur */
.vins-group { margin-bottom: 64px; }
.vins-group:last-child { margin-bottom: 0; }

/* ===================================================================== */
/*  Hero "bouteille sur fond sombre" (visuels signature)                 */
/* ===================================================================== */
.hero--bottle .hero__bg img { object-position: 72% center; }
.hero--bottle::after {
  background: linear-gradient(90deg, rgba(14,24,24,0.86) 0%, rgba(14,24,24,0.5) 48%, rgba(14,24,24,0.05) 100%) !important;
}
@media (max-width: 760px) {
  .hero--bottle .hero__bg img { object-position: 68% center; }
  .hero--bottle::after { background: linear-gradient(180deg, rgba(14,24,24,0.5) 0%, rgba(14,24,24,0.82) 100%) !important; }
}
/* Cartouche image sombre encadrée (sections éditoriales) */
.framed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.framed img { width: 100%; height: 100%; object-fit: cover; }

/* ===================================================================== */
/*  Effets boutique : inclinaison 3D + reflet + lumière au curseur       */
/* ===================================================================== */
.product-card { position: relative; }
.fx-tilt { transform-style: preserve-3d; will-change: transform; }
.product-card__glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  border-radius: var(--radius); mix-blend-mode: soft-light; transition: opacity 0.3s var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,244,216,0.55), transparent 44%);
}
.fx-spot {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 28%), rgba(201,169,120,0.13), transparent 60%);
}
@media (prefers-reduced-motion: reduce) { .fx-spot { display: none; } }
@media (hover: none) { .fx-spot { display: none; } }

/* ===================================================================== */
/*  Diaporama du hero d'accueil (images défilantes, type Ken Burns)      */
/* ===================================================================== */
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s var(--ease); will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; animation: heroKen 7.5s ease forwards; }
@keyframes heroKen { from { transform: scale(1.03); } to { transform: scale(1.13); } }
@media (prefers-reduced-motion: reduce) { .hero__slide.is-active { animation: none; } }

/* ===================================================================== */
/*  Récapitulatif de commande (vignettes) + survols subtils              */
/* ===================================================================== */
.co-line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-line:last-of-type { border-bottom: none; }
.co-line__img { width: 52px; height: 66px; border-radius: 5px; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-sm); display: block; }
.co-line__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.co-line__img:hover img { transform: scale(1.14); }
.co-line__info { flex: 1; min-width: 0; }
.co-line__name { font-weight: 500; color: var(--ink); line-height: 1.25; }
.co-line__meta { font-size: 0.86rem; color: var(--mauve-light); }
.co-line__price { font-weight: 600; color: var(--bordeaux); white-space: nowrap; }

/* Survol subtil des images encadrées (histoire, accueil) */
.framed { overflow: hidden; }
.framed img { transition: transform 0.9s var(--ease); }
.framed:hover img { transform: scale(1.045); }

/* Domaines : accent doré au survol (subtil) */
.domaine-card { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.domaine-card:hover { border-color: var(--gold); }

/* ===================================================================== */
/*  Newsletter (pied de page) + avis Google                              */
/* ===================================================================== */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
.footer-news .news-row { display: flex; gap: 8px; }
.footer-news input[type="email"] { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 4px; border: 1px solid rgba(252,247,246,.25); background: rgba(252,247,246,.07); color: var(--cream); font-size: .95rem; }
.footer-news input[type="email"]::placeholder { color: rgba(252,247,246,.5); }
.news-consent { display: flex; align-items: flex-start; gap: 7px; font-size: .76rem; color: rgba(252,247,246,.62); margin-top: 10px; line-height: 1.4; cursor: pointer; }
.news-consent input { margin-top: 2px; }
.news-msg { font-size: .82rem; margin-top: 8px; min-height: 1em; }
.news-msg.is-ok { color: var(--gold-soft); }
.news-msg.is-err { color: #e9a6a6; }
.footer-reviews { display: inline-block; margin-top: 16px; color: var(--gold-soft); font-size: .9rem; letter-spacing: .02em; border-bottom: 1px solid rgba(201,169,120,.4); padding-bottom: 2px; }
.footer-reviews:hover { color: #fff; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===================================================================== */
/*  Confirmation de commande + suivi                                     */
/* ===================================================================== */
.confirm { max-width: 640px; margin: 0 auto; }
.confirm__check { width: 74px; height: 74px; margin: 0 auto 18px; }
.confirm__check svg { width: 100%; height: 100%; stroke: var(--bordeaux); fill: none; stroke-width: 1.4; }
.confirm__check { animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm h2 { text-align: center; }
.confirm__num { text-align: center; color: var(--mauve); margin-top: 4px; }
.confirm__lead { text-align: center; font-size: 1.12rem; color: var(--mauve); max-width: 52ch; margin: 12px auto 26px; }
.confirm__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.confirm__card h4 { color: var(--bordeaux); margin-bottom: 12px; font-size: 1.15rem; }
.confirm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.confirm__steps { list-style: none; padding: 0; margin: 0; }
.confirm__steps li { position: relative; padding: 6px 0 6px 26px; color: var(--mauve); }
.confirm__steps li::before { content: ''; position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.confirm__steps li.done { color: var(--ink); }
.confirm__steps li.done::before { background: var(--bordeaux); border-color: var(--bordeaux); }
.confirm__reassure { text-align: center; color: var(--mauve); font-size: .95rem; margin: 22px 0; }
.confirm__reassure a { color: var(--bordeaux); text-decoration: underline; }
.confirm__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) { .confirm__grid { grid-template-columns: 1fr; } }

.track-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.track-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.track-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 14px; }
.track-steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; }
.track-steps li { position: relative; padding: 9px 0 9px 30px; color: var(--mauve-light); }
.track-steps li::before { content: ''; position: absolute; left: 6px; top: 14px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: #fff; z-index: 1; }
.track-steps li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 20px; bottom: -6px; width: 2px; background: var(--line); }
.track-steps li.done { color: var(--ink); }
.track-steps li.done::before { background: var(--gold); border-color: var(--gold); }
.track-steps li.current { color: var(--bordeaux); font-weight: 600; }
.track-steps li.current::before { background: var(--bordeaux); border-color: var(--bordeaux); box-shadow: 0 0 0 4px rgba(94,19,38,.12); }
.track-cancel { background: #f7e4e4; color: var(--bordeaux); padding: 14px; border-radius: var(--radius); text-align: center; font-weight: 600; margin-bottom: 18px; }
.track-items { margin-bottom: 6px; }

/* Pastilles de statut (partagées confirmation/suivi) */
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.tag--pending { background: #eee; color: #555; }
.tag--paid, .tag--completed { background: #e3f1ea; color: #2f7d57; }
.tag--preparing { background: #e6eefb; color: #2a5db0; }
.tag--shipped { background: #eae6fb; color: #5b3fb0; }
.tag--cancelled { background: #f7e4e4; color: #b3261e; }
.tag--refunded { background: #fbf0dd; color: #8a5a16; }

/* ===================================================================== */
/*  Boutique : recherche, filtres avancés, slider de prix, favoris       */
/* ===================================================================== */
.shop-search { position: relative; max-width: 640px; margin: 0 auto 26px; }
.shop-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--mauve-light); fill: none; stroke-width: 1.8; }
.shop-search input { width: 100%; padding: 15px 20px 15px 48px; border: 1px solid var(--line); border-radius: 40px; background: #fff; font-size: 1.02rem; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
.shop-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,141,87,.12); }
.filter-block { margin-bottom: 24px; }
.filter-block h5 { margin-bottom: 11px; }

.price-range__values { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.price-range__track { position: relative; height: 34px; }
.price-range__track::before { content: ''; position: absolute; left: 2px; right: 2px; top: 16px; height: 3px; background: var(--line); border-radius: 3px; }
.price-range__track input[type=range] { position: absolute; left: 0; width: 100%; top: 0; margin: 0; height: 34px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.price-range__track input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--bordeaux); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.3); margin-top: 8px; }
.price-range__track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--bordeaux); cursor: pointer; border: 2px solid #fff; }
.price-range__track input[type=range]::-moz-range-track { background: none; }

.wish-btn { position: absolute; top: 12px; left: 12px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.88); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .2s, background .2s; }
.wish-btn svg { width: 19px; height: 19px; stroke: var(--bordeaux); fill: none; stroke-width: 1.6; transition: fill .2s; }
.wish-btn:hover { background: #fff; transform: scale(1.1); }
.wish-btn.is-on svg { fill: var(--bordeaux); }

/* ===================================================================== */
/*  Panier : livraison offerte + code promo                              */
/* ===================================================================== */
.freeship { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.freeship p { margin: 0 0 9px; font-size: .95rem; color: var(--ink); }
.freeship__bar { height: 8px; background: var(--cream-2); border-radius: 8px; overflow: hidden; }
.freeship__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 8px; transition: width .6s var(--ease); }
.freeship--done { border-color: var(--gold); }
.promo-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: .95rem; }
.promo-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f0e9df; color: var(--bordeaux); padding: 9px 13px; border-radius: 4px; font-size: .92rem; }
.promo-applied button { color: var(--bordeaux); font-size: 1.3rem; line-height: 1; padding: 0 4px; }
.promo-msg { font-size: .85rem; margin: 8px 0 0; min-height: 1em; }
.promo-msg.is-err { color: var(--bordeaux); }

/* ===================================================================== */
/*  Avis clients — rubans de cartes qui défilent (fondu sur les bords)   */
/* ===================================================================== */
.reviews-marquee {
  position: relative; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.reviews-row { display: flex; gap: 26px; width: max-content; will-change: transform;
  animation: reviews-slide linear infinite; }
.reviews-marquee:hover .reviews-row { animation-play-state: paused; }
@keyframes reviews-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  flex: 0 0 clamp(280px, 30vw, 380px); margin: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 26px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.review-card__stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 3px; }
.review-card blockquote {
  font-family: var(--serif); font-size: 1.16rem; font-style: italic; color: var(--ink);
  line-height: 1.55; margin: 0; quotes: "\201C" "\201D";
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.review-card blockquote::before { content: open-quote; color: var(--gold); }
.review-card blockquote::after { content: close-quote; color: var(--gold); }
.review-card figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.review-card__author { font-size: 1rem; color: var(--bordeaux); font-weight: 600; }
.review-card__src { font-size: .82rem; color: var(--mauve-light); }
@media (prefers-reduced-motion: reduce) { .reviews-row { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* =========================================================================
   Anti-flash d'hydratation (FOUC)
   Le contenu piloté depuis l'admin (textes, images, diaporama d'accueil) est
   récupéré en JavaScript. Pour éviter de voir le contenu par défaut PUIS son
   remplacement, on masque ces zones jusqu'à ce que le contenu final soit
   appliqué : le JS ajoute alors la classe `cms-ready` sur <html>, qui les
   révèle en fondu. Un filet de sécurité (setTimeout dans main.js) garantit
   l'affichage même si une requête échoue.
   ========================================================================= */
html:not(.cms-ready) [data-cms],
html:not(.cms-ready) [data-cms-html],
html:not(.cms-ready) [data-cms-img],
html:not(.cms-ready) .hero__slides { opacity: 0 !important; }
[data-cms], [data-cms-html], [data-cms-img], .hero__slides { transition: opacity .45s ease; }
