/* Tyler Gamme */
:root {
  --noir: #000;
  --blanc: #fff;
  --studio: #eef0f5;      /* le fond blanc froid du shooting */
  --magenta: #a930b9;     /* la toile du tailleur */
  --lilas: #dccbf5;       /* le trait du monogramme sur la toile */
  --bleu: #2440c9;        /* l'écrin et le foulard */
  --gris: #5c5f6a;
  --display: 'Syne', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1360px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--studio); color: var(--noir); font: 400 1.0625rem/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 9vw, 5.75rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 3rem); }
p { margin: 0 0 1em; }
mark { background: var(--lilas); padding: 0 .2em; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blanc); padding: 12px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

.logo { display: block; width: 100%; aspect-ratio: 1200 / 240; background: currentColor; -webkit-mask: url(/img/logo.png) left center / contain no-repeat; mask: url(/img/logo.png) left center / contain no-repeat; }

/* Bandeau + en-tête */
.announce { display: block; background: var(--noir); color: var(--blanc); text-align: center; font-size: .875rem; font-weight: 500; padding: 9px var(--pad); text-decoration: none; }
.announce:hover { background: var(--magenta); }
.header { position: sticky; top: 0; z-index: 10; background: var(--studio); border-bottom: 1px solid var(--noir); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 12px var(--pad) 0; }
.brand { width: min(210px, 52vw); text-decoration: none; }
.cart-link { grid-row: 1; grid-column: 2; }
.nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 22px; overflow-x: auto; }
.nav a, .cart-link { text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 10px 0; white-space: nowrap; }
.nav a { border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--magenta); }
.cart-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em; margin-left: 4px; background: var(--noir); color: var(--blanc); font-size: .8125rem; font-weight: 600; border-radius: 99px; }
@media (min-width: 760px) {
  .header { grid-template-columns: 240px 1fr auto; padding-top: 0; gap: 32px; }
  .brand { width: 240px; }
  .cart-link { grid-column: 3; }
  .nav { grid-column: 2; grid-row: 1; justify-content: center; gap: 36px; }
  .nav a { padding: 22px 0 19px; }
}

/* Boutons et liens */
.btn { display: inline-block; appearance: none; border: 2px solid var(--noir); background: var(--noir); color: var(--blanc); font: 600 1rem/1.2 var(--text); padding: 16px 26px; text-decoration: none; text-align: center; cursor: pointer; border-radius: 0; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--magenta); border-color: var(--magenta); }
.btn[disabled] { background: transparent; color: var(--gris); border-color: #b9bcc6; cursor: not-allowed; }
.btn-light { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.btn-light:hover { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.btn-wide { width: 100%; }
.link, .link-light, .prose a:not(.btn), .ship-note a, .added a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover, .prose a:not(.btn):hover, .ship-note a:hover, .added a:hover { color: var(--magenta); }
.link-light { color: var(--blanc); }
.link-light:hover { text-decoration-color: var(--lilas); color: var(--lilas); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 1.5rem; }

/* Motif monogramme : la toile du tailleur */
.hero, .about { position: relative; isolation: isolate; }
.hero::before, .about::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--lilas); opacity: .2; -webkit-mask: url(/img/pattern.png) 0 0 / 180px auto repeat; mask: url(/img/pattern.png) 0 0 / 180px auto repeat; }

/* Accueil : hero */
.hero { background: var(--magenta); color: var(--blanc); display: grid; }
.hero-media { order: -1; background: var(--studio); }
.hero-media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.hero-text { padding: clamp(28px, 6vw, 72px) var(--pad) clamp(36px, 6vw, 72px); align-self: end; }
.hero-text p { font-size: 1.125rem; max-width: 34ch; margin-top: 1.25rem; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 54fr 46fr; min-height: min(86vh, 860px); }
  .hero-media { order: 0; }
  .hero-media img { aspect-ratio: auto; position: absolute; inset: 0; }
  .hero-media { position: relative; }
  .hero-text h1 { font-size: clamp(3.5rem, 6.6vw, 6.5rem); }
}

