/* search-bar.css — CSS extrait de search-bar.php (Phase 4) */
    .global-search-container {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 1.2rem;
        /* Desktop: ne pas remonter sous le header */
        margin-top: 0;
    }
     
    .global-search-wrapper {
        display: flex;
        align-items: stretch;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
        position: relative;
        min-height: 48px;
    }
    
    .global-search-type-selector {
        flex-shrink: 0;
        border-right: 1px solid #e2e8f0;
        background: #f8fafc;
    }
    
    .global-search-type-select {
        padding: 0.75rem 0.875rem;
        border: none;
        background: transparent;
        font-size: 0.8125rem;
        font-weight: 700;
        color: #374151;
        cursor: pointer;
        min-width: 80px;
        outline: none;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .global-search-input-container {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
        padding: 0 0.75rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .global-search-icon {
        color: #6b7280;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .global-search-input {
        flex: 1;
        padding: 0.75rem 0;
        border: none;
        background: transparent;
        font-size: 0.9375rem;
        color: #1f2937;
        outline: none;
        font-weight: 500;
        min-width: 0;
        width: 100%;
    }
    
    .global-search-input::placeholder {
        color: #9ca3af;
        font-weight: 400;
    }
    
    .global-search-input[readonly] {
        background-color: #f8fafc;
        color: #374151;
        cursor: default;
    }
    
    .global-search-actions {
        display: flex;
        align-items: stretch;
        border-left: 1px solid #e2e8f0;
        flex-shrink: 0;
        min-width: 48px;
    }
    
    .global-search-btn {
        padding: 0.75rem 0.5rem;
        border: none;
        background: transparent;
        color: #374151;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        min-width: 48px;
        width: 48px;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }
    
    .global-search-btn:hover {
        background: #f3f4f6;
    }
    
    .global-location-btn {
        color: #667eea;
        border-left: 1px solid #e2e8f0;
        transition: all 0.3s ease;
    }
    
    .global-location-btn:hover {
        color: #764ba2;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        transform: scale(1.05);
    }
    

    
    .global-search-reset {
        padding: 0.625rem 0.5rem;
        border: none;
        background: transparent;
        color: #ef4444;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        min-width: 40px;
        border-left: 1px solid #e2e8f0;
        transition: all 0.2s ease;
    }
    
    .global-search-reset:hover {
        background: #fef2f2;
    }
    
    .global-search-reset-inline {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: #f3f4f6;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: none; /* Par défaut masqué */
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1;
        padding: 0;
        transition: background-color 0.2s ease;
        color: #6b7280;
        font-size: 0.875rem;
    }
    
    .global-search-reset-inline:hover {
        background: #e5e7eb;
        color: #374151;
    }
    
    .global-search-reset-inline.show {
        display: flex !important; /* Affiché quand nécessaire */
    }
    
    .global-search-reset-inline i {
        font-size: 0.75rem;
    }
    
    .global-city-suggestions-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        z-index: 99999;
        display: none;
        pointer-events: none;
    }
    
    .global-city-suggestions-content {
        background: white;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        max-height: 400px;
        overflow-y: auto;
        border: 1px solid #e5e7eb;
        pointer-events: auto;
    }
    
    .global-city-suggestion {
        display: flex;
        align-items: center;
        padding: 1rem 1.25rem;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f3f4f6;
        background: white;
    }
    
    .global-city-suggestion:last-child {
        border-bottom: none;
    }
    
    .global-city-suggestion:hover {
        background: #f8fafc;
    }
    
    .global-city-suggestion.active {
        background: #dbeafe;
        color: #1e40af;
    }
    
    .global-city-suggestion-icon {
        margin-right: 1rem;
        color: #3b82f6;
        font-size: 1.125rem;
        width: 24px;
        text-align: center;
    }
    
    .global-city-suggestion-text {
        flex: 1;
    }
    
    .global-city-suggestion-main {
        font-weight: 600;
        color: #1f2937;
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
    }
    
    .global-city-suggestion-secondary {
        font-size: 0.8125rem;
        color: #6b7280;
        font-weight: 500;
    }
    
    .global-location-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        padding: 1rem;
    }
    
    .global-location-modal.active {
        opacity: 1;
        visibility: visible;
    }
    
    .global-location-modal-content {
        background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
        border-radius: 28px;
        padding: 3rem 2.5rem;
        max-width: 460px;
        width: 100%;
        text-align: center;
        transform: scale(0.7) translateY(30px) rotateX(10deg);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 
            0 32px 64px -12px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .global-location-modal.active .global-location-modal-content {
        transform: scale(1) translateY(0) rotateX(0deg);
    }
    
    .global-location-modal-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f59e0b 100%);
        border-radius: 28px 28px 0 0;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .global-location-modal-content::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
        pointer-events: none;
        border-radius: 28px;
    }
    
    .global-location-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2.5rem;
        position: relative;
        z-index: 2;
    }
    
    .global-location-modal-header h3 {
        font-size: 1.75rem;
        font-weight: 800;
        margin: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
    }
    
    .global-location-modal-close {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        border: 1px solid rgba(102, 126, 234, 0.2);
        font-size: 1.25rem;
        color: #667eea;
        cursor: pointer;
        padding: 0.875rem;
        border-radius: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }
    
    .global-location-modal-close:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
        color: #764ba2;
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .global-location-modal-body {
        position: relative;
        margin-bottom: 2.5rem;
        z-index: 2;
    }
    
    .global-location-modal-body::before {
        content: '📍';
        font-size: 4rem;
        display: block;
        margin-bottom: 2rem;
        animation: locationPulse 3s ease-in-out infinite;
        filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    }
    
    @keyframes locationPulse {
        0%, 100% { 
            transform: scale(1) rotate(0deg); 
            opacity: 1; 
        }
        25% { 
            transform: scale(1.15) rotate(5deg); 
            opacity: 0.9; 
        }
        50% { 
            transform: scale(1.1) rotate(-3deg); 
            opacity: 0.8; 
        }
        75% { 
            transform: scale(1.05) rotate(2deg); 
            opacity: 0.95; 
        }
    }
    
    .global-location-modal-body h4 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 1.25rem;
        line-height: 1.3;
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .global-location-modal-body p {
        color: #6b7280;
        line-height: 1.8;
        margin-bottom: 0;
        font-size: 1rem;
        font-weight: 500;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .global-location-modal-footer {
        display: flex;
        gap: 1.25rem;
        justify-content: center;
        margin-top: 2.5rem;
        z-index: 2;
        position: relative;
    }
    
    .global-location-btn-cancel,
    .global-location-btn-activate {
        padding: 1rem 2.25rem;
        border: none;
        border-radius: 16px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: 140px;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }
    
    .global-location-btn-cancel {
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
        color: #374151;
        border: 2px solid rgba(107, 114, 128, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .global-location-btn-activate {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        box-shadow: 
            0 6px 20px rgba(102, 126, 234, 0.4),
            0 2px 8px rgba(118, 75, 162, 0.3);
        border: 2px solid rgba(102, 126, 234, 0.3);
    }
    
    .global-location-btn-cancel:hover {
        background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: rgba(107, 114, 128, 0.3);
    }
    
    .global-location-btn-activate:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 
            0 10px 30px rgba(102, 126, 234, 0.5),
            0 4px 12px rgba(118, 75, 162, 0.4);
        border-color: rgba(102, 126, 234, 0.5);
    }
    
    .global-location-btn-cancel:active,
    .global-location-btn-activate:active {
        transform: translateY(-1px) scale(0.98);
    }
    
    /* Effet de brillance sur les boutons */
    .global-location-btn-activate::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }
    
    .global-location-btn-activate:hover::before {
        left: 100%;
    }
    
    /* Responsive pour mobile */
    @media (max-width: 768px) {
        .global-search-container {
            margin-bottom: 1rem;
            /* Mobile: un peu plus large, avec une petite marge latérale */
            max-width: 100%;
            width: calc(100% - 20px);
            margin-left: auto;
            margin-right: auto;
            /* Mobile: padding-top à 0 (demande) */
            padding-top: 0 !important;
            padding: 0 !important;
        }
        
        .global-search-wrapper {
            flex-direction: row; /* Garder horizontal */
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            height: 40px; /* Hauteur fixe réduite */
            width: 100%;
        }
        
        .global-search-type-selector {
            border-right: 1px solid #e2e8f0;
            border-bottom: none;
            width: auto;
            min-width: 50px; /* Réduire encore plus */
            height: 100%;
        }
        
        .global-search-type-select {
            width: auto;
            text-align: center;
            padding: 0.25rem 0.25rem;
            font-size: 0.7rem;
            min-width: 50px; /* Réduire encore plus */
            height: 100%;
        }
        
        .global-search-input-container {
            padding: 0.25rem 0.5rem;
            flex: 1;
            position: relative;
            height: 100%;
            min-width: 0; /* Permettre la réduction */
        }
        
        .global-search-input {
            padding: 0.25rem 1.5rem 0.25rem 0; /* Espace réduit pour la croix */
            font-size: 0.8rem;
            height: 100%;
            width: 100%;
            min-width: 0;
            flex: 1;
        }
        
        .global-search-actions {
            width: auto;
            border-left: 1px solid #e2e8f0;
            border-top: none;
            flex-shrink: 0;
            display: flex; /* Forcer l'affichage flex */
            height: 100%;
            min-width: 52px;
        }
        
        .global-search-btn,
        .global-search-reset {
            height: 100%;
            font-size: 0.8rem;
            padding: 0.25rem 0.25rem;
            min-width: 52px; /* Largeur fixe pour mobile */
            width: 52px;
            display: flex; /* Forcer l'affichage flex */
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .global-location-btn {
            display: flex !important; /* Forcer l'affichage */
            color: #667eea;
            border-left: 1px solid #e2e8f0;
        }
        

        
        /* Forcer l'affichage du bouton target sur mobile */
        .global-location-btn {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        .global-location-modal {
            padding: 1rem;
        }
        
        .global-location-modal-content {
            padding: 2.5rem 2rem;
            border-radius: 24px;
            max-width: 92%;
            transform: scale(0.8) translateY(20px) rotateX(5deg);
        }
        
        .global-location-modal.active .global-location-modal-content {
            transform: scale(1) translateY(0) rotateX(0deg);
        }
        
        .global-location-modal-header h3 {
            font-size: 1.5rem;
        }
        
        .global-location-modal-close {
            width: 40px;
            height: 40px;
            padding: 0.75rem;
        }
        
        .global-location-modal-body::before {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
        }
        
        .global-location-modal-body h4 {
            font-size: 1.25rem;
        }
        
        .global-location-modal-body p {
            font-size: 0.95rem;
            max-width: 280px;
        }
        
        .global-location-modal-footer {
            flex-direction: column;
            gap: 1rem;
            margin-top: 2rem;
        }
        
        .global-location-btn-cancel,
        .global-location-btn-activate {
            width: 100%;
            padding: 1.125rem 1.5rem;
            font-size: 1rem;
            min-width: auto;
        }
        
        .global-search-reset-inline {
            width: 16px;
            height: 16px;
            right: 0.25rem;
        }
        
        .global-search-reset-inline i {
            font-size: 0.55rem;
        }
        
        /* Masquer le bouton reset externe sur mobile, utiliser seulement l'inline */
        .global-search-reset {
            display: none !important;
        }
        
        .global-search-reset-inline {
            display: none !important; /* Par défaut masqué */
        }
        
        .global-search-reset-inline.show {
            display: flex !important; /* Affiché seulement quand nécessaire */
        }
        
        .global-city-suggestions {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            max-height: 50vh;
            border-radius: 12px;
            z-index: 1001;
        }
        

    }
    
    /* Desktop : utiliser la croix inline pour tous les cas */
    @media (min-width: 769px) {
        .global-search-reset-inline {
            display: none; /* Par défaut masqué */
        }
        
        .global-search-reset-inline.show {
            display: flex !important; /* Affiché quand nécessaire */
        }
        
        .global-search-reset {
            display: none !important; /* Masquer l'externe sur desktop aussi */
        }
    }

    @media (max-width: 480px) {
        .global-search-container {
            padding-top: 0 !important;
            padding: 0 !important;
        }
    }
