:root {
  --noir: #000; --blanc: #fff; --bordeaux: #9B2226; --bordeaux-fonce: #7A181C;
  --pierre: #D9D3C7; --fond: #E6E0D6; --gris: #5C5A55; --pad: clamp(16px, 4vw, 56px);
  --titre: "Caprasimo", Georgia, serif; --texte: "Schibsted Grotesk", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--blanc); color: var(--noir); font: 400 1.0625rem/1.5 var(--texte); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
h2 { font: 400 clamp(2rem, 5vw, 3.75rem)/1.05 var(--titre); color: var(--bordeaux); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--blanc); padding: 12px; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--bordeaux); color: var(--blanc); font-weight: 700; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--bordeaux-fonce); }
.btn-wide { width: 100%; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--pad); background: var(--blanc); border-bottom: 1px solid var(--noir); }
.top-logo img { height: 40px; width: auto; }
.top-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.top-nav a:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 6px; }
.cart-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 18px; border: 1px solid var(--noir); border-radius: 999px; background: var(--blanc); font-weight: 500; transition: background .15s, color .15s; }
.cart-open:hover { background: var(--noir); color: var(--blanc); }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--bordeaux); color: var(--blanc); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Ouverture : le logo sur fond blanc, puis la photo */
.hero { display: flex; flex-direction: column; }
.hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: clamp(20px, 3vw, 40px) var(--pad); }
.hero-logo { width: clamp(240px, 30vw, 460px); }
.hero-logo img { width: 100%; }
.hero-intro { display: grid; gap: 20px; justify-items: start; max-width: 30ch; padding-bottom: 6px; }
.hero-intro p { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.35; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 82%; }

/* Collection */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--pad) clamp(20px, 3vw, 36px); }
.section-head p { color: var(--gris); }
.collection { padding: clamp(48px, 7vw, 104px) 0 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 28px); padding: 0 var(--pad); }
.card-link { display: block; text-decoration: none; }
.card-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--fond); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card-link:hover .card-photo img { transform: scale(1.04); }
.card-name { display: block; margin-top: 14px; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.card-link:hover .card-name { text-decoration: underline; text-underline-offset: 4px; }
.card-price { display: block; margin-top: 2px; color: var(--gris); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card-photo img { transition: none; } }

/* Lookbook */
.lookbook { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, 1.4vw, 20px); padding: clamp(48px, 7vw, 104px) var(--pad); }
.lookbook h2 { grid-column: 1 / -1; padding-bottom: 16px; }
.look img { width: 100%; height: 100%; object-fit: cover; }
.look-a { grid-column: 1 / 9; } .look-b { grid-column: 9 / 13; }
.look-c { grid-column: 1 / 6; } .look-d { grid-column: 6 / 13; }

/* Mentality */
.mentality { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 6vw, 96px); max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--pad); border-top: 1px solid var(--noir); }
.mentality img { width: 100%; }
.mentality p { margin-top: 16px; max-width: 34ch; font-size: 1.25rem; }

/* Pied de page */
.foot { padding: clamp(32px, 5vw, 56px) var(--pad) 24px; background: var(--noir); color: var(--blanc); }
.foot-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-bottom: clamp(24px, 4vw, 40px); }
.foot-main img { width: 132px; }
.foot nav, .foot ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 6px; }
.foot :focus-visible { outline-color: var(--blanc); }
.foot-legal { padding-top: 20px; border-top: 1px solid #3a3a3a; color: #BDB8AE; font-size: .9375rem; }

/* Fenêtres */
.sheet { width: min(100%, 480px); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0 var(--pad) 32px; border: 0; border-left: 1px solid var(--noir); overflow-y: auto; }
.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet-product { width: min(100%, 980px); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; background: var(--blanc); }
.sheet-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.close { min-height: 44px; padding: 8px 0; background: none; border: 0; font-weight: 500; text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--fond); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 72px; height: 90px; padding: 0; border: 1px solid transparent; background: none; }
.thumbs button[aria-current] { border: 2px solid var(--bordeaux); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: grid; gap: 16px; }
.buy-price { font-size: 1.25rem; font-weight: 700; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.sizes legend, .qty-field, .field label { padding: 0 0 6px; font-weight: 700; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 12px; border: 1px solid var(--noir); cursor: pointer; }
.sizes input:checked + span { background: var(--noir); color: var(--blanc); }
.sizes input:focus-visible + span { outline: 3px solid var(--bordeaux); outline-offset: 3px; }
.input { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--noir); border-radius: 0; background: var(--blanc); font-size: 1rem; }
.qty-field { margin-bottom: -16px; }
.qty-input { width: 96px; }
.error { color: var(--bordeaux); font-size: .9375rem; }
.empty { display: grid; gap: 16px; justify-items: start; padding-top: 16px; }

.line { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--pierre); }
.line img { width: 88px; height: 110px; object-fit: cover; background: var(--fond); }
.line-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.line-actions button { min-width: 44px; min-height: 44px; border: 1px solid var(--noir); background: var(--blanc); }
.line-actions .link { min-width: 0; margin-left: auto; border: 0; text-decoration: underline; }
.total { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--noir); font-size: 1.25rem; }
.note { padding: 14px 0; border-top: 1px solid var(--noir); color: var(--gris); }
.order { display: grid; gap: 14px; }
.field label { display: block; }

@media (max-width: 760px) {
  .hero-head { flex-direction: column; align-items: center; gap: 20px; padding: 24px var(--pad) 28px; text-align: center; }
  .hero-logo { width: min(64vw, 300px); }
  .hero-intro { justify-items: center; padding: 0; }
  .hero-photo img { height: auto; aspect-ratio: 5 / 6; object-position: center; }
  .top-nav a { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .look-a, .look-b, .look-c, .look-d { grid-column: 1 / -1; }
  .mentality { grid-template-columns: 1fr; text-align: center; }
  .mentality img { width: min(80%, 320px); margin: 0 auto; }
  .mentality p { margin-inline: auto; }
  .foot-main { flex-direction: column; align-items: flex-start; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .sheet { border-left: 0; }
}
