/* ============================================================
   Château Thieuley — Boutique
   Repris à l'identique de la maquette boutique.html :
   en-tête, page Boutique (hero, filtres, grille, cartes, carte éditoriale), réassurance, pied de page.
   Chargé sur toutes les pages (assets via ct_enqueue_boutique_theme).
   ============================================================ */

/* ─── VARIABLES ────────────────────────────────────────────── */
:root {
  --green:    #3D5A3E;
  --green-d:  #2F4530;
  --ivory:    #F7F3EC;
  --ivory-d:  #EDE9E0;
  --dark:     #1A1A1A;
  --muted:    #6B6B6B;
  --border:   #E0D9CE;
  --accent:   #8B7355;
  --csa-bg:   #1E2D1F;
  --csa-gold: #C4A862;
  --ms-terra: #C47B5A;
  --nav-h:    72px;
}

/* ─── BASE (page entière) ──────────────────────────────────── */
body.ct-boutique {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--ivory);
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Remise à zéro limitée aux blocs de la maquette (le reste de WooCommerce garde ses marges) */
:where(.nav, .shop-hero, .filter-bar, .shop-main, .reassurance, .footer) *,
:where(.nav, .shop-hero, .filter-bar, .shop-main, .reassurance, .footer) *::before,
:where(.nav, .shop-hero, .filter-bar, .shop-main, .reassurance, .footer) *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:where(.nav, .shop-hero, .filter-bar, .shop-main, .reassurance, .footer) img { display: block; max-width: 100%; height: auto; }
:where(.nav, .shop-hero, .filter-bar, .shop-main, .reassurance, .footer) a { color: inherit; text-decoration: none; }
:where(.nav, .shop-hero, .filter-bar, .shop-main, .reassurance, .footer) button { cursor: pointer; font-family: inherit; }

.ct-skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--green); color: #fff; padding: 0.5rem 1rem; }
.ct-skip-link:focus { left: 1rem; top: 1rem; }
.ct-nav-espace { height: var(--nav-h); }

/* ─── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
  background: rgba(247,243,236,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--dark);
}
.nav__logo:hover { color: var(--dark); }
.nav__logo span { color: var(--green); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--green); }
.nav__links a.active { border-bottom: 1px solid var(--green); padding-bottom: 2px; }

/* Bouton unique vers le site thieuley.com */
.nav__site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--green);
  color: #fff;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.nav__site svg { flex-shrink: 0; }
.nav__site:hover { background: var(--green-d); color: #fff; transform: translateY(-1px); }
.nav__links .nav__site { color: #fff; font-size: 0.75rem; }
.nav__links .nav__site:hover { color: #fff; }
.nav__links-site { display: none; }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.nav__cart:hover { border-color: var(--green); color: var(--green); }
.nav__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--green);
  color: #fff;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 0;
}
.nav__hamburger:hover,
.nav__hamburger:focus { background: none; }
.nav__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--dark);
  transition: transform 0.25s, opacity 0.25s;
}
.nav.is-open .nav__hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO BOUTIQUE ────────────────────────────────────────── */
.shop-hero {
  padding: calc(var(--nav-h) + 4rem) 2rem 3.5rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.shop-hero__text { flex: 1; min-width: 260px; }
.shop-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.shop-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
}
.shop-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.1;
  color: var(--dark);
}
.shop-hero__title em { font-style: italic; color: var(--green); }
.shop-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.shop-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
}
.shop-hero__badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.shop-hero__count-display { font-size: 0.875rem; color: var(--muted); }
.shop-hero__count-display strong { color: var(--dark); font-weight: 600; }

