/* ========================================
   PLUGIN SUIVI DE PROJET - STYLES
   Version: 2.1
   ======================================== */

/* === FORMULAIRES CLICKUP === */
.info-success {
    background-color: #e6ffed;
    border: 1px solid #b3e6cc;
    padding: 20px;
    border-radius: 8px;
    color: #2e7d32;
    font-family: 'Uni Neue Regular', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    width: 100%;
    margin: 20px auto;
}

.clickup-error {
    background-color: #ffe6e6;
    border: 1px solid #e0a1a1;
    padding: 12px 16px;
    border-radius: 8px;
    color: #c62828;
    font-family: 'Uni Neue Regular', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 40px;
    width: 100%;
}

.clickup-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 50px;
}

.clickup-form-wrapper form {
    width: 100%;
}

.clickup-fieldset {
    border: none;
    padding: 15px 0;
    margin-bottom: 20px;
}

.clickup-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.clickup-form-row > label {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.clickup-form-full {
    flex: 1 1 100%;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100% !important;
    padding: 8px;
    box-sizing: border-box;
}

.type-photos-inline {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.frm_submit.frm_flexs {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.frm_button_submits {
    background-color: #FC3;
    border-radius: 10px;
    box-shadow: none;
    font-family: 'Uni Neue Regular', sans-serif;
    padding: 13px 20px;
    font-size: 18px;
    cursor: pointer;
}

fieldset {
    background-color: #e7e7e7;
    padding: 10px 20px !important;
    border-radius: 5px;
}

/* === VIDEO ANNOTATOR === */
.video-annotator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: #fff;
    margin: 0;
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.video-annotator-wrapper h2 {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 0.5px;
}
.video-annotator-time {
    color: #fff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    opacity: 0.85;
    margin-left: auto;
}

/* === NOTIFICATIONS TOAST === */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1a1a1a;
    border-left: 4px solid #667eea;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: start;
    gap: 12px;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: #aaa;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* === CONTENEUR VIDEO === */
.video-annotator-container-wrapper {
    width: 100%;
    height: calc(100% - 64px);
    display: flex;
    flex-direction: row;
    position: relative;
}

.video-annotator-container {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: margin-right 0.3s ease;
}

.video-annotator-container.panel-open {
    margin-right: 380px;
}

.video-annotator-video {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* === CANVAS & OVERLAY === */
.video-annotator-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
    z-index: 2;
    cursor: crosshair;
}

.video-annotator-canvas.draw-mode {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ff3b3b" d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/></svg>') 0 24, crosshair;
}

.video-annotator-canvas.erase-mode {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ef4444" d="M16.24 3.56l4.95 4.94c.78.79.78 2.05 0 2.84L12 20.53a4.008 4.008 0 0 1-5.66 0L2.81 17c-.78-.79-.78-2.05 0-2.84l10.6-10.6c.79-.78 2.05-.78 2.83 0M4.22 15.58l3.54 3.53c.78.79 2.04.79 2.83 0l3.53-3.53l-4.95-4.95l-4.95 4.95z"/></svg>') 12 12, pointer;
}

.video-annotator-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.annotation-drawing {
    position: absolute;
    pointer-events: auto;
}

.annotation-drawing path {
    fill: none;
    stroke: #ff3b3b;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.annotation-drawing:hover path {
    stroke: #ff6b6b;
    filter: drop-shadow(0 0 8px rgba(255, 59, 59, 0.6));
}

.annotation-number-badge {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.6);
    pointer-events: none;
    z-index: 4;
    min-width: 30px;
    text-align: center;
}

/* === CONTROLES VIDEO === */
.video-annotator-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 4;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.8), transparent);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.video-annotator-controls:hover {
    opacity: 1;
}

.video-annotator-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    backdrop-filter: blur(10px);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.video-annotator-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.video-annotator-btn:active {
    transform: translateY(0);
}

.tool-btn {
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-btn.active {
    background: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* === SLIDER === */
.video-annotator-slider {
    flex: 1;
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(10px);
}

.video-annotator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.6);
    transition: 0.2s;
}

