/* Mise en page : en-tête centré sur le logo, bandeaux pleine largeur, grilles de produits sur fond crème, tiroir panier à droite. */
:root {
  --bg: #FBF8F3;
  --surface: #F4ECE0;
  --surface-2: #EFE4D4;
  --ink: #2A221C;
  --ink-soft: #6F6257;
  --line: #E7DCCB;
  --accent: #9E6B38;
  --accent-ink: #FFFFFF;
  --accent-soft: #C9A16B;
  --overlay: rgba(32, 24, 18, .45);
  --ok: #4F7A58;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120E; --surface: #211A14; --surface-2: #2A2118; --ink: #F3EADC; --ink-soft: #B3A592;
    --line: #3A2F24; --accent: #C99A5E; --accent-ink: #1B140E; --accent-soft: #B58648; --overlay: rgba(0,0,0,.6); --ok: #86B58F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17120E; --surface: #211A14; --surface-2: #2A2118; --ink: #F3EADC; --ink-soft: #B3A592;
  --line: #3A2F24; --accent: #C99A5E; --accent-ink: #1B140E; --accent-soft: #B58648; --overlay: rgba(0,0,0,.6); --ok: #86B58F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter) var(--gutter-r); }
.eyebrow { font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.price { font-variant-numeric: tabular-nums; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 26px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--accent); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.arrow { width: 16px; height: 16px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Bandeau */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); text-align: center; padding: 9px 0; letter-spacing: .02em; }
.topbar svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--accent); }

/* En-tête */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: 16px; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 13px; }
.nav.right { justify-content: flex-end; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav-left { display: flex; gap: 26px; align-items: center; }
.logo { text-align: center; line-height: 1; display: block; }
.logo b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: .1em; }
.logo small { display: block; font-size: 8.5px; letter-spacing: .34em; margin-top: 6px; color: var(--ink-soft); }
.tools { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 21px; height: 21px; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.badge[hidden] { display: none; }
.burger { display: none; }

/* Menu mobile */
.menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.menu.open { visibility: visible; }
.menu .scrim { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity .3s; }
.menu.open .scrim { opacity: 1; }
.menu nav { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--bg); padding: calc(env(safe-area-inset-top, 0px) + 22px) 28px 28px max(28px, env(safe-area-inset-left, 0px)); transform: translateX(-100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.menu.open nav { transform: none; }
.menu nav a { font-family: var(--font-display); font-size: 28px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.menu nav .close { align-self: flex-end; margin-bottom: 12px; }

/* Héros */
.hero { position: relative; background: var(--surface); overflow: hidden; }
.slides { position: relative; }
.slide { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 520px; }
.slide.on { display: grid; animation: fade .8s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slide-text { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 56px clamp(24px, 6vw, 96px) 64px max(var(--gutter), clamp(24px, 6vw, 96px)); }
.slide-text h1 { font-size: clamp(42px, 5.6vw, 76px); font-weight: 500; }
.slide-text p { max-width: 440px; font-size: 16px; color: var(--ink); }
.slide-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.slide-img { position: relative; min-height: 320px; }
.slide-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-nav { position: absolute; right: max(24px, var(--gutter-r)); top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 82%, transparent); display: grid; place-items: center; box-shadow: 0 2px 14px rgba(0,0,0,.12); z-index: 3; transition: background .2s; }
.hero-nav:hover { background: var(--bg); }
.dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; padding: 8px 12px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); opacity: .45; transition: opacity .2s, transform .2s; }
.dots button[aria-current="true"] { opacity: 1; background: var(--accent); transform: scale(1.25); }

/* Réassurance */
.trust { border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.trust li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust svg { width: 34px; height: 34px; color: var(--accent); stroke-width: 1.2; }
.trust strong { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.trust span { font-size: 12.5px; color: var(--ink-soft); }

/* Sections */
section.block { padding-block: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 3.4vw, 42px); }

/* Catégories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); display: block; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat:hover img { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30,20,12,.62)); }
.cat div { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; text-align: center; color: #fff; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cat h3 { font-family: var(--font-body); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.cat span { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }

/* Produits */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr)); gap: 26px 18px; }
.grid.five { grid-template-columns: repeat(5, 1fr); }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .media { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; display: block; }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.card .media img + img { opacity: 0; }
.card:hover .media img + img { opacity: 1; }
.card:hover .media img { transform: scale(1.03); }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--bg) 78%, transparent); transition: transform .2s; }
.fav:hover { transform: scale(1.08); }
.fav svg { width: 18px; height: 18px; }
.fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--bg); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; }
.quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; min-height: 40px; background: color-mix(in srgb, var(--bg) 92%, transparent); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), background .2s, color .2s; }
.quick:hover { background: var(--accent); color: var(--accent-ink); }
.card:hover .quick, .quick:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .quick { opacity: 1; transform: none; } }
.card h3 { font-size: 20px; font-weight: 500; }
.card .meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card .kind { font-size: 12px; color: var(--ink-soft); }

