/* CONSONANCE — feuille de style.
   Direction artistique du site consonancecellar.com : bleu nuit, crème, or ; capitales espacées ;
   angles droits partout ; textes sobres. Polices embarquées (licence libre SIL OFL, voir
   static/fonts/LICENCES.txt) : rien n'est chargé depuis l'extérieur. */
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/josefin-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/josefin-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/josefin-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/josefin-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #f4ede3;
  --surface: #fcfcfc;
  --surface-2: #f8f4f0;
  --ink: #34302c;
  --muted: #5d5a55;
  --line: #e8dfd1;
  --line-strong: #cbbfab;
  --navy: #1c2026;
  --navy-line: #343842;
  --navy-ink: #e6dfd3;
  --char: #303030;
  --sidebar: #1c2026;
  --sidebar-ink: #e6dfd3;
  --gold: #e0a41c;
  --gold-ink: #7a5600;
  --gold-soft: #f6e8c4;
  --ok: #2c6a48;
  --ok-soft: #e3f1e8;
  --warn: #7d5200;
  --warn-soft: #fbefd3;
  --late: #8f2424;
  --late-soft: #fae3e1;
  --info: #2d5782;
  --info-soft: #e2ecf6;
  --radius: 0;
  --shadow: 0 1px 2px rgba(28, 32, 38, .06), 0 6px 20px rgba(28, 32, 38, .08);
  --font: "Josefin Sans", "Century Gothic", "Avenir Next", Futura, "Trebuchet MS", sans-serif;
  --serif: "Bodoni Moda", Didot, "Bodoni MT", "Playfair Display", Georgia, serif;
  --pad: max(24px, calc((100vw - 1240px) / 2));
  --caps: .16em;
}

* { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--font); letter-spacing: .015em;
}
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
h1, h2, h3 { font-family: var(--font); margin: 0; text-transform: uppercase; }
h1 { font-size: 20px; line-height: 1.4; font-weight: 400; letter-spacing: .22em; }
h2 { font-size: 13.5px; font-weight: 500; letter-spacing: .18em; line-height: 1.5; }
h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; }
p { margin: 0 0 .6em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
/* les capitales accentuées (« À renseigner ») ne doivent pas être rognées dans un champ vide */
::placeholder { line-height: 1.5; overflow: visible; }

/* ---------- Structure ---------- */
.demo-banner {
  background: #4a3a12; color: #f7e9c3; text-align: center; font-size: 13px; padding: 6px 12px 4px;
}
.app { display: block; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--navy-ink); }
.topbar .inner {
  display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; padding: 0 var(--pad); min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: #fff; text-decoration: none; }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: .42em; }
.brand i { width: 1px; height: 28px; background: #4a4d55; }
.brand small { font-size: 10.5px; letter-spacing: .42em; padding-top: 3px; }
.mainnav { display: flex; gap: 2px; flex: 1; justify-content: center; flex-wrap: wrap; }
.mainnav a, .navlink {
  padding: 15px 12px 10px; font: inherit; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy-ink); text-decoration: none; background: none; border: 0; border-bottom: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.mainnav a:hover, .navlink:hover { color: #fff; }
.mainnav a.active, .navlink.active { color: var(--gold); border-bottom-color: var(--gold); }
.mainnav svg { display: none; }
.tools { display: flex; align-items: center; gap: 2px; position: relative; }
.tool {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: none; border: 0; color: var(--navy-ink); cursor: pointer;
}
.tool:hover { color: #fff; }
.tool svg { width: 20px; height: 20px; }
.tool.plus { color: var(--gold); }
.navlink svg { display: none; width: 20px; height: 20px; }
.app-main { min-width: 0; }
.content { padding: 0 var(--pad) 72px; width: 100%; }
.content > :first-child:not(.page-head):not(.crumb):not(.hero) { margin-top: 24px; }
.bottomnav { display: none; }

/* ---------- Recherche globale ---------- */
.topbar .search { display: none; position: relative; flex-basis: 100%; order: 20; padding: 0 0 12px; }
.topbar.search-open .search { display: block; }
.search input {
  width: 100%; padding: 12px 12px 9px 38px; border: 1px solid var(--navy-line); color: #fff;
  background: #262b33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23e6dfd3' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 12px center no-repeat;
  font: inherit;
}
.search input::placeholder { color: #a9a396; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% - 8px); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  max-height: min(70vh, 560px); overflow: auto; z-index: 50;
}
.search-results:empty { display: none; }
.search-results h4 {
  margin: 0; padding: 11px 14px 3px; font-size: 11px; text-transform: uppercase; letter-spacing: var(--caps);
  color: var(--muted); font-weight: 500;
}
.search-results a { display: block; padding: 8px 14px 6px; text-decoration: none; }
.search-results a:hover, .search-results a.on { background: var(--gold-soft); }
.search-results a small { color: var(--muted); display: block; }
.search-results .none { padding: 14px; color: var(--muted); }

/* ---------- Indicateur d'enregistrement (visible seulement quand il a quelque chose à dire) ---------- */
.save-state {
  font-size: 12.5px; color: var(--navy-ink); display: flex; align-items: center; gap: 6px;
  white-space: nowrap; padding: 4px 8px 2px; border: 1px solid transparent;
}
.save-state[data-state="idle"] { display: none; }
@media (min-width: 1200px) {      /* posé à gauche des outils, sans déplacer le menu quand il apparaît */
  .save-state { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 6px; }
}
.save-state::before { content: ""; width: 7px; height: 7px; background: #7d8088; }
.save-state[data-state="saved"]::before { background: #7fc79d; }
.save-state[data-state="saving"]::before { background: var(--gold); animation: pulse 1s infinite; }
.save-state[data-state="error"] { color: #fff; background: var(--late); font-weight: 600; white-space: normal; }
.save-state[data-state="error"]::before { background: #fff; }
.save-state button { font: inherit; color: inherit; text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 16px 8px; border: 1px solid var(--char);
  background: transparent; color: var(--ink); font: inherit; font-weight: 500; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.3;
}
.btn:hover { background: rgba(48, 48, 48, .07); }
.btn-primary { background: var(--char); color: #fff; border-color: var(--char); }
.btn-primary:hover { background: #111; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }
.btn-gold:hover { background: #eab23a; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(48, 48, 48, .07); border-color: transparent; color: var(--ink); }
.btn-danger { color: var(--late); border-color: var(--late); }
.btn-danger:hover { background: var(--late-soft); }
.btn-sm { padding: 7px 10px 4px; font-size: 11px; letter-spacing: .1em; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn svg { width: 15px; height: 15px; margin-top: -3px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: var(--gold); }

/* menus déroulants (Ajouter, Archives, compte) */
.menu { position: relative; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); padding: 6px; z-index: 60;
  display: none;
}
.menu.open .menu-list { display: block; }
.menu-list button, .menu-list a {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 10px 8px; border: 0; background: none;
  font: inherit; text-align: left; cursor: pointer; color: var(--ink); text-decoration: none;
}
.menu-list button:hover, .menu-list a:hover, .menu-list a.active { background: var(--gold-soft); }
.menu-list small { color: var(--muted); margin-left: auto; }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.menu-list .who { padding: 8px 10px 4px; font-size: 13px; color: var(--muted); }
.menu-list .who strong { display: block; color: var(--ink); font-weight: 600; }
.menu-list form { margin: 0; }
.menu-list label:focus-within { outline: 2px solid var(--gold); outline-offset: -2px; }

/* ---------- En-têtes de page (bandeau bleu nuit), onglets, filtres ---------- */
.page-head {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  margin: 0 calc(-1 * var(--pad)) 24px; padding: 28px var(--pad) 24px;
  background: var(--navy); color: var(--navy-ink); border-top: 1px solid var(--navy-line);
}
.page-head .grow { min-width: 0; max-width: 820px; }
.page-head h1 { color: var(--gold); }
.page-head p { margin: 6px 0 0; font-size: 14px; letter-spacing: .04em; }
.page-head .muted { color: var(--navy-ink); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.page-head .btn { border-color: #8d8a83; color: var(--navy-ink); }
.cv-page-head { position: relative; }
.cv-page-head .cv-plus { position: absolute; right: var(--pad); top: calc(50% - 15px); transform: translateY(-50%); }   /* centré sur le bandeau entier (fil d'Ariane compris) */
.cv-page-head .cv-plus .tool.plus { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); }
.cv-page-head .cv-plus .menu-list { text-align: left; }
.page-head .btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.page-head .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.page-head .btn-primary:hover { background: #eab23a; color: var(--navy); }
.page-head .badge { vertical-align: middle; }
.page-head a { text-decoration-color: #6b6f78; }
.page-head .ci, .page-head .input { background: #262b33; border-color: var(--navy-line); color: #fff; }
.page-head .unknown, .page-head .due.late, .page-head .due.soon { color: #f0c05a; }
.crumb {
  margin: 0 calc(-1 * var(--pad)); padding: 14px var(--pad) 0; background: var(--navy); color: var(--navy-ink);
  border-top: 1px solid var(--navy-line); font-size: 11.5px; letter-spacing: var(--caps); text-transform: uppercase;
  text-align: center;
}
.crumb + .page-head { border-top: 0; padding-top: 10px; }
.page-head .crumb { margin: 0 0 6px; padding: 0; border: 0; background: none; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.tabs { display: flex; gap: 4px; margin: 0 0 20px; flex-wrap: wrap; justify-content: center; }
.tabs a {
  padding: 13px 18px 10px; text-decoration: none; color: var(--ink);
  white-space: nowrap; font-size: 12px; letter-spacing: var(--caps); text-transform: uppercase;
}
.tabs a:hover { background: rgba(48, 48, 48, .07); }
.tabs a.active { color: #fff; background: var(--char); }
.tabs .n { color: var(--muted); font-size: 11px; margin-left: 6px; letter-spacing: .06em; }
.tabs a.active .n { color: #d9d2c6; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 3px;
  border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; font-size: 13px;
  cursor: pointer; font-family: inherit; color: var(--ink);
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--char); color: #fff; border-color: var(--char); }
.chip .x { opacity: .55; border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 15px; line-height: 1; }
.chip .x:hover { opacity: 1; }
.chip-add { border-style: dashed; color: var(--muted); }
details.filter-box > summary { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type="search"], .filters input[type="text"], .filters select {
  padding: 9px 10px 6px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 14px;
  color: inherit; max-width: 100%;
}
.filters input[type="search"] { min-width: 200px; }
.filters label.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); padding: 18px 20px; }
.card > h2, .card > h3 { margin-bottom: 12px; }
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { flex: 1; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 14px; }
.stat { background: var(--surface); padding: 15px 18px 13px; }
.stat .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: var(--caps); }
.stat .v { font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.25; }
.stat .d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat.accent { box-shadow: inset 0 0 0 1px var(--gold); }
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.glance .stat .v { font-size: 16px; font-weight: 500; }
/* stock d'un domaine : un grand chiffre par cave */
.stocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stocks .stat { text-decoration: none; color: inherit; }
.stocks .stat:hover { box-shadow: inset 0 0 0 1px var(--char); }
.stocks .stat .v { font-size: 32px; font-weight: 300; }
.stocks .stat .unit { font-size: 12.5px; letter-spacing: .06em; color: var(--muted); font-weight: 400; }

/* ---------- Tableaux ---------- */
.table-wrap { background: var(--surface); overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  font-weight: 500; padding: 12px 10px 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
  background: var(--surface); position: sticky; top: 0;
}
.table th.num { text-align: right; }
.table td { padding: 9px 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #faf7f2; }
.table td.cell { padding: 2px 4px; }
.table .group td {
  background: var(--surface-2); font-weight: 600; padding: 10px 10px 7px; border-top: 1px solid var(--line-strong);
}
.table .group:first-child td { border-top: 0; }
.table tfoot td { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line-strong); }
.table a.main { font-weight: 600; text-decoration: none; }
.table a.main:hover { text-decoration: underline; }
.table .sub { display: block; font-size: 12.5px; color: var(--muted); }
.table td.actions { white-space: nowrap; text-align: right; width: 1%; }
.table .check-col { width: 30px; padding-right: 0; }
.unknown { color: var(--late); font-weight: 600; }
.incomplete { color: var(--warn); font-weight: 600; font-size: 12.5px; display: block; white-space: normal; line-height: 1.3; }
.group-head { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.group-head .right { margin-left: auto; font-weight: 500; }

/* champs modifiables dans les tableaux */
.ci {
  width: 100%; min-width: 0; border: 1px solid transparent; background: transparent;
  padding: 8px 7px 5px; font: inherit; color: inherit;
}
input.ci.num { text-align: right; font-variant-numeric: tabular-nums; }
td.cell:hover .ci, .ci:hover { border-color: var(--line-strong); background: #fff; }
.ci:focus { border-color: var(--gold); background: #fff; outline: 2px solid rgba(224, 164, 28, .3); outline-offset: 0; }
.ci::placeholder { color: var(--late); opacity: .85; }
.ci.plain::placeholder { color: #a39c8f; }
.ci.is-saving { background: #fffaf0; }
.ci.is-saved { animation: saved 1.2s ease-out; }
.ci.is-error { border-color: var(--late) !important; background: var(--late-soft) !important; }
@keyframes saved { 0% { background: var(--ok-soft); } 100% { background: transparent; } }
select.ci { padding: 7px 4px 4px; cursor: pointer; appearance: auto; }
textarea.ci { resize: vertical; min-height: 60px; display: block; line-height: 1.45; }
.w-qty { width: 78px; }
.w-money { width: 112px; }
.w-pct { width: 62px; }
.w-date { width: 138px; }
.w-year { width: 74px; }
select.ci.w-sup { min-width: 170px; }
select.ci.w-pack { min-width: 112px; }
select.ci.w-mode { min-width: 66px; }
select.ci.w-rel { min-width: 204px; }
.table.prices tr.mainrow td { border-bottom: 0; padding-bottom: 0; }
.table.prices tr.subrow td { padding-top: 0; padding-bottom: 4px; }
.table.prices tr.subrow:hover td, .table.prices tr.mainrow:hover td { background: transparent; }
.table.prices tr.subrow .ci { padding: 4px 6px 2px; }

/* ---------- Pastilles d'état ---------- */
.badge {
  display: inline-block; padding: 4px 8px 1px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; background: #ece5d8; color: #4d483f; white-space: nowrap; line-height: 15px;
}
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-late { background: var(--late-soft); color: var(--late); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-gold { background: var(--gold); color: var(--navy); }
.b-off { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }
.due.late { color: var(--late); font-weight: 600; }
.due.soon { color: var(--warn); font-weight: 600; }
.tag { display: inline-block; padding: 3px 8px 0; background: #ece5d8; font-size: 12.5px; line-height: 19px; }
.gap-neg { color: var(--late); font-weight: 600; }
.gap-pos { color: var(--ok); font-weight: 600; }

/* ---------- Formulaires ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span, .field > label { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); letter-spacing: .02em; text-transform: none; font-size: 13px; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="date"],
.field input[type="number"], .field input[type="search"], .field input[type="file"], .field input[type="tel"],
.field input[type="url"], .field select, .field textarea {
  width: 100%; padding: 11px 11px 8px; border: 1px solid var(--line-strong); background: #fff;
  font: inherit; color: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--gold); outline: 2px solid rgba(224, 164, 28, .3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.form-error:empty { display: none; }
.form-error { scroll-margin-top: 90px; }
.alert { padding: 12px 14px 9px; margin-bottom: 12px; font-size: 14px; }
.alert-error { background: var(--late-soft); color: var(--late); }
.alert-warn { background: var(--warn-soft); color: #6b4700; }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form .input { width: auto; flex: 1; min-width: 160px; }
.quick-add {
  display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--surface-2);
  border: 1px dashed var(--line-strong); margin-bottom: 12px; flex-wrap: wrap;
}
.quick-add .input { flex: 1; min-width: 150px; width: auto; padding: 10px 10px 7px; }
.quick-add .input.w-qty, .quick-add .input.w-year, .quick-add .input.w-money { flex: none; }
.quick-add .w-qty { width: 92px; } .quick-add .w-year { width: 96px; } .quick-add .w-money { width: 110px; }
.quick-add select.input { flex: none; width: auto; }

/* liste à saisie assistée (domaine, cuvée, fournisseur…) */
.combo, .ccombo { position: relative; flex: 1; min-width: 170px; }
.combo input[type="text"], .ccombo input[type="text"] { width: 100%; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 3px); background: #fff; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); z-index: 80; max-height: 280px; overflow: auto; min-width: 240px;
}
.combo-list div { padding: 9px 11px 7px; cursor: pointer; }
.combo-list div small { color: var(--muted); display: block; }
.combo-list div.on, .combo-list div:hover { background: var(--gold-soft); }
.combo-list .create { border-top: 1px solid var(--line); font-weight: 600; color: var(--gold-ink); }
.combo-list .none { color: var(--muted); cursor: default; }
.combo.has-value input[type="text"], .ccombo.has-value input[type="text"] { border-color: var(--ok); background: #fbfefc; }

/* ---------- Fenêtre modale ---------- */
dialog.modal {
  border: 0; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--ink); background: var(--bg); overflow: visible;
}
dialog.modal.wide { width: min(980px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(28, 32, 38, .6); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; background: var(--navy); }
.modal-head h2 { flex: 1; font-size: 14px; color: var(--gold); font-weight: 400; letter-spacing: .2em; }
.modal-body { padding: 18px 20px 20px; max-height: calc(100vh - 110px); overflow: auto; }
.modal-close { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--navy-ink); padding: 2px 6px; }
.modal-close:hover { color: #fff; }

/* ---------- Notifications ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(440px, calc(100vw - 36px)); }
.toast {
  background: var(--navy); color: #fff; padding: 13px 14px 10px; box-shadow: var(--shadow); font-size: 14px;
  display: flex; gap: 12px; align-items: flex-start; animation: toast-in .18s ease-out;
}
.toast.error { background: var(--late); }
.toast.ok { background: var(--ok); }
.toast .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.toast button { background: rgba(255, 255, 255, .16); color: #fff; border: 0; padding: 6px 9px 3px; cursor: pointer; font: inherit; font-size: 13px; }
.toast button:hover { background: rgba(255, 255, 255, .28); }
.toast .close { margin-left: auto; background: none; padding: 0 2px; font-size: 18px; line-height: 1; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Divers ---------- */
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.empty strong { display: block; color: var(--ink); font-size: 13.5px; font-weight: 500; letter-spacing: var(--caps); text-transform: uppercase; margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 2px 12px; align-items: center; margin: 0; }
.kv dt { color: var(--muted); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0 5px; }
.kv dd { margin: 0; min-width: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0 8px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .meta { font-size: 12.5px; color: var(--muted); }
.list a.title { font-weight: 600; text-decoration: none; }
.list a.title:hover { text-decoration: underline; }
.todo-check { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ok); flex: none; cursor: pointer; }
.progress { height: 8px; background: #e6dccb; overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; }
.progress .p-engaged { background: var(--char); }
.progress .p-drafts { background: #8d877b; }
.progress .p-remaining { background: var(--gold); }
.progress.over { outline: 2px solid var(--late); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; }
.bars { display: grid; grid-template-columns: minmax(90px, 200px) 1fr auto; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.bars .bar { height: 9px; background: #e6dccb; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--gold); }
.selection-bar {
  position: sticky; bottom: 12px; z-index: 20; margin-top: 12px; background: var(--navy); color: #fff;
  padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow);
}
.selection-bar .btn { background: #fff; }
.selection-bar .grow { flex: 1; }
details.more > summary { cursor: pointer; color: var(--muted); font-size: 13.5px; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸ "; }
details.more[open] > summary::before { content: "▾ "; }
.history { font-size: 13px; }
.history td, .history th { padding: 4px 8px; }
pre.export { background: var(--surface-2); border: 1px solid var(--line); padding: 12px; white-space: pre-wrap; font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 50vh; overflow: auto; }
.auth { max-width: 420px; margin: 0 auto; padding: 0 16px 40px; }
.auth-top { background: var(--navy); display: flex; justify-content: center; padding: 14px 16px; margin-bottom: 8vh; }
.print-only { display: none; }

/* ---------- Régions : une rangée de liens discrets sous les onglets ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 4px; margin: -8px 0 22px; }
.chips a { padding: 7px 10px 4px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.chips a:hover { color: var(--ink); }
.chips a.active { color: var(--ink); border-bottom-color: var(--gold); }
.chips .n { margin-left: 5px; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); }
.chips .sep { width: 1px; height: 16px; margin: 0 8px; background: #cfc5b5; }
.tiles-title { margin: 28px 0 12px; font-size: 13px; letter-spacing: .22em; text-align: center; scroll-margin-top: 90px; }
.tiles-title:first-child { margin-top: 0; }
.tiles-title .n { margin-left: 8px; font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 400; }

/* ---------- Vignettes carrées (domaines, souhaits, ventes du Club, caves) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tile {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center;
  text-decoration: none; color: #fff; background: #33302c;
}
.tile.t1 { background: #3a3029; } .tile.t2 { background: #2c362b; } .tile.t3 { background: #3a2f37; }
.tile.t4 { background: #283039; } .tile.t5 { background: #3b3220; } .tile.t6 { background: #2e2823; }
.tile.t7 { background: #35331f; } .tile.navy { background: var(--navy); } .tile.char { background: #2a2c2d; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.has-photo::after { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 26, .56); transition: background .2s; }
.tile.has-photo:hover::after { background: rgba(20, 22, 26, .42); }
.tile:not(.has-photo):hover { filter: brightness(1.18); }
.tile > span { position: relative; z-index: 1; }
.tile .t-name { font-size: 15.5px; font-weight: 500; line-height: 1.45; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); overflow-wrap: anywhere; }
.tile .t-line { font-size: 13.5px; letter-spacing: .08em; }
.tile .t-flag { position: absolute; top: 10px; right: 10px; z-index: 2; }
/* un logo est montré entier, sur son fond, au-dessus du nom ; un portrait est cadré sur le haut de l'image */
.tile.has-logo img { position: static; flex: none; width: 66%; height: 42%; object-fit: contain; background: #fff; }
.tile.has-logo.dark img { background: var(--navy); }
.tile.is-portrait img { object-position: 50% 22%; }
.tiles-foot { display: flex; justify-content: center; gap: 10px 18px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.tiles-foot .quiet { font-size: 13px; color: var(--muted); }

/* ---------- Tête de fiche : la photo du domaine, son nom en or ---------- */
.hero {
  position: relative; margin: 0 calc(-1 * var(--pad)) 20px; padding: 46px var(--pad) 30px;
  min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; color: #fff; background: #33302c; border-top: 1px solid var(--navy-line);
}
.hero.t1 { background: #3a3029; } .hero.t2 { background: #2c362b; } .hero.t3 { background: #3a2f37; }
.hero.t4 { background: #283039; } .hero.t5 { background: #3b3220; } .hero.t6 { background: #2e2823; }
.hero.t7 { background: #35331f; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 26, .58); }
.hero > * { position: relative; z-index: 1; }
.hero > img { z-index: 0; }
/* un portrait ne se découpe pas en bandeau (on n'en verrait qu'une tranche) : il est montré entier, au-dessus du nom */
.hero.is-portrait > img { position: relative; inset: auto; z-index: 1; width: auto; height: 190px; max-width: 72%; object-fit: cover; object-position: 50% 22%; margin-bottom: 8px; }
.hero.is-portrait::after { display: none; }
.hero.has-logo > img { position: relative; inset: auto; z-index: 1; width: auto; height: 88px; max-width: min(300px, 70%); object-fit: contain; background: #fff; margin-bottom: 6px; }
.hero.has-logo.dark > img { background: var(--navy); }
.hero h1 { color: var(--gold); font-size: 23px; letter-spacing: .24em; }
.hero p { margin: 0; font-size: 14px; letter-spacing: .08em; }
.hero .back {
  position: absolute; left: var(--pad); top: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 0 9px; font-size: 11.5px; letter-spacing: var(--caps); text-transform: uppercase; color: #fff; text-decoration: none;
}
.hero .back svg { width: 15px; height: 15px; margin-top: -3px; }
.hero .hero-tools { position: absolute; right: var(--pad); top: 10px; z-index: 3; display: flex; gap: 6px; }
.hero .hero-tools .btn { border-color: #b9b2a6; color: #fff; background: rgba(20, 22, 26, .35); }
.hero .hero-tools .btn:hover { background: rgba(20, 22, 26, .6); }
.hero .badge { vertical-align: middle; }

/* ---------- Photos proposées : une carte par domaine, une image par proposition ---------- */
.pdom { margin-bottom: 14px; scroll-margin-top: 90px; }
.pdom-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pdom-head h2 { margin: 0; }
.pdom-head h2 a { text-decoration: none; }
.pdom-head .grow { flex: 1; }
.pdom-head label.btn { cursor: pointer; }
.pdom-head label.btn:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.pcurrent { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; background: var(--surface-2); }
.pcurrent img { width: 84px; height: 84px; object-fit: cover; flex: none; background: var(--navy); }
.pcurrent img.logo { object-fit: contain; background: #fff; }
.pcurrent .grow { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; min-width: 0; background: var(--surface-2); }
.p-img { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #8b8780; }
.p-img.k-logo { background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.p-img.k-logo_sombre { background: var(--navy); }
.p-img img { display: none; width: 100%; height: 100%; object-fit: contain; }
.p-img.k-logo img, .p-img.k-logo_sombre img { width: 78%; height: 78%; }
.pcard.ready .p-img img { display: block; }
.p-msg { padding: 14px; font-size: 13px; line-height: 1.5; text-align: center; color: #fff; }
.p-img.k-logo .p-msg { color: var(--ink); }
.pcard.ready .p-msg { position: absolute; left: 0; bottom: 0; padding: 4px 8px 2px; font-size: 11.5px; letter-spacing: .04em; background: rgba(20, 22, 26, .66); color: #fff; }
.pcard.ready .p-msg.warn { background: var(--warn); }
.p-body { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 12px 14px 14px; }
.p-cap { font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; overflow-wrap: anywhere; }
.p-kind { display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.p-kind select { width: 100%; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.p-actions .btn[disabled] { opacity: .45; cursor: default; }

/* ---------- Accueil : les quatre étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.step {
  background: var(--surface); padding: 24px 22px 22px; display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
}
.step .s-k { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.step h2 { font-size: 16px; font-weight: 400; letter-spacing: .2em; }
.step .s-v { font-size: 48px; font-weight: 300; line-height: 1; padding-top: 12px; font-variant-numeric: tabular-nums; }
.step .s-d { font-size: 14px; color: var(--muted); padding-bottom: 12px; }
.step .s-actions { margin-top: auto; align-self: stretch; display: flex; gap: 8px; }
.step .s-actions .btn { flex: 1; padding-left: 8px; padding-right: 8px; }
.step.me { background: var(--navy); color: var(--navy-ink); }
.step.me .s-k, .step.me .s-v { color: var(--gold); }
.step.me .s-d { color: #d9d2c6; }
.step.me .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.step.me .btn:not(.btn-primary) { border-color: #8d8a83; color: var(--navy-ink); }
.fold { background: var(--surface); padding: 0 20px; margin-bottom: 14px; }
.fold > summary {
  list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: 12px; padding-top: 3px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translate(-3px, -3px);
}
.fold[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fold .count { min-width: 24px; padding: 4px 6px 1px; background: var(--gold); color: var(--navy); font-size: 12.5px; font-weight: 600; line-height: 19px; text-align: center; }
.fold .count.zero { background: #ece5d8; color: var(--muted); }
.fold-body { padding: 4px 0 18px; border-top: 1px solid var(--line); }
.fold-body h3 { margin: 16px 0 2px; color: var(--muted); font-weight: 500; }
.quiet-links { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- Choix des quantités : cartes de vin, boutons − et +, barre d'action ---------- */
.wcards { display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; }
.wcard { background: var(--surface); padding: 16px 20px 14px; display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.wcard .w-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wcard .w-photo { flex: 0 0 auto; }
.wcard .w-photo img { display: block; width: 54px; height: 72px; object-fit: cover; background: #1c2026; }
.wcard .w-name { font-size: 16.5px; font-weight: 500; letter-spacing: .04em; }
.wcard .w-sub { font-size: 13.5px; color: var(--muted); }
.wcard .w-price { font-size: 15.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wcard .w-price small { font-weight: 400; color: var(--muted); }
.wcard .w-club { font-size: 12.5px; margin-top: 3px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wcard .w-club .link-btn { font-size: 12.5px; color: var(--muted); }
.wcard .w-club .badge { text-decoration: none; }
.wcard .w-steps { display: flex; gap: 14px; align-items: flex-end; }
.wcard .w-for { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wcard .w-for > span:first-child:not(.stepper) { font-size: 10.5px; letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button {
  width: 44px; height: 44px; padding: 0 0 2px; border: 1px solid var(--char); background: var(--surface); color: var(--ink);
  font: 400 22px/1 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; cursor: pointer;
}
.stepper button.plus { background: var(--char); color: #fff; }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper input {
  width: 50px; height: 44px; padding: 4px 0 0; border: 0; background: transparent; text-align: center;
  font: inherit; font-size: 19px; font-weight: 500; color: inherit; font-variant-numeric: tabular-nums;
}
.stepper input::placeholder { color: #a39c8f; font-weight: 400; }
.stepper input:focus { outline: 2px solid var(--gold); }
.dests { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.dest { background: var(--surface-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.dest .d-k { font-size: 11.5px; letter-spacing: var(--caps); text-transform: uppercase; }
.dest .d-h { font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.dest .stepper { display: flex; }
.dest .stepper input { flex: 1; width: auto; min-width: 0; }
.rest { padding: 6px 10px 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.rest.todo { background: var(--gold); color: var(--navy); }
.rest.over { background: var(--late); color: #fff; }
.actionbar {
  position: sticky; bottom: 0; z-index: 20; margin: 22px calc(-1 * var(--pad)) -72px; padding: 14px var(--pad);
  background: var(--navy); color: var(--navy-ink); display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
}
.actionbar .a-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.actionbar .a-main strong { font-size: 15.5px; font-weight: 500; letter-spacing: .04em; color: var(--gold); }
.actionbar .a-main span { font-size: 13.5px; color: #d9d2c6; }
.actionbar .btn { border-color: #b9b2a6; color: var(--navy-ink); }
.actionbar .btn:hover { background: rgba(255, 255, 255, .08); }
.actionbar .btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.actionbar .btn-gold:hover { background: #eab23a; }
.banner { background: var(--surface); padding: 14px 20px; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.banner .b-v { font-size: 38px; font-weight: 300; line-height: 1; padding-top: 6px; font-variant-numeric: tabular-nums; }
.banner .b-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.banner .b-k { font-size: 12px; letter-spacing: var(--caps); text-transform: uppercase; }
.banner .b-d { font-size: 13.5px; color: var(--muted); }
.banner .b-sum { font-size: 20px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.banner .b-sum .unknown { font-size: 14px; }
.tile .t-amount { font-size: 13.5px; font-weight: 500; }
.tile .unknown { color: #f0c05a; }
/* accueil : les chiffres d'abord, puis les domaines, puis (replié) ce qui reste à faire */
.figures { margin-bottom: 26px; }
.figures .stat { padding: 20px 22px 17px; }
.figures .stat .v { font-size: 40px; }
.figures .stat .d { overflow-wrap: anywhere; }
.figures + .tiles-title, .figures + .card { margin-top: 0; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 22px; }
.shortcut { background: var(--surface); padding: 15px 18px 11px; display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.shortcut:hover { background: #fff; }
.shortcut b { font-size: 24px; font-weight: 300; line-height: 1; min-width: 26px; font-variant-numeric: tabular-nums; }
.shortcut span { flex: 1; font-size: 12px; letter-spacing: var(--caps); text-transform: uppercase; }

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  :root { --pad: 14px; }
  .topbar { position: sticky; top: 0; }
  .topbar .inner { min-height: 54px; gap: 0 8px; flex-wrap: wrap; position: relative; }
  /* les menus de la barre s'ouvrent sur toute la largeur de l'écran, quel que soit le bouton */
  .topbar .menu { position: static; }
  .topbar .menu-list { left: var(--pad); right: var(--pad); top: 100%; min-width: 0; }
  .brand { flex: 1; gap: 0; }
  .brand b { font-size: 15px; letter-spacing: .34em; }
  .brand i, .brand small { display: none; }
  .mainnav { display: none; }
  .navlink { padding: 0; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 0; }
  .navlink span { display: none; }
  .navlink svg { display: block; }
  .save-state { order: 15; flex-basis: 100%; padding: 4px 0 8px; }
  .content { padding-bottom: 104px; }
  h1 { font-size: 15.5px; letter-spacing: .2em; }
  .page-head { padding: 16px var(--pad) 14px; gap: 10px; margin-bottom: 16px; }
  .page-head p { font-size: 13px; }
  .g2, .g3, .g4, .glance, .form-grid { grid-template-columns: 1fr; }
  .stocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stocks .stat { padding: 12px 12px 10px; }
  .stocks .stat .v { font-size: 26px; }
  .figures .stat { padding: 14px 14px 12px; }
  .figures .stat .v { font-size: 30px; }
  .banner .b-sum { flex-basis: 100%; }
  .g4.keep2, .g3.keep2, .g2.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 1.51 : rien ne doit élargir la page sur téléphone (sinon la barre du bas « bouge » au défilement) */
  html, body { overflow-x: clip; max-width: 100%; }
  .stat .d, .stat .v, .board-tile .d, .board-legend li { overflow-wrap: anywhere; min-width: 0; }
  .cv-toggle { display: none; }
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy);
    padding: 4px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a {
    flex: 1; min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; color: #d9d2c6; text-decoration: none; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  }
  /* gestion : six onglets depuis la 1.40 (Carte) — un peu plus serrés pour tenir sur les petits écrans */
  .bottomnav:not(.club-bottomnav) a { font-size: 9.5px; letter-spacing: .04em; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* espace membres : cinq onglets, chacun large comme son mot, le même blanc entre tous */
  .club-bottomnav { justify-content: space-between; padding-left: 8px; padding-right: 8px; }
  .club-bottomnav a { flex: 0 1 auto; padding: 0 4px; font-size: 9px; letter-spacing: .03em; white-space: nowrap; }
  .bottomnav a.active { color: var(--gold); }
  .bottomnav svg { width: 20px; height: 20px; }
  #toasts { bottom: 76px; right: 10px; left: 10px; max-width: none; }
  .selection-bar { bottom: 70px; }
  .actionbar { bottom: calc(60px + env(safe-area-inset-bottom)); margin-bottom: calc(-44px + env(safe-area-inset-bottom)); padding: 10px var(--pad) 12px; }
  .tabs a { white-space: normal; text-align: center; }
  .actionbar .a-main { flex-basis: 120px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { padding: 8px 0 0; }
  .ci { font-size: 16px; }              /* évite le zoom automatique d'iOS */
  .field input, .field select, .field textarea, .input { font-size: 16px !important; }
  .stepper input { font-size: 18px; }
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .modal-body { max-height: calc(100dvh - 60px); }
  /* téléphone : les régions défilent sur une seule ligne, du bout du doigt */
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: -6px calc(-1 * var(--pad)) 16px; padding: 0 var(--pad); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { white-space: nowrap; flex: none; }
  .chips .sep { flex: none; }
  .tiles-title { margin: 22px 0 10px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 10px; gap: 6px; }
  .tile .t-name { font-size: 12.5px; letter-spacing: .15em; }
  .tile .t-line { font-size: 12.5px; }
  .hero { min-height: 128px; padding: 44px var(--pad) 18px; margin-bottom: 14px; gap: 4px; }
  .hero h1 { font-size: 16.5px; letter-spacing: .2em; }
  .hero.has-logo > img { height: 54px; margin-bottom: 2px; }
  .tile.has-logo img { height: 34%; }
  .hero.is-portrait > img { height: 132px; margin-bottom: 4px; }
  .pcards { grid-template-columns: 1fr; }
  .pdom-head .grow { display: none; }
  .hero p { font-size: 13px; }
  .hero .back { top: 2px; }
  .hero .hero-tools { top: 6px; }
  .steps { grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
  .step {
    display: grid; grid-template-columns: 58px 1fr; grid-template-areas: "v k" "v h" "v d" "b b";
    gap: 0 12px; text-align: left; align-items: center; padding: 12px 14px 12px;
  }
  .step .s-k { grid-area: k; font-size: 10.5px; }
  .step h2 { grid-area: h; font-size: 13.5px; }
  .step .s-v { grid-area: v; font-size: 34px; text-align: center; padding-top: 6px; }
  .step .s-d { grid-area: d; padding-bottom: 0; font-size: 13.5px; }
  .step .s-actions { grid-area: b; margin-top: 10px; }
  .wcard { padding: 14px 14px 12px; }
  .wcard .w-name { font-size: 15px; }
  .wcard .w-price { flex: 1; }
  .dests { grid-template-columns: 1fr; gap: 0; }
  .dest { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0 8px; padding: 7px 10px; border-top: 1px solid var(--line); background: transparent; }
  .dest .d-k { flex: 1 1 100px; }
  .dest .d-h { flex: 0 0 100%; order: 3; padding: 0 0 2px; }
  .dest .stepper { display: inline-flex; }
  .dest .stepper input { flex: none; width: 44px; }
  .banner .b-v { font-size: 32px; }
  .shortcuts { gap: 8px; margin-top: 14px; }

  /* tableaux affichés en fiches */
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tfoot { display: block; }
  table.cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.cards tr.group { display: block; padding: 0; }
  table.cards tr.group td { display: block; }
  table.cards td { display: block; border: 0; padding: 2px 0; text-align: left; min-width: 0; }
  table.cards td.cell { padding: 2px 0; }
  table.cards td[data-l]::before {
    content: attr(data-l); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted); font-weight: 500;
  }
  table.cards td.full, table.cards td.title { grid-column: 1 / -1; }
  table.cards td.title { font-weight: 600; font-size: 15px; }
  table.cards td.cell .ci { border-color: var(--line-strong); background: #fff; text-align: left; width: 100%; }
  table.cards td.num { text-align: left; }
  table.cards td.actions { grid-column: 1 / -1; width: auto; text-align: left; }
  table.cards td.check-col { position: absolute; right: 14px; }
  table.cards tr { position: relative; }
  table.cards td:empty { display: none; }
  table.prices tr.mainrow { border-bottom: 0; padding-bottom: 0; }
  table.prices tr.subrow { display: block; padding-top: 0; }
  .w-qty, .w-money, .w-pct, .w-date, .w-year { width: 100%; }
  .quick-add .w-qty, .quick-add .w-year, .quick-add .w-money { width: auto; flex: 1 1 40%; min-width: 90px; }
  .quick-add .combo, .quick-add > .input[type="text"]:first-of-type { flex: 1 1 100%; }
  .quick-add select.input { flex: 1 1 40%; }
  .quick-add .btn { flex: 1 1 100%; }
  .group-head .right { margin-left: 0; }
  .hide-mobile { display: none !important; }
  details.filter-box > summary { display: inline-flex; list-style: none; margin-bottom: 10px; }
  details.filter-box > summary::-webkit-details-marker { display: none; }
  details.filter-box[open] > summary { background: var(--char); color: #fff; border-color: var(--char); }
  .filters select, .filters input[type="search"] { flex: 1 1 45%; min-width: 0; }
  .btn { white-space: normal; text-align: center; }
}
@media (max-width: 380px) {
  .brand b { font-size: 13.5px; letter-spacing: .28em; }
  .topbar .tool, .topbar .navlink { width: 38px; }
}
@media (min-width: 861px) { .only-mobile { display: none !important; } }

/* ---------- Impression (synthèse de rendez-vous, exports) ---------- */
@media print {
  .topbar, .bottomnav, .no-print, #toasts, .demo-banner, .actionbar { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .content { padding: 0; max-width: none; }
  .page-head, .crumb, .hero { background: none; color: #000; margin: 0 0 12px; padding: 0; border: 0; min-height: 0; }
  .page-head h1, .hero h1 { color: #000; }
  .hero > img, .hero::after { display: none; }
  .card, .table-wrap, .stat { outline: 1px solid #bbb; break-inside: avoid; }
  .print-only { display: block; }
  a { text-decoration: none; }
}

/* ---------- Espace client du Club ---------- */
.club-top { background: var(--navy); color: var(--navy-ink); position: sticky; top: 0; z-index: 30; }
/* première ligne : la même barre que le site vitrine (logo, Dégustations · Le Club, icône membre) */
.club-top .site-bar { min-height: 70px; flex-wrap: nowrap; gap: 24px; }
.club-top .site-bar .club-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 0; letter-spacing: .34em; }
.club-brand .b-main { font-size: 22px; line-height: 1; }
.club-brand .b-sep { display: inline-block; width: 1px; height: 30px; background: rgba(255, 255, 255, .45); }
.club-brand .b-sub { font-family: var(--font); font-size: 11px; letter-spacing: .32em; color: #e6dfd3; }
.site-nav { display: flex; gap: 2px; flex: 1 1 auto; justify-content: flex-end; }
.site-nav a { color: #fff; text-decoration: none; padding: 10px 14px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--gold); }
.site-user { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.site-user:hover { background: #eab23a; }
.site-gestion { flex: 0 0 auto; color: #fff; text-decoration: none; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .45); padding: 6px 10px; white-space: nowrap; }
.site-gestion:hover { color: var(--gold); border-color: var(--gold); }
.club-top .inner + .inner { border-top: 1px solid var(--navy-line); min-height: 0; }
.club-top .inner + .inner .club-nav { justify-content: flex-start; gap: 0; }
.club-top .inner + .inner .club-nav a { padding: 13px 10px 9px; font-size: 11.5px; }
.club-user { margin-left: auto; padding-left: 10px; flex: 0 0 auto; }
.club-user .link-btn { white-space: nowrap; font-size: 11.5px; letter-spacing: .04em; }
.club-top .inner { max-width: 920px; margin: 0 auto; padding: 0 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-height: 64px; }
.club-brand { font-family: var(--serif); font-size: 17px; letter-spacing: .32em; color: #fff; text-decoration: none; padding: 16px 0 14px; text-transform: uppercase; }
.club-brand span { color: var(--gold); }
/* deux lignes : le nom du club et « Se déconnecter », puis les rubriques (leur nombre peut grandir sans rien casser) */
.club-top .club-brand { flex: 1; }
.club-user { order: 2; }
.club-nav { display: flex; gap: 2px; order: 3; flex: 1 1 100%; flex-wrap: nowrap; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.club-nav::-webkit-scrollbar { display: none; }
.club-nav a { color: var(--navy-ink); text-decoration: none; padding: 15px 9px 10px; font-size: 11.5px; letter-spacing: var(--caps); text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid transparent; }
.club-nav a:hover { color: #fff; }
.club-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.club-user { font-size: 13px; color: #b9b2a6; display: flex; gap: 10px; align-items: center; }
.club-user .link-btn { color: #d9d2c6; }
.club-main { --cpad: 18px; max-width: 920px; margin: 0 auto; padding: 30px var(--cpad) 40px; }
.club-main h1 { margin-bottom: 6px; text-align: center; }
.club-main .lead { color: var(--muted); margin-bottom: 20px; text-align: center; }
/* dans l'espace client, le fil d'Ariane est un simple lien au-dessus du titre (pas le bandeau sombre de la gestion) */
.club-main .crumb { margin: 0 0 8px; padding: 0; border: 0; background: none; color: var(--muted); }
.club-main .crumb a:hover { color: var(--ink, #1c2026); }
/* espace client : mêmes carrés et mêmes cartes que pour les associés */
.club-main .tabs { margin-top: 4px; }
.club-main .tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.club-hero { position: relative; margin: -30px calc(-1 * var(--cpad)) 20px; padding: 44px var(--cpad) 26px; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #fff; background: #33302c; }
.club-hero.t1 { background: #3a3029; } .club-hero.t2 { background: #2c362b; } .club-hero.t3 { background: #3a2f37; }
.club-hero.t4 { background: #283039; } .club-hero.t5 { background: #3b3220; } .club-hero.t6 { background: #2e2823; } .club-hero.t7 { background: #35331f; }
.club-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.club-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 26, .58); }
.club-hero > :not(img) { z-index: 1; }
.club-hero > h1, .club-hero > p { position: relative; }
.club-hero.is-portrait > img { position: relative; inset: auto; z-index: 1; width: auto; height: 190px; max-width: 72%; object-position: 50% 22%; margin-bottom: 8px; }
.club-hero.is-portrait::after { display: none; }
.club-hero.has-logo > img { position: relative; inset: auto; z-index: 1; width: auto; height: 88px; max-width: min(300px, 70%); object-fit: contain; background: #fff; margin-bottom: 6px; }
.club-hero.has-logo.dark > img { background: var(--navy); }
.club-hero h1 { color: var(--gold); font-size: 21px; letter-spacing: .22em; margin: 0; }
.club-hero p { margin: 0; font-size: 13.5px; letter-spacing: .06em; }
.club-hero .back { position: absolute; left: var(--cpad); top: 12px; font-size: 11.5px; letter-spacing: var(--caps); text-transform: uppercase; color: #fff; text-decoration: none; }
.club-main .wcard .w-fixed { min-width: 142px; text-align: center; }
.club-main .wcard .badge { white-space: normal; }
.club-main .wcard .w-sub { overflow-wrap: anywhere; }
.club-bar { position: sticky; bottom: 0; z-index: 20; margin: 18px calc(-1 * var(--cpad)) 0; padding: 12px var(--cpad); background: var(--navy); color: var(--navy-ink); display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.club-bar .a-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.club-bar .a-main strong { font-size: 15.5px; font-weight: 500; letter-spacing: .04em; color: var(--gold); }
.club-bar .a-main span { font-size: 13.5px; color: #d9d2c6; }
.club-bar .btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.club-bar .btn-gold:hover { background: #eab23a; }
.club-foot { max-width: 920px; margin: 0 auto; padding: 18px 18px 40px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line-strong); }
.club-foot a { color: inherit; }
.club-narrow { max-width: 460px; margin: 6vh auto 0; }
.club-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.club-offer { display: block; text-decoration: none; background: var(--surface); padding: 18px 20px 16px; }
.club-offer:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--gold); }
.club-offer h2 { margin-bottom: 6px; }
.club-offer .cta { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.wine-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 16px; align-items: center; padding: 13px 0 11px; border-bottom: 1px solid var(--line); }
.wine-row:last-child { border-bottom: 0; }
.wine-row .wine strong { font-size: 16px; font-weight: 500; letter-spacing: .03em; }
.wine-row .wine .sub { display: block; color: var(--muted); font-size: 13px; }
.wine-row .price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.wine-row .price small { display: block; font-weight: 400; color: var(--muted); }
.wine-row .ask { display: flex; align-items: center; gap: 6px; }
.wine-row .ask input { width: 74px; padding: 10px 9px 7px; border: 1px solid var(--line-strong); font: inherit; text-align: right; background: #fff; }
.wine-row .state { grid-column: 1 / -1; font-size: 13px; }
.club-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 0; font-size: 17px; font-weight: 600; }
.club-steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.club-steps li { background: var(--surface); padding: 6px 12px 3px; }
.club-steps li b { color: var(--ink); }
.legal-text { white-space: pre-wrap; line-height: 1.6; }
.charter-box { max-height: 260px; overflow-y: auto; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14.5px; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--char); }
.copy-box { display: block; width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); background: var(--surface-2); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { padding: 5px 0; display: flex; gap: 9px; align-items: baseline; }
.setup-list .mark { width: 18px; flex: none; font-weight: 700; }
.setup-list .yes { color: var(--ok); }
.setup-list .no { color: var(--late); }
.setup-list .opt { color: var(--warn); }
@media (max-width: 860px) {
  .club-top .inner { gap: 0 12px; padding: 0 12px; min-height: 0; }
  .club-top .site-bar { min-height: 56px; gap: 10px; }
  .club-brand .b-main { font-size: 15px; }
  .club-brand .b-sep, .club-brand .b-sub { display: none; }
  .site-nav a { padding: 8px 6px; font-size: 10.5px; letter-spacing: .06em; }
  .site-user { width: 32px; height: 32px; }
  .club-brand { padding: 14px 0 6px; font-size: 14.5px; flex: 1; min-width: 0; }
  .club-brand .b-main { letter-spacing: .22em; }
  .club-nav { order: 3; flex-basis: 100%; padding-bottom: 6px; justify-content: space-between; }
  .club-nav a { padding: 12px 4px 8px; font-size: 11px; letter-spacing: .06em; }
  .club-main { --cpad: 12px; padding: 20px var(--cpad) 32px; }
  .club-hero { margin-top: -20px; }
  .club-hero.is-portrait > img { height: 132px; margin-bottom: 4px; }
  .club-hero.has-logo > img { height: 54px; margin-bottom: 2px; }
  .club-main .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wine-row { grid-template-columns: 1fr auto; }
  .wine-row .wine { grid-column: 1 / -1; }
  .wine-row .price { text-align: left; }
  .wine-row .ask input { font-size: 16px; }
  /* téléphone : les rubriques passent dans la barre fixe du bas ; le compte garde un accès aux autres pages */
  .club-top .inner + .inner { display: none; }
  .club-member .site-nav { display: none; }   /* membre connecté : Dégustations et Le Club sont dans la barre du bas */
  .club-member .site-gestion { margin-left: auto; }
  .club-member .site-gestion + .site-user { margin-left: 0; }
  .club-member .site-user { margin-left: auto; }
  .club-main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .club-foot { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .club-foot.pinned .legal-strip { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .club-foot.pinned { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
  .sh-msg { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .acct-links { text-align: center; margin: -4px 0 12px; font-size: 12.5px; }
}

/* Bandeaux légaux de l'espace client : en bas de page, à gauche, côte à côte, en petite hauteur. */
.legal-strip { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; gap: 10px; margin: 0 0 12px; }
.legal-strip img { display: block; width: auto; height: auto; max-height: 64px; max-width: calc(50% - 5px); background: #fff; object-fit: contain; }
.legal-strip .ls-text { display: block; max-width: min(360px, calc(50% - 5px)); padding: 5px 9px; background: #fff; color: #111; border: 1px solid #111; font-size: 10.5px; line-height: 1.3; }
.legal-strip .ls-text strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
/* sur le récapitulatif avant paiement, ils restent visibles pendant qu'on fait défiler la page */
.club-foot.pinned { padding-bottom: 96px; }
.club-foot.pinned .legal-strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; margin: 0; padding: 6px 18px; background: #fff; border-top: 1px solid var(--line-strong); }
@media (max-width: 560px) { .legal-strip img { max-height: 48px; } .club-foot.pinned { padding-bottom: calc(210px + env(safe-area-inset-bottom)); } }
@media print { .club-foot.pinned .legal-strip { position: static; padding: 0; border: 0; } }

[hidden] { display: none !important; }

/* --- Intérêt d'un domaine : étoiles (1 à 5). Pas d'étoile pleine = pas encore noté. --- */
.stars, .stars-ro { display: inline-flex; align-items: center; white-space: nowrap; vertical-align: middle; }
.stars .star {
  appearance: none; border: 0; background: none; margin: 0; padding: 3px 2px; cursor: pointer;
  font: inherit; font-size: 15px; line-height: 1; color: var(--line-strong);
}
.stars .star.on, .stars-ro .on { color: var(--gold); }
.stars-ro { font-size: 13px; letter-spacing: 1px; }
.stars-ro .off { color: var(--line-strong); }
/* au survol (souris seulement) : on voit la note qu'on s'apprête à donner */
@media (hover: hover) {
  .stars:hover .star { color: var(--gold); }
  .stars .star:hover ~ .star { color: var(--line-strong); }
}
.stars input.is-saving ~ .star { opacity: .55; }
.stars input.is-error ~ .star.on { color: var(--late); }       /* note affichée mais pas enregistrée */
.stars .star:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
@media (max-width: 860px) { .stars .star { font-size: 19px; padding: 5px 4px; } }

/* --- Stock d'une cave : repère de couleur du vin (rouge, blanc, rosé, pétillant) et région --- */
table.stock th.tint-h, table.stock td.tint { width: 12px; min-width: 12px; max-width: 12px; padding: 0; }
.t-rouge { background: #a8322a; }      /* rouge de Chine */
.t-blanc { background: #dcb95c; }      /* jaune légèrement ocre */
.t-rose { background: #f2c6cb; }       /* rose pâle */
.t-bulles { background: #e8dcc4; }     /* beige pâle */
.tint-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; }
.tint-key span { display: inline-flex; align-items: center; gap: 6px; }
.tint-key i { display: inline-block; width: 12px; height: 12px; }
.fold > summary h2 { font-size: inherit; }
@media (max-width: 860px) {
  table.stock td.tint { grid-column: 1 / -1; width: auto; max-width: none; height: 6px; margin: -10px -12px 6px; }
  table.stock td.tint.t-none { display: none; }
}

/* --- Souhaits : case « Club » (bouteilles proposées au Club), à côté des souhaits --- */
.wcard .w-club-qty .stepper button.plus { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.wcard .w-live { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 138px; height: 44px;
  font-size: 19px; font-weight: 500; text-decoration: none; line-height: 1.05; }
.wcard .w-live small { font-size: 10.5px; font-weight: 400; letter-spacing: var(--caps); text-transform: uppercase; color: var(--ok); }
@media (max-width: 860px) {
  /* plusieurs cases (Consonance, Club, Moi) : une par ligne, le nom à gauche, − et + à droite */
  .wcard .w-steps { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  .wcard .w-steps .w-for { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .wcard .w-steps .w-for:only-child { justify-content: flex-end; }
}

/* --- Dégustations (espace client) --- */
.tasting-card { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tasting-card h2 { margin: 0 0 4px; }
.tasting-card h2 a { text-decoration: none; }
.tasting-card .tc-when { margin: 0 0 4px; }
.tasting-card .tc-side { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.club-main .kv dt { white-space: nowrap; }

/* --- Page d'une dégustation (version 1.18) : bandeau photo, repères, vins, galerie --- */
.t-hero { position: relative; margin: -30px calc(-1 * var(--cpad)) 0; min-height: 300px; background: var(--navy) center / cover no-repeat; color: #fff; display: flex; align-items: flex-end; }
.t-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 32, 38, .2) 0%, rgba(28, 32, 38, .7) 50%, rgba(28, 32, 38, .96) 100%); }
.t-hero .t-hero-in { position: relative; width: 100%; padding: 70px var(--cpad) 24px; text-align: center; }
.t-hero .t-kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #d9d2c6; margin: 0 0 10px; }
.t-hero h1 { color: var(--gold); margin: 0 0 10px; font-size: 24px; letter-spacing: .22em; text-align: center; }
.t-hero .t-when { margin: 0; font-size: 14px; color: #f1ece3; letter-spacing: .04em; }
.t-hero .t-when span + span::before { content: " · "; color: var(--gold); }
.t-hero.t-hero-plain { min-height: 190px; }
.t-facts { display: flex; flex-wrap: wrap; justify-content: center; background: var(--surface); margin: 0 calc(-1 * var(--cpad)) 18px; border-bottom: 1px solid var(--line); }
.t-facts > div { flex: 1 1 120px; padding: 12px 10px 9px; text-align: center; border-right: 1px solid var(--line); min-width: 110px; }
.t-facts > div:last-child { border-right: 0; }
.t-facts .k { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.t-facts .v { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.t-facts .v small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.t-facts .g-rare .v { color: var(--late); }
.t-facts .g-complet .v { color: var(--muted); }
.t-facts .g-ouvert .v { color: var(--ok); }
.t-section { margin-top: 16px; }
.t-section > h2 { margin-bottom: 10px; }
.t-prose { white-space: pre-line; font-size: 15px; line-height: 1.55; max-width: 680px; }
.wines { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.wine { background: var(--surface); display: flex; flex-direction: column; min-height: 100%; }
.wine .w-img { aspect-ratio: 3 / 4; background: var(--navy) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: var(--serif); font-size: 34px; }
.wine .w-img.w-blur span { background: rgba(28, 32, 38, .55); padding: 4px 16px 0; }
.wine .w-body { padding: 10px 12px 11px; }
.wine .w-n { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.wine .w-domain { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.wine .w-cuvee { font-size: 13px; line-height: 1.35; }
.wine .w-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.wine.w-hidden .w-img { background-image: repeating-linear-gradient(135deg, #22262d 0 10px, #1c2026 10px 20px); }
.wine.w-hidden .w-img.w-blur { background-image: none; }
.wine.w-hidden .w-domain { color: var(--muted); font-weight: 400; font-style: italic; }
.t-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-actions .btn { font-size: 11px; }
/* téléphone : le bandeau doré « M'inscrire », fixé au-dessus de la barre du bas ; tout le bandeau est le lien */
.t-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 12px var(--cpad) calc(12px + env(safe-area-inset-bottom)); background: var(--gold); color: var(--navy); display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; text-decoration: none; }
.t-cta b { white-space: nowrap; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.t-cta-space { height: 56px; }
.club-member .t-cta { bottom: calc(60px + env(safe-area-inset-bottom)); padding-bottom: 12px; }
@media (min-width: 721px) { .t-cta, .t-cta-space { display: none; } }
/* le lieu : la photo à gauche de l'adresse */
.t-place { display: flex; gap: 18px; align-items: flex-start; }
.t-place-photo { flex: 0 0 180px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); display: block; }
.t-place-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-place-in { flex: 1 1 200px; min-width: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.gallery li { aspect-ratio: 1 / 1; background: var(--navy); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g-remove { position: absolute; top: 4px; right: 4px; }
.t-join { background: var(--navy); color: #e6dfd3; padding: 22px 20px; text-align: center; margin-top: 16px; }
.t-join h2 { color: var(--gold); margin-bottom: 8px; }
.t-join p { max-width: 560px; margin: 0 auto 12px; font-size: 14px; }
.t-interest { background: var(--surface-2); padding: 16px 18px; margin-top: 16px; }
.t-interest form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.t-interest .field { flex: 1 1 260px; margin: 0; }
@media (max-width: 720px) {
  .t-hero h1 { font-size: 19px; letter-spacing: .16em; }
  .t-hero .t-hero-in { padding-top: 90px; }
  .t-facts { flex-wrap: nowrap; }            /* les repères tiennent sur une seule ligne */
  .t-facts > div { flex: 1 1 0; min-width: 0; padding: 10px 4px 8px; }
  .t-facts .k { font-size: 9.5px; letter-spacing: .14em; }
  .t-facts .v { font-size: 13px; }
  .t-facts .v small { display: block; font-size: 10.5px; }
  .t-place { flex-direction: column; gap: 12px; }
  .t-place-photo { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .wines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wine .w-img { font-size: 26px; }
}

/* --- Galerie flottante (page d'une dégustation) --- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(12, 14, 18, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(96vw, 1400px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 96vw; max-height: 86vh; object-fit: contain; display: block; background: #000; }
.lightbox figcaption { color: #d9d2c6; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 44px/1 var(--serif); cursor: pointer; padding: 10px 16px; opacity: .8; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; color: var(--gold); outline: none; }
.lightbox .lb-close { top: 8px; right: 12px; font-size: 36px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.gallery a { cursor: zoom-in; }
@media (max-width: 720px) { .lightbox button { font-size: 34px; padding: 10px; } .lightbox img { max-height: 80vh; } }

/* ------------------------------------------------------------------ la cave (1.20) : filtres, cartes, volet */
.cv-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.cv-tools .cv-search { flex: 1 1 220px; min-width: 0; }
.cv-tools .cv-sort { flex: 0 1 auto; }
.cv-filters, .cv-chips { display: flex; gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.cv-filters::-webkit-scrollbar, .cv-chips::-webkit-scrollbar { display: none; }
.cv-filters li, .cv-chips li { flex: 0 0 auto; margin: 0; padding: 0; list-style: none; scroll-snap-align: start; }
.cv-filters button, .cv-filters a.btn-chip {
  background: none; border: 0; padding: 9px 14px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.cv-filters button span { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; margin-left: 5px; }
.cv-filters button[aria-pressed="true"], .cv-filters a.btn-chip[aria-pressed="true"] { color: #fff; background: var(--char); }
.cv-filters button[aria-pressed="true"] span { color: #d9d2c6; }
.cv-chips { margin-bottom: 14px; }
.cv-chips button {
  display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); padding: 6px 10px;
  font: inherit; font-size: 11.5px; letter-spacing: .04em; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.cv-chips button i { width: 10px; height: 10px; display: inline-block; }
.cv-chips button span { color: var(--muted); font-size: 10.5px; }
.cv-chips button[aria-pressed="true"] { border-color: var(--char); background: var(--char); color: #fff; }
.cv-chips button[aria-pressed="true"] span { color: #d9d2c6; }
.cv-list { display: none; }
.cv-view-cards .cv-list { display: block; }
.cv-view-cards .cv-table { display: none; }
.cv-head { margin: 16px 0 6px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cv-head:first-child { margin-top: 0; }
.cv-card {
  display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0; text-align: left; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; min-width: 0;
}
.cv-card:hover, .cv-card:focus-visible { border-color: var(--line-strong); outline: none; }
.cv-card.cv-out { opacity: .6; }
.cv-pic { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; background: #1c2026; overflow: hidden; }
.cv-pic .cv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.cv-pic .cv-img-empty { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 10px; border: 0; background: #e9e2d5; }
.cv-img-empty.t-rouge-soft { background: #d9b4af; } .cv-img-empty.t-blanc-soft { background: #efe2bd; } .cv-img-empty.t-rose-soft { background: #f6dde0; } .cv-img-empty.t-bulles-soft { background: #efe8da; }
.cv-img-hint { display: none; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(0,0,0,.45); text-align: center; }
@media (hover: hover) { .cv-img-hint { display: block; } }
.cv-n { position: absolute; right: 6px; bottom: 6px; min-width: 26px; padding: 4px 7px 3px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 600; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.cv-flag { position: absolute; left: 6px; top: 6px; padding: 3px 6px 2px; background: rgba(28,32,38,.82); color: #fff; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.cv-flag-fmt { left: auto; right: 6px; background: var(--navy); color: var(--gold); }
.cv-tint { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; vertical-align: middle; margin-right: 5px; }
.cv-tint.t-none { background: var(--line); }
.cv-sheet .cv-tint, .carnet .cv-tint, p .cv-tint, .cv-pick .cv-tint { width: 10px; height: 10px; flex: 0 0 10px; vertical-align: middle; margin-right: 6px; }
.cv-body { min-width: 0; padding: 7px 8px 8px; display: flex; flex-direction: column; gap: 1px; }
.cv-dom { font-weight: 600; font-size: 12.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-cuv { font-size: 11.5px; color: var(--ink); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-meta { font-size: 10.5px; color: var(--muted); letter-spacing: .03em; margin-top: 2px; line-height: 1.35; }
.cv-view-cards .cv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
.cv-head { grid-column: 1 / -1; }
.cv-sheet .cv-sheet-line { margin: 0 0 8px; font-size: 13px; }
.cv-big { font-size: 15px; margin-bottom: 12px; }
.cv-big b { font-size: 22px; font-weight: 600; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.cv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.cv-facts > div { border-top: 1px solid var(--line); padding-top: 6px; }
.cv-facts dt { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cv-facts dd { margin: 0; font-size: 13.5px; }
.cv-facts dd small { font-size: 11px; }
.cv-facts .inline-form { display: flex; gap: 6px; }
.cv-facts .inline-form .input { flex: 1; min-width: 0; }
.cv-h3 { margin: 16px 0 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cv-moves li { padding: 6px 0; }
.rate { display: inline-flex; gap: 2px; }
.rate label { cursor: pointer; }
.rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.rate span { font-size: 26px; line-height: 1; color: var(--line-strong); padding: 2px 3px; display: inline-block; }
.rate input:checked + span { color: var(--gold); }        /* repli pour les navigateurs sans :has() */
.rate:has(input:checked) label:has(input:checked) span, .rate label:has(~ label input:checked) span { color: var(--gold); }
.rate:hover label span { color: var(--line-strong); }
.rate label:hover span, .rate label:has(~ label:hover) span { color: var(--gold); }
.rate input:focus-visible + span { outline: 2px solid var(--gold); }
.carnet li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.carnet .carnet-note { font-size: 13px; margin-top: 4px; font-style: italic; }
.carnet .carnet-stars { flex: 0 0 auto; }
.carnet .stars-form { display: inline; }
.carnet .stars .star { font-size: 17px; padding: 2px 1px; }
.cv-pick { margin-top: 16px; padding: 16px 18px; background: var(--navy); color: #fff; }
.cv-pick-k { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: #d9d2c6; margin-bottom: 8px; }
.cv-pick-dom { font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--gold); }
.cv-pick-cuv { font-size: 14px; margin-top: 2px; }
.cv-pick-meta { font-size: 12px; color: #d9d2c6; margin-top: 6px; }
.cv-pick .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
@media (max-width: 860px) {
  .cv-tools { gap: 6px; }
  .cv-tools .cv-search { flex-basis: 100%; }
  .cv-tools .btn { font-size: 11px; padding: 7px 10px; }
  .cv-filters button, .cv-filters a.btn-chip { padding: 8px 11px; font-size: 11.5px; letter-spacing: .12em; }
  .cv-facts { grid-template-columns: 1fr; }
  /* la page d'une cave : les onglets des caves sur une ligne qui défile, les actions d'en-tête sur une ligne */
  .cv-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
  .cv-tabs::-webkit-scrollbar { display: none; }
  .cv-tabs a { white-space: nowrap; padding: 10px 12px 8px; font-size: 11px; flex: 0 0 auto; }
  .cv-top { flex-wrap: nowrap; gap: 6px; }
  .cv-top .btn { flex: 1 1 0; padding: 8px 6px; font-size: 10.5px; letter-spacing: .08em; text-align: center; white-space: normal; }
}
@media (min-width: 861px) {
  .cv-tools .cv-search { flex: 0 1 360px; width: auto; }
  .cv-tools .cv-sort { width: auto; }
  .cv-view-cards .cv-list { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px 12px; }
  .cv-head { margin-top: 12px; }
}

/* photos des cuvées (1.21) et courbe de valeur */
.cv-img { width: 44px; height: 58px; object-fit: cover; flex: 0 0 44px; align-self: center; margin-left: 8px; background: #1c2026; }
.cv-photo { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.cv-photo img { width: 96px; height: 128px; object-fit: cover; background: #1c2026; }
.cv-photo-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.cv-photo-side { flex: 1; min-width: 0; }
.cu-photo { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 40px; }
.cu-photo img { display: block; width: 40px; height: 54px; object-fit: cover; background: #1c2026; }
.cv-chart svg { max-height: 160px; }
/* dépôt d'une photo par glisser-déposer (ordinateur) */
.cv-photo-empty { display: flex; align-items: center; justify-content: center; width: 96px; height: 128px; text-align: center; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-strong); }
[data-drop-photo].drop-over { outline: 2px dashed var(--gold); outline-offset: -2px; background: #fbf4e2; }
[data-drop-photo].drop-busy { opacity: .6; pointer-events: none; }
/* espace membre : avis */
.reviews { margin-top: 8px; }
.reviews-head { font-size: 13.5px; margin-bottom: 4px; }
.review { margin: 6px 0 0; padding: 8px 12px; border-left: 2px solid var(--line-strong); font-size: 13.5px; background: var(--surface-2); }
.review cite { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.review-form { margin-top: 6px; }
.review-form textarea { width: 100%; margin: 6px 0; font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.w-review { margin-top: 6px; font-size: 13px; }
.w-review summary { cursor: pointer; color: var(--gold-ink); }
.wines .w-body .review-form .rate span { font-size: 22px; }
.club-main .cv-filters button[aria-pressed="true"], .club-main .cv-filters a.btn-chip[aria-pressed="true"], .club-main .cv-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }

/* la cave en chiffres (espace membre, 1.23) */
.board { margin: 0 0 18px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.board-tile { background: var(--surface); padding: 14px 16px 12px; min-width: 0; }
.board-tile .k { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.board-tile .big { font-size: 30px; font-weight: 600; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.board-tile .d { font-size: 12px; color: var(--muted); }
.board-donut { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.board-donut svg { width: 96px; height: 96px; flex: 0 0 96px; }
.board-donut .board-legend { flex: 1 1 110px; min-width: 0; }
.donut-n { font-size: 20px; font-weight: 600; fill: var(--ink); }
.donut-k { font-size: 7px; letter-spacing: .2em; text-transform: uppercase; fill: var(--muted); }
.t-rouge-stroke { stroke: #a8322a; } .t-blanc-stroke { stroke: #dcb95c; } .t-rose-stroke { stroke: #f2c6cb; } .t-bulles-stroke { stroke: #e8dcc4; } .t-none-stroke { stroke: #b9b2a6; }
.board-legend { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.board-legend li { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.board-legend i { width: 10px; height: 10px; display: inline-block; }
.board-legend i.t-none { background: #b9b2a6; }
.board-legend b { margin-left: auto; font-weight: 600; white-space: nowrap; }
.board-chart { width: 100%; height: 60px; display: block; margin: 6px 0 2px; }
.board-bars { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; }
.board-bars li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(50px, 90px) 28px; gap: 8px; align-items: center; margin: 3px 0; }
.board-vint { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.board-vint .vb { fill: #c9b27a; } .board-vint .vb-best { fill: var(--gold); } .board-vint .vb-axis { stroke: var(--line); stroke-width: 1; }
.board-vint .vb-year { font-size: 9px; fill: var(--muted); }
.board-bars .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-bars .bb { height: 8px; background: var(--line); }
.board-bars .bb i { display: block; height: 100%; background: var(--gold); }
.board-bars .bn { text-align: right; color: var(--muted); }
.shelves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.shelf { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; background: var(--navy); color: #fff; border: 2px solid transparent; cursor: pointer; font: inherit; text-align: left; }
.shelf .sn { font-size: 26px; font-weight: 600; line-height: 1; }
.shelf .st { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.shelf .sh { font-size: 11px; color: #d9d2c6; }
.shelf-attendre { background: #2a3340; } .shelf-boire-garder { background: #233a2f; } .shelf-none { background: #3a3a3a; }
.shelf[aria-pressed="true"] { border-color: var(--gold); }
.shelf-tag { font-weight: 600; color: var(--ok); }
.club-main a.cv-card, .club-main a.cv-card * { text-decoration: none; }
@media (max-width: 860px) {
  /* téléphone : deux carrés par ligne au plus, les rayons d'apogée sur une seule ligne */
  .board-grid > .board-tile.hide-mobile { display: none; }
  .board-tile { padding: 10px 10px 8px; }
  .board-tile .big { font-size: 22px; }
  .board-tile .d { font-size: 11px; }
  .shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .shelves:has(.shelf-none) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf { padding: 8px 6px; gap: 0; }
  .shelf .sn { font-size: 18px; }
  .shelf .st { font-size: 9px; letter-spacing: .08em; margin-top: 2px; }
  .shelf .sh { display: none; }
}
/* outils de la cave sur une ligne : recherche, « + », tri ; les autres filtres repliés derrière « Plus de filtres » */
.cv-tools-line { flex-wrap: nowrap; }
.cv-tools-line .cv-search { flex: 1 1 0; min-width: 0; }
.cv-tools-line .cv-plus { flex: 0 0 auto; padding: 8px 12px; font-size: 15px; line-height: 1; }
.cv-tools-line .cv-sort { flex: 0 1 170px; min-width: 0; }
.cv-more { margin: -4px 0 12px; }
.cv-more > summary { cursor: pointer; list-style: none; display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cv-more > summary::-webkit-details-marker { display: none; }
.cv-more > summary::before { content: "+ "; }
.cv-more[open] > summary::before { content: "− "; }
.cv-more[open] > summary { margin-bottom: 6px; }
.cv-more .cv-chips { flex-wrap: wrap; overflow: visible; }
.cv-chips .shelves { display: contents; }
.cv-chips .shelves button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.sh-sources { margin-bottom: 10px; }
.sh-sources button, .sh-sources a.btn-chip { font-weight: 600; }
@media (max-width: 860px) {
  .cv-tools-line .cv-search { flex-basis: 0; }
  .cv-tools-line .cv-sort { flex: 0 1 120px; font-size: 13px !important; padding-left: 6px; padding-right: 6px; }
}
/* page Commandes : le panneau « À régler » en pleine largeur, ses cadres côte à côte sur ordinateur */
.sh-aside-full { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; align-items: start; margin-top: 14px; }
.sh-aside-full .sh-box { margin: 0; height: auto; }
/* la barre du bas : le nombre de bouteilles à régler sur l'onglet Commandes */
.bottomnav a { position: relative; }
.bottomnav .nav-badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; font-style: normal; }
.bottomnav .nav-badge:empty { display: none; }
/* le rond doré « + » : ajouter à ma cave (boutique), ajouter des bouteilles (Ma cave) */
.sh-add { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gold); color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 30px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; cursor: pointer; text-decoration: none; }
.sh-add:hover { background: #eab23a; }
.sh-form .sh-add { margin-left: auto; }
.cv-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.cv-title h1 { margin: 0; text-align: left; }
.cv-add { width: 46px; height: 46px; font-size: 34px; }
.board-more { display: none; }
@media (max-width: 860px) {
  .sh-card .sh-form { flex-wrap: nowrap; }
  .sh-card .sh-form .qty { flex: 1 1 auto; min-width: 0; }
  /* statistiques : l'anneau et la valeur d'abord, le reste derrière le bouton */
  .board-folded:not(.board-open) > .board-tile:nth-child(n + 4) { display: none; }
  .board-more { display: block; width: 100%; margin-top: 8px; padding: 9px; background: var(--surface); border: 1px solid var(--line); font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
  .board-more::before { content: "+ "; }
  .board-open + .board-more::before { content: "− "; }
  /* les tuiles plus compactes : légendes sur toute la largeur, dessins plus petits */
  .board-tile .k { font-size: 9.5px; letter-spacing: .16em; }
  .board-donut svg { width: 76px; height: 76px; flex-basis: 76px; }
  .board-donut .board-legend, .board-pie-body .board-legend { font-size: 11px; }
  .board-pie-body { flex-wrap: wrap; gap: 8px; }
  .board-pie-body svg { width: 64px; height: 64px; flex-basis: 64px; }
  .board-pie-body .board-legend { flex: 1 1 90px; }
  .board-gauge { flex-wrap: wrap; gap: 6px; }
  .board-gauge svg { width: 84px; height: 48px; flex-basis: 84px; }
  .board-gauge .d { flex: 1 1 60px; font-size: 10.5px; }
  .board-legend-2 { columns: 1; }
  .board-waffle-body { gap: 8px; }
  .board-waffle { grid-template-columns: repeat(10, 6px); gap: 1px; }
  .board-waffle i { width: 6px; height: 6px; }
  .board-waffle-body .big { font-size: 18px; }
  .board-waffle-body .d { font-size: 10.5px; }
  .board-bars li { grid-template-columns: minmax(0, 1fr) minmax(40px, 70px) 22px; gap: 6px; }
  .board-chart { height: 44px; }
}

/* recommandations dans la cave (1.30) */
.reco { margin: 22px 0 18px; }
.reco h2 { text-align: center; }
.reco .lead { margin-bottom: 12px; }
.reco .w-club form { display: inline-flex; gap: 6px; align-items: center; }
.reco .reco-no { margin-left: auto; }
.reco .reco-no select { width: auto; min-width: 150px; }
.reco .w-sub .badge { margin-right: 4px; }
@media (max-width: 600px) { .reco .reco-no { margin-left: 0; } }

/* bouteilles ajoutées par les membres (1.31) */
.mb-quote { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mb-quote .input.w-money { width: 96px; flex: none; }
.mb-quote .input.mb-src { width: 104px; flex: none; }

/* ---------- volet d'une bouteille, version 1.31.2 : photo en grand, frise d'apogée, échelle des prix ---------- */
.cvs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px 28px; align-items: start; }
.cvs-main { min-width: 0; }
.cvs-side { position: sticky; top: 0; }
.cvs-vintage { font-size: 18px; letter-spacing: .04em; }
.cvs-value { font-weight: 400; }
.cvs-value small { font-size: 11px; color: var(--muted); }
.cvs-block { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.cvs-block .cv-h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.cvs-shelf { font-size: 10px; letter-spacing: .14em; padding: 3px 7px 2px; background: var(--gold-soft); color: var(--gold-ink); }
.cvs-shelf-attendre { background: #e6ecf3; color: #2f4a6b; }
.cvs-shelf-boire { background: var(--warn-soft); color: var(--warn); }
/* la frise */
.cvs-timeline { display: block; width: 100%; height: 52px; overflow: visible; }
.cvs-ticks { position: relative; height: 14px; margin-top: 2px; }
.cvs-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: 10px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.cvs-ticks span.first { transform: none; }
.cvs-ticks span.last { transform: translateX(-100%); }
.cvs-timeline .axis { stroke: var(--line-strong); stroke-width: 1; }
.cvs-timeline .win { fill: var(--gold); opacity: .85; }
.cvs-timeline .now { stroke: var(--navy); stroke-width: 1.5; }
.cvs-timeline .now-tip { fill: var(--navy); }
.cvs-timeline .vint { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.cvs-timeline .tick { font-size: 10px; fill: var(--muted); font-family: inherit; letter-spacing: .04em; }
.cvs-legend { margin: 6px 0 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.cvs-key { display: inline-block; width: 12px; height: 8px; vertical-align: middle; }
.cvs-key-win { background: var(--gold); }
.cvs-key-now { width: 2px; height: 12px; background: var(--navy); }
.cvs-key-vint { width: 0; height: 12px; border-left: 1px dashed var(--muted); }
.cvs-window { margin-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cvs-window .input.w-year { width: 74px; flex: none; }
/* l'échelle des prix */
.cvs-ladder { display: flex; flex-direction: column; gap: 7px; }
.cvs-rung { display: grid; grid-template-columns: 84px minmax(60px, 1fr) minmax(150px, auto); gap: 10px; align-items: center; }
.cvs-rung-l { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cvs-rung-bar { display: block; height: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.cvs-rung-bar i { display: block; height: 100%; background: var(--navy); min-width: 0; transition: width .3s; }
.cvs-rung-bar i.empty { background: transparent; }
.cvs-rung:nth-child(2) .cvs-rung-bar i { background: var(--gold); }
.cvs-rung-v { font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cvs-rung-v .ci.w-money { width: 96px; }
.cvs-rung-v small { font-size: 11px; }
.cvs-facts { margin-top: 14px; }
.cvs-actions { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.cvs-moves { margin-top: 0; }
/* la bouteille en grand */
.cvs-photo { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #1c2026; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cvs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvs-photo.has img { background: #1c2026; }
.cvs-photo-empty { text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); border: 1px dashed rgba(255,255,255,.35); padding: 26px 22px; }
.cvs-photo .cv-flag-fmt { top: 10px; right: 10px; font-size: 10.5px; }
.cvs-photo-n { position: absolute; right: 10px; bottom: 10px; min-width: 30px; padding: 6px 9px 4px; background: var(--gold); color: var(--navy); font-size: 15px; font-weight: 600; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.cvs-photo-side { margin-top: 8px; }
.cvs-domain-link { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 860px) {
  .cvs-grid { grid-template-columns: 1fr; gap: 14px; }
  .cvs-side { position: static; order: -1; }
  .cvs-photo { aspect-ratio: 4 / 3; max-height: 260px; }
  .cvs-rung { grid-template-columns: 70px minmax(40px, 1fr) auto; gap: 8px; }
  .cvs-ticks span:nth-child(even):not(.last) { display: none; }
}

/* caractéristiques (1.32) : cases multiples, badges, coup de cœur */
.multi { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.multi .chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font: inherit; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px 4px; cursor: pointer; }
.multi .chip.on { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.badge.b-fire { background: #fde8d6; color: #a63d0a; }
.cv-flag-fire { left: 6px; top: auto; bottom: 6px; background: #ff5a1f; color: #fff; font-size: 12px; padding: 2px 5px; letter-spacing: 0; }
.cvs-photo .cv-flag-fire { left: 10px; bottom: 10px; font-size: 16px; padding: 4px 8px; }
.fav-word { font-size: 12.5px; font-style: italic; }
.fav-word b { font-style: normal; color: #a63d0a; }
.traits { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.traits .badge { font-size: 9.5px; }
.cv-traits button.chip-fire[aria-pressed="true"] { background: #ff5a1f; border-color: #ff5a1f; color: #fff; }
.wine-word { margin: 0 0 12px; padding: 10px 12px; background: var(--surface-2); border-left: 2px solid var(--gold); }
.wine-word .traits { margin: 0; }
.wine-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.cvs-fav { margin: 0 0 12px; }
.cvs-fav .inline-form { display: flex; gap: 6px; }
.cvs-fav .inline-form .input { flex: 1; min-width: 0; }

/* la ligne de chiffres clés d'une cave (1.32.2) : remplace les deux grandes tuiles */
.cv-keyline { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.cv-keyline b { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.cv-keyline .cv-key-value { margin-left: auto; }
@media (max-width: 860px) { .cv-keyline .cv-key-value { margin-left: 0; } .cv-keyline b { font-size: 18px; } }
.board-favs { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; line-height: 1.5; }
.board-favs li { margin: 2px 0; }
/* jauge, camembert, colonnes, barre empilée (1.32.3) */
.board-gauge { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.board-gauge svg { width: 110px; height: 62px; flex: 0 0 110px; }
.board-gauge .g-track { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: butt; }
.board-gauge .g-fill { fill: none; stroke: var(--ok); stroke-width: 9; stroke-linecap: butt; }
.board-gauge .g-n { font-size: 15px; font-weight: 600; fill: var(--ink); }
.board-stack { display: flex; height: 10px; background: var(--line); overflow: hidden; margin: 2px 0 6px; }
.board-stack i { display: block; height: 100%; }
.cu-bio { background: #4f8a5b; } .cu-biodynamie { background: #2c6a48; } .cu-nature { background: #8aa84f; } .cu-raisonnee { background: #d9c48a; } .cu-conventionnelle { background: #a39b8e; } .cu-none { background: #e3dccf; }
.board-legend-2 { columns: 2; column-gap: 10px; }
.board-legend-2 li { break-inside: avoid; }
.board-pie-body { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.board-pie-body svg { width: 92px; height: 92px; flex: 0 0 92px; }
.board-pie-body .board-legend { flex: 1; min-width: 0; font-size: 11.5px; }
.pf-plaisir { background: var(--gold); fill: var(--gold); } .pf-garde_moyenne { background: #c08a2e; fill: #c08a2e; } .pf-grande_garde { background: var(--navy); fill: var(--navy); } .pf-none { background: #e3dccf; fill: #e3dccf; }
.board-pie-body path { stroke: var(--surface); stroke-width: 1; }
.board-cols { display: block; width: 100%; height: auto; margin-top: 6px; }
.board-cols .col { fill: #c9b27a; } .board-cols .col-best { fill: var(--gold); }
.board-cols .col-n { font-size: 8px; fill: var(--muted); font-family: inherit; }
/* gaufre des formats */
.board-waffle-body { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.board-waffle { display: grid; grid-template-columns: repeat(10, 9px); gap: 2px; flex: 0 0 auto; }
.board-waffle i { display: block; width: 9px; height: 9px; background: var(--line); }
.board-waffle i.on { background: var(--navy); }
.board-legend i.wf-on { background: var(--navy); } .board-legend i.wf-off { background: var(--line); }
/* tableau de bord animé : les graphiques se dessinent à l'ouverture, les parts se répondent au survol */
@media (prefers-reduced-motion: no-preference) {
  .board-donut path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: board-draw .9s ease-out forwards; }
  .board-gauge .g-fill { stroke-dashoffset: 126; animation: board-gauge 1s ease-out .2s forwards; }
  .board-bars .bb i, .board-stack i { transform-origin: left; transform: scaleX(0); animation: board-grow-x .7s ease-out forwards; }
  .board-cols rect, .board-vint rect { transform: scaleY(0); animation: board-grow-y .6s ease-out forwards; }
  .board-pie-svg path { opacity: 0; animation: board-fade .5s ease-out forwards; }
  .board-waffle i.on { opacity: 0; animation: board-fade .3s ease-out forwards; }
  .board-pie-svg path, .board-vint rect, .board-cols rect { transition: opacity .2s, transform .2s; }
}
@keyframes board-draw { to { stroke-dashoffset: 0; } }
@keyframes board-gauge { to { stroke-dashoffset: 0; } }
@keyframes board-grow-x { to { transform: scaleX(1); } }
@keyframes board-grow-y { to { transform: scaleY(1); } }
@keyframes board-fade { to { opacity: 1; } }
.board-pie-svg path { cursor: default; }
.board-pie-svg path:hover, .board-pie-svg path.hot { filter: brightness(1.12); }
.board-pie .board-legend li { cursor: default; padding: 0 3px; }
.board-pie .board-legend li.hot { background: var(--bg); }
.board-cols rect:hover, .board-vint rect:hover { filter: brightness(1.15); }
.board-cols .col-l { font-size: 7.5px; fill: var(--muted); font-family: inherit; }
/* ligne d'un millésime sur la fiche du domaine (1.32.2) */
.prices .subrow .w-rating { width: 118px; flex: none; }
.prices .subrow .w-press { width: 120px; flex: none; }
.prices .subrow .fav-form { display: inline-flex; gap: 4px; align-items: center; flex: none; }
.prices .subrow .w-fav { width: 200px; }

/* Compléter ma cave (1.33) : la boutique depuis la cave du membre */
.sh-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sh-tabs a { padding: 9px 14px 7px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sh-tabs a.on { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.sh-tabs a span { font-size: 10.5px; color: var(--muted); margin-left: 4px; letter-spacing: 0; text-transform: none; }
.sh-layout { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.sh-main { flex: 999 1 560px; min-width: 0; }
.sh-aside { flex: 1 1 280px; min-width: 0; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 860px) { .sh-aside { position: static; width: 100%; } }
.sh-box { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; }
.sh-box .k { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.sh-box-warn { background: var(--gold-soft); border-color: #e6cc8a; }
.sh-box-ask { background: var(--warn-soft); border-color: #e6cc8a; }
.sh-box-ask .k { color: var(--warn); }
.sh-box-dark { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); font-size: 12.5px; }
.sh-box-dark .k { color: #8a857d; }
.sh-lines { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; }
.sh-lines li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 4px 0; border-top: 1px solid var(--line); }
.sh-lines li:first-child { border-top: 0; }
.sh-lines b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.sh-total b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-pay { width: 100%; margin-top: 8px; min-height: 40px; }
.sh-gauge { height: 6px; background: var(--navy-line); margin-top: 8px; }
.sh-gauge i { display: block; height: 100%; background: var(--gold); }
.sh-grid.cv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .sh-grid.cv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sh-card { cursor: default; }
.sh-card .cv-body { gap: 3px; }
.sh-soldout .cv-pic { opacity: .55; }
.sh-flag-ask { background: var(--gold); color: var(--navy); }
.sh-flag-new { background: rgba(224,164,28,.92); color: var(--navy); }
.sh-flag-mine { background: var(--ok); color: #fff; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.sh-tags i { font-style: normal; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 5px 1px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.sh-gap { font-size: 11px; color: var(--ok); }
.sh-word { font-size: 11px; color: var(--gold-ink); font-style: italic; }
.sh-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sh-price b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-price small { font-size: 10.5px; }
.sh-actions { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.sh-form { display: flex; gap: 5px; align-items: stretch; }
.sh-form .btn { flex: 1; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); background: var(--surface); flex: 0 0 auto; }
.qty button { width: 26px; border: 0; background: transparent; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.qty input { width: 30px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font: inherit; font-size: 12.5px; background: transparent; font-variant-numeric: tabular-nums; }
.sh-state { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sh-state.sh-ok { color: var(--ok); } .sh-state.sh-wait { color: var(--warn); }
.sh-msg { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--navy); color: var(--navy-ink); padding: 9px 14px; font-size: 12.5px; z-index: 60; max-width: 90vw; }
.sh-msg.error { background: var(--late); color: #fff; }
.sh-pending { margin: 0 0 16px; }
.sh-grid-pending.cv-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; }
@media (max-width: 720px) { .sh-grid-pending.cv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sh-pending-card { cursor: default; opacity: .62; }
.sh-pending-card .cv-flag { background: rgba(28,32,38,.9); }
.sh-pending-card.sh-a_regler .cv-flag { background: var(--gold); color: var(--navy); }
.sh-pending-card.sh-demandee .cv-flag { background: var(--warn-soft); color: var(--warn); }
.sh-pending-card.sh-refusee { opacity: .4; }

/* Remplir sa cave (1.34) : accueil guidé, import, aperçu, mot de l'équipe */
.wl-steps { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin: -6px 0 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wl-steps span { display: inline-flex; gap: 8px; align-items: center; }
.wl-steps b { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); font-weight: 500; }
.wl-steps .on { color: var(--ink); } .wl-steps .on b { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.wl-steps .done b { background: var(--ok); color: #fff; border-color: var(--ok); }
.wl-form { display: flex; flex-direction: column; gap: 22px; }
.wl-form section { display: flex; flex-direction: column; gap: 10px; }
.wl-form .k, .wl-way .k, .tile-s .k { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.wl-form .hint { letter-spacing: 0; text-transform: none; color: #8a857d; }
.wl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .wl-grid, .wl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wl-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.wl-opt:has(input:checked) { border-color: var(--navy); background: var(--surface-2); }
.wl-opt span { display: flex; flex-direction: column; gap: 2px; } .wl-opt b { font-weight: 500; } .wl-opt small { font-size: 11.5px; color: var(--muted); }
.wl-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wl-chip { display: inline-flex; cursor: pointer; }
.wl-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.wl-chip span { padding: 8px 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; letter-spacing: .04em; }
.wl-chip:has(input:checked) span { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.wl-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.wl-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wl-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; font-size: 12.5px; }
@media (max-width: 720px) { .wl-aside { grid-template-columns: 1fr; } }
.wl-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 860px) { .wl-ways { grid-template-columns: 1fr; } }
.wl-way { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.wl-way-t { font-size: 14px; font-weight: 500; }
.wl-way .btn { align-self: flex-start; margin-top: auto; }
.wl-drop { border: 1px dashed var(--line-strong); background: var(--surface-2); padding: 22px 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer; }
.wl-drop input { font-size: 12px; max-width: 100%; }
.wl-drop small { font-size: 11px; color: var(--muted); }
.wl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 720px) { .wl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile-s { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; }
.tile-s b { display: block; font-size: 26px; font-weight: 600; line-height: 1.1; } .tile-s small { font-size: 11.5px; color: var(--muted); }
.tile-s.t-ok { border-color: #bfe0cc; } .tile-s.t-ok b, .tile-s.t-ok .k { color: var(--ok); }
.tile-s.t-ask { border-color: #e6cc8a; } .tile-s.t-ask b, .tile-s.t-ask .k { color: var(--warn); }
.tile-s.t-bad { border-color: #e6b5b1; } .tile-s.t-bad b, .tile-s.t-bad .k { color: var(--late); }
.wl-map { margin-top: 8px; } .wl-map .input { width: auto; max-width: 100%; }
.wl-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0 8px; }
.wl-filters .k { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.chip-l { padding: 6px 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 11.5px; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.chip-l.on { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.wl-lines td { vertical-align: top; } .wl-lines .input { width: 100%; min-width: 180px; } .wl-lines .w-qty { width: 56px; min-width: 56px; text-align: right; }
.wl-lines tr.st-a_identifier td { background: #fffaf0; } .wl-lines tr.st-illisible td { background: #fdf3f2; } .wl-lines tr.st-ignoree td { opacity: .5; }
.wl-apply { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; margin-top: 10px; }
.cv-word { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--gold); padding: 14px 16px; margin: 0 0 14px; }
.cv-word .k { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cv-word p { margin: 6px 0; font-size: 13.5px; line-height: 1.5; }
.cv-word-who { width: 44px; height: 44px; flex: 0 0 44px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
.lot-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 12px; font-size: 12px; }
@media (max-width: 860px) { .lot-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lot-flow div { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 12px; }
.lot-flow b { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }

/* ---------- Univers de la page Vente (1.35) : des filtres mis en image ---------- */
.univers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.uni { position: relative; display: block; grid-column: span 1; aspect-ratio: 1 / 1; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; }
.uni-hero { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.uni img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.uni:hover img { transform: scale(1.03); }
.uni-wide { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
.univers-domains .uni { grid-column: 1 / -1; aspect-ratio: 5 / 2; }
.cv-filters a.btn-chip { display: inline-block; text-decoration: none; }
.uni::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 32, 38, .05) 0%, rgba(28, 32, 38, .35) 45%, rgba(28, 32, 38, .9) 100%); }
.uni-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.uni-title { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.18; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.uni-hero .uni-title { font-size: 32px; }
.uni-sub { font-size: 13px; color: #e6dfd3; }
.uni-go { margin-top: 4px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.uni-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--navy); color: #e6dfd3; padding: 10px 14px; margin: 0 0 12px; font-size: 13px; }
.uni-bar b { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.uni-bar a { color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; }
/* Desktop (1.39) : même disposition que sur téléphone — une grande, deux côte à côte, une large — mais moins haute,
   pour embrasser les quatre univers d'un regard ; les titres restent lisibles sans envahir la photo. */
@media (min-width: 861px) {
  .univers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
  .uni { aspect-ratio: 5 / 2; }
  .uni.uni-hero { grid-column: 1 / -1; aspect-ratio: 7 / 2; }
  .uni.uni-wide { grid-column: 1 / -1; aspect-ratio: 8 / 1; }
  .univers-domains .uni { aspect-ratio: 4 / 1; }
  .uni-title { font-size: 20px; }
  .uni-hero .uni-title { font-size: 28px; }
  .uni-in { padding: 14px 20px 18px; }
  .sh-grid.cv-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; }
  .sh-grid .cv-pic { aspect-ratio: 1 / 1; }
  .club-top .inner + .inner { max-width: 1180px; }
  .club-top .inner + .inner .club-nav { justify-content: center; flex-wrap: wrap; overflow: visible; }
  .club-nav a { padding: 15px 11px 10px; }
  .club-nav .club-user { margin-left: 0; padding-left: 11px; }
}
@media (max-width: 860px) { .uni-hero { aspect-ratio: 4 / 3; } }
@media (max-width: 860px) {
  .univers { gap: 8px; margin: -6px calc(-1 * var(--cpad)) 18px; padding: 0 var(--cpad); }
  .uni-title { font-size: 17px; }
  .uni-hero .uni-title { font-size: 26px; }
  .uni-sub { font-size: 12px; }
  .uni-in { padding: 10px 12px 12px; }
}

/* ---------- Accueil de l'espace membres (1.36) : le tableau de bord ---------- */
.dash { display: flex; flex-direction: column; gap: 16px; }
.dash h2 { font-size: 12px; letter-spacing: .22em; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; text-align: left; }
.dash h2 a { font-size: 10px; letter-spacing: .14em; color: var(--muted); text-decoration: none; font-weight: 400; }
.d-pay { background: var(--gold); color: var(--navy); padding: 12px 14px; display: flex; align-items: center; gap: 10px; justify-content: space-between; text-decoration: none; }
.d-pay b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.d-pay span { font-size: 12.5px; }
.d-pay i { font-style: normal; font-size: 18px; font-weight: 600; white-space: nowrap; }
.d-tasts { display: flex; flex-direction: column; gap: 8px; }
.d-tast { background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr auto; gap: 0 12px; align-items: center; padding: 0 12px 0 0; text-decoration: none; color: inherit; overflow: hidden; }
.d-pic { position: relative; width: 64px; align-self: stretch; min-height: 64px; background: var(--navy); }
.d-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.d-pic .dt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--serif); line-height: 1; color: #fff; }
.d-pic .dt b { display: block; font-size: 24px; color: var(--gold); }
.d-pic .dt small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.d-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; min-width: 0; }
.d-tast .tt { font-weight: 600; font-size: 14px; }
.d-tast .ts { font-size: 12px; color: var(--muted); }
.d-tast .st { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); white-space: nowrap; }
.d-tast .st.warn { color: var(--late); }
.d-cave, .d-orders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-cave a, .d-orders a { background: var(--surface); border: 1px solid var(--line); padding: 12px; text-decoration: none; color: inherit; }
.d-cave .k, .d-orders .k { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.d-cave .big, .d-orders .big { font-size: 26px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
.d-cave .big.ok, .d-orders .big.ok { color: var(--ok); }
.d-cave .d, .d-orders .d { font-size: 11px; color: var(--muted); }
.d-word { background: var(--navy); color: #e6dfd3; padding: 12px 14px; font-size: 13px; margin-top: 8px; }
.d-word .k { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.d-empty { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.d-empty a { background: var(--surface); border: 1px solid var(--line); padding: 18px 12px 14px; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.d-empty svg { width: 24px; height: 24px; color: var(--gold-ink); }
.d-empty span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.d-empty small { font-size: 11px; color: var(--muted); }
@media (min-width: 861px) {
  .dash { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .dash > .d-pay, .dash > .alert, .dash > .d-empty { grid-column: 1 / -1; }
  .d-empty { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------------------
   Échanges (1.38) : salons et fil de messages — téléphone d'abord
   --------------------------------------------------------------------------- */
.ch-rooms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ch-rooms a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.ch-rooms a.unread { border-left: 4px solid var(--gold); }
.ch-room-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ch-room-head b { flex: 1; }
.ch-dot { min-width: 18px; height: 18px; padding: 0 5px; background: var(--gold); color: var(--navy); font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; font-style: normal; }
.ch-room-sub { font-size: 12.5px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-room-meta { font-size: 11px; color: var(--muted); }
.ch-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-head h1 { flex: 1; margin: 0; }
.ch-back { font-size: 26px; line-height: 1; text-decoration: none; color: var(--navy); padding: 0 6px 2px 0; }
.ch-people { flex-basis: 100%; font-size: 12px; }
.ch-people summary { cursor: pointer; color: var(--muted); }
.ch-people p { margin: 6px 0; }
.ch-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ch-msg { display: flex; flex-direction: column; gap: 2px; max-width: 86%; padding: 8px 12px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; align-self: flex-start; }
.ch-msg.mine { align-self: flex-end; background: var(--navy); color: #fff; border-color: var(--navy); }
.ch-msg.team { border-left: 4px solid var(--gold); }
.ch-msg.mine.team { border-left-color: var(--navy); }
.ch-who { font-size: 11px; color: var(--muted); display: flex; gap: 8px; justify-content: space-between; }
.ch-msg.mine .ch-who { color: rgba(255,255,255,.72); }
.ch-wine { font-size: 12px; color: var(--navy); font-weight: 600; }
.ch-msg.mine .ch-wine { color: var(--gold); }
.ch-text { white-space: pre-wrap; word-break: break-word; }
.ch-retract { align-self: flex-end; }
.ch-retract .link-btn { font-size: 11px; color: inherit; opacity: .7; }
.ch-empty { align-self: center; padding: 20px 0; }
.ch-closed { margin: 18px 0; text-align: center; }
.ch-bar { display: flex; gap: 8px; align-items: flex-end; padding: 10px var(--cpad); background: #fff; border-top: 1px solid var(--line); }
.ch-bar textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; font-size: 14px; line-height: 1.35; }
.ch-bar .btn { height: 40px; width: 44px; padding: 0; font-size: 16px; }
.ch-wine-pick { position: relative; }
.ch-wine-pick summary { list-style: none; cursor: pointer; width: 40px; height: 40px; line-height: 40px; text-align: center; border: 1px solid var(--line); font-size: 18px; }
.ch-wine-pick summary::-webkit-details-marker { display: none; }
.ch-wine-pick[open] summary { background: var(--gold); }
.ch-wine-pick select { position: absolute; left: 0; bottom: 46px; width: min(86vw, 420px); }
.ch-bar-space { height: 8px; }
@media (max-width: 720px) {
  .club-member .ch-bar { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 35; }
  .club-member .ch-bar-space { height: 136px; }
  .ch-msg { max-width: 92%; }
}
@media (min-width: 721px) {
  .ch-bar { position: sticky; bottom: 0; margin-top: 16px; }
  .ch-bar-space { display: none; }
  .ch-list, .ch-bar { max-width: 820px; }
}
.club-nav .nav-badge-inline { display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; vertical-align: 2px; }
.club-nav .nav-badge-inline:empty { display: none; }

/* ---------------------------------------------------------------------------
   La carte (1.40)
   --------------------------------------------------------------------------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: stretch; }
.map { height: calc(100vh - 230px); min-height: 480px; background: #e9e2d5; border: 1px solid var(--line); position: relative; z-index: 0; isolation: isolate; }
.map-tiles { filter: grayscale(.9) sepia(.18) brightness(1.04) contrast(.92); }
.map-side { background: #fff; border: 1px solid var(--line); padding: 12px; max-height: calc(100vh - 230px); min-height: 480px; overflow: auto; }
.map-side-head { margin-bottom: 10px; }
.map-list { list-style: none; margin: 0; padding: 0; }
.map-list li { padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 2px; position: relative; }
.map-list li:hover, .map-list li.active { background: #f6f1e8; }
.map-list li b { font-size: 13px; }
.map-list li span { font-size: 11.5px; color: var(--muted); }
.map-bar { display: block; height: 3px; background: #e9e2d5; margin-top: 4px; }
.map-bar > i { display: block; height: 100%; background: var(--gold); }
.map-bar.over > i { background: #b23a3a; }
.map-h { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.map-legend { display: inline-flex; gap: 12px; align-items: center; font-size: 11.5px; color: var(--muted); margin-left: auto; flex-wrap: wrap; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.map-legend i.ring { background: transparent; border: 3px solid #3f8f5a; width: 8px; height: 8px; }
.map-legend i.ring.over { border-color: #b23a3a; }
.map-label { background: none; border: 0; pointer-events: none; white-space: nowrap; transform: translateX(-50%); text-align: center; color: var(--navy); text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 10px #fff; }
.map-label span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.map-label small { display: block; font-size: 11px; color: #5a5243; }
.map-tip { background: var(--navy); color: #fff; border: 0; font-size: 12px; padding: 6px 9px; border-radius: 0; box-shadow: none; }
.map-tip::before { border-top-color: var(--navy) !important; }
.map-pop .leaflet-popup-content-wrapper { border-radius: 0; box-shadow: 0 2px 12px rgba(0,0,0,.18); font-size: 13px; }
.map-pop .leaflet-popup-content { margin: 12px 14px; line-height: 1.4; }
.map-pop-in b { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; }
.map-pop-in a { display: inline-block; margin-top: 6px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; }
.map-cuvees { margin: 6px 0 0; padding-left: 16px; font-size: 12px; }
.leaflet-container { font-family: inherit; }
.leaflet-bar, .leaflet-bar a { border-radius: 0 !important; }
.leaflet-popup-tip { border-radius: 0; }
#map-form .field.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0 14px 0 0; }
#map-form .field.inline span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
#map-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
@media (max-width: 860px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map { height: 62vh; min-height: 360px; }
  .map-side { max-height: none; min-height: 0; }
  .map-legend { margin-left: 0; }
}
.map-name span { font-size: 10.5px; letter-spacing: .04em; text-transform: none; font-weight: 600; }

/* ---------------------------------------------------------------------------
   Le mécanisme (1.41) : achat → destinations, avec les marges
   --------------------------------------------------------------------------- */
.mech-flow { display: grid; grid-template-columns: 220px 28px minmax(0, 1fr); gap: 12px; align-items: stretch; margin-top: 6px; }
.mech-buy { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.mech-buy .k { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.mech-buy .v { font-family: var(--serif); font-size: 15px; }
.mech-buy .v b { font-size: 30px; line-height: 1; }
.mech-buy .n { font-family: var(--serif); font-size: 26px; margin-top: 6px; }
.mech-buy .d { font-size: 11px; color: rgba(255,255,255,.7); }
.mech-total { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); font-size: 12.5px; }
.mech-total b { color: var(--gold); }
.mech-arrow { align-self: center; font-size: 26px; color: var(--muted); text-align: center; }
.mech-dests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mech-dest { border: 1px solid var(--line); background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.mech-dest .k { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 6px; }
.mech-dest .k .share { color: var(--muted); letter-spacing: 0; }
.mech-dest .v { font-family: var(--serif); font-size: 13px; color: var(--muted); }
.mech-dest .v b { font-size: 26px; color: var(--navy); line-height: 1; }
.mech-dest .bar { height: 4px; background: #efe9dd; }
.mech-dest .bar i { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.mech-perso .bar i { background: #8a8378; }
.mech-pro .bar i { background: #2f6f9f; }
.mech-cession .bar i { background: #7a1f2b; }
.mech-dest dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 4px 0 0; font-size: 12.5px; }
.mech-dest dt { color: var(--muted); }
.mech-dest dd { margin: 0; text-align: right; }
.mech-dest .d { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.mech-detail { margin-top: 12px; }
.mech-detail summary { cursor: pointer; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mech .unknown { color: #a0522d; font-size: 12px; }
@media (max-width: 860px) {
  .mech-flow { grid-template-columns: 1fr; }
  .mech-arrow { transform: rotate(90deg); }
  .mech-dests { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1180px) { .mech-dests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------------
   Le pilotage (1.42)
   --------------------------------------------------------------------------- */
.pil-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.pil-left { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 78px; max-height: calc(100vh - 90px); overflow: auto; scrollbar-width: thin; }
.pil-right { min-width: 0; }
.pil-tabs { display: flex; flex-direction: column; background: var(--surface); padding: 6px 0; }
.pil-tab { background: none; border: 0; border-left: 2px solid transparent; padding: 9px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: inherit; color: inherit; text-align: left; width: 100%; }
.pil-tab b { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.pil-tab span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pil-tab:hover { background: #f6f2ea; }
.pil-tab.active { background: var(--navy); color: #fff; border-left-color: var(--gold); }
.pil-tab.active b { font-weight: 600; }
.pil-tab.active span { color: rgba(255, 255, 255, .7); }
.pil-tab b small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 10.5px; }
.pil-tab.active b small { color: rgba(255, 255, 255, .7); }
.pil-tab.pil-club { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 11px; }
/* le sélecteur de compte du téléphone (dans le bandeau) : caché sur ordinateur */
.pil-pick { display: none; }
.pil-ro.pil-rest { color: var(--navy); font-weight: 600; }
.pil-ro.gap-neg { color: #a0522d; font-weight: 600; }
.mech-dest .k .share { white-space: nowrap; }
.pil-kpis { display: block; background: var(--surface); padding: 2px 14px; }
.pil-kpis .stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 0; }
.pil-kpis .stat:first-child { border-top: 0; }
.pil-kpis .stat .k { grid-column: 1; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pil-kpis .stat .d { grid-column: 1; font-size: 10.5px; color: var(--muted); }
.pil-kpis .stat .v { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--serif); font-size: 18px; margin: 0; text-align: right; white-space: nowrap; }
.pil-kpis .v small { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pil-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pil-tools .input[type=search] { max-width: 280px; }
.pil-tools .cv-filters { margin: 0; }
.pil-side { background: var(--surface); padding: 10px 14px 6px; }
.pil-side h2 { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.pil-bars { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); }
.pil-bars li { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.pil-bars li:last-child { border-bottom: 0; }
.pil-bar-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.pil-bar-head span { color: var(--muted); font-size: 11.5px; text-align: right; }
.pil-bar { display: block; height: 4px; background: #efe9dd; margin: 5px 0 3px; }
.pil-bar > i { display: block; height: 100%; background: var(--gold); }
.pil-bars small { font-size: 10.5px; color: var(--muted); }
.pil-domain { background: #fff; border: 1px solid var(--line); margin-bottom: 8px; }
.pil-domain > summary { display: flex; align-items: center; gap: 14px; padding: 10px 14px; cursor: pointer; list-style: none; }
.pil-domain > summary::-webkit-details-marker { display: none; }
.pil-domain > summary::marker { content: ""; }
.pil-domain > summary::before { content: "›"; display: inline-block; width: 10px; color: var(--muted); transition: transform .15s; flex: none; }
.pil-domain[open] > summary::before { transform: rotate(90deg); }
.pil-domain > summary .pil-dom { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.pil-dom-n { width: 150px; flex: none; } .pil-dom-c { width: 100px; flex: none; } .pil-dom-m { width: 130px; flex: none; }
.pil-dom-n small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; }
.pil-domain summary .pil-dom b { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; }
.pil-domain summary .pil-dom .muted { font-size: 11px; }
.pil-dom-n, .pil-dom-c, .pil-dom-m { text-align: right; font-size: 13px; }
.pil-dom-m { color: #3f8f5a; }
.pil-dom-m small { color: var(--muted); }
.pil-domain .table { margin: 0; }
.pil-domain .table th.pil-col, .pil-domain .table td.pil-col { background: #fbf8f2; }
.pil-domain tr.closed td { color: var(--muted); }
.pil-domain .table th { white-space: normal; font-size: 10px; }
.pil-domain .table-wrap { overflow-x: auto; }
.pil-in { width: 56px; text-align: right; border: 1px solid var(--line-strong); background: #fff; padding: 4px 6px; font: inherit; font-size: 13px; }
.pil-in.pil-unit { width: 84px; }
.pil-in:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.pil-in.saving { opacity: .6; }
.pil-in.ok { border-color: #3f8f5a; background: #f0f8f2; }
.pil-in.bad { border-color: #b23a3a; background: #fbeeee; }
.pil-ro { color: var(--muted); display: inline-block; min-width: 24px; text-align: right; }
.pil-tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: #efe9dd; padding: 1px 6px; color: #5a5243; vertical-align: 1px; }
.pil-tag-ok { background: #3f8f5a; color: #fff; }
.pil-cap { background: #fbf6e8; }   /* la colonne qui fait l'accordé (proposé, ou confirmé quand il existe) */
.pil-dom-links .pil-validate { margin-left: 10px; vertical-align: middle; }
.pil-dom-links { padding: 6px 14px 10px; }
.pil .unknown { color: #a0522d; font-size: 12px; }
@media (max-width: 1100px) { .pil-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 14px; } }
@media (max-width: 720px) {
  .pil-dom-c, .pil-dom-m { display: none; }
  /* téléphone (1.50) : le tableau d'un acheteur devient une carte par cuvée — le nom, puis accordé · mon prix · prix
     public, puis la quantité à saisir et le total, tout sous les yeux sans défilement horizontal */
  .pil .pil-buyer thead { display: none !important; }
  .pil-buyer, .pil-buyer tbody { display: block; }
  .pil-buyer tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .pil-buyer tr.closed { opacity: .6; }
  .pil-buyer td { display: block; border: 0; padding: 0; text-align: left; background: none; }
  .pil-buyer td.title { grid-column: 1 / -1; font-size: 14px; }
  .pil-buyer td[data-l]::before { content: attr(data-l); display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .pil-buyer td.pil-col { grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  .pil-buyer td.pil-col::before { flex: 1 0 100%; }
  .pil-buyer td.pil-col .pil-in { width: 72px; font-size: 16px; padding: 6px 8px; }
  .pil-buyer td.pil-col .pil-tag { margin: 0; }
  .pil-buyer td[data-c] { grid-column: 3 / 4; text-align: right; font-weight: 600; }
  .pil-buyer td[data-c]::before { text-align: right; }
  /* qui pilote : le tableau complet défile, mais la cuvée reste visible à gauche */
  .pil table:not(.pil-buyer) td.title, .pil table:not(.pil-buyer) th:first-child { position: sticky; left: 0; background: var(--paper, #fff); z-index: 1; box-shadow: 1px 0 0 var(--line); }
}
/* sur-souscription : plus demandé que le domaine n'accorde */
.pil-tag.gap-neg { background: #fbebeb; color: #8a1c1c; border-color: #e7b9b9; }
/* Pilotage : graphiques (1.42) */
.pil-charts { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr .9fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 12px; }
.pil-chart { background: var(--surface); border: 0; padding: 10px 14px; min-width: 0; }
.pil-chart h3 { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pil-chart h3 a { letter-spacing: 0; text-transform: none; margin-left: auto; font-size: 11px; }
.pil-metric { font: inherit; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); background: #fff; padding: 1px 6px; cursor: pointer; color: var(--muted); }
.pil-metric[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pil-donut { display: flex; gap: 10px; align-items: center; }
.pil-donut svg { flex: none; }
@media (min-width: 721px) { .pil-donut svg { width: 84px; height: 84px; } .pil-donut ul { font-size: 11px; } }
.pil-donut-n { font-family: var(--serif); font-size: 20px; fill: var(--navy); }
.pil-donut-l { font-size: 8px; fill: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.pil-donut ul { list-style: none; margin: 0; padding: 0; font-size: 11.5px; min-width: 0; flex: 1; }
.pil-donut li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 1px 0; white-space: nowrap; }
.pil-donut li i { width: 9px; height: 9px; display: inline-block; }
.pil-donut li em { font-style: normal; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pil-donut li span { color: var(--muted); }
.pil-hbars { list-style: none; margin: 0; padding: 0; font-size: 11.5px; }
.pil-hbars li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 3px 0; }
.pil-hbars .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pil-hbars > li > i { display: block; height: 8px; background: #efe9dd; }
.pil-hbars > li > i > i { display: block; height: 100%; }
.pil-hbars .n { white-space: nowrap; text-align: right; }
.pil-hbars .n small { color: var(--muted); }
#pil-map { height: 120px; background: #e9e2d5; position: relative; z-index: 0; isolation: isolate; }
@media (max-width: 1100px) { .pil-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* téléphone (1.51) : onglets des comptes et graphiques en carrousel ; pas de panier par région */
@media (max-width: 720px) {
  .pil-layout { display: block; }
  .pil-left { position: static; max-height: none; overflow: visible; gap: 12px; margin-bottom: 12px; }
  .pil-left .pil-tabs { display: none; }
  .pil-pick { display: block; width: 100%; margin-top: 10px; text-align: left; position: relative; }
  .pil-pick > summary { list-style: none; display: flex; align-items: baseline; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: #fff; padding: 10px 12px; cursor: pointer; }
  .pil-pick > summary::-webkit-details-marker { display: none; }
  .pil-pick-k { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); flex: 0 0 auto; }
  .pil-pick-n { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pil-pick-v { margin-left: auto; font-size: 11.5px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
  .pil-pick-c { color: rgba(255, 255, 255, .7); font-size: 12px; }
  .pil-pick-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--surface); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); display: flex; flex-direction: column; padding: 6px 0; max-height: 60vh; overflow: auto; }
  .pil-side { display: none !important; }
  .pil-charts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 10px; margin: 0 0 14px; padding: 0; }
  .pil-charts::-webkit-scrollbar { display: none; }
  .pil-chart { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
}
.sh-public { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.pp-in { width: 96px; text-align: right; } .pp-in.ok { border-color: #3f8f5a; background: #f0f8f2; } .pp-in.bad { border-color: #b23a3a; } .pp-in.saving { opacity: .6; }

/* La carte en tête des Domaines (1.45) : les lectures au-dessus, en couleurs ; la carte, puis le panneau */
.map-section { margin: 0 0 18px; }
.map-picks { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.map-pick { background: none; border: 0; border-bottom: 2px solid transparent; padding: 4px 0; font: inherit; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.map-pick small { letter-spacing: 0; text-transform: none; font-size: 11px; opacity: .8; }
.map-pick[aria-pressed="true"] { border-bottom-color: currentColor; }
.map-pick.pick-alloc { color: #b07f0f; }
.map-pick.pick-c0 { color: #7a1f2b; }
.map-pick.pick-c1 { color: #2f6f9f; }
.map-pick.pick-c2 { color: #3f8f5a; }
.map-pick.pick-c3 { color: #c7792b; }
.map-pick.pick-c4 { color: #5a5243; }
.map-pick.pick-c5 { color: #8a6fa8; }
.map-wrap-domains .map, .map-wrap-domains .map-side { height: 52vh; min-height: 320px; max-height: 560px; }
@media (max-width: 860px) {
  .map-wrap-domains { grid-template-columns: 1fr; }
  .map-wrap-domains .map-side { height: auto; max-height: 260px; min-height: 0; }
  .map-picks { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .map-pick { white-space: nowrap; }
  .map-picks .map-legend { display: none; }
}

/* un bouton qui ressemble à du texte (ex. « 71 bouteilles sans cote → » dans un indicateur) */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.25); }
.linklike:hover { text-decoration-color: currentColor; }

/* les marques d'un domaine (1.48) : étoiles du guide RVF et petits signes, à côté du nom, partout */
.dmark { display: inline-flex; align-items: baseline; gap: 3px; margin-left: 2px; font-weight: 400; letter-spacing: 0; vertical-align: baseline; white-space: nowrap; }
.dmark .rvf { color: #b07f0f; font-size: .78em; letter-spacing: .05em; }
.dmark .rvf-0 { font-size: .62em; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.dmark .sign { font-size: .78em; line-height: 1; }
h1 .dmark .rvf { font-size: .6em; } h1 .dmark .sign { font-size: .55em; }

/* Factures (1.51) : « Mes factures » d'abord, le reste replié */
.inv-h { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; font-weight: 600; }
.inv-h:empty { display: none; }
.inv-list { list-style: none; margin: 0; padding: 0; }
.inv-list li { border-top: 1px solid var(--line); }
.inv-list li:first-child { border-top: 0; }
.inv-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; align-items: flex-start; }
.inv-list .inv-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.inv-list .sub { font-size: 11.5px; color: var(--muted); }
.inv-list .inv-amt { flex: 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.inv-list .inv-amt small { font-size: 10px; color: var(--muted); }
.inv-st { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); }
.inv-st.a_payer { border-color: #d9a441; color: #8a6d1d; }
.inv-st.payee { border-color: #9cc39c; color: #2f6b2f; }
.inv-paid .inv-main, .inv-void .inv-main { color: var(--muted); }
.inv-void .inv-amt { text-decoration: line-through; }
.inv-fold { margin-top: 12px; padding: 0; }
.inv-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; }
.inv-fold > summary::-webkit-details-marker { display: none; }
.inv-fold > summary::before { content: "›"; display: inline-block; transition: transform .15s; color: var(--muted); }
.inv-fold[open] > summary::before { transform: rotate(90deg); }
.inv-fold > summary h2 { margin: 0; font-size: 15px; }
.inv-fold > :not(summary) { margin-left: 16px; margin-right: 16px; }
.inv-fold > :last-child { padding-bottom: 14px; }


/* Caves : le tableau de bord (chiffres, valeur dans le temps, statistiques) — grille sur ordinateur, carrousel sur téléphone */
.cv-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cv-dash > .cv-chart { grid-column: 1 / -1; margin: 0; }
.cv-dash > .stat { margin: 0; }
/* flèches des carrousels (téléphone seulement) : à gauche et à droite, par-dessus le bloc */
.car-wrap { position: relative; }
.car-btn { display: none; }
@media (max-width: 720px) {
  .car-btn { display: flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong, #c9c3b8); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 15px; line-height: 1; align-items: center; justify-content: center; padding: 0 0 2px; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
  .car-btn.car-prev { left: -4px; }
  .car-btn.car-next { right: -4px; }
  .car-btn[hidden] { display: none; }
}

/* Pilotage : l'année à côté du titre, le sélecteur de campagne caché dessous (1.51) */
.pil-head { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: nowrap; }
.pil-head h1 { flex: 0 1 auto; }
.pil-head h1 { margin: 0; }
.pil-year-l { position: relative; display: inline-flex; align-items: center; gap: 3px; color: rgba(255, 255, 255, .72); font-size: 12px; letter-spacing: .18em; cursor: pointer; font-variant-numeric: tabular-nums; }
.pil-year-l:hover { color: #fff; }
.pil-year-c { font-size: 12px; line-height: 1; opacity: .7; }
.pil-year-l select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 16px; }
/* Caves sur téléphone (1.51) : chiffres, valeur dans le temps et tuiles de statistiques en un seul carrousel */
@media (max-width: 720px) {
  /* Caves : chiffres et tuiles de statistiques en carrousel, une tuile à la fois */
  .cv-dash { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 10px; margin: 0 0 14px; padding: 0; }
  .cv-dash::-webkit-scrollbar { display: none; }
  .cv-dash > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; margin: 0; }
}
