/* =========================================================
   AV WALL COMPOSER — V0.16.0 DEV
   Nouvelle instance composition murale — isolée du visualiseur V1.
   ========================================================= */

html.av-wall-composer-open,
body.av-wall-composer-open {
    overflow: hidden !important;
}

.av-wall-composer-v0130 {
    --avc-bg: #f3f3f0;
    --avc-panel: rgba(255,255,255,0.78);
    --avc-border: rgba(20,20,20,0.12);
    --avc-text: #151515;
    --avc-muted: rgba(20,20,20,0.62);
    --avc-gold: #9a7a52;
    position: fixed;
    inset: 0;
    z-index: 1000000;
    color: var(--avc-text);
    font-family: inherit;
}

.av-wall-composer-v0130 * {
    box-sizing: border-box;
}

.avc-backdrop {
    display: none;
}

.avc-shell {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: stretch;
    padding: 14px;
    background: var(--avc-bg);
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.avc-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 4;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--avc-border);
    border-radius: 7px;
    background: rgba(255,255,255,0.86);
    color: #111;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.avc-close:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.avc-panel {
    min-height: 0;
    height: calc(100vh - 28px);
    overflow: auto;
    padding: 24px;
    background: linear-gradient(180deg,rgba(255,255,255,0.88),rgba(255,255,255,0.64));
    border-right: 1px solid var(--avc-border);
}

.avc-panel-header {
    margin-bottom: 26px;
    padding-right: 36px;
}

.avc-panel-header h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(24px,2vw,31px);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.avc-panel-header p {
    margin: 6px 0 0;
    color: var(--avc-muted);
    font-size: 15px;
}

.avc-step {
    margin-top: 19px;
}

.avc-step > label {
    display: block;
    margin: 0 0 9px;
    font-weight: 650;
    font-size: 14px;
}

.avc-step > label span {
    color: #000;
}

.avc-step small {
    display: block;
    margin: 12px 0 7px;
    color: var(--avc-muted);
    font-size: 13px;
}

.av-wall-composer-v0130 select,
.av-wall-composer-v0130 input[type="number"] {
    width: 100%;
    min-height: 45px;
    padding: 11px 12px;
    border: 1px solid var(--avc-border);
    border-radius: 7px;
    background: rgba(255,255,255,0.92);
    color: var(--avc-text);
    font-size: 15px;
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(0,0,0,0.035);
}

.av-wall-composer-v0130 select:focus,
.av-wall-composer-v0130 input:focus {
    outline: none;
    border-color: rgba(90,65,40,0.46);
    box-shadow: 0 0 0 3px rgba(130,100,70,0.10);
}

.avc-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.avc-slot {
    position: relative;
    min-height: 92px;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255,255,255,0.54);
    color: var(--avc-text);
    cursor: pointer;
    overflow: hidden;
    transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.avc-slot:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(110,75,42,0.42);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.avc-slot.is-active {
    background: rgba(226,224,218,0.96);
    border-color: rgba(92,70,46,0.56);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(92,70,46,0.18), 0 4px 14px rgba(0,0,0,0.08);
}

.avc-slot img {
    width: 100%;
    height: 58px;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    background: #e7e4dc;
}

.avc-slot span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avc-slot em {
    position: absolute;
    top: 5px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.86);
    color: rgba(20,20,20,0.72);
    font-style: normal;
    font-size: 11px;
    font-weight: 650;
}


.avc-slot-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: rgba(20,20,20,0.78);
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    font-weight: 650;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.avc-slot-add {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(20,20,20,0.22);
    background: rgba(255,255,255,0.38);
}

.avc-slot-add .avc-plus {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    color: rgba(20,20,20,0.58);
}

.avc-wall-upload-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px dashed rgba(20,20,20,0.24);
    border-radius: 8px;
    background: rgba(255,255,255,0.70);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.avc-wall-upload-label input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.avc-calibration-toggle,
.avc-calibration-validate {
    width: 100%;
    min-height: 42px;
    margin-top: 7px;
    padding: 9px 12px;
    border: 1px solid var(--avc-border);
    border-radius: 7px;
    background: rgba(255,255,255,0.86);
    color: var(--avc-text);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.avc-calibration-toggle.is-active,
.avc-calibration-toggle:hover,
.avc-calibration-validate:hover {
    background: #fff;
    border-color: rgba(110,75,42,0.40);
}

.avc-calibration-input {
    margin-top: 7px;
}

.avc-canvas { cursor: grab; touch-action: none; }
.avc-canvas:active { cursor: grabbing; }

.avc-slot-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(20,20,20,0.22);
}

