/**
 * MODE TEST - INDICATEURS VISUELS
 * À ajouter dans form-berechit.css ou en CSS séparé
 */

/* ========================================
   BANNIÈRE MODE TEST (en haut du formulaire)
   ======================================== */

.test-mode-banner {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 4px solid #e66030;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.test-mode-banner::before {
    content: "⚠️ ";
    font-size: 16px;
    margin-right: 8px;
}

.test-mode-banner::after {
    content: " ⚠️";
    font-size: 16px;
    margin-left: 8px;
}

/* Animation subtile pour attirer l'attention */
@keyframes pulse-test {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.test-mode-banner {
    animation: pulse-test 3s ease-in-out infinite;
}

/* ========================================
   BORDER AUTOUR DU FORMULAIRE
   ======================================== */

.form-body.test-mode,
.donation-sidebar.test-mode {
    outline: 3px dashed #FF6B35 !important;
    outline-offset: -3px;
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.15), 
                0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Border animée (optionnel - plus visible) */
@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.15),
                    0 8px 24px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.25),
                    0 8px 24px rgba(0, 0, 0, 0.1);
    }
}

.form-body.test-mode,
.donation-sidebar.test-mode {
    animation: border-pulse 2s ease-in-out infinite;
}

/* ========================================
   BADGE FLOTTANT (alternatif)
   ======================================== */

.test-mode-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FF6B35;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 99999;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid white;
}

.test-mode-badge::before {
    content: "🧪 ";
    font-size: 14px;
}

/* ========================================
   WATERMARK EN FOND (très subtil)
   ======================================== */

.form-body.test-mode::before {
    content: "TEST MODE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 80px;
    font-weight: 900;
    color: rgba(255, 107, 53, 0.05);
    z-index: 0;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 10px;
}

/* Assurer que le contenu reste au-dessus */
.form-body.test-mode > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   INDICATEUR SUR LE BOUTON DE PAIEMENT
   ======================================== */

.test-mode .btn-nav-continue::after,
.test-mode button[type="submit"]::after {
    content: " (TEST)";
    font-size: 10px;
    opacity: 0.8;
    font-weight: 400;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .test-mode-banner {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .test-mode-badge {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* ========================================
   DANS LA SIDEBAR
   ======================================== */

.donation-sidebar.test-mode .donation-sidebar-header {
    border-top: 4px solid #FFD700;
}

.donation-sidebar.test-mode .donation-sidebar-header::after {
    content: " • MODE TEST";
    font-size: 11px;
    opacity: 0.9;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}


/* ============================================
   MODE TEST - MODAL UNIQUEMENT
   ============================================ */

/* Border orange pointillée autour du modal */
.modal-box.test-mode {
    border: 3px dashed #FF6B35 !important;
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.15), 
                0 20px 60px rgba(0, 0, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Bannière en haut du modal */
.modal-box.test-mode::before {
    content: "⚠️ MODE TEST - Aucune Transaction Réelle ⚠️";
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1000;
    border-radius: 12px 12px 0 0;
}

/* Overlay avec teinte orange légère */
.modal-overlay.test-mode {
    background: rgba(255, 107, 53, 0.15) !important;
}

/* Animation subtile de la border (optionnel) */
@keyframes test-pulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.15),
                    0 20px 60px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.25),
                    0 20px 60px rgba(0, 0, 0, 0.3);
    }
}

.modal-box.test-mode {
    animation: test-pulse 2s ease-in-out infinite;
}

/* Mobile - texte plus petit */
@media (max-width: 768px) {
    .modal-box.test-mode::before {
        font-size: 11px;
        padding: 10px 15px;
    }
}


/* ============================================
   MODE TEST - BODY UNIQUEMENT
   ============================================ */

/* Border orange pointillée autour du body */
.body.test-mode {
    border: 3px dashed #FF6B35 !important;
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.15), 
                0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

