/* Bandeau de phase de test - Le Gazouilleur - Style Ruban Diagonal */

/* Ruban diagonal principal */
.test-phase-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    animation: test-banner-slide-in 0.6s ease-out, test-banner-pulse 3s infinite 0.6s;
    transform: translateX(-50px) translateY(20px) rotate(-45deg);
    transform-origin: center;
}

/* Zone de hover étendue pour éviter les problèmes */
.test-phase-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -1;
}

.test-phase-banner:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateX(-50px) translateY(20px) rotate(-45deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Animation de pulsation subtile */
@keyframes test-banner-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
    }
}

/* Tooltip détaillé */
.test-phase-tooltip {
    position: fixed;
    top: 100px;
    left: 20px;
    background: white;
    color: #374151;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    width: 360px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100px) translateY(-10px) scale(0.95) rotate(45deg);
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
}

.test-phase-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.test-phase-tooltip::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #e5e7eb;
    z-index: -1;
}

/* Tooltip au survol - approche plus stable */
.test-phase-tooltip {
    pointer-events: none;
}

.test-phase-banner:hover .test-phase-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-100px) translateY(0) scale(1) rotate(45deg) !important;
    pointer-events: auto;
}

/* Contenu du tooltip */
.test-phase-tooltip h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    letter-spacing: -0.025em;
}

.test-phase-tooltip h4::before {
    content: '🧪';
    margin-right: 10px;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.test-phase-tooltip p {
    margin: 0 0 16px 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.test-phase-tooltip ul {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    color: #374151;
}

.test-phase-tooltip li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.test-phase-tooltip li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.test-phase-tooltip .contact-info {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    font-weight: 500;
    position: relative;
}

.test-phase-tooltip .contact-info::before {
    content: '💬';
    margin-right: 6px;
    font-size: 14px;
}

.test-phase-tooltip .contact-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10000;
}

.test-phase-tooltip .contact-link:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}

.test-phase-tooltip .contact-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .test-phase-banner {
        width: 160px;
        height: 35px;
        font-size: 11px;
        transform: translateX(-40px) translateY(15px) rotate(-45deg);
    }
    
    .test-phase-tooltip {
        left: 10px;
        width: 320px;
        max-width: calc(100vw - 20px);
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .test-phase-banner {
        width: 140px;
        height: 30px;
        font-size: 10px;
        transform: translateX(-35px) translateY(12px) rotate(-45deg);
    }
    
    .test-phase-tooltip {
        left: 5px;
        width: 300px;
        max-width: calc(100vw - 10px);
        padding: 18px;
    }
}

/* Animation d'entrée */
@keyframes test-banner-slide-in {
    from {
        opacity: 0;
        transform: translateX(-100px) translateY(20px) rotate(-45deg);
    }
    to {
        opacity: 1;
        transform: translateX(-50px) translateY(20px) rotate(-45deg);
    }
}

.test-phase-banner {
    animation: test-banner-slide-in 0.6s ease-out, test-banner-pulse 3s infinite 0.6s;
}
