/* ─── Pawa Form Ministry — Témoignages : Public CSS ─────────────────── */

/* ── Section principale ─────────────────────────────────────────────── */
.pfmt-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    font-family: 'Raleway', sans-serif;
    color: var(--sacred-ivory, #f8f4e8);
}

/* ── En-tête ────────────────────────────────────────────────────────── */
.pfmt-header {
    text-align: center;
    margin-bottom: 52px;
}

.pfmt-header-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    animation: pfmt-pulse 3s ease-in-out infinite;
}

@keyframes pfmt-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%       { transform: scale(1.08); opacity: 1; }
}

.pfmt-main-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 600;
    color: var(--sacred-gold, #c9a227);
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.35);
}

.pfmt-main-subtitle {
    font-size: 16px;
    color: rgba(248, 244, 232, 0.65);
    margin: 0;
    letter-spacing: 0.03em;
}

/* ── Grille de cartes ───────────────────────────────────────────────── */
.pfmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ── Carte témoignage ───────────────────────────────────────────────── */
.pfmt-card {
    background: rgba(30, 16, 80, 0.55);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(8px);
}

.pfmt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 31, 140, 0.45);
    border-color: rgba(201, 162, 39, 0.4);
}

.pfmt-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ── Vignette ───────────────────────────────────────────────────────── */
.pfmt-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: rgba(59, 31, 140, 0.4);
}

.pfmt-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pfmt-card:hover .pfmt-card-thumb img {
    transform: scale(1.04);
}

.pfmt-card-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: rgba(201, 162, 39, 0.4);
}

/* Badge vidéo */
.pfmt-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
}

/* ── Corps de la carte ──────────────────────────────────────────────── */
.pfmt-card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pfmt-card-title {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--sacred-gold, #c9a227);
    margin: 0 0 10px;
    line-height: 1.35;
}

.pfmt-card-excerpt {
    font-size: 14px;
    color: rgba(248, 244, 232, 0.72);
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.pfmt-card-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--sacred-gold, #c9a227);
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.pfmt-card:hover .pfmt-card-read-more {
    color: var(--sacred-gold-lt, #f0d060);
}

/* ── État vide ──────────────────────────────────────────────────────── */
.pfmt-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(248, 244, 232, 0.5);
}

.pfmt-empty-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────────────
   VUE DÉTAIL — TÉMOIGNAGE UNIQUE
   ───────────────────────────────────────────────────────────────────── */

.pfmt-section-single {
    max-width: 820px;
}

/* Bouton retour en haut */
.pfmt-single-back {
    margin-bottom: 32px;
}

.pfmt-back-btn {
    display: inline-block;
    color: rgba(201, 162, 39, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.pfmt-back-btn:hover {
    color: var(--sacred-gold, #c9a227);
}

/* Article principal */
.pfmt-single {
    background: rgba(30, 16, 80, 0.5);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pfmt-single-header {
    text-align: center;
    padding: 36px 32px 24px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.pfmt-single-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 14px;
}

.pfmt-single-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 600;
    color: var(--sacred-gold, #c9a227);
    margin: 0;
    letter-spacing: 0.03em;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

/* ── Lecteur vidéo YouTube ──────────────────────────────────────────── */
.pfmt-video-wrap {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.pfmt-video-responsive {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.pfmt-video-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Photo seule (sans vidéo) ───────────────────────────────────────── */
.pfmt-single-photo {
    padding: 28px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    text-align: center;
}

.pfmt-single-photo img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* ── Description ────────────────────────────────────────────────────── */
.pfmt-single-description {
    padding: 32px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* Photo en aside (si vidéo + photo présentes) */
.pfmt-single-photo-aside {
    flex-shrink: 0;
    width: 180px;
}

.pfmt-single-photo-aside img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Texte de description */
.pfmt-single-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(248, 244, 232, 0.88);
}

.pfmt-single-text p {
    margin: 0 0 16px;
}

.pfmt-single-text p:last-child {
    margin-bottom: 0;
}

/* ── Footer de l'article ────────────────────────────────────────────── */
.pfmt-single-footer {
    padding: 20px 32px 28px;
    border-top: 1px solid rgba(201, 162, 39, 0.1);
    text-align: center;
}

.pfmt-back-btn-bottom {
    display: inline-block;
    color: rgba(201, 162, 39, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.pfmt-back-btn-bottom:hover {
    color: var(--sacred-gold, #c9a227);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .pfmt-grid {
        grid-template-columns: 1fr;
    }

    .pfmt-single-description {
        flex-direction: column;
        padding: 24px 20px;
    }

    .pfmt-single-photo-aside {
        width: 100%;
    }

    .pfmt-single-header {
        padding: 28px 20px 18px;
    }

    .pfmt-video-wrap {
        padding: 16px 16px;
    }
}

/* ── v1.1.0 : badge audio + lecteur audio ───────────────────────────────── */

/* Badge audio (différencié du badge vidéo) */
.pfmt-audio-badge {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
}

/* Conteneur du lecteur audio dans la vue détail */
.pfmt-audio-wrap {
    margin: 24px 0;
    padding: 0 4px;
}

/* Lecteur audio natif (fallback si Player inactif) */
.pfmt-audio-label {
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pfmt-audio-player {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 8px 0 16px;
    border-radius: 8px;
    outline: none;
}
