/* La Hotte : kraft, nuit d'hiver et cire rouge. */
:root {
  --nuit: #16233f;
  --nuit-2: #22335a;
  --kraft: #c89f74;
  --kraft-pale: #ead6bd;
  --kraft-ink: #5b3f22;
  --cire: #a8231c;
  --cire-dark: #861a14;
  --papier: #ffffff;
  --neige: #f3f5f9;
  --encre: #16233f;
  --gris: #5d6780;
  --trait: #dfe3ec;
  --focus: #2f6fe4;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1rem/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--papier); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Bandeau date limite */
.banner { background: var(--cire); color: #fff; font-size: .875rem; text-align: center; padding: 7px 0; }
.banner strong { font-weight: 700; }

/* En-tête */
.site-header { background: var(--nuit); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; letter-spacing: -0.02em; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: .9375rem; }
.cart-button:hover { border-color: #fff; }
.cart-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-count { background: var(--kraft); color: var(--nuit); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .8125rem; font-weight: 700; padding: 0 6px; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 14px 22px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--cire); color: #fff; }
.btn-primary:hover { background: var(--cire-dark); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-quiet { background: transparent; border-color: currentColor; }
.btn-quiet:hover { background: rgba(22,35,63,.06); }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; text-align: left; }

/* Hero */
.hero { background: var(--nuit); color: #fff; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); max-width: 11ch; }
.hero-copy p { font-size: 1.0625rem; color: #cfd6e6; max-width: 38ch; margin: 18px 0 26px; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 88px; }
  .hero-copy p { font-size: 1.1875rem; }
}

/* L'étiquette cadeau */
.tag-hang { position: relative; justify-self: center; padding-top: 34px; padding-left: 40px; }
.tag-string { position: absolute; left: 0; top: 0; width: 120px; height: 90px; overflow: visible; }
.tag-string path { fill: none; stroke: #e9dcc8; stroke-width: 2; stroke-dasharray: 3 3; }
.tag {
  --notch: 34px;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--kraft); color: var(--kraft-ink);
  padding: 26px 30px 26px calc(var(--notch) + 22px); min-width: 280px;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%);
  background-image: radial-gradient(rgba(91,63,34,.10) 1px, transparent 1.2px), radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px;
  transform: rotate(-4deg); transform-origin: 0 50%;
  animation: swing 1.6s cubic-bezier(.3,1.6,.5,1) .2s both;
}
@keyframes swing { from { transform: rotate(-14deg); } to { transform: rotate(-4deg); } }
.tag-hole { position: absolute; left: calc(var(--notch) - 12px); top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--nuit); box-shadow: inset 0 0 0 3px #b48a5f; }
.tag-small { font-size: .9375rem; }
.tag-date { font-family: var(--serif); font-size: clamp(1.9rem, 7vw, 2.6rem); color: var(--nuit); line-height: 1.1; margin: 6px 0; }
.tag-left { margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed rgba(91,63,34,.45); font-weight: 700; color: var(--cire-dark); }
.tag-flat { transform: none; animation: none; margin: 8px 0 28px; align-self: flex-start; display: inline-flex; }

/* Catalogue */
.catalog { padding: 48px 0 56px; }
.catalog-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.catalog h2, .how h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
@media (min-width: 860px) { .catalog-head { flex-direction: row; align-items: end; justify-content: space-between; } }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; border: 1px solid var(--trait); border-radius: 999px; padding: 7px 14px; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--encre); }
.chip[aria-current] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card a { text-decoration: none; display: block; }
.card-img { aspect-ratio: 4 / 5; background: var(--neige); border-radius: 4px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card a:hover .card-img img { transform: scale(1.03); }
.card h3 { font-family: var(--sans); font-weight: 500; font-size: .9375rem; line-height: 1.35; margin: 10px 0 4px; }
.card a:hover h3 { text-decoration: underline; }
.price { margin: 0; font-weight: 700; }
.price s { color: var(--gris); font-weight: 400; margin-right: 4px; }
.price s + span { color: var(--cire); }
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--kraft-pale); }
.img-placeholder svg { width: 30%; fill: none; stroke: var(--kraft-ink); stroke-width: 1.6; opacity: .6; }
.empty { padding: 48px 20px; text-align: center; background: var(--neige); border-radius: 4px; color: var(--gris); }

