/**
 * Anti Copy Protection — Frontend CSS
 * Version 2.0
 * Compatible mobile & desktop
 */

/* =============================================
   PROTECTION SÉLECTION DE TEXTE
   ============================================= */
body.acp-no-select,
body.acp-no-select * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Garder la sélection dans les champs de formulaire */
body.acp-no-select input,
body.acp-no-select textarea,
body.acp-no-select select,
body.acp-no-select [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Empêcher le drag sur les images */
body.acp-no-drag img {
    -webkit-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none;
}

body.acp-no-drag a img {
    pointer-events: auto;
}

/* =============================================
   NOTIFICATION TOAST (mobile-friendly)
   ============================================= */
.acp-toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 90%;
    max-width: 420px;
}

.acp-toast {
    background: rgba(30, 30, 30, 0.92);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: acp-toast-in 0.3s ease forwards;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    word-break: break-word;
}

.acp-toast.acp-toast-out {
    animation: acp-toast-out 0.3s ease forwards;
}

.acp-toast-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
}

@keyframes acp-toast-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes acp-toast-out {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* =============================================
   OVERLAY PRINT SCREEN (flash)
   ============================================= */
.acp-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999998;
    opacity: 0;
    pointer-events: none;
    animation: acp-flash 0.5s ease;
}

@keyframes acp-flash {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
    .acp-toast-container {
        bottom: 16px;
        width: 92%;
    }

    .acp-toast {
        font-size: 13px;
        padding: 10px 16px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .acp-toast-container {
        bottom: 12px;
        width: 94%;
    }
}
