@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;400;500;600&display=swap');

/* ── Wrap ── */
.rfp-wrap {
    background: #F3EADC;
    padding: 32px 40px 56px;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: #1E1B16;
}

/* ── Breadcrumb ── */
.rfp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #A89880;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.rfp-breadcrumb a { color: #6E4A2E; text-decoration: none; }
.rfp-breadcrumb a:hover { text-decoration: underline; }
.rfp-breadcrumb-actuel { color: #1E1B16; }

/* ── Layout 50/50 ── */
.rfp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* ── Colonne image ── */
.rfp-col-image { position: sticky; top: 80px; }

.rfp-image-principale-wrap {
    position: relative !important;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding-top: 0 !important;
    overflow: hidden;
    background: #EDE4D4;
    margin-bottom: 10px;
    display: block;
}

.rfp-image-principale {
    display: none !important;
}

.rfp-image-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    background-color: #EDE4D4;
    transition: opacity .3s ease;
    opacity: 1;
}

.rfp-image-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #EDE4D4;
    display: none;
}

/* ── Galerie thumbs — cachée si vide ── */
.rfp-galerie-thumbs {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.rfp-galerie-thumbs[style*="display: "]:not([style*="display: none"]) { display: flex; }

.rfp-thumb {
    width: 60px; height: 60px;
    border: 1.5px solid transparent;
    padding: 0; cursor: pointer;
    background: #EDE4D4;
    overflow: hidden;
    transition: border-color .2s;
    flex-shrink: 0;
}
.rfp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfp-thumb.active, .rfp-thumb:hover { border-color: #1E1B16; }

/* ── Colonne infos ── */
.rfp-col-infos { padding-top: 4px; }

.rfp-reference {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6E4A2E;
    margin: 0 0 8px;
}

.rfp-titre {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    color: #1E1B16;
}

.rfp-collection-label {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.rfp-collection-label a { color: #6E4A2E; text-decoration: none; }
.rfp-collection-label a:hover { text-decoration: underline; }

.rfp-description {
    font-size: 15px;
    line-height: 1.65;
    color: #4A3D2E;
    margin: 0 0 22px;
}

/* ── Prix ── */
.rfp-prix-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}
.rfp-prix-actuel {
    font-size: 28px;
    font-weight: 600;
    color: #1E1B16;
    letter-spacing: -.01em;
}
.rfp-prix-barre {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* ── Swatches ── */
.rfp-swatches-label {
    font-size: 13px;
    color: #6E4A2E;
    margin-bottom: 10px;
}
.rfp-swatches-label strong { color: #1E1B16; font-weight: 500; }
.rfp-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.rfp-swatch {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.12);
    cursor: pointer; padding: 0;
    outline: 2.5px solid transparent;
    outline-offset: 3px;
    transition: outline-color .2s, transform .15s;
}
.rfp-swatch:hover { transform: scale(1.1); }
.rfp-swatch.active { outline-color: #1E1B16; }

/* ── Specs ── */
.rfp-specs {
    border-top: 1px solid rgba(30,27,22,.1);
    padding-top: 18px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.rfp-spec { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; }
.rfp-spec-key { color: #6E4A2E; min-width: 88px; flex-shrink: 0; }
.rfp-spec-val { color: #1E1B16; }

/* ── Boutons ── */
.rfp-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.rfp-btn-wa {
    display: block; width: 100%;
    padding: 15px 24px;
    background: #1E1B16; color: #F3EADC;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px; font-weight: 500;
    letter-spacing: .02em;
    border: none; cursor: pointer;
    text-align: center;
    transition: background .2s, transform .15s;
}
.rfp-btn-wa:hover { background: #2E2A24; transform: translateY(-1px); }

.rfp-btn-devis {
    display: block; width: 100%;
    padding: 14px 24px;
    background: transparent; color: #1E1B16;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px; font-weight: 400;
    border: 1px solid #1E1B16;
    cursor: pointer; text-align: center;
    transition: background .2s, color .2s;
    box-sizing: border-box;
}
.rfp-btn-devis:hover { background: #1E1B16; color: #F3EADC; }

/* ── Partage WhatsApp ── */
.rfp-partage { margin-top: 24px; }
.rfp-partage-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #25D366;
    text-decoration: none;
    transition: opacity .2s;
}
.rfp-partage-wa:hover { opacity: .75; }

/* ── Contenu complet ── */
.rfp-contenu-complet {
    border-top: 1px solid rgba(30,27,22,.1);
    margin-top: 48px;
    padding-top: 40px;
    font-size: 15px;
    line-height: 1.75;
    color: #4A3D2E;
    max-width: 720px;
}

/* ── Produits similaires ── */
.rfp-similaires {
    border-top: 1px solid rgba(30,27,22,.1);
    margin-top: 56px;
    padding-top: 40px;
}
.rfp-similaires-titre {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 28px;
    color: #1E1B16;
    letter-spacing: -.01em;
}
.rfp-similaires-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rfp-sim-carte {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .25s;
}
.rfp-sim-carte:hover { transform: translateY(-3px); }
.rfp-sim-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #EDE4D4;
    margin-bottom: 12px;
}
.rfp-sim-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform .4s;
}
.rfp-sim-carte:hover .rfp-sim-img-wrap img { transform: scale(1.04); }
.rfp-sim-titre { font-size: 15px; font-weight: 500; margin: 0 0 4px; color: #1E1B16; }
.rfp-sim-prix  { font-size: 13px; color: #6E4A2E; margin: 0; }

/* ── Popup précommande ── */
.rfp-popup-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(30,27,22,.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.rfp-popup-overlay.active { display: flex; }

.rfp-popup {
    background: #F3EADC;
    max-width: 560px; width: 100%;
    padding: 40px; position: relative;
    max-height: 90vh; overflow-y: auto;
    font-family: 'Bricolage Grotesque', sans-serif;
}
.rfp-popup-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    font-size: 20px; cursor: pointer;
    color: #6E4A2E; line-height: 1; padding: 4px;
}
.rfp-popup-close:hover { color: #1E1B16; }
.rfp-popup-titre { font-size: 22px; font-weight: 600; margin: 0 0 6px; color: #1E1B16; }
.rfp-popup-produit-nom { font-size: 16px; font-weight: 500; color: #1E1B16; margin: 0 0 4px; }
.rfp-popup-variante-info { font-size: 13px; color: #6E4A2E; margin: 0 0 24px; }

.rfp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rfp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rfp-field label { font-size: 13px; color: #6E4A2E; }
.rfp-field label span { color: #C99A4A; }

.rfp-input, .rfp-textarea {
    border: 1px solid rgba(30,27,22,.2);
    background: #EDE4D4;
    padding: 10px 12px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px; color: #1E1B16;
    width: 100%; box-sizing: border-box;
    outline: none; transition: border-color .2s;
}
.rfp-input:focus, .rfp-textarea:focus { border-color: #6E4A2E; }
.rfp-textarea { resize: vertical; }

.rfp-error {
    font-size: 13px; color: #C94A4A;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(201,74,74,.08);
    border-left: 3px solid #C94A4A;
}
.rfp-btn-envoyer { margin-top: 8px; }
.rfp-popup-note { font-size: 12px; color: #6E4A2E; margin-top: 14px; text-align: center; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .rfp-similaires-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rfp-wrap { padding: 20px 16px 40px; }
    .rfp-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .rfp-col-image {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
    }
    .rfp-image-principale-wrap { aspect-ratio: 4 / 3 !important; height: auto !important; padding-top: 0 !important; }
    .rfp-col-infos { padding-top: 0; }
    .rfp-titre { font-size: 26px; }
    .rfp-similaires-grille { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .rfp-field-row { grid-template-columns: 1fr; }
    .rfp-popup { padding: 28px 20px; }
    .rfp-breadcrumb { margin-bottom: 16px; }
}

@media (max-width: 480px) {
    .rfp-similaires-grille { grid-template-columns: 1fr; }
}

/* ── Navigation prev / next ── */
.rfp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(243,234,220,.85);
    border: none;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: #1E1B16;
    cursor: pointer;
    z-index: 2;
    transition: background .2s, opacity .2s;
    backdrop-filter: blur(2px);
}
.rfp-nav:hover { background: #F3EADC; }
.rfp-nav-prev { left: 10px; }
.rfp-nav-next { right: 10px; }
