:root {
  scroll-behavior: smooth;
}

body
        
        {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #e0f7ff 0%, #f0f9ff 50%, #e6f3ff 100%);
            min-height: 100vh;
        }
        
        .ice-gradient {
            background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
        }
        
        .ice-gradient-soft {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
        }
        
        .ice-shadow {
            box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
        }
        
        .ice-shadow-lg {
            box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
        }
        
        .frost-effect {
            backdrop-filter: blur(20px);
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .tab-active {
            background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
            color: white;
            font-weight: 600;
            transform: scale(1.02);
        }
        
        .ice-button {
            background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }
        
        .ice-button:hover {
            background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
        }
        
        .ice-button-secondary {
            background: transparent;
            border: 2px solid #3b82f6;
            color: #3b82f6;
            transition: all 0.3s ease;
        }
        
        .ice-button-secondary:hover {
            background: rgba(59, 130, 246, 0.1);
            border-color: #2563eb;
            color: #2563eb;
        }
        
        #map {
            height: 100%;
            width: 100%;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
        }
        
        .card-hover {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .card-hover:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25);
        }
        
        .search-bar {
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
        }
        
        .search-bar:focus {
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
            background: rgba(255, 255, 255, 0.95);
        }
        
        .friend-status-online {
            background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
            animation: pulse-green 2s infinite;
        }
        
        .friend-status-offline {
            background: #9ca3af;
        }
        
        @keyframes pulse-green {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .check-circle {
            transition: all 0.3s ease;
        }

        @keyframes glow {
            from { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
            to { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5); }
        }
        
        .content-section {
            display: none;
            animation: fadeIn 0.5s ease-in-out;
        }
        
        .content-section.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal.active {
            display: flex;
            animation: modalFadeIn 0.3s ease-out;
        }
        
        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .modal-content {
            width: 90%;
            max-width: 500px;
            max-height: 85vh;
            overflow-y: auto;
            border-radius: 20px;
            animation: modalSlideIn 0.3s ease-out;
        }
        
        @keyframes modalSlideIn {
            from { transform: translateY(-50px) scale(0.9); opacity: 0; }
            to { transform: translateY(0) scale(1); opacity: 1; }
        }
        
        .notification-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            animation: bounce 2s infinite;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }
        
        .notification-panel {
            position: fixed;
            top: 90px;
            right: 20px;
            width: 320px;
            max-height: 450px;
            overflow-y: auto;
            z-index: 900;
            display: none;
            animation: slideInRight 0.3s ease-out;
        }
        
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        .notification-panel.active {
            display: block;
        }
        
        .notification-item {
            transition: all 0.3s ease;
        }
        
        .notification-item:hover {
            background: rgba(255, 255, 255, 0.95);
            transform: translateX(-4px);
        }
        
        .notification-item.unread {
            border-left: 4px solid #3b82f6;
            background: rgba(59, 130, 246, 0.05);
        }
        
        .achievement-badge {
            position: relative;
            transition: all 0.3s ease;
        }
        
        .achievement-badge:hover {
            transform: scale(1.08);
        }
        
        .achievement-badge.locked {
            filter: grayscale(1);
            opacity: 0.6;
        }
        
        .achievement-badge.locked:hover {
            filter: grayscale(0.7);
            opacity: 0.8;
        }
        
        .friend-request {
            animation: pulse-blue 2s infinite;
        }
        
        @keyframes pulse-blue {
            0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
            70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
            100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
        }
        
        .weather-card {
            transition: all 0.3s ease;
        }
        
        .weather-card:hover {
            transform: translateY(-4px);
        }
        
        .tooltip {
            position: relative;
        }
        
        .tooltip .tooltip-text {
            visibility: hidden;
            width: 140px;
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            text-align: center;
            border-radius: 8px;
            padding: 8px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 12px;
        }
        
        .tooltip:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }
        
        .progress-bar {
            background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
            transition: width 0.5s ease;
        }
        
        .stats-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .floating-action {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 100;
        }
        
        /* Boutons de navigation (onglets) */
        .tab-button {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 0.75rem;
            border-radius: 0.75rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 2px solid transparent;
            
            /* Style par défaut : bleu sur fond blanc */
            background: white;
            color: #3b82f6;
        }

        .tab-button:hover {
            background: #eff6ff;
            transform: translateY(-2px);
        }

        /* Style actif : blanc sur fond bleu */
        .tab-button.tab-active,
        .tab-button.active {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .tab-button.tab-active svg,
        .tab-button.active svg {
            color: white !important;
        }

        .rink-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .event-type-competition {
            background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
        }
        
        .event-type-show {
            background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
        }
        
        .event-type-lesson {
            background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
        }
        
        .event-type-tournament {
            background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
        }
        
        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        
        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }
        
        .conversation-item.active {
            background: rgba(59, 130, 246, 0.1);
            border-left: 4px solid #3b82f6;
            transform: translateX(4px);
        }
        
        .glass-effect {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }
        
        .streak-fire {
            animation: fire 1.5s ease-in-out infinite alternate;
        }
        
        @keyframes fire {
            0% { transform: scale(1) rotate(-2deg); }
            100% { transform: scale(1.1) rotate(2deg); }
        }
        
        /* Styles pour les popups de la carte */
        .leaflet-popup-content-wrapper {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .leaflet-popup-tip {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
        }
        
        .custom-popup .leaflet-popup-content {
            margin: 0;
            font-family: 'Inter', sans-serif;
        }
        
        .leaflet-popup-close-button {
            color: #6b7280 !important;
            font-size: 18px !important;
            font-weight: bold !important;
            padding: 8px !important;
        }
        
        .leaflet-popup-close-button:hover {
            color: #374151 !important;
            background: rgba(0, 0, 0, 0.05) !important;
            border-radius: 50% !important;
        }
        
        /* Animation pour les marqueurs */
        .marker-pulse {
            animation: markerPulse 2s infinite;
        }
        
        @keyframes markerPulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.8;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        /* Amélioration de la recherche */

        .search-suggestion {
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .search-suggestion:hover {
            background: rgba(59, 130, 246, 0.1);
        }
        
        .search-suggestion:last-child {
            border-bottom: none;
        }
        
        #profile-menu {
    position: absolute;
    top: calc(100% + 8px); /* Positionné sous le bouton avec un espacement */
    right: 0; /* Aligné à droite du bouton */
    width: 16rem; /* w-64 en Tailwind = 256px = 16rem */
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 0.75rem; /* rounded-xl */
    z-index: 50;
    padding: 1rem;
    
    /* Animation et visibilité */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
}

/* État actif du menu */
#profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Assurez-vous que le conteneur parent a la bonne position */
.relative {
    position: relative;
}

/* Style de l'avatar dans le menu */
#profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

/* Input du nom d'utilisateur */
#profile-username {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    text-align: center;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#profile-username:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

/* Email de l'utilisateur */
#profile-email {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

/* Séparateur */
#profile-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Boutons du menu */
#profile-menu button {
    width: 100%;
    text-align: left;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
    color: #374151;
}

