/* ==========================================================================
   My Qase — feuille de style du site public
   Palette : bordeaux (marque), mauve, rose cendré, crème, sauge, champagne
   ========================================================================== */

:root {
  --wine: #6B1E26;
  --wine-2: #561820;
  --wine-d: #3A1519;
  --mauve: #8E4A50;
  --rose: #D4ADA8;
  --blush: #EFE3DD;
  --cream: #F7F1EB;
  --sand: #E9DED6;
  --sage: #7C8B6A;
  --sage-d: #56634A;
  --sage-l: #DFE5D6;
  --gold: #B8895A;
  --gold-l: #EAD7BE;
  --ink: #2B1618;
  --muted: #6E5557;
  --line: rgba(58, 21, 25, .12);
  --white: #FFFDFB;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 34px;
  --shadow: 0 30px 60px -30px rgba(58, 21, 25, .35);
  --shadow-sm: 0 12px 28px -16px rgba(58, 21, 25, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --hdr: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-d); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 999; background: var(--wine); color: var(--cream); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.error { color: #A3222E; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--sage-l); color: var(--sage-d); font-size: .8rem; font-weight: 600; }

/* ---------- Typographie ---------- */
.h1, .h2, .h3, .h4, .h5, h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; margin: 0 0 .4em; color: var(--ink); font-variation-settings: "opsz" 120; }
.h1 { font-size: clamp(2.7rem, 6.6vw, 6rem); }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.h4 { font-size: 1.45rem; }
.h5 { font-size: 1.15rem; }
.h1 em, .h2 em, .h3 em { font-style: italic; font-weight: 400; color: var(--wine); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 56ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); margin-bottom: 18px; }
.eyebrow--pill { padding: 8px 16px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.eyebrow--pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(124, 139, 106, .6); animation: pulse 2.4s infinite; }
.eyebrow--light { color: var(--gold-l); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(124, 139, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 139, 106, 0); } }

/* Titres découpés mot à mot */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
[data-split].is-in .w > span { transform: none; }

/* ---------- Boutons ---------- */
.btn { --bg: var(--wine); --fg: var(--cream); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 650; font-size: .98rem; text-decoration: none; letter-spacing: .01em; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 60%); opacity: 0; transition: opacity .3s; }
.btn:hover::before { opacity: 1; }
.btn svg { font-size: 1.15em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--wine { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--wine) 70%, transparent); }
.btn--wine:hover { --bg: var(--wine-2); color: var(--cream); box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--wine) 80%, transparent); }
.btn--line { --bg: transparent; --fg: var(--wine); border-color: var(--wine); }
.btn--line:hover { --bg: var(--wine); --fg: var(--cream); color: var(--cream); }
.btn--ghost { --bg: var(--white); --fg: var(--wine); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn--light { --bg: var(--cream); --fg: var(--wine); }
.btn--light:hover { --bg: var(--white); color: var(--wine); }
.btn--sage { --bg: var(--sage); --fg: var(--white); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.04rem; }
.btn--xl { min-height: 66px; padding: 0 40px; font-size: 1.12rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--fg); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; padding: 0; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--wine); text-decoration: none; position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 26px; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Intro, progression, curseur ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--wine); animation: introOut 1s var(--ease-in-out) 1.1s forwards; pointer-events: none; }
.intro__inner { overflow: hidden; }
.intro img { width: min(260px, 60vw); height: auto; animation: introLogo 1.1s var(--ease) both; }
@keyframes introLogo { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); } }
.intro { clip-path: inset(0 0 0 0); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--wine), var(--mauve), var(--gold)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.cursor { position: fixed; left: 0; top: 0; z-index: 300; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--wine); pointer-events: none; opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s; mix-blend-mode: multiply; }
.cursor.is-on { opacity: .55; }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(212, 173, 168, .35); border-color: transparent; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Bandeau d'annonce ---------- */
.announce { background: var(--wine-d); color: var(--blush); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; height: 38px; overflow: hidden; position: relative; }
.announce__track { position: relative; height: 100%; }
.announce__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; opacity: 0; transform: translateY(100%); transition: transform .7s var(--ease), opacity .7s; }
.announce__item.is-active { opacity: 1; transform: none; }
.announce__item.is-out { opacity: 0; transform: translateY(-100%); }

