:root {
  --ink: #111111;
  --burgundy: #4e1721;
  --paper: #ffffff;
  --sand: #f5f0ea;
  --line: #e2d9cf;
  --muted: #6b625c;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
section { scroll-margin-top: 72px; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 132px; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-header nav a:hover,
.site-header nav a:focus-visible { color: var(--burgundy); border-color: var(--burgundy); }

/* Hero */
.hero { overflow: hidden; }
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 56px) clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero h1 {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.7vw, 4.125rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.hero h1 em { display: block; font-weight: 400; color: var(--burgundy); }
.hero-lead { margin: 0 0 36px; max-width: 44ch; font-size: 1.0625rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-link {
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  transition: color .2s, border-color .2s;
}
.hero-link:hover, .hero-link:focus-visible { color: var(--burgundy); border-color: var(--burgundy); }
.hero-facts {
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 4vw, 48px);
}
.hero-facts div { min-width: 0; }
.hero-facts dt { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }

.hero-visual { position: relative; padding: 28px 28px 64px 64px; }
.hero-visual::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 68%;
  height: 74%;
  background: var(--burgundy);
}
.hero-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-main { position: relative; display: block; }
.hero-side {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  border: 8px solid var(--paper);
  box-shadow: 0 18px 40px rgba(40, 20, 15, .18);
  transition: transform .3s;
}
.hero-side:hover, .hero-side:focus-visible { transform: translateY(-4px); }
.hero-tag {
  position: absolute;
  right: 0;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(40, 20, 15, .18);
  transition: transform .3s;
}
.hero-tag:hover, .hero-tag:focus-visible { transform: translateY(-4px); }
.hero-tag span { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-tag strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.hero-tag b { color: var(--burgundy); font-size: .9375rem; font-variant-numeric: tabular-nums; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-copy > *, .hero-visual { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-visual { animation-delay: .15s; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 4.125rem); }
  .hero-visual { width: 100%; max-width: 600px; margin: 0 auto; padding: 20px 20px 52px 44px; }
  .hero-tag { bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual { animation: none; }
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

/* Collections */
.collections {
  background: var(--sand);
  padding: clamp(64px, 10vw, 112px) clamp(16px, 5vw, 56px);
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.cards {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 28px 34px;
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--burgundy); transform: translateY(-4px); }
.card svg {
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  display: block;
  fill: none;
  stroke: var(--burgundy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.2;
}
.card p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Esprit */
.esprit {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) clamp(16px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px clamp(32px, 6vw, 88px);
}
.esprit-col { border-top: 2px solid var(--ink); padding-top: 24px; }
.esprit-col + .esprit-col { border-color: var(--burgundy); }
.esprit-col h2 { font-style: italic; }
.esprit-col + .esprit-col h2 { color: var(--burgundy); }
.esprit-col p:last-child { margin: 0; color: var(--muted); max-width: 44ch; }

/* Tanger */
.tanger {
  position: relative;
  min-height: clamp(440px, 52vw, 680px);
  display: flex;
  align-items: flex-end;
  background: var(--burgundy);
  color: #fff;
  overflow: hidden;
}
.tanger-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.tanger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 10, 16, .96) 0%, rgba(40, 10, 16, .86) 30%, rgba(40, 10, 16, .45) 55%, rgba(40, 10, 16, 0) 80%);
}
.tanger-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 5vw, 56px);
}
.tanger h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 10px; }
.tanger .eyebrow { color: #f0d9dc; }
.tanger-text p:last-child { margin: 0; max-width: 46ch; color: #f6ecee; }
.tanger-credit {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 8px;
  margin: 0;
  font-size: .6875rem;
  color: rgba(255, 255, 255, .78);
}
.tanger-credit a { color: inherit; }

/* Footer */
.site-footer { padding: 48px 16px 36px; text-align: center; }
.site-footer img { width: 150px; margin: 0 auto 10px; }
.slogan-small { margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-size: 1.125rem; }
.legal { margin: 0; font-size: .8125rem; color: var(--muted); }

@media (max-width: 560px) {
  .brand img { width: 116px; }
}

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

/* ---------- Boutique ---------- */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s, transform .25s;
}
.product-card:hover, .product-card:focus-visible { border-color: var(--burgundy); transform: translateY(-4px); }
.product-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; }
.product-card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.product-card-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.price { font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.price-pending { font-weight: 500; font-size: .8125rem; color: var(--muted); }
.link-cta {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}
.cards-2 { max-width: 760px; }

/* Page produit */
.product {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 5vw, 56px) clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.product-media img { width: 100%; }
.product-info h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.08;
  text-wrap: balance;
}
.product-info .eyebrow a { color: inherit; text-decoration: none; }
.product-info .eyebrow a::before { content: "← "; }
.price-lg { margin: 0 0 18px; font-size: 1.5rem; color: var(--burgundy); }
.price-lg.price-pending { font-size: .9375rem; color: var(--muted); }
.product-desc { margin: 0 0 32px; color: var(--muted); max-width: 52ch; }

.order-form { border-top: 2px solid var(--ink); padding-top: 24px; scroll-margin-top: 84px; }
.order-form h2 { font-size: 1.75rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; min-width: 0; flex: 1; }
.field-row { display: flex; gap: 14px; }
.field-qty { flex: 0 0 104px; }
.field label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .admin select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #b9aea4;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; border-color: var(--burgundy); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin: 6px 0 0; font-size: .8125rem; color: #b3261e; }
.form-error { margin: 0 0 18px; padding: 12px 14px; background: #fbeceb; color: #8c1d18; font-size: .875rem; }
.form-hint { margin: 14px 0 0; font-size: .8125rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-block { display: block; width: 100%; margin-top: 8px; padding: 17px 30px; text-align: center; }

.notice { max-width: 620px; margin: 0 auto; padding: clamp(64px, 12vw, 128px) 16px; text-align: center; }
.notice h1, .notice h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 20px; }
.notice p { margin: 0 0 12px; color: var(--muted); }
.notice strong { color: var(--ink); }
.notice .btn { margin-top: 24px; }

@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .field-row { flex-direction: column; gap: 0; }
  .field-qty { flex: 1; }
}

/* ---------- Admin ---------- */
.admin-main { padding: 32px clamp(16px, 4vw, 40px) 64px; }
.admin-main h1 { font-family: var(--serif); font-weight: 500; font-size: 2.25rem; margin: 0 0 4px; }
.admin-count { margin: 0 0 24px; color: var(--muted); font-size: .875rem; }
.admin-empty { padding: 48px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.admin table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 900px; }
.admin th, .admin td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin th { background: var(--sand); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.admin tr:last-child td { border-bottom: 0; }
.admin td a { color: var(--burgundy); }
.admin td em { color: var(--muted); }
.admin select { height: 38px; padding: 0 8px; min-width: 122px; }
.admin tr.st-nouvelle td:first-child { box-shadow: inset 3px 0 0 var(--burgundy); font-weight: 800; }
.admin tr.st-annulee td { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Menu mobile ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, background .25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-header { padding-top: 8px; padding-bottom: 8px; }
  .site-header .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(40, 20, 15, .10);
  }
  .site-header .nav-menu.open { display: flex; animation: rise .25s ease both; }
  .site-header .nav-menu a {
    padding: 16px;
    font-size: 1rem;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }
}
