:root {
  --page: #f1f1f1;
  --paper: #ffffff;
  --mist: #e2e2e2;
  --ink: #0d0d0d;
  --ink-2: #404040;
  --ink-3: #666666;
  --hair: rgba(13, 13, 13, 0.16);
  --hair-strong: rgba(13, 13, 13, 0.26);
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --wine: #511020;
  --wine-deep: #1e060c;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  /* Marge commune à l'en-tête, au contenu et au pied de page, pour qu'ils restent alignés sur grand écran. */
  --edge: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: inherit; }
img { display: block; max-width: 100%; }
p, ul, ol, h1, h2, h3, fieldset, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { width: 100%; padding-inline: var(--edge); }

/* ── Typographie ─────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.eyebrow + .title { margin-top: 8px; }

.section-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-transform: uppercase;
}

.heading {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.meta { font-size: 14px; color: var(--ink-2); }
.fine { font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover { color: var(--wine); }

.price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.price s { margin-left: 6px; font-weight: 400; color: var(--ink-3); }

/* ── Boutons ─────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn:disabled { background: var(--mist); border-color: var(--mist); color: var(--ink-3); cursor: not-allowed; }
.btn-wide { display: block; width: 100%; }

.btn-line { background: transparent; border-color: var(--hair-strong); color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ── En-tête ─────────────────────────────── */

.top-bar {
  display: block;
  padding: 7px var(--edge);
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.top-bar:hover { background: var(--wine-deep); }

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px var(--edge);
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.logo img { width: 32px; height: 32px; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--wine); }

.cart-count:not(:empty) {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  background: var(--wine);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.preview-bar { padding: 8px var(--gutter); background: var(--ink); color: #fff; font-size: 12px; text-align: center; }

/* ── Accueil ─────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(400px, 62vh, 620px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: brightness(0.5) contrast(1.3);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.72), transparent 62%);
}

.hero-text { position: relative; z-index: 1; padding: 0 var(--edge) clamp(24px, 4vw, 44px); }
.hero-text .eyebrow { color: #fff; }

.hero-title {
  margin: 8px 0 20px;
  font-size: clamp(52px, 9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.kanji {
  position: absolute;
  z-index: 1;
  top: clamp(20px, 3vw, 36px);
  right: var(--edge);
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  user-select: none;
}

.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: var(--edge);
  background: var(--paper);
}

.perks li {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-left: 1px solid var(--hair);
  font-size: 12px;
  color: var(--ink-2);
}

.perks li:first-child { padding-left: 0; border-left: 0; }
.perks strong { font-size: 13px; font-weight: 700; color: var(--ink); }

.section { padding-block: clamp(32px, 4.5vw, 56px); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.section-head .link { font-size: 13px; font-weight: 600; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.split-photo { position: relative; min-height: 300px; overflow: hidden; background: var(--ink); }

.split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  filter: brightness(0.62) contrast(1.15);
}

.split-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px) var(--edge) clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px);
  background: var(--wine);
  color: #fff;
}

.split-panel .eyebrow { color: var(--on-dark-2); }
.split-panel .section-title { margin-top: 8px; }
.split-panel .fine, .split-panel .form-msg, .split-panel .form-msg.error { color: var(--on-dark-2); }
.split-panel .form-msg.error { color: #fff; }

.newsletter { margin-top: 20px; max-width: 520px; }

.line-row {
  display: flex;
  align-items: stretch;
  background: var(--paper);
}

.line-row input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.line-row input::placeholder { color: var(--ink-3); }
.line-row .btn { border-color: var(--ink); background: var(--ink); white-space: nowrap; }
.line-row .btn:hover { border-color: var(--wine-deep); background: var(--wine-deep); }

.newsletter .fine { margin-top: 8px; }

/* ── Cadre produit ───────────────────────── */

/* Carré blanc et image entière. Une image « avant + arrière » fait deux largeurs : le cadre n'en montre qu'une moitié. */
.visual { position: relative; display: block; aspect-ratio: 1; padding: 7%; background: var(--paper); }
.visual-in { display: block; width: 100%; height: 100%; overflow: hidden; }
.visual img { width: 100%; max-width: none; height: 100%; object-fit: contain; }
.visual.is-sides img { width: 200%; }
.visual.is-back img { transform: translateX(-50%); }

.visual-alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; }

@media (hover: hover) {
  .card:hover .visual-alt { opacity: 1; }
}

.is-soldout .visual img { opacity: 0.4; }

.no-photo { display: grid; place-items: center; width: 100%; height: 100%; font-size: 12px; color: var(--ink-3); }

.view-label {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 12px 12px 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.tag-row .is-out { color: var(--wine); }

.card-cta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
}

.card-cta:hover, .card:hover .card-cta { background: var(--wine); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  text-decoration: none;
}

.card-photo { position: relative; display: block; }

.card-body { flex: 1; display: flex; flex-direction: column; padding: 0 12px 14px; }
.card-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.card-name { font-weight: 700; letter-spacing: -0.005em; text-transform: uppercase; overflow-wrap: anywhere; }
.card-meta { font-size: 13px; color: var(--ink-3); }

.sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }

.sizes span {
  min-width: 30px;
  padding: 3px 7px;
  background: var(--page);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.sizes .is-out { background: none; color: var(--ink-3); font-weight: 400; text-decoration: line-through; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  background: var(--paper);
}

.feature-views { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); text-decoration: none; }
.feature-view { position: relative; display: block; }
.feature-view:only-child .visual { height: 100%; aspect-ratio: auto; min-height: 320px; }

.feature-text { display: flex; flex-direction: column; min-width: 0; }
.feature .tag-row { padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2vw, 28px) 0; }
.feature .card-cta { padding-inline: clamp(16px, 2vw, 28px); }
.feature-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 16px clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px); }
.feature-body .meta { margin-top: 6px; }
.feature-price { margin-top: 14px; font-size: 20px; }
.feature-desc { max-width: 44ch; margin-top: 16px; color: var(--ink-2); white-space: pre-line; }

.empty-note { color: var(--ink-3); }

/* ── Bandeau de page ─────────────────────── */

.page-band {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(150px, 24vh, 220px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.page-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: brightness(0.5) contrast(1.2);
}

.page-band-text { position: relative; padding: 0 var(--edge) clamp(16px, 2.4vw, 24px); }
.page-band-text .eyebrow { color: #fff; }
.page-band + .section { padding-top: clamp(20px, 3vw, 32px); }

.page-head { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(16px, 2.4vw, 24px); }
.page-head .meta { margin-top: 6px; }
.page-empty { padding-bottom: clamp(48px, 7vw, 88px); }
.page-empty .btn { margin-top: 20px; }
.page-empty .fine { margin-top: 12px; }

/* ── Fiche produit ───────────────────────── */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  padding-top: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(32px, 4.5vw, 56px);
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 0.8vw, 10px);
}

.gallery-view { position: relative; background: var(--paper); }
.gallery-view:only-child, .gallery-view:nth-child(odd):last-child { grid-column: 1 / -1; }
.gallery-view:only-child .visual { aspect-ratio: 5 / 4; }

.product-info {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.back { align-self: flex-start; margin-bottom: 16px; font-size: 13px; }
.product-info .meta { margin-top: 6px; }
.product-price { margin: 12px 0 20px; font-size: 20px; }

.size-picker legend { margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; }

.size-options { display: flex; flex-wrap: wrap; gap: 6px; }

.size { position: relative; cursor: pointer; }
.size input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }

.size span {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 46px;
  padding: 0 12px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.size:hover span { background: var(--mist); }
.size input:checked + span { background: var(--ink); color: #fff; }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.size.is-out { cursor: not-allowed; }
.size.is-out:hover span { background: none; }
.size.is-out span { background: none; color: var(--ink-3); font-weight: 400; text-decoration: line-through; }

.stock-hint { min-height: 1.5em; margin: 8px 0 12px; }

.form-msg { min-height: 1.5em; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.form-msg:empty { min-height: 0; margin: 0; }
.form-msg.error { color: var(--wine); }

.product-desc { margin-top: 20px; color: var(--ink-2); white-space: pre-line; }

.more { border-top: 1px solid var(--hair); }
.product-desc + .more { margin-top: 20px; }
form + .more { margin-top: 20px; }
.more:last-child { border-bottom: 1px solid var(--hair); }
.more summary { padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.more p { padding-bottom: 12px; font-size: 14px; color: var(--ink-2); }

/* ── Panier et commande ──────────────────── */

.cart-layout, .checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.cart-lines { background: var(--paper); }

.cart-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--hair);
}

.cart-line:last-child { border-bottom: 0; }

.cart-thumb, .recap-thumb { display: block; background: var(--page); }
.cart-thumb .visual, .recap-thumb .visual { background: none; }
.cart-name { font-weight: 700; text-decoration: none; text-transform: uppercase; }
.line-problem { margin-top: 6px; font-size: 13px; color: var(--wine); }

.cart-controls { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 13px; }

.qty { display: inline-flex; align-items: center; background: var(--page); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--mist); }
.qty button:disabled { color: var(--ink-3); opacity: 0.4; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

.summary {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  background: var(--paper);
}

.summary-row { display: flex; justify-content: space-between; gap: 16px; }
.summary-row[hidden] { display: none; }
.promo { margin-block: 16px 4px; }
.promo[hidden] { display: none; }
.promo label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--hair-strong); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; text-transform: uppercase; outline: none; }
.promo-row input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.promo-row .btn { flex: none; padding-inline: 14px; }
.promo-remove { margin-left: 6px; font-size: 12px; }
.pre-drop-note { color: var(--wine); font-weight: 500; }
.summary-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 18px; font-weight: 700; }
.summary .btn { margin-top: 8px; }

.test-note { margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--wine); }

.form-block { padding-block: 24px; border-top: 1px solid var(--hair); }
.form-block:first-child { padding-top: 0; border-top: 0; }
.form-block .heading { margin-bottom: 16px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { margin-top: 0; min-width: 0; }
.field.is-wide { grid-column: 1 / -1; }
form > .field { margin-top: 14px; }
.form-block > .field { margin-top: 16px; }

.field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }

.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hair-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.field select {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: right 17px center, right 12px center;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  cursor: pointer;
  appearance: none;
}
.field .fine { margin-top: 4px; }
.form-block > .fine { margin-top: 12px; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.form-block > .check:first-child, form > .check:first-child { margin-top: 0; }
.check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--wine); cursor: pointer; }

.choice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.choice-list[hidden] { display: none; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hair-strong);
  background: var(--paper);
  cursor: pointer;
}

.choice:has(input:checked) { border-color: var(--ink-3); }
.choice input { margin: 0; accent-color: var(--wine); }
.choice-text { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.choice-text strong { font-weight: 600; }
.choice-text span { font-size: 12px; color: var(--ink-3); }

.recap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.recap li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.recap-text { display: flex; flex-direction: column; }
.recap-text strong { font-weight: 600; }
.recap-text span { font-size: 12px; color: var(--ink-3); }

/* ── Suivi de commande ───────────────────── */

.order-keep { margin-top: 12px; font-size: 14px; }
.order-page { padding-bottom: clamp(40px, 6vw, 72px); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.steps li { padding-top: 8px; border-top: 3px solid var(--mist); font-size: 13px; font-weight: 500; color: var(--ink-3); }
.steps li.is-done { border-top-color: var(--wine); color: var(--ink); }

.tracking { margin-bottom: 20px; font-size: 14px; }

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-block: clamp(20px, 3vw, 32px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--hair);
}

.order-grid .heading { margin-bottom: 12px; }
.order-grid .heading-gap { margin-top: 24px; }
.address { margin-bottom: 8px; white-space: pre-line; }

/* ── Compte ──────────────────────────────── */

.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.access-photo { position: relative; min-height: 420px; background: var(--ink); }
.access-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; filter: brightness(0.62) contrast(1.15); }

.access-forms {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: min(480px, 100%);
  padding: clamp(24px, 4vw, 48px) var(--gutter);
}

