/* ==========================================================================
   Maison Nanou — feuille de style
   ========================================================================== */

:root {
  --ivory: #faf6ef;
  --paper: #f3ece1;
  --sand: #e9dfcf;
  --line: #e0d4c2;
  --ink: #2b2522;
  --ink-soft: #4a403a;
  --muted: #85786d;
  --gold: #a8844c;
  --gold-soft: #c9a96e;
  --rose: #ead6cb;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --radius: 2px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 20px;
}

.section { padding: 120px 0; }
.section--paper { background: var(--paper); }

.section__head { max-width: 640px; margin-bottom: 64px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: clamp(36px, 5vw, 56px); }
.section__title em { font-style: italic; color: var(--gold); }
.section__lead { color: var(--ink-soft); font-size: 17px; margin-top: 20px; }

/* Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--block { width: 100%; }

.link {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

/* En-tête -------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo__mark { font-family: var(--serif); font-size: 30px; letter-spacing: .04em; margin: 0; }
.logo__sub { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.site-nav { display: flex; gap: 36px; }
.site-nav a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Accueil : hero --------------------------------------------------------- */
.hero { padding: 80px 0 120px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title { font-size: clamp(46px, 7vw, 92px); font-weight: 300; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__text { font-size: 18px; color: var(--ink-soft); max-width: 480px; margin: 28px 0 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--rose) 0%, var(--paper) 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.arch::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(168, 132, 76, .45);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.arch svg { width: 78%; height: auto; }

.hero__visual { position: relative; }
.hero__badge {
  position: absolute;
  left: -32px;
  bottom: 48px;
  background: var(--ivory);
  padding: 20px 24px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(43, 37, 34, .25);
}
.hero__badge strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.hero__badge span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Bandeau des villes ---------------------------------------------------- */
.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 22px 0;
}
.ribbon__track {
  display: inline-flex;
  gap: 48px;
  animation: ribbon 40s linear infinite;
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--ink-soft);
}
.ribbon__track span::after { content: '✦'; font-style: normal; font-size: 12px; color: var(--gold); margin-left: 48px; vertical-align: middle; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Anne ------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 96px;
  align-items: center;
}
.portrait { position: relative; }
.portrait .arch { background: linear-gradient(180deg, #e7dccb 0%, #d9c6ad 100%); }
.portrait__caption {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__text p { color: var(--ink-soft); font-size: 17px; }
.about__quote {
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  line-height: 1.3;
  border-left: 1px solid var(--gold);
  padding-left: 28px;
  margin: 40px 0;
  color: var(--ink);
}
.signature { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--gold); margin-top: 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stats strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; }
.stats span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Savoir-faire --------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step { background: var(--paper); padding: 40px 32px; }
.step__num { font-family: var(--serif); font-size: 48px; color: var(--gold); line-height: 1; }
.step h3 { font-size: 26px; margin: 24px 0 12px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* Ateliers ---------------------------------------------------------------- */
.cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.city {
  border: 1px solid var(--line);
  padding: 36px 28px;
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.city:hover { border-color: var(--gold); transform: translateY(-4px); }
.city__role { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.city h3 { font-size: 34px; margin: 14px 0 6px; }
.city__time { font-family: var(--serif); font-size: 20px; color: var(--muted); font-style: italic; }
.city p { color: var(--ink-soft); font-size: 15px; margin: 18px 0 0; }
.city--main { grid-column: span 2; background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.city--main p, .city--main .city__time { color: var(--sand); }

/* Matières -------------------------------------------------------------- */
.fabrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.fabric__swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 28px;
  max-width: 180px;
  border: 1px solid var(--line);
}
.fabric__swatch--coton {
  background:
    repeating-linear-gradient(45deg, rgba(216, 204, 186, .5) 0 1px, transparent 1px 6px),
    #f2ebdf;
}
.fabric__swatch--soie { background: linear-gradient(135deg, #f6e4dc 0%, #e8c6b9 40%, #fbeee8 55%, #ddb5a6 100%); }
.fabric__swatch--wax {
  background:
    radial-gradient(circle at center, #e6b347 0 5px, transparent 5.5px),
    radial-gradient(circle at center, transparent 0 9px, #1f3658 9.5px 14px, transparent 14.5px),
    #b9583a;
  background-size: 44px 44px;
}
.fabric h3 { font-size: 30px; margin-bottom: 10px; }
.fabric p { color: var(--ink-soft); margin: 0; }

/* Rendez-vous ------------------------------------------------------------ */
.cta {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 120px 0;
}
.cta .section__title { color: var(--ivory); }
.cta p { color: var(--sand); max-width: 560px; margin: 24px auto 40px; font-size: 17px; }
.cta .btn { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.cta .btn:hover { background: var(--gold); color: var(--ivory); border-color: var(--gold); }

/* Cartes produit --------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { text-decoration: none; display: block; }
.card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  overflow: hidden;
}
.card__img {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12%;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.card__img svg { width: 100%; height: auto; }
.card__img--alt { opacity: 0; background: var(--rose); }
.card:hover .card__img--alt { opacity: 1; }
.card:hover .card__img { transform: scale(1.03); }
.card__tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--ivory);
  padding: 6px 10px;
}
.card__body { padding-top: 18px; }
.card__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card__name { font-size: 24px; margin: 6px 0 4px; }
.card__price { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Boutique ----------------------------------------------------------------- */
.page-hero { padding: 80px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 300; }
.page-hero p { color: var(--ink-soft); max-width: 560px; margin: 20px auto 0; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 48px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.toolbar__right { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%232b2522'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding: 10px 40px 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.empty { text-align: center; color: var(--muted); padding: 80px 0; grid-column: 1 / -1; }

/* Page produit ---------------------------------------------------------- */
.breadcrumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 32px 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.product {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: start;
  padding-bottom: 120px;
}
.product__stage {
  position: sticky;
  top: 108px;
  background: var(--paper);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 10%;
}
.product__stage svg { width: 100%; height: auto; transition: opacity .25s var(--ease); }
.product__stage-note {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.product__cat { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.product__name { font-size: clamp(40px, 5vw, 58px); font-weight: 300; margin: 10px 0 14px; }
.product__price { font-family: var(--serif); font-size: 32px; }
.product__price small { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-left: 8px; }
.product__desc { color: var(--ink-soft); font-size: 16px; margin: 20px 0 8px; }

.opt { border-top: 1px solid var(--line); padding: 28px 0; }
.opt__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.opt__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; margin: 0; }
.opt__value { font-size: 14px; color: var(--muted); }
.opt__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; min-height: 1.4em; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.choice:hover { border-color: var(--ink-soft); }
.choice[aria-checked="true"] { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.choice__price { color: var(--muted); font-size: 12px; }

.swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
  flex: none;
}
.swatch--coton { background: repeating-linear-gradient(45deg, #ddd2c1 0 1px, #f2ebdf 1px 4px); }
.swatch--soie { background: linear-gradient(135deg, #f6e4dc, #e1b9a9 50%, #f8e9e2); }
.swatch--wax { background: radial-gradient(circle, #e6b347 0 3px, #1f3658 3.5px 6px, #b9583a 6.5px); }
.swatch--or { background: radial-gradient(circle at 35% 30%, #fff4c7, #e2bc5c 45%, #9c7124); }
.swatch--argent { background: radial-gradient(circle at 35% 30%, #fff, #cfd3d8 50%, #7e858d); }
.swatch--aucun { background: var(--paper); }
.swatch--fleurs { background: radial-gradient(circle, #e9c46a 0 2.5px, #cf9493 3px 7px, var(--paper) 7.5px); }
.swatch--oursons { background: radial-gradient(circle at 50% 58%, #a9825f 0 6px, transparent 6.5px), radial-gradient(circle at 28% 30%, #a9825f 0 3px, transparent 3.5px), radial-gradient(circle at 72% 30%, #a9825f 0 3px, transparent 3.5px), var(--paper); }
.swatch--plantes { background: radial-gradient(ellipse 3px 6px at 38% 45%, #879a77 98%, transparent), radial-gradient(ellipse 3px 6px at 62% 55%, #879a77 98%, transparent), var(--paper); }

/* Interrupteur (col) */
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
}
.switch__track {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: var(--sand);
  position: relative;
  flex: none;
  transition: background .25s var(--ease);
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] { border-color: var(--ink); }
.switch[aria-checked="true"] .switch__track { background: var(--gold); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(20px); }
.switch__text strong { display: block; font-weight: 400; font-size: 15px; }
.switch__text span { font-size: 13px; color: var(--muted); }

.summary {
  background: var(--paper);
  padding: 28px;
  margin: 8px 0 24px;
}
.summary h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; margin-bottom: 16px; }
.summary ul { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.summary li.is-off { color: var(--muted); text-decoration: line-through; }
.summary__total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  font-family: var(--serif);
  font-size: 24px;
}

.product__actions { display: grid; gap: 12px; }

.reassure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.reassure strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--ink); }

details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '+'; font-size: 18px; line-height: 1; }
details.acc[open] summary::after { content: '–'; }
details.acc .acc__body { padding-bottom: 20px; color: var(--ink-soft); font-size: 15px; }
details.acc ul { margin: 0; padding-left: 18px; }

.accordions { margin-top: 40px; }

/* Pied de page ---------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 32px; background: var(--paper); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; margin: 8px 0 14px; }
.site-footer p { margin: 0; font-size: 14px; }
.site-footer .logo__mark { margin-bottom: 12px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Notification -------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--ivory);
  padding: 16px 28px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .35s var(--ease);
  z-index: 100;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Apparition au défilement -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ribbon__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .steps, .cities { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 56px; }
}

@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 24px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-header__inner { height: 72px; }
  .logo__mark { font-size: 26px; }

  .hero { padding: 48px 0 80px; }
  .hero__grid, .about__grid, .product { grid-template-columns: 1fr; gap: 48px; }
  .hero__badge { position: static; margin: -40px auto 0; width: max-content; position: relative; }
  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .fabrics { grid-template-columns: 1fr; gap: 48px; }
  .product__stage { position: relative; top: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .steps, .cities { grid-template-columns: 1fr; }
  .city--main { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stats strong { font-size: 30px; }
  .card__name { font-size: 20px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; gap: 8px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__right { justify-content: space-between; }
  .reassure { grid-template-columns: 1fr; }
}

/* Panier ------------------------------------------------------------------ */
html.is-locked { overflow: hidden; }

.site-header__inner { gap: 24px; }
.site-nav { margin-left: auto; }

.cart-button {
  order: 3;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-right: -10px;
  transition: color .25s var(--ease);
}
.cart-button:hover { color: var(--gold); }
.cart-button__count {
  position: absolute;
  top: 6px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.cart-button__count[hidden] { display: none; }

.cart { position: fixed; inset: 0; z-index: 90; }
.cart[hidden] { display: none; }
.cart__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 37, 34, .35);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.cart__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  box-shadow: -20px 0 60px -30px rgba(43, 37, 34, .4);
}
.cart.is-open .cart__overlay { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }

.cart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.cart__head h2 { font-size: 30px; }
.cart__head h2 span { font-size: 20px; color: var(--muted); }
.cart__close {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  margin-right: -10px;
}

.cart__body { flex: 1; overflow-y: auto; padding: 0 28px; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line__img {
  display: grid;
  place-items: center;
  background: var(--paper);
  aspect-ratio: 4 / 5;
  padding: 10px;
}
.cart-line__img svg { width: 100%; height: auto; }
.cart-line__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cart-line__name { font-family: var(--serif); font-size: 21px; text-decoration: none; line-height: 1.2; }
.cart-line__name:hover { color: var(--gold); }
.cart-line__price { font-family: var(--serif); font-size: 19px; white-space: nowrap; }
.cart-line__meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cart-line__actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.cart-line__link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  cursor: pointer;
}
.cart-line__link:hover { color: var(--ink); text-decoration-color: var(--gold); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button {
  width: 32px; height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}
.qty button:hover:not(:disabled) { background: var(--paper); }
.qty button:disabled { color: var(--line); cursor: default; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }

.cart__foot {
  border-top: 1px solid var(--line);
  padding: 24px 28px 28px;
  background: var(--paper);
}
.cart__foot[hidden] { display: none; }
.cart__total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 26px; }
.cart__note { font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.cart__continue {
  display: block;
  margin: 18px auto 0;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  cursor: pointer;
}

.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty__title { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; }
.cart-empty .btn { margin-top: 28px; }

@media (max-width: 860px) {
  .cart-button { order: 2; margin-right: 0; margin-left: auto; }
  .nav-toggle { order: 3; margin-right: -10px; }
}

@media (max-width: 540px) {
  .cart__head, .cart__foot { padding-left: 16px; padding-right: 16px; }
  .cart__body { padding: 0 16px; }
  .cart-line { grid-template-columns: 76px 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cart__panel, .cart__overlay { transition: none; }
}

@media (max-width: 420px) {
  .logo__sub { letter-spacing: .14em; font-size: 9px; white-space: nowrap; }
}
