:root {
  --bg: #F7F3ED;
  --surface: #FFFDFA;
  --sand: #EFE8DD;
  --sand-deep: #E2D8C9;
  --stone: #1A1816;
  --noir: #0E0D0C;
  --ink: #141210;
  --muted: #6E675D;
  --line: #E3DBCE;
  --accent: #9C7A4B;
  --gold: #C9A46A;
  --champagne: #E6CC97;
  --on-dark: #F2EBDF;
  --on-dark-muted: #A79E90;
  --danger: #B42318;
  --ok: #2F6B4F;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --display: 'Bodoni Moda', Didot, 'Bodoni 72', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* « clip » : pas de conteneur de défilement => pas de sauts sur iPhone avec le coffre collé */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.04; margin: 0; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

/* ---------- Bandeau + header ---------- */
.announce {
  background: var(--noir); color: var(--champagne);
  text-align: center; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; padding: 10px 16px;
  border-bottom: 1px solid rgba(201, 164, 106, .18);
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 243, 237, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
body.hero-active .site-header { background: var(--noir); color: var(--on-dark); border-color: rgba(201, 164, 106, .16); }
body.hero-active .cart-count { background: var(--champagne); color: var(--noir); }
body.hero-active .nav a:hover, body.hero-active .nav a[aria-current="page"] { border-color: var(--champagne); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 76px;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.logo {
  font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: .34em; text-transform: uppercase;
  white-space: nowrap; padding-left: .34em; /* compense l'espacement de la dernière lettre */
}
.header-actions { display: flex; justify-content: flex-end; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.cart-count {
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--ink); color: var(--bg); font-size: 10px; line-height: 18px; text-align: center; letter-spacing: 0;
}
.cart-count[hidden] { display: none; }

@media (max-width: 760px) {
  .header-inner { grid-template-columns: auto 1fr auto; height: auto; padding-top: 12px; padding-bottom: 0; row-gap: 6px; }
  .logo { grid-column: 1; grid-row: 1; font-size: 15px; letter-spacing: .26em; padding-left: 0; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .icon-btn .label { display: none; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; overflow-x: auto; padding-bottom: 10px; }
}

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 34px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s var(--ease), opacity .2s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--noir); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-gold { background: transparent; color: var(--champagne); border-color: rgba(230, 204, 151, .55); }
.btn-light { background: var(--on-dark); color: var(--noir); border-color: var(--on-dark); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.link-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Accueil ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(40px, 5vw, 72px); }

.gender-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; perspective: 1400px; }
.gender-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  aspect-ratio: 4 / 5; max-height: 620px; width: 100%; padding: clamp(24px, 4vw, 48px); overflow: hidden;
  background: var(--sand);
}
.gender-tile.homme { background: var(--noir); color: var(--on-dark); }
.gender-tile.homme .eyebrow { color: #B9B1A6; }
.gender-tile h3 { font-size: clamp(56px, 8vw, 120px); position: relative; font-style: italic; }
.gender-tile .link-arrow { position: relative; align-self: flex-start; border-color: currentColor; }
.gender-tile .eyebrow { position: relative; }
.gender-tile img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.gender-tile:has(img)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .45)); }
.gender-tile:has(img) { color: #fff; }
.gender-tile:has(img) .eyebrow { color: rgba(255, 255, 255, .8); }
.gender-tile:has(img) > :not(img) { z-index: 1; }
.gender-tile .deco { position: absolute; right: -8%; top: -6%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFFFFF, #E7DDCF); }
.gender-tile.homme .deco { background: radial-gradient(circle at 40% 35%, #5A4429, #0E0D0C 70%); }
@media (max-width: 640px) { .gender-tiles { grid-template-columns: 1fr; } .gender-tile { aspect-ratio: 5 / 4; } }

.cat-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  font-size: 13px; transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.reassurance { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reassurance div { padding: 36px var(--gutter); display: grid; gap: 6px; }
.reassurance div + div { border-left: 1px solid var(--line); }
.reassurance svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.1; margin-bottom: 8px; }
.reassurance strong { font-weight: 500; }
.reassurance span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .reassurance { grid-template-columns: 1fr; } .reassurance div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Grille produits ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; } }

.card { display: flex; flex-direction: column; gap: 14px; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img:only-of-type { transform: scale(1.03); }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--surface); padding: 4px 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.card-meta { display: grid; gap: 4px; }
.card-meta .eyebrow { font-size: 10px; }
.card-name { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.15; }
.card-price { font-size: 14px; color: var(--muted); }

.ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--sand) 0%, var(--sand-deep) 100%); }
.ph span { font-family: var(--serif); font-size: clamp(56px, 8vw, 104px); color: rgba(42, 40, 37, .16); font-style: italic; font-weight: 300; }
.ph.dark { background: radial-gradient(circle at 50% 35%, #3A2F22, #0E0D0C 75%); }
.ph.dark span { color: rgba(230, 204, 151, .28); }

/* ---------- Promotions ---------- */
.sale { color: var(--accent); }
.was { color: var(--muted); font-size: .88em; margin-left: 4px; }
.section-dark .sale { color: var(--champagne); }
.card-badge.promo { background: var(--ink); color: var(--champagne); }
.section-dark .card-badge.promo { background: var(--champagne); color: var(--noir); }
.promo-tag { font-size: 11px; letter-spacing: .14em; background: var(--ink); color: var(--champagne); padding: 4px 9px; align-self: center; }
.promo-ends { font-size: 13px; color: var(--accent); margin-top: -12px; }
.chip-promo { border-color: var(--accent); color: var(--accent); }
.chip-promo[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Boutique ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 28px; display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(56px, 9vw, 132px); }
.page-head p { color: var(--muted); max-width: 56ch; }
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.segmented { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.segmented a { padding: 10px 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.segmented a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.toolbar .cat-list { flex: 1; }
@media (max-width: 760px) {
  .toolbar { gap: 12px; }
  .toolbar .cat-list {
    order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); flex-wrap: nowrap; overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none;
  }
  .toolbar .cat-list::-webkit-scrollbar { display: none; }
  .toolbar .chip { flex: none; }
  .segmented a { padding: 10px 14px; }
}
.select { min-height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231C1B19' stroke-width='1.4'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 13px; }
.count { color: var(--muted); font-size: 13px; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.empty h2 { color: var(--ink); font-size: 44px; }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.breadcrumb { font-size: 12px; color: var(--muted); padding-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-self: start; position: sticky; top: 92px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; grid-column: 2; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-direction: column; gap: 10px; grid-column: 1; grid-row: 1; }
.thumbs button { position: relative; padding: 0; border: 1px solid transparent; background: var(--sand); aspect-ratio: 4 / 5; overflow: hidden; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single .gallery-main { grid-column: 1; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-main { grid-column: 1; }
  .thumbs { grid-row: 2; flex-direction: row; overflow-x: auto; }
  .thumbs button { width: 64px; flex: none; }
}
.product-info { display: flex; flex-direction: column; gap: 22px; }
.product-info h1 { font-size: clamp(44px, 5vw, 72px); }
.product-price { display: flex; align-items: baseline; gap: 14px; font-size: 20px; }
.product-price .weight { font-size: 14px; color: var(--muted); }
.product-lead { color: var(--muted); white-space: pre-line; }
.buy { display: flex; gap: 12px; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.qty button { width: 44px; height: 46px; background: none; border: 0; font-size: 18px; }
.qty input { width: 40px; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { appearance: none; }
.stock { font-size: 13px; color: var(--ok); display: flex; gap: 8px; align-items: center; }
.stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.out { color: var(--danger); }
.stock.low { color: var(--accent); }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: '+'; font-size: 18px; font-weight: 300; }
.details details[open] summary::after { content: '−'; }
.details .body { padding: 0 0 22px; color: var(--muted); white-space: pre-line; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; }
.spec dt { color: var(--ink); }
.spec dd { margin: 0; }

/* ---------- Panier ---------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); padding-bottom: 96px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item .thumb { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.cart-item .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-item .ph span { font-size: 28px; }
.cart-item h3 { font-size: 23px; font-weight: 400; }
.cart-item .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cart-item .row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.cart-item .qty button { width: 34px; height: 36px; font-size: 15px; }
.cart-item .qty input { width: 30px; }
.remove { background: none; border: 0; padding: 4px 0; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.remove:hover { color: var(--ink); }
.cart-item .line-price { font-size: 15px; }
@media (max-width: 520px) {
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item .line-price { grid-column: 2; }
}
.summary { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; position: sticky; top: 92px; }
.summary h2 { font-size: 34px; }
.totals { display: grid; gap: 10px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 18px; }
.free-ship { font-size: 13px; color: var(--muted); }
.free-ship .bar { height: 3px; background: var(--sand-deep); margin-top: 8px; }
.free-ship .bar i { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }

.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .two.pc { grid-template-columns: 120px 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.input, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); background: var(--bg); border-radius: 0;
  transition: border-color .2s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.textarea { min-height: 84px; resize: vertical; }
.error-msg { color: var(--danger); font-size: 13px; }
.notice { background: var(--sand); padding: 14px 16px; font-size: 13px; color: var(--muted); }
.confirm { max-width: 560px; margin: 0 auto; padding: 96px 0; text-align: center; display: grid; gap: 18px; justify-items: center; }
.confirm h1 { font-size: clamp(44px, 6vw, 72px); }
.confirm p { color: var(--muted); }

/* ---------- Compte client ---------- */
.account-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 96px; align-items: start; }
.account-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); padding-bottom: 96px; align-items: start; }
@media (max-width: 900px) { .account-auth, .account-layout { grid-template-columns: 1fr; } }
.account-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.account-card h2, .account-h2 { font-size: 32px; margin-bottom: 4px; }
.account-h2 { margin-bottom: 18px; }
.account-side { display: grid; gap: 20px; }
.account-side .link-arrow { justify-self: start; background: none; border-width: 0 0 1px; cursor: pointer; }
.muted-note { font-size: 12px; color: var(--muted); }
.text-link { background: none; border: 0; padding: 0; justify-self: start; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link:hover { color: var(--ink); }
.account-narrow { max-width: 480px; padding-bottom: 96px; }
.account-orders { display: grid; gap: 10px; }
.account-order { background: var(--surface); border: 1px solid var(--line); }
.account-order summary { list-style: none; display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 16px 20px; cursor: pointer; }
.account-order summary::-webkit-details-marker { display: none; }
.account-order > :not(summary) { padding: 0 20px; }
.account-order > :last-child { padding-bottom: 18px; }
.account-lines { list-style: none; margin: 0 0 10px; padding-top: 14px !important; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.account-lines li { display: flex; justify-content: space-between; gap: 12px; }
.status-pill { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; background: var(--sand); }
.status-pill.s-paid, .status-pill.s-shipped { background: #EFE3CC; color: #6B4E1E; }
.status-pill.s-delivered { background: #DDEBDF; color: var(--ok); }
.status-pill.s-cancelled { background: #F3DCD9; color: var(--danger); }
.account-empty { border: 1px dashed var(--line); padding: 40px 24px; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
body.hero-active .icon-btn[aria-current="page"], .icon-btn[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--noir); color: var(--on-dark); padding: 96px 0 32px; margin-top: 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p, .footer-grid a { color: var(--on-dark-muted); font-size: 14px; }
.footer-grid .eyebrow { color: var(--champagne); }
.footer-grid ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-mark {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--champagne);
  font-size: clamp(40px, 11.4vw, 176px); letter-spacing: .06em; line-height: .9; white-space: nowrap;
  margin: 72px 0 28px; text-align: center; opacity: .9;
}
.footer-bottom { border-top: 1px solid rgba(201, 164, 106, .18); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } .footer-bottom { flex-direction: column; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 14px 22px; font-size: 13px;
  display: flex; gap: 16px; align-items: center; transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.skeleton { background: linear-gradient(90deg, var(--sand) 0%, #F7F3EE 50%, var(--sand) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Grain (texture papier) ---------- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Téléphones : pas de grain plein écran ni de flou derrière l'en-tête (coûteux à chaque défilement) */
@media (max-width: 860px), (pointer: coarse) {
  body::after { display: none; }
  .site-header { backdrop-filter: none; background: var(--bg); }
  body.hero-active .site-header { background: var(--noir); }
}

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Héros 3D ---------- */
.hero3d { position: relative; height: 340vh; background: var(--noir); color: var(--on-dark); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 1s var(--ease); }
.hero-fallback .orb {
  width: min(48vw, 520px); aspect-ratio: 1; border-radius: 50%; margin-left: 40%;
  background: radial-gradient(circle at 38% 32%, #F3E3C3 0%, #C9A46A 30%, #5A4429 62%, transparent 72%);
  filter: blur(.5px); opacity: .85;
}
.hero3d.webgl-ready .hero-fallback { opacity: 0; }
.hero-copy {
  position: absolute; z-index: 2; display: grid; gap: 26px; align-content: center;
  top: 0; bottom: 0; width: min(46%, 620px); pointer-events: none;
}
.hero-copy a { pointer-events: auto; }
.hero-copy.one { left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.hero-copy.two { right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); opacity: 0; }
.hero-copy .eyebrow { color: var(--champagne); }
.hero-copy h1 { font-size: clamp(56px, 8.4vw, 140px); color: var(--on-dark); }
.hero-copy h2 { font-size: clamp(44px, 6vw, 96px); color: var(--on-dark); }
.hero-copy h1 em, .hero-copy h2 em { color: var(--champagne); }
.hero-copy p { color: var(--on-dark-muted); font-size: 16px; max-width: 40ch; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn::before { background: var(--champagne); }
.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted);
}
.scroll-hint i { width: 1px; height: 54px; background: linear-gradient(var(--champagne), transparent); transform-origin: top; animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 860px) {
  .hero3d { height: 200vh; }
  .hero-copy { width: auto; left: var(--gutter) !important; right: var(--gutter) !important; align-content: start; padding-top: 12vh; text-align: left; }
  .hero-fallback .orb { width: 80vw; margin: 40vh 0 0; }
}

/* Barre de chargement du coffre (téléphone) */
.hero-loader { position: absolute; z-index: 4; left: 50%; bottom: 12px; width: 120px; height: 1px; margin-left: -60px; background: rgba(230, 204, 151, .18); overflow: hidden; transition: opacity .8s var(--ease); }
.hero-loader i { display: block; height: 100%; background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hero-loader.done { opacity: 0; }

/* Voile de transition : la caméra entre dans le coffre puis la page enchaîne */
.hero-veil { position: absolute; inset: 0; z-index: 3; background: var(--noir); opacity: 0; pointer-events: none; }

/* ---------- Sections sombres (la sélection « dans le coffre ») ---------- */
.section-dark { background: var(--noir); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--champagne); }
.section-dark h2 { color: var(--on-dark); }
.section-dark h2 em { color: var(--champagne); }
.section-dark .link-arrow { color: var(--champagne); border-color: rgba(230, 204, 151, .6); }
.section-dark .card-name { color: var(--on-dark); }
.section-dark .card-price { color: var(--on-dark-muted); }
.section-dark .card-meta .eyebrow { color: var(--on-dark-muted); }
.section-dark .card-media { background: #1A1714; }
.section-dark .ph { background: radial-gradient(circle at 50% 35%, #2A221A, #141210 75%); }
.section-dark .ph span { color: rgba(230, 204, 151, .3); }
.section-dark .card-badge { background: var(--champagne); color: var(--noir); }
.section-dark .skeleton { background: linear-gradient(90deg, #1A1714 0%, #26211B 50%, #1A1714 100%); background-size: 200% 100%; }
.selection { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--noir); color: var(--champagne); overflow: hidden; border-top: 1px solid rgba(201, 164, 106, .18); border-bottom: 1px solid rgba(201, 164, 106, .18); padding: 26px 0; }
.marquee-track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(34px, 4.6vw, 64px); white-space: nowrap; padding: 0 .5em; }
.marquee-track span.star { font-style: normal; font-size: .5em; align-self: center; color: var(--gold); }

/* ---------- Manifeste ---------- */
.manifesto { background: var(--noir); color: var(--on-dark); padding: clamp(96px, 16vw, 220px) 0; text-align: center; }
.manifesto .eyebrow { color: var(--champagne); }
.manifesto p.big {
  font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.6vw, 70px); line-height: 1.12;
  max-width: 20ch; margin: 28px auto 0;
}
.manifesto p.big .w { display: inline-block; }
.manifesto p.big em { color: var(--champagne); }

/* ---------- Index des catégories ---------- */
.index { border-top: 1px solid var(--line); perspective: 1200px; }
.index-row {
  position: relative; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.index-row .n { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.index-row .t { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5.4vw, 84px); line-height: 1; transition: transform .8s var(--ease), color .5s; }
.index-row svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1; transition: transform .8s var(--ease); }
.index-row::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.index-row:hover::before { transform: scaleX(1); }
.index-row:hover .t { transform: translateX(24px); color: var(--accent); font-style: italic; }
.index-row:hover svg { transform: translateX(-8px) rotate(-45deg); }
@media (max-width: 600px) { .index-row { grid-template-columns: 40px 1fr auto; } }

/* ---------- Inclinaison 3D ---------- */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); will-change: transform; }
.tilt:hover { transition: transform .12s linear; }
.tilt::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 244, 222, .35), transparent 55%);
  mix-blend-mode: soft-light;
}
.tilt:hover::after { opacity: 1; }

/* Titres découpés en lignes */
[data-split] .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .line-in { display: inline-block; }

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