/* ===== Tokens ===== */
:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --surface-2: #F4EDE3;
  --text: #1F2A1F;
  --text-muted: #566052;
  --primary: #1F4D2E;
  --primary-hover: #163B22;
  --on-primary: #FFFFFF;
  --accent: #B4235A;
  --accent-soft: #F8E4EB;
  --border: #E5DCCD;
  --border-strong: #CDBFA9;
  --success: #2E7A3E;
  --success-soft: #E6F2E3;
  --warning-soft: #FFF3DD;
  --danger: #B42318;
  --ring: #B4235A;
  --stage-bg: #F1EADF;
  --shadow-sm: 0 1px 2px rgb(31 42 31 / .06), 0 1px 3px rgb(31 42 31 / .05);
  --shadow-md: 0 6px 18px rgb(31 42 31 / .08), 0 2px 6px rgb(31 42 31 / .05);
  --shadow-lg: 0 24px 60px rgb(31 42 31 / .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --z-header: 40;
  --z-bar: 50;
  --z-toast: 1000;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121813;
    --surface: #1A221B;
    --surface-2: #222C23;
    --text: #EDF0E9;
    --text-muted: #A8B3A4;
    --primary: #8CCB9C;
    --primary-hover: #A6DAB3;
    --on-primary: #0D1A10;
    --accent: #F28DB2;
    --accent-soft: #3A2230;
    --border: #2D382E;
    --border-strong: #435144;
    --success: #8CCB9C;
    --success-soft: #1E3324;
    --warning-soft: #33291A;
    --danger: #FF8A80;
    --ring: #F28DB2;
    --stage-bg: #1C241D;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 6px 18px rgb(0 0 0 / .35);
    --shadow-lg: 0 24px 60px rgb(0 0 0 / .55);
    color-scheme: dark;
  }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
/* Fond vivant (js/petals.js) : pétales derrière tout le contenu, jamais cliquables */
.petal-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--primary); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--text-muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link-btn { border: 0; background: none; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; min-height: 44px; font-size: .9rem; }
.link-btn:hover { color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--primary); }
.brand { padding: 4px 0; border-radius: 8px; }
.brand img { display: block; height: 34px; width: auto; }
nav { margin-left: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
@media (min-width: 900px) { .nav-links { display: flex; } }
/* écrans moyens : le menu tient sur une ligne (liens resserrés) */
.nav-links a, .cart-btn { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1099px) { .nav-links a { padding: 0 9px; font-size: .9rem; } }
.cart-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
@media (min-width: 900px) { .cart-btn { margin-left: 8px; } }
.cart-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.cart-label { display: none; }
@media (min-width: 560px) { .cart-label { display: inline; } }
.cart-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .cart-count { color: #2A0F1B; } }
.cart-count.bump { animation: bump .35s var(--ease); }

/* ===== Hero ===== */
.hero { padding: 40px 0 24px; overflow: hidden; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 40px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.eyebrow .i { width: 16px; height: 16px; }
.hero-logo img { display: block; width: min(340px, 78vw); height: auto; margin: 0 0 20px -6px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); color: var(--text); }
.hero h1 em { font-style: italic; color: var(--primary); font-weight: 500; }
.lead { font-size: 1.1rem; color: var(--text-muted); margin-top: 16px; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 500; }
.hero-points .i { color: var(--primary); }
@media (min-width: 640px) { .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 24px; } }
.hero-visual { position: relative; max-width: 460px; width: 100%; margin-inline: auto; padding: 0 0 24px; }
.hero-visual { touch-action: pan-y; }
.hero-art { aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: radial-gradient(95% 62% at 50% 44%, var(--accent-soft), var(--surface-2) 74%); }
/* fleur liquide : la zone de dessin déborde de l'arche pour que les particules puissent s'envoler */
.hero-liquid { position: absolute; inset: -6% -16% 0; z-index: 1; pointer-events: none; }
.liquid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .4s ease; }
.hero-flower { position: absolute; left: 50%; top: 46%; width: 78%; height: auto; max-width: none; transform: translate(-50%, -50%);
  user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 18px 30px rgba(60, 30, 10, .18)); transition: opacity .5s ease; }
.hero-liquid[data-gl="pending"] .hero-flower, .hero-liquid[data-gl="on"] .hero-flower { opacity: 0; }
.hero-liquid[data-gl="on"] .liquid-canvas { opacity: 1; }
.liquid-hint { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; margin: 0;
  white-space: nowrap; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); transition: opacity .8s ease; }
