/* Visionneuse Anamorphose v0.3 : tailles en px (le thème fixe la taille de base à 10 px). */
.anam3dgal { margin: 0 0 16px; }
.anam3dgal[hidden] { display: none; }
.anam3dgal__vue { position: relative; aspect-ratio: 6 / 5; background: #2e2e2e; color: #ddd; overflow: hidden; border-radius: 4px; }
.anam3dgal__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.anam3dgal__3d { position: absolute; inset: 0; }
.anam3dgal__3d canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.anam3dgal__modes { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.anam3dgal__b { border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.4); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; line-height: 1.2; cursor: pointer; min-height: 40px; }
.anam3dgal__b[aria-pressed="true"] { background: #fff; color: #1b335c; border-color: #fff; }
.anam3dgal__statut { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: 13px; }
.anam3dgal__note { margin: 6px 0 0; font-size: 13px; color: #666; }
/* v0.3.3 : bouton de réalité augmentée, et options reprises sous la visionneuse sur téléphone */
.anam3dgal__ar { position: absolute; right: 10px; top: 10px; z-index: 2; border: 1px solid #fff; background: #fff; color: #1b335c; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; line-height: 1.2; min-height: 40px; cursor: pointer; }
.anam3dgal__ar[hidden] { display: none; }
.anam3dgal__ar:disabled { opacity: .7; cursor: default; }
.anam3dgal__ar--pret { background: #1b335c; color: #fff; border-color: #fff; }
.anam3dgal__mv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.anam3dgal__mv--visible { opacity: 1; pointer-events: auto; z-index: 1; background: #2e2e2e; }
.anam3dgal__options { display: none; margin: 8px 0 0; }
.anam3dgal__rang { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.anam3dgal__rang-titre { flex: none; width: 62px; font-size: 12px; font-weight: 600; color: #1b335c; line-height: 1.2; }
.anam3dgal__chips { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px; scrollbar-width: none; }
.anam3dgal__chips::-webkit-scrollbar { display: none; }
.anam3dgal__chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c9c6bf; background: #fff; color: #1b335c; border-radius: 999px; padding: 6px 12px; font-size: 13px; line-height: 1.2; min-height: 40px; cursor: pointer; white-space: nowrap; }
.anam3dgal__chip[aria-pressed="true"] { border-color: #1b335c; box-shadow: 0 0 0 1px #1b335c; font-weight: 600; }
.anam3dgal__chip--absent { opacity: .45; }
.anam3dgal__pastille { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
@media (max-width: 991px) { .anam3dgal__options:not([hidden]) { display: block; } }
/* v0.3.8 : longues listes (bois, dessus) en pastilles rondes sur plusieurs lignes, nom choisi écrit à côté du titre */
.anam3dgal__rang--ronds { display: block; margin: 0 0 10px; }
.anam3dgal__rang--ronds .anam3dgal__rang-titre { display: block; width: auto; margin: 0 0 6px; }
.anam3dgal__rang-choix { font-weight: 400; color: #333; }
.anam3dgal__chips--ronds { flex-wrap: wrap; overflow: visible; gap: 8px; }
.anam3dgal__chip--rond { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
.anam3dgal__chip--rond .anam3dgal__pastille { width: 30px; height: 30px; }
.anam3dgal__chip--rond[aria-pressed="true"] { box-shadow: 0 0 0 2px #1b335c; }
/* v0.4.0 : le bloc est posé avant le premier affichage ; sur un navigateur sans aspect-ratio, la hauteur de l'image est tenue par une marge (6 / 5) */
@supports not (aspect-ratio: 1 / 1) { .anam3dgal__vue::before { content: ''; display: block; padding-top: 83.3333%; } }
/* v0.4.0 : sur téléphone et tablette, la note tient toujours sur 2 lignes (une phrase par ligne), que la police du site soit déjà arrivée ou non :
   sinon elle passait d'une à deux lignes à l'arrivée de la police (410 px en Poppins, 334 à 366 px en police de secours) et la galerie descendait de 20 px. */
@media (max-width: 991px) { .anam3dgal__phrase { display: block; } }
/* v0.4.0 : titre « Bois : Noyer clair » d'une hauteur fixe : il mêle deux graisses de la police (titre en gras, nom en normal) ; si l'une arrive avant l'autre,
   la ligne grandissait d'un pixel et la galerie bougeait. */
.anam3dgal__rang--ronds .anam3dgal__rang-titre { height: 15px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* v0.5.0 : zoom sur l'image fixe. Une petite loupe dans le coin bas droit de l'image, dans le style des boutons « Image » / « Tourner en 3D », et le curseur
   en forme de loupe sur ordinateur. Rien en mode 3D. La loupe est posée par-dessus l'image (position absolue) : elle ne déplace rien dans la page.
   La vue agrandie elle-même (views/js/anam3dgalzoom.js, avec ses propres styles) n'est téléchargée qu'au premier clic sur l'image. */
.anam3dgal__loupe { position: absolute; right: 10px; bottom: 10px; z-index: 2; box-sizing: border-box; width: 40px; height: 40px; min-width: 0; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.4); color: #fff; border-radius: 50%; line-height: 1; cursor: pointer; }
.anam3dgal__loupe[hidden] { display: none; }
.anam3dgal__loupe svg { display: block; pointer-events: none; }
@media (hover: hover) { .anam3dgal__loupe:hover { background: #fff; color: #1b335c; border-color: #fff; } }
.anam3dgal--zoom .anam3dgal__photo { cursor: zoom-in; }
/* le petit message du bas de l'image ne passe pas sous la loupe, et un clic dessus va à l'image */
.anam3dgal__statut { padding: 0 56px; pointer-events: none; }