/* Étapes après commande (c'est bien une suite d'étapes) */
.how { background: var(--neige); padding: 52px 0 56px; }
.steps { list-style: none; counter-reset: step; margin: 28px 0 24px; padding: 0; display: grid; gap: 24px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--kraft); color: var(--nuit); font-family: var(--serif); font-size: 1.125rem; }
.steps h3 { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; }
.steps p { color: var(--gris); margin: 0; max-width: 34ch; }
.how-foot { margin: 0; color: var(--gris); }

/* Fiche produit */
.product { padding-top: 16px; padding-bottom: 56px; }
.crumbs { font-size: .9375rem; margin-bottom: 14px; }
.crumbs a { color: var(--gris); }
.product-grid { display: grid; gap: 24px; }
.product-grid > * { min-width: 0; }
.gallery-track { align-items: flex-start; }
.gallery-track img { height: auto; }
@media (min-width: 860px) { .product-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } .buy { position: sticky; top: 84px; } }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img, .gallery-track .img-placeholder { flex: 0 0 88%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; border-radius: 4px; background: var(--neige); }
.gallery-track:has(> :only-child) > * { flex-basis: 100%; }
@media (min-width: 860px) { .gallery-track { margin: 0; padding: 0; } .gallery-track img, .gallery-track .img-placeholder { flex-basis: 100%; } }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--neige); cursor: pointer; }
.gallery-thumbs button[aria-current] { border-color: var(--nuit); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.price-lg { font-size: 1.5rem; margin: 10px 0 18px; }
.eta-label { background: var(--kraft-pale); color: var(--kraft-ink); padding: 12px 14px; border-left: 4px solid var(--kraft); border-radius: 0 4px 4px 0; font-size: .9375rem; }
.eta-label strong { color: var(--nuit); }
.add-form { display: flex; gap: 10px; margin: 20px 0 24px; }
.btn-grow { flex: 1; }
.qty { display: flex; border: 1px solid var(--trait); border-radius: 6px; overflow: hidden; }
.qty button { width: 40px; background: none; border: 0; font-size: 1.25rem; cursor: pointer; }
.qty button:hover { background: var(--neige); }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.highlights { padding: 0; margin: 0 0 20px; list-style: none; }
.highlights li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.highlights li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--cire); border-bottom: 2px solid var(--cire); transform: rotate(-45deg); }
.desc { color: #2c3754; max-width: 60ch; }
.info { border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); padding: 14px 0; margin-top: 20px; }
.info summary { cursor: pointer; font-weight: 600; }
.info p { margin: 10px 0 0; color: var(--gris); font-size: .9375rem; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--papier); border-top: 1px solid var(--trait); }
.sticky-price { font-weight: 700; font-size: 1.125rem; }
@media (min-width: 860px) { .sticky-buy { display: none !important; } }

