/* Deeployer — Me Projeter  v1.2.0 */

/* ── Barre du bas (trigger + acheter) ── */
#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 22px 13px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    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 20px 11px 16px;
    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 ── */
#dmp-panel {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%) translateY(110%);
    width: min(480px, 96vw);
    z-index: 99991;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 40px rgba(0,0,0,.14);
    transition: transform .38s cubic-bezier(.22,1,.36,1);
    overflow: hidden;
    font-family: inherit;
    /* Scroll si le panneau dépasse la hauteur viewport */
    max-height: 90vh;
    overflow-y: auto;
}
#dmp-panel.dmp-open { transform: translateX(-50%) translateY(0); }

.dmp-panel-header {
    position: sticky; top: 0; z-index: 2;
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--dmp-color, #534AB7);
}
.dmp-panel-header-left { display:flex; align-items:center; gap:10px; }
.dmp-panel-icon {
    width:34px; height:34px;
    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:18px; height:18px; 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:2px; }
#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); }

.dmp-panel-body { padding: 16px 20px 20px; }

/* Séparateur de section */
.dmp-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #aaa;
    margin: 14px 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}
.dmp-section-label:first-child { margin-top: 0; }

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

.dmp-label {
    display:block; font-size:11px; font-weight:700;
    color:#26215C; margin-bottom:5px;
    letter-spacing:.05em; text-transform:uppercase;
}

.dmp-input {
    width:100%;
    border:1.5px solid #d4d0f0; border-radius:10px;
    padding:10px 12px; font-size:14px; 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) 12%, transparent);
}
.dmp-input::placeholder { color:#bbb; }

/* Upload logo */
.dmp-upload-zone {
    border:2px dashed #ccc8f0; border-radius:10px;
    padding:12px; cursor:pointer; background:#fdfcff;
    position:relative; min-height:56px;
    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:10px; justify-content:center; }
.dmp-logo-preview {
    width:38px; height:38px; border-radius:6px; 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:13px; color:#666; line-height:1.5; text-align:left; }
.dmp-upload-text strong { color:var(--dmp-color,#534AB7); font-weight:600; }
.dmp-upload-text span { font-size:11px; color:#aaa; }

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

/* Reset */
.dmp-reset {
    background:none; border:none; color:#bbb; font-size:11px;
    cursor:pointer; text-decoration:underline;
    margin-top:10px; display:block; width:100%; text-align:center;
    font-family:inherit; transition:color .18s;
}
.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; }