#profile-menu button:hover {
    background-color: #f3f4f6;
}

/* Bouton de déconnexion spécifique */
#logout-btn {
    margin-top: 0.5rem;
    color: #ef4444;
}

#logout-btn:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* Responsive - sur mobile */
@media (max-width: 640px) {
    #profile-menu {
        right: -2rem; /* Légèrement décalé pour éviter le débordement */
        width: 14rem; /* Plus petit sur mobile */
    }
}

/* Animation pour les notifications du système */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Menus header plus grands et plus confortables */
#header-rinks-menu {
    max-height: 70vh !important; /* 70% de la hauteur de l'écran */
    min-height: 500px !important;
    width: 400px !important; /* Un peu plus large aussi */
}

#header-moves-menu {
    max-height: 75vh !important; /* 75% de la hauteur de l'écran */
    min-height: 600px !important;
    width: 450px !important; /* Un peu plus large aussi */
}

/* Conteneurs de listes avec scroll plus spacieux */
#rinks-checkbox-container {
    max-height: 300px !important; /* Plus de place pour les checkboxes */
}

#header-moves-list-container {
    max-height: 250px !important; /* Plus de place pour la liste des déplacements */
}

/* Responsive - plus petit sur mobile */
@media (max-width: 768px) {
    #header-rinks-menu,
    #header-moves-menu {
        width: 95vw !important;
        max-width: 350px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
}

/* Styles pour les modales "Mes Patinoires" et "Mes Déplacements" */
.rinks-modal, .moves-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.rinks-modal.active, .moves-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.rinks-modal .modal-content, .moves-modal .modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Conteneurs spécifiques dans les modales */
.rinks-modal #rinks-checkbox-container {
    max-height: 300px;
    overflow-y: auto;
}

.moves-modal #header-moves-list-container {
    max-height: 250px;
    overflow-y: auto;
}

/* ✅ SOLUTION SPÉCIFIQUE POUR LA MODALE MES DÉPLACEMENTS */
#moves-modal .modal-content {
  max-width: 800px !important;
  max-height: 95vh !important;
  width: 95% !important;
  padding: 2.5rem !important;
}

/* ✅ Container de la liste des déplacements plus grand */
#moves-modal #moves-modal-list-container {
  max-height: 400px !important;
  overflow-y: auto !important;
  margin-bottom: 1rem !important;
}

/* ✅ Formulaire plus spacieux */
#moves-modal form {
  margin-top: 2rem !important;
}

/* ✅ Responsive pour mobile */
@media (max-width: 768px) {
  #moves-modal .modal-content {
    max-width: 95vw !important;
    width: 95% !important;
    padding: 1.5rem !important;
  }
}

/* ✅ AGRANDIR LA MODALE "MES PATINOIRES" */
#rinks-modal .modal-content {
  max-width: 800px !important;
  max-height: 95vh !important;
  width: 95% !important;
  padding: 2.5rem !important;
}

/* ✅ Container des checkboxes plus grand */
#rinks-modal #rinks-checkbox-container {
  max-height: 400px !important;
  overflow-y: auto !important;
  margin-bottom: 1rem !important;
}

/* ✅ Espacement du formulaire */
#rinks-modal form {
  margin-top: 2rem !important;
}

/* ✅ Responsive pour mobile */
@media (max-width: 768px) {
  #rinks-modal .modal-content {
    max-width: 95vw !important;
    width: 95% !important;
    padding: 1.5rem !important;
  }
}

