@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.25);
        border-color: #4b5563; /* gray-600 */
    }
    50% {
        box-shadow: 0 0 0 6px rgba(248, 113, 113, 0);
        border-color: #f87171; /* red-400 */
    }
}
.pulse-inactive {
    animation: pulse-highlight 2.5s infinite;
}
@keyframes pulse-map {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(248, 113, 113, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
    }
}
.map-point {
     animation: pulse-map 2s infinite;
     transform-origin: center;
}
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #f87171; /* red-400 */
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
}
.marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}
.marker-pulse {
    background: rgba(248, 113, 113, 0.5);
    border-radius: 50%;
    height: 30px;
    width: 30px;
    transform: rotate(45deg);
    animation: pulse-map 2s infinite;
}
.pulsing-marker {
    background-color: #f87171; /* red-400 */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
    animation: pulse-map 2s infinite;
}
.word-rotator-container {
    display: inline-grid;
    place-items: center;
    vertical-align: bottom;
}
.word-rotator-item {
    grid-area: 1 / 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.word-rotator-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.word-rotator-item.was-visible {
    transform: translateY(-100%);
    opacity: 0;
}
@keyframes pulse-green-highlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); /* green-400 with opacity */
    }
    50% {
        box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
    }
}
.pulse-green {
    animation: pulse-green-highlight 2s infinite;
    background-color: #4ade80; /* green-400 */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Promotion Banner Styles */
@keyframes promo-slide-down {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes promo-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.promo-banner {
    animation: promo-slide-down 0.5s ease-out;
    background: linear-gradient(90deg, #ef4444, #ec4899, #ef4444);
    background-size: 200% 100%;
    animation: promo-slide-down 0.5s ease-out, promo-shimmer 3s ease-in-out infinite;
}

.promo-banner:hover {
    animation: promo-slide-down 0.5s ease-out, promo-shimmer 1.5s ease-in-out infinite;
}

.promo-reminder {
    animation: promo-pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.promo-reminder:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.promo-close-btn {
    transition: all 0.2s ease;
}

.promo-close-btn:hover {
    transform: scale(1.2);
    color: #fecaca;
}

/* Responsive adjustments for promotion banner */
@media (max-width: 768px) {
    .promo-banner .max-w-7xl {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .promo-banner .text-sm {
        font-size: 0.75rem;
    }
    
    .promo-banner .text-xs {
        font-size: 0.625rem;
    }
}

#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}
#leaves-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998; /* Below snow */
    pointer-events: none;
}

/* Leaflet Map Styles */
#leaflet-map {
    position: relative;
    z-index: 10; /* Assure que la carte reste sous la navbar (z-index: 50) */
}

.leaflet-container {
    z-index: 10 !important;
}

.leaflet-pane {
    z-index: 10 !important;
}

.leaflet-top, .leaflet-bottom {
    z-index: 15 !important;
}

.map-tooltip {
    background-color: rgba(17, 24, 39, 0.95) !important; /* gray-900 with opacity */
    border: 1px solid #374151 !important; /* gray-700 */
    border-radius: 6px !important;
    color: #f9fafb !important; /* gray-50 */
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 6px 10px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.map-tooltip::before {
    display: none !important;
}

.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

/* Dynamic Color System */
:root {
    --color-primary: #f87171;
    --color-primary-rgb: 248, 113, 113;
    --color-hover: #fca5a5;
    --color-accent: #ef4444;
}

/* Dynamic utility classes */
.text-dynamic-primary { color: var(--color-primary) !important; }
.text-dynamic-hover:hover { color: var(--color-hover) !important; }
.border-dynamic-primary { border-color: var(--color-primary) !important; }
.shadow-dynamic { box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.3) !important; }

.dynamic-glow:hover {
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.4);
    transition: all 0.3s ease;
}

/* Header classes */
.header-primary { color: var(--color-primary) !important; }
.header-hover:hover { color: var(--color-hover) !important; }
.header-bg { background-color: var(--color-primary) !important; }

/* Animation for pricing tables */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.management-slide {
    display: none;
}

.management-slide.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animation de pulse lente pour l'offre populaire */
@keyframes pulse-slow {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.05; 
        transform: scale(1.01);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Effet de l'offre populaire dans le tableau */
.pricing-popular-row {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    transform: scale(1.01);
}

.pricing-popular-row:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

/* Responsive pour le tableau */
@media (max-width: 768px) {
    .pricing-popular-row {
        transform: scale(1.005);
    }
    
    .pricing-popular-row:hover {
        transform: scale(1.01);
    }
}

/* Animation d'entrée pour les lignes du tableau */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

tbody tr {
    animation: slideInLeft 0.6s ease-out forwards;
}

tbody tr:nth-child(1) { animation-delay: 0.1s; }
tbody tr:nth-child(2) { animation-delay: 0.2s; }
tbody tr:nth-child(3) { animation-delay: 0.3s; }
tbody tr:nth-child(4) { animation-delay: 0.4s; }
tbody tr:nth-child(5) { animation-delay: 0.5s; }
tbody tr:nth-child(6) { animation-delay: 0.6s; }

/* Amélioration de la lisibilité du tableau */
table th {
    background: linear-gradient(90deg, #1f2937 0%, #111827 100%);
    border-bottom: 2px solid #f87171;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Hover effect sur les lignes normales */
tbody tr:not(.pricing-popular-row):hover {
    background: rgba(31, 41, 55, 0.6) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Style des boutons dans le tableau */
table a {
    transition: all 0.2s ease;
}

table a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Styles pour le dropdown des options supplémentaires */
.config-icon {
    transition: transform 0.3s ease;
}

.config-icon.rotate-180 {
    transform: rotate(180deg);
}

/* Animation du dropdown */
.server-config-dropdown {
    transition: all 0.5s ease-in-out;
    overflow: hidden;
}

/* Animation d'apparition des éléments */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.server-config-content {
    animation: slideInUp 0.4s ease-out;
}

/* Effet de glow pour le CTA */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(248, 113, 113, 0.5);
    }
}

.cta-glow:hover {
    animation: glow 2s infinite;
}

/* Animation du rocket */
@keyframes rocketBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.rocket-icon {
    animation: rocketBounce 2s infinite;
}

/* Animation des badges actifs */
@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.active-badge {
    animation: badgePulse 1.5s infinite;
}
