/* ==========================================================================
   ETA Combe — extensions (composants e-commerce ajoutés au template)
   Hero image + braises · popup panier · visionneuse · suivi & chat · WhatsApp ·
   maintenance · formulaires · animations supplémentaires
   ========================================================================== */

.no-anim *, .no-anim *::before, .no-anim *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.admin-bar { position: sticky; top: 0; z-index: 400; display: flex; gap: 1rem; justify-content: center; align-items: center; padding: .45rem 1rem; background: var(--signal); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.admin-bar a { color: #fff; }

/* En-tête : se masque en descendant, réapparaît en remontant */
.header { transition: transform .45s var(--ease), box-shadow .3s, background .3s; }
.header.is-hidden { transform: translateY(-110%); }
.wish-count { background: var(--ink); transform: scale(0); }
.wish-count.has-items { transform: scale(1); }

/* ---------- Hero avec image de fond ---------- */
.hero--image { color: var(--paper); isolation: isolate; min-height: min(92vh, 900px); display: grid; align-items: center; }
.hero__bg { position: absolute; inset: -6% -3%; z-index: -3; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 24s ease-in-out infinite alternate; will-change: transform; translate: var(--hx, 0) var(--hy, 0); transition: translate 1.2s var(--ease); }
.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(120% 90% at 85% 40%, rgba(44, 30, 22, calc(var(--shade) * .35)), transparent 60%),
  linear-gradient(100deg, rgba(28, 19, 14, calc(var(--shade) + .2)) 0%, rgba(44, 30, 22, var(--shade)) 45%, rgba(44, 30, 22, calc(var(--shade) * .45)) 100%); }
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }
.hero--image .hero__grain path { stroke: rgba(250, 250, 246, .07); }
.hero--image .hero__kicker { background: rgba(250, 250, 246, .12); backdrop-filter: blur(8px); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(250, 250, 246, .18); }
.hero--image h1 .stroke { -webkit-text-stroke-color: var(--wood); }
.hero--image .lede { color: rgba(250, 250, 246, .86); }
.hero--image .btn--ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(250, 250, 246, .4); }
.hero--image .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.hero--image .plz-check { background: rgba(250, 250, 246, .95); color: var(--ink); }
.hero--image .plz-result.ok { color: #B9E3C6; }
.hero--image .plz-result.no { color: #FFC1A6; }
.hero--image .log__meter { color: var(--ink); }
.hero--no-log .hero__inner { grid-template-columns: minmax(0, 760px); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border-radius: var(--radius-pill, 99px); box-shadow: inset 0 0 0 2px currentColor; opacity: .6; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: currentColor; animation: scrolldot 1.8s var(--ease) infinite; }
.hero .lede, .hero__ctas, .plz-check { animation: fadeup 1s var(--ease) both; }
.hero .lede { animation-delay: .35s; } .hero__ctas { animation-delay: .5s; } .hero .plz-check { animation-delay: .65s; }
@keyframes kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.18) translate3d(-1.5%, -1%, 0); } }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Titres : un trait de « sciure » se dessine sous le titre */
.draw-line { position: relative; }
.draw-line::after { content: ""; position: absolute; left: 0; bottom: -.25em; width: 2.6em; height: 4px; border-radius: 4px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; }
.draw-line.is-drawn::after { transform: scaleX(1); }
.page-hero--image .draw-line::after, .section--ink .draw-line::after { background: var(--wood); }

