/* Elyos – Essayage virtuel */
:root { --etry-accent: #dd3333; --etry-ink: #111; --etry-muted: #6b6b6b; --etry-line: #e8e8e8; }

/* Bouton fiche produit : même style que « Voir les prix » (bouton du thème), fond rouge */
.button.etry-product-btn {
  display: block; width: fit-content; margin: 10px 0 16px;
  background-color: var(--etry-accent) !important; color: #fff !important;
  padding: 5px !important; border: 0; border-radius: 30px !important;
  text-transform: none !important;
}
.button.etry-product-btn:hover { opacity: .9; }
.etry-inline { text-align: center; }
.etry-inline .button.etry-product-btn { margin: 20px auto; }

/* Onglet flottant */
.etry-tab {
  position: fixed; right: 0; top: 50%; z-index: 9990;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
  padding: 18px 11px; border: 0; border-radius: 0 6px 6px 0;
  background: var(--etry-accent); color: #fff; cursor: pointer;
  font: 700 12px/1 inherit; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.etry-tab svg { transform: rotate(90deg); }
.etry-tab:hover { filter: brightness(1.08); }
/* Sur téléphone : pas de bouton flottant (les boutons de la fiche produit suffisent) */
@media (max-width: 849px) { .etry-tab { display: none !important; } }

/* Fenêtre */
html.etry-lock, html.etry-lock body { overflow: hidden !important; }
.etry-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.etry-modal.is-open { display: flex; align-items: center; justify-content: center; }
.etry-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(3px); }
.etry-panel {
  position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto;
  background: #fff; color: var(--etry-ink); display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: etry-in .25s ease-out;
}
@keyframes etry-in { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 600px) { .etry-panel { width: 100%; height: 100%; } }

.etry-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--etry-line); }
.etry-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--etry-muted); }
.etry-title { font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.etry-x { width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--etry-ink); padding: 0; margin: 0; }

.etry-stage { position: relative; background: #1b1b1b; aspect-ratio: 4 / 3; overflow: hidden; flex-shrink: 0; }
@media (max-width: 600px) { .etry-stage { aspect-ratio: auto; flex: 1 1 auto; min-height: 50vh; } }
.etry-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.etry-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.etry-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; color: #fff; background: #1b1b1b; font-size: 15px; line-height: 1.5;
}
.etry-msg[hidden] { display: none; }
.etry-msg p { margin: 0; max-width: 340px; color: #fff; }
.etry-spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: etry-spin .8s linear infinite; }
@keyframes etry-spin { to { transform: rotate(360deg); } }
.etry-hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  background: rgba(0,0,0,.6); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap;
}
.etry-hint[hidden] { display: none; }
.etry-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.etry-tool {
  width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; margin: 0;
  background: rgba(255,255,255,.92); color: var(--etry-ink); font-size: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.etry-modes { display: flex; gap: 8px; padding: 12px 16px 4px; }
.etry-mode {
  flex: 1; text-align: center; padding: 9px 10px; margin: 0; border: 1px solid var(--etry-line); background: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--etry-muted); border-radius: 0; text-transform: none; letter-spacing: 0;
}
.etry-mode.is-on { border-color: var(--etry-ink); color: var(--etry-ink); }

