/**
 * 🎨 ANIMATIONS SPECTACULAIRES - TOURNAGE GUIDÉ
 * 
 * CSS pour toutes les animations, pop-ups, confettis,
 * transitions et effets visuels de fou !
 */

/* ============================================
   🎬 ÉCRAN DE TOURNAGE GUIDÉ
   ============================================ */

#guidedRecordingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#guidedRecordingScreen.active {
    display: flex !important;
}

/* Caméra en direct */
#liveCamera {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* iOS Safari fix */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ============================================
   🎯 OVERLAY DE GUIDE VISUEL
   ============================================ */

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

.guide-silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: pulse-guide 2s ease-in-out infinite;
}

@keyframes pulse-guide {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.05); }
}

/* ============================================
   📋 PANNEAU D'INSTRUCTIONS
   ============================================ */

.instructions-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px;
    border: 2px solid rgba(34, 211, 238, 0.5);
    z-index: 20;
    max-width: 90%;
    text-align: center;
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from { transform: translateX(-50%) translateY(-50px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.instructions-overlay h3 {
    font-size: 24px;
    font-weight: bold;
    color: #22d3ee;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.instructions-overlay p {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.instructions-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    animation: bounce-emoji 1s ease-in-out infinite;
}

@keyframes bounce-emoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Tips flottants */
.instruction-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.tip {
    background: rgba(34, 211, 238, 0.2);
    border: 1px solid rgba(34, 211, 238, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
}

/* ============================================
   ✅ PANNEAU D'OBJECTIFS
   ============================================ */

.objectives-panel {
    position: absolute;
    left: 20px;
    top: 120px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid rgba(34, 211, 238, 0.3);
    z-index: 20;
    min-width: 250px;
    animation: slide-in-left 0.5s ease-out;
}

@keyframes slide-in-left {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.objectives-header {
    font-size: 18px;
    font-weight: bold;
    color: #22d3ee;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.3s ease;
}

.objective-item.completed {
    color: #10b981;
    animation: objective-complete 0.6s ease-out;
}

@keyframes objective-complete {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #22d3ee; }
    100% { transform: scale(1); }
}

.objective-checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.objective-item.completed .objective-checkmark {
    background: #10b981;
    border-color: #10b981;
    animation: checkmark-pop 0.6s ease-out;
}

@keyframes checkmark-pop {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(360deg); }
}

.objective-item.in-progress {
    color: #fbbf24;
    animation: pulse-objective 1.5s ease-in-out infinite;
}

@keyframes pulse-objective {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   🎖️ BADGES DE POINTS
   ============================================ */

.points-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    z-index: 100;
    pointer-events: none;
    animation: points-popup 1.5s ease-out forwards;
}

@keyframes points-popup {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -80%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -120%) scale(0.8);
        opacity: 0;
    }
}

/* ============================================
   🎉 CONFETTIS
   ============================================ */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   💬 POP-UPS FLOTTANTS
   ============================================ */

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.floating-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popup-bounce 0.6s ease-out;
}

