/* MAISON ROMINA — feuille de style */
:root {
  --ivory: #f5f0e9;
  --paper: #fbf8f4;
  --sand: #e8dfd3;
  --line: #d9cec0;
  --ink: #1d1916;
  --ink-2: #4a423b;
  --mute: #6c6258;
  --cocoa: #5b3a2a;
  --cocoa-2: #7a5340;
  --ok: #3f6b4f;
  --danger: #9b3328;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 96px; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--cocoa); outline-offset: 3px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--mute);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--cocoa); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400;
  background: var(--ink); color: var(--ivory);
  transition: background 0.3s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--cocoa); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); }
.btn.light { background: var(--ivory); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Bandeau & en-tête ---------- */
.announce {
  background: var(--ink); color: var(--sand);
  text-align: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 10px var(--pad);
}
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 240, 233, 0.86);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; padding: 0 var(--pad);
}
.nav { display: flex; gap: 28px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; }
.nav a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.logo { text-align: center; line-height: 1; }
.logo b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: 0.32em; padding-left: 0.32em; }
.logo small { display: block; margin-top: 5px; font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--mute); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; }
.cart-count {
  min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--ivory); font-size: 11px; letter-spacing: 0;
  transition: transform 0.3s var(--ease);
}
.cart-count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; width: 28px; height: 28px; position: relative; }
.menu-btn span { position: absolute; left: 3px; right: 3px; height: 1px; background: var(--ink); }
.menu-btn span:first-child { top: 10px; } .menu-btn span:last-child { top: 17px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100svh - 110px);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(40px, 6vw, 88px) var(--pad);
}
.hero-copy h1 { font-size: clamp(64px, 10.5vw, 168px); margin: 28px 0 30px; }
.hero-copy h1 span { display: block; }
.hero-copy p.lead { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-style: italic; color: var(--ink-2); max-width: 26ch; line-height: 1.25; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-foot { display: flex; gap: 40px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-foot div { font-size: 12px; color: var(--ink-2); }
.hero-foot strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--ink); line-height: 1.1; }
.hero-media { position: relative; overflow: hidden; background: var(--sand); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: heroIn 1.6s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: 0; } }
.hero-media .tag {
  position: absolute; left: 24px; bottom: 24px; background: var(--ivory); padding: 12px 16px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero-media .tag b { font-family: var(--serif); font-size: 18px; letter-spacing: 0; text-transform: none; font-weight: 500; display: block; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

/* ---------- Concept ---------- */
.concept {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: var(--pad); align-items: end;
  padding: clamp(80px, 11vw, 160px) var(--pad);
}
.concept .num { font-family: var(--serif); font-size: 15px; color: var(--mute); }
.concept h2 { font-size: clamp(46px, 6vw, 92px); text-align: center; }
.concept p { color: var(--ink-2); max-width: 34ch; }
.concept .pill { display: inline-block; margin-top: 18px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; border-top: 1px solid var(--ink); padding-top: 10px; }

/* ---------- Boutique ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  padding: 0 var(--pad) 32px;
}
.section-head h2 { font-size: clamp(44px, 5.5vw, 80px); margin-top: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; letter-spacing: 0.08em; transition: all 0.25s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.active { background: var(--ink); color: var(--ivory); box-shadow: none; }
.chip small { opacity: 0.6; margin-left: 6px; }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 20px;
  padding: 0 var(--pad) clamp(80px, 10vw, 140px);
}
.card { cursor: pointer; }
.card-media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--sand); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.main { transform: scale(1.03); }
.card:hover .card-media img.alt { opacity: 1; }
.card-badge { position: absolute; top: 14px; left: 14px; background: var(--ivory); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; padding: 6px 10px; }
.quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; height: 46px;
  background: rgba(245, 240, 233, 0.94); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  transform: translateY(calc(100% + 16px)); transition: transform 0.45s var(--ease), background 0.2s;
}
.quick:hover { background: var(--ink); color: var(--ivory); }
.card:hover .quick, .card:focus-within .quick { transform: none; }
.card-info { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card-info h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.card-info p { font-size: 12px; color: var(--mute); letter-spacing: 0.06em; margin-top: 4px; }
.card-info .price { font-size: 15px; white-space: nowrap; font-weight: 400; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--mute); padding: 60px 0; }

/* ---------- Bande éditoriale ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--ivory); }
.editorial img { width: 100%; height: 100%; object-fit: cover; min-height: 560px; }
.editorial-copy { padding: clamp(48px, 7vw, 110px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.editorial-copy .eyebrow { color: #b9ab9b; }
.editorial-copy h2 { font-size: clamp(46px, 5.5vw, 86px); margin: 22px 0 26px; }
.editorial-copy h2 em { color: #d8b9a2; }
.editorial-copy p { color: #cfc4b8; max-width: 40ch; margin-bottom: 34px; }

/* ---------- Univers ---------- */
.univers { padding: clamp(80px, 11vw, 150px) var(--pad); }
.univers-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: 40px; }
.u-item { padding: 34px 28px 40px 0; border-right: 1px solid var(--line); }
.u-item + .u-item { padding-left: 28px; }
.u-item:last-child { border-right: 0; }
.u-item .n { font-family: var(--serif); font-size: 15px; color: var(--mute); }
.u-item h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 18px 0 12px; line-height: 1.05; }
.u-item p { color: var(--ink-2); font-size: 15px; max-width: 32ch; }
.u-item .status { margin-top: 22px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.u-item .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.u-item .status.soon i { background: #c49a6c; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--pad); padding: 0 var(--pad) clamp(80px, 11vw, 150px); align-items: center; }
.studio img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.studio h2 { font-size: clamp(44px, 5vw, 76px); margin: 18px 0 24px; }
.studio p { color: var(--ink-2); max-width: 46ch; margin-bottom: 14px; }
.sign { font-family: var(--serif); font-style: italic; font-size: 30px; margin-top: 26px; }
.sign small { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); margin-top: 4px; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px var(--pad) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; color: var(--mute); margin-bottom: 16px; }
.footer li { list-style: none; margin-bottom: 8px; font-size: 14px; }
.footer li a:hover { color: var(--cocoa); }
.footer .big { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.news { display: flex; border-bottom: 1px solid var(--ink); }
.news input { flex: 1; border: 0; background: transparent; height: 46px; font: inherit; font-size: 14px; outline: none; }
.news button { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; font-size: 12px; color: var(--mute); }
.footer-mark { font-family: var(--serif); font-size: clamp(56px, 13vw, 200px); line-height: 0.85; letter-spacing: 0.02em; text-align: center; margin-top: 56px; color: var(--sand); user-select: none; white-space: nowrap; overflow: hidden; }

/* ---------- Voile, tiroir, fiche ---------- */
.scrim { position: fixed; inset: 0; background: rgba(29, 25, 22, 0.42); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 70;
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.5s var(--ease);
}
.drawer.on { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.x { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; font-weight: 200; border-radius: 50%; transition: background 0.2s; }
.x:hover { background: var(--sand); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; height: 112px; object-fit: cover; background: var(--sand); }
.line h4 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; }
.line .meta { font-size: 12px; color: var(--mute); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; margin-top: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 32px; height: 32px; }
.qty button:hover { background: var(--sand); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.line .right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 14px; }
.link-btn { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--danger); }
.drawer-foot { padding: 22px 28px 28px; border-top: 1px solid var(--line); background: var(--ivory); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.total span:first-child { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.total strong { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.fine { font-size: 12px; color: var(--mute); margin-bottom: 16px; }
.cart-empty { text-align: center; padding: 80px 10px; color: var(--mute); }
.cart-empty .display { font-size: 34px; color: var(--ink); margin-bottom: 10px; }

.pay-steps { display: none; }
.pay-steps.on { display: block; }
.pay-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-step .n { font-family: var(--serif); font-size: 15px; color: var(--mute); margin-right: 10px; }
.pay-step a.btn { height: 40px; padding: 0 16px; font-size: 11px; }
.pay-step.done { opacity: 0.45; }
.pay-step.done a.btn { background: var(--ok); }

.modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
  pointer-events: none; opacity: 0; transition: opacity 0.35s var(--ease);
}
.modal.on { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(1080px, 100%); max-height: calc(100svh - 48px); overflow: auto;
  background: var(--paper); display: grid; grid-template-columns: 1.1fr 1fr; position: relative;
  transform: translateY(16px) scale(0.99); transition: transform 0.5s var(--ease);
}
.modal.on .modal-card { transform: none; }
.modal-card > .x { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--paper); }
.gallery { background: var(--sand); position: relative; }
.gallery .main { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; }
.thumbs { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.thumbs button { width: 52px; height: 70px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.6); opacity: 0.7; transition: opacity 0.2s; }
.thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--ivory); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.pinfo h2 { font-size: clamp(44px, 4.6vw, 66px); margin: 14px 0 6px; }
.pinfo .tagline { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-2); }
.pinfo .p-price { font-size: 22px; margin: 24px 0; font-weight: 400; }
.pinfo .p-price small { font-size: 12px; color: var(--mute); letter-spacing: 0.1em; margin-left: 10px; }
.pinfo .desc { color: var(--ink-2); font-size: 15px; margin-bottom: 26px; }
.sizes-label { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.size { min-width: 52px; height: 46px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; transition: all 0.2s var(--ease); }
.size:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.size.on { background: var(--ink); color: var(--ivory); box-shadow: none; }
.size-hint { color: var(--danger); font-size: 12px; min-height: 18px; margin: -16px 0 10px; }
.perks { margin-top: 26px; border-top: 1px solid var(--line); }
.perks li { list-style: none; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.perks li b { font-weight: 400; color: var(--ink); min-width: 110px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--ivory); padding: 14px 22px; font-size: 13px; letter-spacing: 0.04em;
  transition: all 0.4s var(--ease); pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Menu mobile ---------- */
.mnav { position: fixed; inset: 0; z-index: 75; background: var(--ivory); padding: 100px var(--pad) 40px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-100%); transition: transform 0.5s var(--ease); }
.mnav.on { transform: none; }
.mnav a { font-family: var(--serif); font-size: 44px; line-height: 1.2; }
.mnav .x { position: absolute; top: 18px; right: var(--pad); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .concept { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
}
@media (max-width: 820px) {
  .logo b { font-size: 20px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 72svh; }
  .editorial, .studio, .modal-card { grid-template-columns: 1fr; }
  .editorial img { min-height: 0; aspect-ratio: 4 / 5; }
  .univers-grid { grid-template-columns: 1fr; }
  .u-item, .u-item + .u-item { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal { padding: 0; align-items: end; }
  .modal-card { max-height: 94svh; }
  .gallery .main { aspect-ratio: 4 / 5; }
  .quick { transform: none; height: 40px; }
  .cart-btn .label { display: none; }
  .pinfo .p-price small { display: block; margin: 6px 0 0; }
}
@media (max-width: 520px) {
  .grid { gap: 36px 12px; }
  .card-info { flex-direction: column; gap: 2px; }
  .card-info h3 { font-size: 21px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-foot { gap: 22px; }
}
