/* produit.php — gabarit public générique pour un produit boutique.
   Namespace pp-* pour ne jamais entrer en conflit avec tl-page-kit.css
   ou les classes pv-* de l'aperçu admin (admin_boutique_product_editor.php). */

.pp-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    color: #1a1a2e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pp-block { margin-bottom: 3.5rem; }
.pp-center { text-align: center; }
.pp-lead { color: #667; font-size: 1.05rem; }

/* Hero */
.pp-hero { text-align: center; }
.pp-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-bottom: 1.8rem; display: block; }
.pp-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .8rem; color: #13242d; }
.pp-hero-sub { font-size: 1.15rem; color: #555; max-width: 700px; margin: 0 auto 1.6rem; }
.pp-hero-price { text-align: center; font-size: 1.6rem; font-weight: 800; color: #0d7775; margin: -.6rem auto 1.4rem; }
.pp-cta {
    display: inline-block; background: linear-gradient(135deg, #20a99a, #0d7775); color: #fff;
    padding: .9rem 2rem; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem;
    transition: transform .15s, box-shadow .15s;
}
.pp-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,119,117,.28); }
.pp-cta-small { padding: .6rem 1.2rem; font-size: .88rem; margin-top: .8rem; }
.pp-btn-cart {
    display: flex; width: fit-content; align-items: center; gap: .6rem; background: linear-gradient(135deg, #20a99a, #0d7775);
    color: #fff; border: none; cursor: pointer; padding: .9rem 2rem; border-radius: 10px; font-weight: 700;
    font-size: 1.05rem; margin: 0 auto 1.6rem; transition: transform .15s, box-shadow .15s, background .3s;
}
.pp-btn-cart:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,119,117,.28); }

/* Description longue */
.pp-description { max-width: 760px; margin-left: auto; margin-right: auto; color: #444; line-height: 1.75; font-size: 1.02rem; }

/* Image + texte */
.pp-image-text { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; }
.pp-image-text--right { flex-direction: row-reverse; }
.pp-image-text-media { flex: 1 1 320px; max-width: 420px; }
.pp-image-text-media img { width: 100%; border-radius: 14px; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.pp-image-text-copy { flex: 2 1 400px; }
.pp-image-text-copy h2 { margin: 0 0 .8rem; color: #13242d; font-size: 1.5rem; }
.pp-image-text-copy p { color: #444; line-height: 1.75; }

/* Grille d'icônes */
.pp-icon-grid { display: grid; gap: 2rem; grid-template-columns: repeat(var(--pp-cols, 3), 1fr); margin-top: 1.8rem; }
.pp-icon-item { text-align: center; }
.pp-icon-item i { font-size: 2rem; color: #20a99a; margin-bottom: .8rem; }
.pp-icon-item h4 { margin: 0 0 .4rem; color: #13242d; font-size: 1.05rem; }
.pp-icon-item p { margin: 0; color: #666; font-size: .92rem; }

/* Étapes */
.pp-steps { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pp-step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: .8rem; display: block; }
.pp-step-num {
    width: 40px; height: 40px; border-radius: 50%; background: #13242d; color: #fff; display: flex;
    align-items: center; justify-content: center; font-weight: 800; margin-bottom: .8rem;
}
.pp-step h4 { margin: 0 0 .4rem; color: #13242d; }
.pp-step p { margin: 0; color: #666; font-size: .92rem; }

/* Galerie */
.pp-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pp-gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }

/* Tableau comparatif */
.pp-comparison { width: 100%; border-collapse: collapse; }
.pp-comparison th, .pp-comparison td { padding: 1rem; border-bottom: 1px solid #eee; text-align: center; }
.pp-comparison th:first-child, .pp-comparison td:first-child { text-align: left; }
.pp-comparison th { color: #888; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* Tarifs par palier */
.pp-pricing { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 1.8rem; }
.pp-pricing-card { border: 1px solid #e5e5e5; border-radius: 14px; padding: 1.6rem 1.2rem; text-align: center; }
.pp-pricing-volume { display: block; color: #888; font-size: .88rem; margin-bottom: .4rem; }
.pp-pricing-price { display: block; font-size: 1.6rem; color: #13242d; }
.pp-pricing-unit { display: block; color: #888; font-size: .82rem; }
.pp-pricing-total { color: #888; font-size: .85rem; margin: .6rem 0 0; }
.pp-pricing-footer { color: #888; font-size: .9rem; margin-top: 1.4rem; }

/* FAQ */
.pp-faq h2 { margin: 0 0 .4rem; color: #13242d; }
.pp-faq-item { border-bottom: 1px solid #eee; padding: 1.1rem 0; }
.pp-faq-item summary { cursor: pointer; font-weight: 700; color: #13242d; }
.pp-faq-item p { margin: .8rem 0 0; color: #555; line-height: 1.7; }

/* Bandeau de chiffres clés */
.pp-stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem;
    text-align: center; background: #13242d; border-radius: 16px; padding: 2rem 1.5rem;
}
.pp-stat strong { display: block; font-size: 1.8rem; color: #fff; }
.pp-stat span { font-size: .82rem; color: #a7f3d0; text-transform: uppercase; letter-spacing: .05em; }

/* Responsive */
@media (max-width: 768px) {
    .pp-page { padding: 1.6rem 1rem 3.5rem; }
    .pp-block { margin-bottom: 2.4rem; }
    .pp-image-text, .pp-image-text--right { flex-direction: column; }
    .pp-image-text-media { max-width: 100%; }
    .pp-icon-grid { grid-template-columns: 1fr !important; gap: 1.4rem; }
    .pp-hero-img { max-height: 260px; }
}