/* ---------- En-tête ---------- */
.hdr { position: sticky; top: 0; z-index: 100; transition: transform .5s var(--ease), background .4s, box-shadow .4s; }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr); transition: height .4s var(--ease); }
.hdr.is-scrolled { background: rgba(247, 241, 235, .82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-scrolled .hdr__in { height: 64px; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__logo { flex-shrink: 0; }
.hdr__logo img { height: 44px; width: auto; max-width: none; flex-shrink: 0; transition: height .4s var(--ease); }
.hdr.is-scrolled .hdr__logo img { height: 38px; }
.hdr__word { font-family: var(--script); font-size: 2.2rem; color: var(--wine); }
.hdr__nav { display: flex; gap: clamp(4px, .8vw, 14px); margin-left: 12px; }
.hdr__nav a { position: relative; padding: 8px 14px; border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .3s, color .3s; }
.hdr__nav a:hover, .hdr__nav a.is-current { background: var(--blush); color: var(--wine); }
.hdr__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hdr__search { position: relative; display: flex; align-items: center; }
.hdr__search input { width: 0; opacity: 0; border: 1px solid var(--line); background: var(--white); border-radius: 99px; height: 42px; padding: 0 42px 0 16px; transition: width .45s var(--ease), opacity .3s; }
.hdr__search:focus-within input, .hdr__search:hover input { width: 210px; opacity: 1; }
.hdr__search button { position: absolute; right: 0; width: 42px; height: 42px; border: 0; background: none; display: grid; place-items: center; font-size: 1.15rem; color: var(--ink); }
.hdr__lang { display: flex; padding: 3px; border-radius: 99px; background: var(--blush); margin: 0 4px; }
.hdr__lang a { padding: 5px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; color: var(--muted); text-decoration: none; letter-spacing: .06em; transition: all .3s; }
.hdr__lang a.is-on { background: var(--white); color: var(--wine); box-shadow: var(--shadow-sm); }
.hdr__icon { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); font-size: 1.3rem; transition: background .3s, color .3s, transform .3s var(--ease); }
.hdr__icon:hover { background: var(--blush); color: var(--wine); }
.hdr__count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--wine); color: var(--cream); font-size: .68rem; font-weight: 700; display: grid; place-items: center; animation: pop .5s var(--ease); }
.hdr__cart.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92); } }
@keyframes pop { from { transform: scale(0); } }
.hdr__burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.hdr__burger span { position: absolute; left: 11px; right: 11px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.hdr__burger span:first-child { top: 17px; }
.hdr__burger span:last-child { top: 25px; }
.menu-open .hdr__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .hdr__burger span:last-child { top: 21px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 0; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; z-index: -1; background: var(--cream); padding: calc(var(--hdr) + 28px) 28px 32px; display: flex; flex-direction: column; gap: 26px; clip-path: circle(0 at 40px 40px); transition: clip-path .8s var(--ease-in-out); visibility: hidden; }
.menu-open .mnav { clip-path: circle(150% at 40px 40px); visibility: visible; }
.menu-open { overflow: hidden; }
/* Le flou de l'en-tête crée un nouveau repère pour les éléments fixes : on le retire quand le menu est ouvert, sinon le menu ne couvre que la hauteur de l'en-tête. */
.menu-open .hdr, .menu-open .hdr.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; background: var(--cream); box-shadow: none; }
.mnav__links { display: flex; flex-direction: column; gap: 6px; }
.mnav__links a { font-family: var(--serif); font-size: clamp(1.45rem, 6.4vw, 2.2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-decoration: none; line-height: 1.15; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease); transition-delay: calc(.25s + var(--i) * 60ms); }
.menu-open .mnav__links a { opacity: 1; transform: none; }
.mnav__links a:hover { color: var(--wine); font-style: italic; }
.mnav__search input { width: 100%; height: 52px; border-radius: 99px; border: 1px solid var(--line); padding: 0 20px; background: var(--white); }
.mnav__lang { display: flex; gap: 10px; margin-top: auto; }
.mnav__lang a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mnav__lang a.is-on { background: var(--wine); color: var(--cream); border-color: var(--wine); }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 140px) 0; position: relative; }
.section--tight { padding-top: clamp(30px, 4vw, 50px); }
.shead { margin-bottom: clamp(30px, 4vw, 56px); max-width: 780px; }
.shead--center { text-align: center; margin-left: auto; margin-right: auto; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.row-head .shead { margin-bottom: clamp(30px, 4vw, 56px); }
.row-head .link-arrow { margin-bottom: clamp(30px, 4vw, 56px); }

/* Apparitions au défilement */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal="zoom"] { transform: scale(.94) translateY(20px); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------- Héros ---------- */
.hero { position: relative; padding: clamp(30px, 5vw, 70px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero__blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 22s var(--ease-in-out) infinite alternate; }
.hero__blobs .b1 { width: 520px; height: 520px; background: var(--rose); top: -160px; right: -120px; }
.hero__blobs .b2 { width: 420px; height: 420px; background: var(--sage-l); bottom: -140px; left: -140px; animation-delay: -6s; }
.hero__blobs .b3 { width: 260px; height: 260px; background: var(--gold-l); top: 40%; left: 45%; animation-delay: -12s; opacity: .45; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 30px) scale(.96); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__text .h1 { margin-bottom: 26px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero__note { margin-top: 26px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__note::before { content: ""; width: 34px; height: 1px; background: var(--mauve); }
.hero__stage { position: relative; height: clamp(440px, 52vw, 660px); }
.hero__arch { position: absolute; inset: 0 12% 0 12%; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: var(--blush); box-shadow: var(--shadow); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.18) translate(-2%, -2%); } }
.hero__card { position: absolute; width: clamp(130px, 15vw, 200px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow); }
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--l { left: 0; bottom: 8%; rotate: -8deg; animation: floatY 7s ease-in-out infinite; }
.hero__card--r { right: 0; top: 6%; rotate: 7deg; animation: floatY 8s ease-in-out infinite reverse; }
@keyframes floatY { 50% { translate: 0 -14px; } }
.hero__badge { position: absolute; right: 6%; bottom: -10px; width: 128px; height: 128px; border-radius: 50%; background: var(--wine); color: var(--blush); display: grid; place-items: center; box-shadow: var(--shadow); }
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge text { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 3px; fill: var(--blush); stroke: none; text-transform: uppercase; }
.hero__badge img { width: 54px; height: 54px; object-fit: contain; }
.hero__float { position: absolute; padding: 10px 16px; border-radius: 99px; background: var(--white); box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 650; color: var(--ink); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.hero__float::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.hero__float--a { top: 18%; left: -2%; animation: floatY 6s ease-in-out infinite; }
.hero__float--a::before { background: var(--sage); }
.hero__float--b { bottom: 24%; right: -4%; animation: floatY 7s ease-in-out infinite -2s; }
.hero__float--b::before { background: var(--gold); }
.hero__scroll { position: absolute; left: 50%; bottom: 20px; width: 26px; height: 42px; border: 1.5px solid var(--mauve); border-radius: 99px; translate: -50% 0; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--wine); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Bandeau défilant ---------- */
.marq { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); }
.marq--blush { background: var(--blush); color: var(--wine); }
.marq--wine { background: var(--wine); color: var(--blush); }
.marq--sage { background: var(--sage-l); color: var(--sage-d); }
.marq__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marq:hover .marq__track { animation-play-state: paused; }
.marq__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marq span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); white-space: nowrap; }
.marq i { font-style: normal; font-size: 1rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Essai en direct ---------- */
.try__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.try__form { display: grid; gap: 12px; max-width: 470px; margin-top: 10px; }
.try__form label, .try__label { font-weight: 650; font-size: .9rem; margin-top: 8px; }
.try__form input[type=text] { height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); padding: 0 18px; font-size: 1.1rem; font-weight: 600; transition: border-color .3s, box-shadow .3s; }
.try__form input[type=text]:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wine) 10%, transparent); }
.try__fonts, .try__swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.try__form .btn { margin-top: 16px; justify-self: start; }
.chip { min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); color: var(--wine); transition: all .3s var(--ease); }
.chip:hover { border-color: var(--wine); }
.chip.is-on { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.chip--script { font-family: var(--script); font-size: 1.5rem; }
.chip--serif { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.chip--caps { font-weight: 700; letter-spacing: .18em; font-size: .78rem; text-transform: uppercase; }
.sw { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.sw:hover { transform: translateY(-3px) scale(1.06); }
.sw.is-on { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--wine); }
.try__stage { position: relative; display: grid; place-items: center; min-height: 560px; border-radius: var(--r-lg); background: repeating-linear-gradient(90deg, #8C585B 0 7px, #7F4C50 7px 9px, #8C585B 9px 14px); overflow: hidden; padding-bottom: 60px; }
.try__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: var(--sand); }
.try__tag { position: absolute; top: 20px; left: 22px; z-index: 3; padding: 8px 14px; border-radius: 99px; background: rgba(255, 253, 251, .9); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.phone { position: relative; z-index: 2; width: 210px; height: 430px; border-radius: 42px; overflow: hidden; box-shadow: 0 40px 70px -26px rgba(30, 10, 14, .6), inset 0 0 0 1px rgba(43, 22, 24, .12); animation: phoneFloat 6s ease-in-out infinite; transition: background .6s; }
.phone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .14)); pointer-events: none; }
@keyframes phoneFloat { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.phone__cam { position: absolute; top: 16px; left: 16px; width: 80px; height: 80px; border-radius: 24px; background: rgba(30, 10, 14, .92); }
.phone__cam i { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #55404a 0 18%, #0d0709 45%); box-shadow: 0 0 0 3px #2c2226; }
.phone__cam i:nth-child(1) { top: 10px; left: 10px; }
.phone__cam i:nth-child(2) { top: 44px; left: 10px; }
.phone__cam i:nth-child(3) { top: 27px; left: 46px; width: 18px; height: 18px; }
.phone__name { position: absolute; left: 50%; bottom: 42px; transform: translateX(-50%); padding: 6px 20px; border-radius: 99px; background: var(--cream); color: var(--wine); white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(30, 10, 14, .6); line-height: 1.15; transition: all .4s var(--ease); }
.phone__name.is-pop { animation: namePop .5s var(--ease); }
@keyframes namePop { 40% { transform: translateX(-50%) scale(1.12); } }
.f-script { font-family: var(--script); font-size: 2.1rem; padding: 2px 22px 8px; }
.f-serif { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.6rem; }
.f-caps { font-weight: 700; font-size: 1rem; letter-spacing: .22em; text-transform: uppercase; padding: 9px 18px; }
.plinth { position: relative; z-index: 2; width: 260px; height: 64px; margin-top: -8px; border-radius: 0 0 20px 20px; background: repeating-linear-gradient(90deg, #B98986 0 16px, #C99D99 16px 28px); }
.plinth::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 40px; border-radius: 50%; background: #D9B6B2; }
.try__sparkles i { position: absolute; z-index: 3; width: 10px; height: 10px; background: var(--gold-l); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 3s ease-in-out infinite; }
.try__sparkles i:nth-child(1) { top: 20%; left: 22%; }
.try__sparkles i:nth-child(2) { top: 30%; right: 20%; animation-delay: -1s; width: 14px; height: 14px; }
.try__sparkles i:nth-child(3) { top: 55%; left: 16%; animation-delay: -2s; }
.try__sparkles i:nth-child(4) { top: 14%; right: 34%; animation-delay: -.5s; width: 7px; height: 7px; }
@keyframes twinkle { 50% { transform: scale(.3) rotate(45deg); opacity: .3; } }

/* Motifs des coques (aperçus) */
.pat-blob { background: radial-gradient(circle at 50% 50%, #7E3A40 0 34%, #EADFD2 35% 42%, transparent 43%) 0 0 / 76px 76px, radial-gradient(circle at 50% 50%, #7E3A40 0 34%, #EADFD2 35% 42%, transparent 43%) 38px 38px / 76px 76px, #7E3A40; }
.pat-stripes { background: repeating-linear-gradient(180deg, #6B1E26 0 26px, #EADFD2 26px 52px); }
.pat-check { background: conic-gradient(#6B1E26 25%, #D4ADA8 0 50%, #6B1E26 0 75%, #D4ADA8 0) 0 0 / 44px 44px; }
.pat-waves { background: radial-gradient(circle at 50% 100%, transparent 9px, #6B1E26 10px 17px, transparent 18px) 0 0 / 36px 18px, radial-gradient(circle at 50% 0%, transparent 9px, #6B1E26 10px 17px, transparent 18px) 18px 18px / 36px 18px, #D4ADA8; }
.pat-dots { background: #D4ADA8 radial-gradient(#6B1E26 21%, transparent 22%) 0 0 / 30px 30px; }
.pat-sage { background: repeating-linear-gradient(90deg, #7C8B6A 0 16px, #EADFD2 16px 30px); }

/* ---------- Catégories ---------- */
.cats__head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.cats__head .lead { margin-bottom: clamp(30px, 4vw, 56px); }
.cats__rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cat { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--blush); color: var(--white); text-decoration: none; isolation: isolate; }
.cat__img, .cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat__img img { transition: transform 1.2s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.08); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(43, 22, 24, .7)); z-index: 1; }
.cat__name { position: absolute; left: 24px; bottom: 22px; z-index: 2; font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.cat__go { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: var(--wine); display: grid; place-items: center; font-size: 1.2rem; transform: scale(.6) rotate(-45deg); opacity: 0; transition: all .5s var(--ease); }
.cat:hover .cat__go { transform: none; opacity: 1; }

/* ---------- Cartes produit ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(16px, 2vw, 28px); }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); box-shadow: 0 1px 0 var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); transform-style: preserve-3d; will-change: transform; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--blush); }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.pcard__img--alt { opacity: 0; }
.pcard:hover .pcard__img { transform: scale(1.06); }
.pcard:hover .pcard__img--alt { opacity: 1; }
.pcard__badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 99px; background: var(--white); color: var(--wine); font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.pcard__badge--sale { background: var(--wine); color: var(--cream); }
.pcard__chip { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(124, 139, 106, .92); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pcard__body { padding: 18px 20px 8px; }
.pcard__title { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; line-height: 1.2; margin: 0 0 6px; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard__price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard__price small { color: var(--muted); font-size: .8rem; }
.pcard__price strong { color: var(--wine); font-size: 1.08rem; }
.pcard__price s { color: var(--muted); font-size: .88rem; }
.pcard__cta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 12px 20px 20px; padding: 12px 16px; border-radius: 14px; background: var(--blush); color: var(--wine); font-weight: 650; font-size: .92rem; text-decoration: none; transition: background .35s, color .35s; }
.pcard__cta svg { transition: transform .35s var(--ease); }
.pcard:hover .pcard__cta { background: var(--wine); color: var(--cream); }
.pcard:hover .pcard__cta svg { transform: translateX(4px); }

/* ---------- Étapes ---------- */
.steps { background: var(--white); }
.steps__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps__line { position: absolute; top: 46px; left: 16%; right: 16%; height: 2px; background: var(--line); }
.steps__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .3s; }
.steps__list.is-in .steps__line span { transform: scaleX(1); }
.steps__list.is-in .steps__line { opacity: 1; transform: none; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__num { position: relative; z-index: 1; display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--wine); transition: background .4s, color .4s, transform .5s var(--ease); }
.step:hover .step__num { background: var(--wine); color: var(--cream); transform: rotate(-8deg) scale(1.05); }
.step h3 { font-size: 1.55rem; }
.step p { color: var(--muted); max-width: 32ch; margin: 0 auto; }

/* ---------- Promo ---------- */
.promo__box { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: clamp(36px, 6vw, 80px); border-radius: var(--r-lg); background: radial-gradient(120% 140% at 0% 0%, #8A2B35 0%, var(--wine) 45%, var(--wine-d) 100%); color: var(--blush); overflow: hidden; isolation: isolate; }
.promo__shine { position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 70%, rgba(234, 215, 190, .22) 80%, transparent 90%); animation: spin 14s linear infinite; }
.promo__box .h2 { color: var(--cream); }
.promo__box .h2 em { color: var(--gold-l); }
.promo__text p { color: var(--rose); font-size: 1.1rem; max-width: 46ch; }
.countdown { display: flex; gap: 12px; margin: 26px 0; }
.countdown div { min-width: 76px; padding: 14px 10px; border-radius: 18px; background: rgba(255, 253, 251, .1); border: 1px solid rgba(255, 253, 251, .16); text-align: center; backdrop-filter: blur(6px); }
.countdown strong { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.countdown strong.is-tick { animation: tick .45s var(--ease); }
@keyframes tick { 40% { transform: translateY(-4px); color: var(--gold-l); } }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--rose); }
.promo__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.promo__code { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px; border-radius: 99px; border: 1.5px dashed var(--gold-l); background: transparent; color: var(--cream); transition: background .3s; }
.promo__code:hover { background: rgba(255, 253, 251, .08); }
.promo__code span { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--rose); }
.promo__code strong { font-size: 1.15rem; letter-spacing: .1em; }
.promo__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; rotate: 4deg; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .5); }
.promo__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Image + texte ---------- */
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; aspect-ratio: 5 / 6; border-radius: var(--r-lg); overflow: hidden; background: var(--blush); }
.split__media img { width: 100%; height: 115%; object-fit: cover; }
.split__sticker { position: absolute; left: 22px; bottom: 22px; padding: 12px 18px; border-radius: 99px; background: var(--sage); color: var(--white); font-weight: 650; font-size: .88rem; box-shadow: var(--shadow-sm); animation: floatY 6s ease-in-out infinite; }
.checks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 550; }
.checks svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--sage-l); color: var(--sage-d); stroke-width: 2.4; }

/* ---------- Galerie ---------- */
.gal__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gal__item { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--blush); position: relative; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.gal__item:hover img { transform: scale(1.08) rotate(1deg); }
.gal__item--1 { grid-row: span 2; }
.gal__item--4 { grid-column: span 2; }
.gal__item--6 { grid-row: span 2; }

/* ---------- Avis ---------- */
.revs { background: var(--blush); overflow: hidden; }
.revs__row { overflow: hidden; margin-top: 18px; }
.revs__track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.revs__row--rev .revs__track { animation-direction: reverse; animation-duration: 70s; }
.revs__row:hover .revs__track { animation-play-state: paused; }
.rev { flex: none; width: 360px; margin: 0; padding: 26px; border-radius: var(--r); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.rev--static { width: auto; margin-bottom: 14px; }
.rev__stars { color: var(--gold); letter-spacing: 3px; font-size: 1rem; }
.rev__stars span { color: var(--sand); }
.rev blockquote { margin: 12px 0 16px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.rev figcaption { font-size: .88rem; color: var(--muted); }
.rev figcaption strong { color: var(--ink); }

/* ---------- Blog ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.bcard { display: flex; flex-direction: column; gap: 16px; }
.bcard__img { display: block; aspect-ratio: 16 / 11; border-radius: var(--r); overflow: hidden; background: var(--blush); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bcard:hover .bcard__img img { transform: scale(1.06); }
.bcard time { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mauve); font-weight: 650; }
.bcard h3 { font-size: 1.5rem; margin: 6px 0 8px; line-height: 1.15; }
.bcard h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--wine), var(--wine)) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.bcard:hover h3 a { background-size: 100% 1.5px; }
.bcard p { margin: 0; color: var(--muted); }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; margin-bottom: 48px; border-radius: var(--r-lg); overflow: hidden; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.feature__img { aspect-ratio: 16 / 11; overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.05); }
.feature__body { padding: clamp(24px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.feature__body time { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mauve); font-weight: 650; }
.feature__body > span:not(.link-arrow) { color: var(--muted); }

/* ---------- FAQ (accordéon) ---------- */
.faqs__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.acc { display: grid; gap: 12px; }
.acc__item { border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .4s, border-color .4s; }
.acc__item[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.acc__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-family: var(--serif); font-size: 1.2rem; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary span { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blush); transition: background .3s, transform .5s var(--ease); }
.acc__item summary span::before, .acc__item summary span::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 2px; background: var(--wine); transition: transform .5s var(--ease); }
.acc__item summary span::after { transform: rotate(90deg); }
.acc__item[open] summary span { background: var(--wine); transform: rotate(180deg); }
.acc__item[open] summary span::before, .acc__item[open] summary span::after { background: var(--cream); }
.acc__item[open] summary span::after { transform: rotate(0); }
.acc__body { padding: 0 24px 24px; color: var(--muted); }
.faq__more { margin-top: 40px; }

/* ---------- Newsletter ---------- */
.news__box { position: relative; padding: clamp(40px, 7vw, 90px); border-radius: var(--r-lg); background: var(--sage-l); text-align: center; overflow: hidden; }
.news__deco span { position: absolute; border-radius: 50%; }
.news__deco span:first-child { width: 240px; height: 240px; background: rgba(124, 139, 106, .25); top: -80px; left: -60px; animation: drift 16s ease-in-out infinite alternate; }
.news__deco span:last-child { width: 180px; height: 180px; background: rgba(212, 173, 168, .45); bottom: -60px; right: -40px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.news__box .h2 em { color: var(--sage-d); }
.news__box p { color: var(--sage-d); max-width: 50ch; margin: 0 auto 26px; position: relative; }
.news__form { position: relative; display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.news__form input { flex: 1; height: 58px; border-radius: 99px; border: 1.5px solid transparent; background: var(--white); padding: 0 22px; min-width: 0; }
.news__form input:focus { outline: none; border-color: var(--sage); }

/* ---------- Grand appel à l'action ---------- */
.bigcta { position: relative; padding: clamp(90px, 13vw, 180px) 0; overflow: hidden; text-align: center; }
.bigcta--blush { background: var(--blush); }
.bigcta--wine { background: var(--wine); }
.bigcta--wine .h1 { color: var(--cream); }
.bigcta--wine .h1 em { color: var(--gold-l); }
.bigcta--sage { background: var(--sage-l); }
.bigcta__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.bigcta .h1 { max-width: 15ch; }
.bigcta__orbs span { position: absolute; border-radius: 50%; filter: blur(2px); }
.bigcta__orbs span:nth-child(1) { width: 140px; height: 140px; left: 8%; top: 20%; background: var(--rose); animation: orbit 14s linear infinite; }
.bigcta__orbs span:nth-child(2) { width: 80px; height: 80px; right: 12%; top: 18%; background: var(--sage); opacity: .6; animation: orbit 11s linear infinite reverse; }
.bigcta__orbs span:nth-child(3) { width: 110px; height: 110px; right: 20%; bottom: 10%; background: var(--gold-l); animation: orbit 17s linear infinite; }
@keyframes orbit { from { transform: rotate(0) translateX(24px) rotate(0); } to { transform: rotate(360deg) translateX(24px) rotate(-360deg); } }

/* ---------- Pied de page ---------- */
.ftr { position: relative; background: var(--wine-d); color: var(--rose); padding: 100px 0 30px; overflow: hidden; }
.ftr__wave { position: absolute; top: -1px; left: 0; right: 0; height: 40px; background: var(--cream); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.ftr__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.ftr h3 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-l); margin-bottom: 18px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { color: var(--blush); text-decoration: none; transition: color .3s; }
.ftr a:hover { color: var(--white); }
.ftr__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.ftr__word { font-family: var(--script); font-size: 2.6rem; color: var(--blush); }
.ftr__brand p { max-width: 36ch; }
.ftr__social { display: flex; gap: 10px; margin-top: 20px; }
.ftr__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(239, 227, 221, .25); display: grid; place-items: center; font-size: 1.15rem; transition: background .3s, transform .4s var(--ease); }
.ftr__social a:hover { background: var(--wine); transform: translateY(-3px); }
.ftr__contact { margin: 10px 0 0; font-size: .92rem; }
.nl { display: flex; margin-top: 14px; border-radius: 99px; background: rgba(255, 253, 251, .08); border: 1px solid rgba(239, 227, 221, .2); padding: 4px; }
.nl input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--cream); padding: 0 16px; height: 46px; }
.nl input::placeholder { color: var(--rose); opacity: .7; }
.nl input:focus { outline: none; }
.nl button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--cream); color: var(--wine); display: grid; place-items: center; font-size: 1.1rem; transition: transform .3s var(--ease); }
.nl button:hover { transform: rotate(-45deg); }
.ftr__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(239, 227, 221, .14); font-size: .84rem; }
.ftr__install { border: 1px solid var(--rose); background: transparent; color: var(--blush); border-radius: 99px; padding: 6px 14px; font-size: .82rem; }
.ftr__giant { position: absolute; left: 50%; bottom: -0.25em; translate: -50% 0; font-family: var(--script); font-size: clamp(6rem, 22vw, 20rem); line-height: 1; color: rgba(239, 227, 221, .05); white-space: nowrap; pointer-events: none; }

/* Boutons flottants */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--sage); color: var(--white); display: grid; place-items: center; font-size: 1.6rem; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sage); animation: ring 2.6s ease-out infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }
.wa:hover { transform: scale(1.08) rotate(-6deg); color: var(--white); }
.totop { position: fixed; right: 26px; bottom: 92px; z-index: 89; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--wine); display: grid; place-items: center; font-size: 1.2rem; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); box-shadow: var(--shadow-sm); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- En-têtes de page ---------- */
.pagehead { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(20px, 3vw, 40px); overflow: hidden; }
.pagehead--sm { padding-bottom: 0; }
.pagehead__blob { position: absolute; top: -200px; right: -160px; width: 520px; height: 520px; border-radius: 50%; background: var(--rose); filter: blur(80px); opacity: .45; animation: drift 20s ease-in-out infinite alternate; }
.pagehead .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--wine); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pill { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .3s var(--ease); }
.pill:hover { border-color: var(--wine); color: var(--wine); }
.pill.is-on { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.pill--accent { border-color: var(--sage); color: var(--sage-d); }
.pill--accent.is-on { background: var(--sage); border-color: var(--sage); color: var(--white); }

/* ---------- Boutique ---------- */
.shop__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.shop__bar .pills { margin: 0; }
.shop__sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.shop__sort select, .form select { height: 46px; padding: 0 40px 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1E26' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; }
.shop__count { margin: -10px 0 24px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pager a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; transition: all .3s; }
.pager a:hover { border-color: var(--wine); }
.pager a.is-on { background: var(--wine); border-color: var(--wine); color: var(--cream); }

/* États vides */
.empty { text-align: center; padding: 30px 10px; }
.empty--page { padding: 70px 10px; }
.empty__art { position: relative; width: 120px; height: 110px; margin: 0 auto 24px; }
.empty__art span { position: absolute; width: 50px; height: 96px; border-radius: 14px; bottom: 0; }
.empty__art span:nth-child(1) { left: 6px; background: var(--rose); rotate: -14deg; animation: floatY 5s ease-in-out infinite; }
.empty__art span:nth-child(2) { left: 36px; background: var(--wine); z-index: 1; animation: floatY 6s ease-in-out infinite -1s; }
.empty__art span:nth-child(3) { left: 66px; background: var(--sage); rotate: 14deg; animation: floatY 5.5s ease-in-out infinite -2s; }
.empty p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Fiche produit ---------- */
.pdp__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.pdp__gallery { position: sticky; top: 90px; }
.pdp__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--blush); }
.pdp__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.pdp__main img.is-on { opacity: 1; transform: none; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp__thumbs button { width: 76px; aspect-ratio: 6 / 7; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--blush); opacity: .6; transition: all .3s; }
.pdp__thumbs button.is-on, .pdp__thumbs button:hover { border-color: var(--wine); opacity: 1; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__rating { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; font-size: .9rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.pdp__price { display: flex; align-items: baseline; gap: 14px; margin: 14px 0 18px; }
.pdp__price strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; color: var(--wine); transition: transform .3s; }
.pdp__price strong.is-change { animation: tick .45s var(--ease); }
.pdp__price s { color: var(--muted); font-size: 1.1rem; }
.pdp__form { display: grid; gap: 18px; margin: 26px 0; }
.opt { border: 0; padding: 0; margin: 0; }
.opt legend { font-weight: 650; margin-bottom: 10px; }
.req { color: var(--wine); }
.opt__values { display: flex; flex-wrap: wrap; gap: 8px; }
.optv input { position: absolute; opacity: 0; }
.optv span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; transition: all .25s; font-weight: 550; }
.optv span small { color: var(--muted); }
.optv input:checked + span { border-color: var(--wine); background: var(--wine); color: var(--cream); }
.optv input:checked + span small { color: var(--rose); }
.optv input:focus-visible + span { outline: 3px solid var(--sage); outline-offset: 2px; }
.pdp__buy { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp__buy .btn { flex: 1; }
.pdp__perks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.pdp__perks li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .94rem; }
.pdp__perks svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--sage-l); color: var(--sage-d); flex: none; }
.revgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label { font-size: 1.9rem; color: var(--sand); cursor: pointer; transition: color .2s, transform .2s; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--gold); }
.stars-input label:hover { transform: scale(1.15); }