/* Apparition en cascade */
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-stagger].is-in > *, [data-reveal].is-in [data-stagger] > *, [data-stagger]:not([data-reveal]) > * { opacity: 1; transform: none; }
.pcard { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -26px rgba(44, 30, 22, .45); }
.pcard__media img { transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.fly-log { position: fixed; z-index: 500; width: 22px; height: 22px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #8C5A2F 0 2px, #C9935A 3px 5px, #B47A45 6px 7px, #C9935A 8px 9px, #2C1E16 10px); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge--pulse { animation: pulse 2.4s infinite; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--signal-ink); margin-bottom: 1rem; }
.eyebrow svg { width: 20px; height: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.ticks svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ink); color: var(--paper); flex: none; }

/* ---------- Lagerboxen (accueil) ---------- */
.boxes__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.boxes__media { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 4; transition: transform .6s var(--ease); box-shadow: 0 40px 80px -40px rgba(44, 30, 22, .5); }
.boxes__media img { width: 100%; height: 100%; object-fit: cover; }
.boxes__plan { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 42%; padding: .8rem; border-radius: var(--radius-m); background: rgba(250, 250, 246, .92); backdrop-filter: blur(6px); }
.boxes__plan svg { fill: none; stroke: var(--ink); stroke-width: 2; }
.boxes__plan rect { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.boxes__plan path { stroke: var(--signal); stroke-dasharray: 500; stroke-dashoffset: 500; transition: stroke-dashoffset 1.6s var(--ease) .9s; }
.boxes__plan text { fill: var(--ink); stroke: none; font-weight: 800; font-size: 22px; font-family: var(--font-stencil); }
.is-in .boxes__plan rect, .is-in .boxes__plan path { stroke-dashoffset: 0; }

/* ---------- Popup « ajouté au panier » ---------- */
.cpop { position: fixed; inset: 0; z-index: 460; display: grid; place-items: center; padding: 1rem; visibility: hidden; pointer-events: none; }
.cpop.is-open { visibility: visible; pointer-events: auto; }
.cpop__backdrop { position: absolute; inset: 0; background: rgba(17, 30, 25, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease); }
.cpop.is-open .cpop__backdrop { opacity: 1; }
.cpop__box { position: relative; width: min(100%, 560px); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45); transform: translateY(24px) scale(.96); opacity: 0; transition: transform .45s var(--ease-spring), opacity .3s var(--ease); }
.cpop.is-open .cpop__box { transform: none; opacity: 1; }
.cpop__head { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--ink-08); }
.cpop__head h2 { margin: 0; flex: 1; font-size: var(--fs-md); }
.cpop__check { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.cpop__check svg { width: 18px; height: 18px; stroke-dasharray: 30; stroke-dashoffset: 30; }
.cpop.is-open .cpop__check svg { animation: draw .5s var(--ease) .25s forwards; }
.cpop.is-open .cpop__check { animation: bump .6s var(--ease-spring); }
.cpop__body { overflow: auto; padding: 1.1rem 1.3rem; background: var(--mist); }
.cpop__also h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-50); margin: 1.2rem 0 .6rem; }
.cpop__item { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; align-items: start; padding: .9rem; border-radius: var(--radius-m); transition: opacity .25s, transform .25s; }
.cpop__item--main { background: #fff; box-shadow: 0 10px 28px -18px rgba(44, 30, 22, .35); animation: popin .5s var(--ease-spring); }
.cpop__item + .cpop__item { border-top: 1px solid var(--ink-08); border-radius: 0; }
.cpop__item.is-removing, .line-item.is-removing { opacity: 0; transform: translateX(30px); }
.cpop__item.is-busy, .line-item.is-busy { opacity: .6; }
.cpop__img img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.cpop__also .cpop__img img { width: 64px; height: 64px; }
.cpop__also .cpop__item { grid-template-columns: 64px 1fr auto; }
.cpop__info { display: grid; gap: .25rem; justify-items: start; min-width: 0; }
.cpop__name { font-weight: 700; text-decoration: none; line-height: 1.25; }
.cpop__var { font-size: var(--fs-xs); color: var(--ink-50); }
.cpop__price { font-weight: 700; color: var(--signal-ink); font-size: var(--fs-sm); }
.cpop__price small { color: var(--ink-50); font-weight: 400; }
.cpop__info .qty { margin-top: .35rem; }
.cpop__right { display: grid; justify-items: end; gap: 1.2rem; }
.cpop__x { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-50); }
.cpop__x:hover { background: var(--ink-08); color: var(--error); }
.cpop__x svg { width: 16px; height: 16px; }
.cpop__sum { font-size: var(--fs-sm); white-space: nowrap; }
.cpop__foot { padding: 1rem 1.3rem 1.2rem; border-top: 1px solid var(--ink-08); background: #F1EEE6; }
.cpop__foot .free-ship { margin-bottom: .8rem; }
.cpop__total { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.cpop__total small { display: block; color: var(--ink-50); font-size: var(--fs-xs); margin-top: .15rem; }
.cpop__total b { font-size: var(--fs-lg); color: var(--signal-ink); white-space: nowrap; }
.cpop__btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cpop__btns .btn { justify-content: center; }
.cpop__link { display: block; text-align: center; margin-top: .8rem; font-size: var(--fs-sm); color: var(--ink-50); }
@keyframes popin { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Galerie produit + visionneuse ---------- */
.gallery__main { position: relative; }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; overflow: hidden; }
.gallery__open img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity .25s, transform 1s var(--ease); }
.gallery__open:hover img { transform: scale(1.04); }
[data-main-img].is-swapping { opacity: 0; transform: scale(.98); }
.gallery__zoom { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(250, 250, 246, .92); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); transition: transform .3s var(--ease-spring); }
.gallery__zoom svg { width: 22px; height: 22px; }
.gallery__open:hover .gallery__zoom { transform: scale(1.12); }
.gallery__count { position: absolute; left: 1rem; bottom: 1rem; padding: .25rem .6rem; border-radius: var(--radius-pill, 99px); background: rgba(44, 30, 22, .75); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(12, 20, 17, .94); display: grid; grid-template-rows: 1fr auto auto; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; color: #fff; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { position: relative; overflow: hidden; display: grid; place-items: center; }
.lightbox__img { position: absolute; max-width: min(92vw, 1400px); max-height: calc(100vh - 170px); object-fit: contain; background: none; border-radius: 6px; transition: transform .38s var(--ease), opacity .38s var(--ease); user-select: none; cursor: zoom-in; }
.lightbox__img.from-right { transform: translateX(14%); opacity: 0; }
.lightbox__img.from-left { transform: translateX(-14%); opacity: 0; }
.lightbox__img.to-left { transform: translateX(-14%); opacity: 0; }
.lightbox__img.to-right { transform: translateX(14%); opacity: 0; }
.lightbox.is-zoomed .lightbox__img { transform: scale(2.2); cursor: zoom-out; transition: transform .35s var(--ease); }
.lightbox__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, transform .2s; }
.lightbox__btn:hover { background: var(--signal); transform: scale(1.06); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; margin-top: -26px; }
.lightbox__next { right: 1rem; top: 50%; margin-top: -26px; }
.lightbox__bar { display: flex; gap: 1rem; justify-content: center; padding: .5rem 1rem; font-size: var(--fs-sm); opacity: .8; }
.lightbox__thumbs { display: flex; gap: .5rem; justify-content: center; padding: 0 1rem 1.2rem; overflow-x: auto; }
.lightbox__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; opacity: .55; transition: opacity .2s, border-color .2s; }
.lightbox__thumbs button.is-active { opacity: 1; border-color: var(--signal); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.quote-box { display: grid; gap: .8rem; padding: 1.1rem 1.25rem; margin: 1.25rem 0; border-radius: var(--radius-m); background: var(--paper); border: 1.5px dashed var(--ink-15); }
.quote-box p { margin: 0; }
.quote-box .btn { justify-self: start; }
.pinfo__wish { width: 52px; height: 52px; box-shadow: inset 0 0 0 1.5px var(--ink-15); }
.review--flat { padding: 1rem 0; border-bottom: 1px solid var(--ink-08); }

/* ---------- Kasse ---------- */
.geo-field { position: relative; }
.geo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 1.2rem); margin: 0; padding: .35rem; list-style: none; background: #fff; border-radius: var(--radius-m); box-shadow: 0 18px 40px -16px rgba(44, 30, 22, .35); border: 1px solid var(--ink-08); max-height: 290px; overflow: auto; }
.geo-list li { display: flex; gap: .5rem; align-items: center; padding: .6rem .7rem; border-radius: 8px; cursor: pointer; font-size: var(--fs-sm); }
.geo-list li svg { width: 18px; height: 18px; color: var(--signal); flex: none; }
.geo-list li:hover, .geo-list li.is-active { background: var(--mist); }
.geo-list .geo-none { cursor: default; color: var(--ink-50); }
.date-pick__none { grid-column: span 2; }
.date-pick__none span { display: grid; place-items: center; height: 100%; font-weight: 600; }
.choice.is-disabled { opacity: .62; cursor: not-allowed; background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--ink-08) 10px 11px); }
.choice.is-disabled strong .badge { margin-left: .4rem; vertical-align: middle; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.review-grid h3 { font-size: var(--fs-base); display: flex; justify-content: space-between; gap: .5rem; }
.review-grid .link-btn { font-size: var(--fs-xs); font-weight: 400; }
.steps li { cursor: default; }
.steps li.is-done { cursor: pointer; }

/* ---------- Bestätigung ---------- */
.confirm { position: relative; }
.confirm__confetti { position: absolute; inset: -40px 0 auto; width: 100%; height: 520px; pointer-events: none; }
.confirm__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.confirm__note { margin: 1.5rem auto 0; padding: .9rem 1.2rem; border-radius: var(--radius-m); background: var(--paper); max-width: 560px; }
.confirm__note.is-ok { background: #E3F2E8; color: var(--ok); font-weight: 600; }
.bank-card { margin: 2rem auto 0; max-width: 620px; text-align: left; padding: 1.5rem 1.6rem; border-radius: var(--radius-l); background: var(--paper); border-left: 6px solid var(--signal); box-shadow: 0 20px 50px -30px rgba(44, 30, 22, .4); }
.bank-card h2 { font-size: var(--fs-lg); }
.bank-card__dl { display: grid; gap: .1rem; margin: 1rem 0 0; }
.bank-card__dl div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--ink-15); }
.bank-card__dl dt { color: var(--ink-50); font-size: var(--fs-sm); }
.bank-card__dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bank-card__dl--sm div { grid-template-columns: 110px 1fr; font-size: var(--fs-sm); }