.avc-artwork-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 8px;
    max-height: 178px;
    overflow: auto;
    margin-top: 9px;
    padding: 7px;
    border: 1px solid var(--avc-border);
    border-radius: 9px;
    background: rgba(255,255,255,0.62);
}

.avc-artwork-choice {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255,255,255,0.34);
    cursor: pointer;
    overflow: hidden;
    transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.avc-artwork-choice:hover,
.avc-artwork-choice.is-active {
    background: rgba(255,255,255,0.92);
    border-color: rgba(110,75,42,0.42);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.avc-artwork-choice.is-active::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid rgba(30,24,18,0.64);
    border-radius: 6px;
    pointer-events: none;
}

.avc-artwork-choice img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 7px;
    background: #e7e4dc;
}

.avc-selected-format-block {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.avc-composition-controls-box {
    display: grid;
    gap: 9px;
}

.avc-selected-title {
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.3;
}

.avc-note {
    padding: 10px 12px;
    border: 1px solid var(--avc-border);
    border-radius: 8px;
    background: rgba(243,243,240,0.72);
}

.avc-group-reference {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 8px;
    border: 1px solid rgba(20,20,20,0.10);
    border-radius: 8px;
    background: rgba(255,255,255,0.58);
    color: rgba(20,20,20,0.72);
    font-size: 12px;
    line-height: 1.3;
}

.avc-group-reference img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(20,20,20,0.08);
}

.av-inline-help {
    display: none;
    width: 100%;
    margin: 6px 0 0;
    padding: 9px 10px;
    border: 1px solid rgba(20,20,20,0.10);
    border-radius: 8px;
    background: rgba(255,255,255,0.72);
    color: rgba(20,20,20,0.66);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
}

.avc-add-hint {
    padding: 9px 11px;
    border: 1px solid rgba(110,75,42,0.20);
    border-radius: 8px;
    background: rgba(255,255,255,0.72);
}

.avc-remove-selected {
    width: 100%;
    min-height: 40px;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(20,20,20,0.14);
    border-radius: 8px;
    background: rgba(255,255,255,0.76);
    color: rgba(20,20,20,0.74);
    font-weight: 600;
    cursor: pointer;
}

.avc-remove-selected:hover {
    background: rgba(255,255,255,0.98);
}

.avc-mode-buttons,
.avc-alignment-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.avc-alignment-buttons {
    margin-top: 10px;
}

.avc-alignment-buttons.is-disabled {
    opacity: 0.48;
}

.avc-mode-button {
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--avc-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.72);
    color: var(--avc-text);
    font: inherit;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.25;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.avc-mode-button:hover,
.avc-mode-button.is-active {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.98);
    border-color: rgba(110,75,42,0.42);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.avc-mode-button:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.avc-apply-group-button {
    width: 100%;
    margin-top: 8px;
}

.avc-inline-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.avc-inline-input span {
    color: var(--avc-muted);
    font-size: 13px;
}

.avc-toggle-line {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin: 10px 0 0 !important;
    padding: 10px 12px;
    border: 1px solid var(--avc-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.66);
    font-weight: 500 !important;
    cursor: pointer;
}

.avc-toggle-line input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #4f3b2a;
    flex: 0 0 auto;
}

.avc-preview {
    position: relative;
    min-width: 0;
    height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: #ebe9e4;
    min-height: 0;
}

.avc-toolbar {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    right: 72px;
    display: flex;
    justify-content: flex-start;
    pointer-events: auto;
}

.avc-calibration-status {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--avc-border);
    border-radius: 7px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(8px);
    color: rgba(20,20,20,0.76);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}


.avc-toolbar-button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-left: 8px;
    padding: 8px 12px;
    border: 1px solid var(--avc-border);
    border-radius: 7px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(8px);
    color: rgba(20,20,20,0.76);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.avc-toolbar-button:hover,
.avc-toolbar-button:focus,
.avc-toolbar-button:focus-visible,
.avc-toolbar-button:active {
    background: #fff !important;
    color: rgba(20,20,20,0.76) !important;
    border-color: var(--avc-border) !important;
    outline: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05) !important;
}

.avc-toolbar-button:visited {
    color: rgba(20,20,20,0.76) !important;
}

