.tooltip-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tooltip-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.tooltip-content {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.tooltip-container.visible .tooltip-content {
    transform: translateY(0);
}

.tooltip-content h3 {
    color: #3498db;
    margin-top: 0;
    font-size: 1.4em;
}

.tooltip-content p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tooltip-close {
    background-color: #3498db;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tooltip-close:hover {
    background-color: #2980b9;
}

/* Style pour le feedback de geste */
.gesture-feedback {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.gesture-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.gesture-feedback.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.gesture-feedback.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Indicateur de statut pour le mode gesture */
.gesture-status {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    z-index: 1001;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: gesture-pulse 2s infinite;
}

@keyframes gesture-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.gesture-status.inactive {
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* Style pour l'animation de pulsation des nouveaux boutons */
.tooltip-attention {
    position: relative;
    animation: tooltip-pulse 2s infinite;
}

@keyframes tooltip-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

@media (max-width: 600px) {
    .tooltip-container {
        padding: 15px;
    }
    
    .tooltip-content {
        padding: 20px;
        border-radius: 15px;
        margin: 0;
    }
    
    .tooltip-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .tooltip-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 18px;
        white-space: pre-line; /* Permet les sauts de ligne pour les instructions de gestes */
    }
    
    .tooltip-close {
        width: 100%;
        padding: 12px;
    }
    
    .gesture-feedback {
        top: 15px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .gesture-status {
        top: 15px;
        right: 15px;
        width: 10px;
        height: 10px;
    }
}
