/* =====================================================================
   Cosnard — styles thème (brutaliste, palette noir/papier/doré).
   Tokens, layout, sections, composer, formulaire, admin overlay.
===================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-soft: #111010;
  --paper: #fafaf7;
  --paper-soft: #f6f2ea;
  --soft-bg: #f2efe7;
  --gold: #e8b431;
  --gold-soft: rgba(232,180,49,0.16);
  --line: #0a0a0a;
  --line-soft: rgba(10,10,10,0.16);
  --muted: #6a6a64;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.admin-bar { padding-top: 0; }
a { color: inherit; }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink); }
::-webkit-scrollbar-track { background: #e8e4da; }

.cs-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 16px; z-index: 9999; }
.cs-skip:focus { left: 8px; top: 8px; }

/* ---------- Typo tokens ---------- */
.cs-eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); }
.cs-eyebrow--xs { font-size: 9px; }
.cs-eyebrow--light { font-weight: 300; letter-spacing: 0.35em; }
.cs-eyebrow--gold { color: var(--gold); }
.cs-eyebrow--muted { color: var(--muted); }
.cs-eyebrow--on-dark { color: var(--gold); }
/* lining-nums : chiffres alignés sur les capitales (sinon Cormorant rend le 0 de
   "Dosage 0" à hauteur de minuscule, chiffres elzéviriens par défaut). */
