/* Deeployer — Me Projeter  v2.0.0 */

/* ── Barre du bas ── */
#dmp-bar {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity .3s ease, transform .3s ease;
}
#dmp-bar.dmp-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
}

#dmp-trigger {
    border: none;
    border-radius: 40px;
    padding: 13px 20px 13px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-family: inherit;
    background: var(--dmp-color, #534AB7);
    color: #fff;
    box-shadow: 0 6px 28px color-mix(in srgb, var(--dmp-color,#534AB7) 45%, transparent);
    transition: transform .2s ease, box-shadow .2s ease;
}
#dmp-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px color-mix(in srgb, var(--dmp-color,#534AB7) 60%, transparent);
}

#dmp-buy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1a1a2e;
    border: 2px solid rgba(0,0,0,.1);
    border-radius: 40px;
    padding: 11px 18px 11px 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#dmp-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    border-color: rgba(0,0,0,.2);
    color: #1a1a2e;
    text-decoration: none;
}
#dmp-buy-btn svg { width:16px; height:16px; stroke:#f59e0b; flex-shrink:0; }

.dmp-pulse {
    width:8px; height:8px; border-radius:50%;
    background:#a8ffd0; flex-shrink:0;
    animation: dmpPulse 1.8s infinite;
}
@keyframes dmpPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%     { opacity:.45; transform:scale(1.4); }
}

/* ── Panneau — disposition horizontale ── */
#dmp-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(110%);
    width: min(1300px, 98vw);
    z-index: 99991;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 40px rgba(0,0,0,.15);
    transition: transform .38s cubic-bezier(.22,1,.36,1);
    font-family: inherit;
    overflow: hidden;
}
#dmp-panel.dmp-open {
    transform: translateX(-50%) translateY(0);
}