/* Tiroir de la hotte */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(22,35,63,.45); z-index: 40; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--papier); z-index: 41; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--trait); }
.drawer-head h2 { font-size: 1.5rem; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.icon-button:hover { background: var(--neige); }
.icon-button svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.drawer-empty { text-align: center; padding: 48px 8px; color: var(--gris); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--trait); align-items: start; }
.line img, .line .img-placeholder { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; }
.line-title { font-weight: 500; font-size: .9375rem; line-height: 1.3; text-decoration: none; }
.line-title:hover { text-decoration: underline; }
.line .qty { margin-top: 8px; width: max-content; }
.line .qty button { width: 32px; height: 32px; font-size: 1rem; }
.line .qty span { min-width: 28px; display: grid; place-items: center; font-weight: 600; }
.line-price { font-weight: 700; text-align: right; }
.line-remove { display: block; margin-top: 8px; font-size: .8125rem; color: var(--gris); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; margin-left: auto; }
.line-missing { color: var(--cire); font-size: .8125rem; }
.drawer-foot { border-top: 1px solid var(--trait); padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
.ship-progress { font-size: .875rem; margin-bottom: 10px; }
.ship-bar { height: 6px; background: var(--neige); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--kraft); transition: width .4s; }
.totals { margin: 0 0 10px; }
.totals div { display: flex; justify-content: space-between; padding: 2px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-weight: 700; font-size: 1.125rem; padding-top: 6px; }
.cart-eta { font-size: .875rem; background: var(--kraft-pale); color: var(--kraft-ink); padding: 8px 10px; border-radius: 4px; }
.cart-eta:empty { display: none; }
.cart-error { color: var(--cire); font-size: .875rem; margin: 10px 0 0; }
.cart-note { font-size: .8125rem; color: var(--gris); margin: 10px 0 0; text-align: center; }

/* Consentement */
.consent { position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 30; max-width: 460px; background: var(--nuit); color: #fff; padding: 16px; border-radius: 8px; font-size: .9375rem; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.consent-actions .btn { flex: 1; padding: 10px; color: #fff; }
.consent-actions .btn:hover { background: rgba(255,255,255,.1); }
.consent a { font-size: .8125rem; color: #cfd6e6; }
.is-product .consent { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* Pages de texte */
.thanks, .legal { padding-top: 40px; padding-bottom: 64px; }
.thanks { display: flex; flex-direction: column; align-items: flex-start; }
.thanks h1, .legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 18px; }
.lead { font-size: 1.125rem; color: #2c3754; }
.recap { list-style: none; padding: 0; margin: 0 0 24px; width: 100%; border-top: 1px solid var(--trait); }
.recap li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.recap .grand { font-weight: 700; }
.legal h2 { font-size: 1.375rem; margin: 32px 0 10px; }
.legal p { max-width: 68ch; }
.legal-box { background: var(--neige); padding: 16px 18px; border-radius: 4px; margin-bottom: 1em; }
.legal-box p:last-child { margin: 0; }
.muted { color: var(--gris); }
.todo { background: #ffe58a; padding: 0 4px; }
.contact-mail { font-family: var(--serif); font-size: 1.5rem; }

/* Pied de page */
.site-footer { background: var(--nuit); color: #cfd6e6; padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.is-product .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 860px) { .is-product .site-footer { padding-bottom: 44px; } }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-mark { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.site-footer a, .site-footer .linklike { color: #cfd6e6; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-pay { margin: 0; }

/* Ajustements mobile : la fiche et la date limite visibles sans défiler */
@media (max-width: 719px) {
  .banner { font-size: .8125rem; padding: 6px 0; line-height: 1.35; }
  .hero-grid { gap: 8px; padding-top: 28px; padding-bottom: 36px; }
  .hero-copy p { margin: 14px 0 20px; }
  .tag-hang { justify-self: start; padding-left: 28px; padding-top: 26px; }
  .tag-string { width: 90px; height: 70px; }
  .tag { min-width: 0; padding: 18px 22px 18px calc(var(--notch) + 16px); --notch: 28px; }
  .tag-date { font-size: 1.75rem; }
  .tag-left { margin-top: 10px; padding-top: 8px; }
  .crumbs { margin-bottom: 10px; font-size: .875rem; }
  .gallery-track img, .gallery-track .img-placeholder { flex-basis: 78%; aspect-ratio: 1 / 1; }
  .gallery-thumbs { display: none; }
  .consent { padding: 12px 14px; font-size: .8125rem; left: 8px; right: 8px; bottom: 8px; }
  .consent p { margin-bottom: 10px; }
  .consent-actions .btn { padding: 8px; }
}