.avc-canvas-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avc-canvas {
    width: min(100%, calc((100vh - 118px) * 1200 / 760));
    height: auto;
    max-height: calc(100vh - 118px);
    aspect-ratio: 1200 / 760;
    display: block;
    margin: auto;
    border: 1px solid var(--avc-border);
    border-radius: 8px;
    background: var(--avc-bg);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    cursor: grab;
    touch-action: none;
}

.avc-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 13px;
    flex: 0 0 auto;
}

.avc-summary-card {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--avc-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 8px 22px rgba(0,0,0,0.045);
}

.avc-summary-card span {
    min-width: 0;
    color: var(--avc-muted);
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avc-summary-card strong {
    min-width: 0;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 650;
    overflow-wrap: anywhere;
}


@media (max-width: 767px) {
    .av-visualiseur-v0134g .av-compose-simulation {
        display: none !important;
    }

    .av-wall-composer-v0130 {
        display: none !important;
    }
}

@media (max-width: 1050px) {
    .avc-shell {
        grid-template-columns: 290px minmax(0, 1fr);
        inset: 0;
        padding: 18px;
    }

    .avc-panel {
        padding: 20px;
    }

    .avc-summary {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

/* =========================================================
   V0.15 - Harmonisation progressive avec la visionneuse
   ========================================================= */

.av-wall-composer-v0130 .avc-step-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.av-wall-composer-v0130 .avc-step-title > span:first-child {
    min-width: 20px;
}

.avc-step-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20,20,20,0.12);
    border-radius: 8px;
    background: rgba(243,243,240,0.74);
    color: #151515;
}

.avc-step-icon::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border: 1.6px solid currentColor;
    border-radius: 2px;
    opacity: .82;
}

.avc-step-icon--wall::before,
.avc-step-icon--composition::before {
    width: 15px;
    height: 10px;
    border-radius: 1px;
}

.avc-step-icon--mode::before {
    width: 13px;
    height: 13px;
    border-radius: 999px;
}

.avc-step-icon--options::before {
    width: 15px;
    height: 2px;
    border-width: 0;
    border-top: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.av-wall-composer-v0130 .avc-info-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(20,20,20,0.24);
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    color: rgba(20,20,20,0.70);
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.av-wall-composer-v0130 .avc-info-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + 8px);
    width: min(260px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 10px 11px;
    border: 1px solid var(--avc-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.98);
    color: var(--avc-text);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity .16s ease, transform .16s ease;
}

.av-wall-composer-v0130 .avc-info-dot:hover::after,
.av-wall-composer-v0130 .avc-info-dot:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.av-wall-composer-v0130 .avc-wall-upload-label.is-dragover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.98);
    border-color: rgba(110,75,42,0.62);
}

.av-wall-composer-v0130 .avc-toolbar {
    gap: 8px;
}

.av-wall-composer-v0130 .avc-toolbar-button:focus,
.av-wall-composer-v0130 .avc-toolbar-button:active {
    background: rgba(255,255,255,0.92);
    color: #111;
}

/* =========================================================
   V0.16 - rapprochement visuel avec le visualiseur V1
   ========================================================= */

.av-wall-composer-v0130 .avc-step-title {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.av-wall-composer-v0130 .avc-ui-icon,
.av-wall-composer-v0130 .av-wall-action-icon,
.av-wall-composer-v0130 .av-scale-title-icon-inner,
.av-wall-composer-v0130 .av-scale-toggle-icon-inner,
.av-wall-composer-v0130 .avc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: rgba(20,20,20,0.82);
    flex: 0 0 auto;
}

.av-wall-composer-v0130 .avc-ui-icon img,
.av-wall-composer-v0130 .av-wall-action-icon img,
.av-wall-composer-v0130 .av-scale-title-icon-inner img,
.av-wall-composer-v0130 .av-scale-toggle-icon-inner img,
.av-wall-composer-v0130 .avc-info-icon img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.av-wall-composer-v0130 .avc-ui-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.av-wall-composer-v0130 .av-wall-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 10px;
}

.av-wall-composer-v0130 .av-wall-upload-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px;
    border: 1px dashed rgba(20,20,20,0.24);
    border-radius: 9px;
    background: rgba(255,255,255,0.72);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: background .16s ease,border-color .16s ease,transform .16s ease;
}

.av-wall-composer-v0130 .av-wall-upload-button:hover,
.av-wall-composer-v0130 .av-wall-upload-button.is-dragover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.96);
    border-color: rgba(110,75,42,0.46);
}

