/* ==========================================================================
   HINOMY COOKIES
   Palette et formes tirées de l'identité de la marque : bordeaux, rose,
   olive, caramel, crème — aplats géométriques et contours à l'encre.
   ========================================================================== */

/* Polices hébergées sur le site (aucun appel à un service tiers). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/outfit.woff2") format("woff2"); }
@font-face { font-family: "Lobster"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/lobster.woff2") format("woff2"); }

:root {
  --wine: #620d24;
  --wine-deep: #4a0a1b;
  --pink: #ee8e99;
  --pink-soft: #f9d3d6;
  --olive: #7a7038;
  --olive-deep: #555024;
  --caramel: #edab6f;
  --gold: #ecc48d;
  --cream: #fff4e2;
  --paper: #f4e2c2;
  --ink: #2a0c17;
  --muted: #6d4a52;
  --wa: #25d366;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --script: "Lobster", "Brush Script MT", cursive;

  --line: 2px solid var(--ink);
  --r: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .signature :focus-visible, .how :focus-visible, .footer :focus-visible { outline-color: var(--gold); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Typo ---------- */

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wine); margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold); }

.title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.title--center { text-align: center; }
.title--cream { color: var(--cream); }
.title--gold {
  color: var(--gold); text-transform: uppercase; letter-spacing: .01em; font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .96;
}
.dot { color: var(--pink); }

.sub { max-width: 56ch; color: var(--muted); margin-top: 16px; text-wrap: pretty; }
.sub--center { margin-inline: auto; text-align: center; }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.price { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: .62em; font-weight: 600; letter-spacing: .06em; }
.price--light { color: var(--cream); font-size: 2.2rem; }

/* ---------- Logo ---------- */

.logo { display: inline-grid; justify-items: end; text-decoration: none; color: var(--wine); line-height: 1; }
.logo__word { font-family: var(--script); font-size: 2rem; transform: rotate(-4deg); transform-origin: left bottom; }
.logo__sub { font-size: .58rem; font-weight: 600; letter-spacing: .34em; margin-top: -1px; margin-right: 2px; }
.logo--lg .logo__word { font-size: 2.8rem; }
.logo--lg .logo__sub { font-size: .7rem; }
.logo--xl .logo__word { font-size: clamp(3.6rem, 9vw, 6rem); }
.logo--xl .logo__sub { font-size: clamp(.8rem, 1.6vw, 1.05rem); }
.logo--light { color: var(--cream); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: var(--line); border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--pink { background: var(--pink); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: 0 4px 0 var(--pink); }
.btn--ink:hover { box-shadow: 0 6px 0 var(--pink); }
.btn--ink:active { box-shadow: 0 1px 0 var(--pink); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn--ghost:hover { background: var(--cream); color: var(--ink); box-shadow: none; }
.btn--wa { background: var(--wa); color: var(--ink); width: 100%; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .92rem; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.ico__fill { fill: currentColor; stroke: none; }

.iconbtn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: var(--line); border-radius: 50%;
}
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.iconbtn:hover { background: var(--pink); }

/* ---------- Bandeau ---------- */

.ticker { background: var(--ink); color: var(--cream); overflow: hidden; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 9px 0; animation: slide 36s linear infinite; }
.ticker__track span { white-space: nowrap; }
.ticker__track i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex: none; }

@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- En-tête ---------- */

.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); border-bottom: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 2px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; border-radius: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.cartbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 8px 6px 14px;
  background: var(--wine); color: var(--cream); border: var(--line); border-radius: 999px; font-weight: 600;
  box-shadow: 0 3px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.cartbtn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.cartbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cartbtn__count { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; background: var(--pink); color: var(--ink); border-radius: 999px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cartbtn.bump .cartbtn__count { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Hero ---------- */

.hero { position: relative; background: var(--wine); color: var(--cream); overflow: hidden; border-bottom: var(--line); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__in {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 8vw, 104px) clamp(88px, 10vw, 128px);
}
.hero__title {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 900;
  font-size: clamp(3.1rem, 6.5vw, 6rem); line-height: .92; letter-spacing: -.03em;
}
.hero__title span, .hero__title em { display: block; }
.hero__title em { color: var(--gold); font-weight: 600; letter-spacing: -.02em; margin-top: .08em; }
.hero__lead { max-width: 46ch; margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: #f6dfd2; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 540px); }

.polaroid { background: var(--cream); border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid--main { transform: rotate(2.5deg); aspect-ratio: 64 / 47; }
.polaroid--round { position: absolute; left: -9%; bottom: -17%; width: 38%; aspect-ratio: 1; border-radius: 50%; transform: rotate(-6deg); box-shadow: 6px 6px 0 var(--ink); }

.spin { position: absolute; right: -7%; top: -17%; width: 31%; min-width: 108px; animation: spin 26s linear infinite; }
.spin text { font-family: var(--sans); font-weight: 700; font-size: 15.5px; letter-spacing: .13em; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.sticker {
  position: absolute; right: 4%; bottom: -13%; width: 104px; height: 104px;
  display: grid; place-content: center; justify-items: center; line-height: 1;
  background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 50%;
  transform: rotate(-12deg); box-shadow: 4px 4px 0 var(--ink);
}
.sticker b { font-family: var(--serif); font-weight: 900; font-size: 2.3rem; }
.sticker small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Défilé des saveurs ---------- */

.flavors { background: var(--pink); border-bottom: var(--line); overflow: hidden; }
.flavors__track { display: flex; align-items: center; gap: 30px; width: max-content; padding: 16px 0; animation: slide 60s linear infinite; }
.flavors__track span { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.9rem); white-space: nowrap; }
.flavors__track svg { width: 30px; height: 30px; flex: none; }

/* ---------- Cookie dessiné ---------- */

.doodle { width: 100%; height: 100%; overflow: visible; }

/* ---------- Vedettes ---------- */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fffaf1;
  border: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-2px, -3px); box-shadow: 9px 10px 0 var(--ink); }
.card__pic { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: var(--line); background: var(--paper); }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__pic img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; flex: 1; }
.card__name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.22rem; line-height: 1.12; }
.card__desc { font-size: .93rem; color: var(--muted); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 12px;
  background: var(--gold); border: var(--line); border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-4deg);
}
.card--big { grid-column: span 2; grid-row: span 2; }
.card--big .card__pic { aspect-ratio: auto; flex: 1; min-height: 260px; }
.card--big .card__body { flex: none; padding: 24px; }
.card--big .card__name { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.card--big .card__desc { font-size: 1.02rem; max-width: 44ch; }

/* ---------- La carte ---------- */

.carte { padding-top: 0; }
.paper {
  background: var(--paper); border: var(--line); border-radius: 32px; box-shadow: 10px 10px 0 var(--wine);
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4.5vw, 64px);
}
.paper__head { display: grid; justify-items: center; gap: 6px; margin-bottom: clamp(32px, 5vw, 56px); }
.paper__head .logo { margin-bottom: 10px; }
.paper__grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.paper__side { display: grid; gap: clamp(32px, 4vw, 48px); }
.paper__foot { margin-top: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); font-size: .84rem; color: var(--muted); text-align: center; }