.liquid-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: hintPulse 2.4s ease-in-out infinite; }
.hero-liquid:not([data-gl="on"]) .liquid-hint, .hero-liquid[data-touched="1"] .liquid-hint { opacity: 0; }
@keyframes hintPulse { 0%, 100% { transform: scale(.6); opacity: .45; } 50% { transform: scale(1); opacity: 1; } }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: heroZoom 1.2s var(--ease) both; }
.hero-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); line-height: 1.25; animation: fadeUp .6s var(--ease) both .3s;
}
.hero-float .i { width: 22px; height: 22px; color: var(--accent); }
.hero-float strong { display: block; font-size: .92rem; }
.hero-float small { color: var(--text-muted); font-size: .8rem; }
.hero-float-a { left: -8px; bottom: 64px; }
.hero-float-b { right: -8px; top: 48px; }
@media (min-width: 1100px) { .hero-float-a { left: -40px; } .hero-float-b { right: -32px; } }

/* ===== Steps ===== */
.steps { padding: 8px 0 8px; }
.steps-list { list-style: none; margin: 0; padding: 20px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .steps-list { grid-template-columns: repeat(3, 1fr); padding: 24px 28px; gap: 24px; } }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.steps-list strong { display: block; font-size: 1rem; }
.steps-list p { color: var(--text-muted); font-size: .92rem; }
.step-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--font-display); }
.step-num.sm { width: 28px; height: 28px; font-size: .9rem; }

/* ===== Sections ===== */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--text-muted); margin-top: 8px; }