/* Histoire */
.story { position: relative; background: var(--surface); overflow: hidden; }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
.story-text { padding: 70px 40px 70px 0; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.story-text h2 { font-size: clamp(34px, 4vw, 52px); }
.story-text p { max-width: 420px; color: var(--ink-soft); }
.story-text .btn { align-self: flex-start; }
.story-img { min-height: 340px; position: relative; }
.story-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

/* Pied de page */
.footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: 52px 34px; }
.footer h4 { font-family: var(--font-body); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.footer ul a:hover { color: var(--accent); }
.footer .about p { color: var(--ink-soft); max-width: 300px; margin-top: 14px; font-size: 14px; }
.footer .legal { border-top: 1px solid var(--line); padding-block: 18px; font-size: 12.5px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Pages liste */
.page-head { padding-block: 48px 26px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); }
.page-head p { max-width: 560px; color: var(--ink-soft); }
.crumbs { font-size: 12.5px; color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }
.toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding-block: 14px; border-block: 1px solid var(--line); margin-bottom: 30px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border: 1px solid var(--line); font-size: 12.5px; letter-spacing: .06em; transition: all .2s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.select { appearance: none; background: transparent; border: 1px solid var(--line); padding: 9px 36px 9px 14px; font-size: 13px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--bg); color: var(--ink); }
.empty { padding: 70px 0; text-align: center; color: var(--ink-soft); display: grid; gap: 18px; justify-items: center; }
.empty h2 { color: var(--ink); font-size: 34px; }