.cat__title {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 800;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem); text-transform: uppercase; letter-spacing: .03em;
  padding-bottom: 10px; border-bottom: 3px solid var(--ink);
}
.cat__note { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.cat__list { margin-top: 10px; }
.cat--wide .cat__list { columns: 2; column-gap: clamp(24px, 3.5vw, 48px); }

.item {
  display: grid; grid-template-columns: 46px 1fr auto 44px; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  break-inside: avoid;
}
.item__pic { width: 46px; height: 46px; }
.item__name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.08rem; line-height: 1.15; }
.item__desc { font-size: .86rem; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.item__price { font-family: var(--serif); font-weight: 800; font-size: 1.12rem; white-space: nowrap; }
.item__price small { font-family: var(--sans); font-size: .64em; font-weight: 600; letter-spacing: .06em; }

.add {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--pink); border: var(--line); border-radius: 50%; box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.add svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; }
.add:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); background: var(--gold); }
.add:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.add__qty {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px;
  display: grid; place-items: center; background: var(--wine); color: var(--cream);
  border-radius: 999px; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.add__qty:empty { display: none; }

/* ---------- Signature ---------- */

.signature { background: var(--wine); color: var(--cream); border-block: var(--line); overflow: hidden; }
.signature::before { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; background: var(--olive); border-radius: 0 0 0 100%; }
.signature::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 0; border-left: 190px solid var(--pink); border-top: 150px solid transparent; }
.signature__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.poster { border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 12px 12px 0 var(--ink); transform: rotate(-2deg); }
.poster img { width: 100%; }
.signature__text { margin-top: 24px; max-width: 48ch; color: #f6dfd2; font-size: 1.08rem; text-wrap: pretty; }
.signature__buy { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.signature__more { margin-top: 26px; font-size: .95rem; color: var(--gold); }
.signature__more b { color: var(--cream); font-weight: 600; }

/* ---------- Box ---------- */

.boxes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.boxcard { display: grid; grid-template-rows: auto 1fr; border: var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--pink-soft); }
.boxcard:nth-child(even) { background: #e9e3c2; }
.boxcard__pic { position: relative; aspect-ratio: 16 / 10; border-bottom: var(--line); overflow: hidden; background: var(--paper); }
.boxcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.boxcard__kicker {
  position: absolute; top: 16px; right: 16px; padding: 7px 16px; background: var(--wine); color: var(--cream);
  border: var(--line); border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transform: rotate(5deg);
}
.boxcard__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 34px); }
.boxcard__name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.08; }
.boxcard__points { display: grid; gap: 6px; font-size: .95rem; font-weight: 500; }
.boxcard__points li { display: flex; gap: 10px; align-items: baseline; }
.boxcard__points li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); flex: none; transform: translateY(-1px); }
.boxcard__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.boxcard .price { font-size: 2rem; }

