/* Essayage virtuel des bagues (démonstration Gemmyo), version 2 (20261003a) : parcours en 2 temps sur fond sombre, plein écran
   bord à bord sur mobile, grand calque centré sur ordinateur. Teintes de la boutique via les variables --wfr-* (injectées par
   tools/finalize.py) : crème #f8f6f1, encre #2b1d15, bronze #b08a6d ; boutons en capitales Sackers Gothic, sans arrondi ; texte
   courant Plantin. Unités en px uniquement (racine du site à 10 px) ; aucun texte sous 11 px.
   La modale « Ma taille de bague » (wf-ring.css) garde le style WeeFizz. Version 1 : scratchpad/tryon-v1-backup. */
.wft-link { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; background: none; border: 0; font-family: "PlantinMT", Georgia, serif; font-size: 14px; line-height: 1.4; color: #5b3a29;
  text-decoration: underline; text-decoration-color: #b08a6d; text-underline-offset: 3px; cursor: pointer; }
.wft-link:hover { color: #2b1d15; }
.wft-link:focus-visible { outline: 2px solid #2b1d15; outline-offset: 3px; }
.wft-link svg { width: 15px; height: 15px; flex: 0 0 auto; }
.wf-toast { z-index: 2147483000 !important; }

/* ---------- Bloc « Essayer virtuellement » dans le résultat de la modale de taille ---------- */
.wft-recoblock { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid #e8e1d6; border-left: 3px solid #b08a6d; background: #f8f6f1; color: #2b1d15; text-align: left; box-sizing: border-box; }
.wft-recoblock__icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #b08a6d; border-radius: 50%; color: #5b3a29; }
.wft-recoblock__icon svg { width: 20px; height: 20px; }
.wft-recoblock__text { flex: 1 1 auto; min-width: 0; }
.wft-recoblock__title { display: block; font-family: "Sackers-Gothic-Medium", Arial, sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; }
.wft-recoblock__sub { display: block; margin-top: 4px; font-family: "PlantinMT", Georgia, serif; font-size: 14px; line-height: 1.45; color: #5d5047; }
.wft-recoblock .wft-btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------- Boutons ---------- */
.wft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; height: 48px; padding: 0 24px; margin: 0;
  font-family: "Sackers-Gothic-Medium", Arial, sans-serif; font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  color: #fff; background: #8f6b4f; border: 1px solid #8f6b4f; border-radius: 0; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; -webkit-appearance: none; appearance: none; }
.wft-btn:hover { background: #6f5039; border-color: #6f5039; color: #fff; }
.wft-btn:focus-visible { outline: 2px solid #2b1d15; outline-offset: 2px; }
.wft-btn:disabled { opacity: .45; cursor: not-allowed; }
.wft-btn--outline { background: #fff; color: #2b1d15; border-color: #b08a6d; }
.wft-btn--outline:hover { background: #f3ede5; color: #2b1d15; border-color: #8f6b4f; }
.wft-btn--small { height: 40px; padding: 0 12px; letter-spacing: .1em; }
.wft-btn--entry { width: 100%; height: auto; min-height: 48px; padding: 12px 18px; }
.wft-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- Calque d'essayage v2 : 2 temps (Ma photo, puis le résultat en grand), fond sombre ----------
   Mobile (<= 760 px) : plein écran bord à bord (100dvh, zones sûres). Ordinateur : grand calque centré, même parcours.
   Écran courant porté par data-view : cam | nocam | review | wait | result. Teintes de la boutique via --wfr-*. */
html.wft-lock, html.wft-lock body { overflow: hidden !important; }
body.wft-open { overflow: hidden; }
/* La bulle « Contact » du site (z-index 1000000) passerait au-dessus de l'essayage : masquée tant qu'il est ouvert. */
body.wft-open .services-popin-button { display: none !important; }
.wft-modal { --wft-bg: #120d0a; --wft-sheet: #1a1310; --wft-line: rgba(255, 255, 255, .14); --wft-cream: var(--wfr-surface, #f8f6f1); --wft-ink: var(--wfr-ink, #2b1d15);
  --wft-accent: var(--wfr-accent, #b08a6d); --wft-head: var(--wfr-font-head, "Sackers-Gothic-Medium", Arial, sans-serif); --wft-text: var(--wfr-font, "PlantinMT", Georgia, serif);
  --wft-st: env(safe-area-inset-top, 0px); --wft-sb: env(safe-area-inset-bottom, 0px); --wft-sl: env(safe-area-inset-left, 0px); --wft-sr: env(safe-area-inset-right, 0px);
  --wft-pt: calc(68px + var(--wft-st)); --wft-pb: calc(150px + var(--wft-sb));
  position: fixed; inset: 0; z-index: 2147482000; display: flex; flex-direction: column; width: 100%; height: 100%; height: 100dvh; margin: 0;
  background: var(--wft-bg); color: #fff; font-family: var(--wft-text); font-size: 15px; font-weight: 400; line-height: 1.45; overflow: hidden; -webkit-font-smoothing: antialiased; touch-action: manipulation; }
.wft-modal[hidden], .wft-modal [hidden] { display: none !important; }
.wft-modal *, .wft-modal *::before, .wft-modal *::after { box-sizing: border-box; }
.wft-modal p { margin: 0; }
.wft-modal :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wft-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wft-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Scène : vidéo, photo, rendu */
.wft-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--wft-bg); }
.wft-video { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; background: #000; }
.wft-modal.is-mirror .wft-video { transform: scaleX(-1); }
.wft-modal[data-view="cam"] .wft-video { display: block; }
/* Gabarit discret : zone 3:4 réellement capturée (reste légèrement assombri) et contour de main en pointillés. */
.wft-guide { position: absolute; z-index: 1; pointer-events: none; box-shadow: 0 0 0 4000px rgba(0, 0, 0, .26); }
.wft-guide svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wft-modal:not([data-view="cam"]) .wft-guide { display: none; }
.wft-bg { position: absolute; inset: -40px; display: none; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.42) saturate(.9); }
.wft-photo, .wft-render { position: absolute; left: 0; right: 0; display: none; width: 100%; object-fit: contain; }
.wft-photo { top: var(--wft-pt); height: calc(100% - var(--wft-pt) - var(--wft-pb)); }
.wft-modal[data-view="review"] .wft-bg, .wft-modal[data-view="wait"] .wft-bg, .wft-modal[data-view="result"] .wft-bg { display: block; }
.wft-modal[data-view="review"] .wft-photo, .wft-modal[data-view="wait"] .wft-photo { display: block; }
.wft-modal[data-view="result"] .wft-render { display: block; }
.wft-modal[data-view="result"] .wft-render, .wft-modal[data-view="result"] .wft-photo { top: calc(64px + var(--wft-st)); height: calc(100% - 72px - var(--wft-st)); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.wft-modal[data-view="result"].is-before .wft-render { display: none; }
.wft-modal[data-view="result"].is-before .wft-photo { display: block; }
/* Flash bref à la prise de vue */
.wft-stage::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.wft-modal.is-flash .wft-stage::after { animation: wft-flash .45s ease-out 1; }
@keyframes wft-flash { 0% { opacity: .7; } 100% { opacity: 0; } }

/* Traitement : balayage lumineux sur la photo, un seul libellé */
.wft-sweep { position: absolute; left: 0; right: 0; top: var(--wft-pt); height: calc(100% - var(--wft-pt) - var(--wft-pb)); display: none; overflow: hidden; pointer-events: none; }
.wft-modal[data-view="wait"] .wft-sweep { display: block; }
.wft-sweep::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 46%;
  background: linear-gradient(100deg, rgba(255, 236, 214, 0) 0%, rgba(255, 236, 214, .06) 30%, rgba(255, 240, 222, .34) 50%, rgba(255, 236, 214, .06) 70%, rgba(255, 236, 214, 0) 100%);
  transform: translateX(-120%) skewX(-14deg); animation: wft-sweep 2.6s cubic-bezier(.45, .05, .35, 1) infinite; }
.wft-sweep::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(18, 13, 10, .55); }
@keyframes wft-sweep { 0% { transform: translateX(-120%) skewX(-14deg); } 70%, 100% { transform: translateX(260%) skewX(-14deg); } }
.wft-modal[data-view="wait"] .wft-photo { filter: brightness(.86) saturate(.92); }
.wft-waitlabel { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(52px + var(--wft-sb)); display: none; text-align: center;
  font-family: var(--wft-head); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.wft-modal[data-view="wait"] .wft-waitlabel { display: block; animation: wft-breathe 2.6s ease-in-out infinite; }
@keyframes wft-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wft-sweep::before { animation-duration: 6s; }
  .wft-modal[data-view="wait"] .wft-waitlabel { animation: none; }
  .wft-modal.is-flash .wft-stage::after { animation: none; }
}

/* Caméra : démarrage, retardateur */
.wft-camstatus { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; padding: 24px; text-align: center; font-size: 15px; color: rgba(255, 255, 255, .78); }
.wft-modal.is-starting[data-view="cam"] .wft-camstatus { display: grid; }
.wft-count { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
  background: rgba(0, 0, 0, .34); font-family: var(--wfr-font-num, "RecklessNeue", "PlantinMT", Georgia, serif); font-size: 54px; line-height: 1; color: #fff; pointer-events: none; }
.wft-modal:not([data-view="cam"]) .wft-count { display: none; }

/* Sans caméra : un seul grand bouton */
.wft-nocam { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: calc(80px + var(--wft-st)) 24px calc(96px + var(--wft-sb)); text-align: center; }
.wft-modal[data-view="nocam"] .wft-nocam { display: flex; }
.wft-nocam__icon { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 50%; color: rgba(255, 255, 255, .86); }
.wft-nocam__icon svg { width: 34px; height: 34px; }
.wft-nocam__msg { font-size: 14px; color: rgba(255, 255, 255, .7); }
.wft-pick { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 248px; min-height: 60px; padding: 0 30px; margin: 4px 0 0; border: 1px solid var(--wft-cream); border-radius: 0;
  background: var(--wft-cream); color: var(--wft-ink); font-family: var(--wft-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.wft-pick:hover { background: #fff; }
.wft-pick svg { width: 22px; height: 22px; flex: 0 0 auto; }
.wft-textbtn { min-height: 44px; padding: 0 6px; margin: 0; border: 0; background: none; color: #fff; font-family: var(--wft-text); font-size: 14px; text-decoration: underline; text-decoration-color: var(--wft-accent); text-underline-offset: 4px; cursor: pointer; }
.wft-textbtn:hover { color: var(--wft-cream); }

/* Vignette « Ma dernière photo » */
.wft-last { position: absolute; z-index: 4; left: calc(16px + var(--wft-sl)); bottom: calc(138px + var(--wft-sb)); display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 16px 4px 4px; margin: 0;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(0, 0, 0, .46); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--wft-head); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.wft-last img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wft-modal[data-view="nocam"] .wft-last { left: 50%; bottom: calc(28px + var(--wft-sb)); transform: translateX(-50%); }
.wft-modal:not([data-view="cam"]):not([data-view="nocam"]) .wft-last { display: none; }

/* Barre du haut : fermer, consigne d'une ligne, retardateur / Avant-Après / réglages démo */
.wft-top { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; pointer-events: none;
  padding: calc(10px + var(--wft-st)) calc(12px + var(--wft-sr)) 26px calc(12px + var(--wft-sl)); background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.wft-top > * { pointer-events: auto; }
.wft-round { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .42); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, color .2s; }
.wft-round:hover { background: rgba(0, 0, 0, .6); }
.wft-round svg { width: 22px; height: 22px; }
.wft-round[aria-pressed="true"] { background: #fff; color: var(--wft-ink); }
.wft-tip { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 15px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wft-modal:not([data-view="cam"]):not([data-view="nocam"]) .wft-tip { visibility: hidden; }
.wft-top__end { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 48px; }
.wft-compare { display: none; padding: 2px; border-radius: 999px; background: rgba(0, 0, 0, .46); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wft-modal[data-view="result"] .wft-compare { display: flex; }
.wft-compare button { min-width: 64px; min-height: 44px; padding: 0 14px; margin: 0; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer;
  font-family: var(--wft-head); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.wft-compare button[aria-pressed="true"] { background: #fff; color: var(--wft-ink); }
.wft-modal[data-view="result"] .wft-top { background: none; }

/* 1. Barre de prise de vue : Galerie à gauche, déclencheur rond au centre, retourner à droite */
.wft-bar { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: none; }
.wft-bar--cam { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 44px calc(20px + var(--wft-sr)) calc(26px + var(--wft-sb)) calc(20px + var(--wft-sl)); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .6)); }
.wft-modal[data-view="cam"] .wft-bar--cam { display: grid; }
.wft-bar__side { display: flex; justify-content: flex-start; min-width: 0; }
.wft-bar__side--end { justify-content: flex-end; }
.wft-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; min-height: 60px; padding: 6px 8px; margin: 0; border: 0; background: transparent; color: #fff; cursor: pointer;
  font-family: var(--wft-head); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; }
.wft-side svg { width: 28px; height: 28px; }
.wft-shutter { display: grid; place-items: center; width: 78px; height: 78px; padding: 0; margin: 0; border: 4px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.wft-shutter span { width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: transform .15s; }
.wft-shutter:active span { transform: scale(.88); }
.wft-modal.is-starting .wft-shutter { opacity: .35; pointer-events: none; }

/* Photo prise : Reprendre (fantôme) / Essayer (plein), consentement sur une ligne */
.wft-bar--review { padding: 30px calc(20px + var(--wft-sr)) calc(18px + var(--wft-sb)) calc(20px + var(--wft-sl)); text-align: center; background: linear-gradient(rgba(18, 13, 10, 0), rgba(18, 13, 10, .8) 38%); }
.wft-modal[data-view="review"] .wft-bar--review { display: block; }
.wft-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 0 auto; }
.wft-pair .wft-btn { width: 100%; height: 54px; padding: 0 12px; }
.wft-modal .wft-consent { max-width: 520px; margin: 12px auto 0; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .66); }
.wft-modal .wft-error { max-width: 520px; margin: 0 auto 12px; font-size: 14px; line-height: 1.4; color: #ffd8cc; }
.wft-btn--light { background: var(--wft-cream, #f8f6f1); color: var(--wft-ink, #2b1d15); border-color: var(--wft-cream, #f8f6f1); }
.wft-btn--light:hover { background: #fff; color: var(--wft-ink, #2b1d15); border-color: #fff; }
.wft-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.wft-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

/* 2. Résultat : feuille compacte (tailles « 51 · 52 · 53 », ajout au panier, icônes) */
.wft-sheet { position: relative; z-index: 5; flex: 0 0 auto; display: none; padding: 12px calc(16px + var(--wft-sr)) calc(12px + var(--wft-sb)) calc(16px + var(--wft-sl)); background: var(--wft-sheet); border-top: 1px solid var(--wft-line); }
.wft-modal[data-view="result"] .wft-sheet { display: block; }
.wft-sheet__row { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; }
.wft-sizerow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.wft-sizes { display: flex; align-items: center; gap: 2px; }
.wft-sizes__dot { color: rgba(255, 255, 255, .38); font-size: 16px; }
.wft-size { position: relative; min-width: 54px; height: 48px; padding: 0 8px; margin: 0; border: 1px solid transparent; border-radius: 0; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer;
  font-family: var(--wfr-font-num, "RecklessNeue", "PlantinMT", Georgia, serif); font-size: 21px; line-height: 1; transition: color .2s, border-color .2s; }
.wft-size:hover { color: #fff; }
.wft-size.is-active { color: #fff; border-color: rgba(255, 255, 255, .85); }
.wft-size.is-reco::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--wft-accent); }
.wft-sheet__actions { display: flex; gap: 8px; }
.wft-add { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 10px; letter-spacing: .12em; white-space: nowrap; }
.wft-iconbtn { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; margin: 0; border: 1px solid rgba(255, 255, 255, .32); border-radius: 0; background: transparent; color: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.wft-iconbtn:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.wft-iconbtn svg { width: 22px; height: 22px; }
.wft-modal .wft-note { margin: 10px auto 0; text-align: center; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .52); }
.wft-mockflag { position: absolute; z-index: 3; left: 50%; bottom: 12px; padding: 6px 12px; transform: translateX(-50%); background: rgba(0, 0, 0, .55); font-size: 12px; white-space: nowrap; }
.wft-modal:not([data-view="result"]) .wft-mockflag { display: none; }

/* Réglages démo (technique, hors parcours) */
.wft-settings { position: absolute; z-index: 8; top: 0; right: 0; bottom: 0; width: min(420px, 100%); padding: calc(72px + var(--wft-st)) 22px 32px; overflow: auto; background: #fff; color: #2b1d15; box-shadow: -12px 0 30px rgba(0, 0, 0, .25); }
.wft-settings :focus-visible { outline-color: #2b1d15; }
.wft-settings h3 { margin: 0 0 6px; font-family: "Sackers-Gothic-Medium", Arial, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.wft-settings .wft-lead { font-size: 14px; margin: 0 0 18px; color: #4a3b31; }
.wft-modal .wft-settings p.wft-status, .wft-modal .wft-settings p.wft-help { margin-top: 10px; }

/* Ordinateur et tablette : grand calque centré, voile sur la fiche ; feuille de résultat sur une ligne. */
@media (min-width: 761px) {
  .wft-modal { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(1180px, calc(100vw - 48px)); height: min(880px, calc(100vh - 48px)); box-shadow: 0 0 0 100vmax rgba(20, 13, 9, .72), 0 40px 90px rgba(0, 0, 0, .35); }
  .wft-sheet { padding: 14px 24px 16px; }
  .wft-sheet__row { flex-direction: row; align-items: center; justify-content: center; gap: 28px; max-width: none; }
  .wft-sheet__actions { flex: 0 1 470px; }
  .wft-last { left: 24px; }
  .wft-modal { --wft-pb: 138px; }
}
/* Petits téléphones (hauteur <= 700 px) */
@media (max-width: 760px) and (max-height: 700px) {
  .wft-modal { --wft-pt: calc(62px + var(--wft-st)); --wft-pb: calc(136px + var(--wft-sb)); }
  .wft-bar--cam { padding-bottom: calc(16px + var(--wft-sb)); padding-top: 32px; }
  .wft-shutter { width: 70px; height: 70px; }
  .wft-shutter span { width: 52px; height: 52px; }
  .wft-last { bottom: calc(116px + var(--wft-sb)); }
  .wft-sheet { padding-top: 8px; padding-bottom: calc(8px + var(--wft-sb)); }
  .wft-sheet__row { gap: 6px; }
  .wft-modal .wft-note { margin-top: 6px; }
  .wft-modal[data-view="result"] .wft-render, .wft-modal[data-view="result"] .wft-photo { top: calc(58px + var(--wft-st)); height: calc(100% - 62px - var(--wft-st)); }
}
@media (max-width: 380px) {
  .wft-tip { font-size: 14px; }
  .wft-side { min-width: 64px; }
}
/* Téléphone en paysage : commandes en colonne à droite, feuille de résultat à droite de l'image. */
@media (orientation: landscape) and (max-height: 500px) {
  .wft-modal { inset: 0; transform: none; width: 100%; height: 100%; height: 100dvh; box-shadow: none; flex-direction: row; --wft-pt: calc(56px + var(--wft-st)); --wft-pb: calc(96px + var(--wft-sb)); }
  .wft-top { padding-top: calc(6px + var(--wft-st)); padding-right: calc(132px + var(--wft-sr)); }
  .wft-modal[data-view="result"] .wft-top { padding-right: calc(12px + var(--wft-sr)); right: min(46%, 380px); }
  .wft-bar--cam { top: 0; left: auto; width: calc(124px + var(--wft-sr)); grid-template-columns: none; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); justify-items: center; gap: 6px;
    padding: calc(8px + var(--wft-st)) calc(10px + var(--wft-sr)) calc(8px + var(--wft-sb)) 10px; background: linear-gradient(to left, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
  .wft-bar__side, .wft-bar__side--end { justify-content: center; }
  .wft-bar__side { align-self: start; }
  .wft-bar__side--end { align-self: end; }
  .wft-last { bottom: calc(14px + var(--wft-sb)); }
  .wft-bar--review { padding-top: 16px; }
  .wft-modal .wft-consent { margin-top: 6px; }
  .wft-pair .wft-btn { height: 48px; }
  .wft-modal[data-view="result"] .wft-render, .wft-modal[data-view="result"] .wft-photo { top: 8px; height: calc(100% - 16px); }
  .wft-sheet { width: min(46%, 380px); display: none; flex-direction: column; justify-content: center; overflow: auto; border-top: 0; border-left: 1px solid var(--wft-line); padding: 12px 16px calc(12px + var(--wft-sb)); }
  .wft-modal[data-view="result"] .wft-sheet { display: flex; }
  .wft-sheet__row { flex-direction: column; gap: 10px; }
  .wft-sheet__actions { flex: 0 0 auto; }
}

/* Réglages démo : champs */
.wft-field { display: block; margin-bottom: 16px; }
.wft-field__label { display: block; font-family: "Sackers-Gothic-Medium", Arial, sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.wft-field input[type="text"], .wft-field input[type="password"], .wft-field select { display: block; width: 100%; height: 44px; padding: 0 12px; margin: 0; font-family: inherit; font-size: 16px; color: #2b1d15; background: #fff; border: 1px solid #b08a6d; border-radius: 0; -webkit-appearance: none; appearance: none; box-shadow: none; }
.wft-field input:focus, .wft-field select:focus { outline: 2px solid #2b1d15; outline-offset: 1px; }
.wft-field__row { display: flex; gap: 8px; }
.wft-field__row input { flex: 1 1 auto; min-width: 0; }
.wft-field__row .wft-btn { white-space: nowrap; }
.wft-status { min-height: 20px; font-size: 14px; margin-top: 10px; }
.wft-status.is-ok { color: #2d6a3e; }
.wft-status.is-ko { color: #7a2418; }
.wft-help { font-size: 13px; color: #5d5047; margin-top: 18px; word-break: break-word; }


/* ---------- Encart fiche : ligne d'accordéon « Essayage virtuel » aux codes des lignes de la fiche ---------- */
.wf-encart.wft-acc { margin: 0 0 4px; padding: 0; background: none; border: 0; color: #000; }
.wf-encart.wft-acc > [hidden] { display: none !important; }
.wft-acc__wrap { border-top: 1px solid #bfbfbf; border-bottom: 1px solid #bfbfbf; }
.wft-acc__row { position: relative; height: 51px; }
.wft-acc__head { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.wft-acc__head:focus-visible, .wft-acc__value:focus-visible { outline: 2px solid #2b1d15; outline-offset: 2px; }
.wft-acc__title { display: inline-flex; align-items: center; gap: 8px; font-family: "Sackers-Gothic-Heavy", "Sackers-Gothic-Medium", Arial, sans-serif; font-size: 12px; letter-spacing: .3px; text-transform: uppercase; color: #342e2e; line-height: 1.75; }
.wft-acc__title svg { width: 16px; height: 16px; color: #8a6a52; flex: 0 0 auto; }
.wft-acc__chev { width: 16px; height: 16px; flex: 0 0 auto; margin-right: -2px; color: #000; transition: transform .3s ease; }
.wft-acc.is-open .wft-acc__chev { transform: rotate(180deg); }
.wft-acc__value { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); z-index: 1; max-width: calc(100% - 200px); min-height: 44px; margin: 0; padding: 0 0 0 10px; border: 0; background: none; cursor: pointer;
  font-family: "RecklessNeue", Georgia, serif; font-size: 13.25px; letter-spacing: .92px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wft-acc__value:hover { text-decoration: underline; text-decoration-color: #b08a6d; text-underline-offset: 4px; }
.wft-acc[data-state="done"] .wft-acc__value { color: #5b3a29; text-decoration: underline; text-decoration-color: #b08a6d; text-underline-offset: 4px; }
/* Panneau : hauteur animée (grille 0fr -> 1fr), inerte une fois fermé */
.wft-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.wft-acc.is-open .wft-acc__panel { grid-template-rows: 1fr; }
.wft-acc__inner { min-height: 0; overflow: hidden; }
.wft-acc__content { padding: 4px 0 14px; }
@media (prefers-reduced-motion: reduce) { .wft-acc__panel, .wft-acc__chev { transition: none; } }
.wft-acc__btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.wft-acc__slot { min-width: 0; }
.wft-acc .wfr-launch { width: 100%; height: auto; min-height: 48px; padding: 8px 12px; gap: 8px; font-size: 11px; letter-spacing: .12em; line-height: 1.3; }
.wft-acc .wft-btn--entry { margin: 0; min-height: 48px; padding: 8px 12px; letter-spacing: .1em; text-wrap: balance; }
.wft-acc .wft-link--hand { display: flex; margin: 10px auto 0; }
.wft-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-family: "PlantinMT", Georgia, serif; font-size: 12px; line-height: 1.4; color: #6b5c51; text-align: center; }
.wft-trust svg { flex: 0 0 auto; width: 13px; height: 13px; color: #8a6a52; }
@media (max-width: 900px) {
  .wft-acc .wft-link--hand { min-height: 44px; margin-top: 2px; }
  .wft-trust { margin-top: 0; }
}
@media (max-width: 380px) {
  .wft-acc__title svg { display: none; }
  .wft-acc__value { max-width: calc(100% - 160px); letter-spacing: .4px; }
}

/* Correctif du thème sur les fiches (miroir) : la rangée d'onglets « La collection / Artisanat français / Pierres / Engagements »
   dépassait de 40 px entre 768 et 830 px de large (débordement horizontal de la page). */
@media (max-width: 1023px) { .media-tabs__container-text .line-menu { flex-wrap: wrap; row-gap: 10px; } }

/* Écrans bas (téléphone 360 x 640) : la consigne d'attente de l'écart n'est pas affichée, l'image garde la place. */
@media (max-height: 700px) and (max-width: 640px) { #wf-tryon-gap.is-hint { display: none; } }