.cs-serif-md { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.cs-serif-lg { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.cs-serif-xl { font-family: var(--serif); font-size: 76px; font-weight: 400; line-height: 0.95; letter-spacing: -0.015em; margin: 0; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.cs-italic { font-style: italic; }
.cs-hi { background: var(--gold); padding: 0 16px; display: inline-block; line-height: 0.95; }
.cs-hi-italic { font-style: italic; color: var(--gold); background: none; padding: 0; }
.cs-hi-color { color: var(--gold); }
.cs-hi-dot { font-style: italic; color: var(--gold); }
.cs-mut { color: var(--muted); }
.cs-multiline { white-space: pre-line; line-height: 1.35; }
.cs-arrow { color: var(--ink); font-size: 22px; }
.cs-arrow--gold { color: var(--gold); }
.cs-tag { display: inline-block; padding: 5px 9px; border: 1px solid var(--line-soft); font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.cs-link-gold { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.cs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; margin-right: 8px; }

/* ---------- CJK (zh / ja / ko) ----------
   Les interlignages serrés du design latin (0.88–0.95) font se chevaucher
   les glyphes pleins CJK/Hangul : on aère les grands titres dans ces langues.
   L'italique synthétique est retiré (illisible en CJK). */
html[lang^="zh"] .cs-serif-xl, html[lang^="ja"] .cs-serif-xl, html[lang^="ko"] .cs-serif-xl,
html[lang^="zh"] .cs-hero__h1, html[lang^="ja"] .cs-hero__h1, html[lang^="ko"] .cs-hero__h1,
html[lang^="zh"] .cs-hi, html[lang^="ja"] .cs-hi, html[lang^="ko"] .cs-hi {
  line-height: 1.18; letter-spacing: 0;
}
html[lang^="zh"] .cs-hero__h1 em, html[lang^="ja"] .cs-hero__h1 em, html[lang^="ko"] .cs-hero__h1 em,
html[lang^="zh"] .cs-hi-italic, html[lang^="ja"] .cs-hi-italic, html[lang^="ko"] .cs-hi-italic {
  font-style: normal;
}

/* ---------- Boutons ---------- */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 22px; border: none; cursor: pointer; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; transition: opacity .15s, background .15s; }
.cs-btn--gold { background: var(--gold); color: var(--ink); }
.cs-btn--gold:hover { opacity: 0.92; }
.cs-btn--gold[disabled] { background: #3a352a; color: #777; cursor: not-allowed; }
.cs-btn--ghost { background: transparent; border: 1px solid var(--line-soft); color: inherit; }
.cs-btn--ghost-dark { background: transparent; border: 1px solid rgba(246,242,234,0.4); color: var(--paper); }
.cs-btn--lg { padding: 20px 32px; font-size: 12px; }

/* ---------- NAV ---------- */
.cs-nav { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: stretch; width: 100%; height: 64px; max-height: 64px; margin: 0; box-sizing: border-box; }
body.admin-bar .cs-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cs-nav { top: 46px; } }
/* Reset défensif au cas où WP/WC injecterait des règles globales sur header/nav */
.cs-nav, .cs-nav__menu { gap: 0; flex-wrap: nowrap; }
.cs-nav a { box-shadow: none; }
.cs-nav__link, .cs-nav__brand, .cs-langswitch__current { background-image: none; }
.cs-nav__brand { display: flex; align-items: center; gap: 12px; padding: 14px 24px; text-decoration: none; color: var(--ink); height: 100%; max-height: 64px; box-sizing: border-box; flex-shrink: 0; }
.cs-nav__logo { height: 34px !important; max-height: 34px !important; width: auto !important; max-width: 80px !important; display: block; object-fit: contain; }
.cs-nav__name { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; }
.cs-nav__menu { display: flex; flex: 1; justify-content: flex-end; align-items: stretch; }
.cs-nav__link { display: flex; align-items: center; padding: 0 18px; border-left: 1px solid var(--ink); text-decoration: none; color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; transition: background .2s; }
.cs-nav__link:hover, .cs-nav__link.is-active { background: var(--gold); }

/* Icône panier dans la nav : même cadre que les autres liens, visible si count > 0 */
.cs-nav__link--cart { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.cs-nav__link--cart .cs-cart-icon { display: inline-flex; align-items: center; }
.cs-nav__link--cart svg { display: block; }
.cs-nav__link--cart .cs-cart-count { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; min-width: 16px; text-align: center; }
.cs-nav__link--cart[hidden] { display: none !important; }

/* Burger + menu mobile : n'existent visuellement qu'en ≤1024px (cf. media queries) */
.cs-nav__burger { display: none; }
.cs-mobilemenu { display: none; }

/* Sélecteur langue : drapeau actuel uniquement + popup au clic */
.cs-langswitch { position: relative; display: flex; align-items: center; border-left: 1px solid var(--ink); }
.cs-langswitch__current { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 100%; background: transparent; border: none; cursor: pointer; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.cs-langswitch__current:hover { background: var(--soft-bg); }
.cs-langswitch__flag { font-size: 18px; line-height: 1; }
.cs-langswitch__chevron { font-size: 9px; opacity: 0.6; transition: transform .2s; }
.cs-langswitch.is-open .cs-langswitch__chevron { transform: rotate(180deg); }

.cs-langpop { position: fixed; inset: 0; background: rgba(20,18,15,0.72); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.cs-langpop.is-open { display: flex; }
.cs-langpop__card { background: var(--paper); padding: 32px 28px; max-width: 460px; width: 100%; border: 1px solid var(--ink); position: relative; }
.cs-langpop__title { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 0 0 18px; }
.cs-langpop__close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); line-height: 1; padding: 4px 8px; }
.cs-langpop__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cs-langpop__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: all .15s; font-family: var(--sans); font-size: 11px; }
.cs-langpop__item:hover { background: var(--soft-bg); }
.cs-langpop__item.is-current { border-color: var(--gold); background: rgba(232,180,49,0.1); }
.cs-langpop__item-flag { font-size: 28px; line-height: 1; }

/* ---------- HERO ---------- */
.cs-hero { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr auto; min-height: calc(100vh - 64px); }
.cs-hero__title { grid-column: 1 / 3; padding: 56px 48px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: center; }
.cs-hero__eyebrow { margin-bottom: 32px; display: flex; gap: 14px; align-items: center; }
.cs-hero__eyebrow .cs-eyebrow--gold { background: var(--gold); padding: 4px 10px; color: var(--ink); }
.cs-hero__h1 { font-family: var(--serif); font-size: clamp(60px, 10vw, 108px); line-height: 0.9; font-weight: 400; margin: 0; letter-spacing: -0.025em; }
.cs-hero__emblem { background: var(--ink); padding: 40px 32px; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; border-bottom: 1px solid var(--ink); color: var(--paper); }
.cs-hero__emblem .cs-eyebrow--muted { color: #888; }
.cs-hero__logo { height: 290px; width: auto; align-self: center; }
/* Animation du logo par calques : conteneur au ratio de la compo (518x577), calques positionnés en %.
   Les img démarrent invisibles, logo-anim.js les révèle (noscript les force visibles). */
.cs-hero__logo--anim { position: relative; isolation: isolate; z-index: 0; aspect-ratio: 518 / 577; }
.cs-hero__logo--anim img { position: absolute; opacity: 0; height: auto; max-height: none; max-width: none; }
.cs-hero__quote { padding: 36px 40px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.cs-hero__quote-text { font-family: var(--serif); font-size: 26px; line-height: 1.3; font-style: italic; margin: 0; }
.cs-hero__cta-cuvees { padding: 36px 40px; border-right: 1px solid var(--ink); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; transition: background .2s; }
.cs-hero__cta-cuvees:hover { background: var(--soft-bg); }
.cs-hero__stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.cs-hero__stats > div { text-align: center; }
.cs-hero__stat-value { font-family: var(--serif); font-size: 40px; line-height: 1; margin-bottom: 8px; }
.cs-hero__quote-author { color: inherit; text-decoration: none; }
.cs-hero__quote-author:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--gold); }
.cs-hero__cta-row { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--ink); }
.cs-hero__cta-compose { background: var(--gold); color: var(--ink); padding: 36px 40px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; border-bottom: 1px solid var(--ink); gap: 20px; }
.cs-hero__cta-compose .cs-serif-xl { font-size: 40px; line-height: 1.05; }

/* ---------- CUVÉES ---------- */
.cs-cuvees { border-top: 1px solid var(--ink); padding: 72px 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.cs-cuvees__head { padding: 0 48px 36px; }
.cs-cuvees__title { margin: 8px 0 0; }
.cs-cuvees__layout { display: grid; grid-template-columns: 260px 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.cs-cuvees__list { border-right: 1px solid var(--ink); }
.cs-cuvees__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 22px; min-height: 62px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .15s; }
.cs-cuvees__row:last-child { border-bottom: 0; }
.cs-cuvees__row:hover, .cs-cuvees__row.is-active { background: var(--gold); }
.cs-cuvees__row:hover .cs-eyebrow--gold,
.cs-cuvees__row.is-active .cs-eyebrow--gold { color: #fff; }
.cs-cuvees__row-text { display: flex; flex-direction: column; gap: 4px; }
/* Ratafia (pas du champagne) : distinction visuelle aussi dans la liste des cuvées */
.cs-cuvees__row[data-cuvee="ratafia"] { background: #e5dbc2; }
.cs-cuvees__row[data-cuvee="ratafia"]:hover,
.cs-cuvees__row[data-cuvee="ratafia"].is-active { background: #7a5a1e; color: #fff; }
.cs-cuvees__panel-detail[data-panel="ratafia"] { background: #f0e7ce; }
/* Mot BIO en vert dans les noms/descriptions de cuvées */
.cs-bio-hi { color: #3e7c34; }
/* Ligne grands formats (magnum → nabuchodonosor), cliquable vers Contact */
.cs-cuvees__magnum { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 48px 0; text-decoration: none; color: var(--ink); }
.cs-cuvees__magnum-text { font-family: var(--serif); font-style: italic; font-size: 19px; }
.cs-cuvees__magnum:hover .cs-cuvees__magnum-text { text-decoration: underline; text-underline-offset: 4px; }
/* Panneaux empilés dans la même cellule : la zone garde la hauteur du plus
   grand panneau en permanence — aucun décalage de layout au hover. */
.cs-cuvees__panel { position: relative; min-height: 500px; display: grid; }
.cs-cuvees__panel-default { grid-area: 1 / 1; padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; visibility: hidden; }
.cs-cuvees__panel-default.is-visible { visibility: visible; }
.cs-cuvees__intro { font-family: var(--serif); font-size: 44px; line-height: 1.25; font-weight: 400; margin: 18px 0 36px; max-width: 900px; letter-spacing: -0.01em; }
.cs-cuvees__panel-detail { grid-area: 1 / 1; display: grid; grid-template-columns: 320px 1fr; visibility: hidden; }
.cs-cuvees__panel-detail.is-visible { visibility: visible; }
.cs-cuvees__bottle { background: radial-gradient(ellipse 72% 82% at 50% 46%, #2c2820 0%, #0a0a0a 72%); border-right: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; padding: 32px 16px; position: relative; }
.cs-cuvees__bottle-img { max-height: 400px; width: auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.45)); }
.cs-cuvees__bottle-placeholder { display: flex; align-items: center; justify-content: center; min-height: 360px; }
.cs-cuvees__bottle-fallback { font-size: 200px; color: var(--gold); opacity: 0.4; }
/* Vraie photo studio (fond noir intégré) : elle remplit toute la zone, pas de raccord ni débordement.
   Double classe = spécificité supérieure aux règles responsive mono-classe plus bas. */
.cs-cuvees__bottle.cs-cuvees__bottle--photo { padding: 0; overflow: hidden; }
.cs-cuvees__bottle-img.cs-cuvees__bottle-img--photo { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; max-width: none; object-fit: cover; filter: none; }
.cs-cuvees__details { padding: 32px 40px; display: flex; flex-direction: column; justify-content: center; }
.cs-cuvees__detail-name { font-size: 48px; margin: 6px 0 4px; line-height: 1.1; }
/* Récompenses : sur la ligne du nom, poussées à droite par le "grand espace" (margin auto) */
.cs-cuvees__name-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cs-cuvees__awards { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.cs-award { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: transform .18s ease, filter .18s ease; }
.cs-award img { height: 44px; width: auto; display: block; }
.cs-award:hover { transform: translateY(-2px); filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18)); }
.cs-award__note { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: #8a6d3b; }
.cs-award__note small { font-size: 10px; font-weight: 500; opacity: 0.75; }
.cs-cuvees__tagline { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); margin-bottom: 16px; }
.cs-cuvees__desc { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 18px; max-width: 860px; }
.cs-cuvees__desc p { margin: 0 0 12px; }
.cs-cuvees__desc p:last-child { margin-bottom: 0; }
/* Version courte des descriptions : uniquement sur téléphone */
.cs-cuvees__desc--short { display: none; }
.cs-achat__desc-short { display: none; }
.cs-cuvees__notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; margin-bottom: 28px; }
/* Alignement stable entre cuvées : la zone texte réserve la hauteur du texte le plus long
   (max mesuré 136px à 1920, 185px à 1366) → notes, accords et CTA ne bougent plus au switch. */
.cs-cuvees__desc--full { min-height: 140px; }
@media (max-width: 1500px) and (min-width: 768px) {
  .cs-cuvees__desc--full { min-height: 190px; }
}
.cs-cuvees__accord { font-family: var(--serif); font-style: italic; font-size: 18px; margin: 0 0 28px; }

/* ---------- COMPOSER ---------- */
.cs-composer { border-top: 1px solid var(--ink); padding: 40px 48px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.cs-composer__box { border: 1px solid var(--ink); }
.cs-composer__head { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--ink); }
.cs-composer__title { padding: 26px 36px; border-right: 1px solid var(--ink); }
.cs-composer__sizes { display: flex; }
.cs-composer__size { width: 88px; border: none; border-left: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; }
.cs-composer__size.is-active { background: var(--ink); color: var(--gold); }
.cs-composer__size.is-active .cs-eyebrow { color: var(--gold); }
.cs-composer__main { display: grid; grid-template-columns: 1fr 1.6fr; }
.cs-composer__carton { position: relative; background: radial-gradient(ellipse 92% 72% at 50% 56%, #1d1b14 0%, #0a0a0a 76%); border-right: 1px solid var(--ink); padding: 28px 30px; display: flex; flex-direction: column; color: var(--paper); min-height: 460px; }
/* Animation "carton qui se ferme" (option admin composer.close_anim) : 4 rabats
   couleur du fond du carton, léger liseré doré — les 2 verticaux se referment,
   légère pause, puis les 2 horizontaux par-dessus, puis un scotch "Cosnard"
   s'applique sur la couture centrale, et l'ensemble s'estompe. */
.cs-carton-close { position: absolute; inset: 0; overflow: hidden; z-index: 40; pointer-events: none; }
.cs-carton-close__flap { position: absolute; background: linear-gradient(180deg, #1d1b14 0%, #0d0c08 100%); transition: transform .55s cubic-bezier(.55,.05,.35,1); }
.cs-carton-close__flap--l { left: 0; top: 0; width: 50.5%; height: 100%; transform: translateX(-103%); border-right: 1px solid rgba(232,180,49,0.45); }
.cs-carton-close__flap--r { right: 0; top: 0; width: 50.5%; height: 100%; transform: translateX(103%); border-left: 1px solid rgba(232,180,49,0.45); }
.cs-carton-close__flap--t { left: 0; top: 0; width: 100%; height: 50.5%; transform: translateY(-103%); border-bottom: 1px solid rgba(232,180,49,0.45); transition-delay: .65s; }
.cs-carton-close__flap--b { left: 0; bottom: 0; width: 100%; height: 50.5%; transform: translateY(103%); border-top: 1px solid rgba(232,180,49,0.45); transition-delay: .65s; }
.cs-carton-close.is-closing .cs-carton-close__flap { transform: translate(0, 0); }
/* Scotch : bande OPAQUE (recouvre la couture des rabats horizontaux) qui se
   déroule du bord gauche vers la droite. */
.cs-carton-close__tape { position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); background: #2a2415; border-top: 1px solid rgba(232,180,49,0.6); border-bottom: 1px solid rgba(232,180,49,0.6); clip-path: inset(0 100% 0 0); transition: clip-path .5s cubic-bezier(.3,.5,.3,1) 1.35s; }
.cs-carton-close.is-closing .cs-carton-close__tape { clip-path: inset(0 0 0 0); }
.cs-carton-close { transition: opacity .45s ease; }
.cs-carton-close.is-opening { opacity: 0; }
.cs-composer__carton-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cs-composer__count { font-family: var(--serif); font-size: 22px; }
.cs-composer__count .cs-mut { color: #777; }
.cs-composer__slots { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; }
.cs-slot { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 86px; }
.cs-slot::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 5px; height: 1px; background: rgba(232,180,49,0.18); transition: background .15s; }
.cs-slot.is-hover::after { background: var(--gold); }
.cs-slot__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(232,180,49,0.4); margin-bottom: 12px; transition: all .15s; }
.cs-slot.is-hover .cs-slot__dot { width: 12px; height: 12px; background: var(--gold); }
.cs-slot__bottle { max-height: 86px; width: auto; animation: cs-drop .4s cubic-bezier(.2,.7,.3,1); filter: drop-shadow(0 0 1px rgba(255,255,255,0.7)) drop-shadow(0 0 2px rgba(255,255,255,0.3)) drop-shadow(0 8px 14px rgba(0,0,0,0.55)); transition: transform .22s cubic-bezier(.25,.7,.35,1.15); transform-origin: 50% 100%; }
.cs-slot:hover .cs-slot__bottle { transform: scale(1.14) translateY(-2px); }
/* Variante admin (composer.bottle_halo = bottom) : halo blanc décalé vers le bas
   → il n'épouse que les contours inférieurs de la bouteille, plus le haut. */
.cs-composer--halo-bottom .cs-slot__bottle { filter: drop-shadow(0 4px 3px rgba(255,255,255,0.55)) drop-shadow(0 8px 6px rgba(255,255,255,0.25)) drop-shadow(0 10px 16px rgba(0,0,0,0.55)); }
.cs-slot__remove { position: absolute; top: -2px; right: 14%; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.6); border: 1px solid var(--gold); color: var(--gold); font-size: 10px; cursor: pointer; padding: 0; z-index: 2; }
@keyframes cs-drop { 0% { transform: translateY(-22px) scale(.9); opacity: 0; } 60% { transform: translateY(3px) scale(1.02); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
.cs-composer__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(232,180,49,0.3); }
.cs-composer__actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 12px; }
.cs-composer__cuvees { display: flex; flex-direction: column; }
.cs-composer__grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); flex: 1; }
.cs-cuvee-tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); cursor: grab; transition: background .15s; }
.cs-cuvee-tile:hover { background: var(--soft-bg); }
.cs-cuvee-tile.is-disabled { cursor: default; opacity: 0.5; }
.cs-cuvee-tile--empty { cursor: default; pointer-events: none; min-height: 100px; }
.cs-cuvee-tile--empty:hover { background: transparent; }
.cs-cuvee-tile__img { height: 66px; width: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3)); transition: transform .22s cubic-bezier(.25,.7,.35,1.15), filter .22s ease-out; transform-origin: 50% 100%; }
.cs-cuvee-tile:hover .cs-cuvee-tile__img { transform: scale(1.18) translateY(-2px); filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45)); }
.cs-cuvee-tile.is-disabled:hover .cs-cuvee-tile__img { transform: none; }
.cs-cuvee-tile__info { flex: 1; }
.cs-cuvee-tile__price { font-size: 20px; margin-top: 4px; }
.cs-cuvee-tile__add { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.cs-composer__info { height: 150px; padding: 18px 26px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-top: 1px solid var(--line-soft); }
.cs-composer__info-name { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.cs-composer__see-shop { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border: 1px solid var(--ink); text-decoration: none; color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; transition: background .15s; }
.cs-composer__see-shop:hover { background: var(--soft-bg); }

/* "Voir mon panier" sous le bouton "Ajouter au panier" dans la colonne carton (fond sombre) */
.cs-composer__view-cart-link { display: inline-flex; align-self: center; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none; color: var(--paper); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: color .15s, border-color .15s; }
.cs-composer__view-cart-link:hover { color: var(--gold); border-bottom-color: var(--paper); }

/* "Voir le panier" sous le bouton ajouter dans la section Au carton */
.cs-achat__view-cart { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; align-self: center; text-decoration: none; color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: color .15s, border-color .15s; }
.cs-achat__view-cart:hover { color: var(--gold); border-bottom-color: var(--ink); }

/* Toast de confirmation après ajout au panier */
.cs-toast { position: fixed; bottom: 32px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 14px 22px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; box-shadow: 0 12px 30px rgba(0,0,0,0.45); opacity: 0; transition: opacity .25s, transform .25s; z-index: 1000; pointer-events: none; }
.cs-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
/* Le ghost pivote autour du point de saisie (goulot, en haut) — rotation pilotée en JS
   (pendule amorti). Le pop d'apparition est sur le wrapper interne pour ne pas entrer
   en conflit avec ce transform. */
.cs-composer__drag-ghost { position: fixed; pointer-events: none; z-index: 9999; filter: drop-shadow(0 18px 28px rgba(0,0,0,.55)); transform-origin: 50% 48px; will-change: transform; }
.cs-composer__drag-ghost img { height: 205px; width: auto; display: block; }
.cs-ghost-inner { animation: cs-ghost-pop .18s cubic-bezier(.2,.7,.3,1.2); }
@keyframes cs-ghost-pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
body.cs-dragging { cursor: grabbing !important; user-select: none; }
body.cs-dragging .cs-cuvee-tile { cursor: grabbing; }
.cs-cuvee-tile { user-select: none; }

/* Ratafia (pas du champagne) : fond plus sombre pour distinction visuelle */
.cs-cuvee-tile--ratafia { background: #e5dbc2; }
.cs-cuvee-tile--ratafia:hover { background: #dcd0b0; }

/* Popup au hover sur les tuiles cuvées et les slots du carton */
.cs-cuvee-popup { position: absolute; z-index: 1500; background: var(--paper); border: 1px solid var(--ink); padding: 16px 20px; width: 300px; max-width: calc(100vw - 32px); box-shadow: 0 18px 40px rgba(0,0,0,0.22); opacity: 0; pointer-events: none; transition: opacity .12s ease-out; }
.cs-cuvee-popup.is-visible { opacity: 1; }
.cs-cuvee-popup--ratafia { background: #f0e7ce; border-color: #7a5a1e; }
.cs-cuvee-popup__name { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin: 6px 0 4px; color: var(--ink); }
.cs-cuvee-popup__tagline { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); margin-bottom: 10px; }
.cs-cuvee-popup__desc { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.cs-cuvee-popup__notes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cs-cuvee-popup__notes .cs-tag { font-size: 10px; padding: 3px 8px; }
.cs-cuvee-popup__price { font-family: var(--serif); font-size: 20px; color: var(--gold); text-align: right; }

/* ---------- ACHAT ---------- */
.cs-achat { position: relative; overflow: hidden; background: var(--paper-soft); padding: 96px 48px; isolation: isolate; }
.cs-achat__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.04); /* léger zoom pour pas voir les bords */ }
.cs-achat__overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.8); z-index: 1; pointer-events: none; }
.cs-achat__bg-placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(232,180,49,0.05) 0 14px, transparent 14px 28px); display: flex; align-items: center; justify-content: center; z-index: 0; color: rgba(20,18,14,0.4); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.cs-achat__inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; }
.cs-achat__head { text-align: center; margin-bottom: 48px; }
.cs-achat__head .cs-serif-xl { font-size: 80px; }
.cs-achat__intro { max-width: 540px; margin: 18px auto 0; font-size: 20px; }
.cs-achat__grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); background: var(--paper); }
.cs-achat__left { padding: 40px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 14px; }
.cs-achat__cuvees { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-achat__cuvee { padding: 10px 14px; border: 1px solid var(--line-soft); background: transparent; cursor: pointer; font-family: var(--sans); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; }
.cs-achat__cuvee.is-active { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.cs-achat__sizes { display: flex; border: 1px solid var(--line-soft); }
.cs-achat__size { flex: 1; padding: 16px; background: transparent; border: none; border-left: 1px solid var(--line-soft); cursor: pointer; font-family: var(--serif); font-size: 20px; }
.cs-achat__size:first-child { border-left: 0; }
.cs-achat__size.is-active { background: var(--gold); color: var(--ink); font-weight: 500; }
.cs-achat__qty { display: inline-flex; align-items: center; border: 1px solid var(--line-soft); width: fit-content; }
.cs-achat__qty button { width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; font-size: 22px; }
.cs-achat__qty button[data-shop-qty="+"] { border-left: 1px solid var(--line-soft); }
.cs-achat__qty span { width: 64px; text-align: center; font-family: var(--serif); font-size: 28px; }
.cs-achat__right { padding: 40px; display: flex; flex-direction: column; }
/* min-height stable : la hauteur ne varie plus selon la longueur du texte de la cuvée,
   sinon la section (et son image de fond en absolute) se recadre à chaque clic. */
.cs-achat__preview { display: flex; gap: 24px; align-items: flex-start; padding: 20px 24px; padding-bottom: 24px; min-height: 300px; border-bottom: 1px solid var(--line-soft); background: transparent; transition: background .2s; }
.cs-achat__preview img { height: 180px; width: auto; transition: transform .22s cubic-bezier(.25,.7,.35,1.15); transform-origin: 50% 100%; }
.cs-achat__preview img:hover { transform: scale(1.12) translateY(-2px); }
/* Le prix "Carton de N · XX €" reste au même endroit quelle que soit la cuvée :
   la description réserve la hauteur du texte le plus long (max mesuré 146px / 125px à 1366). */
.cs-achat__desc-full { min-height: 148px; }
@media (max-width: 1500px) and (min-width: 768px) {
  .cs-achat__desc-full { min-height: 128px; }
}
.cs-achat__preview.is-ratafia { background: #e5dbc2; border-radius: 4px; border-bottom-color: #7a5a1e; }

/* Chip pour les cuvées dans la liste "Choisir la cuvée" : mise en avant Ratafia */
.cs-achat__cuvee[data-shop-cuvee="ratafia"] { background: #e5dbc2; border-color: #7a5a1e; }
.cs-achat__cuvee[data-shop-cuvee="ratafia"].is-active { background: #7a5a1e; color: #fff; }

/* Ratafia : les textes dorés se lisaient mal sur les fonds ocre. Testé blanc partout à la
   demande du client → illisible sur les fonds CLAIRS ; règle retenue : brun ratafia
   (#7a5a1e) sur fonds clairs, blanc sur fonds bruns foncés. Zones ratafia uniquement. */
.cs-cuvees__row[data-cuvee="ratafia"] .cs-eyebrow--gold,
.cs-cuvees__panel-detail[data-panel="ratafia"] .cs-eyebrow--gold,
.cs-cuvees__panel-detail[data-panel="ratafia"] .cs-cuvees__tagline,
.cs-cuvees__panel-detail[data-panel="ratafia"] .cs-link-gold,
.cs-cuvee-tile--ratafia .cs-eyebrow--gold,
.cs-cuvee-tile--ratafia .cs-cuvee-tile__price,
.cs-cuvee-popup--ratafia .cs-eyebrow--gold,
.cs-cuvee-popup--ratafia .cs-cuvee-popup__tagline,
.cs-achat__preview.is-ratafia .cs-eyebrow--gold,
.cs-achat__cuvee[data-shop-cuvee="ratafia"] .cs-eyebrow--gold { color: #7a5a1e; }
.cs-achat__preview.is-ratafia .cs-italic { color: #7a5a1e !important; } /* tagline (couleur posée inline par achat.js) */
.cs-cuvees__panel-detail[data-panel="ratafia"] .cs-link-gold { border-bottom-color: #7a5a1e; }
/* … et blanc sur les fonds bruns foncés (onglet/bouton actifs, survol) */
.cs-cuvees__row[data-cuvee="ratafia"]:hover .cs-eyebrow--gold,
.cs-cuvees__row[data-cuvee="ratafia"].is-active .cs-eyebrow--gold,
.cs-achat__cuvee[data-shop-cuvee="ratafia"].is-active .cs-eyebrow--gold { color: #fff; }

/* CTA "Envie d'un assemblage…" en bas à droite, sous le preview */
.cs-achat__compose-cta { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: color .15s; }
.cs-achat__compose-cta:hover { color: var(--gold); }
.cs-achat__compose-intro { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); line-height: 1.35; }
.cs-achat__compose-link { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; align-self: flex-start; transition: border-color .15s; }
.cs-achat__compose-cta:hover .cs-achat__compose-link { border-bottom-color: var(--ink); }

/* ---------- BIO ---------- */
.cs-bio { border-top: 1px solid var(--ink); padding-top: 56px; }
.cs-bio__head { padding: 0 48px 0; margin-bottom: 28px; }
.cs-bio__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.cs-bio__title { grid-column: 1 / 3; padding: 48px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; align-items: flex-end; }
.cs-bio__title .cs-serif-xl { font-size: 96px; line-height: 0.88; }
.cs-bio__cert { background: var(--gold); padding: 48px; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: center; }
.cs-bio__cert .cs-serif-xl { font-size: 64px; }
.cs-bio__photo { position: relative; min-height: 360px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: #d8d4ca; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cs-bio__photo--dark { background: #171513; color: var(--paper); border-right: 0; }
.cs-bio__photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.cs-photo-zone { position: relative; }
.cs-photo-placeholder-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cs-photo-placeholder { max-height: 120px; width: auto; opacity: 0.4; display: block; }
.cs-photo-legend { position: absolute; bottom: 16px; left: 16px; font-family: var(--serif); font-style: italic; font-size: 18px; color: rgba(20,18,14,0.6); }
.cs-photo-legend--dark { color: rgba(246,242,234,0.6); }
.cs-bio__body { padding: 48px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; align-items: center; }
.cs-bio__body p { font-size: 16px; line-height: 1.8; margin: 0; }
/* 8 étapes : 4 colonnes × 2 rangées */
.cs-bio__timeline { grid-column: 1 / 4; display: grid; grid-template-columns: repeat(4, 1fr); }
.cs-bio__timeline-item { padding: 32px 22px; border-right: 1px solid var(--ink); transition: background .15s; }
.cs-bio__timeline-item:hover { background: var(--soft-bg); }
.cs-bio__timeline-item:nth-child(4n) { border-right: 0; }
.cs-bio__timeline-item:nth-child(n+5) { border-top: 1px solid var(--ink); }
.cs-bio__timeline-item .cs-serif-lg { font-size: 44px; }

/* ---------- HISTOIRE ---------- */
.cs-histoire { border-top: 1px solid var(--ink); padding-top: 56px; }
.cs-histoire__head { padding: 0 48px; margin-bottom: 28px; }
.cs-histoire__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.cs-histoire__title { grid-column: 1 / 3; padding: 48px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; align-items: center; }
.cs-histoire__title .cs-serif-xl { font-size: 76px; }
.cs-histoire__seal { background: var(--ink); color: var(--paper); padding: 48px; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.cs-histoire__seal .cs-serif-xl { font-size: 80px; line-height: 0.9; }
/* Photo 1 : colonne gauche sur 2 rangées ; photo 2 : colonne droite sur les 2 rangées du bas.
   Les 5 chapitres se placent automatiquement dans les cellules restantes. */
.cs-histoire__photo { grid-column: 1 / 2; grid-row: 2 / 4; position: relative; min-height: 320px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: #d8d4ca; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cs-histoire__photo--2 { grid-column: 3 / 4; grid-row: 3 / 5; border-right: 0; }
.cs-histoire__chapter { padding: 40px 36px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transition: background .15s; }
.cs-histoire__chapter:hover { background: var(--soft-bg); }
.cs-histoire__chapter-sub { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold); margin: 4px 0 12px; }
.cs-histoire__chapter:nth-child(3n + 1) { border-right: 0; } /* dernier de chaque ligne — affinage manuel possible */

/* ---------- DÉGUSTATION ---------- */
/* Même motif d'en-tête de section que Bio/Histoire : bandeau doré + filet.
   Pas de border-top : les cellules du bas de la section Histoire dessinent déjà ce filet. */
/* Section = flex column de 100vh total : le layout prend la place restante
   sous l'en-tête (avant, layout ET photo faisaient chacun 100vh → la section
   débordait toujours de la hauteur de l'en-tête, ~99px). */
.cs-degustation { background: var(--paper-soft); padding-top: 56px; min-height: 100vh; display: flex; flex-direction: column; }
.cs-degustation__head { padding: 0 48px; margin-bottom: 28px; }
.cs-degustation__layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.cs-degustation__photo { position: relative; min-height: 0; background: #d8d4ca; display: flex; align-items: center; justify-content: center; overflow: hidden; border-right: 1px solid var(--line-soft); }
.cs-degustation__panel { padding: 96px 64px; display: flex; flex-direction: column; justify-content: center; }
.cs-degustation__panel .cs-serif-xl { font-size: 88px; }
.cs-degustation__intro { max-width: 460px; font-size: 21px; margin: 22px 0 40px; }
/* Case à cocher « L'Expérience » dans le formulaire */
.cs-form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; }
.cs-form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--gold); cursor: pointer; }
/* Bloc "L'Expérience" — accord mets-vins, sous le bouton */
.cs-degustation__exp { margin-top: 36px; }
.cs-degustation__exp-title { margin: 8px 0 6px; }
.cs-degustation__exp-text { max-width: 460px; font-size: 17px; margin: 0; }
.cs-degustation__form { border: 1px solid var(--line-soft); padding: 36px 40px; max-width: 720px; background: var(--paper); }
.cs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.cs-form-row--half { grid-template-columns: 1fr; max-width: calc(50% - 12px); }
.cs-form-row label, .cs-form-row-full label { display: block; }
.cs-form-row-full { margin-bottom: 28px; }
.cs-form-row input, .cs-form-row-full input, .cs-form-row-full textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line-soft); background: var(--paper); font-family: var(--sans); font-size: 14px; margin-top: 8px; }
.cs-form-row-full textarea { resize: vertical; }
.cs-form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cs-form-helper { font-size: 12px; }

/* ---------- CONTACT ---------- */
.cs-contact { border-top: 1px solid var(--ink); padding-top: 56px; }
.cs-contact__head { padding: 0 48px; margin-bottom: 28px; }
.cs-contact__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; grid-template-rows: 1fr 1fr; border-top: 1px solid var(--ink); }
.cs-contact__cell { padding: 40px 36px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-height: 200px; }
.cs-contact__cell--link { text-decoration: none; color: inherit; display: block; transition: background .15s; cursor: pointer; }
.cs-contact__cell--link:hover { background: var(--soft-bg); }
.cs-contact__cell--link:hover .cs-serif-lg { color: var(--gold); }
.cs-contact__cell .cs-serif-lg { font-size: 26px; line-height: 1.3; margin-top: 14px; }
/* z-index:0 crée un contexte d'empilement : les calques internes de Leaflet (z-index 200-1000)
   restent enfermés dans la carte et ne passent plus devant le mini-panier (250). */
.cs-contact__map { grid-column: 3 / 4; grid-row: 1 / 3; border-bottom: 1px solid var(--ink); min-height: 400px; background: var(--ink); position: relative; z-index: 0; }
/* Voile blanc 80% pour homogénéiser le rendu, mais clics/drag/zoom passent à travers (pointer-events:none).
   z-index 400 = au-dessus des tuiles Leaflet (~200) mais en-dessous du marqueur (~600) — la goutte dorée reste vive. */
.cs-contact__map::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.35); pointer-events: none; z-index: 400; }

/* ---------- FOOTER ---------- */
.cs-footer { display: flex; justify-content: space-between; align-items: center; padding: 24px 48px; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); gap: 16px; flex-wrap: wrap; }
.cs-footer__links { display: inline-flex; align-items: center; gap: 10px; }
.cs-footer__link { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.cs-footer__link:hover { color: var(--gold); border-color: var(--gold); }
/* Pages légales (mentions légales, CGV) : typographie du contenu */
.cs-legal { max-width: 760px; }
.cs-legal h2 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 36px 0 12px; }
.cs-legal p { margin: 0 0 14px; line-height: 1.75; font-size: 14.5px; }
.cs-legal a { color: inherit; border-bottom: 1px solid var(--gold); text-decoration: none; }
.cs-footer__top { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
/* Crédit Atopia.studio, ligne discrète tout en bas */
.cs-footer__credit { flex-basis: 100%; text-align: center; font-size: 10px; text-transform: none; letter-spacing: 0.22em; color: var(--muted); text-decoration: none; margin-top: 4px; transition: color .15s; }
.cs-footer__credit-a { color: #FED132; }
.cs-footer__credit:hover { color: var(--ink); }

/* ---------- RESPONSIVE (rapide, à affiner) ---------- */
@media (max-width: 1024px) {
  .cs-hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
  .cs-hero__title { grid-column: 1; border-right: 0; }
  .cs-cuvees__layout { grid-template-columns: 1fr; }
  .cs-cuvees__panel-detail { grid-template-columns: 1fr; }
  .cs-composer__main { grid-template-columns: 1fr; }
  .cs-composer__grid { grid-template-columns: 1fr; }
  .cs-achat__grid { grid-template-columns: 1fr; }
  .cs-bio__grid, .cs-histoire__grid { grid-template-columns: 1fr; }
  .cs-bio__title, .cs-histoire__title { grid-column: 1; }
  .cs-histoire__photo, .cs-histoire__photo--2 { grid-column: 1; grid-row: auto; }
  .cs-bio__timeline { grid-column: 1; grid-template-columns: repeat(2, 1fr); }
  .cs-bio__timeline-item:nth-child(4n) { border-right: 1px solid var(--ink); }
  .cs-bio__timeline-item:nth-child(2n) { border-right: 0; }
  .cs-bio__timeline-item:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .cs-degustation__layout { grid-template-columns: 1fr; }
  .cs-degustation__photo { min-height: 400px; }
  .cs-contact__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cs-contact__map { grid-column: 1; grid-row: auto; min-height: 300px; }

  /* Nav mobile/tablette : bande unique brand + panier + langue + burger.
     Les liens de section passent dans le panneau burger. */
  html { scroll-padding-top: 64px; }
  .cs-nav__link:not(.cs-nav__link--cart) { display: none; }
  .cs-nav__burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 56px; flex-shrink: 0; border: none; border-left: 1px solid var(--ink); background: transparent; cursor: pointer; padding: 0; }
  .cs-nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .cs-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cs-nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .cs-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cs-mobilemenu { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--paper); flex-direction: column; overflow-y: auto; }
  .cs-mobilemenu.is-open { display: flex; }
  .cs-mobilemenu__link { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 26px; line-height: 1; transition: background .15s; }
  .cs-mobilemenu__link:hover { background: var(--soft-bg); }
}

/* ---------- TÉLÉPHONE (≤767px) ----------
   Chaque section tient sur un écran de téléphone standard (360×800 → 430×932),
   sauf Histoire qui scrolle. Hero : logo au-dessus du titre + 2 boutons.
   Cuvées : panneau en haut (description 75 % / bouteille 25 %), liste 2 col.
   Composer : cuvées 2 col en haut, carton en bas, tap = ajout (pas de drag). */
@media (max-width: 767px) {
  /* Nav compacte */
  .cs-nav__brand { padding: 14px 14px; gap: 10px; }
  .cs-nav__name { font-size: 13px; }
  .cs-nav__link--cart { padding: 0 12px; }
  .cs-langswitch__current { padding: 0 10px; }

  /* HERO : logo seul (plus gros) + titre + 2 boutons en bas. L'ordre
     logo/titre est réglable dans l'admin (home.mobile_hero_order) —
     défaut logo en haut, modifier .cs-hero--m-title-first pour inverser. */
  .cs-hero { display: flex; flex-wrap: wrap; align-content: stretch; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
  .cs-hero__emblem { order: 1; flex: 0 0 100%; padding: 18px 24px; border-bottom: 0; justify-content: center; align-items: center; }
  .cs-hero__title { order: 2; flex: 1 1 100%; padding: 24px 22px; border-right: 0; border-bottom: 0; justify-content: center; }
  .cs-hero--m-title-first .cs-hero__title { order: 1; }
  .cs-hero--m-title-first .cs-hero__emblem { order: 2; }
  .cs-hero__emblem .cs-eyebrow { display: none; } /* juste le logo, sans labels */
  .cs-hero__logo { height: clamp(158px, 31.5svh, 277px); }
  .cs-hero__eyebrow { margin-bottom: 14px; flex-wrap: wrap; gap: 8px; row-gap: 6px; }
  .cs-hero__h1 { font-size: clamp(38px, 11.5vw, 52px); }
  .cs-hero__quote { display: none; }
  /* Les 2 CTA deviennent 2 boutons côte à côte */
  .cs-hero__cta-cuvees { order: 3; flex: 1 1 50%; min-width: 0; padding: 0; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
  .cs-hero__stats { display: none; }
  .cs-hero__cta-row { padding: 18px 16px; margin-top: 0; border-top: 0; justify-content: center; gap: 10px; height: 100%; box-sizing: border-box; }
  .cs-hero__cta-row .cs-serif-lg { font-size: 17px; }
  .cs-hero__cta-row .cs-arrow { font-size: 17px; }
  .cs-hero__cta-compose { order: 4; flex: 1 1 50%; min-width: 0; padding: 18px 16px; gap: 0; border-bottom: 0; align-items: center; justify-content: center; text-align: center; }
  .cs-hero__cta-compose .cs-eyebrow { display: none; }
  .cs-hero__cta-compose .cs-serif-xl { font-size: 17px; font-family: var(--serif); line-height: 1.15; }

  /* CUVÉES : panneau au-dessus, liste 2 colonnes en dessous */
  .cs-cuvees { padding: 18px 0 24px; min-height: 100svh; }
  .cs-cuvees__magnum { padding: 12px 18px 0; gap: 8px; }
  .cs-cuvees__magnum-text { font-size: 15px; }
  .cs-cuvees__head { padding: 0 18px 14px; }
  .cs-cuvees__title { font-size: 42px; }
  .cs-cuvees__layout { display: flex; flex-direction: column; }
  .cs-cuvees__panel { order: 1; min-height: 0; }
  .cs-cuvees__list { order: 2; border-right: 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; }
  .cs-cuvees__row--all { grid-column: 1 / -1; }
  .cs-cuvees__row { min-height: 44px; padding: 6px 14px; }
  .cs-cuvees__row:nth-child(even) { border-right: 1px solid var(--line-soft); }
  .cs-cuvees__row .cs-serif-md { font-size: 16px; }
  .cs-cuvees__row-text { gap: 2px; }
  .cs-cuvees__panel-default { padding: 22px 18px; }
  .cs-cuvees__intro { font-size: 21px; margin: 10px 0 0; }
  .cs-cuvees__panel-default > .cs-eyebrow--muted { display: none; } /* hint "survolez" */
  /* Détail : description 75 % à gauche, bouteille 25 % à droite */
  .cs-cuvees__panel-detail { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .cs-cuvees__details { order: 1; padding: 14px 14px 16px; }
  .cs-cuvees__bottle { order: 2; border-right: 0; border-left: 1px solid var(--ink); padding: 12px 6px; }
  .cs-cuvees__bottle-img { max-height: 165px; max-width: 100%; } /* jamais plus large que sa colonne (25 %) */
  .cs-cuvees__bottle-placeholder { min-height: 0; }
  .cs-cuvees__bottle-fallback { font-size: 70px; }
  .cs-cuvees__detail-name { font-size: 25px; margin: 4px 0 2px; }
  .cs-cuvees__name-row { gap: 10px; }
  .cs-cuvees__awards { margin-left: 0; width: 100%; gap: 12px; }
  .cs-award img { height: 26px; }
  .cs-award__note { font-size: 12px; }
  .cs-cuvees__tagline { font-size: 15px; margin-bottom: 8px; }
  .cs-cuvees__desc { font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
  /* Texte court dédié au mobile (coupé en fin de phrase), le texte long reste desktop */
  .cs-cuvees__desc--full { display: none; }
  .cs-cuvees__desc--short { display: block; }
  .cs-cuvees__notes { gap: 5px; margin-bottom: 10px; }
  .cs-cuvees__notes .cs-tag { font-size: 8px; padding: 3px 6px; letter-spacing: 0.2em; }
  .cs-cuvees__accord { font-size: 14px; margin: 0 0 10px; }

  /* COMPOSER : cuvées en haut (2 col), carton en bas, tout sur un écran */
  .cs-composer { padding: 14px 12px 20px; min-height: 100svh; }
  .cs-composer__head { grid-template-columns: 1fr; }
  .cs-composer__title { padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .cs-composer__title .cs-serif-xl { font-size: 30px; }
  .cs-composer__sizes { width: 100%; }
  .cs-composer__size { flex: 1 1 0; width: auto; padding: 7px; }
  .cs-composer__size:first-child { border-left: 0; }
  .cs-composer__size .cs-serif-lg { font-size: 21px; }
  .cs-composer__main { display: flex; flex-direction: column; }
  .cs-composer__cuvees { order: 1; }
  .cs-composer__carton { order: 2; min-height: 0; padding: 12px 14px 14px; border-right: 0; border-top: 1px solid var(--ink); }
  .cs-composer__grid { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .cs-composer__info { display: none; }
  .cs-cuvee-tile { padding: 7px 10px; gap: 8px; }
  .cs-cuvee-tile__img { height: 38px; }
  .cs-cuvee-tile:hover .cs-cuvee-tile__img { transform: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3)); }
  .cs-cuvee-tile__info .cs-serif-md { font-size: 13px; }
  .cs-cuvee-tile__info .cs-eyebrow--xs { display: none; }
  .cs-cuvee-tile__price { font-size: 14px; margin-top: 1px; }
  .cs-cuvee-tile__add { display: none; } /* tap sur la tuile = ajout */
  .cs-cuvee-tile--empty { min-height: 0; }
  .cs-composer__carton-head { margin-bottom: 6px; }
  .cs-composer__count { font-size: 17px; }
  .cs-composer__slots { gap: 6px; align-content: center; }
  .cs-slot { min-height: 54px; }
  .cs-slot__bottle { max-height: 54px; }
  .cs-slot__dot { margin-bottom: 8px; }
  .cs-slot__remove { width: 16px; height: 16px; font-size: 9px; top: -4px; }
  .cs-composer__total { margin-top: 10px; padding-top: 8px; }
  .cs-composer__total .cs-serif-lg { font-size: 24px; }
  .cs-composer__actions { margin-top: 8px; }
  .cs-composer__actions .cs-btn { padding: 12px 14px; font-size: 10px; }
  .cs-composer__view-cart-link { margin-top: 10px; font-size: 10px; }
  .cs-composer__see-shop { margin-top: 10px; padding: 12px; font-size: 10px; }

  /* ACHAT (Acheter par cuvée) */
  .cs-achat { padding: 20px 12px 24px; }
  .cs-achat__head { margin-bottom: 12px; }
  .cs-achat__head .cs-serif-xl { font-size: 30px; }
  .cs-achat__intro { font-size: 13px; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cs-achat__left { padding: 14px; border-right: 0; border-bottom: 1px solid var(--line-soft); gap: 7px; }
  .cs-achat__right { padding: 14px; }
  .cs-achat__cuvees { gap: 6px; }
  .cs-achat__cuvee { padding: 6px 8px; font-size: 8px; }
  .cs-achat__size { padding: 8px; font-size: 15px; }
  .cs-achat__qty button { width: 36px; height: 36px; font-size: 17px; }
  .cs-achat__qty span { width: 44px; font-size: 20px; }
  .cs-achat .cs-btn { padding: 13px; font-size: 10px; }
  .cs-achat__view-cart { margin-top: 10px; font-size: 10px; }
  .cs-achat__preview { gap: 12px; padding: 10px 10px 12px; min-height: 0; }
  .cs-achat__preview img { height: 92px; }
  .cs-achat__preview .cs-serif-lg { font-size: 22px; }
  .cs-achat__preview .cs-italic { display: none; } /* tagline : superflue ici sur téléphone */
  .cs-achat__desc-full { display: none; }
  .cs-achat__desc-short { display: block; }
  .cs-achat__compose-cta { padding-top: 12px; gap: 6px; }
  .cs-achat__compose-intro { display: none; }
  .cs-achat__compose-link { font-size: 10px; }

  /* BIO : une seule photo, timeline 2 colonnes compacte */
  .cs-bio { padding-top: 22px; }
  .cs-bio__head { padding: 0 18px; margin-bottom: 12px; }
  .cs-bio__grid { display: flex; flex-direction: column; }
  .cs-bio__title { padding: 18px; border-right: 0; }
  .cs-bio__title .cs-serif-xl { font-size: 40px; }
  .cs-bio__cert { padding: 14px 18px; flex-direction: row; align-items: baseline; gap: 12px; }
  .cs-bio__cert .cs-serif-xl { font-size: 28px; }
  .cs-bio__photo--1 { min-height: 160px; border-right: 0; }
  .cs-bio__photo--2 { display: none; }
  .cs-bio__body { padding: 16px 18px; border-right: 0; }
  .cs-bio__body p { font-size: 13.5px; line-height: 1.6; }
  .cs-bio__timeline { display: grid; grid-template-columns: 1fr 1fr; }
  .cs-bio__timeline-item { padding: 11px 14px; }
  .cs-bio__timeline-item .cs-serif-lg { font-size: 21px; }
  .cs-bio__timeline-item .cs-eyebrow { font-size: 9px; letter-spacing: 0.2em; }

  /* HISTOIRE : colonne unique compacte (le scroll est normal ici) */
  .cs-histoire { padding-top: 22px; }
  .cs-histoire__head { padding: 0 18px; margin-bottom: 12px; }
  .cs-histoire__grid { display: flex; flex-direction: column; }
  .cs-histoire__title { padding: 18px; border-right: 0; }
  .cs-histoire__title .cs-serif-xl { font-size: 36px; }
  .cs-histoire__seal { padding: 18px; gap: 6px; }
  .cs-histoire__seal .cs-serif-xl { font-size: 42px; }
  /* Photos en bandes fines intercalées entre les chapitres (photo 1 entre
     ch.2 et ch.3, photo 2 entre ch.4 et ch.5) via `order` sur les enfants
     de la grille : 1=titre 2=sceau 3=photo1 4..8=chapitres 9=photo2. */
  .cs-histoire__grid > :nth-child(1) { order: 1; }
  .cs-histoire__grid > :nth-child(2) { order: 2; }
  .cs-histoire__grid > :nth-child(4) { order: 3; }
  .cs-histoire__grid > :nth-child(5) { order: 4; }
  .cs-histoire__grid > :nth-child(3) { order: 5; }
  .cs-histoire__grid > :nth-child(6) { order: 6; }
  .cs-histoire__grid > :nth-child(7) { order: 7; }
  .cs-histoire__grid > :nth-child(9) { order: 8; }
  .cs-histoire__grid > :nth-child(8) { order: 9; }
  .cs-histoire__photo, .cs-histoire__photo--2 { min-height: 0; height: 80px; border-right: 0; }
  .cs-histoire__photo .cs-photo-legend { display: none; }
  .cs-histoire__chapter { padding: 16px 18px; border-right: 0; }
  .cs-histoire__chapter .cs-serif-lg { font-size: 24px; }
  .cs-histoire__chapter-sub { font-size: 15px; margin: 3px 0 8px; }
  .cs-histoire__chapter p { font-size: 13.5px; margin: 0; }

  /* DÉGUSTATION : pas de photo sur téléphone, panneau seul, un écran */
  .cs-degustation { padding-top: 22px; min-height: 100svh; }
  .cs-degustation__head { padding: 0 18px; margin-bottom: 12px; }
  .cs-degustation__layout { display: flex; flex-direction: column; }
  .cs-degustation__photo { display: none; }
  .cs-degustation__panel { flex: 1 1 auto; padding: 22px 18px 26px; }
  .cs-degustation__panel .cs-serif-xl { font-size: 38px; }
  .cs-degustation__intro { font-size: 15px; margin: 10px 0 18px; }
  .cs-degustation__form { padding: 16px 14px; }
  .cs-form-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .cs-form-row--half { max-width: 100%; }
  .cs-form-row-full { margin-bottom: 14px; }
  .cs-form-row input, .cs-form-row-full input, .cs-form-row-full textarea { padding: 11px 12px; }
  .cs-btn--lg { padding: 15px 18px; font-size: 11px; }

  /* CONTACT : 4 cellules en 2×2 + carte en dessous */
  .cs-contact { padding-top: 22px; }
  .cs-contact__head { padding: 0 18px; margin-bottom: 12px; }
  .cs-contact__head .cs-serif-xl { font-size: 40px; }
  .cs-contact__grid { grid-template-columns: 1fr 1fr; }
  .cs-contact__cell { min-height: 0; padding: 14px; border-right: 0; }
  .cs-contact__cell:nth-child(odd) { border-right: 1px solid var(--ink); }
  .cs-contact__cell .cs-serif-lg { font-size: 15px; line-height: 1.35; margin-top: 6px; }
  .cs-contact__map { grid-column: 1 / -1; min-height: 230px; }

  /* Footer */
  .cs-footer { padding: 16px 18px; justify-content: center; text-align: center; }
}

/* Petits téléphones (type iPhone SE) : on resserre encore composer et achat */
@media (max-width: 767px) and (max-height: 700px) {
  .cs-cuvees__magnum { padding-top: 8px; }
  .cs-cuvees__magnum-text { font-size: 13px; }
  .cs-cuvees__row { min-height: 38px; }
  .cs-composer { padding: 10px 10px 16px; }
  .cs-composer__title { padding: 9px 14px; }
  .cs-composer__title .cs-serif-xl { font-size: 25px; }
  .cs-composer__size { padding: 5px; }
  .cs-composer__size .cs-serif-lg { font-size: 18px; }
  .cs-cuvee-tile { padding: 5px 9px; }
  .cs-cuvee-tile__img { height: 32px; }
  .cs-slot { min-height: 46px; }
  .cs-slot__bottle { max-height: 46px; }
  .cs-composer__carton { padding: 10px 12px 12px; }
  .cs-composer__actions .cs-btn { padding: 10px 12px; }
  .cs-composer__see-shop { margin-top: 8px; padding: 10px; }
  .cs-cuvees__bottle-img { max-height: 140px; }
  .cs-achat { padding: 14px 10px 18px; }
  .cs-achat__head { margin-bottom: 8px; }
  .cs-achat__head .cs-serif-xl { font-size: 26px; }
  .cs-achat__left { padding: 12px; gap: 6px; }
  .cs-achat__right { padding: 12px; }
  .cs-achat__size { padding: 6px; }
  .cs-achat__qty button { width: 32px; height: 32px; }
  .cs-achat__qty span { width: 40px; font-size: 18px; }
  .cs-achat .cs-btn { padding: 11px; }
  .cs-achat__preview img { height: 80px; }
  .cs-achat__desc-short { display: none; } /* nom + prix suffisent sur très petit écran */
}

/* ---------- DESKTOP — écrans moins hauts que 1080 ----------
   Objectif : chaque section (sauf Histoire qui scrolle et Contact plus court)
   tient sur un seul écran pour toutes les résolutions desktop standard
   (1600×900, 1536×864, 1440×900, 1366×768, 1280×720). Trois paliers de
   compression verticale, uniquement en largeur desktop — le 1920×1080
   et plus haut restent strictement intacts. */

@media (min-width: 1025px) and (max-height: 940px) {
  .cs-cuvees { padding: 48px 0; }
  .cs-cuvees__magnum { padding-top: 12px; }
  .cs-cuvees__magnum-text { font-size: 17px; }
  .cs-achat { padding: 56px 48px; }
  .cs-achat__head { margin-bottom: 32px; }
  .cs-achat__head .cs-serif-xl { font-size: 64px; }
  .cs-achat__intro { font-size: 18px; margin-top: 12px; }
}

@media (min-width: 1025px) and (max-height: 800px) {
  /* Hero */
  .cs-hero__title { padding: 36px 48px; }
  .cs-hero__h1 { font-size: clamp(56px, 9vw, 88px); }
  .cs-hero__eyebrow { margin-bottom: 22px; }
  .cs-hero__emblem { padding: 28px 32px; }
  .cs-hero__logo { height: 225px; }
  .cs-hero__quote { padding: 26px 40px; gap: 16px; }
  .cs-hero__quote-text { font-size: 22px; }
  .cs-hero__cta-cuvees { padding: 26px 40px; }
  .cs-hero__stat-value { font-size: 34px; }
  .cs-hero__cta-row { padding-top: 14px; margin-top: 14px; }
  .cs-hero__cta-compose { padding: 26px 40px; gap: 14px; }
  .cs-hero__cta-compose .cs-serif-xl { font-size: 34px; }

  /* Cuvées */
  .cs-cuvees { padding: 40px 0; }
  .cs-cuvees__head { padding-bottom: 24px; }
  .cs-cuvees__magnum { padding-top: 10px; }
  .cs-cuvees__magnum-text { font-size: 16px; }
  .cs-cuvees__row { min-height: 50px; }
  .cs-cuvees__panel { min-height: 420px; }
  .cs-cuvees__panel-default { padding: 44px 64px; }
  .cs-cuvees__intro { font-size: 34px; margin: 14px 0 24px; }
  .cs-cuvees__bottle-img { max-height: 320px; }
  .cs-cuvees__bottle-placeholder { min-height: 280px; }
  .cs-cuvees__details { padding: 24px 40px; }
  .cs-cuvees__detail-name { font-size: 40px; }
  .cs-cuvees__tagline { font-size: 19px; margin-bottom: 10px; }
  .cs-cuvees__desc { margin-bottom: 12px; }
  .cs-cuvees__notes { margin-bottom: 18px; }
  .cs-cuvees__accord { margin-bottom: 18px; }

  /* Composer */
  .cs-composer { padding: 24px 48px; }
  .cs-composer__title { padding: 16px 36px; }
  .cs-composer__carton { min-height: 400px; padding: 20px 30px; }
  .cs-cuvee-tile { padding: 10px 18px; }
  .cs-cuvee-tile__img { height: 56px; }
  .cs-composer__info { height: 120px; padding: 12px 26px; }
  .cs-composer__see-shop { margin-top: 12px; padding: 12px; }

  /* Au carton */
  .cs-achat { padding: 44px 48px; }
  .cs-achat__head { margin-bottom: 26px; }
  .cs-achat__head .cs-serif-xl { font-size: 60px; }
  .cs-achat__intro { font-size: 17px; margin-top: 10px; }
  .cs-achat__left, .cs-achat__right { padding: 32px; }
  .cs-achat__preview { min-height: 0; padding: 16px 20px 20px; }
  .cs-achat__preview img { height: 150px; }
  .cs-achat__qty button { width: 44px; height: 44px; }
  .cs-achat__qty span { font-size: 25px; }
  .cs-achat__size { padding: 13px; font-size: 19px; }
  .cs-achat__compose-cta { padding-top: 20px; }

  /* Bio */
  .cs-bio { padding-top: 44px; }
  .cs-bio__head { margin-bottom: 24px; }
  .cs-bio__title { padding: 36px 48px; }
  .cs-bio__title .cs-serif-xl { font-size: 80px; }
  .cs-bio__cert { padding: 36px 48px; }
  .cs-bio__cert .cs-serif-xl { font-size: 56px; }
  .cs-bio__photo { min-height: 300px; }
  .cs-bio__body { padding: 36px 42px; }
  .cs-bio__timeline-item { padding: 24px 20px; }
  .cs-bio__timeline-item .cs-serif-lg { font-size: 38px; }

  /* Dégustation */
  .cs-degustation { padding-top: 36px; }
  .cs-degustation__head { margin-bottom: 20px; }
  .cs-degustation__panel { padding: 40px 56px; }
  .cs-degustation__panel .cs-serif-xl { font-size: 64px; }
  .cs-degustation__intro { font-size: 18px; margin: 16px 0 24px; }
  .cs-degustation__form { padding: 24px 32px; }
  .cs-form-row { margin-bottom: 16px; gap: 18px; }
  .cs-form-row-full { margin-bottom: 18px; }
}

@media (min-width: 1025px) and (max-height: 730px) {
  /* Hero */
  .cs-hero__title { padding: 28px 48px; }
  .cs-hero__h1 { font-size: clamp(52px, 8vw, 76px); }
  .cs-hero__logo { height: 185px; }
  .cs-hero__emblem { padding: 22px 32px; }
  .cs-hero__quote { padding: 20px 40px; }
  .cs-hero__quote-text { font-size: 20px; }
  .cs-hero__cta-cuvees { padding: 20px 40px; }
  .cs-hero__stat-value { font-size: 30px; }
  .cs-hero__cta-compose { padding: 20px 40px; }

  /* Cuvées */
  .cs-cuvees { padding: 28px 0; }
  .cs-cuvees__row { min-height: 44px; }
  .cs-cuvees__panel { min-height: 380px; }
  .cs-cuvees__panel-default { padding: 32px 64px; }
  .cs-cuvees__intro { font-size: 30px; }
  .cs-cuvees__bottle-img { max-height: 280px; }
  .cs-cuvees__detail-name { font-size: 34px; }

  /* Composer */
  .cs-composer { padding: 16px 48px; }
  .cs-composer__carton { min-height: 360px; }
  .cs-cuvee-tile__img { height: 48px; }
  .cs-composer__info { height: 104px; }

  /* Au carton */
  .cs-achat { padding: 32px 48px; }
  .cs-achat__head .cs-serif-xl { font-size: 52px; }
  .cs-achat__left, .cs-achat__right { padding: 24px 28px; }
  .cs-achat__preview img { height: 130px; }
  .cs-achat__cuvee { padding: 8px 12px; }

  /* Bio */
  .cs-bio { padding-top: 32px; }
  .cs-bio__title { padding: 28px 48px; }
  .cs-bio__title .cs-serif-xl { font-size: 68px; }
  .cs-bio__cert { padding: 28px 48px; }
  .cs-bio__cert .cs-serif-xl { font-size: 48px; }
  .cs-bio__photo { min-height: 260px; }
  .cs-bio__body { padding: 26px 38px; }
  .cs-bio__timeline-item { padding: 18px; }
  .cs-bio__timeline-item .cs-serif-lg { font-size: 34px; }

  /* Dégustation */
  .cs-degustation { padding-top: 26px; }
  .cs-degustation__panel { padding: 28px 56px; }
  .cs-degustation__panel .cs-serif-xl { font-size: 54px; }
  .cs-degustation__form { padding: 18px 28px; }
}

/* =====================================================================
   Pages secondaires (panier, commande, mon compte, page éditoriale)
===================================================================== */
.cs-shop-page { padding: 64px 48px 96px; min-height: calc(100vh - 220px); background: var(--paper); }
.cs-shop-page__inner { max-width: 1120px; margin: 0 auto; }
.cs-shop-page__title { font-family: var(--serif); font-size: clamp(56px, 7vw, 84px); font-weight: 400; line-height: 0.95; letter-spacing: -0.015em; margin: 0 0 44px; }
.cs-shop-page__body { font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--ink); }
.cs-shop-page__body p { margin: 0 0 14px; }
.cs-shop-page__body a:not(.button) { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.cs-shop-page__body a:not(.button):hover { border-bottom-color: var(--ink); }
.cs-shop-page__body h2 { font-family: var(--serif); font-size: 40px; font-weight: 400; margin: 36px 0 18px; line-height: 1; }
.cs-shop-page__body h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 28px 0 14px; line-height: 1.1; }

/* ---------- Mon compte (WooCommerce classic : login/inscription + tableau de bord) ---------- */
.woocommerce-account .col2-set { display: grid !important; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.woocommerce-account .col2-set .col-1, .woocommerce-account .col2-set .col-2 { float: none !important; width: 100% !important; max-width: none !important; }
/* Placement explicite : WooCommerce 10 décale sinon les colonnes en diagonale */
.woocommerce-account .col2-set .col-1 { grid-column: 1; grid-row: 1; }
.woocommerce-account .col2-set .col-2 { grid-column: 2; grid-row: 1; }
/* Cartes adresses (facturation / livraison côte à côte) */
.woocommerce-account .woocommerce-Addresses .woocommerce-Address { border: 1px solid var(--line-soft); background: #fff; padding: 22px 24px; }
.woocommerce-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 0 auto 0 0; line-height: 1.1; }
.woocommerce-account .woocommerce-Address-title .edit { white-space: nowrap; font-size: 11px; }
.woocommerce-account .woocommerce-Address address { font-style: normal; line-height: 1.7; font-size: 13.5px; }
.cs-shop-page__body form.login, .cs-shop-page__body form.register { border: 1px solid var(--line-soft); padding: 28px 30px 30px; margin: 0; background: #fff; }
.cs-shop-page__body .form-row, .cs-shop-page__body .woocommerce-form-row { display: block; margin: 0 0 18px; padding: 0; width: auto; float: none; }
.cs-shop-page__body form label { display: block; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cs-shop-page__body form input[type="text"],
.cs-shop-page__body form input[type="email"],
.cs-shop-page__body form input[type="password"],
.cs-shop-page__body form input[type="tel"] {
    width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid #cfc9ba; background: var(--paper);
    font-family: var(--sans); font-size: 14px; color: var(--ink); border-radius: 0;
}
.cs-shop-page__body form input:focus { outline: none; border-color: var(--gold); }
.cs-shop-page__body .password-input { display: block; position: relative; width: 100%; }
.cs-shop-page__body .show-password-input { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; }
.cs-shop-page__body .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); font-weight: 400; font-family: var(--sans); }
.cs-shop-page__body .woocommerce-form-login__rememberme span { font-size: 13px; }
.cs-shop-page__body button.button, .cs-shop-page__body .woocommerce-button {
    display: inline-block; background: var(--gold); color: var(--ink); border: 0; border-radius: 0; cursor: pointer;
    font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; padding: 14px 26px;
}
.cs-shop-page__body button.button:hover, .cs-shop-page__body .woocommerce-button:hover { opacity: 0.92; }
.cs-shop-page__body .lost_password { margin: 14px 0 0; font-size: 13px; }
.cs-shop-page__body .woocommerce-privacy-policy-text p { font-size: 12px; color: var(--muted); line-height: 1.6; }
/* WooCommerce 10 pose display:grid sur le conteneur .woocommerce (les enfants
   se retrouvent en colonnes min-content écrasées) — on reprend la main. */
.woocommerce-account div.woocommerce { display: block !important; }
.cs-shop-page__body .woocommerce-MyAccount-navigation { float: none; width: auto; margin-bottom: 28px; }
.cs-shop-page__body .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 26px; border-bottom: 1px solid var(--line-soft); }
.cs-shop-page__body .woocommerce-MyAccount-navigation li a { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; padding-bottom: 8px; }
.cs-shop-page__body .woocommerce-MyAccount-navigation li.is-active a, .cs-shop-page__body .woocommerce-MyAccount-navigation li a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.cs-shop-page__body .woocommerce-MyAccount-content { float: none; width: auto; }
.cs-shop-page__body .woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; }
.cs-shop-page__body .woocommerce-MyAccount-content th, .cs-shop-page__body .woocommerce-MyAccount-content td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.cs-shop-page__body .woocommerce-MyAccount-content thead th { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cs-shop-page__body .woocommerce-MyAccount-content .woocommerce-button { padding: 9px 16px; }
@media (max-width: 767px) {
    .woocommerce-account .col2-set { grid-template-columns: 1fr; gap: 28px; }
    .woocommerce-account .col2-set .col-1 { grid-column: 1; grid-row: auto; }
    .woocommerce-account .col2-set .col-2 { grid-column: 1; grid-row: auto; }
    .cs-shop-page__body form.login, .cs-shop-page__body form.register { padding: 20px 16px; }
    /* Onglets du compte : grille 2 colonnes propre sur téléphone */
    .cs-shop-page__body .woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
    .cs-shop-page__body .woocommerce-MyAccount-navigation li a { display: block; padding-bottom: 6px; }
    /* Tableau des commandes empilé : réaffiche le n° de commande en tête de carte */
    .woocommerce table.shop_table_responsive tbody th { display: block; padding: 14px 16px 0; font-size: 15px; }
    .woocommerce table.shop_table_responsive tbody th a { font-weight: 600; }
}

/* =====================================================================
   WooCommerce — restyle global brutaliste
===================================================================== */
.woocommerce, .woocommerce-page { font-family: var(--sans); color: var(--ink); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
    border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
    padding: 14px 18px 14px 22px; margin: 0 0 24px; font-size: 13px; line-height: 1.5;
    border-left-width: 4px; list-style: none;
}
.woocommerce-message { border-left-color: var(--gold); }
.woocommerce-info    { border-left-color: var(--ink); }
.woocommerce-error   { border-left-color: #b71c1c; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message a, .woocommerce-info a { color: inherit; border-bottom: 1px solid var(--gold); text-decoration: none; }

/* Tables */
.woocommerce table.shop_table, .woocommerce table.shop_attributes {
    width: 100%; border: 1px solid var(--ink); border-collapse: collapse; margin: 0 0 28px;
    border-radius: 0; background: var(--paper);
}
.woocommerce table.shop_table th {
    background: var(--ink); color: var(--paper); padding: 16px;
    font-family: var(--sans); font-size: 10px; font-weight: 600;
    letter-spacing: 0.3em; text-transform: uppercase; text-align: left;
}
/* Les th de CORPS de table (ex: n° de commande dans Mon compte → Commandes)
   ne doivent pas hériter du bandeau noir réservé aux en-têtes */
.woocommerce table.shop_table tbody th {
    background: transparent; color: var(--ink); padding: 18px 16px;
    border-top: 1px solid var(--line-soft); vertical-align: middle;
    font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.woocommerce table.shop_table td {
    padding: 18px 16px; border-top: 1px solid var(--line-soft); vertical-align: middle;
    font-size: 14px;
}
.woocommerce table.shop_table tbody tr:first-child td { border-top: 0; }
.woocommerce table.shop_table .product-thumbnail img { max-width: 78px; height: auto; display: block; }
.woocommerce table.shop_table .product-name a {
    font-family: var(--serif); font-size: 21px; color: var(--ink);
    text-decoration: none; line-height: 1.15;
}
.woocommerce table.shop_table .product-name a:hover { color: var(--gold); }
.woocommerce table.shop_table .product-name dl.variation,
.woocommerce table.shop_table .product-name .wc-item-meta {
    font-size: 11px; color: var(--muted); margin: 6px 0 0; padding: 0;
    list-style: none;
}
.woocommerce table.shop_table .product-name dl.variation dt,
.woocommerce table.shop_table .wc-item-meta-label {
    font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
    font-size: 10px; color: var(--gold); margin-right: 4px;
}
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal,
.woocommerce table.shop_table td.product-total,
.woocommerce .amount {
    font-family: var(--serif); font-size: 18px; font-weight: 400;
}
.woocommerce table.shop_table tfoot th { background: var(--paper); color: var(--ink); border-top: 2px solid var(--ink); }
.woocommerce table.shop_table tfoot td { background: var(--paper); border-top: 2px solid var(--ink); }
.woocommerce table.shop_table .order-total .amount { font-size: 26px; color: var(--gold); }
.woocommerce table.shop_table .product-remove a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper);
    text-decoration: none; font-size: 14px; line-height: 1; transition: opacity .15s;
}
.woocommerce table.shop_table .product-remove a:hover { opacity: 0.85; background: #b71c1c; }

/* Quantity */
.woocommerce .quantity input.qty {
    width: 64px; padding: 10px 8px; border: 1px solid var(--line);
    font-family: var(--serif); font-size: 18px; text-align: center; background: var(--paper);
    -moz-appearance: textfield;
}
.woocommerce .quantity input.qty:focus { outline: none; border-color: var(--gold); }

/* Boutons WC → style cs-btn (gold) */
.woocommerce .button, .woocommerce-page .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce input.button.alt,
.wc-block-components-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--gold); color: var(--ink);
    border: none; border-radius: 0;
    padding: 16px 22px;
    font-family: var(--sans); font-size: 11px; font-weight: 600;
    letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: opacity .15s, background .15s; line-height: 1;
}
.woocommerce .button:hover, .woocommerce a.button:hover,
.woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce input.button.alt:hover { opacity: 0.92; background: var(--gold); color: var(--ink); }
.woocommerce .button[disabled], .woocommerce a.button.disabled,
.woocommerce button.button:disabled, .woocommerce input.button:disabled { background: #d6d2c5; color: #999; cursor: not-allowed; }
/* Boutons secondaires : retour boutique, mettre à jour, appliquer code, etc. */
.woocommerce a.button.wc-backward,
.woocommerce-cart .return-to-shop a.button,
.woocommerce-cart .actions .button:not([name="proceed"]) {
    background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.woocommerce a.button.wc-backward:hover,
.woocommerce-cart .return-to-shop a.button:hover,
.woocommerce-cart .actions .button:not([name="proceed"]):hover { background: var(--ink); color: var(--paper); }

/* Suppression des snackbars/notices WC Blocks (popups bas-écran "ajouté/retiré").
   On masque tous les types non-erreur — on gère le feedback nous-mêmes via toast/modale.
   Les notices d'erreur (rupture stock, etc.) restent visibles. */
.wc-block-components-snackbar-list,
.wc-block-components-snackbar,
.components-snackbar-list,
.components-snackbar,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-info,
.wc-block-store-notice.is-success,
.wc-block-store-notice.is-info,
.woocommerce-message,
.woocommerce-info,
.woocommerce-store-notice {
    display: none !important;
}

/* === MODAL générique (utilisée par confirmation panier) === */
.cs-modal { position: fixed; inset: 0; background: rgba(20,18,15,0.78); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; font-family: var(--sans); overflow-y: auto; }
.cs-modal.is-open { display: flex; }
.cs-modal__card { background: var(--paper); padding: 40px 36px 32px; max-width: 520px; width: 100%; border: 1px solid var(--ink); position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.4); max-height: calc(100vh - 40px); overflow-y: auto; margin: auto; }
.cs-modal__close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.cs-modal__close:hover { color: var(--gold); }
.cs-modal__eyebrow { display: none; } /* gardé pour compat, on n'affiche que le titre */
.cs-modal__title { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.15; margin: 0 0 18px; color: var(--ink); }
.cs-modal__message { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; }
.cs-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-modal__actions .cs-btn { flex: 1 1 auto; padding: 14px 18px; font-size: 11px; }
.cs-modal__actions .cs-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.cs-modal__actions .cs-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.cs-modal__card--wide { max-width: 620px; padding: 36px 36px 28px; }
.cs-modal__card--wide .cs-modal__title { font-size: 32px; margin-bottom: 12px; }

/* Formulaire dans la modale intl */
.cs-intl-form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 6px; }
.cs-intl-form__row { display: flex; flex-direction: column; gap: 6px; }
.cs-intl-form__row .cs-eyebrow { font-size: 10px; }
.cs-intl-form__row input[type="text"], .cs-intl-form__row input[type="email"], .cs-intl-form__row textarea, .cs-intl-form__row select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line);
    font-family: var(--sans); font-size: 14px; background: var(--paper); color: var(--ink);
    line-height: 1.4; border-radius: 0;
    appearance: none;
}
.cs-intl-form__row select {
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
.cs-intl-form__row input:focus, .cs-intl-form__row textarea:focus, .cs-intl-form__row select:focus { outline: none; border-color: var(--gold); }
.cs-intl-form__row textarea { resize: vertical; min-height: 70px; }
.cs-intl-modal .cs-modal__actions { margin-top: 8px; }

/* Bouton injecté en haut du checkout FR */
.cs-checkout-intl-trigger { display: flex; justify-content: flex-end; max-width: 1120px; margin: 0 auto 16px; padding: 0 8px; }
.cs-checkout-intl-trigger .cs-btn { padding: 12px 18px; font-size: 11px; }

/* === PANIER VIDE — message centré simple === */
.cs-cart-empty { display: flex; align-items: center; justify-content: center; padding: 80px 24px; text-align: center; min-height: 40vh; }
.cs-cart-empty__inner { max-width: 640px; }
.cs-cart-empty__title { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 46px); font-weight: 400; color: var(--ink); margin: 0 0 24px; line-height: 1.1; }
.cs-cart-empty__links { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--muted); margin: 0; }
.cs-cart-empty__link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.cs-cart-empty__link:hover { color: var(--gold); border-bottom-color: var(--ink); }
.cs-cart-empty__sep { margin: 0 14px; color: var(--muted); font-style: italic; }

/* === PAGE PANIER === */
.woocommerce-cart-form { margin-bottom: 40px; }
.woocommerce-cart-form .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.woocommerce-cart-form .coupon { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.woocommerce-cart-form .coupon label { display: none; }
.woocommerce-cart-form .coupon input[type="text"] {
    padding: 13px 16px; border: 1px solid var(--line);
    font-family: var(--sans); font-size: 13px; min-width: 220px; background: var(--paper);
    letter-spacing: 0.05em;
}
.woocommerce-cart-form .coupon input[type="text"]:focus { outline: none; border-color: var(--gold); }

/* Cart totals (panneau récap) */
.woocommerce-cart .cart-collaterals { display: grid; grid-template-columns: 1fr; gap: 24px; }
.woocommerce-cart .cart_totals { border: 1px solid var(--ink); padding: 28px 30px; background: var(--paper); }
.woocommerce-cart .cart_totals h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 0 0 18px; }
.woocommerce-cart .cart_totals table { width: 100%; border: 0; margin: 0 0 18px; }
.woocommerce-cart .cart_totals table th { background: transparent; color: var(--ink); padding: 12px 0; font-size: 11px; border-bottom: 1px solid var(--line-soft); }
.woocommerce-cart .cart_totals table td { border: 0; padding: 12px 0; text-align: right; border-bottom: 1px solid var(--line-soft); }
.woocommerce-cart .cart_totals table tr:last-child th, .woocommerce-cart .cart_totals table tr:last-child td { border-bottom: 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.woocommerce-cart .cart_totals .order-total .amount { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 400; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block; width: 100%; padding: 20px; background: var(--ink); color: var(--paper);
    font-size: 12px;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover { background: var(--gold); color: var(--ink); opacity: 1; }

/* Bouton "Valider la commande" du block cart : recentrage vertical du texte.
   On cible toutes les variantes connues + override agressif des paddings/line-height. */
.wp-block-woocommerce-proceed-to-checkout-block button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wp-element-button,
.wc-block-cart__submit-container button,
.wc-block-cart__submit-container .wc-block-components-button,
button.wc-block-cart__submit-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.5 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 22px !important;
    box-sizing: border-box !important;
}
/* Texte interne : pas de marges parasites, line-height cohérente */
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button__text,
.wc-block-cart__submit-container .wc-block-components-button__text,
.wc-block-cart__submit-button .wc-block-components-button__text {
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}
/* SVG / icônes : align-middle pour pas pousser le baseline */
.wp-block-woocommerce-proceed-to-checkout-block button svg,
.wc-block-cart__submit-button svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* === MINI-CART (hover sous l'icône panier du header, homepage uniquement) === */
.cs-minicart {
    position: absolute;
    z-index: 250;
    width: 400px; max-width: calc(100vw - 16px);
    max-height: 75vh;
    background: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
    font-family: var(--sans);
    display: flex; flex-direction: column;
}
.cs-minicart[hidden] { display: none; }
.cs-minicart__head {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(135deg, rgba(232,180,49,0.06), rgba(232,180,49,0.02));
}
.cs-minicart__head-title {
    font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink);
}
.cs-minicart__head-count {
    font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--muted);
}
.cs-minicart__items {
    flex: 1 1 auto; overflow-y: auto; padding: 0;
    /* Scrollbar gold (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(232,180,49,0.10);
}
/* Scrollbar gold (Chromium/Webkit) */
.cs-minicart__items::-webkit-scrollbar { width: 8px; }
.cs-minicart__items::-webkit-scrollbar-track { background: rgba(232,180,49,0.10); }
.cs-minicart__items::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 0; }
.cs-minicart__items::-webkit-scrollbar-thumb:hover { background: #d6a32d; }
.cs-minicart__items::-webkit-scrollbar-corner { background: transparent; }
.cs-minicart__empty {
    padding: 32px 20px; text-align: center; font-family: var(--serif);
    font-size: 18px; color: var(--muted);
}

/* Groupe carton (perso ou mono) : header doré + items dessous */
.cs-minicart__group {
    border-bottom: 1px solid var(--line-soft);
}
.cs-minicart__group:last-child { border-bottom: 0; }
.cs-minicart__group--personalized,
.cs-minicart__group--mono {
    background: rgba(232,180,49,0.04);
}
.cs-minicart__group-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(232,180,49,0.10), rgba(232,180,49,0.04));
    border-bottom: 1px solid rgba(232,180,49,0.30);
    border-left: 2px solid var(--gold);
}
.cs-minicart__group-head-left  { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.cs-minicart__group-head-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cs-minicart__group-title {
    font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--ink);
    line-height: 1.2;
}
.cs-minicart__group-sub {
    font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--muted);
}
.cs-minicart__group-total {
    font-family: var(--serif); font-size: 14px; color: var(--gold); font-weight: 500;
    white-space: nowrap;
}
.cs-minicart__group-total .woocommerce-Price-amount,
.cs-minicart__group-total bdi { color: inherit; font: inherit; }
.cs-minicart__group-bottles { padding: 4px 0; border-left: 2px solid var(--gold); }