/* Quantité */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; background: var(--white); }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.2rem; color: var(--wine); }
.qty span, .qty input { width: 36px; text-align: center; font-weight: 650; border: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--lg button { width: 50px; height: 56px; }
.qty--lg input { width: 44px; }

/* ---------- Cartes, formulaires ---------- */
.card { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.card + .card { margin-top: 20px; }
.form { display: grid; gap: 16px; border: 0; margin: 0; }
.form legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .9rem; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select { width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); padding: 12px 16px; font-weight: 500; transition: border-color .3s, box-shadow .3s, background .3s; }
.form select { border-radius: 14px; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--wine); background: var(--white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wine) 8%, transparent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px !important; font-weight: 500 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--wine); margin-top: 2px; flex: none; }

/* ---------- Panier ---------- */
.cartgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.clines { display: grid; gap: 14px; }
.cline { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 20px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--white); }
.cline img { width: 110px; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 16px; background: var(--blush); }
.cline h2 { font-size: 1.25rem; margin-bottom: 4px; }
.cline h2 a { color: var(--ink); text-decoration: none; }
.cline__info p { margin: 0; font-size: .88rem; color: var(--muted); }
.cline__unit { margin-top: 6px !important; color: var(--wine) !important; font-weight: 650; }
.cline__qty { display: grid; justify-items: center; gap: 6px; }
.cline__total { font-size: 1.1rem; color: var(--wine); min-width: 90px; text-align: right; }
.summary { position: sticky; top: 90px; display: grid; gap: 12px; }
.summary .row, .drawer__foot .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row--accent { color: var(--sage-d); }
.row--total { padding-top: 14px; border-top: 1px dashed var(--line); font-size: 1.2rem; }
.row--total strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--wine); }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 48px; border-radius: 99px; border: 1.5px dashed var(--rose); background: var(--cream); padding: 0 16px; text-transform: uppercase; letter-spacing: .08em; }
.mini { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 14px; }
.mini li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.mini__img { position: relative; }
.mini__img img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; background: var(--blush); }
.mini__img b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 99px; background: var(--wine); color: var(--cream); font-size: .72rem; display: grid; place-items: center; }
.mini__name { font-weight: 600; font-size: .92rem; display: grid; }
.mini__name small { color: var(--muted); font-weight: 400; }