/* Fiche produit */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding-block: 26px 40px; align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { aspect-ratio: 1; overflow: hidden; border: 1px solid transparent; opacity: .65; background: var(--surface); transition: opacity .2s, border-color .2s; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-img { aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.main-img img { width: 100%; height: 100%; object-fit: cover; animation: fade .5s var(--ease); }
.pdp-info { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.pdp-info h1 { font-size: clamp(36px, 4vw, 52px); }
.pdp-price { font-size: 24px; font-variant-numeric: tabular-nums; }
.pdp-info .lead { color: var(--ink-soft); max-width: 480px; font-size: 16px; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.qty { display: inline-flex; border: 1px solid var(--line); align-items: center; }
.qty button { width: 42px; height: 46px; font-size: 18px; transition: background .2s; }
.qty button:hover { background: var(--surface); }
.qty output { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.buy .btn-solid { flex: 1 1 200px; }
.points { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.points li { display: flex; gap: 10px; align-items: center; }
.points svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; font-weight: 300; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details .body { padding: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }
details .body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* Pages de texte */
.prose { max-width: 720px; padding-block: 10px 50px; display: grid; gap: 18px; font-size: 16px; }
.prose h2 { font-size: 32px; margin-top: 16px; }
.prose p { color: var(--ink-soft); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block: 10px 50px; }
.values div { padding: 26px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.values h3 { font-size: 26px; }
.values p { color: var(--ink-soft); font-size: 14.5px; }

/* Tiroir panier / recherche */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity .3s; }
.drawer.open .scrim { opacity: 1; }
.panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(100vw, 440px); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.open .panel { transform: none; }
.panel header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.panel header h2 { font-size: 28px; }
.panel .scroll { flex: 1; overflow-y: auto; padding: 8px 22px; padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.panel footer { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.ship { font-size: 13px; color: var(--ink-soft); padding: 14px 22px 0; padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.bar { height: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; height: 84px; object-fit: cover; background: var(--surface); }
.line h3 { font-size: 20px; }
.line .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.line .qty button { width: 32px; height: 34px; }
.line .qty output { min-width: 26px; }
.link-btn { font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }
.sum { display: flex; justify-content: space-between; font-size: 15px; }
.sum.total { font-size: 18px; font-weight: 500; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 18px; outline: none; }
.search-box svg { width: 20px; height: 20px; flex: none; }
.result { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; align-items: center; border-bottom: 1px solid var(--line); }
.result img { width: 56px; height: 56px; object-fit: cover; }
.result h3 { font-size: 19px; }
.result small { color: var(--ink-soft); }

/* Commande */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; padding-block: 20px 50px; align-items: start; }
.form { display: grid; gap: 14px; }
.form h2 { font-size: 30px; margin-top: 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select { min-height: 46px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.notice { padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--accent); font-size: 13.5px; color: var(--ink-soft); }
.summary { background: var(--surface); padding: 26px; display: grid; gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.summary .line { padding: 10px 0; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
.summary .line img { width: 64px; height: 64px; }
.done { text-align: center; padding: 70px 0; display: grid; gap: 18px; justify-items: center; max-width: 560px; margin: 0 auto; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ok); color: var(--ok); display: grid; place-items: center; }
.done h1 { font-size: 46px; }
.done p { color: var(--ink-soft); }

/* Notification */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); background: var(--ink); color: var(--bg); padding: 12px 22px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 120; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tablette */
@media (max-width: 1100px) {
  .grid.five { grid-template-columns: repeat(2, 1fr); }
  .grid.five .card:nth-child(5) { display: none; }
  .nav .lnk { display: none; }
  .burger { display: grid; }
  .header .wrap { grid-template-columns: auto 1fr auto; }
  .logo { text-align: center; }
  .nav-left { gap: 0; }
  .trust ul { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .pdp, .checkout { gap: 32px; }
}
/* Mobile */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide-img { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .slide-text { padding: 28px var(--gutter-r) 62px var(--gutter); gap: 16px; }
  .hero-nav { top: auto; bottom: 14px; transform: none; width: 40px; height: 40px; }
  .dots { left: var(--gutter); transform: none; bottom: 20px; background: transparent; padding: 0; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:last-child { grid-column: 1 / -1; }
  section.block { padding-block: 40px; }
  .grid.five { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 22px 12px; grid-template-columns: repeat(2, 1fr); }
  .card h3 { font-size: 18px; }
  .story .wrap { grid-template-columns: 1fr; }
  .story-text { padding: 40px 0 28px; }
  .story-img { aspect-ratio: 4 / 3; min-height: 0; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer .about { grid-column: 1 / -1; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumbs button { width: 64px; flex: none; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .values { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .logo b { font-size: 19px; letter-spacing: .07em; white-space: nowrap; }
  .logo small { display: none; }
  .header .wrap { gap: 4px; min-height: 64px; }
  .icon-btn { width: 38px; height: 38px; }
  .tools { margin-left: 0; gap: 0; }
  .footer .logo small { display: block; font-size: 7.5px; }
  .cat h3 { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.card .media > a { position: absolute; inset: 0; display: block; }
.card h3 a:hover { color: var(--accent); }

/* ===== Couche « moderne et fluide » ===== */
:root { --r: 18px; --shadow: 0 10px 30px -12px rgba(60, 38, 18, .28); }
.header .wrap { min-height: 68px; }
.nav-left { display: flex; }
.burger { display: grid; }
.btn { border-radius: 999px; min-height: 48px; padding: 0 30px; }
.chip { border-radius: 999px; }
.select { border-radius: 999px; }
.field input, .field select { border-radius: 12px; }
.notice { border-radius: 12px; border-left-width: 1px; border: 1px solid var(--line); }
.qty { border-radius: 999px; overflow: hidden; }
.card .media, .cat, .gallery a, .story-img, .main-img, .thumbs button, .values div, .summary, .line img, .result img { border-radius: var(--r); }
.story { background: transparent; }
.story .wrap { background: var(--surface); border-radius: calc(var(--r) + 8px); overflow: hidden; max-width: var(--maxw); }
.story-text { padding: 64px 40px 64px 56px; }
.story-img { border-radius: 0; }
.card { transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card:hover .media { box-shadow: var(--shadow); }
.card .media { transition: box-shadow .5s var(--ease); }
.fav, .quick { border-radius: 999px; }
.quick { left: 12px; right: 12px; bottom: 12px; backdrop-filter: blur(8px); }
.tag { border-radius: 999px; padding: 4px 11px; }
.footer { background: transparent; border-top: 1px solid var(--line); }
.trust ul { padding: 34px 0; }
.trust { border: 0; }
.icon-btn { transition: background .3s var(--ease), transform .3s var(--ease); }
.icon-btn:hover { transform: scale(1.06); }

/* Bandeau d'accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); min-height: clamp(440px, 46vw, 600px); background: var(--surface); overflow: hidden; }
.hero-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 56px clamp(24px, 4vw, 64px) 64px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); position: relative; z-index: 2; }
.hero-text h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; max-width: 9em; }
.hero-text p { max-width: 400px; font-size: 17px; color: var(--ink-soft); }
.hero-text .eyebrow { letter-spacing: .34em; }
.hero-img { position: relative; min-height: 300px; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); animation: heroIn 1.4s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* Réseaux sociaux */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a, .socials span { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.socials svg { width: 19px; height: 19px; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.socials .off { opacity: .4; cursor: default; }
.menu-soc { margin-top: auto; padding-top: 28px; }
.menu nav a { font-size: 30px; border-bottom: 0; padding: 7px 0; transition: color .25s, transform .3s var(--ease); }
.menu nav a:hover { color: var(--accent); transform: translateX(6px); }
.menu nav .socials a { font-size: inherit; padding: 0; border: 1px solid var(--line); }
.menu nav { border-radius: 0 var(--r) var(--r) 0; }
.panel { border-radius: var(--r) 0 0 var(--r); }

@media (max-width: 1100px) { .story .wrap { margin-inline: var(--gutter) var(--gutter-r); width: auto; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; aspect-ratio: 5 / 4; min-height: 0; }
  .hero-img img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); object-position: 55% 25%; }
  .hero-text { padding: 8px var(--gutter-r) 44px var(--gutter); gap: 16px; }
  .story-text { padding: 36px 24px 28px; }
  .story .wrap { margin-inline: var(--gutter) var(--gutter-r); }
  .story-img { margin-inline: 0; }
}

/* ---------- Langues (haut à droite) ---------- */
.topbar .wrap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 26px; }
.topbar-msg { display: inline-flex; align-items: center; }
.lang { position: absolute; right: var(--gutter-r); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; }
.lang button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; letter-spacing: .12em; font-weight: 500; color: var(--ink-soft); transition: background .25s var(--ease), color .25s var(--ease); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.lang i { width: 1px; height: 12px; background: var(--line); }
.flag { width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; vertical-align: 0; margin: 0; color: inherit; }
.topbar svg.flag { width: 20px; height: 14px; margin: 0; vertical-align: 0; }

/* ---------- Menu : lien coffrets ---------- */
.menu nav a.gift-link { color: var(--accent); }

/* ---------- Bannière coffrets (accueil) ---------- */
.promo { padding-block: 24px 56px; }
.promo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.promo-img { aspect-ratio: 4 / 4.3; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.promo-img:hover img { transform: scale(1.03); }
.promo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.promo-text h2 { font-size: clamp(34px, 4vw, 52px); }
.promo-text p { color: var(--ink-soft); max-width: 420px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--surface); font-variant-numeric: tabular-nums; }

/* ---------- Page coffrets ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 44px; }
.tier { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tier img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.tier-body { display: grid; gap: 2px; padding: 16px 18px 4px; }
.tier-body b { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.tier-body span { color: var(--ink-soft); font-size: 13.5px; }
.tier .price { padding: 0 18px 18px; font-size: 22px; }
.tier[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-bottom: 60px; }
.picker .note { color: var(--ink-soft); font-size: 14px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 18px 14px; }
.pick { display: flex; flex-direction: column; gap: 4px; text-align: left; min-width: 0; }
.pick-img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .25s var(--ease), transform .3s var(--ease); }
.pick:hover .pick-img { transform: translateY(-2px); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--ease); }
.pick-check svg { width: 16px; height: 16px; }
.pick[aria-pressed="true"] .pick-img { outline-color: var(--accent); }
.pick[aria-pressed="true"] .pick-check { opacity: 1; transform: none; }
.pick-name { font-family: var(--font-display); font-size: 18px; line-height: 1.15; }
.pick .price { font-size: 13.5px; color: var(--ink-soft); }
.boxpanel { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); background: var(--surface); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.boxpanel h2 { font-size: 30px; }
.boxpanel .count { color: var(--ink-soft); font-size: 14px; margin-top: -8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.slot { aspect-ratio: 1; border-radius: 12px; border: 1px dashed var(--accent-soft); display: grid; place-items: center; color: var(--ink-soft); font-size: 14px; position: relative; overflow: hidden; background: var(--bg); }
.slot.filled { border-style: solid; border-color: transparent; padding: 0; cursor: pointer; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30,20,12,.5); color: #fff; font-style: normal; font-size: 22px; opacity: 0; transition: opacity .2s; }
.slot.filled:hover i, .slot.filled:focus-visible i { opacity: 1; }
.boxpanel .sum.save { color: var(--ok); }
.line-sub { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); margin-top: 4px; }

@media (max-width: 1100px) { .builder { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } }
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; gap: 12px; }
  .tier { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: auto auto; align-items: center; }
  .tier img { grid-row: 1 / 3; height: 100%; aspect-ratio: auto; min-height: 120px; }
  .tier-body { padding: 14px 16px 2px; align-self: end; }
  .tier .price { padding: 0 16px 14px; align-self: start; }
  .builder { grid-template-columns: 1fr; }
  .boxpanel { position: sticky; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); order: 2; padding: 16px; gap: 10px; box-shadow: 0 -8px 30px -10px rgba(60,38,18,.35); z-index: 5; }
  .boxpanel h2 { display: none; }
  .boxpanel .count { margin-top: 0; }
  .slots { grid-template-columns: repeat(var(--n), 1fr); gap: 6px; }
  .slot { border-radius: 9px; font-size: 12px; }
  .boxpanel .sum:not(.total) { display: none; }
  .promo .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar .wrap { justify-content: flex-start; font-size: 11.5px; }
  .topbar-msg svg { display: none; }
  .lang button { padding: 3px 6px; gap: 5px; }
}

/* Accessibilité et pied de page */
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 13px; transition: top .2s; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
#app:focus { outline: none; }
.legal-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.legal-links a:hover { color: var(--accent); }