/* ===== Filters ===== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 500; font-size: .92rem; color: var(--text-muted);
  transition: all .2s var(--ease);
}
.filter-chip:hover { border-color: var(--primary); color: var(--text); }
.filter-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.filter-chip .count { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ===== Composer ===== */
.composer-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .composer-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; } }
.flower-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 479px) { .flower-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  animation: fadeUp .4s var(--ease) both;
}
.card:hover { box-shadow: var(--shadow-md); }
.card.in-bouquet { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .25s var(--ease); }
.card:hover .card-img { transform: scale(1.05); }
.card-badge { box-shadow: var(--shadow-sm); }
.card-badge {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card-badge[hidden] { display: none; }
.card-badge .i { width: 14px; height: 14px; stroke-width: 2.4; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; flex: 1; }
.card-head { display: flex; flex-direction: column; gap: 2px; }
.card-head h3 { font-size: 1.08rem; }
.price { font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; font-size: .95rem; }
.price small { color: var(--text-muted); font-weight: 400; }
.card-desc { color: var(--text-muted); font-size: .88rem; line-height: 1.45; }
@media (max-width: 479px) { .card-desc { display: none; } .card-body { padding: 12px; } }
.variant-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.swatches { display: flex; flex-wrap: wrap; gap: 2px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; padding: 0;
  display: grid; place-items: center;
}
.swatch span { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.swatch:hover span { transform: scale(1.1); }
.swatch[aria-checked="true"] span { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15), 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.variant-label { font-size: .85rem; color: var(--text-muted); }
.sizes { display: flex; gap: 6px; }
.size-btn {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 44px; padding: 4px 8px; line-height: 1.15; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-size: .85rem; font-weight: 500;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.size-btn small { color: var(--text-muted); font-size: .78rem; }
.size-btn:hover { border-color: var(--border-strong); }
.size-btn[aria-checked="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); flex: none; }

.stepper { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.step-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
  transition: background-color .15s var(--ease), transform .12s var(--ease), color .15s;
}
.step-btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.step-btn:active:not(:disabled) { transform: scale(.92); }
.step-btn.plus { background: var(--primary); color: var(--on-primary); }
.step-btn.plus:hover:not(:disabled) { background: var(--primary-hover); color: var(--on-primary); }
.step-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.step-val { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ===== Summary ===== */
.summary { position: relative; }
@media (min-width: 1024px) { .summary { position: sticky; top: 92px; } }
.summary-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md); display: grid; gap: 16px; }
.summary-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.summary-head h3 { font-size: 1.4rem; }
.empty { text-align: center; padding: 16px 8px; color: var(--text-muted); font-size: .92rem; }
.empty .i { width: 36px; height: 36px; margin: 0 auto 8px; color: var(--border-strong); }
.empty strong { display: block; color: var(--text); margin-bottom: 2px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.thumb { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--border); }
.line { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.line:last-child { border-bottom: 0; }
.line-name { min-width: 0; }
.line-name em { font-style: normal; color: var(--text-muted); }
.line-qty { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.line-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.line .icon-btn { width: 36px; height: 36px; margin: -4px 0; }
.line .icon-btn .i { width: 16px; height: 16px; }

.wrap-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.wrap-choice legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); font-size: .85rem; font-weight: 500;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-checked="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.chip .dot { width: 20px; height: 20px; }
.chip small { color: var(--text-muted); font-size: .78rem; }

.totals { margin: 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; color: var(--text-muted); }
.totals dd { margin: 0; color: var(--text); font-weight: 500; }
.totals .grand { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 1.1rem; color: var(--text); font-weight: 700; }
.totals .grand dd { font-weight: 700; font-size: 1.25rem; color: var(--primary); }

.delivery-meter { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .88rem; display: grid; gap: 8px; }
.delivery-meter p { display: flex; align-items: center; gap: 8px; }
.delivery-meter .i { width: 18px; height: 18px; color: var(--primary); }
.delivery-meter.ok { background: var(--success-soft); }
.delivery-meter.ok .i { color: var(--success); }
.meter { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; transition: transform .4s var(--ease); }
.summary-note { font-size: .82rem; color: var(--text-muted); text-align: center; }

/* ===== Inspirations ===== */
.signatures { background: var(--surface-2); }
.sig-head { max-width: 640px; }
.sig-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.sig-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sig {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.sig:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.sig-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.sig-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .6s var(--ease); }
.sig:hover .sig-photo img { transform: scale(1.04); }
.sig-gem {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 19%), conic-gradient(from 30deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff), var(--accent), color-mix(in srgb, var(--accent) 60%, #000), var(--accent));
  box-shadow: 0 0 0 3px #ffffffcc, 0 6px 18px rgb(0 0 0 / .25);
}
.sig-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; flex: 1; }
.sig-tag { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
@media (prefers-color-scheme: dark) { .sig-tag { color: color-mix(in srgb, var(--accent) 45%, #fff); } }
.sig h3 { font-size: 2rem; letter-spacing: .02em; }
.sig-desc { color: var(--text-muted); font-size: .95rem; }
.sig-items { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sig-items li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.sig-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.sig-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.sig-ship { font-size: .8rem; color: var(--text-muted); }
.sig-actions { display: flex; gap: 8px; align-items: center; }
.sig-actions .btn { flex: 1; min-height: 46px; padding: 8px 14px; }
.sig-3d { flex: none; border: 1.5px solid var(--border-strong); color: var(--primary); }
.sig-3d:hover { border-color: var(--primary); }

/* ===== Info / Shop ===== */
.info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.info-card h3 { margin: 14px 0 6px; font-size: 1.25rem; }
.info-card p { color: var(--text-muted); }
.info-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.info-icon .i { width: 24px; height: 24px; }
.shop { padding-top: 0; }
.shop-grid { display: grid; gap: 24px; align-items: start; padding: 32px 16px; border-radius: var(--radius-lg); background: var(--primary); color: var(--on-primary); }
@media (min-width: 768px) { .shop-grid { grid-template-columns: 1.2fr .8fr; padding: 48px; gap: 48px; } }
.shop-grid h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.shop-grid .lead { color: inherit; opacity: .85; }
.shop-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.shop-facts li { display: flex; gap: 12px; align-items: center; }
.shop-facts a { color: inherit; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.shop-side { display: grid; gap: 16px; }
.shop-photo { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--on-primary) 10%, transparent); }
.shop-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.hours-card { background: color-mix(in srgb, var(--on-primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--on-primary) 22%, transparent); border-radius: var(--radius); padding: 20px 24px; }
.hours-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 12px; }
.hours-card dl { margin: 0; display: grid; gap: 8px; }
.hours-card dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--on-primary) 18%, transparent); }
.hours-card dl div:last-child { border: 0; padding: 0; }
.hours-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.site-footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-logo img { display: block; height: 84px; width: auto; }
.shop-seal { width: 96px; height: 96px; margin-bottom: 20px; border-radius: 50%; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
@media (max-width: 1023px) { body.has-bar .site-footer { padding-bottom: 110px; } }

/* ===== Mobile bar ===== */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-bar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-lg);
  animation: slideUp .3s var(--ease);
}
.mobile-bar[hidden] { display: none; }
.mobile-bar-info { display: grid; line-height: 1.25; font-variant-numeric: tabular-nums; }
.mobile-bar-info span { color: var(--text-muted); font-size: .88rem; }
@media (min-width: 1024px) { .mobile-bar { display: none !important; } }

/* ===== Dialogs ===== */
dialog { border: 0; padding: 0; color: var(--text); background: var(--surface); }
dialog::backdrop { background: rgb(14 20 15 / .55); backdrop-filter: blur(4px); }
dialog[open] { animation: dialogIn .28s var(--ease); }

.viewer { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; }
@media (min-width: 1024px) { .viewer { width: min(1200px, calc(100vw - 48px)); height: min(780px, calc(100dvh - 48px)); margin: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); } }
.viewer-layout { display: grid; height: 100%; grid-template-rows: minmax(320px, 58dvh) auto; overflow-y: auto; }
@media (min-width: 1024px) { .viewer-layout { grid-template-rows: none; grid-template-columns: 1fr 360px; overflow: hidden; } }
.viewer-stage { position: relative; background: radial-gradient(circle at 50% 35%, var(--surface) 0%, var(--stage-bg) 75%); min-height: 0; }
.stage { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.stage:active { cursor: grabbing; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 38%, rgb(255 255 255 / .35), transparent 60%), radial-gradient(ellipse at 50% 50%, transparent 55%, rgb(0 0 0 / .06)); }
@media (prefers-color-scheme: dark) { .stage::after { background: radial-gradient(ellipse at 50% 38%, rgb(255 255 255 / .05), transparent 60%), radial-gradient(ellipse at 50% 50%, transparent 55%, rgb(0 0 0 / .25)); } }
.stage canvas { display: block; width: 100% !important; height: 100% !important; }
.stage-loading, .stage-error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--text-muted); font-weight: 500; text-align: center; padding: 24px; }
.stage-loading[hidden], .stage-error[hidden] { display: none; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.stage-hint { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); font-size: .8rem; color: var(--text-muted); pointer-events: none; }
.stage-hint .i { width: 16px; height: 16px; }
@media (max-width: 600px) { .stage-hint { display: none; } }
.stage-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 90%, transparent); font-weight: 500; font-size: .85rem; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.tool-btn:hover { border-color: var(--primary); }
.tool-btn .i { width: 16px; height: 16px; }
.viewer-panel { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-top: 1px solid var(--border); background: var(--surface); }
@media (min-width: 1024px) { .viewer-panel { border-top: 0; border-left: 1px solid var(--border); overflow-y: auto; padding: 24px; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -8px -8px 0 0; }
.panel-head h2 { font-size: 1.6rem; }
@media (max-width: 1023px) {
  .viewer .panel-head .icon-btn { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 12px; z-index: 5; background: var(--surface); box-shadow: var(--shadow-md); color: var(--text); }
}
.viewer-meta { color: var(--text-muted); margin-top: -10px; font-variant-numeric: tabular-nums; }
.viewer-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.viewer-lines .thumb { width: 24px; height: 24px; }
.viewer-lines li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); font-size: .82rem; }
.viewer-actions { display: grid; gap: 8px; margin-top: auto; }
.note { font-size: .78rem; color: var(--text-muted); }