/* ✅ AGRANDIR LA MODALE "MON COMPTE" */
#account-settings-modal .modal-content {
  max-width: 800px !important;
  max-height: 95vh !important;
  width: 95% !important;
  padding: 2.5rem !important;
  overflow-y: auto !important;
}

/* ✅ Améliorer l'espacement du formulaire */
#account-settings-modal form {
  margin-top: 1.5rem !important;
}

/* ✅ Espacement des champs du formulaire */
#account-settings-modal .space-y-4 > * + * {
  margin-top: 1.5rem !important;
}

/* ✅ Responsive pour mobile */
@media (max-width: 768px) {
  #account-settings-modal .modal-content {
    max-width: 95vw !important;
    width: 95% !important;
    padding: 1.5rem !important;
  }
}

/* ✅ STYLE PILLS MODERNE - THÈME BLEU CORRIGÉ */

#rinks-modal input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  outline: none;
}

/* ✅ CORRECTION DU BUG : Survol avec z-index élevé */
#rinks-modal input[type="checkbox"]:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  z-index: 10; /* ← Corrige le bug de superposition */
  position: relative;
}

/* ✅ État coché - Thème bleu */
#rinks-modal input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
  z-index: 2;
}

/* ✅ Point central blanc */
#rinks-modal input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: dotPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 3;
}

/* ✅ Animation du point central */
@keyframes dotPop {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ✅ Style des labels - Pills avec thème bleu */
#rinks-modal label {
  display: flex !important;
  align-items: center !important;
  padding: 10px 16px !important;
  margin: 4px 0 !important;
  border-radius: 25px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
}

/* ✅ Survol des labels - Thème bleu */
#rinks-modal label:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ✅ Style du texte quand coché */
#rinks-modal input[type="checkbox"]:checked + span {
  color: #3b82f6 !important;
  font-weight: 600 !important;
}

/* ✅ Style du texte des patinoires */
#rinks-modal label span {
  font-size: 14px !important;
  color: #374151 !important;
  transition: all 0.2s ease !important;
}

/* ✅ Focus pour l'accessibilité */
#rinks-modal input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
  z-index: 5 !important;
}

/* ✅ NOUVEAU CSS POUR LA CHECKLIST DYNAMIQUE */

/* Animation d'apparition des items */

/* Items visitées */

/* Cercle de validation */
.check-circle-dynamic {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-circle-dynamic:hover {
    transform: scale(1.05);
}

/* Badge de points */

/* Animation des points gagnés */
@keyframes pointsEarned {
    0% { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.5) translateY(-20px); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1) translateY(-40px); 
        opacity: 0; 
    }
}

/* Indicateur de distance */
.distance-indicator {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Compteur de points animé */
.updated {
    animation: pointsUpdate 0.8s ease-out;
}

@keyframes pointsUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #f59e0b; }
    100% { transform: scale(1); }
}

/* Styles pour le sélecteur de ville */
.city-btn {
    transition: all 0.2s ease;
}

