/* First Optic — bouton, badge « Essai 3D » et fenêtre d'essayage virtuel (fiche produit et catalogue). */
.fo-essayer { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; margin: .6rem 0 0; padding: 1rem 1.2rem; border: 1px solid #C4A265; border-radius: 0; background: #fff; font-family: "Manrope", system-ui, sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #2B2B2B; cursor: pointer; transition: background .2s, color .2s; }
.fo-essayer[hidden] { display: none; }
.fo-essayer svg { width: 22px; height: 22px; fill: none; stroke: #A8864A; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fo-essayer:hover, .fo-essayer:focus-visible { background: #2B2B2B; color: #fff; }
.fo-essayer:hover svg, .fo-essayer:focus-visible svg { stroke: #C4A265; }

/* Badge « Essai 3D » : discret, cliquable. Cartes du catalogue : en haut à droite de la photo.
   Fiche produit : widget Elementor « Essai 3D (badge) », couleurs et position réglables dans son panneau. */
.fo-essai3d { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 5px 10px 5px 8px; border: 1px solid rgba(196, 162, 101, .6); border-radius: 999px; background: rgba(255, 255, 255, .92); font-family: "Manrope", system-ui, sans-serif; font-size: 9.5px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: #2B2B2B; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.fo-essai3d[hidden] { display: none; }
.fo-essai3d svg { width: 16px; height: 16px; fill: none; stroke: #A8864A; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.fo-essai3d:hover, .fo-essai3d:focus-visible { background: #2B2B2B; border-color: #2B2B2B; color: #fff; outline: none; }
.fo-essai3d:hover svg, .fo-essai3d:focus-visible svg { stroke: #C4A265; }
.fo-essai3d-carte { position: absolute; z-index: 4; top: 10px; right: 10px; }
.fo-essai3d-attente { cursor: progress; opacity: .6; } /* premier clic : chargement du module Fittingbox */

/* Fenêtre : fond assombri, rien par-dessus l'essayage (consigne Fittingbox). */
.fo-essayage { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; background: rgba(10, 10, 10, .78); }
.fo-essayage[hidden] { display: none; }
.fo-essayage-fenetre { position: relative; width: min(1100px, 96vw); height: min(760px, 90vh); background: #111; }
#fo-essayage-vto { width: 100%; height: 100%; }
/* Préfixe .fo-essayage obligatoire : la règle « boutons » de WoodMart (base.css, :is(.btn, button…) { position: relative })
   passait après et remettait le bouton dans le flux → l'essayage descendait de 44 px et les boutons du consentement
   Fittingbox sortaient de l'écran sur téléphone (corrigé le 28/10/2026). */
.fo-essayage .fo-essayage-fermer { position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); font-size: 26px; line-height: 44px; color: #2B2B2B; cursor: pointer; }
.fo-essayage-fermer:focus-visible { outline: 2px solid #C4A265; outline-offset: 2px; }
html.fo-essayage-ouvert, html.fo-essayage-ouvert body { overflow: hidden; }

@media (max-width: 767px) {
	/* Plein écran sur téléphone, calé sur la hauteur VISIBLE (100dvh) : avec 100 % / 100vh, le bas de la fenêtre
	   passait sous la barre du navigateur et cachait les boutons du consentement Fittingbox (22/10/2026). */
	.fo-essayage { padding: 0; bottom: auto; height: 100vh; height: 100dvh; }
	.fo-essayage-fenetre { width: 100vw; height: 100%; }
}
