/* HYMAGE — Simulateur par étapes (v1.54.13). Noir et blanc, polices du site. */
.tvm-wz .wz-off,
.tvm-wz .wz-off-always { display: none !important; }
.tvm-wz .wz-sel-hidden { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

/* En-tête */
.tvm-wz .wz-head { margin: 0 0 22px; }
.tvm-wz .wz-count { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: #111; }
.tvm-wz .wz-bars { display: flex; gap: 6px; margin: 10px 0 20px; }
.tvm-wz .wz-bars i { flex: 1; height: 3px; background: #e4e4e4; }
.tvm-wz .wz-bars i.on { background: #111; }
.tvm-wz .wz-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 32px; line-height: 1.1; margin: 0 0 8px; padding: 0; border: 0; color: #111; }
.tvm-wz .wz-sub { margin: 0; font-size: 14px; font-weight: 300; color: #555; line-height: 1.5; }

/* Cartes de forme */
.tvm-wz .wz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tvm-wz .wz-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 132px; padding: 16px 10px; background: #fff; color: #111; cursor: pointer;
    border: 1px solid #d8d8d8; border-radius: 0; font: inherit; font-size: 14px; font-weight: 400;
    transition: border-color .15s, box-shadow .15s;
}
.tvm-wz .wz-card svg { width: 54px; height: 54px; fill: none; stroke: #111; stroke-width: 1.6; }
.tvm-wz .wz-card:hover { border-color: #111; }
.tvm-wz .wz-card.is-active { border-color: #111; box-shadow: inset 0 0 0 1px #111; }

/* Puces / boutons de choix */
.tvm-wz .wz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tvm-wz .wz-chips.wz-list { flex-direction: column; }
.tvm-wz .wz-chip {
    min-height: 44px; padding: 9px 16px; background: #fff; color: #111; cursor: pointer;
    border: 1px solid #d8d8d8; border-radius: 0; font: inherit; font-size: 14px; font-weight: 300; text-align: left;
    transition: border-color .15s, background .15s, color .15s;
}
.tvm-wz .wz-chip:hover { border-color: #111; }
.tvm-wz .wz-chip.is-active { background: #111; border-color: #111; color: #fff; font-weight: 400; }
.tvm-wz .wz-chips.is-disabled { opacity: .45; pointer-events: none; }

/* Cotes avec − / + */
.tvm-wz .wz-num { display: flex; align-items: stretch; }
.tvm-wz .wz-num input { flex: 1; min-width: 0; text-align: center; border-radius: 0 !important; font-size: 18px !important; }
.tvm-wz .wz-pm {
    width: 48px; flex: none; background: #fff; color: #111; border: 1px solid #111; border-radius: 0;
    font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.tvm-wz .wz-pm:first-child { border-right: 0; }
.tvm-wz .wz-pm:last-child { border-left: 0; }
.tvm-wz .wz-pm:hover { background: #111; color: #fff; }

/* Réglages avancés */
.tvm-wz .wz-adv { border: 1px solid #e4e4e4; padding: 0 14px; margin: 6px 0 18px; }
.tvm-wz .wz-adv summary { cursor: pointer; padding: 14px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.tvm-wz .wz-adv[open] summary { border-bottom: 1px solid #e4e4e4; margin-bottom: 14px; }

/* Message d'étape */
.tvm-wz .wz-msg { margin: 6px 0 14px; padding: 12px 14px; border: 1px solid #111; background: #fff; font-size: 13.5px; }

/* Navigation */
.tvm-wz .wz-nav { display: flex; gap: 12px; margin-top: 24px; }
.tvm-wz .wz-nav button {
    height: 56px; border-radius: 0; cursor: pointer; font: inherit; font-size: 12px;
    letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
}
.tvm-wz .wz-back { width: 120px; background: #fff; color: #111; border: 1px solid #111; }
.tvm-wz .wz-next { flex: 1; background: #111; color: #fff; border: 1px solid #111; }
.tvm-wz .wz-next.is-off { background: #bdbdbd; border-color: #bdbdbd; cursor: not-allowed; }

/* Champs : on garde ceux du simulateur, version sobre */
.tvm-wz .tv-miroir-field label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: #333; }
.tvm-wz .tv-miroir-field input[type="number"],
.tvm-wz .tv-miroir-field input[type="text"],
.tvm-wz .tv-miroir-field select { border-radius: 0; min-height: 46px; }

/* Boutons d'action finaux */
.tvm-wz .tv-miroir-actions .tv-miroir-btn { border-radius: 0; min-height: 52px; letter-spacing: .14em; }
.tvm-wz .tv-miroir-actions .tv-miroir-btn-primary { background: #111; border-color: #111; color: #fff; }
.tvm-wz .tv-miroir-recap { background: #fafafa; border-left-color: #111; }

/* Aperçu : plus grand, sobre */
.tvm-wz .tv-miroir-preview { display: block; background: #fff; border: 1px solid #e4e4e4; border-radius: 0; text-align: center; }
.tvm-wz #tvmPreviewMention { text-align: center; }
@media (min-width: 1025px) {
    .tvm-wz .tv-miroir-columns { grid-template-columns: 420px minmax(0, 1fr); gap: 40px; }
    .tvm-wz .tv-miroir-preview { position: sticky; top: 24px; }
}

/* Mobile : l'aperçu reste collé en haut pendant qu'on répond */
@media (max-width: 768px) {
    .tvm-wz .tv-miroir-preview { order: -1; position: sticky; top: 0; z-index: 20; min-height: 0; padding: 8px; }
    .tvm-wz .tv-miroir-preview-svg,
    .tvm-wz .tv-miroir-preview-svg svg,
    .tvm-wz .tv-miroir-preview-exemple svg { max-height: 28vh; width: auto; max-width: 100%; margin: 0 auto; display: block; }
    .tvm-wz .tv-miroir-preview-placeholder { padding: 10px 0; font-size: 12px; }
    .tvm-wz .tv-miroir-preview-placeholder p { margin: 2px 0; }
    .tvm-wz .tv-miroir-preview-exemple-txt,
    .tvm-wz #tvmPreviewMention { display: none !important; }
    .tvm-wz .wz-title { font-size: 28px; }
}

/* Liste TV repliée une fois le choix fait (un clic sur le choix la rouvre) */
.tvm-wz .wz-chips.wz-list.is-picked:not(.is-open) .wz-chip:not(.is-active) { display: none; }
.tvm-wz .wz-chips.wz-list.is-picked .wz-chip.is-active::after { content: '  ▾'; opacity: .7; }

/* Boutons secondaires lisibles (pas grisés) */
.tvm-wz .tv-miroir-actions .tv-miroir-btn:not(.tv-miroir-btn-primary) { background: #fff; color: #111; border: 1px solid #111; }
.tvm-wz .tv-miroir-actions .tv-miroir-btn:not(.tv-miroir-btn-primary):hover { background: #111; color: #fff; }
.tvm-wz .tv-miroir-trumeau-swatch.selected { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.tvm-wz .tv-miroir-trumeau-swatch.selected span { color: #111; }

/* Anti-débordement (thèmes qui forcent white-space/largeur sur les boutons) */
.tvm-wz, .tvm-wz .tv-miroir-form, .tvm-wz .tv-miroir-step { max-width: 100%; overflow-x: clip; }
.tvm-wz .wz-chip, .tvm-wz .wz-card { box-sizing: border-box; max-width: 100%; white-space: normal !important; text-transform: none !important; letter-spacing: normal !important; }
.tvm-wz .wz-chips.wz-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tvm-wz .wz-chip.wz-tv { display: flex; flex-direction: column; gap: 4px; min-height: 84px; justify-content: center; }
.tvm-wz .wz-chip.wz-tv b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1; }
.tvm-wz .wz-chip.wz-tv small { font-size: 11.5px; font-weight: 300; line-height: 1.3; opacity: .8; }
.tvm-wz .wz-chips.wz-list.is-picked:not(.is-open) { grid-template-columns: minmax(0, 1fr); }
.tvm-wz .wz-chips.wz-list.is-picked .wz-chip.is-active::after { content: none; }
.tvm-wz .wz-chips.wz-list.is-picked:not(.is-open) .wz-chip.is-active small::after { content: '  ▾'; }
.tvm-wz .wz-next.is-off { background: #e9e9e9; border-color: #e9e9e9; color: #777; }

/* Icônes de formes retravaillées */
.tvm-wz .wz-cards { gap: 14px; }
.tvm-wz .wz-card { min-height: 150px; gap: 12px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 500; }
.tvm-wz .wz-card svg { width: 78px; height: 78px; fill: #fff; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tvm-wz .wz-card svg .t { fill: #111; stroke: none; }
.tvm-wz .wz-card svg .g { fill: none; stroke: #bdbdbd; stroke-width: 1.4; }
.tvm-wz .wz-card.is-active svg .t { fill: #111; }
.tvm-wz .wz-card:hover svg .g { stroke: #111; }

/* Navigation toujours à portée du pouce */
.tvm-wz .wz-nav { position: sticky; bottom: 0; z-index: 15; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); margin-top: 20px; border-top: 1px solid #eee; }
.tvm-wz .wz-nav-final { position: static; border: 0; background: none; padding: 0; margin-top: 12px; }
.tvm-wz .wz-nav-final .wz-back { width: 100%; }
.tvm-wz .wz-pm { touch-action: manipulation; user-select: none; -webkit-user-select: none; }

.tvm-wz .wz-card svg .c, .tvm-wz .wz-card svg .c * { fill: none; stroke-width: 1.2; stroke-linejoin: miter; stroke-linecap: butt; }
.tvm-wz .wz-card svg .c path:first-child { fill: #fff; }

/* Sélecteur de cadres : noir et blanc, sans doré */
.tvm-wz .tv-miroir-frame-filters { background: #fff; border: 1px solid #e4e4e4; border-radius: 0; }
.tvm-wz .tv-miroir-filter-name { color: #111; }
.tvm-wz .tv-miroir-filter-btn { border-radius: 0; border: 1px solid #d8d8d8; color: #111; background: #fff; }
.tvm-wz .tv-miroir-filter-btn:hover { border-color: #111; color: #111; }
.tvm-wz .tv-miroir-filter-btn.is-active { background: #111; border-color: #111; color: #fff; }
.tvm-wz .tv-miroir-filter-btn.is-active .tv-miroir-filter-count, .tvm-wz .tv-miroir-filter-btn.is-active .tv-miroir-filter-hint { color: #ddd; }
.tvm-wz .tv-miroir-filter-reset { color: #111; }
.tvm-wz .tv-miroir-frame-swatch { border-radius: 0; border: 1px solid #e4e4e4; }
.tvm-wz .tv-miroir-frame-swatch:hover { border-color: #111; box-shadow: none; transform: none; }
.tvm-wz .tv-miroir-frame-swatch.selected { border-color: #111; background: #fff; box-shadow: inset 0 0 0 1px #111; }
.tvm-wz .tv-miroir-frame-swatch.selected .tv-miroir-frame-swatch-label { font-weight: 600; }
.tvm-wz .tv-miroir-frame-swatch-dims, .tvm-wz .tv-miroir-frame-swatch.selected .tv-miroir-frame-swatch-dims { color: #666; }
.tvm-wz .tv-miroir-seg button.is-active { background: #111; border-color: #111; color: #fff; }
.tvm-wz .tv-miroir-field-info, .tvm-wz .tv-miroir-sab-hint { color: #555 !important; }
.tvm-wz .tv-miroir-recap { border-left-color: #111; }
.tvm-wz .recap-row b em { color: #111; }
.tvm-wz .tv-miroir-prises-toggle-txt svg { color: #111; }
.tvm-wz .tv-miroir-prises-card.is-on, .tvm-wz .tv-miroir-prises-card { border-color: #d8d8d8; }

/* Choix de la TV : carte sélectionnée très lisible */
.tvm-wz .wz-chip.wz-tv { position: relative; }
.tvm-wz .wz-chip.wz-tv.is-active::before { content: '✓'; position: absolute; top: 8px; right: 10px; font-size: 15px; }
.tvm-wz .wz-chip.wz-tv small { opacity: .75; }

/* Encarts d'information : gris neutre, trait noir */
.tvm-wz #tvmHorsToutInfo, .tvm-wz .tv-miroir-field-info, .tvm-wz .tv-miroir-help { background: #f6f6f6 !important; border-left: 2px solid #111 !important; color: #333 !important; border-radius: 0 !important; }
.tvm-wz .tv-miroir-help { background: none !important; border-left: 0 !important; }
.tvm-wz .tv-miroir-frame-gallery::-webkit-scrollbar-thumb { background: #111; }
.tvm-wz .tv-miroir-frame-gallery, .tvm-wz .tv-miroir-frame-swatches { background: #fff; border-color: #e4e4e4; border-radius: 0; }
.tvm-wz .tv-miroir-seg { border-color: #111; border-radius: 0; }
.tvm-wz .tv-miroir-seg button { border-radius: 0; }

/* Cadre choisi */
.tvm-wz .wz-sel { display: flex; align-items: center; gap: 14px; padding: 10px 12px; margin: 0 0 16px; border: 1px solid #111; background: #fff; }
.tvm-wz .wz-sel:empty { display: none !important; }
.tvm-wz .wz-sel img { width: 64px; height: 64px; object-fit: contain; background: #f6f6f6; flex: none; }
.tvm-wz .wz-sel span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tvm-wz .wz-sel small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #666; }
.tvm-wz .wz-sel b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.1; }
.tvm-wz .wz-sel em { font-style: normal; font-size: 12px; color: #555; }

/* Bandeau d'information / erreur collé à l'aperçu */
.tvm-wz .wz-banner { margin: 0 0 8px; padding: 9px 12px; font-size: 12.5px; line-height: 1.4; text-align: left; background: #f6f6f6; border-left: 2px solid #111; color: #222; }
.tvm-wz .wz-banner[data-kind="error"] { background: #fff; border: 1px solid #111; border-left-width: 4px; color: #111; font-weight: 500; }

/* Bouton « Voir dans ma pièce » centré */
.tvm-wz #tvmBtnVoirDansMaPiece { justify-content: center; align-items: center; text-align: center; }

/* Fenêtre caméra : au-dessus de tout, boutons lisibles */
.tv-miroir-ar-modal { z-index: 2147483647 !important; }
.tv-miroir-ar-actions { align-items: center; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.tv-miroir-ar-btn-secondary { width: auto !important; height: auto !important; min-width: 104px; padding: 12px 18px !important; border-radius: 999px !important; font-size: 14px !important; letter-spacing: .04em !important; text-transform: none !important; white-space: nowrap; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.6); }

/* Croix de fermeture de la caméra (toujours visible, y compris sur la photo prise) */
.tv-miroir-ar-x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 50; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.55); color: #fff; font-size: 28px; line-height: 1; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tv-miroir-ar-preview-actions .tv-miroir-btn { background: #fff; color: #111; border: 1px solid #fff; border-radius: 0; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; padding: 14px 18px; }

/* v1.54.17 — plus de saut d'écran : bandeau superposé (hors flux) et message d'origine masqué visuellement
   (il reste lisible par le script ; le bandeau affiche le même texte). */
.tvm-wz #tvMiroirPreview { position: relative; }
.tvm-wz .wz-banner { position: absolute; top: 0; left: 0; right: 0; z-index: 3; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tvm-wz #tvMiroirMessage { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* v1.54.18 — bloc « Position de l'écran » (écran 2) */
.tvm-wz .wz-pos { border: 1px solid #e4e4e4; padding: 14px; margin: 6px 0 18px; }
.tvm-wz .wz-pos-t { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.tvm-wz .wz-pos-h { margin: 6px 0 12px; font-size: 13px; color: #666; }
.tvm-wz .wz-pos-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tvm-wz .wz-pos-f .tv-miroir-field { margin: 0; min-width: 0; }
.tvm-wz .wz-pos-reset { margin-top: 12px; background: none; border: 1px solid #111; padding: 9px 14px; font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 600px) { .tvm-wz .wz-pos-f { grid-template-columns: 1fr; } }

/* v1.54.19 — la barre Retour / Suivant ne « saute » plus au défilement (iPhone) : elle reste à sa place, en bas du contenu. */
.tvm-wz .wz-nav { position: static; border-top: 0; padding: 0; margin-top: 24px; background: none; }