.access-forms .meta { margin-top: 8px; }
.access-forms form { margin-top: 8px; }
.access-forms .fields { margin-top: 14px; }
.access-forms .btn { margin-top: 18px; }
.access-forms .fine { margin-top: 12px; }

.account { max-width: calc(720px + 2 * var(--edge)); padding-bottom: clamp(40px, 6vw, 72px); }
.account .btn { margin-top: 18px; }
.account-end { display: flex; flex-direction: column; gap: 16px; }
.account-end .btn { margin-top: 0; }
.account-end .more .btn { margin-top: 14px; }
.account-end .more { padding-bottom: 12px; }

.order-rows { background: var(--paper); }

.order-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  text-decoration: none;
}

.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: var(--mist); }
.order-row-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.order-row-main strong { font-weight: 600; }
.order-row-main span { font-size: 12px; color: var(--ink-3); }

.status { font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.status-processing { color: var(--wine); }
.status-cancelled { color: var(--ink-3); text-decoration: line-through; }

/* ── Pages d'information ─────────────────── */

.info { max-width: calc(720px + 2 * var(--edge)); padding-bottom: clamp(40px, 6vw, 72px); color: var(--ink-2); }
.info h2 { margin: 24px 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.info h2:first-child { margin-top: 0; }
.info h3 { margin: 20px 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.info p + p, .info ul + p { margin-top: 10px; }
.info ul { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-left: 18px; list-style: disc; }
.info strong { font-weight: 600; color: var(--ink); }
.legal-box { margin-top: 12px; padding: 18px; background: var(--paper); font-size: 13px; line-height: 1.55; scroll-margin-top: 90px; }
.todo { background: none; color: var(--wine); border-bottom: 1px dashed var(--wine); }

.info-table { width: 100%; margin-block: 14px; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.info-table th { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.info-table td:last-child, .info-table th:last-child { padding-right: 0; text-align: right; white-space: nowrap; }

/* ── Pied de page ────────────────────────── */

.site-foot {
  padding: clamp(28px, 4vw, 44px) var(--edge) 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.foot-main { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); }

.site-foot .logo img { filter: invert(1); }
.foot-sign { margin-top: 10px; font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-size: 16px; font-weight: 300; }

.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.foot-col h2 {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.site-foot a { text-decoration: none; }
.foot-col a:hover, .foot-end a:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  color: var(--on-dark-2);
}

/* ── Écrans étroits ──────────────────────── */

@media (max-width: 900px) {
  .feature, .product, .cart-layout, .checkout, .order-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .product-info, .summary { position: static; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .perks li:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .grid, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-photo { min-height: 220px; }
  .split-panel { padding-left: var(--edge); }
  .foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }

  /* Les vues d'une pièce se font défiler au doigt, la suivante dépasse pour le signaler. */
  .feature-views, .gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .feature-views::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .feature-view, .gallery-view { scroll-snap-align: start; }
  .feature-views:has(> :only-child), .gallery:has(> :only-child) { grid-auto-columns: 100%; }
  .feature-view:only-child .visual { height: auto; min-height: 0; aspect-ratio: 5 / 4; }
  .gallery { grid-template-columns: none; }
  .gallery-view:only-child, .gallery-view:nth-child(odd):last-child { grid-column: auto; }

  .access { grid-template-columns: minmax(0, 1fr); }
  .access-photo { min-height: 160px; height: 22vh; }
  .access-forms { width: 100%; max-width: 560px; margin-inline: auto; }
  .checkout-summary { order: -1; }
}

@media (max-width: 560px) {
  .logo span { display: none; }
  .site-head .logo img { width: 30px; height: 30px; }
  .site-nav { gap: 16px; }
  .top-bar { font-size: 11px; padding-inline: 12px; }
  .hero-photo { object-position: 57% 60%; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .field:not(.is-wide) { grid-column: 1 / -1; }
  .cart-line { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .order-row { flex-wrap: wrap; gap: 6px 14px; }
  .order-row-main { flex-basis: 100%; }
  .card-body, .card-cta { padding: 10px; }
  .tag-row { padding: 6px 10px; font-size: 10px; }
  .card-row { flex-direction: column; }
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
