/* ═══════════════════════════════════════════════════════════
   prestation.css — Page détail d'une prestation
   ═══════════════════════════════════════════════════════════ */

/* ── Hero header ──────────────────────────────────────────── */
.pst-header {
    margin-top: 80px;
    padding: 5rem 3rem 4rem;
    background: linear-gradient(135deg, #061623 0%, #0D2A4B 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pst-header--img {
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pst-header-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.pst-header h1 {
    font-family: "Crimson Pro", serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.pst-categorie {
    display: inline-block;
    background: rgba(59, 154, 225, .2);
    border: 1px solid rgba(91, 184, 255, .4);
    color: #a8d4f5;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 30px;
}

/* ── Section contenu — même style que article.php ────────── */
.pst-section {
    padding: 4rem 3rem 6rem;
    background: white;
}
.pst-inner {
    max-width: 860px;
    margin: 0 auto;
}

/* Lien retour — dans le blanc, comme article-back mais adapté */
.pst-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3B9AE1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: gap .2s;
}
.pst-back::before { content: '←'; }
.pst-back:hover { gap: 12px; }

/* Contenu — identique à .article-content */
.pst-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2a3a4a;
    overflow: hidden;
}

.pst-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #0D2A4B;
    margin: 2.5rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e8eef4;
}
.pst-content h2:first-child { margin-top: 0; }

.pst-content h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0D2A4B;
    margin: 2rem 0 .75rem;
}
.pst-content p { margin-bottom: 1.2rem; }
.pst-content strong { color: #0D2A4B; font-weight: 700; }

.pst-content ul,
.pst-content ol {
    margin: .75rem 0 1.2rem 1.5rem;
}
.pst-content li { margin-bottom: .4rem; }
.pst-content li::marker { color: #3B9AE1; }

/* Médias — shortcodes identiques au blog */
.pst-content .article-img { margin: 1.8rem 0; }
.pst-content .article-img figure { margin: 0; }
.pst-content .article-img img { max-width: 100%; border-radius: 10px; display: block; }
.pst-content .article-img figcaption {
    font-size: 13px; color: #7a9ab0; text-align: center;
    margin-top: .5rem; font-style: italic;
}
.pst-content .article-img--center { text-align: center; }
.pst-content .article-img--center img { display: inline-block; max-width: 70%; }
.pst-content .article-img--right { float: right; margin: 0 0 1.2rem 1.8rem; }
.pst-content .article-img--left  { float: left;  margin: 0 1.8rem 1.2rem 0; }
.pst-content .article-img--right.article-img--sm,
.pst-content .article-img--left.article-img--sm  { width: 28%; }
.pst-content .article-img--right.article-img--md,
.pst-content .article-img--left.article-img--md  { width: 42%; }
.pst-content .article-img--right.article-img--lg,
.pst-content .article-img--left.article-img--lg  { width: 58%; }

.pst-content .video-wrap {
    position: relative; padding-bottom: 56.25%; height: 0;
    overflow: hidden; border-radius: 12px; margin: 1.8rem 0; background: #000;
}
.pst-content .video-wrap iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.pst-content .video-local { margin: 1.8rem 0; }
.pst-content .video-local video { width: 100%; border-radius: 12px; display: block; }
.pst-content .video-caption {
    font-size: 13px; color: #7a9ab0; text-align: center;
    margin-top: .5rem; font-style: italic;
}
.pst-content .shortcode-error { color: #e74c3c; font-size: 13px; font-style: italic; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .pst-header { padding: 3.5rem 1.5rem 3rem; }
    .pst-header h1 { font-size: 2.2rem; }
    .pst-section { padding: 2.5rem 1.5rem 4rem; }
    .pst-content .article-img--right,
    .pst-content .article-img--left {
        float: none; width: 100% !important; margin: 1.2rem 0;
    }
    .pst-content .article-img--center img { max-width: 100%; }
}

/* ── Comparateur avant/après ─────────────────────────────── */
.pst-content .cmp-block { margin: 2rem 0; }
.pst-content .cmp-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 14px;
    cursor: col-resize;
    user-select: none;
    box-shadow: 0 6px 28px rgba(13,42,75,.13);
    background: #dde8f5;
}
.pst-content .cmp-before, .pst-content .cmp-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}
.pst-content .cmp-after { clip-path: inset(0 0 0 50%); }
.pst-content .cmp-bar {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,.3);
    pointer-events: none;
}
.pst-content .cmp-handle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 14px rgba(0,0,0,.22);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; z-index: 11;
}
.pst-content .cmp-handle svg { width: 20px; height: 20px; stroke: #3B9AE1; }
.pst-content .cmp-lbl {
    position: absolute;
    bottom: 12px;
    z-index: 5;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(13,42,75,.72);
    color: #a8d4f5;
    border: 1px solid rgba(91,184,255,.3);
    backdrop-filter: blur(5px);
    pointer-events: none;
    white-space: nowrap;
}
.pst-content .cmp-lbl-b { right: calc(50% + 10px); }
.pst-content .cmp-lbl-a { left:  calc(50% + 10px); }
.pst-content .cmp-caption {
    margin-top: .6rem;
    font-size: .82rem;
    color: #7a8fa0;
    text-align: center;
    font-style: italic;
}
@media (max-width: 640px) {
    .pst-content .cmp-wrap { aspect-ratio: 4/3; border-radius: 10px; }
}