.etry-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; flex-shrink: 0; }
.etry-strip[hidden] { display: none; }
.etry-item {
  flex: 0 0 92px; scroll-snap-align: center; background: #fff; border: 1.5px solid var(--etry-line);
  padding: 6px 4px; margin: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 0;
}
.etry-item img { width: 80px; height: 52px; object-fit: contain; }
.etry-item span { font-size: 10px; font-weight: 600; letter-spacing: .03em; color: var(--etry-ink); text-transform: uppercase; line-height: 1.2; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etry-item.is-on { border-color: var(--etry-accent); box-shadow: inset 0 0 0 1px var(--etry-accent); }

.etry-foot { display: flex; padding: 4px 16px 6px; }
.etry-foot[hidden] { display: none; }
.etry-foot .etry-btn { flex: 1; border: 0; cursor: pointer; margin: 0; }
.etry-tip { margin: 0; padding: 10px 16px 0; font-size: 12px; color: var(--etry-muted); text-align: center; }
.etry-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; text-decoration: none !important;
  background: var(--etry-accent); color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.etry-btn-ghost { background: #fff; color: var(--etry-ink) !important; border: 1px solid var(--etry-ink); }
.etry-privacy { margin: 0; padding: 4px 16px 14px; font-size: 11px; color: var(--etry-muted); text-align: center; }

/* ---------------- Forme du visage ---------------- */
/* Les 2 boutons sur une seule ligne ; sur téléphone chacun prend la moitié et le texte peut passer sur 2 lignes */
.etry-btns { display: flex; flex-wrap: nowrap; gap: 10px; align-items: stretch; margin: 10px 0 16px; }
.etry-btns .button.etry-product-btn {
  margin: 0; flex: 1 1 0; max-width: 260px; min-width: 0; min-height: 0; height: auto;
  display: flex; align-items: center; justify-content: center; text-align: center;
  white-space: normal; line-height: 1.25; padding: 7px 16px !important;
}
@media (max-width: 600px) {
  .etry-btns { gap: 8px; }
  .etry-btns .button.etry-product-btn { max-width: none; font-size: 14px; padding: 7px 10px !important; }
}
.button.etry-face-btn { background-color: #fff !important; color: var(--etry-accent) !important; box-shadow: inset 0 0 0 1.5px var(--etry-accent); }
.etry-modes .etry-mode { flex: 1 1 0; }

.etry-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.etry-scanbox { position: absolute; pointer-events: none; border: 1.5px dashed rgba(70,220,90,.85); transition: all .12s linear; }
.etry-scanbox[hidden] { display: none; }
.etry-scanbox i { position: absolute; width: 22%; height: 18%; border: 0 solid #46dc5a; }
.etry-scanbox i:nth-child(1) { left: -3px; top: -3px; border-left-width: 5px; border-top-width: 5px; border-top-left-radius: 8px; }
.etry-scanbox i:nth-child(2) { right: -3px; top: -3px; border-right-width: 5px; border-top-width: 5px; border-top-right-radius: 8px; }
.etry-scanbox i:nth-child(3) { left: -3px; bottom: -3px; border-left-width: 5px; border-bottom-width: 5px; border-bottom-left-radius: 8px; }
.etry-scanbox i:nth-child(4) { right: -3px; bottom: -3px; border-right-width: 5px; border-bottom-width: 5px; border-bottom-right-radius: 8px; }
.etry-scanbox.is-lost { opacity: .3; }

.etry-face { position: absolute; inset: 0; color: #fff; font-size: 14px; line-height: 1.45; pointer-events: none; }
.etry-face[hidden] { display: none; }
.etry-face > * { pointer-events: auto; }
.etry-face.is-intro { background: rgba(0,0,0,.66); display: flex; align-items: center; justify-content: center; overflow-y: auto; }
.etry-modal.etry-facing .etry-tools, .etry-modal.etry-facing .etry-tip { visibility: hidden; }

.etry-fback {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; margin: 0; border: 1.5px solid #fff; border-radius: 6px; background: rgba(0,0,0,.35);
  color: #fff; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.etry-fbox { text-align: center; padding: 56px 20px 18px; max-width: 420px; }
.etry-fbox h3 { color: #fff; font-size: 21px; margin: 0 0 14px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.etry-fbox ul { list-style: none; margin: 0 auto 14px; padding: 0; text-align: left; display: inline-block; }
.etry-fbox li { position: relative; padding-left: 26px; margin: 0 0 6px; font-size: 14px; }
.etry-fbox li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #111; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center; }
.etry-heads { display: flex; justify-content: center; gap: 34px; margin: 4px 0 14px; }
.etry-heads > div { position: relative; }
.etry-mark { position: absolute; left: -6px; top: -4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #111; font-weight: 900; font-size: 14px; line-height: 26px; text-align: center; }
.etry-fbox small { display: block; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.75); }

.etry-fgo {
  display: inline-flex; align-items: center; justify-content: center; min-width: 180px; padding: 11px 22px; margin: 0;
  border: 0; border-radius: 6px; background: #fff; color: #111 !important; font-size: 15px; font-weight: 700; line-height: 1.2;
  cursor: pointer; text-decoration: none !important; text-transform: none; letter-spacing: 0;
}
.etry-fcard .etry-fgo { width: 100%; box-sizing: border-box; }
.etry-fcard, .etry-fcard * { box-sizing: border-box; }

.etry-fscan { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(90%, 360px); text-align: center; background: rgba(0,0,0,.65); border-radius: 10px; padding: 10px 14px 12px; }
.etry-fscan b { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.etry-fscan span { display: block; font-size: 13px; opacity: .9; margin-bottom: 8px; }
.etry-fbar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.etry-fbar > i { display: block; height: 100%; width: 0; background: #46dc5a; transition: width .15s linear; }

.etry-fcard {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(94%, 420px);
  background: rgba(20,18,18,.92); border-radius: 12px; padding: 12px 14px 10px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.etry-fhead { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.45); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.etry-fico { display: inline-flex; color: #fff; opacity: .9; }
.etry-fres { flex: 1; margin: 0; color: #fff; font-size: 15px; }
.etry-fres b { font-weight: 800; }
.etry-fre { width: 34px; height: 34px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.etry-fsub { margin: 0 0 10px; color: #fff; font-size: 14px; }
.etry-flink { display: block; width: 100%; margin: 8px 0 0; padding: 4px; border: 0; background: none; color: #fff; font-size: 13px; text-decoration: underline; cursor: pointer; text-transform: none; letter-spacing: 0; }
.etry-ftiles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.etry-ftile {
  flex: 1 1 0; min-width: 72px; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 600;
}
.etry-ftile svg { width: 56px; height: 32px; }
.etry-ftile:hover { background: rgba(255,255,255,.2); }
@media (max-width: 600px) {
  .etry-fbox { padding-top: 52px; }
  .etry-fbox h3 { font-size: 18px; }
  .etry-heads svg { width: 76px; height: 76px; }
}

/* ---------------- Vue 3D à 360° ---------------- */
.etry-360 {
  position: absolute; left: 12px; bottom: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; margin: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--etry-ink);
  font-size: 13px; font-weight: 800; letter-spacing: .04em; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18);
  text-transform: none; white-space: nowrap; max-width: calc(100% - 24px);
}
.etry-360:hover { background: #fff; color: var(--etry-accent); }
.etry-v3-panel { width: min(920px, 100%); }
.etry-v3-stage { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 40%, #fff 0%, #ecebe8 100%); overflow: hidden; touch-action: none; cursor: grab; flex-shrink: 0; }
.etry-v3-stage:active { cursor: grabbing; }
@media (max-width: 600px) { .etry-v3-stage { aspect-ratio: auto; flex: 1 1 auto; min-height: 52vh; } }
.etry-v3-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.etry-v3-stage .etry-msg { background: #f3f3f1; color: var(--etry-ink); }
.etry-v3-stage .etry-msg p { color: var(--etry-ink); }
.etry-v3-stage .etry-spinner { border-color: rgba(0,0,0,.12); border-top-color: var(--etry-ink); }
.etry-v3-help { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(255,255,255,.85); color: var(--etry-muted); font-size: 12px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.etry-v3-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.etry-v3-zoom button {
  width: 40px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #fff; color: var(--etry-ink);
  font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.etry-v3-views { display: flex; gap: 6px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.etry-v3-views button {
  flex: 1 0 auto; padding: 8px 12px; margin: 0; border: 1px solid var(--etry-line); background: #fff; color: var(--etry-muted);
  font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 999px; text-transform: none; letter-spacing: 0; line-height: 1.2;
}
.etry-v3-views button.is-on { border-color: var(--etry-ink); color: var(--etry-ink); }
.etry-v3-actions { display: flex; padding: 8px 16px 14px; }
.etry-v3-actions .etry-btn { flex: 1; border: 0; cursor: pointer; margin: 0; }
