/* Savourée · savouree.ci
   Direction "premium" : crème partout, cobalt en accent (logo, boutons, détails).
   Couleurs et typo : brand/tokens.json */
:root {
  --paper: #FBF8F2;      /* fond principal */
  --cream: #F6EFE2;      /* crème de la marque */
  --sand: #EFE6D6;       /* fond des visuels produits */
  --ink: #1B2559;
  --muted: #6B5F55;
  --cobalt: #1F3BE8;
  --hair: rgba(27, 37, 89, .16);

  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; scroll-margin-top: 84px; }

/* ---------- Typo ---------- */
.eyebrow {
  margin: 0 0 20px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
h1, .h2 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -.025em;
}
h1 { margin: 0 0 22px; font-size: clamp(40px, 11vw, 88px); line-height: 1.02; }
.h2 { margin: 0 0 18px; font-size: clamp(32px, 7.5vw, 56px); line-height: 1.04; }
h1 em, .h2 em { font-style: italic; }
.lead { margin: 0 0 32px; max-width: 30em; color: var(--muted); font-size: 17px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 10px 28px;
  border: 0; border-radius: 2px;
  background: var(--cobalt); color: var(--cream);
  font: 500 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: #1730c9; }
.btn--block { width: 100%; }
.link {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 3px;
}
.link:hover { border-color: var(--ink); }

/* ---------- Barre du haut ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 242, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.top__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 68px;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.top__logo { justify-self: center; }
.top__logo img { height: 26px; width: auto; }
.top__side { display: flex; gap: 32px; }
.top__side--right { justify-content: flex-end; }
.top__side a { text-decoration: none; }
.top .hide-m { display: none; }
.top__cta { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---------- 1. Hero ---------- */
.hero { padding: 44px 0 0; }
.hero__grid { display: grid; gap: 44px; }
.hero__sub { margin: 0 0 32px; max-width: 26em; color: var(--muted); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* Les six canettes ensemble */
.lineup {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 18% 4% 11%;
  background: var(--sand);
  overflow: hidden;
}
.lineup .can { width: 21%; flex: none; margin: 0 -2.2%; }
.lineup .can:nth-child(1), .lineup .can:nth-child(6) { z-index: 1; transform: translateY(-6%) scale(.9); }
.lineup .can:nth-child(2), .lineup .can:nth-child(5) { z-index: 2; transform: translateY(-2%) scale(.96); }
.lineup .can:nth-child(3), .lineup .can:nth-child(4) { z-index: 3; }

.strip {
  list-style: none; margin: 56px 0 0; padding: 18px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}

/* ---------- La canette (illustration en attendant les photos) ---------- */
.can {
  position: relative;
  aspect-ratio: 52 / 86;
  border-radius: 15% / 9%;
  background:
    /* reflets du plastique transparent */
    linear-gradient(90deg, rgba(0,0,0,.16) 0%, rgba(255,255,255,0) 14%, rgba(255,255,255,.32) 24%, rgba(255,255,255,0) 34%, rgba(255,255,255,0) 80%, rgba(255,255,255,.18) 88%, rgba(0,0,0,.18) 100%),
    /* haut de la canette, au-dessus du jus */
    linear-gradient(180deg, rgba(232,236,240,.9) 0%, rgba(214,220,226,.85) 7%, transparent 7.2%),
    var(--juice);
  box-shadow: 0 22px 28px -18px rgba(27, 37, 89, .45);
}
.can::before { /* couvercle */
  content: ""; position: absolute; left: 7%; right: 7%; top: -4.5%;
  height: 6%; border-radius: 45% / 55%;
  background: linear-gradient(90deg, #8f96a2, #eef0f3 32%, #c2c7cf 62%, #848b97);
}
.can::after { /* ombre au sol */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -5%;
  height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(27,37,89,.28), transparent);
  z-index: -1;
}
.can img { position: absolute; top: 12%; left: 9%; width: 82%; height: 82%; object-fit: contain; }

/* ---------- 2. La gamme ---------- */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.head .h2 { margin: 0; }
.head__note { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 40px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product { display: flex; flex-direction: column; }
.product__stage {
  aspect-ratio: 4 / 5;
  background: var(--sand);
  display: grid; place-items: center;
  padding-top: 6%;
}
.product__stage .can { width: 44%; transition: transform .35s ease; }
.product:hover .product__stage .can { transform: translateY(-4px); }
.product__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.product__body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.product__row { display: flex; flex-direction: column; gap: 2px; }
.product__name {
  margin: 0;
  font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 100;
  font-size: 21px; line-height: 1.2; letter-spacing: -.01em;
}
.product__price { font-size: 13px; white-space: nowrap; }
.product__ing { margin: 6px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.product__foot { margin-top: auto; }

.add {
  width: 100%; height: 44px;
  border: 1px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink);
  font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s;
}
.add:hover { background: var(--ink); color: var(--cream); }
.product .stepper { display: none; }
.product.has-qty .add { display: none; }
.product.has-qty .stepper { display: flex; }

/* Stepper − / + */
.stepper {
  display: inline-flex; align-items: center; justify-content: space-between;
  height: 44px;
  border: 1px solid var(--ink); border-radius: 2px;
}
.stepper button {
  width: 44px; height: 100%;
  border: 0; background: transparent; color: var(--ink);
  font: 400 20px/1 var(--sans);
  cursor: pointer;
}
.stepper button:hover { background: rgba(27,37,89,.06); }
.stepper button:disabled { opacity: .25; cursor: default; background: transparent; }
.stepper output { min-width: 32px; text-align: center; font-size: 15px; font-weight: 500; }
.product .stepper { width: 100%; }

/* ---------- 3. Commander ---------- */
.commander { background: var(--cream); }
.commander__grid { display: grid; gap: 36px; }
.commander .lead { margin-bottom: 28px; }

.tiers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.tier { padding: 16px 10px 14px 0; position: relative; }
.tier + .tier { padding-left: 14px; border-left: 1px solid var(--hair); }
.tier__price {
  display: block; margin-bottom: 4px;
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-size: clamp(20px, 5.4vw, 28px); line-height: 1.1; letter-spacing: -.01em;
}
.tier__label { font-size: 12px; color: var(--muted); }
.tier.is-on .tier__price { color: var(--cobalt); }
.tier.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cobalt); }
.tier + .tier.is-on::after { left: 0; }

.cart { background: var(--paper); padding: 6px 20px 26px; min-width: 0; }
.cart__lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 10px 1fr auto;
  align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.line__dot { width: 10px; height: 16px; border-radius: 2px; background: var(--juice); }
.line__name { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 18px; }
.line .stepper { height: 38px; }
.line .stepper button { width: 38px; font-size: 18px; }

.cart__total {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
  padding: 22px 0 24px;
}
.cart__count { margin: 0; font-size: 14px; color: var(--muted); }
.cart__sum {
  margin: 0;
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-size: clamp(32px, 9vw, 44px); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap;
}
.cart__hint { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.cart__hint strong { color: var(--cobalt); font-weight: 500; }

.form { display: grid; gap: 16px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field span { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--hair); border-radius: 2px;
  background: #fff; color: var(--ink);
  font: 400 16px/1 var(--sans);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B2559' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #B0201A; }
.form__error { margin: 0; color: #B0201A; font-size: 14px; }
.form__note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.form .btn { margin-top: 8px; min-height: 56px; }

/* ---------- 4. Pros ---------- */
.pros__grid { display: grid; gap: 48px; }
.pros__price {
  margin: 0;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(52px, 14vw, 96px); line-height: .95; letter-spacing: -.035em;
  color: var(--cobalt);
}
.pros__per { margin: 10px 0 28px; color: var(--muted); }
.pros__list { list-style: none; margin: 0; padding: 0; }
.pros__list li {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--hair); font-size: 15px;
}
.pros__list li:last-child { border-bottom: 1px solid var(--hair); }
.pros__list span { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }

/* ---------- 5. À propos ---------- */
.apropos { background: var(--cream); }
.apropos__grid { display: grid; gap: 8px; }
.apropos .h2 { margin-bottom: 0; }
.apropos .lead { margin: 16px 0 0; font-size: 19px; }

/* ---------- 6. Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--hair); }
/* La signature : le logo sur toute la largeur, net, sans rotation ni recadrage */
.footer__logo { width: 168px; height: auto; margin-bottom: 28px; }
.footer__grid { display: grid; gap: 24px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__links a { text-decoration: none; border-bottom: 1px solid transparent; }
.footer__links a:hover { border-color: var(--ink); }
.footer__fresh { margin: 0; font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 100; font-size: 20px; color: var(--muted); }

/* ---------- Barre panier mobile ---------- */
.bar {
  position: fixed; z-index: 50;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; padding: 0 20px;
  border-radius: 2px;
  background: var(--ink); color: var(--cream);
  text-decoration: none; font-size: 14px;
  box-shadow: 0 12px 30px rgba(27,37,89,.25);
  transition: transform .25s ease, opacity .25s ease;
}
.bar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.bar__go { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--cream); padding-bottom: 2px; }

/* ---------- Écrans plus grands ---------- */
@media (min-width: 860px) {
  :root { --gutter: 56px; }
  .section { padding: 120px 0; }
  .top .hide-m { display: inline; }
  .top__in { height: 84px; }
  .top__logo img { height: 34px; }
  .hero { padding-top: 72px; }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  h1 { font-size: clamp(48px, 5.4vw, 76px); }
  .lineup { padding: 22% 4% 13%; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
  .product__row { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
  .commander__grid { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
  .commander__intro { position: sticky; top: 112px; }
  .cart { padding: 10px 36px 36px; }
  .pros__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .apropos__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
  .apropos .lead { margin: 0; }
  .footer__grid { grid-template-columns: 1fr auto; align-items: end; }
  .footer .wrap { display: flex; flex-direction: column; }
  .footer__logo { order: 2; width: 100%; margin: 120px 0 0; }
  .bar { left: auto; right: 24px; bottom: 24px; min-width: 340px; gap: 24px; }
}

@media (max-width: 380px) {
  .cart { padding-left: 14px; padding-right: 14px; }
  .line { gap: 10px; }
}

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