/* Styles pour les slides d'urgence */
.slide[style*="police.jpg"] {
    background: linear-gradient(rgba(21, 101, 192, 0.8), rgba(13, 71, 161, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" fill="%231565c0"/><polygon points="960,200 1100,400 960,600 820,400" fill="%23ffffff" opacity="0.1"/><circle cx="960" cy="400" r="150" fill="%23ffffff" opacity="0.05"/><text x="960" y="800" text-anchor="middle" fill="%23ffffff" font-size="120" font-family="Arial, sans-serif" opacity="0.1">POLICE</text></svg>') !important;
    background-size: cover !important;
    background-position: center !important;
}

.slide[style*="pompiers.jpg"] {
    background: linear-gradient(rgba(211, 47, 47, 0.8), rgba(183, 28, 28, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" fill="%23d32f2f"/><polygon points="960,150 1050,350 960,550 870,350" fill="%23ffffff" opacity="0.1"/><circle cx="960" cy="350" r="200" fill="%23ffffff" opacity="0.05"/><text x="960" y="800" text-anchor="middle" fill="%23ffffff" font-size="100" font-family="Arial, sans-serif" opacity="0.1">POMPIERS</text></svg>') !important;
    background-size: cover !important;
    background-position: center !important;
}

.slide[style*="samu.jpg"] {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(27, 94, 32, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" fill="%232e7d32"/><polygon points="960,200 1000,300 960,400 920,300" fill="%23ffffff" opacity="0.15"/><rect x="920" y="320" width="80" height="20" fill="%23ffffff" opacity="0.15"/><rect x="950" y="290" width="20" height="80" fill="%23ffffff" opacity="0.15"/><circle cx="960" cy="400" r="180" fill="%23ffffff" opacity="0.05"/><text x="960" y="800" text-anchor="middle" fill="%23ffffff" font-size="120" font-family="Arial, sans-serif" opacity="0.1">SAMU</text></svg>') !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Animation des boutons d'urgence */
.emergency-btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.emergency-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.emergency-btn:hover::before {
    left: 100%;
}

/* Responsivité pour mobile */
@media (max-width: 768px) {
    .emergency-btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    
    .slide .content h1 {
        font-size: 28px !important;
    }
    
    .slide .content .text {
        font-size: 14px !important;
    }
}

/* Animation de pulsation pour les boutons d'urgence */
@keyframes emergency-pulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

.emergency-btn {
    animation: emergency-pulse 2s infinite;
}

.slide[style*="police.jpg"] .emergency-btn {
    animation: emergency-pulse-blue 2s infinite;
}

@keyframes emergency-pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(21, 101, 192, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0); }
}

.slide[style*="samu.jpg"] .emergency-btn {
    animation: emergency-pulse-green 2s infinite;
}

@keyframes emergency-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}