/* ─── HERO AVEC PHOTO ──────────────────────────────────────── */
.shop-hero-band { position: relative; isolation: isolate; }
.shop-hero-band--photo {
  background-color: #1E2D1F;
  background-image: var(--ct-hero-img);
  background-size: cover;
  background-position: center 55%;
}
.shop-hero-band--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,30,20,0.70) 0%, rgba(18,30,20,0.36) 46%, rgba(18,30,20,0) 100%),
    linear-gradient(0deg, rgba(18,30,20,0.28) 0%, rgba(18,30,20,0) 40%);
}
.shop-hero-band--photo .shop-hero { min-height: 540px; padding-top: calc(var(--nav-h) + 4.5rem); padding-bottom: 4rem; }
.shop-hero-band--photo .shop-hero__eyebrow { color: rgba(255,255,255,0.85); }
.shop-hero-band--photo .shop-hero__eyebrow::before { background: var(--csa-gold); }
.shop-hero-band--photo .shop-hero__title { color: #fff; }
.shop-hero-band--photo .shop-hero__title em { color: #E3D3A8; }
.shop-hero-band--photo .shop-hero__badge {
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.shop-hero-band--photo .shop-hero__count-display { color: rgba(255,255,255,0.78); }
.shop-hero-band--photo .shop-hero__count-display strong { color: #fff; }

/* ─── BARRE DE FILTRES ─────────────────────────────────────── */
.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(247,243,236,0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.admin-bar .filter-bar { top: calc(var(--nav-h) + 32px); }
.filter-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.filter-bar__brands {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover,
.filter-btn:focus {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.filter-btn.active,
.filter-btn.active:hover,
.filter-btn.active:focus {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.filter-btn__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
}
.filter-btn[data-filter="thieuley"] .filter-btn__dot { background: #3D5A3E; }
.filter-btn[data-filter="thieuley"].active .filter-btn__dot { background: rgba(255,255,255,0.7); }
.filter-btn[data-filter="clos-sainte-anne"] .filter-btn__dot { background: #C4A862; }
.filter-btn[data-filter="ms-courselle"] .filter-btn__dot { background: #C47B5A; }
.filter-btn[data-filter="ms-courselle"].active .filter-btn__dot { background: rgba(255,255,255,0.7); }
.filter-btn[data-filter="coffrets"] .filter-btn__dot,
.filter-btn[data-filter="epicerie"] .filter-btn__dot,
.filter-btn[data-filter="evenements"] .filter-btn__dot { background: var(--accent); }
.filter-btn[data-filter="coffrets"].active .filter-btn__dot,
.filter-btn[data-filter="epicerie"].active .filter-btn__dot,
.filter-btn[data-filter="evenements"].active .filter-btn__dot { background: rgba(255,255,255,0.7); }

.filter-bar__selects {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.filter-select {
  height: 34px;
  padding: 0 2rem 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dark);
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  cursor: pointer;
  transition: border-color 0.2s;
  width: auto;
}
.filter-select:focus { outline: none; border-color: var(--green); }
.filter-select-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── PAGE BOUTIQUE : CONTENU ──────────────────────────────── */
.shop-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}
.shop-main .woocommerce-message,
.shop-main .woocommerce-info,
.shop-main .woocommerce-error {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.25rem;
  list-style: none;
  font-size: 0.875rem;
  background: var(--ivory-d);
  border-left: 3px solid var(--green);
  color: var(--dark);
}
.shop-main .woocommerce-error { border-left-color: #B94A3B; }
.shop-main .woocommerce-message, .shop-main .woocommerce-info, .shop-main .woocommerce-error {
  border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; box-shadow: none; outline: none;
}
.shop-main .woocommerce-message::before, .shop-main .woocommerce-info::before, .shop-main .woocommerce-error::before { display: none; }
.shop-main .woocommerce-message a.button {
  float: right;
  background: var(--green);
  color: #fff;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 2px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
/* Une section par marque. Elle occupe autant de colonnes que de produits (3 au plus) : les petites gammes
   se placent côte à côte sur la même ligne, une grande gamme prend toute la largeur. */
.shop-section {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  grid-column: span var(--n, 3);
  gap: 1.5rem;
  align-items: start;
}
.shop-section--editorial { grid-column: 1 / -1; }
.shop-section.hidden { display: none; }

/* ─── CARTE PRODUIT STANDARD ───────────────────────────────── */
.ct-card {
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 3px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s, opacity 0.3s;
}
.ct-card[data-brand="thieuley"]         { border-top-color: var(--green); }
.ct-card[data-brand="clos-sainte-anne"] { border-top-color: var(--csa-gold); }
.ct-card[data-brand="ms-courselle"]     { border-top-color: var(--ms-terra); }
.ct-card[data-brand="epicerie"]         { border-top-color: var(--accent); }
.ct-card[data-brand="evenements"]       { border-top-color: #B09A7A; }
.ct-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.11);
}
.ct-card.hidden { display: none; }

.ct-card__thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory-d);
}
.ct-card__img,
.ct-card__thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}
/* Packshot détouré (PNG/WebP transparent) : bouteille entière, centrée, avec une ombre légère */
.ct-card__thumb img.ct-card__img {
  padding: 1.25rem 1.5rem 2.5rem;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.18));
}
.ct-card:hover .ct-card__img,
.ct-card:hover .ct-card__thumb img { transform: scale(1.05); }

.ct-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ct-card__placeholder::after {
  content: attr(data-millesime);
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6.5rem; font-weight: 200; letter-spacing: -0.04em;
  color: rgba(255,255,255,0.13);
  bottom: -0.75rem; right: 0.5rem;
  line-height: 1; pointer-events: none; user-select: none;
}
.ct-card__bottle {
  width: 64px; height: auto;
  position: relative; z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.22));
  transition: transform 0.5s ease;
}
.ct-card:hover .ct-card__bottle { transform: translateY(-5px); }
.ct-card__placeholder--evenement { display: flex; align-items: center; justify-content: center; }
.ct-card__evt-icon { width: 72px; height: 72px; color: #8B7355; opacity: 0.75; position: relative; z-index: 1; }

/* Badge marque */
.ct-badge {
  position: absolute;
  bottom: 0.9rem; left: 0.9rem;
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 0.65rem;
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 100px; pointer-events: none; z-index: 2;
  line-height: 1;
}
.ct-badge--thieuley { background: var(--green); color: #fff; }
.ct-badge--csa {
  background: rgba(30,45,31,0.92); color: var(--csa-gold);
  border: 1px solid rgba(196,168,98,0.4);
  font-family: 'Cormorant Garamond', serif; font-size: 0.65rem; letter-spacing: 0.14em;
}
.ct-badge--ms { background: var(--ms-terra); color: #fff; }
.ct-badge--epicerie { background: var(--accent); color: #fff; }
.ct-badge--evenements { background: #6B5640; color: #fff; }
.ct-badge--sale {
  position: absolute; top: 0.75rem; right: 0.75rem; bottom: auto; left: auto;
  background: #B94A3B; color: #fff; border-radius: 100px;
}

/* Corps de carte */
.ct-card__body {
  padding: 1.25rem 1.25rem 0.75rem;
  flex: 1; display: flex; flex-direction: column;
}
.ct-card__appellation {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.35rem;
}
.ct-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; font-size: 1.25rem; line-height: 1.2;
  color: var(--dark); margin-bottom: 0.4rem;
}
.ct-card__title a { color: inherit; }
.ct-card__title a:hover { color: var(--green); }
.ct-card__meta {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem;
}
.ct-card__millesime { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.ct-card__color-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ct-card__color-dot--rouge  { background: #7A2535; }
.ct-card__color-dot--blanc  { background: #C4A040; }
.ct-card__color-dot--rose   { background: #D4809A; }
.ct-card__color-dot--petnat { background: #8BAF7A; }

.ct-card__aromes { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.9rem; }
.ct-card__arome {
  font-size: 0.6rem; color: var(--muted);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--ivory); white-space: nowrap;
}

.ct-card__price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: auto; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.ct-card__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 500; color: var(--dark); line-height: 1;
}
.ct-card__price .woocommerce-Price-amount { font: inherit; color: inherit; }
.ct-card__from {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-right: 0.3rem;
}
.ct-card__unit { font-size: 0.62rem; color: var(--muted); font-weight: 400; }
.ct-card__per { font-size: 0.68rem; color: var(--muted); margin-top: 0.35rem; }
.ct-card__per .woocommerce-Price-amount { font: inherit; color: var(--dark); font-weight: 500; }
.ct-card__degressif { margin: 0.7rem 0 0; padding: 0.45rem 0.7rem; font-size: 0.68rem; line-height: 1.45; color: #3D5A3E; background: rgba(61,90,62,0.08); border-left: 2px solid #3D5A3E; }
.ct-card__degressif strong { font-weight: 600; letter-spacing: 0.04em; }
.ct-card__degressif .woocommerce-Price-amount { font: inherit; font-weight: 600; color: inherit; }

.ct-card__footer { padding: 0 1.25rem 1.25rem; }
.ct-card__btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; height: 42px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px;
  transition: background 0.25s, color 0.25s, transform 0.15s;
  background: var(--green); color: #fff;
  text-decoration: none;
}
.ct-card__btn:hover { background: var(--green-d); color: #fff; transform: translateY(-1px); }
.ct-card__btn--csa {
  background: transparent; border-color: var(--csa-gold); color: var(--csa-bg);
  font-family: 'Cormorant Garamond', serif; font-size: 0.8rem; letter-spacing: 0.18em;
}
.ct-card__btn--csa:hover { background: var(--csa-bg); color: var(--csa-gold); }
.ct-card__btn--ms { background: var(--ms-terra); color: #fff; border-radius: 100px; }
.ct-card__btn--ms:hover { background: #A8624A; color: #fff; }
.ct-card__btn--epicerie { background: transparent; border-color: var(--accent); color: var(--accent); }
.ct-card__btn--epicerie:hover { background: var(--accent); color: #fff; }

/* ─── CARTE ÉDITORIALE (pleine largeur) ────────────────────── */
.ct-card-editorial {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-radius: 2px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.ct-card-editorial.hidden { display: none; }
.ct-card-editorial__visual {
  position: relative;
  background: var(--csa-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}
.ct-card-editorial__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(196,168,98,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(61,90,62,0.3) 0%, transparent 55%);
}
.ct-card-editorial__photo {
  position: relative;
  z-index: 1;
  max-height: 380px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
}
.ct-card-editorial__bottle-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.ct-card-editorial__bottle { width: 72px; height: auto; opacity: 0.85; filter: brightness(1.4) sepia(0.3); }
.ct-card-editorial__millesime-tag {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 4rem;
  letter-spacing: -0.02em;
  color: rgba(196,168,98,0.25);
  line-height: 1;
}
.ct-card-editorial__badge {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--csa-gold);
  border: 1px solid rgba(196,168,98,0.35);
  padding: 0.35rem 0.875rem;
  border-radius: 1px;
}
.ct-card-editorial__content {
  background: var(--csa-bg);
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(196,168,98,0.12);
}
.ct-card-editorial__eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--csa-gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ct-card-editorial__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(196,168,98,0.2);
  max-width: 48px;
}
.ct-card-editorial__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}
.ct-card-editorial__title em { font-style: italic; color: var(--csa-gold); }
.ct-card-editorial__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  max-width: 380px;
}
.ct-card-editorial__tarif { margin-bottom: 1.75rem; }
.ct-card-editorial__meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin: 0 0 0.35rem;
  flex-wrap: wrap;
}
.ct-card-editorial__unit { font-size: 0.8125rem; color: rgba(255,255,255,0.55); }
.ct-card-editorial__per { font-size: 0.8125rem; color: rgba(255,255,255,0.55); margin: 0 0 0.75rem; }
.ct-card-editorial__per .woocommerce-Price-amount { font: inherit; color: rgba(255,255,255,0.8); font-weight: 500; }
.ct-card-editorial__degressif {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-left: 2px solid var(--csa-gold);
  background: rgba(196,168,98,0.08);
  max-width: 380px;
}
.ct-card-editorial__degressif strong { color: var(--csa-gold); font-weight: 600; }
.ct-card-editorial__degressif .woocommerce-Price-amount { font: inherit; color: inherit; font-weight: 600; }
.ct-card-editorial__price {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--csa-gold);
}
.ct-card-editorial__price .woocommerce-Price-amount { font: inherit; color: inherit; }
.ct-card-editorial__price small {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.ct-card-editorial__appellation {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 1.5rem;
}
.ct-card-editorial__notes { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.ct-card-editorial__note { font-size: 0.8125rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.ct-card-editorial__note strong {
  display: block;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.ct-card-editorial__actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ct-card-editorial__cta {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--csa-gold);
  color: var(--csa-gold);
  border-radius: 1px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.ct-card-editorial__cta:hover { background: var(--csa-gold); color: var(--csa-bg); }
.ct-card-editorial__cta--ghost {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.ct-card-editorial__cta { white-space: nowrap; }
.ct-card-editorial__cta--ghost:hover {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
  background: transparent;
}

/* ─── SÉPARATEUR DE MARQUE ─────────────────────────────────── */
.shop-brand-sep {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  transition: opacity 0.3s;
}
.shop-brand-sep.hidden { display: none; }
.shop-brand-sep__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.shop-brand-sep__line { flex: 1; height: 1px; background: var(--border); }

/* ─── ÉTAT VIDE ────────────────────────────────────────────── */
.shop-empty { grid-column: 1 / -1; text-align: center; padding: 5rem 2rem; display: none; }
.shop-empty.visible { display: block; }
.shop-empty p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
}

/* ─── PAGINATION (si plus de 100 produits) ─────────────────── */
.shop-pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 3.5rem; }
.shop-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 2px; border: 1px solid var(--border); background: #fff;
  font-size: 0.875rem; color: var(--muted); transition: all 0.2s;
}
.shop-pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.shop-pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

/* ─── BANDEAU RÉASSURANCE ──────────────────────────────────── */
.reassurance { background: var(--green); padding: 3rem 2rem; }
.reassurance__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.reassurance__item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.reassurance__icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.reassurance__icon svg { width: 18px; height: 18px; stroke: #fff; }
.reassurance__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.125rem;
  color: #fff;
}
.reassurance__desc { font-size: 0.8125rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
.reassurance__desc a { color: inherit; text-decoration: none; transition: color 0.2s; }
.reassurance__desc a:hover { color: #fff; text-decoration: underline; }

/* ─── PIED DE PAGE ─────────────────────────────────────────── */
.footer { background: #0F1A10; padding: 4rem 2rem 2rem; }
.footer__inner { max-width: 1280px; margin: 0 auto; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer__brand-desc { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.45); max-width: 240px; }
.footer__col .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer__col-title {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 0.625rem; }
.footer__col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer__col ul li a:hover { color: #fff; }
.footer__bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__legal { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer__legal a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer__legal a:hover { color: #fff; }
.footer__alcohol { font-size: 0.6875rem; color: rgba(255,255,255,0.2); font-style: italic; }

/* ─── ANIMATION D'ENTRÉE (filtre) ──────────────────────────── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ct-card.animate-in,
.ct-card-editorial.animate-in,
.shop-brand-sep.animate-in { animation: cardIn 0.3s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .ct-card, .ct-card__img, .ct-card__bottle { transition: none; }
  .ct-card.animate-in, .ct-card-editorial.animate-in, .shop-brand-sep.animate-in { animation: none; }
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
/* Menu replié (catégories + bouton) dès 1200 px */
@media (max-width: 1200px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__site--desktop { display: none; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.5rem 2rem 2rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  }
  .nav.is-open .nav__links a { font-size: 0.8125rem; }
  .nav.is-open .nav__links-site { display: block; margin-top: 0.5rem; }
}

@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-section { grid-template-columns: repeat(var(--n2, 2), minmax(0, 1fr)); grid-column: span var(--n2, 2); }
  .ct-card-editorial { grid-template-columns: 1fr; min-height: auto; }
  .ct-card-editorial__visual { min-height: 260px; }
  .ct-card-editorial__content { padding: 2rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .reassurance__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__inner { padding: 0 1rem; }
  .shop-hero-band--photo::before { background: linear-gradient(180deg, rgba(18,30,20,0.45) 0%, rgba(18,30,20,0.72) 100%); }
  .shop-hero-band--photo .shop-hero { min-height: 440px; padding: calc(var(--nav-h) + 2.5rem) 1rem 2rem; }
  .filter-bar__inner { height: auto; padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .filter-bar__brands { gap: 0.35rem; flex-wrap: wrap; flex-shrink: 1; max-width: 100%; }
  .filter-btn { height: 30px; padding: 0 0.75rem; font-size: 0.6875rem; }
  .filter-bar__selects { width: 100%; gap: 0.5rem; }
  .filter-select { flex: 1; }
  .shop-hero { flex-direction: column; align-items: flex-start; padding: calc(var(--nav-h) + 2.5rem) 1rem 2rem; }
  .shop-main { padding: 1.5rem 1rem 3rem; }
.shop-grid { grid-template-columns: 1fr; gap: 1rem; }
  .shop-section { grid-template-columns: minmax(0, 1fr); grid-column: auto; gap: 1rem; }
  .ct-card-editorial { grid-column: 1; }
  .ct-card-editorial__notes { flex-direction: column; gap: 1rem; }
  .reassurance__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── PAGES LÉGALES (CGV, mentions légales, confidentialité) ─── */
.ct-legal { background: var(--ivory); padding: 1rem 2rem 5rem; }
.ct-legal, .ct-legal *, .ct-legal *::before, .ct-legal *::after { box-sizing: border-box; }
.ct-legal__inner { max-width: 820px; margin: 0 auto; }
.ct-legal__chapeau { font-size: 1.0625rem; color: var(--muted); line-height: 1.7; margin: 0 0 2.5rem; max-width: 70ch; }
.ct-legal__sommaire { background: #fff; border: 1px solid var(--border); padding: 1.5rem 1.75rem; margin: 0 0 3rem; }
.ct-legal__sommaire ol { margin: 0; padding-left: 1.5rem; columns: 2; column-gap: 2.5rem; font-size: 0.9375rem; line-height: 1.9; }
.ct-legal__sommaire li { break-inside: avoid; }
.ct-legal a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(61,90,62,0.35); }
.ct-legal a:hover { text-decoration-color: var(--green); }
.ct-legal__article { padding: 0 0 2.25rem; margin: 0 0 2.25rem; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.ct-legal__article:last-of-type { border-bottom: 0; }
.ct-legal__article h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; color: var(--dark);
  margin: 0 0 1rem; display: flex; align-items: baseline; gap: 0.75rem;
}
.ct-legal__article h2 span { font-style: italic; color: var(--accent); font-size: 0.85em; min-width: 2.2em; }
.ct-legal__article h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 1.5rem 0 0.5rem; }
.ct-legal__article p, .ct-legal__article li, .ct-legal__article dd { font-size: 0.9688rem; line-height: 1.75; color: #333; }
.ct-legal__article p { margin: 0 0 0.9rem; }
.ct-legal__article ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.ct-legal__article li { margin: 0 0 0.35rem; }
.ct-legal__fiche { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 0.6rem 1.5rem; margin: 0 0 1rem; }
.ct-legal__fiche dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.25rem; }
.ct-legal__fiche dd { margin: 0; }
.ct-legal__tableau { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); background: #fff; }
.ct-legal__tableau table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.875rem; }
.ct-legal__tableau th { text-align: left; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--ivory-d); padding: 0.75rem 0.9rem; }
.ct-legal__tableau td { padding: 0.8rem 0.9rem; vertical-align: top; line-height: 1.55; border-top: 1px solid var(--border); color: #333; }
.ct-legal__tableau td:first-child { font-weight: 500; color: var(--dark); }
.ct-legal__maj { font-size: 0.8125rem; color: var(--muted); font-style: italic; margin: 1rem 0 0; }
@media (max-width: 768px) {
  .ct-legal { padding: 0.5rem 1.25rem 3.5rem; }
  .ct-legal__sommaire ol { columns: 1; }
  .ct-legal__fiche { grid-template-columns: 1fr; gap: 0.15rem; }
  .ct-legal__fiche dt { padding-top: 0.6rem; }
  .ct-legal__article h2 { flex-direction: column; gap: 0.15rem; }
}
.ct-legal__modele { background: #fff; border: 1px solid var(--border); padding: 1.25rem 1.5rem; margin: 0.5rem 0 0; }
.ct-legal__modele p:last-child, .ct-legal__modele ul:last-child { margin-bottom: 0; }

/* Texte réservé aux lecteurs d'écran (ex. « s'ouvre dans un nouvel onglet ») */
.ct-card-editorial__cta .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
