/* ------------------------------
   PANNEAU LATÉRAL
------------------------------ */

.fpw-panel {
    position: fixed;
    top: 0;
    left: -600px;
    width: 600px;
    height: 100vh;
    background: #111;
    color: #fff;
    padding: 30px;
    transition: left 0.35s ease;
    z-index: 99999;
    overflow-y: auto;
}

.fpw-panel.fpw-open {
    left: 0;
}

.fpw-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpw-panel-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.fpw-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}


/* ------------------------------
   OVERLAY
------------------------------ */

.fpw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99998;
}

.fpw-overlay.fpw-visible {
    opacity: 1;
    pointer-events: auto;
}


/* ------------------------------
   CHAMPS / SLIDERS
------------------------------ */

.fpw-field {
    margin-bottom: 30px;
}

.fpw-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.fpw-field select,
.fpw-field input[type="range"] {
    width: 100%;
}

/* TRACK gris clair (Chrome / Safari) */
.fpw-field input[type="range"]::-webkit-slider-runnable-track {
    background: #d9d9d9 !important; /* gris clair premium */
    height: 6px;
    border-radius: 6px;
}

/* TRACK gris clair (Firefox) */
.fpw-field input[type="range"]::-moz-range-track {
    background: #d9d9d9 !important; /* gris clair premium */
    height: 6px;
    border-radius: 6px;
}

/* Neutraliser le bleu par défaut */
.fpw-field input[type="range"] {
    background: transparent !important;
    border: none !important;
}

/* ALIGNEMENT du bouton rond (Chrome / Safari) */
.fpw-field input[type="range"]::-webkit-slider-thumb {
    margin-top: -4px; /* centre parfaitement le thumb */
}

/* ALIGNEMENT du bouton rond (Firefox) */
.fpw-field input[type="range"]::-moz-range-thumb {
    margin-top: -2px; /* Firefox a un offset différent */
}

.fpw-range-value {
    margin-top: 8px;
    font-size: 14px;
}



/* ------------------------------
   BOUTON APPLIQUER
------------------------------ */

.fpw-apply {
    width: 100%;
    padding: 14px;
    background: #1f0;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fpw-apply:hover {
	background: #4a4a4a;
    color: #fff;
    transform: scale(1.03);
}


/* ------------------------------
   LOADER
------------------------------ */

.fpw-loader {
    width: 50px;
    height: 50px;
    border: 4px solid #ffffff30;
    border-top-color: #fff;
    border-radius: 50%;
    margin: 40px auto;
    animation: fpw-spin 0.8s linear infinite;
}

@keyframes fpw-spin {
    to { transform: rotate(360deg); }
}


/* ------------------------------
   CARDS PREMIUM
------------------------------ */

.fpw-results {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

/* 3 colonnes desktop + tablette */
.fpw-card {
    flex: 0 0 calc(33.33% - 30px);
    background: #fff;
    border: 1px solid #ffffff30;
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #000 !important;
}

/* Texte noir forcé dans les cards */
.fpw-card * {
    color: #000 !important;
}

.fpw-card:hover {
    transform: scale(1.03);
}

.fpw-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

.fpw-title {
    margin: 12px 0 6px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.fpw-technique {
    font-size: 14px;
    text-align: center;
    margin-bottom: 6px;
}

/* ------------------------------
   DIMENSIONS
------------------------------ */

.fpw-dimensions {
    font-size: 14px;
    text-align: center;
    margin-bottom: 8px;
    opacity: 0.85;
}

/* ------------------------------
   PRIX
------------------------------ */

.fpw-price {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* ------------------------------
   TITRE DES RÉSULTATS (NOUVEAU)
------------------------------ */


.fpw-results-title {
    text-align: center;
    color: #fff !important;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 35px;
    text-transform: none !important;
    letter-spacing: 1px;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 1024px) {
    .fpw-card {
        flex: 0 0 calc(33.33% - 30px);
    }
}

@media (max-width: 768px) {
    .fpw-card {
        flex: 0 0 100%;
    }

    .fpw-panel {
        left: -100%;
        width: 100%;
        padding: 15px;
        padding-top: 10px;
        height: calc(100vh - 20px);
    }

    .fpw-panel.fpw-open {
        left: 0;
    }

    .fpw-row {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
    }

    .fpw-row .fpw-field {
        flex: 1;
        margin-bottom: 0;
    }

    .fpw-field {
        margin-bottom: 20px;
    }

    .fpw-apply {
        margin-top: 10px;
    }

    .fpw-overlay {
        height: 100vh;
    }
}

@media (min-width: 769px) {
    .fpw-row {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;
    }

    .fpw-row .fpw-field {
        flex: 1;
        margin-bottom: 0;
    }
}
