/* ── Charte 3D Mountain (Juin 2026) ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Lato:wght@400;700&family=Playfair+Display:ital@0;1&display=swap');

/* ── Layout général ─────────────────────────────────────────────────── */

.tmp-laser-cfg { margin: 16px 0; font-family: 'Lato', -apple-system, system-ui, sans-serif; color: #2C2C2C; }
.tmp-laser-cart { margin: 16px 0 0; display: flex; align-items: flex-end; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tmp-laser-qty { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tmp-laser-qty label { font-family: 'Raleway','Lato',sans-serif; font-size: 12px; font-weight: 600; color: #555; }
.tmp-laser-qty input { width: 72px; padding: 12px 10px; font-size: 16px; text-align: center; border: 1px solid #ccc; border-radius: 8px; }
.tmp-laser-addcart {
    display: inline-flex; align-items: center; gap: 8px;
    background: #A0522D; color: #fff; border: none;
    font-family: 'Raleway', 'Lato', sans-serif; font-weight: 700; font-size: 16px;
    padding: 14px 32px; border-radius: 8px; cursor: pointer;
    transition: background .15s;
}
.tmp-laser-addcart:hover { background: #85431f; }
.tmp-laser-cfg h1, .tmp-laser-cfg h2, .tmp-laser-cfg h3, .tmp-laser-cfg h4,
.tmp-laser-cfg .tmp-strip-label, .tmp-laser-cfg button { font-family: 'Raleway', 'Lato', sans-serif; }

.tmp-designer-wrap {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    min-height: 480px;
    background: #fff;
}

/* ── Sidebar (bande icônes + panneau) ───────────────────────────────── */

.tmp-designer-sidebar {
    display: flex;
    flex-shrink: 0;
    border-right: 1px solid #ddd;
    width: 250px;
}

/* Bande d'icônes verticale */
.tmp-icon-strip {
    width: 66px;
    background: #2C2C2C;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 4px;
    flex-shrink: 0;
}

.tmp-zone-dot {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1;
}

.tmp-strip-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 6px;
    background: none;
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    width: 54px;
    transition: background .15s, color .15s;
}
.tmp-strip-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.tmp-strip-btn.active {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.tmp-strip-icon {
    font-size: 18px;
    line-height: 1;
}
.tmp-strip-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Panneau de contenu */
.tmp-sidebar-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
}

.tmp-zone-badge-wrap {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.tmp-zone-badge {
    display: block;
    background: #F5F0E8;
    border: 1px solid #2D4A3E;
    color: #2D4A3E;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .2s, color .2s, border-color .2s;
}
.tmp-zone-badge.active {
    background: #fff3cd;
    border-color: #f90;
    color: #6f5a33;
}

.tmp-tool-pane { padding: 10px 8px; flex: 1; }

/* Ajouter texte */
.tmp-sidebar-tool-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #2C2C2C;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background .15s, border-color .15s, color .15s;
    margin-bottom: 6px;
}
.tmp-sidebar-tool-btn:hover { background: #2C2C2C; color: #fff; border-color: #2C2C2C; }
.tmp-tool-icon {
    width: 24px; height: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}
.tmp-sidebar-tool-btn:hover .tmp-tool-icon { background: rgba(255,255,255,.15); border-color: transparent; color: #fff; }

/* ── Sous-onglets image ──────────────────────────────────────────────── */

.tmp-img-subtabs {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.tmp-img-subtab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 2px;
    background: none;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 9px;
    color: #666;
    transition: background .12s, color .12s;
}
.tmp-img-subtab span:first-child { font-size: 15px; line-height: 1; }
.tmp-img-subtab:hover { background: #f0f0f0; color: #333; }
.tmp-img-subtab.active {
    background: #F5F0E8;
    border-color: #2D4A3E;
    color: #2D4A3E;
}

/* ── Galerie uploads ─────────────────────────────────────────────────── */

.tmp-upload-gallery { padding: 4px 0; }

.tmp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.tmp-gallery-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    background: #f5f5f5;
    transition: border-color .15s;
}
.tmp-gallery-item:hover { border-color: #2D4A3E; }
.tmp-gallery-item img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
}
.tmp-gallery-item span {
    display: block;
    font-size: 10px;
    color: #555;
    padding: 2px 0;
}

.tmp-upload-new-btn {
    display: block;
    width: 100%;
    padding: 7px 0;
    background: #2D4A3E;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
}
.tmp-upload-new-btn:hover { background: #22392f; }

/* ── Upload zone ─────────────────────────────────────────────────────── */

.tmp-upload-drop {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 16px 8px;
    text-align: center;
    color: #888;
    font-size: 12px;
    background: #fafafa;
}
.tmp-upload-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: #2D4A3E;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* ── Grille catégories (sidebar) ─────────────────────────────────────── */

.tmp-catgrid-sm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: 360px;      /* scroll vertical (vers le bas) au lieu de déborder sur le côté */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}
.tmp-cattile-sm {
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px 4px 6px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, transform .1s;
    background: #fff;
    min-width: 0;           /* autorise la case à rétrécir -> pas de scroll horizontal */
}
.tmp-cattile-sm:hover { border-color: #2D4A3E; transform: scale(1.02); }
.tmp-cattile-sm img,
.tmp-cattile-sm .tmp-logo-mask { display: block; margin: 0 auto 4px; }   /* logo centré dans la case */
.tmp-cattile-sm img { width: 48px; height: 48px; object-fit: contain; }
.tmp-svgwrap-sm {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 4px; overflow: hidden;
}
.tmp-svgwrap-sm svg { max-width: 44px; max-height: 44px; }
.tmp-cattile-sm span { font-size: 10px; font-weight: 600; color: #444; display: block;
                        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Navigation catégorie → items ───────────────────────────────────── */

.tmp-cat-nav-sm {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.tmp-back-sm {
    background: #f5f5f5;
    border: 1px solid #C4A882;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 15px;
    font-weight: 700;
    color: #2C2C2C;
    cursor: pointer;
    flex-shrink: 0;
}
.tmp-back-sm:hover { background: #e0e0e0; }
.tmp-cat-nav-label { font-size: 12px; font-weight: 700; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Grille logos (sidebar) ──────────────────────────────────────────── */

.tmp-logogrid-sm {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-height: 340px;      /* garde la taille du menu : la liste défile au lieu de s'étirer */
    overflow-y: auto;
    padding-right: 4px;
}
.tmp-logoitem-sm {
    border: 2px solid #eee;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: border-color .12s;
    background: #fff;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tmp-logoitem-sm:hover { border-color: #2D4A3E; }
.tmp-logoitem-sm img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.tmp-logoitem-sm .tmp-logo-mask { width: 100%; height: 100%; }   /* le logo remplit la case */

/* ── Layers ──────────────────────────────────────────────────────────── */

.tmp-layers-empty { color: #bbb; font-size: 11px; padding: 6px 0; }

.tmp-layer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 12px;
    background: #fafafa;
    transition: background .12s, border-color .12s;
}
.tmp-layer-row:hover  { background: #F5F0E8; border-color: #2D4A3E; }
.tmp-layer-row.active { background: #fff3cd; border-color: #f90; }
.tmp-layer-icon  { font-size: 13px; font-weight: 700; width: 18px; text-align: center; flex-shrink: 0; }
.tmp-layer-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmp-layer-del   { background: none; border: none; cursor: pointer; font-size: 15px; padding: 0; color: #bbb; flex-shrink: 0; line-height: 1; }
.tmp-layer-del:hover { color: #c00; }

/* ── Canvas area ─────────────────────────────────────────────────────── */

.tmp-designer-canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #2C2C2C;
    min-width: 0;
}

/* Barre de propriétés contextuelles */
.tmp-props-bar {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 9px 14px;
    display: flex;
    gap: 8px 16px;
    align-items: center;
    flex-wrap: nowrap;         /* une seule ligne -> hauteur constante */
    overflow-x: auto;          /* défile si besoin (mobile) au lieu de wrapper et pousser le canevas */
    flex-shrink: 0;
    min-height: 50px;          /* place toujours réservée -> le canevas ne bouge pas à la sélection */
    box-sizing: border-box;
}
.tmp-props-bar .pb-field { flex-shrink: 0; }

/* Vignette de logo recolorée (masque) : force la couleur de gravure quelle que soit
   la couleur d'origine du SVG. */
.tmp-logo-mask {
    display: inline-block;
    width: 56px; height: 56px;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center;  mask-position: center;
    -webkit-mask-size: contain;     mask-size: contain;
}
.pb-field {                     /* garde le libellé collé à son champ */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.pb-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #2C2C2C;
    white-space: nowrap;
}
.pb-input {
    height: 32px;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 1.5px solid #C4A882;
    border-radius: 4px;
    font-size: 13px;
    color: #2C2C2C;
    background: #fff;
    vertical-align: middle;
}
.pb-input:focus { outline: none; border-color: #2D4A3E; }
.pb-unit { font-size: 13px; font-weight: 700; color: #2C2C2C; margin: 0 2px; }
.pb-rot-btn {
    width: 32px; height: 32px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid #C4A882; background: #F5F0E8; color: #2D4A3E;
    border-radius: 6px; cursor: pointer; font-size: 18px; font-weight: 700;
    vertical-align: middle;
}
.pb-rot-btn:hover { background: #C4A882; color: #2C2C2C; }
.pb-wide  { width: 120px; }
.pb-num   { width: 64px; }
.pb-color { width: 34px; height: 28px; padding: 2px; border-radius: 4px; cursor: pointer; }

/* Barre d'actions canvas */
.tmp-canvas-toolbar {
    display: flex;
    flex-wrap: nowrap;         /* une seule ligne -> hauteur constante (pas de décalage à la sélection) */
    overflow-x: auto;          /* défile horizontalement si trop de boutons (au lieu de couper) */
    gap: 8px;
    padding: 8px 12px;
    background: #2C2C2C;
    align-items: center;
    min-height: 52px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.tmp-canvas-toolbar .tmp-toolbar-btn {
    flex-shrink: 0;            /* garde sa taille et défile plutôt que de rétrécir/wrapper */
    margin: 0 !important;      /* neutralise l'ancien margin-left:auto */
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.tmp-toolbar-btn {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background .15s;
}
.tmp-toolbar-btn:hover { background: rgba(255,255,255,.25); }
.tmp-toolbar-btn-export {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
    color: #fff;
}
.tmp-toolbar-btn-export:hover { background: rgba(255,255,255,.25); }

#tmp-canvas-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;
}
#tmp-canvas-wrap .canvas-container {
    box-shadow: 0 6px 30px rgba(0,0,0,.6);
    border-radius: 4px;
}

/* ── Laser processing panel ──────────────────────────────────────────── */

.tmp-laser-note {
    background: #2C2C2C;
    color: #C4A882;
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 5px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tmp-laser-proc {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tmp-laser-proc-preview {
    width: 100%;
    aspect-ratio: 1;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ccc;
}
.tmp-laser-proc-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.tmp-laser-proc-ctrl {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px;
}
.tmp-lp-lbl {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
    cursor: pointer;
}
.tmp-lp-slider-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tmp-lp-slider-row input[type="range"] {
    flex: 1;
    accent-color: #2D4A3E;
}
.tmp-lp-slider-row span {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    width: 28px;
    text-align: right;
}

.tmp-laser-proc-btns {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tmp-lp-btn-primary {
    background: #A0522D;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background .15s;
}
.tmp-lp-btn-primary:hover { background: #85431f; }
.tmp-lp-btn-dl {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 11px;
    cursor: pointer;
    width: 100%;
    transition: background .15s;
}
.tmp-lp-btn-dl:hover { background: #e0e0e0; }
.tmp-lp-check {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    text-transform: none;
    letter-spacing: 0;
}
.tmp-lp-check input[type="checkbox"] { margin: 0; cursor: pointer; accent-color: #2D4A3E; }
.tmp-lp-loading {
    font-size: 11px;
    color: #888;
    text-align: center;
    padding: 4px;
}

/* ── Font picker (onglet Texte) ──────────────────────────────────────── */

.tmp-font-row {
    margin-top: 8px;
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
}
.tmp-font-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.tmp-font-select-input {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 6px;
    box-sizing: border-box;
}
.tmp-font-preview {
    font-size: 20px;
    text-align: center;
    padding: 6px 4px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.3;
}

/* ── Misc ────────────────────────────────────────────────────────────── */

.tmp-error {
    background: #fff0f0;
    border: 1px solid #f5a0a0;
    color: #c00;
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 13px;
}
.tmp-product-note {
    background: #F5F0E8;
    border-left: 3px solid #C4A882;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    border-radius: 0 4px 4px 0;
}

/* ── Social (Facebook & Instagram) ──────────────────────────────────────── */

.tmp-social-connect {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 8px;
    gap: 12px;
    text-align: center;
}
.tmp-social-platform-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 900; color: #fff;
    line-height: 1;
}
.tmp-social-btn {
    padding: 9px 16px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: #2D4A3E;
    transition: background .15s;
    white-space: nowrap;
}
.tmp-social-btn:hover { background: #22392f; }
.tmp-fb-btn { background: #1877f2; }
.tmp-fb-btn:hover { background: #22392f; }
.tmp-ig-btn { background: #d6249f; }
.tmp-ig-btn:hover { background: #b01c84; }

.tmp-social-msg {
    padding: 14px 8px;
    text-align: center;
    color: #888;
    font-size: 11px;
    line-height: 1.6;
}
.tmp-social-loading {
    padding: 16px 8px;
    text-align: center;
    color: #aaa;
    font-size: 11px;
}
.tmp-social-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    gap: 6px;
}
.tmp-social-back, .tmp-social-logout {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 10px;
    cursor: pointer;
    color: #666;
    flex-shrink: 0;
}
.tmp-social-back:hover  { background: #f0f0f0; }
.tmp-social-logout:hover { background: #fff0f0; color: #c00; border-color: #f5a0a0; }

.tmp-album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.tmp-album-tile {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 8px 6px;
    cursor: pointer;
    transition: border-color .12s, background .12s;
    background: #f9f9f9;
}
.tmp-album-tile:hover { border-color: #2D4A3E; background: #F5F0E8; }
.tmp-album-name { font-size: 10px; font-weight: 700; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmp-album-count { font-size: 9px; color: #999; margin-top: 2px; }

.tmp-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.tmp-photo-item {
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .12s, transform .1s;
}
.tmp-photo-item:hover { border-color: #2D4A3E; transform: scale(1.03); }
.tmp-photo-item img  { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Bouton plein écran ──────────────────────────────────────────────────── */

.tmp-toolbar-btn-fs {
    display: flex;
    align-items: center;
    gap: 6px;
}
#tmp-btn-export-gravure ~ #tmp-btn-fullscreen {
    margin-left: 0 !important;
}

/* ── Fullscreen mode ─────────────────────────────────────────────────────── */

#tmp-laser-configurator.tmp-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, .92);
}
#tmp-laser-configurator.tmp-fullscreen .tmp-product-note { display: none; }
#tmp-laser-configurator.tmp-fullscreen .tmp-designer-wrap {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border: none;
}
#tmp-laser-configurator.tmp-fullscreen .tmp-designer-canvas-area { min-height: 0; }
#tmp-laser-configurator.tmp-fullscreen #tmp-canvas-wrap { flex: 1; min-height: 0; padding: 16px; }
#tmp-laser-configurator.tmp-fullscreen .tmp-fs-label { display: none; }
#tmp-laser-configurator:not(.tmp-fullscreen) .tmp-fs-icon-exit { display: none !important; }
#tmp-laser-configurator.tmp-fullscreen .tmp-fs-icon-enter { display: none !important; }
#tmp-laser-configurator.tmp-fullscreen .tmp-fs-icon-exit  { display: block !important; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 620px) {
    .tmp-designer-wrap    { flex-direction: column; }
    .tmp-designer-sidebar { width: 100%; flex-direction: row; max-height: 240px; }
    .tmp-icon-strip       { width: 56px; }
    #tmp-canvas-wrap      { padding: 12px; }
}

/* ── Bouton & menu Partager ──────────────────────────────────────────── */
.tmp-toolbar-btn-share { background:#A0522D; color:#fff; border-color:#A0522D; }
.tmp-toolbar-btn-share:hover { background:#85431f; }

.tmp-share-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.tmp-share-box {
    position: relative;
    background: #fff; border-radius: 12px;
    width: 100%; max-width: 360px;
    padding: 20px; box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
    text-align: center;
}
.tmp-share-box h3 { margin: 0 0 12px; font-size: 16px; color: #2D4A3E; }
.tmp-share-preview {
    width: 100%; max-height: 240px; object-fit: contain;
    border: 1px solid #eee; border-radius: 8px; margin-bottom: 14px;
    background: #fafafa;
}
.tmp-share-act {
    display: block; width: 100%; box-sizing: border-box;
    padding: 11px; margin: 8px 0; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    text-decoration: none; text-align: center;
}
.tmp-share-dl   { background: #2D4A3E; color: #fff; }
.tmp-share-wa   { background: #25D366; color: #fff; }
.tmp-share-mail { background: #C4A882; color: #fff; }
.tmp-share-note { font-size: 11px; color: #888; margin: 12px 0 0; line-height: 1.4; }
.tmp-share-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none; font-size: 24px; line-height: 1;
    color: #999; cursor: pointer;
}
.tmp-share-close:hover { color: #333; }
.tmp-share-fb   { background: #1877F2; color: #fff; }