/* Tiroir panier */
.drawer { position: fixed; inset: 0; z-index: 400; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(43, 22, 24, .4); opacity: 0; transition: opacity .5s; backdrop-filter: blur(3px); }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease-in-out); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.6rem; margin: 0; }
.drawer__x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blush); display: grid; place-items: center; font-size: 1.2rem; transition: transform .4s var(--ease); }
.drawer__x:hover { transform: rotate(90deg); }
.drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.dlines { list-style: none; margin: 0; padding: 12px 24px; display: grid; gap: 16px; }
.dline { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; animation: slideIn .5s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.dline img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; background: var(--blush); }
.dline__info { display: grid; gap: 2px; align-content: start; }
.dline__info small { color: var(--muted); font-size: .8rem; }
.dline__info .qty { margin-top: 6px; justify-self: start; }
.dline__price { font-weight: 650; color: var(--wine); }
.drawer__foot { margin-top: auto; padding: 20px 24px 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--white); }
.flyer { position: fixed; z-index: 500; border-radius: 16px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow); transition: transform .9s var(--ease-in-out), opacity .9s; }

/* ---------- Commande ---------- */
.stepper { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 24px; counter-reset: s; flex-wrap: wrap; }
.stepper li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 650; color: var(--muted); }
.stepper li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--white); }
.stepper li:not(:last-child)::after { content: ""; width: 34px; height: 1.5px; background: var(--line); }
.stepper li.is-done::before { background: var(--sage); border-color: var(--sage); color: var(--white); content: "✓"; }
.stepper li.is-on { color: var(--wine); }
.stepper li.is-on::before { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.checkout__main { display: grid; gap: 20px; }
.checkout__main .card + .card { margin-top: 0; }
.zones, .paygrid { display: grid; gap: 10px; }
.zone input, .paym input { position: absolute; opacity: 0; }
.zone__box, .paym__box { display: grid; gap: 2px; padding: 16px 18px 16px 52px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--cream); cursor: pointer; position: relative; transition: all .3s var(--ease); }
.zone__box::before, .paym__box::before { content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--mauve); background: var(--white); transition: all .3s var(--ease); }
.zone input:checked + .zone__box, .paym input:checked + .paym__box { border-color: var(--wine); background: var(--white); box-shadow: var(--shadow-sm); }
.zone input:checked + .zone__box::before, .paym input:checked + .paym__box::before { border: 6px solid var(--wine); }
.zone input:focus-visible + .zone__box, .paym input:focus-visible + .paym__box { outline: 3px solid var(--sage); }
.zone__box small, .paym__box small { color: var(--muted); font-weight: 400; }
.zone__box em { font-style: normal; color: var(--wine); font-size: .9rem; font-weight: 600; }
.checkout__side { top: 90px; }

/* Suivi de commande */
.order__hero { text-align: center; padding: 40px 0 30px; }
.order__icon { width: 96px; height: 96px; margin: 0 auto 22px; }
.order__icon svg { width: 100%; height: 100%; stroke: var(--sage); stroke-width: 2.4; }
.order__icon circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease) forwards; }
.order__icon path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .7s var(--ease) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.order__icon--wait span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--blush); border-top-color: var(--wine); animation: spin 1.2s linear infinite; }
.order__icon--off { border-radius: 50%; background: var(--blush); }
.order__num { font-size: 1.05rem; color: var(--muted); }
.order__num strong { color: var(--wine); letter-spacing: .06em; }
.timeline { list-style: none; padding: 0; margin: 10px 0 30px; display: flex; justify-content: space-between; position: relative; }
.timeline::before { content: ""; position: absolute; top: 14px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.timeline li { position: relative; flex: 1; text-align: center; font-size: .8rem; color: var(--muted); font-weight: 600; display: grid; justify-items: center; gap: 8px; }
.timeline li span { width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); position: relative; z-index: 1; transition: all .5s var(--ease); transition-delay: calc(var(--d) * 150ms); }
.timeline li.is-done span { background: var(--sage); border-color: var(--sage); }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-current span { background: var(--wine); border-color: var(--wine); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wine) 15%, transparent); animation: pulse 2s infinite; }
.status { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--blush); color: var(--wine); }
.status--paid, .status--delivered, .status--confirmed { background: var(--sage-l); color: var(--sage-d); }
.status--cancelled, .status--refunded { background: #F3E1E1; color: #8E2A30; }
.status--shipped, .status--in_production, .status--ready { background: var(--gold-l); color: #7A5730; }

/* Compte */
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.tabs__nav { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: var(--white); width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 26px; }
.tabs__nav button { border: 0; background: none; padding: 10px 20px; border-radius: 99px; font-weight: 650; color: var(--muted); white-space: nowrap; transition: all .3s; }
.tabs__nav button.is-on { background: var(--wine); color: var(--cream); }
.tabs__panel { display: none; animation: fadeUp .5s var(--ease); }
.tabs__panel.is-on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--white); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.dcard { margin: 0; padding: 14px; border-radius: var(--r); background: var(--white); text-align: center; }
.dcard img { margin: 0 auto 10px; max-height: 260px; width: auto; }
.dcard figcaption { display: grid; font-weight: 600; font-size: .9rem; }
.dcard small { color: var(--muted); font-weight: 400; }

/* Connexion */
.auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1100px; }
.auth__art { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: var(--blush); }
.auth__art img { width: 100%; height: 100%; object-fit: cover; }