.video-annotator-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.8);
}

.slider-container {
    flex: 1;
    position: relative;
}

.video-annotator-slider-marks {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 12px;
    pointer-events: none;
}

.slider-mark {
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    background: #ff3b3b;
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
    transition: transform 0.2s;
}

.slider-mark:hover {
    transform: translateX(-50%) scale(1.3);
}

/* === PANEL DROIT === */
.video-annotator-right-panel {
    position: fixed;
    right: -380px;
    top: 0;
    width: 380px;
    height: 100vh;
    overflow-y: auto;
    background: #1a1a1a;
    padding: 0;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 20px rgba(0,0,0,0.5);
}

.video-annotator-right-panel.open {
    right: 0;
}

.video-annotator-right-panel::-webkit-scrollbar {
    width: 8px;
}

.video-annotator-right-panel::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.panel-toggle-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px 10px;
    border-radius: 10px 0 0 10px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: 0.3s;
    z-index: 999;
    font-size: 20px;
    box-shadow: -2px 0 15px rgba(102, 126, 234, 0.4);
}

.panel-toggle-btn.panel-open {
    right: 400px;
}

.panel-toggle-btn:hover {
    box-shadow: -2px 0 25px rgba(102, 126, 234, 0.6);
    transform: translateY(-50%) translateX(-5px);
}

.panel-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-panel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.panel-content {
    padding: 20px;
}

/* === ANNOTATIONS === */
.general-comment-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #222;
    border-radius: 12px;
    border: 2px solid #333;
}

.general-comment-section h4 {
    margin: 0 0 12px 0;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
}

.annotation-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.annotation-item.new-annotation {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-left: 3px solid #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.annotation-item:hover {
    background: #2a2a2a;
    border-color: #667eea;
    transform: translateX(5px);
}

.annotation-item.highlight {
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}
/* État actif persistant (clic depuis slider-mark ou depuis l'annotation vers la vidéo) — même style que new-annotation */
.annotation-item.active-annotation {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-left: 3px solid #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Textarea obligatoire vide → bordure rouge */
.video-annotator-textarea.textarea-required-empty {
    border-color: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

/* === MODAL CONFIRMATION ENVOI === */
.pm-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    animation: fadeIn 0.2s ease;
}

.pm-confirm-modal {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    animation: slideUp 0.3s ease;
    text-align: center;
}

.pm-confirm-modal .pm-confirm-icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.pm-confirm-modal h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.pm-confirm-modal p {
    margin: 0 0 24px;
    color: #aaa;
    font-size: 15px;
    line-height: 1.5;
}

.pm-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pm-confirm-btn {
    padding: 11px 28px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pm-confirm-btn:hover {
    transform: translateY(-2px);
}

.pm-confirm-btn:active {
    transform: translateY(0);
}

.pm-confirm-btn.cancel {
    background: #333;
    color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pm-confirm-btn.cancel:hover {
    background: #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.pm-confirm-btn.confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.35);
}

.pm-confirm-btn.confirm:hover {
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5);
}

.annotation-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.annotation-title > span:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.annotation-time {
    font-size: 13px;
    color: #999;
}

/* === CHAMPS === */
.video-annotator-textarea {
    background: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.video-annotator-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.video-annotator-textarea::placeholder {
    color: #666;
    font-style: italic;
}

.video-annotator-input {
    background: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px;
    width: 70px;
    font-size: 14px;
}

.video-annotator-input:focus {
    outline: none;
    border-color: #667eea;
}

label {
    margin-bottom: 0px;
}

/* === BOUTONS === */
.small-btn {
    padding: 8px 16px;
    margin-top: 8px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    background: #ef4444;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.small-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.send-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.send-btn:active {
    transform: translateY(0);
}

/* === POPUP AIDE === */
.pm-help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.pm-help-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pm-help-modal {
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    border: 1px solid #333;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pm-help-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    transition: color 0.2s;
}

.pm-help-close:hover {
    color: #fff;
}

.pm-help-modal h2 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 28px;
}

.pm-help-intro {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 16px;
}

.pm-help-steps {
    margin-bottom: 30px;
}

.pm-help-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #252525;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #333;
}

.pm-help-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    border-color: #444;
}