/* Item ligne (bouteille standalone ou bouteille dans un carton perso) */
.cs-minicart__item {
    display: flex; align-items: center; gap: 10px; padding: 8px 14px;
}
.cs-minicart__item--mono { border-left: 2px solid var(--gold); }
.cs-minicart__item-img {
    flex: 0 0 36px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper);
}
.cs-minicart__item-img img {
    max-width: 100%; max-height: 100%; object-fit: contain; display: block;
}
.cs-minicart__item-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-minicart__item-name {
    font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink);
    line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-minicart__item-sub {
    font-family: var(--sans); font-size: 10px; color: var(--muted);
    display: flex; gap: 8px;
}
.cs-minicart__qty       { font-weight: 600; }
.cs-minicart__line-total{ color: var(--ink); }

/* Boutons trash */
.cs-minicart__remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: transparent; border: 1px solid var(--gold); border-radius: 0;
    color: var(--ink); cursor: pointer;
    transition: background .12s, color .12s;
    flex-shrink: 0;
}
.cs-minicart__remove:hover { background: var(--gold); color: var(--ink); }
.cs-minicart__remove svg { display: block; }
.cs-minicart__remove--small { width: 26px; height: 26px; border-color: var(--line-soft); }
.cs-minicart__remove--small:hover { border-color: var(--gold); }

/* Footer : total + CTAs */
.cs-minicart__foot {
    flex: 0 0 auto;
    padding: 14px 18px; border-top: 1px solid var(--line-soft);
    background: var(--paper);
}
.cs-minicart__total {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 12px;
}
.cs-minicart__total-label {
    font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--muted);
}
.cs-minicart__total-value {
    font-family: var(--serif); font-size: 22px; color: var(--gold); font-weight: 500;
}
.cs-minicart__total-value .woocommerce-Price-amount,
.cs-minicart__total-value bdi { color: inherit; font: inherit; }
.cs-minicart__ctas { display: flex; gap: 8px; }
.cs-minicart__cta-view, .cs-minicart__cta-checkout {
    flex: 1 1 50%; padding: 12px 8px; font-size: 10px; text-align: center;
}

/* === PANIER — groupement visuel par "Carton personnalisé" === */
/* Carte header injectée au-dessus de la 1re ligne de chaque carton */
.cs-carton-header-row > td { padding: 0 !important; background: transparent !important; border: 0 !important; }
.cs-carton-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(232,180,49,0.10), rgba(232,180,49,0.04));
    border-bottom: 1px solid rgba(232,180,49,0.35);
}

/* Spacer row vide injecté entre 2 cartons consécutifs (hors frame doré) pour
   créer un espace visuel sans englober le vide dans le rectangle. */