/* Article */
.post__head { padding: clamp(40px, 7vw, 90px) 0 30px; }
.post__meta { color: var(--muted); font-size: .92rem; }
.post__cover { margin: 0 auto 50px; }
.post__cover img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 8; object-fit: cover; }
.post__share { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.rich { font-size: 1.08rem; line-height: 1.8; }
.rich h2 { font-size: 2rem; margin: 1.6em 0 .5em; }
.rich h3 { font-size: 1.5rem; margin: 1.4em 0 .5em; }
.rich p { margin: 0 0 1.2em; }
.rich img { border-radius: var(--r); margin: 1.6em 0; }
.rich blockquote { margin: 1.6em 0; padding: 10px 0 10px 26px; border-left: 3px solid var(--wine); font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--wine); }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.rich li { margin-bottom: .4em; }
.rich a { color: var(--wine); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: start; }
.contact__side { display: grid; gap: 14px; }
.contact__card { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--r); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
a.contact__card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact__card strong { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mauve); }
.contact__card span { font-family: var(--serif); font-size: 1.25rem; }

/* Erreurs */
.errorpage__code { font-family: var(--script); font-size: clamp(7rem, 20vw, 14rem); line-height: 1; color: var(--rose); margin: 0; animation: floatY 6s ease-in-out infinite; }

/* Notifications */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 600; translate: -50% 0; display: grid; gap: 10px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 16px 20px; border-radius: 18px; background: var(--ink); color: var(--cream); box-shadow: var(--shadow); font-weight: 550; display: flex; gap: 12px; align-items: center; animation: toastIn .6s var(--ease) both; pointer-events: auto; }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-l); flex: none; }
.toast--success::before { background: #A9BB93; }
.toast--error { background: #7A1F27; }
.toast--error::before { background: var(--rose); }
.toast.is-out { animation: toastOut .5s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(30px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px) scale(.95); } }

/* Confettis */
.confetti { position: fixed; inset: 0; z-index: 700; pointer-events: none; }

/* ==========================================================================
   Éditeur de personnalisation (mise en page application)
   ========================================================================== */
.app-body { height: 100dvh; overflow: hidden; background: var(--sand); }
.ed { display: grid; grid-template-rows: 64px 1fr; height: 100dvh; }
.ed__top { display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--white); border-bottom: 1px solid var(--line); z-index: 5; }
.ed__back { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--wine); font-size: 1.2rem; }
.ed__title { display: grid; line-height: 1.2; min-width: 0; }
.ed__title strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed__title small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ed__iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; font-size: 1.15rem; color: var(--ink); transition: all .25s; }
.ed__iconbtn:hover:not(:disabled) { border-color: var(--wine); color: var(--wine); }
.ed__iconbtn:disabled { opacity: .35; cursor: default; }
.ed__price { font-weight: 700; color: var(--wine); margin-right: 6px; white-space: nowrap; }
.ed__main { display: grid; grid-template-columns: 84px 340px 1fr; min-height: 0; }
.ed__rail { background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; }
.ed__tab { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border: 0; border-radius: 16px; background: none; color: var(--muted); font-size: .7rem; font-weight: 650; transition: all .25s; }
.ed__tab svg { font-size: 1.45rem; }
.ed__tab:hover { color: var(--wine); background: var(--blush); }
.ed__tab.is-on { color: var(--cream); background: var(--wine); }
.ed__panel { background: var(--cream); border-right: 1px solid var(--line); overflow-y: auto; padding: 22px 20px 120px; }
.ed__pane { display: none; animation: fadeUp .35s var(--ease); }
.ed__pane.is-on { display: grid; gap: 14px; align-content: start; }
.ed__pane h3 { font-size: 1.4rem; margin: 0; }
.ed__pane p { margin: 0; color: var(--muted); font-size: .9rem; }
.ed__label { font-weight: 650; font-size: .82rem; color: var(--ink); margin-top: 6px; }
.ed__field { width: 100%; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); padding: 10px 14px; }
.ed__field:focus { outline: none; border-color: var(--wine); }
textarea.ed__field { resize: vertical; min-height: 80px; }
.ed__drop { display: grid; place-items: center; gap: 8px; padding: 28px 16px; border-radius: var(--r); border: 2px dashed var(--rose); background: var(--white); text-align: center; color: var(--muted); cursor: pointer; transition: all .3s; }
.ed__drop:hover, .ed__drop.is-over { border-color: var(--wine); background: var(--blush); color: var(--wine); }
.ed__drop svg { font-size: 2rem; color: var(--wine); }
.ed__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ed__thumb { aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white) center / contain no-repeat; padding: 6px; transition: all .25s; }
.ed__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ed__thumb:hover { border-color: var(--wine); transform: translateY(-2px); }
.ed__tpl { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); background: var(--white); padding: 0; transition: all .25s; }
.ed__tpl img { width: 100%; height: 100%; object-fit: cover; }
.ed__tpl:hover { border-color: var(--wine); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ed__colors { display: flex; flex-wrap: wrap; gap: 8px; }
.ed__color { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .2s; }
.ed__color:hover { transform: scale(1.12); }
.ed__color.is-on { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--wine); }
.ed__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed__row > * { flex: 1; }
.ed__seg { display: flex; padding: 4px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.ed__seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 10px; font-size: .85rem; font-weight: 650; color: var(--muted); }
.ed__seg button.is-on { background: var(--wine); color: var(--cream); }
.ed__range { width: 100%; accent-color: var(--wine); }
.ed__layers { display: grid; gap: 6px; }
.ed__layer { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--white); border: 1.5px solid transparent; cursor: pointer; font-size: .88rem; }
.ed__layer.is-on { border-color: var(--wine); }
.ed__layer img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.ed__layer span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed__stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--blush), var(--sand) 70%); touch-action: none; }
.ed__canvas { display: block; max-width: 100%; max-height: 100%; touch-action: none; filter: drop-shadow(0 30px 40px rgba(58, 21, 25, .25)); }
.ed__hint { position: absolute; top: 16px; left: 50%; translate: -50% 0; padding: 8px 14px; border-radius: 99px; background: rgba(255, 253, 251, .9); font-size: .8rem; color: var(--muted); box-shadow: var(--shadow-sm); white-space: nowrap; transition: opacity .4s; }
.ed__badges { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 150px); pointer-events: none; }
.ed__align { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ed__align[hidden] { display: none; }
.ed__achip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-size: .78rem; font-weight: 650; box-shadow: var(--shadow-sm); white-space: nowrap; }
.ed__achip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ed__achip.is-ok { background: #DDF2E7; color: #17724A; }
.ed__achip.is-off { background: #FBE9D7; color: #8E4B0B; }
.ed__quality { padding: 8px 16px; border-radius: 99px; font-size: .82rem; font-weight: 650; box-shadow: var(--shadow-sm); }
.ed__quality--good { background: var(--sage-l); color: var(--sage-d); }
.ed__quality--mid { background: var(--gold-l); color: #7A5730; }
.ed__quality--low { background: #F3E1E1; color: #8E2A30; }
.ed__toolbar { position: absolute; top: 16px; right: 16px; display: grid; gap: 8px; }
.ed__float { position: absolute; display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: var(--ink); box-shadow: var(--shadow); z-index: 4; animation: pop .25s var(--ease); }
.ed__float button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--cream); display: grid; place-items: center; font-size: 1.05rem; }
.ed__float button:hover { background: rgba(255, 255, 255, .14); }
.ed__models { display: grid; gap: 10px; }
.ed__model-search { position: sticky; top: -22px; z-index: 1; background: var(--cream); padding: 4px 0 8px; }
.ed__brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ed__bchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); font-size: .82rem; font-weight: 600; cursor: pointer; line-height: 1.2; transition: all .2s; }
.ed__bchip input { width: 14px; height: 14px; margin: 0; accent-color: var(--wine); }
.ed__bchip:hover { border-color: var(--wine); }
.ed__bchip.is-on { border-color: var(--wine); background: var(--blush, #F6E3E5); color: var(--wine); }
.ed__bchip--all.is-on { background: var(--wine); color: var(--cream); }
.ed__bmore { background: none; border: 0; padding: 5px 4px; font-size: .8rem; font-weight: 700; color: var(--wine); text-decoration: underline; cursor: pointer; }
.ed__nomodel { color: var(--mauve); font-size: .9rem; padding: 8px 2px; }
.ed__brand { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve); margin-top: 10px; }
.ed__model { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; transition: all .2s; }
.ed__model:hover { border-color: var(--wine); }
.ed__model.is-on { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.ed__model em { font-style: normal; font-size: .7rem; padding: 2px 8px; border-radius: 99px; background: var(--gold-l); color: #7A5730; }
.ed__finish { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(43, 22, 24, .5); backdrop-filter: blur(4px); padding: 20px; }
.ed__finish-card { width: min(460px, 100%); max-height: 90dvh; overflow-y: auto; padding: 30px; border-radius: var(--r-lg); background: var(--cream); text-align: center; animation: toastIn .5s var(--ease); }
.ed__finish-card img { max-height: 300px; width: auto; margin: 0 auto 18px; filter: drop-shadow(0 20px 30px rgba(58, 21, 25, .3)); }
.ed__finish-card .check { text-align: left; margin: 14px 0; }
.ed__finish-card .opt { text-align: left; margin-bottom: 12px; }
.ed__busy { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(247, 241, 235, .85); }
.ed__busy span { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--blush); border-top-color: var(--wine); animation: spin 1s linear infinite; }
.ed__mobilebar { display: none; }

/* ==========================================================================
   Éditeur v2 : nuancier, motifs, formes, cadres, IA, retouche photo
   ========================================================================== */
.ed__chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ed__chip { flex: none; padding: 7px 13px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); font-size: .8rem; font-weight: 650; color: var(--ink); white-space: nowrap; transition: all .2s; }
.ed__chip:hover { border-color: var(--wine); color: var(--wine); }
.ed__chip.is-on { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.ed__grid--tpl { grid-template-columns: repeat(3, 1fr); }
.ed__tpl canvas { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--blush); }
.ed__tpl { aspect-ratio: auto; min-height: 120px; display: grid; place-items: center; padding: 6px; background: var(--blush); }
.ed__tpl img { height: auto; max-height: 180px; object-fit: contain; }
.ed__grid--stickers { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ed__grid--emoji { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ed__emoji { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--white); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; transition: transform .2s; }
.ed__emoji:hover { transform: scale(1.18); background: var(--blush); }
.ed__grid--shapes { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ed__shapebtn { aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; padding: 4px; transition: all .2s; }
.ed__shapebtn canvas { width: 44px; height: 44px; }
.ed__shapebtn:hover { border-color: var(--wine); transform: translateY(-2px); }
.ed__grid--layouts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed__layout { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font-size: .68rem; font-weight: 650; color: var(--muted); transition: all .2s; }
.ed__layout canvas { height: 70px; width: auto; max-width: 100%; }
.ed__layout:hover { border-color: var(--wine); color: var(--wine); transform: translateY(-2px); }
.ed__grid--bg { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ed__bgthumb { aspect-ratio: 4 / 5; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); padding: 3px; display: grid; place-items: center; overflow: hidden; transition: all .2s; }
.ed__bgthumb canvas { max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.ed__bgthumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.ed__bgthumb:hover { border-color: var(--wine); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ed__thumb--photo { background-size: cover; background-position: center; }
.ed__pwrap { position: relative; display: flex; flex-direction: column; gap: 4px; }
.ed__pwrap .ed__thumb { width: 100%; }
.ed__pbg { font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--wine); background: var(--white, #fff); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px; cursor: pointer; }
.ed__pbg:hover { background: var(--wine); color: #fff; }
.ed__props { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); animation: fadeUp .3s var(--ease); }
.ed__props .ed__label { margin-top: 2px; }
.ed__row--tight { gap: 6px; }
.ed__row--tight > * { flex: none; }
.ed__toggle { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font-size: 1.05rem; }
.ed__toggle.is-on { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.ed__seg button svg { font-size: 1.1rem; }
.ed__seg--big button { padding: 10px; }
.ed__check { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; }
.ed__check input { accent-color: var(--wine); width: 18px; height: 18px; }
.ed__fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 210px; overflow-y: auto; padding-right: 2px; }
.ed__font { padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); font-size: 1.05rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .2s; }
.ed__font.is-on { border-color: var(--wine); background: var(--blush); color: var(--wine); }
.ed__cp { display: grid; gap: 6px; }
.ed__cp-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.ed__cp-custom { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); font-size: .76rem; font-weight: 650; cursor: pointer; }
.ed__cp-custom input { width: 26px; height: 26px; border: 0; padding: 0; border-radius: 50%; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); cursor: pointer; }
.ed__cp-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.ed__cp-custom input::-webkit-color-swatch { border: 2px solid var(--white); border-radius: 50%; }
.ed__cp-drop { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; }
.ed__cp-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mauve); margin-top: 2px; }
.ed__cp .ed__colors { gap: 5px; }
.ed__cp .ed__color { width: 24px; height: 24px; }
.ed__color--none { background: linear-gradient(45deg, #fff 45%, #E63946 45% 55%, #fff 55%) !important; }
.ed__none { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font-weight: 650; font-size: .9rem; text-align: left; }
.ed__none.is-on { border-color: var(--wine); box-shadow: 0 0 0 2px var(--blush); }
.ed__none-sw { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); }
.ed__patcolors { display: flex; gap: 8px; }
.ed__patcolor input { width: 44px; height: 44px; border: 2px solid var(--white); border-radius: 50%; padding: 0; box-shadow: 0 0 0 1px var(--line); cursor: pointer; background: none; }
.ed__patcolor input::-webkit-color-swatch-wrapper { padding: 0; }
.ed__patcolor input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.ed__ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.ed__idea { padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font-size: .84rem; text-align: left; transition: all .2s; }
.ed__idea:hover { border-color: var(--wine); background: var(--blush); }
.ed__card { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.ed__aititle { background: linear-gradient(90deg, var(--wine), #C9184A, #8338EC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ed__tab--ai svg { color: #C9184A; }
.ed__tab--ai.is-on svg { color: var(--cream); }
.ed__aires { display: grid; gap: 8px; }
.ed__grid--ai { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ed__aicard { display: grid; gap: 6px; border-radius: 14px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); animation: pop .4s var(--ease); }
.ed__aicard img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ed__aiacts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 6px 6px; }
.ed__aiacts .btn { min-height: 34px; padding: 0 8px; font-size: .74rem; }
.ed__aiph { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(110deg, var(--blush) 30%, #fff 50%, var(--blush) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; display: grid; place-items: center; }
.ed__aiph span { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--rose); border-top-color: var(--wine); animation: spin 1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ed__aiidea { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--cream); font-size: .86rem; }
.ed__zoom { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 253, 251, .92); box-shadow: var(--shadow-sm); z-index: 3; }
.ed__zoom button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 1.1rem; font-weight: 700; color: var(--ink); display: grid; place-items: center; }
.ed__zoom button:hover { background: var(--blush); color: var(--wine); }
.ed__stage.is-zoomed { overflow: auto; place-items: start; }
.ed__float button.is-on { background: var(--wine); }
.ed__float button[hidden] { display: none; }
.ed__layer canvas { width: 34px; height: 34px; }
.ed__layer.is-locked span::after { content: " 🔒"; }
.ed__busy { gap: 14px; align-content: center; }
.ed__busy em { font-style: normal; font-weight: 650; color: var(--wine); }
.ed__opts { display: grid; gap: 18px; }
.ed__summary { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; text-align: left; }
.ed__summary li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--white); font-size: .9rem; }
.ed__summary strong { display: inline-flex; align-items: center; gap: 6px; }
.ed__summary-total { background: var(--blush) !important; }
.ed__dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }

/* Nuancier produit (fiche produit et éditeur) */
.opt__picked { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.opt--swatch .opt__values { gap: 10px; }
.optv--swatch .sw { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--line), inset 0 -6px 10px rgba(0, 0, 0, .08); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.optv--swatch .sw:hover { transform: scale(1.1); }
.optv.optv--swatch .sw { padding: 0; gap: 0; border: 3px solid var(--white); background: var(--c); }
.optv.optv--swatch input:checked + .sw { background: var(--c); border-color: var(--white); color: inherit; box-shadow: 0 0 0 2.5px var(--wine), inset 0 -6px 10px rgba(0, 0, 0, .08); transform: scale(1.08); }
.optv--swatch input:focus-visible + .sw { outline: 2px solid var(--wine); outline-offset: 3px; }
.opt__text { width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); padding: 10px 14px; font-size: 1rem; }
.opt__text:focus { outline: none; border-color: var(--wine); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pdp__stock { display: flex; align-items: center; gap: 8px; color: var(--sage-d); font-weight: 600; font-size: .92rem; margin: 6px 0 2px; }
.pdp__stock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-l); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(124, 139, 106, .1); } }
.pcard__chip--ready { background: rgba(124, 139, 106, .92); }
.pcard__chip--low { background: rgba(184, 137, 90, .95); }
.pcard__chip--out { background: rgba(43, 22, 24, .8); }
.pcard__swatches { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 4px; padding: 5px 7px; border-radius: 99px; background: rgba(255, 253, 251, .9); }
.pcard__swatches i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line); }
.pill--sage { border-color: var(--sage); color: var(--sage-d); }
.pill--sage.is-on, .pill--sage:hover { background: var(--sage); color: var(--white); }

