/* ===========================================
   FICHE PRODUIT — Mars 2026
   =========================================== */
.fp-w { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* BREADCRUMB */
.fp-bc { background: #f8fafc; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.fp-bc a, .fp-bc span, .fp-bc strong { font-size: 0.7rem; color: #94a3b8; text-decoration: none; }
.fp-bc a:hover { color: #e8590c; }
.fp-bc strong { color: #374151; }
.fp-bc span { margin: 0 4px; }

/* PRODUCT GRID */
.fp-main { padding: 20px 0; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

/* Left column */
.fp-left { position: sticky; top: 90px; }

/* Image */
.fp-img { border-radius: 12px; overflow: hidden; background: #f5f7fa; }
.fp-img img { width: 100%; display: block; }

/* Details under image */
.fp-img-details { padding: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }

/* Info */
.fp-info h1 { font-size: 1.25rem; font-weight: 800; color: #111827; margin: 0 0 2px; line-height: 1.25; }
.fp-slogan { font-size: 0.78rem; color: #374151; margin: 0 0 2px; font-weight: 600; }
.fp-short-desc { font-size: 0.72rem; color: #64748b; margin: 0 0 6px; line-height: 1.45; }
.fp-stars { font-size: 0.72rem; color: #64748b; margin-bottom: 10px; }
.fp-stars span:first-child { color: #f59e0b; letter-spacing: -1px; margin-right: 4px; }
.fp-stars small { color: #94a3b8; }

/* Price */
.fp-price-box { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; overflow: hidden; }
.fp-price-row { display: flex; align-items: stretch; gap: 0; }
.fp-price-current { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 12px; background: #f0fdf4; border-radius: 8px; }
.fp-price-current small { font-size: 0.6rem; font-weight: 700; color: #16a34a; text-transform: uppercase; letter-spacing: 0.5px; }
.fp-price-val { font-size: 1.6rem; font-weight: 900; color: #16a34a; line-height: 1.1; }
.fp-price-unit { font-size: 0.7rem; color: #64748b; }
.fp-price-normal { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 12px; }
.fp-price-normal small { font-size: 0.6rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.fp-price-normal s { font-size: 1.2rem; font-weight: 700; color: #94a3b8; text-decoration-thickness: 2px; text-decoration-color: #ef4444; }
.fp-price-total { font-size: 0.78rem; color: #374151; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.fp-price-total strong { color: #111827; font-size: 0.88rem; }
.fp-price-info { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: #16a34a; font-weight: 600; margin-top: 6px; }

/* Sizes */
.fp-sizes { margin-bottom: 10px; }
.fp-sizes-row { display: flex; gap: 6px; }
.fp-sizes-btn { display: flex; align-items: center; justify-content: center; min-width: 50px; padding: 6px 12px; border: 2px solid #e5e7eb; border-radius: 6px; font-size: 0.78rem; font-weight: 700; color: #374151; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.fp-sizes-btn:hover { border-color: #94a3b8; background: #f8fafc; color: #111827; }
.fp-sizes-btn.active { border-color: #1e293b; background: #1e293b; color: #fff; pointer-events: none; }

/* Compatible */
.fp-compat { margin-bottom: 10px; }
.fp-label { display: block; font-size: 0.62rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.fp-compat-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-compat-item { display: flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 600; color: #374151; background: #fff; border: 1px solid #e5e7eb; padding: 4px 8px; border-radius: 5px; }
.fp-compat-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Type */
.fp-type { margin-bottom: 10px; }
.fp-type-card { border: 1px solid #1e293b; background: #f8fafc; border-radius: 8px; padding: 8px 12px; }
.fp-type-card strong { font-size: 0.78rem; color: #111827; display: block; margin-bottom: 2px; }
.fp-type-card ul { margin: 0; padding: 0; list-style: none; }
.fp-type-card li { font-size: 0.65rem; color: #374151; }

/* Notice */
.fp-notice { display: flex; align-items: flex-start; gap: 6px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; font-size: 0.68rem; color: #92400e; line-height: 1.4; }
.fp-notice svg { flex-shrink: 0; color: #d97706; margin-top: 1px; }
.fp-notice strong { color: #78350f; }

/* Cart */
.fp-cart { display: flex; gap: 8px; margin-bottom: 6px; }
.fp-qty { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.fp-qty button { width: 38px; height: 42px; border: none; background: #f8fafc; font-size: 1rem; font-weight: 700; color: #374151; cursor: pointer; }
.fp-qty button:hover { background: #e5e7eb; }
#fpQtyInput { width: 44px; height: 42px; border: none; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; text-align: center; font-size: 0.95rem; font-weight: 700; -moz-appearance: textfield; }
#fpQtyInput::-webkit-inner-spin-button, #fpQtyInput::-webkit-outer-spin-button { -webkit-appearance: none; }
.fp-add-btn { flex: 1; height: 42px; border: none; border-radius: 8px; background: #1e293b; color: #fff; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fp-add-btn:hover { background: #e8590c; }
.fp-stock { font-size: 0.72rem; font-weight: 600; color: #16a34a; }
.fp-outstock { padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: #991b1b; font-size: 0.78rem; font-weight: 600; }

/* TRUST */
.fp-trust { padding: 16px 0; background: #1e293b; }
.fp-trust-row { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.fp-trust-item { display: flex; align-items: center; gap: 8px; }
.fp-trust-item span { font-size: 0.75rem; font-weight: 600; color: #e2e8f0; }

/* TARIFS */
.fp-tarifs { padding: 28px 0; background: #f8fafc; }
.fp-tarifs h2 { font-size: 1.2rem; font-weight: 800; color: #111827; margin: 0 0 4px; }
.fp-tarifs h2 span { color: #e8590c; }
.fp-tarifs-sub { font-size: 0.78rem; color: #64748b; margin: 0 0 16px; }
.fp-tarifs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fp-tarifs-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; }
.fp-tarifs-tag { background: #1e293b; color: #fff; text-align: center; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 6px; }
.fp-tarifs-card--alt .fp-tarifs-tag { background: #64748b; }
.fp-tarifs .tablepress-table-name { display: none !important; }
.fp-tarifs .tablepress { width: 100%; border-collapse: collapse; }
.fp-tarifs .tablepress thead th { background: #f8fafc; color: #374151; font-size: 0.62rem; font-weight: 700; padding: 7px 5px; text-align: center; border-bottom: 1px solid #e5e7eb; }
.fp-tarifs .tablepress tbody td { font-size: 0.75rem; padding: 7px 5px; text-align: center; border-bottom: 1px solid #f1f5f9; }
.fp-tarifs .tablepress tbody tr:hover td { background: #fffbeb; }

/* DESCRIPTION */
.fp-desc { padding: 28px 0; }
.fp-desc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.fp-desc h2 { font-size: 1.1rem; font-weight: 800; color: #111827; margin: 0 0 12px; }
.fp-desc h2 span { color: #e8590c; }
.fp-desc h3 { font-size: 0.95rem; font-weight: 800; color: #111827; margin: 16px 0 8px; }
.fp-desc-text { font-size: 0.82rem; color: #374151; line-height: 1.65; }
.fp-desc-text strong { color: #111827; }
.fp-carac { margin: 0; padding: 0; list-style: none; }
.fp-carac li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.78rem; color: #374151; padding-left: 14px; position: relative; }
.fp-carac li::before { content: ''; width: 5px; height: 5px; background: #e8590c; border-radius: 50%; position: absolute; left: 0; top: 12px; }
.fp-seo-text { margin-top: 16px; padding: 14px; background: #f8fafc; border-radius: 8px; font-size: 0.75rem; color: #64748b; line-height: 1.6; border: 1px solid #f1f5f9; }
.fp-seo-text strong { color: #374151; }
.fp-video { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #111; }
.fp-video iframe { width: 100%; height: 100%; }

/* SUGGESTED */
.fp-suggested { padding: 28px 0; background: #f8fafc; }
.fp-suggested h2 { font-size: 1.2rem; font-weight: 800; color: #111827; margin: 0 0 16px; }
.fp-suggested h2 span { color: #e8590c; }
.fp-suggested-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fp-suggested-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.fp-suggested-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.fp-suggested-img { aspect-ratio: 3/2; overflow: hidden; }
.fp-suggested-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.fp-suggested-card:hover .fp-suggested-img img { transform: scale(1.04); }
.fp-suggested-body { padding: 10px 12px; }
.fp-suggested-body strong { display: block; font-size: 0.78rem; color: #1e293b; margin-bottom: 2px; }
.fp-suggested-card:hover .fp-suggested-body strong { color: #e8590c; }
.fp-suggested-body span { font-size: 0.82rem; font-weight: 800; }
.fp-suggested-body .woocommerce-Price-amount { color: #16a34a; }

/* FAQ */
.fp-faq { padding: 28px 0; }
.fp-faq h2 { font-size: 1.2rem; font-weight: 800; color: #111827; margin: 0 0 14px; }
.fp-faq h2 span { color: #e8590c; }
.fp-faq-list { max-width: 760px; }
.fp-faq-list details { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 6px; overflow: hidden; }
.fp-faq-list summary { padding: 12px 16px; font-size: 0.82rem; font-weight: 700; color: #1e293b; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fp-faq-list summary::-webkit-details-marker { display: none; }
.fp-faq-list summary::after { content: '+'; font-size: 1.1rem; color: #94a3b8; }
.fp-faq-list details[open] summary::after { content: '\2212'; color: #e8590c; }
.fp-faq-list details[open] summary { color: #e8590c; border-bottom: 1px solid #f1f5f9; }
.fp-faq-list p { padding: 12px 16px; font-size: 0.78rem; color: #64748b; line-height: 1.6; margin: 0; }

/* REVIEWS */
.fp-reviews { padding: 28px 0; background: #f8fafc; }
.fp-reviews h2 { font-size: 1.2rem; font-weight: 800; color: #111827; margin: 0 0 16px; }
.fp-reviews h2 span { color: #e8590c; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .fp-grid { grid-template-columns: 1fr; gap: 16px; }
    .fp-left { position: static; }
    .fp-img { border-radius: 10px; }
    .fp-main { padding: 16px 0; }
    .fp-info h1 { font-size: 1.15rem; }
    .fp-price-val { font-size: 1.3rem; }
    .fp-cart { flex-direction: column; }
    .fp-add-btn { height: 46px; font-size: 0.9rem; }
    .fp-trust-row { gap: 14px; }
    .fp-trust-item span { font-size: 0.68rem; }
    .fp-tarifs-grid { grid-template-columns: 1fr; gap: 10px; }
    .fp-tarifs .tablepress thead th { font-size: 0.55rem; padding: 6px 3px; }
    .fp-tarifs .tablepress tbody td { font-size: 0.65rem; padding: 6px 3px; }
    .fp-desc-grid { grid-template-columns: 1fr; }
    .fp-tarifs, .fp-desc, .fp-suggested, .fp-faq, .fp-reviews { padding: 20px 0; }
    .fp-suggested-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* MOBILE STICKY BAR */
.fp-mobile-bar { display: none; }

@media (max-width: 768px) {
    /* Smaller image on mobile */
    .fp-img { max-height: 220px; overflow: hidden; }
    .fp-img img { object-fit: cover; }

    .fp-mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        padding: 8px 12px;
        align-items: center;
        gap: 8px;
    }
    .fp-mobile-bar__price { display: flex; align-items: baseline; gap: 2px; min-width: 50px; }
    .fp-mobile-bar__price span { font-size: 1.1rem; font-weight: 900; color: #16a34a; }
    .fp-mobile-bar__price small { font-size: 0.55rem; color: #94a3b8; }
    .fp-mobile-bar__qty { display: flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
    .fp-mobile-bar__qty button { width: 30px; height: 32px; border: none; background: #f8fafc; font-size: 0.9rem; font-weight: 700; color: #374151; cursor: pointer; }
    .fp-mobile-bar__qty button:active { background: #e5e7eb; }
    .fp-mobile-bar__qty input { width: 28px; height: 32px; border: none; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; text-align: center; font-size: 0.85rem; font-weight: 700; background: #fff; -moz-appearance: textfield; }
    .fp-mobile-bar__qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
    .fp-mobile-bar__btn { flex: 1; height: 32px; border: none; border-radius: 6px; background: #e8590c; color: #fff; font-size: 0.75rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
    .fp-mobile-bar__btn:active { background: #c2410c; }

    /* Bottom padding so content isn't hidden */
    body.single-product { padding-bottom: 56px; }
}

@media (max-width: 480px) {
    .fp-w { padding: 0 14px; }
    .fp-info h1 { font-size: 1.05rem; }
    .fp-compat-item { font-size: 0.65rem; padding: 4px 8px; }
    .fp-tarifs .tablepress { min-width: 380px; }
    .fp-tarifs-card { overflow-x: auto; }
    .fp-trust-row { gap: 10px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 14px; }
    .fp-trust-item { white-space: nowrap; flex-shrink: 0; }
}