.cs-carton-spacer-row > td {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    height: 24px;
}
.cs-carton-header__left  { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.cs-carton-header__right { display: flex; align-items: center; gap: 16px; }
.cs-carton-header__title {
    font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.15;
    color: var(--ink); letter-spacing: 0.01em;
}
.cs-carton-header__sub {
    font-family: var(--sans); font-size: 10px; font-weight: 600;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--muted);
}
.cs-carton-header__price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.cs-carton-header__price-label {
    font-family: var(--sans); font-size: 10px; font-weight: 600;
    letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
.cs-carton-header__price-value {
    font-family: var(--serif); font-size: 20px; color: var(--gold); font-weight: 500;
}
.cs-carton-header__price-value .woocommerce-Price-amount,
.cs-carton-header__price-value bdi { color: inherit; font: inherit; }
.cs-carton-header__remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: transparent; border: 1px solid var(--gold); border-radius: 0;
    color: var(--ink); cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.cs-carton-header__remove:hover { background: var(--gold); color: var(--ink); }
.cs-carton-header__remove svg { display: block; }

/* Fond légèrement teinté sur les lignes groupées (utile pour repérer visuellement) */
.wc-block-cart-items__row[data-cs-grouped="1"] > td { background-color: rgba(232,180,49,0.04); }

/* Frame absolu : un seul <div> par carton dessine TOUT le rectangle doré.
   Aucun risque de fragmentation des bordures peu importe la structure interne des <td>. */
.cs-carton-frame {
    position: absolute;
    pointer-events: none;
    border: 2px solid var(--gold);
    z-index: 1;
    box-sizing: border-box;
}

/* Masquer la ligne item_data "Carton" sur les lignes groupées : le header au-dessus l'affiche déjà */
.wc-block-cart-items__row[data-cs-grouped="1"] .wc-block-components-product-details { display: none; }

/* === FORMULAIRES (checkout, login, edit address, mon compte) === */
.woocommerce form .form-row, .woocommerce-page form .form-row {
    display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 0;
}
.woocommerce form .form-row label, .woocommerce-checkout .form-row label {
    font-family: var(--sans); font-size: 10px; font-weight: 600;
    letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
    margin: 0;
}
.woocommerce form .form-row .required { color: #b71c1c; font-weight: 700; letter-spacing: 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-checkout .form-row input, .woocommerce-checkout .form-row select, .woocommerce-checkout .form-row textarea,
.woocommerce-page form .form-row input.input-text, .woocommerce-page form .form-row textarea, .woocommerce-page form .form-row select,
.woocommerce form .password-input input {
    width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 0;
    font-family: var(--sans); font-size: 14px; background: var(--paper); color: var(--ink);
    line-height: 1.4;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus,
.woocommerce-checkout .form-row input:focus, .woocommerce-checkout .form-row select:focus, .woocommerce-checkout .form-row textarea:focus { outline: none; border-color: var(--gold); }
.woocommerce form .form-row.form-row-first, .woocommerce form .form-row.form-row-last { width: calc(50% - 12px); float: none; display: inline-flex; vertical-align: top; }
.woocommerce form .form-row.form-row-first { margin-right: 12px; }
.woocommerce form .form-row.form-row-last { margin-left: 12px; }
.woocommerce form .form-row-wide, .woocommerce form .form-row.form-row-wide { width: 100%; }
.woocommerce .select2-container .select2-selection--single { border: 1px solid var(--line); border-radius: 0; height: 50px; padding: 9px 12px; background: var(--paper); }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 30px; font-family: var(--sans); font-size: 14px; padding-left: 0; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 8px; }
.woocommerce .select2-dropdown { border: 1px solid var(--ink); border-radius: 0; }
.woocommerce .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--gold); color: var(--ink); }