/* Accueil : le collier en vente */
.feature { display: grid; gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 8vw, 110px) var(--pad); max-width: var(--max); margin: 0 auto; align-items: center; }
.feature-video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--noir); max-height: 82vh; }
.feature-text > p { max-width: 46ch; }
.price { font: 700 1.5rem/1 var(--display); margin: .75rem 0 1rem; }
.stock-flag, .out-flag { font-weight: 600; font-size: .9375rem; margin: 0 0 .75rem; }
.stock-flag { color: var(--bleu); }
.stock-flag::before { content: ''; display: inline-block; width: .6em; height: .6em; background: currentColor; border-radius: 50%; margin-right: .5em; }
.out-flag { color: var(--gris); margin-top: .75rem; }
.added { margin: 1rem 0 0; padding: 12px 14px; background: var(--blanc); border-left: 4px solid var(--bleu); }
.feature-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2rem; max-width: 460px; }
.feature-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* Sections et grilles */
.section, .looks { padding: clamp(32px, 6vw, 80px) var(--pad); max-width: var(--max); margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(20px, 3vw, 36px); }
.section-head p { margin: 0; max-width: 44ch; color: var(--gris); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; } }
.card { display: block; text-decoration: none; }
.card-media { position: relative; display: block; background: var(--blanc); overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.badge { position: absolute; left: 0; bottom: 0; background: var(--noir); color: var(--blanc); font-size: .8125rem; font-weight: 600; padding: 6px 10px; }
.card-name { display: block; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.card-price { display: block; font-size: .9375rem; }
.card.is-out .card-price { color: var(--gris); }

/* Shooting (défilement horizontal) */
.looks { max-width: none; padding-right: 0; }
.looks .section-head { padding-right: var(--pad); }
.looks-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--pad); scrollbar-width: thin; }
.looks-row a { flex: 0 0 min(70vw, 400px); scroll-snap-align: start; }
.looks-row img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* La marque (bandeau noir) */
.about { background: var(--noir); color: var(--blanc); }
.about::before { background: var(--blanc); opacity: .09; }
.about-in { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 10vw, 130px) var(--pad); }
.about-in h2 { font-size: clamp(2rem, 6vw, 4.25rem); max-width: 14ch; }
.about-in p { max-width: 52ch; margin: 1.5rem 0; font-size: 1.125rem; }

/* Pages intérieures */
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--pad) clamp(8px, 2vw, 24px); }
.page-head p { max-width: 56ch; margin-top: 1.25rem; font-size: 1.125rem; }
.page-head.center { text-align: center; padding-bottom: clamp(56px, 10vw, 120px); }
.page-head.center p { margin-left: auto; margin-right: auto; }
.page-head.center h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); }
.crumbs { max-width: var(--max); margin: 0 auto; padding: 16px var(--pad) 0; font-size: .875rem; color: var(--gris); }
.crumbs a { text-underline-offset: 3px; }

/* Fiche produit */
.product { display: grid; gap: clamp(20px, 4vw, 64px); max-width: var(--max); margin: 0 auto; padding: 16px 0 clamp(24px, 4vw, 48px); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--blanc); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; padding: 8px var(--pad) 0; overflow-x: auto; }
.gallery-thumbs a { flex: 0 0 64px; border: 2px solid transparent; }
.gallery-thumbs a[aria-current] { border-color: var(--noir); }
.gallery-thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-info { padding: 0 var(--pad); }
.product-info h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.product-info h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 2rem 0 .75rem; }
.product-cat { font-size: .9375rem; color: var(--gris); margin-bottom: .5rem; }
.product-cat a { text-decoration: none; }
.product-desc { max-width: 50ch; margin-top: 1rem; }
.buy { display: grid; gap: 10px; margin-top: 1.5rem; max-width: 420px; }
.buy label { font-weight: 600; font-size: .9375rem; }
.product-info > .btn-wide { max-width: 420px; margin-top: 1rem; }
.qty { display: inline-grid; grid-template-columns: 48px 56px 48px; border: 2px solid var(--noir); width: max-content; background: var(--blanc); }
.qty button { appearance: none; border: 0; background: none; font: 500 1.25rem/1 var(--text); height: 48px; cursor: pointer; color: var(--noir); }
.qty button:hover { background: var(--lilas); }
.qty input { border: 0; width: 100%; text-align: center; font: 600 1rem var(--text); background: none; -moz-appearance: textfield; appearance: textfield; color: var(--noir); border-radius: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ship-note { font-size: .9375rem; color: var(--gris); margin-top: 1rem; max-width: 46ch; }
.ship-note a { color: var(--noir); }
.details { margin: 0; padding: 0; list-style: none; max-width: 420px; border-top: 1px solid var(--noir); }
.details li { padding: 10px 0; border-bottom: 1px solid #c5c8d2; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); padding-left: var(--pad); padding-right: var(--pad); align-items: start; }
  .gallery-thumbs { padding-left: 0; }
  .product-info { padding: 8px 0 0; position: sticky; top: 90px; }
}

/* Panier */
.cart { max-width: 860px; margin: 0 auto; padding: 8px var(--pad) clamp(56px, 10vw, 120px); }
.cart-empty { font-size: 1.125rem; }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--noir); align-items: start; }
.cart-line img { width: 88px; aspect-ratio: 1; object-fit: cover; grid-row: span 2; }
.cart-line-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.cart-line-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-line .qty { grid-template-columns: 40px 44px 40px; }
.cart-line .qty button { height: 40px; }
.remove { appearance: none; border: 0; background: none; font: 500 .9375rem var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--gris); padding: 8px 0; }
.remove:hover { color: var(--noir); }
.cart-sum { border-top: 1px solid var(--noir); padding-top: 16px; margin: 0; }
.cart-sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-sum dt, .cart-sum dd { margin: 0; }
.cart-sum .total { font-weight: 700; font-size: 1.25rem; padding-top: 12px; }
.cart-pay { margin-top: 20px; }
.cart-error { margin-top: 12px; padding: 12px 14px; background: var(--blanc); border-left: 4px solid #c8102e; }
.cart-note { font-size: .9375rem; color: var(--gris); margin-top: 12px; }

/* Lookbook */
.lookbook { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) clamp(40px, 8vw, 96px); columns: 1; column-gap: 16px; }
@media (min-width: 600px) { .lookbook { columns: 2; } }
@media (min-width: 1000px) { .lookbook { columns: 3; } }
.lookbook figure { margin: 0 0 24px; break-inside: avoid; }
.lookbook img { width: 100%; }
.lookbook figcaption { font-size: .9375rem; padding-top: 8px; }
.lookbook figcaption a { text-underline-offset: 3px; }

/* Textes longs */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); margin: 2.25rem 0 .9rem; letter-spacing: -0.015em; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.legal { margin: 0 auto; padding: 24px var(--pad) clamp(56px, 10vw, 120px); max-width: calc(68ch + 2 * var(--pad)); margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.story { display: grid; gap: clamp(24px, 5vw, 72px); max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) clamp(56px, 10vw, 120px); align-items: start; }
.story-media img { width: 100%; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .story-media { position: sticky; top: 90px; } }

/* Pied de page */
.footer { background: var(--noir); color: var(--blanc); border-top: 1px solid rgba(255, 255, 255, .25); }
.footer-in { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) 24px; display: grid; gap: 36px; }
.footer .logo { width: min(260px, 70vw); margin-bottom: 14px; }
.footer h2 { font: 600 1rem/1.3 var(--text); letter-spacing: 0; margin-bottom: 10px; color: var(--lilas); }
.footer nav a { display: block; padding: 5px 0; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-brand p { margin: 0 0 .4em; }
.footer-note { max-width: var(--max); margin: 0 auto; padding: 16px var(--pad) 28px; font-size: .875rem; color: #b8bac4; }
@media (min-width: 760px) { .footer-in { grid-template-columns: 2fr 1fr 1fr; } }

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