/* Header du panneau */
.dmp-panel-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dmp-color, #534AB7);
    flex-shrink: 0;
}
.dmp-panel-header-left { display:flex; align-items:center; gap:12px; }
.dmp-panel-icon {
    width:32px; height:32px;
    background:rgba(255,255,255,.18); border-radius:8px;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.dmp-panel-icon svg { width:17px; height:17px; color:#fff; }
.dmp-panel-title { font-size:15px; font-weight:700; color:#fff; }
.dmp-panel-sub   { font-size:11px; color:rgba(255,255,255,.72); margin-top:1px; }

.dmp-panel-header-right { display:flex; align-items:center; gap:12px; }

/* Badge "257 réglages" */
.dmp-badge-257 {
    font-size: 11px;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
    font-weight: 500;
}
.dmp-badge-257 strong { color:#fff; font-weight:700; }

#dmp-close {
    background:rgba(255,255,255,.16); border:none; color:#fff;
    width:28px; height:28px; border-radius:50%;
    cursor:pointer; font-size:15px;
    display:flex; align-items:center; justify-content:center;
    transition:background .18s; flex-shrink:0;
}
#dmp-close:hover { background:rgba(255,255,255,.3); }

/* Corps horizontal scrollable */
.dmp-panel-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 0 16px;
    scrollbar-width: thin;
    scrollbar-color: #d4d0f0 transparent;
}
.dmp-panel-body::-webkit-scrollbar { height: 4px; }
.dmp-panel-body::-webkit-scrollbar-track { background: transparent; }
.dmp-panel-body::-webkit-scrollbar-thumb { background: #d4d0f0; border-radius: 2px; }

/* Colonnes */
.dmp-col {
    flex-shrink: 0;
    padding: 0 20px;
    min-width: 200px;
    max-width: 240px;
}
.dmp-col + .dmp-col {
    border-left: 1px solid #f0eeff;
}
.dmp-col-wide {
    min-width: 260px;
    max-width: 300px;
}
.dmp-col-narrow {
    min-width: 180px;
    max-width: 210px;
}

/* Titre de colonne */
.dmp-col-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dmp-color, #534AB7);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dmp-col-title svg { width:13px; height:13px; flex-shrink:0; }

.dmp-field { margin-bottom: 10px; }
.dmp-field:last-child { margin-bottom: 0; }

.dmp-field-row   { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.dmp-field-row-3 { display:grid; grid-template-columns:2fr 1fr; gap:8px; margin-bottom:10px; }

.dmp-label {
    display:block; font-size:10px; font-weight:700;
    color:#444; margin-bottom:5px;
    letter-spacing:.04em; text-transform:uppercase;
}

.dmp-input {
    width:100%;
    border:1.5px solid #e0dcf5; border-radius:8px;
    padding:9px 11px; font-size:13px; color:#1a1a2e;
    outline:none; background:#fdfcff; font-family:inherit;
    box-sizing:border-box;
    transition:border-color .18s, box-shadow .18s;
}
.dmp-input:focus {
    border-color:var(--dmp-color,#534AB7);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--dmp-color,#534AB7) 10%,transparent);
}
.dmp-input::placeholder { color:#bbb; font-size:12px; }

/* Upload logo */
.dmp-upload-zone {
    border:2px dashed #ccc8f0; border-radius:8px;
    padding:10px; cursor:pointer; background:#fdfcff;
    position:relative; min-height:52px;
    transition:all .2s;
}
.dmp-upload-zone:hover,
.dmp-upload-zone.dmp-has-logo { border-color:var(--dmp-color,#534AB7); background:#EEEDFE; }
.dmp-upload-zone input[type="file"] {
    position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%;
}
.dmp-upload-inner { pointer-events:none; display:flex; align-items:center; gap:8px; justify-content:center; }
.dmp-logo-preview {
    width:34px; height:34px; border-radius:5px; object-fit:contain;
    display:none; border:1px solid #d4d0f0; background:#fff; flex-shrink:0;
}
.dmp-logo-preview.dmp-visible { display:block; }
.dmp-upload-text { font-size:11px; color:#888; line-height:1.4; text-align:center; }
.dmp-upload-text strong { color:var(--dmp-color,#534AB7); font-weight:600; display:block; }

/* ── Couleurs ── */
.dmp-color-row {
    display:flex; align-items:center; gap:8px;
    margin-bottom:8px;
}
.dmp-color-pick {
    width:30px; height:30px; border:none; border-radius:6px;
    padding:0; cursor:pointer; background:none; flex-shrink:0;
}
.dmp-color-pick::-webkit-color-swatch-wrapper { padding:0; }
.dmp-color-pick::-webkit-color-swatch { border-radius:5px; border:1px solid rgba(0,0,0,.1); }
.dmp-color-pick::-moz-color-swatch { border-radius:5px; border:1px solid rgba(0,0,0,.1); }
.dmp-color-label { font-size:12px; color:#444; flex:1; }
.dmp-color-reset-one {
    background:none; border:none; color:#ccc; font-size:13px;
    cursor:pointer; padding:2px 3px; border-radius:3px;
    transition:color .18s; flex-shrink:0; line-height:1;
}
.dmp-color-reset-one:hover { color:var(--dmp-color,#534AB7); }

/* Gradient preview */
.dmp-gradient-preview {
    height: 28px;
    border-radius: 6px;
    margin-top: 6px;
    margin-bottom: 4px;
    border: 1px solid rgba(0,0,0,.08);
    transition: background .3s;
}

/* ── Header switcher ── */
.dmp-header-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.dmp-header-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1.5px solid #e0dcf5;
    border-radius: 8px;
    cursor: pointer;
    transition: all .18s;
    background: #fdfcff;
}
.dmp-header-opt:hover { border-color: var(--dmp-color,#534AB7); background: #f5f3ff; }
.dmp-header-opt.dmp-active {
    border-color: var(--dmp-color,#534AB7);
    background: #EEEDFE;
}
.dmp-header-opt-preview {
    width: 44px;
    height: 26px;
    border-radius: 4px;
    background: #e8e6f8;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,.06);
}
/* Miniatures visuelles des layouts */
.dmp-header-opt-preview .dmp-h-line {
    position: absolute;
    height: 3px;
    background: #8b85d4;
    border-radius: 1px;
}
.dmp-header-opt-label { font-size:12px; font-weight:600; color:#333; }
.dmp-header-opt-desc  { font-size:10px; color:#888; line-height:1.3; }

/* Toggle transparent */
.dmp-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border: 1.5px solid #e0dcf5;
    border-radius: 8px;
    cursor: pointer;
    background: #fdfcff;
    transition: border-color .18s;
    margin-top: 8px;
}
.dmp-toggle-row:hover { border-color: var(--dmp-color,#534AB7); }
.dmp-toggle-row.dmp-active { border-color: var(--dmp-color,#534AB7); background: #EEEDFE; }
.dmp-toggle-label { font-size:12px; font-weight:600; color:#333; }
.dmp-toggle {
    width: 32px; height: 18px;
    background: #ddd; border-radius: 9px;
    position: relative; transition: background .2s; flex-shrink: 0;
}
.dmp-toggle::after {
    content:''; position:absolute;
    width:14px; height:14px; border-radius:50%;
    background:#fff; top:2px; left:2px;
    transition:left .2s; box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.dmp-toggle-row.dmp-active .dmp-toggle { background: var(--dmp-color,#534AB7); }
.dmp-toggle-row.dmp-active .dmp-toggle::after { left:16px; }

/* ── Colonne info ── */
.dmp-info-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dmp-info-badge {
    background: #f5f3ff;
    border: 1px solid #e0dcf5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}
.dmp-info-badge strong { color: var(--dmp-color,#534AB7); display:block; margin-bottom:3px; font-size:12px; }

/* Barre live */
.dmp-live-bar {
    display:flex; align-items:center; gap:6px;
    background:#e8fff3; border:1px solid #b2ecd0; border-radius:6px;
    padding:7px 10px; font-size:11px; color:#1a6a40; font-weight:500;
    opacity:0; transition:opacity .3s; margin-top:4px;
}
.dmp-live-bar.dmp-active { opacity:1; }
.dmp-live-dot {
    width:6px; height:6px; border-radius:50%;
    background:#22c55e; flex-shrink:0;
    animation: dmpPulse 1.4s infinite;
}

/* Reset */
.dmp-reset {
    background:none; border:none; color:#bbb; font-size:10px;
    cursor:pointer; text-decoration:underline;
    display:block; width:100%; text-align:center;
    font-family:inherit; transition:color .18s; margin-top:8px;
}
.dmp-reset:hover { color:var(--dmp-color,#534AB7); }

/* Flash */
@keyframes dmpFlash {
    0%   { outline:2px solid color-mix(in srgb,var(--dmp-color,#534AB7) 60%,transparent); outline-offset:2px; }
    100% { outline:2px solid transparent; outline-offset:4px; }
}
.dmp-flashed { animation:dmpFlash .7s ease forwards; }

/* Responsive : sur mobile, panneau vertical scrollable */
@media (max-width: 640px) {
    #dmp-panel { width: 100vw; border-radius: 16px 16px 0 0; }
    .dmp-panel-body {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 70vh;
    }
    .dmp-col { max-width: 100%; min-width: unset; width: 100%; }
    .dmp-col + .dmp-col { border-left: none; border-top: 1px solid #f0eeff; }
    .dmp-badge-257 { display: none; }
}

/* ── Bouton aperçu mobile ── */
#dmp-mobile-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #1a1a2e;
    border: 2px solid rgba(0,0,0,.1);
    border-radius: 40px;
    padding: 11px 18px 11px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    transition: transform .2s ease, box-shadow .2s ease;
}
#dmp-mobile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
#dmp-mobile-btn svg { width:15px; height:15px; flex-shrink:0; stroke: var(--dmp-color,#534AB7); }

/* ── Modale mobile ── */
#dmp-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
#dmp-mobile-modal.dmp-open {
    opacity: 1;
    pointer-events: all;
}
#dmp-mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}
#dmp-mobile-mockup {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Mockup téléphone */
#dmp-phone-frame {
    width: 320px;
    height: 620px;
    background: #0a0a0a;
    border-radius: 44px;
    padding: 14px;
    box-shadow:
        0 0 0 2px #333,
        0 30px 80px rgba(0,0,0,.6),
        inset 0 0 0 1px rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Boutons latéraux décoratifs */
#dmp-phone-frame::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 100px;
    width: 3px;
    height: 60px;
    background: #333;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 70px 0 #333, 0 -40px 0 #333;
}
#dmp-phone-frame::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 130px;
    width: 3px;
    height: 70px;
    background: #333;
    border-radius: 0 2px 2px 0;
}

.dmp-phone-notch {
    width: 100px;
    height: 24px;
    background: #0a0a0a;
    border-radius: 0 0 16px 16px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    /* Caméra */
    display: flex;
    align-items: center;
    justify-content: center;
}
.dmp-phone-notch::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #444;
}

.dmp-phone-screen {
    flex: 1;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

#dmp-mobile-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Simuler viewport mobile 390px dans 292px → scale */
    transform-origin: top left;
}

.dmp-phone-home {
    width: 120px;
    height: 5px;
    background: rgba(255,255,255,.3);
    border-radius: 3px;
    flex-shrink: 0;
    margin-bottom: 4px;
}

/* Bouton fermer */
#dmp-mobile-close {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
#dmp-mobile-close:hover {
    background: rgba(255,255,255,.2);
}

/* ── Colonne aperçu mobile dans le panel ── */
.dmp-col-mobile-preview {
    min-width: 200px;
    max-width: 220px;
    flex-shrink: 0;
}

#dmp-phone-frame {
    width: 160px;
    height: 300px;
    background: #0a0a0a;
    border-radius: 24px;
    padding: 8px;
    box-shadow:
        0 0 0 1.5px #333,
        0 12px 32px rgba(0,0,0,.4),
        inset 0 0 0 1px rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
    position: relative;
}
#dmp-phone-frame::before {
    content: '';
    position: absolute;
    left: -2px; top: 55px;
    width: 2px; height: 28px;
    background: #333; border-radius: 2px 0 0 2px;
    box-shadow: 0 36px 0 #333;
}
#dmp-phone-frame::after {
    content: '';
    position: absolute;
    right: -2px; top: 70px;
    width: 2px; height: 36px;
    background: #333; border-radius: 0 2px 2px 0;
}

.dmp-phone-notch {
    width: 54px; height: 12px;
    background: #0a0a0a;
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.dmp-phone-notch::after {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #444;
}

.dmp-phone-screen {
    flex: 1;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

#dmp-phone-viewport {
    width: 390px;
    height: 844px;
    transform-origin: top left;
    /* scale calculé en JS */
    pointer-events: none;
    overflow: hidden;
}

.dmp-phone-home {
    width: 60px; height: 3px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

/* Spinner pendant le rendu */
.dmp-phone-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f4ff;
    font-size: 10px;
    color: #999;
    flex-direction: column;
    gap: 6px;
}
.dmp-phone-spinner {
    width: 18px; height: 18px;
    border: 2px solid #e0dcf5;
    border-top-color: var(--dmp-color, #534AB7);
    border-radius: 50%;
    animation: dmpSpin .7s linear infinite;
}
@keyframes dmpSpin { to { transform: rotate(360deg); } }

/* ── Bouton "Aperçu mobile" dans le panel ── */
.dmp-mobile-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    background: var(--dmp-color, #534AB7);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .2s;
    margin-top: 4px;
}
.dmp-mobile-preview-btn:hover { opacity: .85; }
.dmp-mobile-preview-btn svg { flex-shrink:0; }

/* ── Modale plein écran aperçu mobile ── */
#dmp-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
#dmp-mobile-modal.dmp-open {
    opacity: 1;
    pointer-events: all;
}
#dmp-mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,8,30,.88);
}
#dmp-mobile-mockup {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

/* Mockup téléphone grande taille */
#dmp-phone-frame {
    width: 340px;
    height: 680px;
    background: #0a0a0a;
    border-radius: 48px;
    padding: 14px;
    box-shadow:
        0 0 0 2px #222,
        0 0 0 3px #111,
        0 40px 100px rgba(0,0,0,.7),
        inset 0 0 0 1px rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}
#dmp-phone-frame::before {
    content: '';
    position: absolute;
    left: -3px; top: 110px;
    width: 3px; height: 36px;
    background: #111; border-radius: 3px 0 0 3px;
    box-shadow: 0 50px 0 #111;
}
#dmp-phone-frame::after {
    content: '';
    position: absolute;
    right: -3px; top: 140px;
    width: 3px; height: 56px;
    background: #111; border-radius: 0 3px 3px 0;
}

.dmp-phone-notch {
    width: 110px; height: 26px;
    background: #0a0a0a;
    border-radius: 0 0 18px 18px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
}
.dmp-phone-notch::after {
    content: '';
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1.5px solid #333;
}

.dmp-phone-screen {
    flex: 1;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

#dmp-mobile-iframe {
    display: block;
    border: none;
    background: #fff;
}

.dmp-phone-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f4ff;
    font-size: 12px;
    color: #888;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}
.dmp-phone-spinner {
    width: 22px; height: 22px;
    border: 2.5px solid #e0dcf5;
    border-top-color: var(--dmp-color, #534AB7);
    border-radius: 50%;
    animation: dmpSpin .7s linear infinite;
}
@keyframes dmpSpin { to { transform: rotate(360deg); } }

.dmp-phone-home {
    width: 130px; height: 5px;
    background: rgba(255,255,255,.25);
    border-radius: 3px;
    flex-shrink: 0;
    margin-bottom: 4px;
}

#dmp-mobile-close {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    border-radius: 30px;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
#dmp-mobile-close:hover { background: rgba(255,255,255,.22); }

/* ── Bouton Tout réinitialiser mis en valeur ── */
.dmp-reset-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 14px;
    background: none;
    border: 1.5px solid #d4d0f0;
    border-radius: 8px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
}
.dmp-reset-all-btn:hover {
    border-color: #e44;
    color: #e44;
    background: #fff5f5;
}

/* ── Live bar dans le header du panel ── */
.dmp-header-live-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    font-weight: 500;
    opacity: 0;
    transition: opacity .3s, color .3s;
    pointer-events: none;
}
.dmp-header-live-bar.dmp-active {
    opacity: 1;
    color: #fff;
}
.dmp-header-live-bar .dmp-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    flex-shrink: 0;
    animation: dmpPulse 1.4s infinite;
    transition: background .3s;
}
.dmp-header-live-bar.dmp-active .dmp-live-dot {
    background: #a8ffd0;
}

/* ── Bouton dés ── */
#dmp-dice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #fff;
    color: #1a1a2e;
    border: 2px solid rgba(0,0,0,.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
#dmp-dice-btn:hover {
    transform: translateY(-2px) rotate(15deg);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
#dmp-dice-btn.dmp-rolling {
    animation: dmpDiceRoll .8s ease-in-out;
}
@keyframes dmpDiceRoll {
    0%   { transform: rotate(0deg)   scale(1); }
    20%  { transform: rotate(120deg) scale(1.15); }
    40%  { transform: rotate(240deg) scale(0.9); }
    60%  { transform: rotate(360deg) scale(1.1); }
    80%  { transform: rotate(480deg) scale(0.95); }
    100% { transform: rotate(540deg) scale(1); }
}

/* Flash de transition lors du changement de thème */
#dmp-theme-flash {
    position: fixed;
    inset: 0;
    z-index: 99989;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
#dmp-theme-flash.dmp-flash-in  { opacity: .7; }
#dmp-theme-flash.dmp-flash-out { opacity: 0; }

/* Toast nom du thème */
#dmp-theme-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    opacity: 0;
    pointer-events: none;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    white-space: nowrap;
    font-family: inherit;
    z-index: 99992;
}
#dmp-theme-toast.dmp-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