/* ---------- Mood ---------- */

.mood { background: var(--pink); border-block: var(--line); }
.mood__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.mood .eyebrow { color: var(--wine-deep); }
.equation { display: flex; align-items: center; gap: clamp(10px, 2vw, 18px); margin: 30px 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }
.equation svg { width: clamp(54px, 9vw, 78px); height: auto; fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; }
.equation__cookie circle:first-child { fill: var(--caramel); }
.equation__cookie g circle { fill: #743523; stroke: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 9px 20px; background: var(--cream); border: var(--line); border-radius: 999px;
  font-weight: 500; transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--wine); color: var(--cream); }

.mood__result { min-height: 320px; display: grid; }
.pick { display: grid; align-content: start; gap: 14px; padding: clamp(20px, 3vw, 30px); background: var(--cream); border: var(--line); border-radius: 28px; box-shadow: var(--shadow); transform: rotate(1.5deg); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: rotate(-2deg) scale(.94); opacity: 0; } }
.pick__pic { aspect-ratio: 3 / 2; border: var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.pick__pic img { width: 100%; height: 100%; object-fit: cover; }
.pick__pic .doodle { width: 46%; height: auto; }
.pick__line { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--wine); }
.pick__name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: 1.7rem; line-height: 1.08; }
.pick__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- La maison ---------- */

.story__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.story__pics { position: relative; padding: 0 12% 14% 0; }
.polaroid--a { transform: rotate(-3deg); aspect-ratio: 1; }
.polaroid--b { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; transform: rotate(5deg); box-shadow: 6px 6px 0 var(--wine); }
.story__text { margin-top: 22px; max-width: 54ch; color: #4b2a33; font-size: 1.1rem; text-wrap: pretty; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 3px solid var(--ink); }
.pillars b { display: block; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 900; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; color: var(--wine); }
.pillars span { display: block; margin-top: 8px; font-size: .93rem; color: var(--muted); }

/* ---------- Commander ---------- */

.how { background: var(--olive-deep); color: var(--cream); border-block: var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; background: var(--cream); color: var(--ink); border: var(--line); border-radius: 24px; padding: 54px 26px 28px; box-shadow: var(--shadow); }
.steps li:nth-child(2) { transform: translateY(18px); }
.steps__n {
  position: absolute; top: -26px; left: 22px; width: 60px; height: 60px; display: grid; place-items: center;
  background: var(--pink); border: var(--line); border-radius: 50%;
  font-family: var(--serif); font-weight: 900; font-size: 1.7rem; transform: rotate(-8deg);
}
.steps h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.steps p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.how__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(48px, 6vw, 72px); }

/* ---------- Instagram ---------- */

.insta__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.insta__grid a { aspect-ratio: 1; border: var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta__grid a:hover img { transform: scale(1.07) rotate(1deg); }

/* ---------- Pied de page ---------- */

.footer { background: var(--wine-deep); color: var(--cream); padding-top: clamp(56px, 8vw, 96px); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__brand p { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold); }
.footer__col { display: grid; gap: 10px; justify-items: start; }
.footer__col h3 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.footer__col a { text-decoration-color: color-mix(in srgb, var(--cream) 40%, transparent); text-underline-offset: 4px; padding-block: 4px; }
.footer__col a:hover { text-decoration-color: var(--pink); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-block: 22px; border-top: 1px solid color-mix(in srgb, var(--cream) 22%, transparent); font-size: .86rem; color: #e3c4bd; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--pink); }

/* ---------- Barre mobile ---------- */

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: none; pointer-events: none; }
.dock__btn {
  pointer-events: auto; width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px;
  background: var(--wine); color: var(--cream); border: var(--line); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); font-weight: 600;
}
.dock__btn b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; margin-right: 6px; background: var(--pink); color: var(--ink); border-radius: 999px; font-size: .88rem; }

/* ---------- Panier ---------- */