/* Checkout sheet */
.sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
@media (min-width: 900px) { .sheet { width: min(1040px, calc(100vw - 48px)); height: auto; max-height: calc(100dvh - 48px); margin: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); } }
.sheet form { display: flex; flex-direction: column; height: 100%; max-height: inherit; }
.sheet-head, .sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 20px; flex: none; }
.sheet-head { border-bottom: 1px solid var(--border); }
.sheet-head h2 { font-size: 1.4rem; }
.sheet-foot { border-top: 1px solid var(--border); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.sheet-body { overflow-y: auto; padding: 20px; flex: 1; overscroll-behavior: contain; }
.secure { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .85rem; }
.secure .i { width: 16px; height: 16px; }
.checkout-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1fr 300px; gap: 32px; align-items: start; } .checkout-recap { position: sticky; top: 0; } }
.block { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; display: grid; gap: 14px; }
.block legend { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 14px; padding: 0; }
.option-cards { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .option-cards { grid-template-columns: 1fr; } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.option-box {
  display: flex; gap: 12px; align-items: center; height: 100%; padding: 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface); transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.option-box .i { color: var(--primary); width: 24px; height: 24px; }
.option-box strong { display: block; font-size: .95rem; }
.option-box small { color: var(--text-muted); font-size: .82rem; }
.option:hover .option-box { border-color: var(--border-strong); }
.option input:checked + .option-box { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--primary); }
.option input:focus-visible + .option-box { outline: 3px solid var(--ring); outline-offset: 2px; }
.option input:disabled + .option-box { opacity: .5; cursor: not-allowed; }
.option:has(input:disabled) { cursor: not-allowed; }
.callout { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warning-soft); font-size: .88rem; }
.callout.soft { background: var(--surface-2); }
.callout[hidden] { display: none; }
#orderError { margin-top: 12px; color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.grid-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.address { display: grid; gap: 14px; }
.address[hidden] { display: none; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 500; font-size: .92rem; }
.field label small { color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
  background: var(--surface); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; min-height: 0; }
