/* --- FONTS & BASE --- */
.snz-s-overlay, .snazzy-trigger-wrapper, #snazzy-big-input { font-family: 'Futura PT', 'Futura', sans-serif; }
.snz-s-container { width: 92%; max-width: 1400px; margin: 0 auto; }

/* --- TRIGGER (Bouton loupe dans le header) --- */
.snazzy-trigger-wrapper { cursor: pointer; display: inline-flex; padding: 5px; transition: opacity 0.3s; }
.snazzy-trigger-wrapper:hover { opacity: 0.6; }

/* FIX MOBILE : Dimension Loupe harmonisée avec icone User */
@media screen and (max-width: 768px) {
    .snazzy-trigger-wrapper svg {
        width: 22px; 
        height: 22px;
        stroke-width: 1.2; /* Finesse du trait pour matcher le thème */
    }
    .snazzy-trigger-wrapper {
        padding: 0; /* Enlève le padding pour alignement strict */
        display: flex; 
        align-items: center;
    }
}

/* --- OVERLAY --- */
.snz-s-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: #fff; z-index: 999999; display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto; 
    scroll-behavior: smooth;
}
.snz-s-overlay.active { opacity: 1; visibility: visible; }

/* --- HEADER --- */
.snz-s-header {
    background: #fff; padding: 30px 0; border-bottom: 1px solid #f0f0f0;
    position: sticky; top: 0; z-index: 50;
}
.snz-s-input-group { display: flex; align-items: center; gap: 20px; position: relative; }

#snazzy-big-input {
    flex-grow: 1; border: none; font-size: 32px; font-weight: 400; color: #000;
    outline: none; background: transparent; padding: 0; letter-spacing: 1px;
    text-transform: uppercase;
}
#snazzy-big-input::placeholder { color: #ccc; }

.snz-s-icon { color: #000; display: flex; }

/* --- BOUTON CLEAR (TEXTE "EFFACER") --- */
.snz-s-clear-btn {
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #000; 
    font-size: 11px; /* Petit texte */
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 15px; /* Espace avec la croix de fermeture */
    transition: opacity 0.2s;
    text-decoration: underline; /* Optionnel pour le style lien */
}
.snz-s-clear-btn:hover { opacity: 0.6; }

.snz-s-close-text { 
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    transition: transform 0.3s ease; color: #000;
}
.snz-s-close-text:hover { transform: rotate(90deg); }

/* BOUTON FILTRE MOBILE (NOIR) */
.snz-s-mobile-btn { 
    display: none; 
    background: #000; 
    border: 1px solid #000; 
    color: #fff; 
    padding: 10px 20px; border-radius: 30px; 
    font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 1px;
    align-items: center; cursor: pointer; transition: 0.2s;
}
.snz-s-mobile-btn:hover { background: #333; color: #fff; }

/* --- CORPS --- */
.snz-s-body { flex-grow: 1; padding: 40px 0; background: #fff; }
.snz-s-grid { display: flex; gap: 60px; }

/* --- COLONNE GAUCHE (FILTRES) --- */
.snz-s-col-left { width: 250px; flex-shrink: 0; padding-right: 0; }

.snz-s-block { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.snz-s-block h4 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
    color: #999; margin: 0 0 15px 0; font-weight: 600;
}
.snz-s-list { list-style: none; padding: 0; margin: 0; }
.snz-s-list li { margin-bottom: 8px; }
.snz-s-list a { text-decoration: none; color: #333; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.snz-s-list a:hover { color: #000; text-decoration: underline; }

/* --- ACCORDÉONS --- */
.snz-s-acc-item { border-bottom: 1px solid #f0f0f0; }
.snz-s-acc-head { 
    padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; color: #000; 
    transition: color 0.2s; user-select: none;
}
.snz-s-acc-head:hover { color: #666; }
.snz-s-acc-head .icon { font-size: 18px; font-weight: 300; line-height: 1; }

.snz-s-acc-content { display: none; padding: 0 0 20px 0; }
.snz-s-acc-item.open .snz-s-acc-content { display: block; }

/* CHECKBOX */
.snz-s-chk-group { display: flex; flex-direction: column; gap: 10px; }
.snz-s-check { 
    display: flex; align-items: center; cursor: pointer; font-size: 13px; color: #444; 
    transition: 0.2s; user-select: none;
}
.snz-s-check:hover { color: #000; }
.snz-s-input { display: none; }

.snz-s-check .box { 
    width: 16px; height: 16px; border: 1px solid #ccc; margin-right: 12px; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.2s; flex-shrink: 0; 
}
.snz-s-input:checked + .box { background: #000; border-color: #000; }
.snz-s-input:checked + .box:after { 
    content: ''; width: 4px; height: 8px; border: solid #fff; 
    border-width: 0 1px 1px 0; transform: rotate(45deg); margin-top: -2px; 
}
.snz-s-check .label { text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.snz-s-check .count { color: #aaa; font-size: 10px; margin-left: 2px; }

/* --- COLONNE DROITE (RESULTATS) --- */
.snz-s-col-right { flex-grow: 1; }
.snz-s-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.snz-s-card { display: block; text-decoration: none; color: inherit; }
.snz-s-card:hover .snz-s-card-img img { transform: scale(1.05); }
.snz-s-card-img { 
    aspect-ratio: 1/1; background: #f8f8f8; margin-bottom: 12px; 
    overflow: hidden; position: relative;
}
.snz-s-card-img img { 
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; 
}
.snz-s-card-txt { display: flex; flex-direction: column; }
.snz-s-title { 
    font-size: 11px; text-transform: uppercase; font-weight: 600; 
    color: #000; letter-spacing: 0.5px; margin-bottom: 4px; line-height: 1.4;
}
.snz-s-price { font-size: 11px; color: #555; }
.snz-s-price del { opacity: 0.5; margin-right: 5px; }

.snz-s-empty { 
    grid-column: 1 / -1; text-align: center; color: #999; 
    padding: 60px 0; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}

/* --- MOBILE ELEMENTS --- */
.snz-s-mobile-head, .snz-s-mobile-apply, .snz-s-close-filters { display: none; }

/* =========================================
   MOBILE (Max width 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    .snz-s-container { width: 90%; }
    .snz-s-header { padding: 15px 0; }
    #snazzy-big-input { font-size: 16px; }
    .snz-s-mobile-btn { display: inline-flex; } 
    .snz-s-icon { display: none; }
    
    .snz-s-grid { display: block; }
    
    .snz-s-col-left {
        display: block; position: fixed; top: 0; right: -100%; width: 100%; height: 100%;
        background: #fff; z-index: 100000; padding: 25px; overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .snz-s-col-left.show-mobile { right: 0; }

    .snz-s-mobile-head { 
        display: flex; justify-content: space-between; align-items: center; 
        margin-bottom: 30px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px;
    }
    .snz-s-mobile-head span { font-size: 18px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
    .snz-s-close-filters { display: block; cursor: pointer; }

    .snz-s-mobile-apply {
        display: block; margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0;
    }
    #snazzy-apply-filters {
        width: 100%; background: #000; color: #fff; border: none; padding: 15px;
        text-transform: uppercase; font-weight: 600; font-size: 12px; letter-spacing: 1.5px;
        cursor: pointer;
    }

    .snz-s-res-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
}