.pm-help-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.pm-help-step h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 16px;
}

.pm-help-step p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

.pm-help-start-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pm-help-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pm-help-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    justify-content: center;
}

.pm-help-checkbox input[type="checkbox"] {
    cursor: pointer;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    /* --- Titre --- */
    .video-annotator-wrapper h2 {
        font-size: 18px;
        padding: 14px 10px;
    }

    /* --- Zone vidéo --- */
    .video-annotator-container-wrapper {
        height: calc(100% - 52px);
    }

    .video-annotator-container.panel-open {
        margin-right: 0;
    }

    /* --- Panneau droit devient un tiroir depuis le bas, plus pratique au pouce --- */
    .video-annotator-right-panel {
        width: 100%;
        height: 75vh;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .video-annotator-right-panel.open {
        transform: translateY(0);
    }

    .panel-content {
        padding: 15px;
        padding-bottom: 40px;
    }

    /* --- Bouton toggle du panneau : repositionné en bas, plus gros pour le tactile --- */
    .panel-toggle-btn {
        right: 15px;
        top: auto;
        bottom: 15px;
        transform: none;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }

    .panel-toggle-btn.panel-open {
        right: 15px;
        bottom: 15px;
    }

    .panel-toggle-btn:hover {
        transform: none;
    }

    /* --- Contrôles vidéo : on passe sur deux lignes, boutons plus compacts --- */
    .video-annotator-controls {
        flex-wrap: wrap;
        padding: 12px 10px;
        gap: 8px;
        opacity: 1; /* pas de survol sur mobile, donc toujours visible */
    }

    .video-annotator-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .tool-btn {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    /* On cache le libellé texte des outils, on garde juste l'icône pour gagner de la place */
    .tool-btn span {
        display: none;
    }

    .video-annotator-play-pause {
        min-width: 44px;
        min-height: 44px;
        padding: 10px 14px;
    }

    /* Le slider prend toute la largeur sur sa propre ligne */
    .slider-container {
        order: 5;
        flex-basis: 100%;
    }

    .video-annotator-time {
        order: 6;
        flex-basis: 100%;
        text-align: center;
        margin-left: 0;
        font-size: 13px;
    }

    /* --- Toasts : pleine largeur, sous le header --- */
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: 0;
        max-width: 100%;
        padding: 12px 14px;
    }

    /* --- Annotations : zones tactiles plus grandes --- */
    .annotation-item {
        padding: 12px;
    }

    .annotation-title {
        font-size: 15px;
    }

    .delete-icon {
        font-size: 22px !important;
        padding: 6px;
    }

    .video-annotator-textarea {
        font-size: 16px; /* évite le zoom automatique iOS sur focus */
    }

    .video-annotator-input {
        font-size: 16px;
        width: 60px;
    }

    /* --- Badges de numérotation, un peu plus petits sur petit écran --- */
    .annotation-number-badge {
        font-size: 12px;
        padding: 5px 8px;
        min-width: 24px;
    }

    /* --- Modale de confirmation --- */
    .pm-confirm-modal {
        padding: 28px 20px 22px;
        width: 88%;
    }

    .pm-confirm-actions {
        flex-direction: column;
    }

    .pm-confirm-btn {
        width: 100%;
    }

    /* --- Popup d'aide (déjà présent, conservé) --- */
    .pm-help-modal {
        padding: 25px;
        width: 95%;
    }

    .pm-help-modal h2 {
        font-size: 22px;
    }

    .pm-help-step {
        flex-direction: column;
        text-align: center;
    }

    .pm-help-icon {
        width: 100%;
    }
}

/* --- Très petits écrans (téléphones étroits) --- */
@media (max-width: 380px) {
    .video-annotator-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .tool-btn {
        min-width: 40px;
        min-height: 40px;
    }

    .video-annotator-right-panel {
        height: 80vh;
    }
}