.cart {
  width: min(460px, 100%); max-width: none; height: 100dvh; max-height: none;
  margin: 0 0 0 auto; padding: 0; border: 0; border-left: 3px solid var(--ink);
  background: var(--cream); color: var(--ink);
}
.cart::backdrop { background: rgb(42 12 23 / .6); }
.cart[open] { animation: drawer .32s cubic-bezier(.2, .9, .3, 1); }
@keyframes drawer { from { transform: translateX(100%); } }
.cart__panel { height: 100%; display: flex; flex-direction: column; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: var(--line); background: var(--pink); }
.cart__head h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: 1.7rem; }
.cart__head .iconbtn { background: var(--cream); }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 22px 22px; overscroll-behavior: contain; }
.cart__empty { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 56px 0; color: var(--muted); }
.cart__empty svg { width: 96px; fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.cart__empty svg g circle { fill: var(--caramel); stroke: none; }
.cart__empty[hidden] { display: none; }

.line { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.line__pic { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; }
.line__pic img { width: 100%; height: 100%; object-fit: cover; border: var(--line); border-radius: 14px; }
.line__name { font-family: var(--serif); font-weight: 700; line-height: 1.15; }
.line__unit { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.line__end { display: grid; justify-items: end; gap: 8px; }
.line__total { font-family: var(--serif); font-weight: 800; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: var(--line); border-radius: 999px; background: #fffaf1; }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; font-size: 1.2rem; font-weight: 600; line-height: 1; }
.stepper button:hover { background: var(--pink); }
.stepper output { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cart__fields { display: grid; gap: 16px; padding-top: 24px; }
.cart__fields[hidden] { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: var(--line); border-radius: 999px; overflow: hidden; position: relative; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 46px; font-weight: 600; background: #fffaf1; transition: background-color .15s ease, color .15s ease; }
.seg input:checked + span { background: var(--wine); color: var(--cream); }
.seg input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: -5px; border-radius: 999px; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field > span { font-size: .86rem; font-weight: 600; }
.field em { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 16px; background: #fffaf1; border: var(--line); border-radius: 16px; font-size: 1rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a08a8e; }

.cart__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: var(--line); background: var(--paper); }
.cart__foot[hidden] { display: none; }
.cart__total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 600; }
.cart__total b { font-family: var(--serif); font-weight: 900; font-size: 1.9rem; }
.cart__hint { font-size: .8rem; color: var(--muted); margin: 4px 0 14px; }

/* ---------- Page 404 ---------- */

.lost { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 48px var(--gutter); background: var(--wine); color: var(--cream); text-align: center; }
.lost .logo { margin-bottom: 28px; }
.lost .eyebrow { margin-bottom: 0; }
.lost__title { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 900; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.lost__text { max-width: 40ch; margin-bottom: 14px; color: #f6dfd2; font-size: 1.1rem; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 24px);
  max-width: calc(100% - 32px); padding: 12px 22px; background: var(--ink); color: var(--cream);
  border-radius: 999px; font-weight: 500; font-size: .95rem; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Apparition au défilement ---------- */

/* `translate` (et non `transform`) pour ne pas écraser les rotations des cartes. */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--big { grid-row: auto; }
  .card--big .card__pic { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .paper__grid { grid-template-columns: 1fr; }
  .paper__side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav a:not(:first-child) { display: none; }
  .hero__in { grid-template-columns: 1fr; padding-bottom: 104px; }
  .hero__visual { width: min(86%, 460px); margin-top: 28px; }
  .signature__in, .mood__in, .story__in { grid-template-columns: 1fr; }
  .story__pics { max-width: 460px; }
  .mood__result { min-height: 0; }
  .mood__result:empty { display: none; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps li:nth-child(2) { transform: none; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .cartbtn__label { display: none; }
  .cartbtn { padding-left: 12px; }
  .bento { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  .bento .card { flex: 0 0 min(78vw, 320px); scroll-snap-align: center; }
  .card--big .card__pic { aspect-ratio: 3 / 2; }
  .card--big .card__body { padding: 18px 18px 16px; }
  .card--big .card__name { font-size: 1.22rem; }
  .card--big .card__desc { font-size: .93rem; }
  .cat--wide .cat__list { columns: 1; }
  .paper__side { grid-template-columns: 1fr; }
  .paper { border-radius: 24px; box-shadow: 6px 6px 0 var(--wine); }
  .boxes__grid { grid-template-columns: 1fr; }
  .insta__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .pillars li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
  .pillars span { margin-top: 0; }
  .footer__in { grid-template-columns: 1fr; }
  .dock:not([hidden]) { display: block; }
  body.has-dock { padding-bottom: 84px; }
  body.has-dock .toast { bottom: 92px; }
  .sticker { width: 86px; height: 86px; }
  .sticker b { font-size: 1.9rem; }
  .signature::before { width: 160px; height: 160px; right: -50px; top: -50px; }
  .signature::after { border-left-width: 110px; border-top-width: 90px; }
  .signature__in { padding-bottom: 40px; }
}

@media (max-width: 400px) {
  .item { grid-template-columns: 40px 1fr auto 44px; gap: 10px; }
  .item__pic { width: 40px; height: 40px; }
  .logo__word { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track, .flavors__track { animation: none; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