/* ---------- Sendungsverfolgung ---------- */
.track-hero { padding-bottom: 4.5rem; }
.track-hero__road { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; }
.track-hero__road path { fill: none; stroke: var(--mist-deep); stroke-width: 22; stroke-linecap: round; }
.track-hero__road .dash { stroke: var(--wood); stroke-width: 3; stroke-dasharray: 18 18; animation: road 1.6s linear infinite; }
@keyframes road { to { stroke-dashoffset: -36; } }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; padding: 1.5rem; border-radius: var(--radius-l); background: var(--paper); box-shadow: 0 30px 60px -40px rgba(44, 30, 22, .45); }
.track-form .field { margin: 0; }
.track-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1.5rem; }
.track-head h2 { margin: 0; }
.track-line { list-style: none; margin: 0 0 2rem; padding: 1.5rem 1rem; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; border-radius: var(--radius-l); background: var(--paper); }
.track-line::before, .track-line::after { content: ""; position: absolute; top: calc(1.5rem + 26px); left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px; background: var(--ink-08); }
.track-line::after { right: auto; width: calc(75% * var(--progress)); background: var(--signal); transform-origin: left; animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.track-line li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: .35rem; }
.track-line__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mist); color: var(--ink-50); box-shadow: 0 0 0 6px var(--paper); transition: background .3s, color .3s; }
.track-line__pin svg { width: 26px; height: 26px; }
.track-line li.is-done .track-line__pin { background: var(--ink); color: var(--paper); }
.track-line li.is-current .track-line__pin { background: var(--signal); color: #fff; animation: pulse 2.4s infinite; }
.track-line small { color: var(--ink-50); font-size: var(--fs-xs); min-height: 1.2em; }
.track-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.track-card { padding: 1.5rem; border-radius: var(--radius-l); background: var(--paper); }
.track-card h3 { font-size: var(--fs-md); }
.track-items { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.track-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--ink-08); }
.track-items__total { font-size: var(--fs-md); border-bottom: 0 !important; }
.kv-de { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.kv-de dt { color: var(--ink-50); }
.kv-de dd { margin: 0; }
.notice { padding: .9rem 1.1rem; border-radius: var(--radius-m); background: var(--paper); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.notice--ok { background: #E3F2E8; color: #1E5A37; }
.notice--error { background: #FBE5E2; color: var(--error); }

/* Chat */
.chat { border-radius: var(--radius-l); background: var(--paper); overflow: hidden; box-shadow: 0 30px 60px -45px rgba(44, 30, 22, .5); }
.chat__head { padding: 1.3rem 1.5rem; background: var(--ink); color: var(--paper); }
.chat__head h2 { display: flex; gap: .6rem; align-items: center; margin: 0 0 .25rem; font-size: var(--fs-lg); }
.chat__head h2 svg { width: 26px; height: 26px; color: var(--wood); }
.chat__head .muted { color: rgba(250, 250, 246, .7); margin: 0; font-size: var(--fs-sm); }
.chat__list { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; height: min(480px, 60vh); overflow-y: auto; background:
  radial-gradient(circle at 20% 10%, rgba(217, 164, 108, .12), transparent 40%), var(--mist); scroll-behavior: smooth; }
.chat__empty { margin: auto; color: var(--ink-50); text-align: center; max-width: 34ch; }
.chat__msg { max-width: min(78%, 520px); padding: .75rem 1rem .5rem; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px -10px rgba(44, 30, 22, .4); animation: popin .35s var(--ease-spring); }
.chat__msg p { margin: 0 0 .3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__msg.is-mine { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.chat__msg.is-team { align-self: flex-start; border-bottom-left-radius: 6px; }
.chat__who { display: block; font-size: var(--fs-xs); font-weight: 700; margin-bottom: .2rem; opacity: .7; }
.chat__msg time { display: block; font-size: 11px; opacity: .6; text-align: right; }
.chat__img img { max-width: 240px; max-height: 220px; border-radius: 12px; margin: .3rem 0; object-fit: cover; }
.chat__doc { display: flex; gap: .6rem; align-items: center; padding: .6rem .8rem; margin: .3rem 0; border-radius: 12px; background: rgba(127, 127, 127, .12); text-decoration: none; color: inherit; }
.chat__doc svg { width: 28px; height: 28px; flex: none; color: var(--signal); }
.chat__doc small { display: block; opacity: .65; }
.chat__form { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--ink-08); }
.chat__row { display: flex; gap: .6rem; align-items: flex-end; }
.chat__row textarea { flex: 1; resize: none; min-height: 46px; max-height: 180px; padding: .75rem 1rem; border-radius: 22px; border: 1.5px solid var(--ink-15); background: #fff; font: inherit; }
.chat__row textarea:focus { outline: none; border-color: var(--ink); }
.chat__attach { cursor: pointer; flex: none; box-shadow: inset 0 0 0 1.5px var(--ink-15); }
.chat__file { display: inline-flex; gap: .5rem; align-items: center; padding: .4rem .7rem; margin-bottom: .6rem; border-radius: var(--radius-pill, 99px); background: var(--mist); font-size: var(--fs-sm); }
.chat__file svg { width: 18px; height: 18px; color: var(--signal); }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; z-index: 300; bottom: 1.25rem; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease-spring); }
.wa.is-ready { opacity: 1; transform: none; }
.wa--right { right: 1.25rem; }
.wa--left { left: 1.25rem; align-items: flex-start; }
.wa__btn { position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease-spring); }
.wa__btn:hover { transform: scale(1.08) rotate(-6deg); }
.wa__btn svg { width: 32px; height: 32px; }
.wa__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wapulse 2.6s infinite; }
@keyframes wapulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.wa__badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--signal); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.wa__panel { width: min(340px, calc(100vw - 2.5rem)); border-radius: 18px; overflow: hidden; background: #EFE7DD; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); transform-origin: bottom right; transform: scale(.85) translateY(10px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease-spring), opacity .25s; }
.wa--left .wa__panel { transform-origin: bottom left; }
.wa.is-open .wa__panel { transform: none; opacity: 1; pointer-events: auto; }
.wa__head { display: flex; gap: .7rem; align-items: center; padding: .9rem 1rem; background: #075E54; color: #fff; }
.wa__head strong { display: block; font-size: var(--fs-sm); }
.wa__head small { display: flex; gap: .35rem; align-items: center; font-size: 12px; opacity: .85; }
.wa__head > div { flex: 1; }
.wa__avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center; flex: none; }
.wa__avatar img { width: 34px; height: 34px; background: none; }
.wa__dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; }
.wa__x { border: 0; background: none; color: #fff; display: grid; place-items: center; }
.wa__x svg { width: 20px; height: 20px; }
.wa__body { padding: 1.2rem 1rem; min-height: 110px; }
.wa__bubble { position: relative; max-width: 88%; padding: .7rem .9rem 1.2rem; border-radius: 0 12px 12px 12px; background: #fff; font-size: var(--fs-sm); line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); animation: popin .4s var(--ease-spring) .15s both; }
.wa__bubble time { position: absolute; right: .6rem; bottom: .3rem; font-size: 10px; color: #8696a0; }
.wa__cta { display: flex; gap: .5rem; align-items: center; justify-content: center; margin: 0 1rem 1rem; padding: .8rem; border-radius: var(--radius-pill, 99px); background: #25D366; color: #fff; font-weight: 700; text-decoration: none; }
.wa__cta:hover { color: #fff; background: #1EBE5B; }
.wa__cta svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .wa--no-mobile { display: none !important; } .wa { bottom: 5.2rem; } }
@media (min-width: 761px) { .wa--no-desktop { display: none !important; } }

/* ---------- Divers pages ---------- */
.success-card { text-align: center; padding: 2rem; border-radius: var(--radius-l); background: var(--paper); }
.auth-box { max-width: 560px; margin-inline: auto; padding: 2rem; border-radius: var(--radius-l); background: var(--paper); }
.auth-box .seg { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; border-radius: var(--radius-pill, 99px); background: var(--mist); margin-bottom: 1.5rem; }
.auth-box .seg a { text-align: center; padding: .6rem; border-radius: var(--radius-pill, 99px); text-decoration: none; font-weight: 600; }
.auth-box .seg a.is-active { background: var(--ink); color: var(--paper); }
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.account-grid .account__nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: .25rem; padding: .75rem; border-radius: var(--radius-l); background: var(--paper); }
.account-grid .account__nav a, .account-grid .account__nav button { display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border-radius: 10px; text-decoration: none; font-weight: 600; width: 100%; }
.account-grid .account__nav a:hover { background: var(--mist); }
.account-grid .account__nav svg { width: 20px; height: 20px; }
.map--consent { display: grid; place-items: center; gap: .6rem; text-align: center; min-height: 260px; padding: 1.5rem; border-radius: var(--radius-l); background: repeating-linear-gradient(45deg, var(--mist) 0 14px, var(--mist-deep) 14px 15px); }
.map--consent small { color: var(--ink-50); max-width: 40ch; }
.footer__hours { font-size: var(--fs-sm); opacity: .85; margin-top: 1rem; }
.cookie__cats { display: grid; gap: .6rem; margin-top: .8rem; }
.cookie__cats small { color: var(--ink-50); }
.search-all a { justify-content: center; font-weight: 700; }
.toast--error { background: var(--error); }
.nl-ok { margin: 0; font-weight: 600; }
.err-page .big { display: flex; align-items: center; justify-content: center; gap: .05em; }
.err-log { width: .78em; height: .78em; fill: none; stroke: var(--wood); stroke-width: 6; animation: spinslow 18s linear infinite; }
@keyframes spinslow { to { transform: rotate(360deg); } }

/* Zones de livraison */
.zones-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; margin-bottom: 2.5rem; }
.zone-rings svg { width: 100%; max-width: 440px; margin-inline: auto; overflow: visible; }
.zone-rings__ring { fill: rgba(217, 164, 108, .1); stroke: var(--oak); stroke-width: 2; stroke-dasharray: 6 8; transform-origin: 200px 200px; animation: ringpulse 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
.zone-rings text { font-size: 13px; font-weight: 700; fill: var(--ink-70); }
.zone-rings__core { fill: var(--ink); }
.zone-rings__dot { fill: var(--signal); animation: pulse 2.4s infinite; }
.zone-rings__label { fill: var(--ink); font-family: var(--font-stencil); font-size: 16px !important; letter-spacing: .1em; }
@keyframes ringpulse { 50% { transform: scale(1.03) rotate(4deg); } }

/* ---------- Maintenance ---------- */
.maint { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: var(--paper); text-align: center; padding: 2rem; overflow: hidden; }
.maint__wrap { position: relative; max-width: 620px; }
.maint__log { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; z-index: -1; fill: none; stroke: rgba(217, 164, 108, .14); stroke-width: .6; animation: spinslow 60s linear infinite; }
.maint__log .spot { fill: var(--signal); stroke: none; opacity: .5; }
.maint__logo { width: 220px; margin: 0 auto 2.5rem; background: none; }
.maint h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); line-height: .95; letter-spacing: -.04em; }
.maint p { color: rgba(250, 250, 246, .8); font-size: var(--fs-md); }
.maint__until { color: var(--wood) !important; font-weight: 700; }
.maint a { color: var(--wood); }

/* ---------- Responsive ---------- */
.nav__link { white-space: nowrap; }
@media (max-width: 1280px) { .nav__list { gap: 0; } .nav__link { padding-inline: .55rem; font-size: var(--fs-sm); } }
@media (max-width: 980px) {
  .boxes__inner, .zones-wrap { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-grid .account__nav { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero--image { min-height: auto; }
  .hero--image .hero__visual { order: 2; max-width: 380px; margin-inline: auto; }
  .hero--image .hero__copy { order: 1; }
  .hero__scroll { display: none; }
  .track-form { grid-template-columns: 1fr; }
  .track-line { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .track-line::before, .track-line::after { display: none; }
  .bank-card__dl div { grid-template-columns: 1fr; gap: .1rem; }
  /* Popup en « bottom sheet » sur mobile */
  .cpop { align-items: end; padding: 0; }
  .cpop__box { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .cpop.is-open .cpop__box { transform: none; }
  .cpop__btns { grid-template-columns: 1fr; }
  .cpop__body { min-height: 34vh; flex: 1 1 auto; }
  .cpop__foot { padding-top: .8rem; }
  .cpop__foot .free-ship { font-size: var(--fs-xs); margin-bottom: .5rem; }
  .cpop__total { margin-bottom: .7rem; }
  .cpop__head h2 { font-size: var(--fs-base); }
  .cpop__btns .btn--signal { order: -1; }
  .cpop__item { grid-template-columns: 72px 1fr auto; }
  .cpop__img img { width: 72px; height: 72px; }
  .lightbox__prev, .lightbox__next { display: none; }
  .date-pick__none { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .zone-rings__ring, .err-log, .maint__log, .track-hero__road .dash { animation: none; }
  [data-stagger] > * { opacity: 1; transform: none; }
}

.cookie:not(.is-visible) { visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }

/* Logo : légère animation au survol */
.brand img { transition: transform .6s var(--ease-spring); }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }
