/* =========================================================
   Tiramisu & Lasagnes — mini-site de commande
   Charte : crème / or / noir, Playfair Display + Allura + Jost
   ========================================================= */
:root {
  --paper: #FBF8F3;
  --cream: #F4EDE2;
  --cream-2: #EDE3D3;
  --ink: #1C1813;
  --ink-2: #4A4238;
  --muted: #7A6F61;
  --line: #E4D8C5;
  --gold: #A87A2F;          /* or lisible sur crème (texte) */
  --gold-bright: #D4AA55;   /* or décoratif / boutons */
  --gold-soft: #F1E2C2;
  --rose: #B66E73;
  --rose-soft: #F5E4E2;
  --veg: #5E8A3F;
  --danger: #B3402E;
  --ok: #3E7A4A;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 10px 30px -12px rgba(60, 40, 10, .18);
  --shadow-lg: 0 30px 60px -25px rgba(60, 40, 10, .35);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Allura", "Brush Script MT", cursive;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::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 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); }
.script { font-family: var(--script); font-weight: 400; color: var(--gold); letter-spacing: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: .6rem; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.btn--gold { background: var(--gold-bright); color: var(--ink); }
.btn--gold:hover { background: #C99B42; box-shadow: 0 10px 24px -12px rgba(168,122,47,.8); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 0 2em; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 243, .88); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(228,216,197,.7); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.brand__name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.brand__name em { font-style: normal; color: var(--gold); }
.topbar__nav { display: flex; align-items: center; gap: 1.6rem; }
.topbar__nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.topbar__nav a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; background:
  radial-gradient(1100px 500px at 85% 0%, var(--gold-soft) 0%, transparent 60%),
  linear-gradient(var(--paper), var(--cream)); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 600; }
.hero h1 .script { font-size: 1.3em; line-height: .8; display: inline-block; transform: translateY(.06em); }
.lead { font-size: 1.12rem; color: var(--ink-2); margin: 1.2rem 0 1.8rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--ink-2); font-size: .93rem; }
.hero__facts li { position: relative; padding-left: 1rem; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); }
.hero__facts strong { color: var(--ink); font-weight: 600; }
.hero__visual { position: relative; height: 470px; }
.hero__img { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--a { inset: 0 0 32% 12%; }
.hero__img--b { left: 0; bottom: 0; width: 42%; height: 58%; transform: rotate(-3deg); }
.hero__img--c { right: 4%; bottom: 2%; width: 42%; height: 40%; transform: rotate(2deg); }
.hero__stamp { position: absolute; left: 34%; top: 56%; width: 118px; height: 118px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: var(--shadow-lg); transform: rotate(-8deg); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.hero__stamp .script { font-size: 1.85rem; color: var(--gold-bright); text-transform: none; letter-spacing: 0; line-height: 1; }

/* ---------- Comment ça marche ---------- */
.how { margin-top: -6px; position: relative; z-index: 2; }
.how__list { list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.how__list li { display: flex; gap: .85rem; align-items: flex-start; }
.how__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; background: var(--gold-soft); color: var(--gold); }
.how__list strong { display: block; font-weight: 600; }
.how__list p { font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head--center .muted { margin-top: .6rem; }

.universes { padding: 80px 20px 30px; }
.universes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ucard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; box-shadow: var(--shadow); cursor: pointer; border: 0; padding: 0; text-align: left; }
.ucard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.ucard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,14,6,0) 30%, rgba(20,14,6,.82) 100%); }
.ucard:hover img { transform: scale(1.05); }
.ucard__body { padding: 20px 22px; }
.ucard h3 { font-size: 1.45rem; color: #fff; }
.ucard p { font-size: .9rem; opacity: .9; margin-top: .3rem; line-height: 1.4; }
.ucard__go { display: inline-block; margin-top: .7rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }

/* ---------- Commande ---------- */
.order { padding: 70px 0 90px; }
.stepper { list-style: none; margin: 0 auto 30px; padding: 0; display: flex; justify-content: center; gap: 6px; max-width: 760px; counter-reset: s; }
.stepper li { flex: 1; position: relative; }
.stepper li + li::before { content: ""; position: absolute; top: 19px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--gold-bright); }
.stepper button { position: relative; z-index: 1; width: 100%; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); padding: 0; }
.stepper button span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font-weight: 600; color: var(--muted); transition: all .2s; }
.stepper li.is-current button { color: var(--ink); font-weight: 600; }
.stepper li.is-current button span { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li.is-done button span { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.stepper li.is-locked button { cursor: default; }

.order__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.order__main { min-width: 0; }
.step { display: none; border: 0; margin: 0; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.step.is-active { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; padding: 0; margin-bottom: 1.2rem; float: left; width: 100%; }
.step__title + * { clear: both; }
.step__intro { margin: -.6rem 0 1.2rem; }
.step__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- Champs ---------- */
.field { margin-bottom: 20px; min-width: 0; }
.label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .45rem; }
.req { color: var(--rose); font-weight: 600; }
.hint { font-size: .84rem; color: var(--muted); margin-top: .35rem; }
.error { font-size: .85rem; color: var(--danger); margin-top: .35rem; min-height: 0; }
.error:empty { display: none; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s, box-shadow .15s, background .15s; appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237A6F61' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-bright); background: #fff; box-shadow: 0 0 0 4px rgba(212, 170, 85, .18); }
.is-invalid { border-color: var(--danger) !important; background: #FFF8F6 !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 0 18px; }
.panel { background: var(--cream); border-radius: var(--radius-sm); padding: 18px 18px 2px; margin-bottom: 20px; }
.notice { font-size: .88rem; background: var(--gold-soft); color: #6B4C17; border-radius: 8px; padding: 10px 12px; margin: -6px 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; gap: .5em; min-height: 42px; padding: 0 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .93rem; transition: all .15s; }
.chip:hover > span { border-color: var(--gold-bright); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.chips--icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chips--icons .chip > span { width: 100%; min-height: 56px; border-radius: 14px; padding: 0 14px; }
.chips--icons svg { width: 22px; height: 22px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chips--icons input:checked + span svg { stroke: var(--gold-bright); }

.cards-radio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rcard { position: relative; cursor: pointer; }
.rcard input { position: absolute; opacity: 0; pointer-events: none; }
.rcard > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: all .15s; }
.rcard svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.rcard > span > div { display: flex; flex-direction: column; gap: 2px; }
.rcard strong { font-weight: 600; }
.rcard small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.rcard:hover > span { border-color: var(--gold-bright); }
.rcard input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.rcard input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }

/* ---------- Onglets univers ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.tab { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .6rem; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .93rem; font-weight: 500; transition: all .15s; }
.tab img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.tab:hover { border-color: var(--gold-bright); }
.tab[aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold-bright); color: var(--ink); font-size: .75rem; font-weight: 600; display: inline-grid; place-items: center; }

.universe-pane { animation: rise .3s ease; }
.universe-pane__head { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 14px; background: var(--cream); margin-bottom: 22px; }
.universe-pane__head img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.universe-pane__head h3 { font-size: 1.4rem; }
.universe-pane__head p { color: var(--ink-2); font-size: .93rem; margin-top: .2rem; }
.universe-pane[data-accent=rose] .universe-pane__head { background: var(--rose-soft); }

.sec { margin-bottom: 28px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.sec__head h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.sec__pack { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.sec__note { font-size: .88rem; color: var(--muted); margin: 8px 0 4px; }

.prod { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.prod:last-child { border-bottom: 0; }
.prod.has-qty .prod__name { color: var(--ink); }
.prod.has-qty { background: linear-gradient(90deg, rgba(241,226,194,.5), transparent 70%); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.prod__info { min-width: 0; }
.prod__name { font-weight: 500; color: var(--ink-2); display: inline; }
.prod__desc { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.prod__price { font-family: var(--serif); font-weight: 600; white-space: nowrap; text-align: right; }
.prod__price small { display: block; font-family: var(--sans); font-weight: 400; font-size: .74rem; color: var(--muted); }
.veg { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--veg); background: #EAF2E3; border-radius: 999px; padding: 1px 8px 1px 5px; margin-left: 6px; vertical-align: 2px; }
.veg svg { width: 12px; height: 12px; }

/* Produit avec photo + variantes */
.pcard { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.pcard:last-child { border-bottom: 0; }
.pcard__img { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; background: var(--cream); }
.pcard__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pcard__name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.pcard__variants { margin-top: 6px; }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.vrow + .vrow { border-top: 1px dotted var(--line); }
.vrow__label { font-size: .93rem; color: var(--ink-2); }
.vrow.has-qty .vrow__label { color: var(--ink); font-weight: 500; }

/* Stepper quantité */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); height: 38px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--ink-2); border-radius: 50%; }
.qty button:hover { background: var(--gold-soft); color: var(--ink); }
.qty button:disabled { opacity: .3; cursor: default; background: none; }
.qty input { width: 40px; height: 36px; text-align: center; border: 0; background: transparent; padding: 0; min-height: 0; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; background: transparent; }
.has-qty .qty { border-color: var(--ink); background: #fff; }

/* Configurateur (gâteaux, menus) */
.config { scroll-margin-top: 90px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 14px 0; background: var(--paper); }
.config__head { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.config__head img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.config__head h5 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: 0; }
.config__head p { font-size: .87rem; color: var(--muted); }
.config__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.config__fields .field { margin-bottom: 12px; }
.config__fields .field--wide { grid-column: 1 / -1; }
.config__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.config__price { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.config__price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: .3em; }
.config__added { font-size: .85rem; color: var(--ok); }
.config__actions { display: flex; align-items: center; gap: 10px; }
.config .label { font-size: .88rem; }

.field--free { margin-top: 8px; padding: 18px; background: var(--cream); border-radius: 14px; }

/* ---------- Panier ---------- */
.cart { position: sticky; top: 88px; }
.cart__inner { background: var(--ink); color: #F3EBDD; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg); }
.cart__head { display: flex; justify-content: space-between; align-items: center; }
.cart__head h3 { font-size: 1.3rem; color: #fff; }
.cart__close { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.cart__event { font-size: .85rem; color: #C9BBA5; margin: .5rem 0 0; line-height: 1.5; }
.cart__event:empty { display: none; }
.cart__list { list-style: none; margin: 14px 0 0; padding: 0; max-height: 46vh; overflow-y: auto; scrollbar-width: thin; }
.cart__list li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; align-items: start; }
.cart__q { font-weight: 600; color: var(--gold-bright); min-width: 28px; }
.cart__n small { display: block; color: #A99B85; font-size: .78rem; line-height: 1.35; }
.cart__p { white-space: nowrap; }
.cart__rm { grid-column: 2 / 4; justify-self: start; background: none; border: 0; padding: 0; color: #A99B85; font-size: .78rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cart__rm:hover { color: #fff; }
.cart__empty { color: #A99B85; font-size: .9rem; margin-top: 14px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(212,170,85,.5); }
.cart__total span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #C9BBA5; }
.cart__total strong { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-bright); }
.cart__note { font-size: .78rem; color: #A99B85; margin-top: 6px; }

.cartbar { display: none; }

/* ---------- Récap ---------- */
.recap-block { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.recap-block__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.recap-block h4 { font-family: var(--serif); font-size: 1.15rem; }
.recap-edit { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.recap-dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
.recap-dl dt { color: var(--muted); }
.recap-dl dd { margin: 0; }
.recap-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.recap-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.recap-table td { padding: 9px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.recap-table td small { display: block; color: var(--muted); font-size: .82rem; }
.recap-table .num { text-align: right; white-space: nowrap; padding-left: 10px; }
.recap-table tfoot td { border-bottom: 0; padding-top: 14px; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.recap-free { white-space: pre-wrap; background: var(--cream); border-radius: 10px; padding: 12px 14px; font-size: .93rem; }
.recap-warn { font-size: .88rem; background: var(--gold-soft); color: #6B4C17; border-radius: 10px; padding: 12px 14px; }

.alert { background: #FBEAE6; color: var(--danger); border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin-top: 12px; }

/* ---------- Succès ---------- */
.success { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 30px; text-align: center; }
.success:focus { outline: none; }
.success__badge { width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.success__script { font-size: 3.2rem; line-height: 1.1; }
.success h3 { font-size: 1.7rem; margin-bottom: .8rem; }
.success p { max-width: 520px; margin: .4rem auto 0; }
.success__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Infos ---------- */
.infos { padding: 80px 0; background: var(--cream); }
.infos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info { background: var(--paper); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); }
.info__icon { width: 40px; height: 40px; stroke: var(--gold); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.info h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.info p { font-size: .93rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D9CDB8; padding: 54px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); font-weight: 500; margin-bottom: .8rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.brand--light .brand__name { color: #fff; }
.footer__script { font-size: 2rem; margin-top: .6rem; color: var(--gold-bright); }
.footer__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #8F826E; }

/* =================== Responsive =================== */
@media (max-width: 1020px) {
  .order__layout { grid-template-columns: 1fr; }
  .cart { position: fixed; inset: auto 0 0 0; top: auto; z-index: 60; transform: translateY(105%); transition: transform .3s ease; padding: 0; }
  .cart.is-open { transform: none; }
  .cart__inner { border-radius: 22px 22px 0 0; max-height: 82vh; overflow-y: auto; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .cart__close { display: block; }
  .cart__list { max-height: none; }
  .cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; transform: translateY(150%); transition: transform .3s ease; font-size: .95rem; }
  .cartbar.is-visible { transform: none; }
  .cartbar__count { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-bright); color: var(--ink); font-weight: 700; }
  .cartbar__label { flex: 1; text-align: left; }
  .cartbar__total { font-family: var(--serif); color: var(--gold-bright); font-size: 1.1rem; }
  body.cart-open::after { content: ""; position: fixed; inset: 0; background: rgba(20,14,6,.45); z-index: 55; }
  .order { padding-bottom: 120px; }
  .infos__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 380px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar__nav a:not(.btn) { display: none; }
  .brand__name { font-size: 1rem; }
  .hero { padding-top: 32px; }
  .hero__visual { height: 300px; }
  .hero__stamp { width: 92px; height: 92px; font-size: .55rem; }
  .hero__stamp .script { font-size: 1.45rem; }
  .how__list { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .universes { padding-top: 56px; }
  .universes__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ucard { min-height: 180px; }
  .ucard__body { padding: 14px; }
  .ucard h3 { font-size: 1.15rem; }
  .ucard p { display: none; }
  .step { padding: 22px 16px; border-radius: 16px; }
  .step__title { font-size: 1.35rem; }
  .grid-2, .grid-3, .config__fields { grid-template-columns: 1fr; }
  .chips--icons { grid-template-columns: 1fr 1fr; }
  .cards-radio { grid-template-columns: 1fr; }
  .rcard > span { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .rcard svg { margin: 0; }
  .rcard > span > div { display: flex; flex-direction: column; }
  .stepper button { font-size: .72rem; }
  .stepper button span { width: 34px; height: 34px; }
  .stepper li + li::before { top: 16px; }
  .universe-pane__head { grid-template-columns: 80px 1fr; gap: 12px; padding: 10px; }
  .universe-pane__head img { width: 80px; height: 70px; }
  .universe-pane__head h3 { font-size: 1.15rem; }
  .pcard { grid-template-columns: 72px 1fr; gap: 12px; }
  .pcard__img { width: 72px; height: 72px; }
  .prod { grid-template-columns: 1fr auto; }
  .prod__price { grid-column: 1; grid-row: 2; text-align: left; }
  .prod__price small { display: inline; margin-left: .3em; }
  .prod .qty { grid-column: 2; grid-row: 1 / 3; }
  .config__head { grid-template-columns: 70px 1fr; }
  .config__head img { width: 70px; height: 70px; }
  .recap-dl { grid-template-columns: 1fr; gap: 0; }
  .recap-dl dd { margin-bottom: 8px; }
  .step__nav .btn { padding: 0 1.1em; }
  .infos__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Libellés courts sur mobile */
.btn { white-space: nowrap; }
.brand__name { white-space: nowrap; }
.sm-only { display: none; }
@media (max-width: 760px) { .lg-only { display: none; } .sm-only { display: inline; } }
@media (max-width: 360px) { .brand__name { font-size: .9rem; } .brand__logo { width: 38px; height: 38px; } }

/* ---------- Galerie ---------- */
.topbar__nav a.is-current { color: var(--ink); font-weight: 500; }

.gallery { padding: 56px 0 80px; }
.gallery__title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.gallery__title .script { font-size: 1.3em; line-height: .8; display: inline-block; transform: translateY(.06em); }
.gallery__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 28px; }
.gallery__filters .gchip { display: inline-flex; align-items: center; gap: .45em; min-height: 42px; padding: 0 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.gallery__filters .gchip span { font-size: .78rem; color: var(--muted); }
.gallery__filters .gchip:hover { border-color: var(--ink-2); }
.gallery__filters .gchip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery__filters .gchip.is-active span { color: var(--gold-bright); }
.gallery__grid { columns: 3 260px; column-gap: 16px; }
.gallery__loading, .gallery__grid .alert { column-span: all; text-align: center; }
.gphoto { break-inside: avoid; margin: 0 0 16px; }
.gphoto__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--cream); box-shadow: var(--shadow); }
.gphoto__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gphoto__btn:hover img { transform: scale(1.04); }
.gphoto figcaption { padding: 8px 2px 0; font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
.gphoto figcaption span { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.gallery__empty { column-span: all; text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.gallery__empty .script { font-size: 2.4rem; }
.gallery__cta { margin-top: 56px; text-align: center; padding: 40px 24px; border-radius: var(--radius); background: var(--cream); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.gallery__cta .script { font-size: 2.6rem; line-height: 1; }
.gallery__cta p:not(.script) { max-width: 460px; color: var(--ink-2); }
.no-scroll { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(16, 12, 8, .94); color: #fff; }
.lightbox::backdrop { background: rgba(16, 12, 8, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { margin: 0; width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 72px 56px; }
.lightbox__fig img { width: 100%; height: calc(100vh - 170px); height: calc(100dvh - 170px); object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
.lightbox__fig figcaption { text-align: center; font-size: .98rem; color: #EDE3D3; max-width: 680px; }
.lightbox__fig figcaption span { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); margin-top: 3px; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.18); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
.lightbox__count { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-size: .85rem; letter-spacing: .12em; color: #C9BBA3; }
@media (max-width: 760px) {
  .gallery { padding: 36px 0 56px; }
  .gallery__grid { columns: 2; column-gap: 10px; }
  .gphoto { margin-bottom: 10px; }
  .gallery__filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -20px 20px; padding: 0 20px 4px; scrollbar-width: none; }
  .gallery__filters .gchip { flex: none; }
  .lightbox__fig { padding: 60px 10px 90px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); }
}

/* ---------- Fichiers d'inspiration ---------- */
.field--files { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .3s, box-shadow .3s, background .3s; }
.field--files.is-highlight { border-color: var(--gold-bright); background: #FFFBF3; box-shadow: 0 0 0 4px rgba(212, 170, 85, .15); }
.field--files .hint { margin: 2px 0 12px; font-size: .9rem; color: var(--muted); }
.dropzone { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; background: var(--paper); transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-over, #inspiration:focus-visible + .files, .dropzone:focus-within { border-color: var(--gold-bright); background: #FFF8EA; }
.dropzone svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--gold-soft); stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { display: block; font-weight: 500; }
.dropzone small { display: block; color: var(--muted); font-size: .82rem; }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.files:empty { display: none; }
.file { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.file img, .file__pdf { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.file__pdf { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--gold); }
.file.is-busy .file__pdf { animation: tl-pulse 1s ease-in-out infinite; }
@keyframes tl-pulse { 50% { opacity: .5; } }
.file__name { display: block; padding: 6px 9px; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__name small { display: block; color: var(--muted); font-size: .74rem; }
.file__rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(28, 24, 19, .75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.pane-tip { display: block; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink-2); font-size: .92rem; text-decoration: none; }
.pane-tip strong { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.recap-files { display: flex; flex-wrap: wrap; gap: 8px; }
.recap-files img, .recap-files__pdf { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.recap-files__pdf { display: grid; place-content: center; text-align: center; background: var(--cream); font-family: var(--serif); font-weight: 600; color: var(--gold); font-size: .95rem; padding: 4px; }
.recap-files__pdf small { font-family: var(--sans); font-weight: 400; font-size: .6rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 76px; }
.btn.is-progress { background-image: linear-gradient(90deg, rgba(212, 170, 85, .55) var(--progress, 0%), transparent var(--progress, 0%)); }

/* ---------- En-tête téléphone : menu hamburger ---------- */
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 30px -18px rgba(60, 40, 10, .35); }
.mnav[hidden] { display: none; }
.mnav__inner { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.mnav__inner > a { padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.mnav__inner > a[aria-current="page"] { color: var(--gold); }
.mnav__contact { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.mnav__contact a { color: var(--ink-2); }
@media (max-width: 760px) {
  .topbar__inner { height: 64px; gap: 10px; }
  .topbar__nav { gap: 8px; }
  .topbar__nav a:not(.btn) { display: none; }
  .menu-btn { display: inline-flex; }
  .brand { gap: .55rem; min-width: 0; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__name { display: flex; flex-direction: column; font-size: .98rem; line-height: 1.05; white-space: normal; }
  .topbar__nav .btn--small { min-height: 42px; padding: 0 1em; }
}
@media (max-width: 340px) { .brand__name { font-size: .88rem; } .topbar__nav .btn--small { padding: 0 .8em; font-size: .85rem; } }
@media (min-width: 761px) { .mnav { display: none !important; } }

/* Photos des catégories et des produits */
.img-empty { display: block; background: linear-gradient(135deg, var(--cream-2), var(--gold-soft)); }
.ucard > .img-empty { position: absolute; inset: 0; z-index: -2; }
.universe-pane__head.is-noimg { grid-template-columns: 1fr; }
.sec__banner { margin: 0 0 14px; border-radius: 14px; overflow: hidden; height: 150px; background: var(--cream); }
.sec__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod--img { grid-template-columns: 72px 1fr auto auto; }
.prod__img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--cream); grid-row: span 1; }
@media (max-width: 760px) {
  .sec__banner { height: 110px; }
  .prod--img { grid-template-columns: 56px 1fr auto; }
  .prod--img .prod__img { width: 56px; height: 56px; grid-column: 1; grid-row: 1 / 3; }
  .prod--img .prod__info { grid-column: 2; }
  .prod--img .prod__price { grid-column: 2; grid-row: 2; }
  .prod--img .qty { grid-column: 3; grid-row: 1 / 3; }
}
.cart__fixed { grid-column: 2 / 4; justify-self: start; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-bright); }

/* Avis clients */
.reviews { padding: 72px 0; background: var(--cream); }
.reviews__score { margin-top: 10px; color: var(--ink-2); }
.reviews__stars { color: var(--gold-bright); letter-spacing: 2px; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 30px; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.review blockquote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review figcaption b { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: .85rem; flex: none; }
.review figcaption span { display: grid; }
.review figcaption small { color: var(--muted); font-size: .85rem; }
.review__fav { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); text-decoration: none; align-self: flex-start; font-weight: 600; font-size: .92rem; }
.review__fav:hover { border-color: var(--gold-bright); }
.review__fav img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.review__fav span { display: grid; line-height: 1.25; padding-left: 2px; }
.review__fav small { font-weight: 400; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
