/* ****** Partie 1 Déclencheur (Trigger) ******** */
.furzo-search-trigger {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    justify-content: flex-start;
}

.furzo-search-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.furzo-search-icon {
    font-size: 1.3rem;
    margin-right: 12px;
}

.furzo-search-text {
    font-size: 1rem;
    color: inherit;
    opacity: 0.8;
}

/* Optimisation Mobile : Uniquement l'icône sur petits écrans (smartphones) */
@media (max-width: 480px) {
    .furzo-search-trigger {
        width: auto;
        padding: 10px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    .furzo-search-text {
        display: none;
    }
    .furzo-search-icon {
        margin-right: 0;
        font-size: 1.4rem;
    }
}

/* ****** Partie 2 Modale & Glassmorphism ******** */
.furzo-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.furzo-search-overlay.fso-active {
    opacity: 1;
}

.fso-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.fso-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: rgba(25, 25, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    padding: 30px;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.furzo-search-overlay.fso-active .fso-content {
    transform: translateY(0);
}

/* ****** Partie 3 Header & Input ******** */
.fso-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.fso-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.fso-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.fso-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.fso-close:hover {
    color: #ff5e5e;
}

/* ****** Partie 4 Suggestions & Résultats ******** */
.fso-suggestions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.fso-suggestions span {
    color: rgba(255, 255, 255, 0.4);
}

.fso-suggestions a {
    color: #64b5f6;
    text-decoration: none;
    background: rgba(100, 181, 246, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    transition: background 0.2s;
}

.fso-suggestions a:hover {
    background: rgba(100, 181, 246, 0.2);
}

.fso-results {
    margin-top: 25px;
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fso-results::-webkit-scrollbar { width: 6px; }
.fso-results::-webkit-scrollbar-track { background: transparent; }
.fso-results::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

.fso-initial-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding: 40px 0;
}

.fso-icon-big {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

/* ****** Partie 5 Design des Cartes Produits ******** */
.fso-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.fso-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fso-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.fso-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fso-item-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.fso-item-artist {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.fso-item-price {
    color: #ff9800;
    font-weight: bold;
}

/* ****** Partie 6 Loader ******** */
.fso-loader {
    text-align: center;
    padding: 20px;
}
.fso-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: #ff9800;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