.city-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Responsive */
@media (max-width: 768px) {

    .check-circle-dynamic {
        margin-right: 1rem;
    }
    
    .city-btn {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

/* ✅ ANIMATION OPTIMISÉE CHECKLIST DYNAMIQUE */

/* Animation des points encore plus rapide */
@keyframes pointsEarned {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) translateY(-15px);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
}

/* Cercle de validation ultra-fluide */
.check-circle-dynamic {
    transition: all 0.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.check-circle-dynamic:active {
    transform: scale(0.95);
}

/* ✅ STYLES POUR LES SECTIONS SÉPARÉES */
.section-header {
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    margin: 2rem 0;
}

/* Animation spéciale pour les sections */
.section-appear {
    animation: sectionFadeIn 0.6s ease-out;
}

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

/* Badge de compteur */
.section-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.section-badge.visited {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* ✨ AJOUTER À LA FIN DE main.css */

/* Animations niveau up */
@keyframes levelUpScale {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(-10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Amélioration barre de progression */

/* Animation points mise à jour */
.updated {
    animation: pointsUpdate 0.8s ease-out;
}

@keyframes pointsUpdate {
    0% { transform: scale(1); color: inherit; }
    50% { transform: scale(1.2); color: #f59e0b; }
    100% { transform: scale(1); color: inherit; }
}

/* Animation points gagnés */
@keyframes pointsEarned {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) translateY(-15px);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
}

/* ✨ AJOUTER À LA FIN DE main.css */

/* Animations niveau up */
@keyframes levelUpScale {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(-10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Animation points gagnés */
@keyframes pointsEarned {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) translateY(-15px);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
}

/* ✨ LAYOUT MODIFIÉ DU BOUTON DE NIVEAU */

/* Conteneur pour logo + nom du niveau (côté gauche) */

/* Conteneur pour barre de progression + score (côté droit) */
.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* Barre de progression */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Score en dessous de la barre (côté gauche) */
.progress-text {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 640px) {

  .progress-text {
    font-size: 13px;
  }
}

/* ✨ HEADER RÉORGANISÉ - SUPPRIME LE STREAK ET HARMONISE TOUT */

/* Container principal du header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

/* Section logo */
.logo-section {
  display: flex;
  align-items: center;
}

/* Groupe de boutons harmonisés */
.header-buttons-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ✨ BOUTON DE NIVEAU COMPACT */

/* Logo + nom du niveau (gauche) */

/* Container pour barre + score (droite) */
.progress-container-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* ✅ BARRE DE PROGRESSION RÉDUITE DE 50% */
.progress-bar-container-compact {
  width: 50%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-container-compact .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

/* ✅ SCORE CENTRÉ EN DESSOUS */
.progress-text-centered {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  display: block;
  width: 100%;
}

/* Conteneur pour les boutons dynamiques */
.dynamic-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Style uniforme pour tous les boutons du header */
.header-btn {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

/* Bouton notifications */
.notification-btn {
  width: 48px;
  min-width: 48px;
  position: relative;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border: none;
}

/* ✅ BOUTON PROFIL CORRIGÉ */
.profile-btn {
  width: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  font-weight: bold;
  font-size: 18px; /* ← CORRIGÉ : font-size au lieu de text-lg */
  border: none;
}

/* Badge de notification */
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Hover effects */
.header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

/* ✅ SUPPRIMER LE BOUTON STREAK */
.streak-badge,
.hidden.md\:flex .streak-fire {
  display: none !important;
}

/* Modification de la fonction JS pour utiliser le nouveau conteneur */
.dynamic-buttons .ice-button {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

/* groupe de boutons dynamiques */
.header-buttons{
  display:flex;
  align-items:center;
  gap:0.75rem;          /* espace constant → plus de chevauchement */
}

/* les ice-button du header */
.header-buttons .ice-button{
  height:48px;
  padding:0 16px;
  border-radius:12px;
  font-weight:600;
  font-size:14px;
  background:linear-gradient(135deg,#3b82f6 0%,#60a5fa 100%);
  color:#fff;
  box-shadow:0 2px 8px rgba(59,130,246,.15);
  transition:all .2s;
}
.header-buttons .ice-button:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 15px rgba(59,130,246,.25);
}

/* ✨ BOUTON POINTS JAUNE */

/* Icône étoile */
.points-icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Conteneur texte */
.points-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* Label "Points" */
.points-label {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Valeur des points */
.points-value {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Animation quand les points changent */
.points-updated {
    animation: pointsGlow 1s ease-out;
}

@keyframes pointsGlow {
    0% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    }
}

/* Responsive */
@media (max-width: 640px) {

    .points-icon {
        font-size: 18px;
    }
    
    .points-value {
        font-size: 13px;
    }
}

#header-rinks-button:hover {
  box-shadow: 0 0 8px 3px rgba(59, 130, 246, 0.5);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

/* Ajouts pour la géolocalisation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Styles pour les suggestions d'adresse */
#address-suggestions {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #e5e7eb;
}

.address-suggestion:hover {
    background-color: #eff6ff;
}

/* Modal pour la géolocalisation */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

/* Popup CheckIce personnalisé */
.checkice-popup .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Inter', sans-serif;
    padding: 0;
}

.checkice-popup .leaflet-popup-content {
    margin: 0;
    min-width: 320px;
}

.checkice-popup .leaflet-popup-tip {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkice-popup-content {
    padding: 20px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #f1f5f9;
    flex: 1;
    margin-right: 12px;
}

.popup-status {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-info {
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.info-label {
    font-weight: 600;
    color: #cbd5e1;
    min-width: 70px;
}

.info-value {
    color: #f1f5f9;
}

.info-link {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.info-link:hover {
    color: #93c5fd;
}

.popup-reviews {
    margin: 16px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reviews-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fbbf24;
}

.reviews-loading {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    padding: 8px;
}

.reviews-content {
    font-size: 13px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 14px;
}

.star.empty {
    color: #374151;
}

.review-text {
    color: #e2e8f0;
    line-height: 1.4;
    margin-bottom: 8px;
}

.review-author {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}

.popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.directions-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.directions-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.review-btn {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.review-btn:hover {
    background: linear-gradient(135deg, #059669, #065f46);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-icon {
    font-size: 16px;
}

/* Modal d'avis */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.review-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px 0;
}

.modal-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.rating-section {
    margin-bottom: 20px;
    text-align: center;
}

.rating-label {
    display: block;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.star-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.star-btn:hover,
.star-btn.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.comment-section {
    margin-bottom: 20px;
}

.comment-label {
    display: block;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #f1f5f9;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.comment-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.comment-input::placeholder {
    color: #64748b;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #059669, #065f46);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === POPUP COMPACT CHECKICE === */
.checkice-compact-popup .leaflet-popup-content-wrapper {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,249,255,0.95) 100%);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(59,130,246,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0;
  font-family: Inter, sans-serif;
}

.checkice-compact-popup .leaflet-popup-tip {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.3);
}

.checkice-compact-popup .leaflet-popup-close-button {
  color: #6b7280;
  font-size: 18px;
  font-weight: bold;
  padding: 8px;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59,130,246,0.1);
}

.checkice-compact-popup .leaflet-popup-close-button:hover {
  color: #374151;
  background: rgba(59,130,246,0.1);
  transform: scale(1.05);
}

/* Contenu du popup compact */
.compact-popup-card {
  padding: 16px;
  min-width: 280px;
  max-width: 320px;
}

.compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.compact-title {
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
  margin: 0;
  flex: 1;
  margin-right: 8px;
}

.compact-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.compact-status.open {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #059669;
  border: 1px solid rgba(5,150,105,0.2);
}

.compact-status.closed {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border: 1px solid rgba(220,38,38,0.2);
}

.compact-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #475569;
  margin: 8px 0;
}

.compact-icon {
  width: 18px;
  text-align: center;
  color: #3b82f6;
  font-size: 14px;
}

.compact-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
}

.compact-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(59,130,246,0.1);
}

.compact-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.compact-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

/* Modale fiche complète */
.rink-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.rink-details-modal.active {
  opacity: 1;
  visibility: visible;
}

.rink-details-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,249,255,0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(59,130,246,0.3);
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.rink-details-modal.active .rink-details-content {
  transform: scale(1);
}

.rink-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(59,130,246,0.1);
}

.rink-details-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  flex: 1;
  margin-right: 16px;
}

.rink-details-close {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.rink-details-close:hover {
  background: rgba(59,130,246,0.1);
  color: #374151;
  transform: scale(1.05);
}

.rink-details-info {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.rink-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.rink-info-icon {
  font-size: 16px;
  color: #3b82f6;
  width: 20px;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.rink-info-label {
  font-weight: 600;
  color: #374151;
  min-width: 80px;
  flex-shrink: 0;
}

.rink-info-value {
  color: #1f2937;
  flex: 1;
}

.rink-info-link {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rink-info-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.rink-details-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(59,130,246,0.1);
}

.rink-action-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rink-action-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.rink-action-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

.rink-action-secondary {
  background: transparent;
  border: 2px solid #3b82f6;
  color: #3b82f6;
}

.rink-action-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .compact-popup-card {
    min-width: 260px;
    max-width: 280px;
    padding: 14px;
  }

  .rink-details-content {
    margin: 20px;
    max-height: 85vh;
    padding: 20px;
  }

  .rink-details-actions {
    flex-direction: column;
  }
}

/* Ajustement pour le header compact sans statut */
.compact-header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changé de space-between à flex-start */
    margin-bottom: 12px;
}

.compact-title {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
    margin: 0;
    width: 100%; /* Prend toute la largeur */
}

/* Section avis dans la fiche complète */
.rink-reviews-section {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.02) 0%, rgba(147,197,253,0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59,130,246,0.08);
}

.rink-reviews-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
}

/* Style des cartes d'avis individuels */
.rink-reviews-section > div > div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rink-reviews-section > div > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

/* ✅ STYLES RÉSEAU SOCIAL */

/* Résultats de recherche */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

/* Badge de rang */
.ranking-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  min-width: 40px;
}

/* Animations pour les boutons d'action */
.action-btn {
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: scale(1.1);
}

/* Indicateurs de statut en ligne */
.friend-status-online {
  background: linear-gradient(45deg, #22c55e, #16a34a);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.friend-status-offline {
  background: #6b7280;
}

/* Cards de demandes d'amis */
.friend-ranking-item {
  transition: all 0.3s ease;
}

.friend-ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Bordures spéciales pour le podium */
.border-yellow-400 {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.border-gray-400 {
  border-color: #9ca3af;
  box-shadow: 0 0 20px rgba(156, 163, 175, 0.3);
}

.border-amber-500 {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Animation du compteur de demandes */
#requests-count {
  animation: pulse 2s infinite;
}

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

/* Responsive pour mobile */
@media (max-width: 640px) {
  .friend-ranking-item .flex {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .friend-ranking-item .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .search-results {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 50vh;
    border-radius: 20px 20px 0 0;
  }
}

/* ✅ STYLES RÉSEAU SOCIAL */
.friends-search-container {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.search-results.hidden {
  display: none;
}

#friend-count, #online-count, #requests-count {
  transition: all 0.3s ease;
}

#requests-count:not(.hidden) {
  animation: pulse 2s infinite;
}

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

/* Responsive pour mobile */
@media (max-width: 640px) {
  .friends-search-container .search-results {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 50vh;
    border-radius: 20px 20px 0 0;
  }
}

    /* 🔧 FIX RECHERCHE VS PROFIL */
    .search-results {
      z-index: 1000 !important;
    }

    .profile-modal {
      z-index: 99999 !important;
    }

    .profile-content {
      position: relative !important;
      z-index: 1 !important;
    }

    /* Empêcher les interactions en arrière-plan */
    .profile-modal {
      pointer-events: auto !important;
    }

    .profile-modal * {
      pointer-events: auto !important;
    }

    /* Cache absolument tout derrière */
    .profile-modal::backdrop {
      background: rgba(0, 0, 0, 0.8);
    }
    
    /* ✅ ANIMATIONS ET MODALS */
    .profile-modal, .ranking-modal {
      backdrop-filter: blur(8px);
      animation: fadeIn 0.3s ease-out;
    }

    .profile-content, .ranking-content {
      position: relative;
      transform: scale(0.95);
      transition: transform 0.3s ease-out;
      max-width: min(90vw, 500px);
      max-height: min(85vh, 600px);
      margin: auto;
    }

    @keyframes fadeIn {
      from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
      }
      to { 
        opacity: 1; 
        backdrop-filter: blur(8px);
      }
    }

    body.modal-open {
      overflow: hidden !important;
      position: fixed !important;
      width: 100% !important;
    }

    /* Corrections et améliorations CSS */

/* Empêcher le scroll quand une modale est ouverte */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Améliorer les transitions des modales */
.modal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.modal.active {
    backdrop-filter: blur(8px);
}

.modal-content {
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Optimisation des notifications */
.notification {
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

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

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

/* Amélioration des boutons header */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optimisation pour mobile */
@media (max-width: 640px) {

    .header-buttons {
        gap: 0.5rem;
    }
    
    .header-btn {
        font-size: 13px;
        padding: 0 12px;
    }
}

/* Correction du z-index des éléments */
.profile-menu {
    z-index: 10000 !important;
}

.notification {
    z-index: 10001 !important;
}

/* Amélioration des checkboxes dans les modales */
.modal input[type="checkbox"] {
    position: relative;
    z-index: 1;
}

.modal input[type="checkbox"]:hover {
    z-index: 2;
}

.modal label:hover {
    z-index: 3;
}

/* ===== SYSTÈME SOCIAL CHECKICE - DESIGN HARMONISÉ ===== */

/* Section de recherche */
.search-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

.search-icon-container svg {
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* Résultats de recherche */
.search-results {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 400px;
    overflow-y: auto;
}

.user-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

/* Section demandes */
.requests-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

.notification-icon svg {
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.request-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.request-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

/* Badge de notification */
.notification-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: pulse 2s infinite;
}

/* Section classement */
.friends-ranking {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

.trophy-icon svg {
    filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.4));
}

.friend-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.friend-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

/* Badges de rang */
.ranking-badge {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* États vides */
.empty-state {
    opacity: 0.8;
}

.empty-state:hover {
    opacity: 1;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Badge de statistiques */
.stats-badge {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    to {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .friend-card .flex,
    .request-card .flex,
    .user-card .flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .friend-card .flex > div:last-child,
    .request-card .flex > div:last-child {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* ===== SYSTÈME SOCIAL MODERNE PROFESSIONNEL ===== */

/* Header statistiques */
.social-header {
    margin-bottom: 2rem;
}

.social-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon.online-indicator {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Recherche moderne */
.modern-search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-search-input {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 0 60px 0 52px;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.search-loading {
    position: absolute;
    right: 18px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Résultats de recherche */
.modern-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.empty-search {
    padding: 3rem;
    text-align: center;
}

.empty-search .empty-icon {
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Onglets modernes */
.modern-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    display: flex;
    align-items: center;
}

.tab-badge {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

/* Contenu des onglets */
.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Conteneur de liste moderne */
.modern-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cartes utilisateur modernes */
.modern-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.request-card {
    border-left: 4px solid #667eea;
}

.friend-card {
    position: relative;
}

.friend-rank {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Avatar utilisateur */
.user-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.user-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border: 3px solid white;
    border-radius: 50%;
    background: #d1d5db;
}

.user-status.online {
    background: #10b981;
    animation: pulse 2s infinite;
}

.request-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Informations utilisateur */
.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.user-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.user-level,
.user-points {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 8px;
}

.user-level {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.user-points {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.user-status-text,
.request-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Actions */
.request-actions,
.friend-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.modern-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.modern-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.modern-action-btn.accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.modern-action-btn.decline {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.modern-action-btn.small {
    padding: 0.5rem;
    min-width: 40px;
}

/* États vides */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state .empty-icon {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
    .modern-user-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
    
    .request-actions,
    .friend-actions {
        justify-content: center;
    }
    
    .social-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .modern-tabs {
        flex-direction: column;
        gap: 4px;
    }
}

/* ===== SYSTÈME SOCIAL MODERNE - THÈME BLEU ===== */

/* Icônes statistiques bleues */
.stat-icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.stat-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Boutons d'action bleus */
.modern-action-btn-blue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.modern-action-btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.modern-action-btn-blue.accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.modern-action-btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

.modern-action-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.4);
}

.modern-action-btn-small-blue {
    padding: 0.5rem;
    min-width: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-action-btn-small-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* Indicateur de demande bleu */
.request-indicator-blue {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Rang ami bleu */
.friend-rank-blue {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Onglets bleus */
.modern-tabs .tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Spinner de chargement bleu */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Focus input bleu */
.modern-search-input:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Badge de notification bleu */
.tab-badge {
    background: #3b82f6 !important;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

/* ===== SYSTÈME SOCIAL MODERNE - THÈME BLEU ===== */
.stat-icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}
.stat-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}
.modern-action-btn-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modern-action-btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}
.modern-action-btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modern-action-btn-small-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.request-indicator-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    position: absolute;
    top: -4px;
    right: -4px;
    animation: pulse 2s infinite;
}
.friend-rank-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: absolute;
    top: -8px;
    left: -8px;
}
.modern-tabs .tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
.tab-badge {
    background: #3b82f6 !important;
}
.loading-spinner {
    border-top: 2px solid #3b82f6;
}
.modern-search-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Classement global */
.global-user-card {
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.global-rank {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 50px;
    text-align: center;
    font-size: 0.875rem;
}

.top-rank {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.current-user-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-item {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Coming Soon State */
.coming-soon-state {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon-icon {
    position: relative;
    display: inline-block;
}

.icon-circle {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.icon-sparkle {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.feature-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    text-align: left;
}

.preview-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.preview-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.preview-text p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.badge-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(0.9); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
    .feature-preview {
        gap: 0.75rem;
    }
    
    .preview-item {
        padding: 0.75rem;
    }
}

/* Classement global */
.global-user-card {
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.global-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.global-rank {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 50px;
    text-align: center;
    font-size: 0.875rem;
}

.top-rank {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.user-points-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.current-user-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

@keyframes glow {
    from { box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3); }
    to { box-shadow: 0 8px 24px rgba(251, 191, 36, 0.5); }
}

/* Notifications sans boucle infinie */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification.info .notification-icon {
    color: #3b82f6;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #374151;
}

/* CHAT AMIS - STYLES INSPIRÉS DU SYSTÈME TICKETS */
.friends-chat-modal {
    backdrop-filter: blur(8px);
}

.friends-chat-modal .frost-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#chat-messages-container::-webkit-scrollbar {
    width: 6px;
}

#chat-messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#chat-messages-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.max-h-90vh {
    max-height: 90vh;
}

/* Animation messages */
#chat-messages-container > div {
    animation: slideInUp 0.3s ease-out;
}

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

/* ========================================
   📢 CANAUX D'ÉVÉNEMENTS
======================================== */

.channel-card {
    transition: all 0.3s ease;
    border-left: 4px solid #3b82f6;
}

.channel-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.message-card {
    animation: slideIn 0.3s ease-out;
}

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

#channel-messages-container {
    scroll-behavior: smooth;
}

#channel-messages-container::-webkit-scrollbar {
    width: 8px;
}

#channel-messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#channel-messages-container::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

#channel-messages-container::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

#broadcast-channel-section {
    animation: fadeInUp 0.4s ease-out;
}

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

/* Suggestions de recherche principale */

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ========================================
   BARRE DE RECHERCHE MODERNE - STYLE CHECKICE
   ======================================== */

/* Container principal des suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    margin-top: 0;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
    
    /* Masqué par défaut */
    display: none !important;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* État actif avec animation fluide */
.search-suggestions.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
}

/* Chaque suggestion - design moderne */
.search-suggestions > div {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.search-suggestions > div:last-child {
    border-bottom: none;
}

/* Effet hover élégant */
.search-suggestions > div:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 197, 253, 0.12) 100%) !important;
    transform: translateX(4px);
    padding-left: 24px;
}

/* Icône patinoire - gradient moderne */
.search-suggestions .ice-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Noms de patinoires - typographie élégante */
.search-suggestions h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Informations secondaires */
.search-suggestions .text-gray-600 {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.search-suggestions .text-gray-500 {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
}

/* Icônes SVG - couleur harmonisée */
.search-suggestions svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.search-suggestions > div:hover svg {
    transform: scale(1.1);
}

/* Flèche de navigation */
.search-suggestions .text-blue-500 {
    color: #3b82f6;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.search-suggestions > div:hover .text-blue-500 {
    opacity: 1;
    transform: translateX(4px);
}

/* Scrollbar personnalisée */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 10px;
    margin: 8px 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 100%);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #94a3b8 100%);
}

/* Message "Aucune patinoire trouvée" */
.search-suggestions .text-center {
    padding: 32px 20px;
}

.search-suggestions .text-center p {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
}

/* Animation d'entrée pour chaque suggestion */
.search-suggestions.active > div {
    animation: slideInSuggestion 0.3s ease forwards;
    opacity: 0;
}

.search-suggestions.active > div:nth-child(1) { animation-delay: 0.05s; }
.search-suggestions.active > div:nth-child(2) { animation-delay: 0.08s; }
.search-suggestions.active > div:nth-child(3) { animation-delay: 0.11s; }
.search-suggestions.active > div:nth-child(4) { animation-delay: 0.14s; }
.search-suggestions.active > div:nth-child(5) { animation-delay: 0.17s; }

@keyframes slideInSuggestion {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge horaires - style amélioré */
.search-suggestions .line-clamp-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

/* Responsive design */
@media (max-width: 640px) {
    .search-suggestions {
        border-radius: 16px;
        max-height: 360px;
    }
    
    .search-suggestions > div {
        padding: 14px 16px;
    }
    
    .search-suggestions h4 {
        font-size: 15px;
    }
    
    .search-suggestions .text-gray-600 {
        font-size: 13px;
    }
    
    .search-suggestions .text-gray-500 {
        font-size: 12px;
    }
    
    .search-suggestions .line-clamp-1 {
        max-width: 200px;
    }
}

/* Amélioration de la barre de recherche elle-même */
#search-input {
    transition: all 0.3s ease;
}

#search-input:focus {
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 8px 32px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   🏠 BOUTON HOME - STYLE CHECKICE
   ======================================== */

#header-home-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header-home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

#header-home-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

#header-home-button svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Container pour les boutons dynamiques */
.dynamic-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}


/* ========================================
   BOUTON FLOTTANT - ACTIONS RAPIDES
   ======================================== */

.floating-action button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* ✅ CENTRAGE PARFAIT */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Supprimer tout padding */
}

.floating-action button svg {
  width: 28px;
  height: 28px;
  color: white;
  /* ✅ Assurer que le SVG lui-même est centré */
  display: block;
  margin: 0;
}

.floating-action button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px) rotate(90deg);
}

.floating-action button:active {
  transform: translateY(0) scale(0.95);
}

/* ========================================
   MODALE DE SAISIE PERSONNALISÉE
   ======================================== */

.custom-prompt-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.custom-prompt-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-prompt-input::placeholder {
  color: #94a3b8;
}


/* ========================================
   RESPONSIVE MOBILE - VERSION ULTRA SAFE
   ======================================== */

@media (max-width: 640px) {
    
    /* === CONTAINER PRINCIPAL === */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100% !important;
    }

    /* === HEADER === */
    .header-container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem;
        padding: 1rem;
    }

    .logo-section {
        justify-content: flex-start !important;
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .logo-section .w-12 {
        width: 2.5rem;
        height: 2.5rem;
    }

    .logo-section span {
        font-size: 1.5rem !important;
    }

    .header-buttons-group {
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
        flex: 0 0 auto;
    }

    .header-btn {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* === BARRE DE RECHERCHE === */
    .search-bar {
        padding: 0.875rem 3rem 0.875rem 3rem !important;
        font-size: 0.9375rem !important;
    }

    /* === ONGLETS NAVIGATION - CIBLAGE STRICT === */
    /* Cibler UNIQUEMENT le parent direct des tab-button */
    .flex.justify-between.mb-8 > .tab-button {
        flex: 0 0 calc(25% - 0.375rem);
        aspect-ratio: 1 / 1;
        padding: 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 1rem;
    }

    .flex.justify-between.mb-8 > .tab-button svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
        margin: 0 !important;
    }

    .flex.justify-between.mb-8 > .tab-button span {
        display: none !important;
    }

    .flex.justify-between.mb-8 > .tab-button span.text-2xl {
        display: inline-block !important;
        font-size: 1.5rem !important;
    }

    /* === CARTE === */
    #mapdiv {
        height: 300px !important;
        border-radius: 1rem;
    }

    /* === ÉVÉNEMENTS === */
    .frost-effect {
        padding: 1rem !important;
    }

    .frost-effect h2,
    .frost-effect h3 {
        font-size: 1.125rem;
    }

    .frost-effect p {
        font-size: 0.875rem;
    }

    .card-hover {
        margin-bottom: 1rem;
    }

    .card-hover h3 {
        font-size: 1rem;
    }

    .ice-button {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
    }

    /* === ESPACEMENTS === */
    .mb-8 {
        margin-bottom: 1.5rem;
    }

    .p-6 {
        padding: 1rem;
    }

    /* === TEXTE === */
    .text-2xl {
        font-size: 1.25rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    /* === PERFORMANCE === */
    .frost-effect {
        backdrop-filter: blur(10px) !important;
    }

    .ice-shadow {
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1) !important;
    }
}

@media (max-width: 375px) {
    
    .flex.justify-between.mb-8 > .tab-button {
        padding: 0.5rem !important;
    }

    .flex.justify-between.mb-8 > .tab-button svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    .logo-section span {
        font-size: 1.25rem !important;
    }

    #mapdiv {
        height: 250px !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    
    button,
    a,
    .tab-button,
    .action-btn {
        min-height: 44px;
        min-width: 44px;
    }

    button:active,
    .tab-button:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

@media (min-width: 641px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(59, 130, 246, 0.05);
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(59, 130, 246, 0.3);
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(59, 130, 246, 0.5);
    }
}


/* Overlay de recherche (structure uniquement) */
.modern-search-results {
  position: absolute;
  z-index: 9999;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: none;
}
.modern-search-results.open { display: block; }

/* Variante portail (affiché sous l'input, en dehors du flux) */
#search-results-portal.modern-search-results {
  position: fixed;
  z-index: 2147483647;
  margin-top: 8px;
}

/* Bouton compact bleu (même look dans la liste et dans l'overlay) */
.modern-action-btn-small-blue,
#search-results-portal .modern-action-btn-small-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(59,130,246,.25);
}

/* Hover sans inversion en blanc */
.modern-action-btn-small-blue:hover,
#search-results-portal .modern-action-btn-small-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,.35);
}

/* Icône du bouton: suit la couleur du texte (blanc) */
.modern-action-btn-small-blue svg,
#search-results-portal .modern-action-btn-small-blue svg {
  stroke: currentColor;
}

/* État normal (déjà posé chez toi) */
.modern-action-btn-small-blue,
#search-results-portal .modern-action-btn-small-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 16px rgba(29,78,216,.28);
}

/* Hover plus foncé (pas plus clair) */
.modern-action-btn-small-blue:hover,
#search-results-portal .modern-action-btn-small-blue:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%); /* densifie le bleu */
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29,78,216,.38);
}

/* Active/focus pour cohérence d’accessibilité */
.modern-action-btn-small-blue:active,
#search-results-portal .modern-action-btn-small-blue:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(29,78,216,.30);
}
.modern-action-btn-small-blue:focus-visible,
#search-results-portal .modern-action-btn-small-blue:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Icône suit la couleur du texte */
.modern-action-btn-small-blue svg,
#search-results-portal .modern-action-btn-small-blue svg {
  stroke: currentColor;
}


/* Portail: toujours au-dessus */
#search-results-portal.modern-search-results {
  position: fixed;
  z-index: 2147483647; /* au-dessus des badges/rangs */
  margin-top: 8px;
}

/* Le conteneur local reste un fallback, pas affiché quand le portail est présent */
.modern-search-results { z-index: 9999; }


/* Modale de profil utilisateur: au-dessus du menu de recherche */
.rink-details-modal {
  z-index: 999999 !important;  /* supérieur à 99999 du menu */
}