/* Retouche photo */
body.lab-open { overflow: hidden; }
.lab { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(43, 22, 24, .6); backdrop-filter: blur(6px); padding: 14px; }
.lab__card { width: min(980px, 100%); height: min(760px, 100%); display: grid; grid-template-rows: auto 1fr auto auto; border-radius: var(--r-lg); background: var(--cream); overflow: hidden; animation: toastIn .45s var(--ease); }
.lab__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.lab__top strong { flex: 1; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.lab__stage { position: relative; display: grid; place-items: center; min-height: 0; background: var(--sand); overflow: hidden; touch-action: none; }
.lab__stage canvas { border-radius: 10px; box-shadow: var(--shadow); touch-action: none; }
.lab__status { position: absolute; top: 14px; left: 50%; translate: -50% 0; padding: 8px 16px; border-radius: 99px; background: var(--white); font-size: .85rem; font-weight: 650; color: var(--wine); box-shadow: var(--shadow-sm); }
.lab__tabs { display: flex; gap: 4px; padding: 8px 10px 0; background: var(--white); overflow-x: auto; }
.lab__tabs button { flex: none; border: 0; background: none; padding: 10px 14px; border-radius: 12px 12px 0 0; font-weight: 650; color: var(--muted); }
.lab__tabs button.is-on { background: var(--cream); color: var(--wine); }
.lab__pane { display: none; padding: 14px; gap: 10px; max-height: 210px; overflow-y: auto; }
.lab__pane.is-on { display: grid; }
.lab__filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.lab__filter { flex: none; display: grid; gap: 4px; justify-items: center; border: 0; background: none; padding: 0; font-size: .74rem; font-weight: 650; color: var(--muted); }
.lab__filter img { width: 78px; height: 78px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; }
.lab__filter.is-on img { border-color: var(--wine); }
.lab__filter.is-on { color: var(--wine); }
.lab__slider { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; font-size: .86rem; font-weight: 600; }
.lab__slider input { accent-color: var(--wine); }
.lab [data-lab-mode].is-on { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.lab .ed__chip.is-on { background: var(--wine); color: var(--cream); }

/* Retours clients */
.rev__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rev__src { padding: 3px 10px; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; background: var(--blush); color: var(--wine); }
.rev__src--whatsapp { background: #DCF8C6; color: #075E54; }
.rev__src--facebook { background: #E7F0FF; color: #1658C9; }
.rev__src--instagram { background: #FDE7F1; color: #B1316F; }
.rev__src--tiktok { background: #EDEDED; color: #111; }
.rev__src--google { background: #FFF4D6; color: #8A5A00; }
.rev__photos { display: flex; gap: 8px; margin-top: 12px; }
.rev__photos img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; transition: transform .3s var(--ease); }
.rev__photos a:hover img { transform: scale(1.06) rotate(-2deg); }
.rev__ok { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--sage-l); color: var(--sage-d); font-size: .72rem; font-weight: 700; }
.rev__ok svg { width: 12px; height: 12px; stroke-width: 3; }
.rev__reply { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: .9rem; border-left: 3px solid var(--wine); }
.rev__reply strong { display: block; color: var(--wine); font-size: .8rem; }
.revs__more { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.revstats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
.revstats__score { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 30px; text-align: center; }
.revstats__avg { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5.4rem); line-height: 1; color: var(--wine); font-weight: 500; }
.stars--lg { font-size: 1.6rem; }
.stars span { color: var(--rose); }
.revstats__bars { display: grid; gap: 10px; padding: 26px; align-content: center; }
.revbar { display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: .9rem; padding: 4px 6px; border-radius: 10px; transition: background .2s; }
.revbar:hover, .revbar.is-on { background: var(--blush); }
.revbar i { height: 10px; border-radius: 99px; background: var(--blush); overflow: hidden; }
.revbar b { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--wine)); transform-origin: left; animation: growX 1.2s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }
.revwall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.revwall__item { aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.revwall__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.revwall__item:hover img { transform: scale(1.08); }
.revfilters { margin-bottom: 22px; }
.revmasonry { columns: 3 300px; column-gap: 18px; }
.revmasonry .rev { width: auto; break-inside: avoid; margin-bottom: 18px; display: block; }
.wrap--narrow { max-width: 760px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.filedrop { display: flex !important; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 2px dashed var(--rose); background: var(--white); cursor: pointer; transition: all .25s; }
.filedrop:hover { border-color: var(--wine); background: var(--blush); }
.filedrop svg { width: 34px; height: 34px; color: var(--wine); flex: none; }
.filedrop span { display: grid; gap: 2px; }
.filedrop small { color: var(--muted); font-weight: 400; }
.filedrop input { max-width: 100%; font-size: .8rem; }

@media (max-width: 900px) {
  .revstats { grid-template-columns: 1fr; }
  .revwall { grid-template-columns: repeat(3, 1fr); }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ed__mobilebar { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .ed__mobilebar::-webkit-scrollbar { display: none; }
  .ed__mobilebar .ed__tab { flex: 0 0 70px; }
  .ed__grid--stickers { grid-template-columns: repeat(5, 1fr); }
  .ed__grid--bg { grid-template-columns: repeat(5, 1fr); }
  .ed__grid--emoji { grid-template-columns: repeat(7, 1fr); }
  .ed__panel { max-height: 62%; }
  .lab { padding: 0; }
  .lab__card { border-radius: 0; height: 100%; }
  .lab__slider { grid-template-columns: 100px 1fr; }
  .ed__zoom { bottom: 10px; right: 10px; }
}

/* ==========================================================================
   Adaptation mobile et tablette
   ========================================================================== */
@media (max-width: 1080px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: block; }
  .hdr__search { display: none; }
  .hdr__in { gap: 10px; }
  .hdr__logo { margin: 0 auto 0 4px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ed__main { grid-template-columns: 76px 290px 1fr; }
}
@media (max-width: 900px) {
  .hero__grid, .try__grid, .split__grid, .pdp__grid, .cartgrid, .checkout, .revgrid, .faqs__grid, .contact, .auth__grid, .cats__head, .promo__box, .feature { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .hero__stage { height: 480px; margin-top: 10px; }
  .pdp__gallery, .summary { position: static; }
  .steps__list { grid-template-columns: 1fr; gap: 34px; }
  .steps__line { display: none; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gal__item--4 { grid-column: span 1; }
  .promo__img { max-width: 340px; }
  .auth__art { display: none; }
  .cats__rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .cat { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hdr__lang { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 80px 1fr; }
  .cline img { width: 80px; }
  .cline__qty, .cline__total { grid-column: 2; justify-items: start; text-align: left; }
  .news__form { flex-direction: column; }
  .news__form .btn { min-height: 54px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 30px; }
  .timeline li { font-size: .68rem; }
  .countdown div { min-width: 64px; }
  .rev { width: 290px; }
  .hero__float { display: none; }
  .try__stage { min-height: 500px; }

  /* Éditeur : le panneau devient une feuille glissante en bas */
  .ed { grid-template-rows: 58px 1fr auto; }
  .ed__top { padding: 0 12px; gap: 8px; }
  .ed__price { display: none; }
  .ed__main { grid-template-columns: 1fr; grid-template-rows: 1fr; position: relative; overflow: hidden; }
  .ed__rail { display: none; }
  .ed__panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 58%; border-radius: 26px 26px 0 0; border: 0; box-shadow: 0 -20px 40px -20px rgba(58, 21, 25, .35); padding: 12px 18px 30px; transform: translateY(105%); transition: transform .5s var(--ease-in-out), visibility 0s linear .5s; }
  .ed__panel::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 4px; background: var(--rose); margin: 0 auto 14px; }
  .ed__panel { visibility: hidden; }
  .ed.sheet-open .ed__panel { transform: none; visibility: visible; transition: transform .5s var(--ease-in-out), visibility 0s; }
  .ed__mobilebar { display: flex; justify-content: space-around; background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .ed__mobilebar .ed__tab { flex: 1; padding: 8px 2px; font-size: .66rem; }
  .ed__model-search { top: -12px; }
  .ed__title strong { font-size: 1rem; }
  .ed__hint { white-space: normal; width: max-content; max-width: calc(100% - 24px); text-align: center; font-size: .74rem; top: 10px; }
  .ed__top .btn { padding: 0 16px; min-height: 42px; }
  .ed__iconbtn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-stagger] > *, [data-split] .w > span { opacity: 1 !important; transform: none !important; }
  .intro { display: none; }
}

/* ---------- 2.1 : sur mesure, création partagée, brouillons ---------- */
.quote__kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.quote__kind { display: grid; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--white); color: var(--ink); text-decoration: none; border: 2px solid transparent; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.quote__kind strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.quote__kind span { font-size: .92rem; color: var(--muted); }
.quote__kind:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--ink); }
.quote__kind.is-on { border-color: var(--wine); }
#quote-form .contact__card span { font-family: var(--sans); font-size: .98rem; }
.shared__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.shared__pic { margin: 0; padding: clamp(20px, 4vw, 50px); border-radius: var(--r-lg, 28px); background: radial-gradient(circle at 50% 40%, var(--white), var(--blush)); display: grid; place-items: center; }
.shared__pic img { max-height: 70vh; width: auto; max-width: 100%; filter: drop-shadow(0 24px 40px rgba(58, 21, 25, .25)); }
.shared__msg { margin: 0 0 22px; padding: 18px 22px; border-radius: var(--r); background: var(--white); font-family: var(--serif); font-size: 1.2rem; font-style: italic; border-left: 4px solid var(--rose); }
.shared__facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.shared__facts li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.shared__facts span { color: var(--muted); }
.shared__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.draft { display: grid; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--white); }
.draft__pic { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--blush); overflow: hidden; }
.draft__pic img { max-width: 86%; max-height: 86%; object-fit: contain; }
.draft__info { display: grid; gap: 2px; }
.draft__info small { color: var(--muted); }
.draft__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .shared__in { grid-template-columns: 1fr; } }

/* Éditeur 2.1 : recto/verso, reprise, banques d'images, partage */
.ed__faces { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 253, 251, .94); box-shadow: var(--shadow-sm); }
.ed__faces button { position: relative; padding: 7px 16px; border: 0; border-radius: 99px; background: none; font-size: .82rem; font-weight: 700; color: var(--muted); transition: all .25s; }
.ed__faces button.is-on { background: var(--wine); color: var(--cream); }
.ed__faces button.is-off { opacity: .4; text-decoration: line-through; }
.ed__faces button.has-content::after { content: ""; position: absolute; top: 5px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.ed__resume { position: absolute; left: 50%; top: 58px; translate: -50% 0; z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); font-size: .86rem; font-weight: 600; }
.ed__iconbtn { position: relative; }
.ed__iconbtn.is-loading { pointer-events: none; color: transparent; }
.ed__iconbtn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--wine); border-right-color: transparent; animation: spin .7s linear infinite; }
.ed__stock-search { display: flex; gap: 8px; margin: 6px 0 10px; }
.ed__stock-search .ed__field { flex: 1; min-width: 0; }
.ed__stock-search .btn { min-height: 44px; padding: 0 14px; }
.ed__stock-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ed__stock-note { color: var(--muted); margin: 6px 0 0; }
.ed__chips--suggest .ed__chip { font-weight: 550; font-size: .76rem; padding: 5px 11px; }
.ed__stock { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; min-height: 60px; }
.ed__stock.is-loading { opacity: .5; }
.ed__stock-item { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 12px; border: 1.5px solid var(--line); background: var(--blush); transition: transform .25s, border-color .25s; }
.ed__stock-item img { width: 100%; height: 100%; object-fit: cover; }
.ed__stock-item.is-icon { background: var(--white); padding: 14px; }
.ed__stock-item.is-icon img { object-fit: contain; }
.ed__stock-item:hover { transform: translateY(-2px); border-color: var(--wine); }
.ed__stock-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: .64rem; line-height: 1.2; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed__share-result { display: grid; gap: 10px; margin: 10px 0; }
.ed__row--wrap { flex-wrap: wrap; }
@media (min-width: 1200px) { .ed__stock { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) {
  .ed__top { gap: 4px; padding: 0 8px; }
  .ed__actions { gap: 4px; }
  .ed__top .btn[data-ed-finish] { padding: 0 12px; }
  .ed__top .btn[data-ed-finish] span { display: none; }
  .ed__iconbtn { width: 36px; height: 36px; }
  .ed__faces { top: 10px; left: 10px; }
  .ed__faces button { padding: 6px 12px; }
}
.ed__faces:not([hidden]) ~ .ed__hint { top: 60px; }
.pdp__main img.is-on.is-swap { opacity: .3; }
/* Menu du haut : chaque entrée sur une ligne, plus compact quand il y a beaucoup de liens */
.hdr__nav a { white-space: nowrap; }
@media (max-width: 1600px) { .hdr__nav { gap: 2px; margin-left: 6px; } .hdr__nav a { padding: 8px 10px; font-size: .9rem; } }
@media (max-width: 1360px) { .hdr__nav a { padding: 7px 8px; font-size: .84rem; } }
@media (max-width: 1240px) { .hdr__nav { display: none; } .hdr__burger { display: block; } }
/* Liste des polices : hauteur fixe et texte centré verticalement (certaines polices manuscrites ont des jambages très hauts) */
.ed__fonts { grid-auto-rows: 44px; align-content: start; }
.ed__font { display: flex; align-items: center; height: 44px; min-height: 44px; padding: 0 12px; line-height: 1.15; font-size: 1.1rem; }
@media (max-width: 760px) {
  .ed__badges { bottom: 66px; max-width: calc(100% - 16px); gap: 4px; }
  .ed__align { gap: 4px; flex-wrap: nowrap; }
  .ed__achip, .ed__badges .ed__quality { font-size: .68rem; padding: 4px 8px; gap: 4px; }
  .ed__achip::before { width: 6px; height: 6px; }
}

/* ---------- 2.3 : favoris, prix dégressifs, livraison estimée, fichier prêt à imprimer ---------- */
.fav { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--wine); cursor: pointer; transition: transform .2s, background .2s, border-color .2s; flex-shrink: 0; }
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav:hover { border-color: var(--wine); }
.fav.is-on { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.fav.is-on svg { fill: currentColor; }
.fav.is-pop { animation: favPop .35s var(--ease, ease); }
@keyframes favPop { 50% { transform: scale(1.22); } }
.pcard { position: relative; }
.fav--card { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; background: rgba(255,255,255,.92); border-color: transparent; box-shadow: 0 4px 14px rgba(43,22,24,.12); }
.fav--card svg { width: 17px; height: 17px; }
.pdp__titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.hdr__fav { position: relative; }
.tiers { margin: 6px 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--white); border: 1.5px solid var(--line); }
.tiers__title { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mauve); }
.tiers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tiers li { display: grid; grid-template-columns: 1fr auto 64px; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; transition: background .2s; }
.tiers li em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--sage-d, #4E6B48); text-align: right; }
.tiers li.is-on { background: var(--blush); }
.tiers__hint { margin: 8px 0 0; min-height: 1.2em; }
.tag--tier { background: var(--sage-l, #E3ECDF); color: var(--sage-d, #4E6B48); }
.eta { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--blush); color: var(--ink); font-weight: 600; }
.eta svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--wine); stroke-width: 1.7; margin-top: 1px; }
.eta small { display: block; font-weight: 500; color: var(--mauve); margin-top: 2px; }
.recent .pgrid { margin-top: 18px; }
.favs .pgrid { margin-top: 26px; }
.favs__empty { margin-top: 26px; display: grid; gap: 14px; justify-items: start; }
.acc__acts { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.acc__acts form { margin: 0; }
.order__again { margin: 10px 0 0; }
.ed__ready { display: flex; gap: 12px; align-items: center; margin: 10px 0 14px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--wine); background: var(--white); cursor: pointer; transition: background .2s; }
.ed__ready:hover { background: var(--blush); }
.ed__ready svg { width: 26px; height: 26px; flex-shrink: 0; }
.ed__ready strong { display: block; font-size: .92rem; }
.ed__ready small { display: block; color: var(--mauve); font-size: .78rem; margin-top: 2px; }
.ed__tierhint { margin: 6px 0 0; color: var(--sage-d, #4E6B48); font-weight: 600; }
.ed__eta { margin: 6px 0 4px; color: var(--mauve); }
.pcard:has(.fav--card) .pcard__chip { right: 58px; }

/* ---------- 2.4 : options au paiement, livraison offerte, série ---------- */
.extras { display: grid; gap: 10px; }
.form .extra, .extra { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); cursor: pointer; transition: border-color .2s, background .2s; }
.extra:hover { border-color: var(--wine); }
.extra input { margin-top: 4px; accent-color: var(--wine); width: 18px; height: 18px; flex-shrink: 0; }
.extra:has(input:checked) { border-color: var(--wine); background: var(--blush); }
.extra__box strong { display: block; }
.extra__box strong em { font-style: normal; color: var(--wine); margin-left: 6px; }
.extra__box small { display: block; color: var(--mauve); margin-top: 2px; }
.extra__more { display: grid; gap: 10px; padding: 4px 4px 8px 34px; }
.freebar { margin: 0 0 14px; }
.freebar p { margin: 0 0 6px; font-weight: 600; }
.freebar span { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.freebar i { display: block; height: 100%; background: var(--wine); border-radius: 99px; transition: width .6s var(--ease); }
.freebar.is-done i { background: var(--sage-d, #4E6B48); }
.freebar.is-done p { color: var(--sage-d, #4E6B48); }
.order__hero .btn--sm { margin: 8px 4px 0; }
.order__again { display: inline-block; }
.ed__batch { margin: 12px 0 4px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 14px; }
.ed__batch .check span { display: grid; gap: 2px; }
.ed__batch-box { display: grid; gap: 8px; margin-top: 10px; }
.ed__batch-box textarea { resize: vertical; font-family: inherit; }
.ed__batch-file { justify-self: start; cursor: pointer; }

/* ---------- 2.5 : fidélité, entreprise, logos ---------- */
.tabs__count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--wine); color: var(--cream); font-size: .72rem; font-weight: 700; }
.loyal { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 22px; margin-bottom: 22px; }
.loyal__card { padding: 24px; border-radius: 22px; background: linear-gradient(135deg, var(--wine), #8C3442); color: var(--cream); box-shadow: 0 14px 34px rgba(107,30,38,.25); }
.loyal__card small { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; opacity: .85; }
.loyal__card strong { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; margin: 6px 0; }
.loyal__card strong span { font-size: 1rem; font-family: inherit; opacity: .85; }
.loyal__card p { margin: 0; opacity: .9; }
.loyal__how ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
td.pos { color: var(--sage-d, #4E6B48); font-weight: 700; }
td.neg { color: var(--wine); font-weight: 700; }
.bizgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 14px 0; }
.logo { margin: 0; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; display: grid; gap: 6px; justify-items: center; text-align: center; }
.logo img { width: 100%; height: 80px; object-fit: contain; background: repeating-conic-gradient(#f3ece8 0 25%, #fff 0 50%) 50% / 14px 14px; border-radius: 8px; }
.logo figcaption { font-size: .78rem; font-weight: 600; }
.logos__add { margin-top: 12px; }
.paid-note { padding: 12px 14px; border-radius: 12px; background: var(--sage-l, #E3ECDF); color: var(--sage-d, #4E6B48); font-weight: 600; }
.extra--loyalty { border-color: var(--gold, #C9A078); }
.ed__thumb--logo { background-size: contain !important; background-repeat: no-repeat; background-position: center; background-color: #fff !important; }
@media (max-width: 760px) { .loyal, .bizgrid { grid-template-columns: 1fr; } }
.logos__add .filedrop { flex-wrap: wrap; }
.logos__add .filedrop span { flex: 1; min-width: 160px; }

/* Panneau mobile : en-tête avec poignée et croix */
.ed__sheethead { display: none; }
@media (max-width: 760px) {
  .ed__panel::before { display: none; }
  .ed__sheethead { display: flex; align-items: center; justify-content: center; position: sticky; top: -12px; z-index: 3; margin: -12px -18px 8px; padding: 10px 18px 6px; background: var(--cream); touch-action: none; }
  .ed__grip { width: 44px; height: 5px; border-radius: 4px; background: var(--rose); }
  .ed__sheetclose { position: absolute; right: 12px; top: 6px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
  .ed__sheetclose svg { width: 18px; height: 18px; }
}
/* Bouton « Voir en 3D » sur la scène */
.ed__3d { position: absolute; top: 14px; right: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 0; background: var(--wine); color: var(--cream); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: var(--shadow-sm); }
.ed__3d svg { width: 18px; height: 18px; }
.ed__3d:hover { background: var(--wine-2); }
@media (max-width: 760px) { .ed__3d { top: auto; bottom: 64px; right: 12px; padding: 8px 12px; font-size: 13px; } }
/* Fenêtre d'aperçu 3D */
body.v3d-open { overflow: hidden; }
.v3d { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(43, 22, 24, .55); backdrop-filter: blur(6px); padding: 14px; }
.v3d__card { width: min(920px, 100%); height: min(760px, 100%); display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, var(--cream) 55%, var(--sand) 100%); box-shadow: var(--shadow); }
.v3d__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.v3d__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.v3d__stage { position: relative; min-height: 0; }
.v3d__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; z-index: 1; }
.v3d__stage canvas:active { cursor: grabbing; }
.v3d__shadow { position: absolute; left: 50%; bottom: 7%; width: 46%; height: 7%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(43, 22, 24, .28), transparent); filter: blur(4px); }
.v3d__hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 13px; color: var(--muted); z-index: 2; transition: opacity .4s; margin: 0; pointer-events: none; }
.v3d__bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
@media (max-width: 760px) { .v3d { padding: 0; } .v3d__card { border-radius: 0; height: 100%; } .v3d__bar { flex-wrap: nowrap; } .v3d__bar .btn { padding: 8px 12px; font-size: 13px; } }