/* === CHECKOUT === */
.woocommerce-checkout #customer_details { margin-bottom: 36px; }
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading {
    font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 0 0 22px; line-height: 1;
}
.woocommerce-checkout #order_review { border: 1px solid var(--ink); padding: 24px 28px; background: var(--paper); }
.woocommerce-checkout-payment { background: transparent !important; border-radius: 0; }
.woocommerce-checkout-payment ul.payment_methods { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 0; padding: 16px 20px; margin: 0 0 18px; list-style: none; }
.woocommerce-checkout-payment ul.payment_methods li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.woocommerce-checkout-payment ul.payment_methods li:last-child { border-bottom: 0; }
.woocommerce-checkout-payment ul.payment_methods label { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--ink); text-transform: none; cursor: pointer; }
.woocommerce-checkout-payment .payment_box { background: var(--paper); border: 1px solid var(--line-soft); margin-top: 10px; padding: 14px 16px; font-size: 13px; color: var(--muted); }
.woocommerce-checkout-payment .payment_box::before { display: none; }
.woocommerce-checkout #place_order { width: 100%; padding: 22px; font-size: 13px; background: var(--ink); color: var(--paper); }
.woocommerce-checkout #place_order:hover { background: var(--gold); color: var(--ink); }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin: 16px 0; font-size: 12px; }
.woocommerce form .woocommerce-terms-and-conditions-wrapper label { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }

/* === ORDER RECEIVED (thank you) === */
.woocommerce-order { padding-top: 16px; }
.woocommerce-thankyou-order-received {
    font-family: var(--serif); font-size: 40px; font-style: italic; color: var(--gold);
    margin: 0 0 32px; line-height: 1.15;
}
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 36px; padding: 0; list-style: none; border: 1px solid var(--line); padding: 18px 22px; }
.woocommerce-order-overview li { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.woocommerce-order-overview li strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: 4px; }
.woocommerce-order-details, .woocommerce-customer-details { margin: 0 0 36px; }
.woocommerce-order-details h2, .woocommerce-customer-details h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 0 0 16px; }
.woocommerce-customer-details address { font-family: var(--sans); font-size: 14px; line-height: 1.6; padding: 18px 22px; border: 1px solid var(--line); border-radius: 0; font-style: normal; }

/* === MON COMPTE === */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: flex-start; }
.woocommerce-MyAccount-navigation { background: var(--paper); border: 1px solid var(--ink); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line-soft); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-MyAccount-navigation li a {
    display: block; padding: 14px 18px; text-decoration: none; color: var(--ink);
    font-family: var(--sans); font-size: 11px; font-weight: 600;
    letter-spacing: 0.25em; text-transform: uppercase;
    transition: background .15s;
}
.woocommerce-MyAccount-navigation li a:hover { background: var(--soft-bg); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--gold); color: var(--ink); }
.woocommerce-MyAccount-content { font-family: var(--sans); font-size: 14px; line-height: 1.65; }
.woocommerce-MyAccount-content h2 { font-family: var(--serif); font-size: 36px; font-weight: 400; margin: 0 0 18px; }
.woocommerce-MyAccount-content h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 24px 0 12px; }
.woocommerce-MyAccount-content > p:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--muted); margin-bottom: 28px; }
.u-columns, .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.u-column1, .col-1 { width: 100%; }
.u-column2, .col-2 { width: 100%; }
.woocommerce-form-login, .woocommerce-form-register {
    border: 1px solid var(--ink); padding: 28px 30px; background: var(--paper);
}
.woocommerce-form-login__rememberme, .woocommerce-form-login__submit ~ a { font-size: 12px; margin-top: 10px; display: inline-block; }
.woocommerce-form-login__submit { width: 100%; }
.woocommerce-account .addresses .col-1, .woocommerce-account .addresses .col-2 { border: 1px solid var(--line); padding: 22px 24px; background: var(--paper); }
.woocommerce-account .addresses address { font-family: var(--sans); font-size: 14px; line-height: 1.6; padding: 0; border: 0; font-style: normal; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.woocommerce-Address-title h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0; }
.woocommerce-Address-title .edit { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* === RESPONSIVE WC === */
@media (max-width: 768px) {
    .cs-shop-page { padding: 48px 24px 64px; }
    .cs-shop-page__title { font-size: 48px; margin-bottom: 28px; }
    .woocommerce table.shop_table { display: block; }
    .woocommerce table.shop_table thead { display: none; }
    .woocommerce table.shop_table tbody, .woocommerce table.shop_table tr, .woocommerce table.shop_table td { display: block; width: 100%; }
    .woocommerce table.shop_table tr { border-bottom: 1px solid var(--ink); padding: 14px 0; }
    .woocommerce table.shop_table td { padding: 6px 0; border: 0; }
    .woocommerce table.shop_table td::before { content: attr(data-title) " : "; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px; }
    .woocommerce-cart-form .coupon input[type="text"] { min-width: 0; flex: 1 1 60%; }
    .woocommerce form .form-row.form-row-first, .woocommerce form .form-row.form-row-last { width: 100%; margin: 0 0 18px; }
    .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
    .u-columns, .col2-set { grid-template-columns: 1fr; }
}

/* Checkout (blocs WC) : la coche SVG est en position absolue sans coordonnées ; avec le style
   de libellés du thème elle glissait à droite de la case. On l'ancre sur la case (20px). */
.wc-block-components-checkbox label { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { flex: 0 0 20px; margin: 0; }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { left: 0; top: 0; margin: 2px 0 0 2.5px; }

/* Options de livraison (blocs panier/commande) : la description « Offerte à partir de 270 € »
   hérite des capitales espacées du libellé → on la rend discrète, en italique serif. */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-description { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.wc-block-components-totals-shipping .cs-ship-hint { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--muted); margin-top: 2px; }