.av-wall-composer-v0130 .av-wall-upload-button input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.av-wall-composer-v0130 .av-scale-box {
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid var(--avc-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.56);
}

.av-wall-composer-v0130 .av-scale-title {
    display: grid !important;
    align-items: center !important;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 650;
    grid-template-columns: auto 1fr auto !important;
    column-gap: 8px !important;
}

.av-wall-composer-v0130 .av-scale-title-icon,
.av-wall-composer-v0130 .av-scale-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: rgba(20,20,20,0.82);
}

.av-wall-composer-v0130 .av-info-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(20,20,20,0.24);
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    color: rgba(20,20,20,0.70);
    font-family: Georgia,serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    overflow: visible;
}

.av-wall-composer-v0130 .av-info-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + 8px);
    width: min(260px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 10px 11px;
    border: 1px solid var(--avc-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.98);
    color: var(--avc-text);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity .16s ease,transform .16s ease;
}

.av-wall-composer-v0130 .av-info-dot:hover::after,
.av-wall-composer-v0130 .av-info-dot:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.av-wall-composer-v0130 .av-scale-toggle {
    width: 100%;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--avc-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.86);
    color: var(--avc-text);
    font-weight: 650;
    cursor: pointer;
    transition: background .16s ease,transform .16s ease,border-color .16s ease;
}

.av-wall-composer-v0130 .av-scale-toggle:hover,
.av-wall-composer-v0130 .av-scale-toggle.is-active {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.98);
    border-color: rgba(110,75,42,0.40);
}

.av-wall-composer-v0130 .av-scale-height-label {
    margin: 10px 0 6px;
    font-size: 12px;
    color: var(--avc-muted);
    font-weight: 500;
}

.av-wall-composer-v0130 .av-scale-input-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}

.av-wall-composer-v0130 .av-scale-input-row span {
    color: var(--avc-muted);
    font-size: 13px;
}

.av-wall-composer-v0130 .av-scale-validate {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--avc-border);
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-weight: 650;
    cursor: pointer;
}

.av-wall-composer-v0130 .av-scale-help {
    margin-top: 9px;
}

.av-wall-composer-v0130 .avc-toolbar-button {
    gap: 8px;
}


/* V0.18 - reprise du noyau commun mur / exemples */
.avc-panel .av-wall-choice-grid {
  margin-top: 7px;
}

.avc-panel .av-wall-choice-item {
  font-family: inherit;
}

/* V0.20 - rapprochement structurel avec la fenetre du visualiseur V1. */
.av-wall-composer-v0130 {
    --av-bg: #f3f3f0;
    --av-panel: rgba(255,255,255,0.78);
    --av-border: rgba(20,20,20,0.12);
    --av-text: #151515;
    --av-muted: rgba(20,20,20,0.62);
}

.av-wall-composer-v0130 .avc-shell {
    gap: 14px;
    padding: 14px;
    background: var(--av-bg);
}

.av-wall-composer-v0130 .avc-panel {
    background: linear-gradient(180deg,rgba(255,255,255,0.88),rgba(255,255,255,0.64));
    border: 1px solid var(--av-border);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    padding: 24px;
}

.av-wall-composer-v0130 .avc-preview {
    border: 1px solid var(--av-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.04);
}

.av-wall-composer-v0130 .av-wall-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px;
    border: 1px dashed rgba(20,20,20,0.24);
    border-radius: 9px;
    background: rgba(255,255,255,0.72);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    transition: background .16s ease,border-color .16s ease,transform .16s ease;
}

.av-wall-composer-v0130 .av-wall-upload-button:hover,
.av-wall-composer-v0130 .av-wall-upload-button.is-dragover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.96);
    border-color: rgba(110,75,42,0.46);
}