.field-error:empty { display: none; }
.field-help { color: var(--text-muted); font-size: .8rem; text-align: right; }

.checkout-recap { background: var(--surface-2); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.checkout-recap h3 { font-size: 1.15rem; }
.recap-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.recap-lines li { display: flex; justify-content: space-between; gap: 8px; }
.recap-lines span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.confirmation { padding: 48px 24px; text-align: center; display: grid; justify-items: center; gap: 14px; max-width: 560px; margin: auto; min-height: 100%; align-content: center; }
.confirmation[hidden] { display: none; }
.confirmation:focus { outline: none; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); animation: pop .4s var(--ease); }
.confirm-icon .i { width: 36px; height: 36px; stroke-width: 2.4; }
.confirmation h2 { font-size: 1.8rem; }
.confirmation p { color: var(--text-muted); }
.order-num { font-weight: 700; color: var(--text) !important; font-variant-numeric: tabular-nums; letter-spacing: .05em; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-toast);
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px;
  border-radius: 999px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .92rem;
  animation: toastIn .25s var(--ease);
}
.toast[hidden] { display: none; }
.toast button { border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; min-height: 40px; padding: 0 10px; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

/* ===== Motion ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 50% { transform: scale(1.25); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes heroZoom { from { transform: scale(1.08); opacity: 0; } }

/* ===== Mouvements (js/motion.js) ===== */
/* bandeau défilant : deux copies identiques qui glissent en boucle */
.ribbon { background: var(--primary); color: var(--on-primary); overflow: hidden; padding: 12px 0; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 42s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ribbon-list li { display: flex; align-items: center; white-space: nowrap; font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.ribbon-list li::after { content: ""; width: 7px; height: 7px; margin: 0 28px; border-radius: 50% 0; background: var(--accent-soft); transform: rotate(45deg); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* accueil : le titre monte mot par mot, puis le texte, les boutons et les arguments */
/* masque par le bas seulement (clip-path) : l'italique et les jambages ne sont pas rognés */
.motion-ready .hero h1 .w { display: inline-block; vertical-align: bottom; padding-bottom: .2em; margin-bottom: -.2em; clip-path: inset(-.5em -.3em 0 -.3em); }
.motion-ready .hero h1 .w > span { display: inline-block; animation: wordUp .7s var(--ease) both; }
.motion-ready .hero .lead { animation: slideUp .6s var(--ease) both; animation-delay: var(--hero-after, .5s); }
.motion-ready .hero-ctas { animation: slideUp .6s var(--ease) both; animation-delay: calc(var(--hero-after, .5s) + .1s); }
.motion-ready .hero-points li { animation: slideUp .5s var(--ease) both; animation-delay: calc(var(--hero-after, .5s) + .2s); }
.motion-ready .hero-points li:nth-child(2) { animation-delay: calc(var(--hero-after, .5s) + .27s); }
.motion-ready .hero-points li:nth-child(3) { animation-delay: calc(var(--hero-after, .5s) + .34s); }
@keyframes wordUp { from { transform: translateY(105%); } }
/* étiquettes de l'accueil : flottent doucement */
.hero-float-a { animation: fadeUp .6s var(--ease) both .3s, bob 6s ease-in-out 1.2s infinite; }
.hero-float-b { animation: fadeUp .6s var(--ease) both .45s, bob 7s ease-in-out 1.6s infinite reverse; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.hero-ctas .btn-primary .i { transition: transform .2s var(--ease); }
.hero-ctas .btn-primary:hover .i { transform: translateX(4px); }

/* apparitions au défilement */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.motion-ready [data-reveal].is-in { opacity: 1; transform: none; }
.motion-ready .flower-grid:not(.is-in) .card { animation-play-state: paused; }

/* en-tête : une ombre apparaît dès qu'on descend */
.site-header { transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* envol vers le panier et pétales */
.fly-ghost { position: fixed; z-index: 400; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-md); border: 2px solid var(--surface); }
.cart-count.catch { animation: catch .45s var(--ease); }
@keyframes catch { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }
.petal { position: fixed; z-index: 400; width: 12px; height: 9px; border-radius: 80% 0 80% 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== Crédits ===== */
.credits { margin-top: 16px; font-size: .82rem; }
.credits summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--text-muted); }
.credits summary:hover { color: var(--text); }
.credits p { margin-bottom: 8px; }
.credits ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; columns: 1; }
.credits a { color: var(--text-muted); text-underline-offset: 2px; }
.credits a:hover { color: var(--accent); }