@keyframes popup-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.floating-popup.encouragement {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.floating-popup.achievement {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
    font-size: 28px;
    padding: 20px 40px;
    border: 3px solid #fbbf24;
    animation: achievement-unlock 1s ease-out;
}

@keyframes achievement-unlock {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.floating-popup.fade-out {
    animation: popup-fade-out 0.5s ease-out forwards;
}

@keyframes popup-fade-out {
    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

/* ============================================
   🏆 MODAL DE SUCCÈS
   ============================================ */

.achievement-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    text-align: center;
    animation: achievement-modal-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes achievement-modal-in {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.achievement-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: achievement-icon-spin 2s ease-in-out infinite;
}

@keyframes achievement-icon-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(360deg) scale(1.2); }
}

.achievement-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.achievement-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   ⏱️ TIMER ET PROGRESSION
   ============================================ */

.timer-display {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 32px;
    font-weight: bold;
    color: #22d3ee;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    border: 2px solid rgba(34, 211, 238, 0.3);
    z-index: 20;
}

.timer-display.warning {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.5);
    animation: pulse-timer 1s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.progress-bar-container {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
    border-radius: 20px;
    z-index: 20;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.progress-text {
    font-size: 14px;
    color: #fff;
    text-align: center;
    display: block;
}

/* ============================================
   🔴 BOUTON D'ENREGISTREMENT
   ============================================ */

.record-button-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

.record-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ef4444;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-button:hover {
    transform: scale(1.1);
}

.record-button:active {
    transform: scale(0.95);
}

.record-button.recording {
    animation: pulse-record 1.5s ease-in-out infinite;
}

@keyframes pulse-record {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 10px 50px rgba(239, 68, 68, 1),
                    0 0 0 20px rgba(239, 68, 68, 0.3);
    }
}

.record-circle {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.record-button.recording .record-circle {
    border-radius: 5px;
    width: 24px;
    height: 24px;
}

/* ============================================
   ✨ ANIMATION DE TRANSITION D'ÉTAPE
   ============================================ */

.step-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: transition-fade-in 0.5s ease-out;
}

@keyframes transition-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-transition-content {
    text-align: center;
    animation: transition-zoom 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes transition-zoom {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.step-emoji {
    font-size: 120px;
    margin-bottom: 20px;
    animation: spin-emoji 2s ease-in-out infinite;
}

@keyframes spin-emoji {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(360deg); }
}

.step-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.step-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   🎊 ANIMATION DE COMPLÉTION D'ÉTAPE
   ============================================ */

.step-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.completion-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: card-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes card-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.completion-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: success-spin 1s ease-out;
}

@keyframes success-spin {
    from { transform: rotate(0deg) scale(0); }
    to { transform: rotate(720deg) scale(1); }
}

.completion-title {
    font-size: 42px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.completion-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #fbbf24;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

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

@media (max-width: 768px) {
    /* Instructions plus compactes et repositionnées */
    .instructions-overlay {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 15px;
        max-width: 95%;
    }
    .instructions-overlay h3 { 
        font-size: 16px; 
        margin-bottom: 4px; 
    }
    .instructions-overlay p { 
        font-size: 12px; 
    }
    .instructions-emoji { 
        font-size: 28px; 
        margin-bottom: 4px; 
    }
    
    /* Panneau objectifs BIEN SOUS les instructions */
    .objectives-panel { 
        left: 10px; 
        top: 200px; /* ENCORE PLUS BAS pour vraiment dégager */
        min-width: 160px;
        padding: 8px 12px;
        font-size: 11px;
        max-height: 30vh;
        overflow-y: auto;
    }
    .objectives-header { 
        font-size: 13px; 
        margin-bottom: 8px; 
    }
    .objective-item { 
        font-size: 11px; 
        padding: 4px 0; 
    }
    
    /* Barre de progression en haut du bas */
    .progress-bar-container {
        bottom: 260px; /* Plus haut pour donner de l'espace */
        width: 90%;
        padding: 8px 12px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Contrôles additionnels (Passer, Refaire, Annuler) */
    /* Barre de progression - PLUS HAUT pour être visible */
    .progress-bar-container {
        bottom: 280px !important; /* Au-dessus des boutons Passer/Refaire/Annuler */
        width: 90%;
        max-width: 350px;
        padding: 10px 15px;
    }
    
    /* Boutons de contrôle - SOUS la barre de progression */
    .additional-controls {
        bottom: 210px !important; /* SOUS la barre de progression */
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
    }
    
    .control-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
    
    /* Timer bien centré avec plus d'espace */
    .timer-display { 
        font-size: 22px; 
        bottom: 150px; /* Plus haut pour éviter le bouton REC */
        padding: 8px 18px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Bouton REC centré avec plus d'espace */
    .record-button-container {
        bottom: 40px; /* Plus bas pour donner de l'espace */
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    
    .record-button { 
        width: 70px; 
        height: 70px;
        margin: 0 auto;
    }
    
    /* Sidebar achievements masqué sur mobile */
    .achievements-sidebar {
        display: none;
    }
    
    /* Titres d'étapes */
    .step-title { font-size: 36px; }
    .completion-title { font-size: 32px; }
    
    /* Tips d'instructions plus compacts */
    .instruction-tips {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 6px;
        justify-content: center;
    }
    .tip {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ============================================
   🎥 MODE PAYSAGE (HORIZONTAL) - Tournage 16:9
   ============================================ */

@media (max-width: 1024px) and (orientation: landscape) {
    
    /* Instructions COMPACTES en haut à gauche */
    .instructions-overlay {
        top: 10px;
        left: 5px; /* Plus collé au bord pour gagner de l'espace */
        transform: none;
        padding: 8px 15px;
        max-width: 35%;
        text-align: left;
    }
    .instructions-overlay h3 { 
        font-size: 14px; 
        margin-bottom: 3px; 
    }
    .instructions-overlay p { 
        font-size: 11px; 
        margin-bottom: 3px;
    }
    .instructions-emoji { 
        font-size: 20px; 
        margin-bottom: 3px;
        display: inline-block;
        margin-right: 5px;
    }
    
    /* Tips en ligne */
    .instruction-tips {
        display: none; /* Masqué en paysage pour gagner de la place */
    }
    
    /* Panneau objectifs en haut à DROITE (opposé aux instructions) */
    .objectives-panel { 
        left: auto;
        right: 5px; /* Plus collé au bord droit aussi */
        top: 10px;
        min-width: 140px;
        max-width: 25%;
        padding: 8px 10px;
        font-size: 10px;
        max-height: 50vh;
        overflow-y: auto;
    }
    .objectives-header { 
        font-size: 12px; 
        margin-bottom: 6px; 
    }
    .objective-item { 
        font-size: 10px; 
        padding: 3px 0; 
    }
    
    /* Barre de progression EN BAS, plus compacte */
    .progress-bar-container {
        bottom: 100px; /* Encore plus haut pour bien dégager le bouton REC */
        width: 50%;
        padding: 6px 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    .progress-bar {
        height: 6px;
        margin-bottom: 5px;
    }
    .progress-text {
        font-size: 10px;
    }
    
    /* Contrôles additionnels À GAUCHE du bouton REC */
    .additional-controls {
        bottom: 15px !important;
        left: 20px !important;
        transform: none !important;
        gap: 8px;
        flex-direction: row;
        width: auto;
        justify-content: flex-start;
    }
    
    .control-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    /* Timer À DROITE du bouton REC */
    .timer-display { 
        font-size: 20px; 
        bottom: 15px;
        left: auto;
        right: 20px;
        transform: none;
        padding: 6px 15px;
    }
    
    /* Bouton REC au CENTRE BAS - BIEN CENTRÉ et DÉGAGÉ */
    .record-button-container {
        bottom: 15px; /* Même niveau que contrôles et timer */
        left: 50%;
        transform: translateX(-50%); /* Centrage parfait */
        text-align: center;
    }
    
    .record-button { 
        width: 60px; 
        height: 60px;
        margin: 0 auto; /* Double assurance du centrage */
    }
    
    #recordButtonText {
        font-size: 11px;
        margin-top: 5px;
        display: block;
    }
    
    /* Sidebar achievements masqué en paysage */
    .achievements-sidebar {
        display: none;
    }
}

/* ============================================
   🌟 EFFETS SPÉCIAUX
   ============================================ */

.glow-effect {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(34, 211, 238, 1),
                    0 0 60px rgba(34, 211, 238, 0.8);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Animation confettis */
@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.rainbow-text {
    background: linear-gradient(90deg, 
        #ff0000, #ff7f00, #ffff00, #00ff00, 
        #0000ff, #4b0082, #9400d3
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 3s ease infinite;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   🏆 SESSION 2: ACHIEVEMENTS NOTIFICATIONS
   ============================================ */

.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10000;
    max-width: 300px;
}

.achievement-icon {
    font-size: 40px;
    animation: pulse 1s ease-in-out infinite;
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-description {
    font-size: 13px;
    opacity: 0.9;
}

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

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

/* ============================================
   ❌ BOUTON DANGER (Annuler)
   ============================================ */
.control-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    border: 2px solid #fca5a5 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
    transition: all 0.3s ease !important;
}

.control-btn.danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6) !important;
    border-color: #fef2f2 !important;
}

.control-btn.danger:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5) !important;
}