.av-wall-composer-v0130 .av-wall-upload-button input[type="file"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.av-wall-composer-v0130 .av-wall-action-icon img,
.av-wall-composer-v0130 .av-scale-title-icon img,
.av-wall-composer-v0130 .av-scale-toggle-icon img,
.av-wall-composer-v0130 .av-info-dot img {
    display: block;
    width: 20px;
    height: 20px;
}

.av-wall-composer-v0130 .av-info-dot img {
    width: 16px;
    height: 16px;
}

.av-wall-composer-v0130 .av-scale-box {
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid var(--av-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.56);
}


/* =========================================================
   V0.21 - rapprochement strict de la fenetre generale V1
   et reutilisation visuelle des blocs de la visionneuse.
   ========================================================= */
.av-wall-composer-v0130 {
    --av-bg: #f3f3f0;
    --av-panel: rgba(255,255,255,0.78);
    --av-border: rgba(20,20,20,0.12);
    --av-text: #151515;
    --av-muted: rgba(20,20,20,0.62);
    --av-radius: 14px;
    --avc-bg: var(--av-bg);
    --avc-panel: var(--av-panel);
    --avc-border: var(--av-border);
    --avc-text: var(--av-text);
    --avc-muted: var(--av-muted);
}

.av-wall-composer-v0130 .avc-shell {
    inset: 0;
    display: grid;
    grid-template-columns: minmax(320px, 380px) 1fr;
    align-items: stretch;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 18px;
    background: var(--av-bg);
    overflow: hidden;
    box-sizing: border-box;
    contain: layout paint style;
}

.av-wall-composer-v0130 .avc-panel {
    height: calc(100vh - 36px);
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.64));
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

.av-wall-composer-v0130 .avc-preview {
    height: calc(100vh - 36px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 0 0 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.av-wall-composer-v0130 .avc-canvas-wrap {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.av-wall-composer-v0130 .avc-canvas {
    width: min(100%, calc((100vh - 150px) * 1200 / 760));
    height: auto;
    max-height: calc(100vh - 150px);
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.av-wall-composer-v0130 .avc-toolbar {
    top: 14px;
    left: 14px;
    right: 64px;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.av-wall-composer-v0130 .avc-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1000001;
}

.av-wall-composer-v0130 .avc-panel-header {
    margin-bottom: 26px;
    padding-right: 36px;
}

.av-wall-composer-v0130 .av-wall-upload-button,
.av-wall-composer-v0130 .avc-wall-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px;
    border: 1px dashed rgba(20,20,20,0.24);
    border-radius: 9px;
    background: rgba(255,255,255,0.72);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.av-wall-composer-v0130 .av-wall-upload-button:hover,
.av-wall-composer-v0130 .avc-wall-upload-button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.96);
    border-color: rgba(110,75,42,0.46);
}

.av-wall-composer-v0130 .av-wall-action-icon,
.av-wall-composer-v0130 .av-scale-title-icon,
.av-wall-composer-v0130 .av-scale-toggle-icon,
.av-wall-composer-v0130 .av-info-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.av-wall-composer-v0130 .av-wall-action-icon img,
.av-wall-composer-v0130 .av-scale-title-icon img,
.av-wall-composer-v0130 .av-scale-toggle-icon img,
.av-wall-composer-v0130 .av-info-dot img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.av-wall-composer-v0130 .avc-ui-icon img {
    display: block;
    width: 17px;
    height: 17px;
    max-width: none;
    object-fit: contain;
}

.av-wall-composer-v0130 .av-scale-toggle-icon img {
    width: 19px;
    height: 19px;
}

.av-wall-composer-v0130 .av-info-dot img {
    width: 14px;
    height: 14px;
    opacity: .76;
}

.av-wall-composer-v0130 .av-scale-box {
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid var(--av-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.56);
}

.av-wall-composer-v0130 .av-scale-title {
    display: grid !important;
    align-items: center !important;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 650;
    grid-template-columns: 1fr auto !important;
    column-gap: 8px !important;
}

.av-wall-composer-v0130 .av-scale-title-icon {
    display: none;
}

.av-wall-composer-v0130 .av-scale-toggle {
    width: 100%;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--av-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.86);
    color: var(--av-text);
    font-weight: 650;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.av-wall-composer-v0130 .av-scale-toggle:hover,
.av-wall-composer-v0130 .av-scale-toggle.is-active {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.98);
    border-color: rgba(110,75,42,0.40);
}

.av-wall-composer-v0130 .av-scale-height-label {
    margin: 10px 0 6px;
    font-size: 12px;
    color: var(--av-muted);
    font-weight: 500;
}

.av-wall-composer-v0130 .av-scale-input-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}

.av-wall-composer-v0130 .av-scale-validate {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--av-border);
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-weight: 650;
    cursor: pointer;
}

/* V0.55: aide lisible dans le panneau, sans bulle absolue coupee par le scroll. */
.av-wall-composer-v0130 .av-info-dot::after,
.av-wall-composer-v0130 .avc-info-dot::after {
    content: none !important;
}

.av-wall-composer-v0130 .av-info-dot.is-inline-help-active ~ .av-inline-help,
.av-wall-composer-v0130 .avc-info-dot.is-inline-help-active ~ .av-inline-help {
    display: block;
}
