/* ==========================================================================
   PÊCHE FRANCE — DESIGN SYSTÈME COMMUNAUTAIRE
   Chargé après style.css. Actif uniquement quand <body class="community-ui">.
   ========================================================================== */

body.community-ui {
    --pf-navy: #1e3a8a;
    --pf-navy-dark: #172554;
    --pf-navy-soft: #eff6ff;
    --pf-red: #dc2626;
    --pf-red-soft: #fef2f2;
    --pf-bg: #f8fafc;
    --pf-border: #e2e8f0;
    --pf-text: #0f172a;
    --pf-muted: #64748b;
    background: var(--pf-bg);
    color: var(--pf-text);
    padding-left: 0 !important;
    padding-bottom: 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.community-ui .x-sidebar,
body.community-ui .sb-mobile-top { display: none !important; }

body.community-ui footer.bg-dark { display: none !important; }

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.pf-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pf-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pf-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pf-hdr-top {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 10px 0;
}
.pf-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.pf-logo {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--pf-navy);
    color: #fff;
    display: grid; place-items: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22);
    flex-shrink: 0;
}
.pf-brand-name {
    display: block;
    font-size: 20px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.15;
    color: var(--pf-text); white-space: nowrap;
}
.pf-brand-name span { color: #1e40af; }
.pf-brand-sub { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 500; color: var(--pf-muted); white-space: nowrap; }

.pf-search { position: relative; flex: 1 1 320px; max-width: 520px; margin: 0 auto; }
.pf-search > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--pf-muted); font-size: 0.85rem; pointer-events: none;
}
.pf-search input {
    width: 100%; height: 40px; padding: 0 14px 0 38px;
    border: 1px solid transparent; border-radius: 12px;
    background: #f1f5f9; color: var(--pf-text);
    font-size: 13.5px; outline: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.pf-search input::placeholder { color: #475569; }
.pf-search input:focus {
    background: #fff; border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.14);
}

.pf-hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.pf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 14px;
    border: 1px solid var(--pf-border); border-radius: 12px;
    background: #fff; color: #334155;
    font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.pf-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--pf-text); }
.pf-btn-primary {
    background: var(--pf-navy); border-color: var(--pf-navy); color: #fff;
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22);
}
.pf-btn-primary:hover { background: var(--pf-navy-dark); border-color: var(--pf-navy-dark); color: #fff; }
.pf-bell {
    position: relative; width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--pf-border); border-radius: 12px;
    background: #fff; color: #475569; text-decoration: none;
}
.pf-bell:hover { background: #f8fafc; color: var(--pf-navy); }
.pf-bell .notif-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px; padding: 0 3px;
    border: 2px solid #fff; border-radius: 999px;
    background: var(--pf-red); color: #fff;
    font-size: 0.6rem; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.pf-avatar {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px; background: var(--pf-navy); color: #fff;
    font-size: 0.9rem; font-weight: 800; text-decoration: none;
}
.pf-avatar::after { display: none; }
.pf-avatar img { border-radius: 12px; }

.pf-hdr-actions .dropdown-menu {
    background: #fff !important;
    border: 1px solid var(--pf-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
}
.pf-hdr-actions .dropdown-item { color: #334155 !important; border-radius: 10px !important; }
.pf-hdr-actions .dropdown-item:hover { background: #f1f5f9 !important; color: var(--pf-text) !important; }
.pf-hdr-actions .dropdown-divider { border-color: var(--pf-border) !important; }

.pf-nav {
    display: flex; align-items: center; gap: 4px;
    padding: 6px 0;
    border-top: 1px solid #f1f5f9;
    overflow-x: auto; scrollbar-width: none;
}
.pf-nav::-webkit-scrollbar { display: none; }
.pf-nav a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 13px; border-radius: 12px;
    color: #475569; font-size: 13px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: background .15s, color .15s;
}
.pf-nav a i { font-size: 13px; color: var(--pf-muted); }
.pf-nav a:hover { background: #f1f5f9; color: var(--pf-text); }
.pf-nav a:hover i { color: #1e40af; }
.pf-nav a.active { background: var(--pf-navy); color: #fff; box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25); }
.pf-nav a.active i { color: #fff; }
.pf-nav a.is-contest {
    margin-left: auto; color: #b91c1c; background: var(--pf-red-soft);
    border: 1px solid #fecaca;
}
.pf-nav a.is-contest i { color: var(--pf-red); }
.pf-nav a.is-contest:hover { background: #fee2e2; color: #991b1b; }
.pf-nav a.is-contest.active {
    background: var(--pf-red);
    border-color: #b91c1c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}
.pf-nav a.is-contest.active i { color: #fff; }
.pf-nav a.is-contest.active em { background: #fff; color: #b91c1c; }
.pf-nav a.is-contest.active .pf-live-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); }
.pf-nav a.is-contest em {
    font-style: normal; margin-left: 6px; padding: 1px 6px; border-radius: 6px;
    background: var(--pf-red); color: #fff;
    font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.pf-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pf-red); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }

/* ══════════════════════════════════════════
   HERO / BANDEAU DE PAGE
   ══════════════════════════════════════════ */
.pf-hero {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 55%, #1d4ed8 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pf-hero::after {
    content: "";
    position: absolute;
    right: -80px; bottom: -120px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.18);
    filter: blur(14px);
    pointer-events: none;
}
.pf-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.pf-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #dbeafe;
}
.pf-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3.4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}
.pf-hero p {
    margin: 0;
    max-width: 620px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #cbd5e1;
}
.pf-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 18px;
    border-radius: 12px;
    background: var(--pf-red); color: #fff;
    font-size: 13px; font-weight: 800; text-decoration: none;
    border: 1px solid #f87171;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.3);
    transition: background .15s, transform .15s;
}
.pf-hero-btn:hover { background: #b91c1c; color: #fff; transform: translateY(-1px); }
.pf-hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}
.pf-hero-btn.secondary:hover { background: rgba(255, 255, 255, 0.18); }

/* ══════════════════════════════════════════
   ACCÈS RAPIDES
   ══════════════════════════════════════════ */
.pf-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}
.pf-quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 150px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--pf-border);
    background: #fff;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pf-quick-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(15, 23, 42, 0.35); border-color: #c7d2fe; }
.pf-quick-top { display: flex; align-items: center; justify-content: space-between; }
.pf-quick-label { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--pf-muted); }
.pf-quick-icon {
    width: 34px; height: 34px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--pf-navy-soft); color: var(--pf-navy); font-size: 0.95rem;
}
.pf-quick-card h3 { margin: 0 0 3px; font-size: 15px; font-weight: 900; color: var(--pf-text); letter-spacing: -0.01em; }
.pf-quick-card p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--pf-muted); }
.pf-quick-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 9px; border-top: 1px solid #f1f5f9;
    font-size: 11px; font-weight: 800; color: #1e40af;
}
.pf-quick-card.dark { background: linear-gradient(135deg, #172554, #1e3a8a); border-color: #1e3a8a; }
.pf-quick-card.dark .pf-quick-label { color: #93c5fd; }
.pf-quick-card.dark .pf-quick-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pf-quick-card.dark h3 { color: #fff; }
.pf-quick-card.dark p { color: #cbd5e1; }
.pf-quick-card.dark .pf-quick-foot { border-color: rgba(255, 255, 255, 0.14); color: #bfdbfe; }
.pf-quick-card.red { background: linear-gradient(135deg, #b91c1c, #dc2626); border-color: #dc2626; }
.pf-quick-card.red .pf-quick-label { color: #fecaca; }
.pf-quick-card.red .pf-quick-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.pf-quick-card.red h3 { color: #fff; }
.pf-quick-card.red p { color: #fee2e2; }
.pf-quick-card.red .pf-quick-foot { border-color: rgba(255, 255, 255, 0.16); color: #fff; }

/* ══════════════════════════════════════════
   CONTENEUR + ONGLETS
   ══════════════════════════════════════════ */
.pf-main { max-width: 900px; margin: 0 auto; padding: 24px 20px 10px; }
.pf-main.wide { max-width: 1200px; }

.pf-panel {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.4);
}
.pf-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.pf-panel-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; font-weight: 900; color: var(--pf-text); }
.pf-panel-title i { color: var(--pf-navy); }

.pf-tabs { display: flex; align-items: center; gap: 4px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #f1f5f9; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 10px;
    font-size: 12.5px; font-weight: 700; color: #475569;
    text-decoration: none; white-space: nowrap;
    transition: background .15s, color .15s;
}
.pf-tab:hover { background: #f1f5f9; color: var(--pf-text); }
.pf-tab.active { background: var(--pf-navy); color: #fff; box-shadow: 0 4px 12px rgba(30, 58, 138, 0.22); }
.pf-tab.active.is-guide { background: #1e3a8a; }
.pf-tab.active.is-test { background: #1e293b; }
.pf-tab.active.is-question { background: var(--pf-red); }

.pf-sort { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f1f5f9; }
.pf-sort a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 11px; border-radius: 8px;
    font-size: 11.5px; font-weight: 700; color: #475569; text-decoration: none;
}
.pf-sort a.active { background: #fff; color: var(--pf-text); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }

/* ══════════════════════════════════════════
   CARTES DU FIL (renderItemCard)
   ══════════════════════════════════════════ */
body.community-ui .post-card {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.18);
    padding: 18px 20px 0;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
body.community-ui .post-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.45);
    transform: translateY(-1px);
}
body.community-ui .post-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
body.community-ui .author-block { display: flex; align-items: center; gap: 11px; min-width: 0; }
body.community-ui .author-avatar {
    width: 42px !important; height: 42px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
    color: #fff; font-weight: 800; font-size: 0.95rem;
    display: grid; place-items: center; flex-shrink: 0;
    box-shadow: 0 0 0 3px #f1f5f9;
}
body.community-ui .author-name {
    display: inline-block; font-size: 13.5px; font-weight: 800; color: var(--pf-text);
    text-decoration: none; line-height: 1.2;
}
body.community-ui .author-name:hover { color: var(--pf-navy); text-decoration: underline; }
body.community-ui .post-meta { font-size: 11.5px; color: var(--pf-muted); margin-top: 2px; }

body.community-ui .post-type-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; white-space: nowrap;
    border: 1px solid transparent;
}
body.community-ui .post-type-badge.badge-guide { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
body.community-ui .post-type-badge.badge-test { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }
body.community-ui .post-type-badge.badge-question { background: var(--pf-red-soft); color: #b91c1c; border-color: #fecaca; }
body.community-ui .post-type-badge.badge-catch { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

body.community-ui .post-body { padding-bottom: 4px; }
body.community-ui .post-title {
    display: block;
    font-size: 16.5px; font-weight: 900; color: var(--pf-text);
    letter-spacing: -0.015em; line-height: 1.35;
    text-decoration: none; margin-bottom: 6px;
}
body.community-ui .post-title:hover { color: var(--pf-navy); text-decoration: none; }
body.community-ui .post-excerpt {
    margin: 0 0 10px;
    font-size: 13px; line-height: 1.62; color: #475569;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body.community-ui .post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
body.community-ui .post-tags > span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 8px;
    background: #f1f5f9; color: #334155;
    font-size: 11px; font-weight: 700;
    border: 1px solid #e2e8f0;
}
body.community-ui .post-tags > span i { font-size: 10px; color: var(--pf-muted); }

body.community-ui .post-read-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 2px 0 10px;
    padding: 6px 12px; border-radius: 9px;
    border: 1px solid #bfdbfe; background: #eff6ff;
    color: #1e3a8a !important;
    font-size: 11.5px; font-weight: 800; cursor: pointer;
    transition: background .15s;
}
body.community-ui .post-read-btn:hover { background: #dbeafe; }
body.community-ui .post-read-arrow { font-size: 9px; }

body.community-ui .post-media {
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    max-height: 380px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 12px;
}
body.community-ui .post-details { margin-bottom: 8px; }
body.community-ui .post-rating { font-size: 12px; color: #b45309; margin-bottom: 6px; }

body.community-ui .post-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    margin: 0 -20px;
    padding: 10px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fcfdff;
}
body.community-ui .action-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 11px; border-radius: 10px;
    background: none; border: none;
    color: #475569; font-size: 12px; font-weight: 700;
    text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s;
}
body.community-ui .action-btn i { font-size: 14px; }
body.community-ui .action-btn:hover { background: #f1f5f9; color: var(--pf-navy); }
body.community-ui .action-btn.liked { color: var(--pf-navy); background: #eff6ff; }
body.community-ui .action-btn.liked i { opacity: 1 !important; color: var(--pf-navy) !important; }
body.community-ui .like-count { font-weight: 800; }

body.community-ui .fb-post-comment-section { background: #fbfcfe; }

/* Lisibilité (contrastes AA) */
body.community-ui .fb-feed-fake-input span { color: #475569 !important; }
body.community-ui .badge-tag-technique { color: #047857 !important; }

/* État vide */
body.community-ui .empty-state {
    text-align: center; padding: 46px 20px;
    background: #fff; border: 1px dashed #cbd5e1; border-radius: 20px;
}
body.community-ui .empty-state .empty-icon { font-size: 2.2rem; }

/* ══════════════════════════════════════════
   BARRE DE FILTRES (guides / tests)
   ══════════════════════════════════════════ */
body.community-ui .section-hero {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 55%, #1d4ed8 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 34px 20px 30px !important;
    box-shadow: none !important;
    color: #fff;
}
body.community-ui .section-hero-inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; align-items: center; gap: 18px;
}
body.community-ui .section-hero-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    display: grid; place-items: center;
    font-size: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    flex-shrink: 0;
}
body.community-ui .section-hero-title { font-size: clamp(1.5rem, 3vw, 2.1rem) !important; font-weight: 900 !important; color: #fff !important; margin: 0 !important; letter-spacing: -0.02em; }
body.community-ui .section-hero-sub { color: #cbd5e1 !important; font-size: 13.5px !important; margin: 4px 0 0 !important; }
body.community-ui .section-hero .btn-light {
    background: #fff !important;
    color: #1e3a8a !important;
    border: 0 !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.5);
}
body.community-ui .section-hero .btn-light:hover { background: #eff6ff !important; color: #172554 !important; }

body.community-ui .container { max-width: 1160px; }
body.community-ui .filters-bar,
body.community-ui .filter-bar {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 24px -22px rgba(15, 23, 42, 0.5);
}
body.community-ui .form-select,
body.community-ui .form-control {
    border-radius: 11px;
    border-color: var(--pf-border);
    font-size: 13px;
}
body.community-ui .form-select:focus,
body.community-ui .form-control:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
body.community-ui .btn-primary { background: var(--pf-navy); border-color: var(--pf-navy); }
body.community-ui .btn-primary:hover { background: var(--pf-navy-dark); border-color: var(--pf-navy-dark); }

/* ══════════════════════════════════════════
   FILTRES & LISTES (guides / tests)
   ══════════════════════════════════════════ */
body.community-ui .command-center {
    position: static;
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 18px;
    padding: 14px 16px;
    margin: 18px auto 0;
    max-width: 900px;
    box-shadow: 0 10px 30px -26px rgba(15, 23, 42, 0.45);
}
body.community-ui .command-inner { max-width: none; padding: 0; gap: 10px; }
body.community-ui .layout-container { max-width: 900px !important; width: 100%; }
body.community-ui .feed-wrapper { width: 100%; max-width: 100%; padding: 6px 0 0; }
body.community-ui .feed-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4px 10px;
}
body.community-ui .results-count { font-size: 12.5px; font-weight: 700; color: var(--pf-muted); }
body.community-ui .btn-reset { border: none; background: none; color: #1e40af; font-size: 12px; font-weight: 700; }
body.community-ui .btn-reset:hover { text-decoration: underline; }
body.community-ui .segmented-tabs {
    display: flex; gap: 4px; padding: 4px;
    background: #f1f5f9; border-radius: 12px;
}
body.community-ui .segmented-tabs .tab-btn {
    border: none; background: transparent; border-radius: 9px;
    padding: 7px 12px; font-size: 12px; font-weight: 700; color: #475569;
}
body.community-ui .segmented-tabs .tab-btn.active {
    background: #fff; color: var(--pf-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}
body.community-ui .select-pill {
    border: 1px solid var(--pf-border);
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}
body.community-ui .select-pill.active-filter {
    border-color: #1e40af; color: #1e3a8a; background: #eff6ff;
}
body.community-ui .command-center .fb-search .search-pill {
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 8px 14px;
}
body.community-ui .command-center .fb-search .search-pill:focus-within {
    background: #fff;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
body.community-ui .command-center .dropdown-filters-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ══════════════════════════════════════════
   CONCOURS
   ══════════════════════════════════════════ */
.pf-hero-eyebrow.is-gold {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
}
.pf-hero-admin {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    min-width: 248px;
}
.pf-hero-admin strong {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: #fde68a;
}
.pf-hero-admin .pf-btn {
    background: #fff; border-color: #fff; color: #172554;
    justify-content: center;
}
.pf-hero-admin .pf-btn:hover { background: #eff6ff; border-color: #eff6ff; color: #172554; }

body.community-ui .pf-contests { max-width: 1200px; margin: 0 auto; padding: 24px 20px 10px; }

.pf-contest-panel {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px -26px rgba(15, 23, 42, 0.4);
    margin-bottom: 20px;
    overflow: hidden;
}
.pf-contest-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.pf-contest-count { font-size: 12.5px; font-weight: 600; color: var(--pf-muted); }
.pf-contest-count strong { color: var(--pf-text); font-weight: 900; }

.pf-contest-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
.pf-contest-filter {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 12.5px; font-weight: 700;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.pf-contest-filter:hover { background: #f1f5f9; border-color: #cbd5e1; color: var(--pf-text); }
.pf-contest-filter.active {
    background: var(--pf-navy); border-color: var(--pf-navy); color: #fff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.22);
}
.pf-contest-filter .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pf-contest-filter .dot-open { background: #22c55e; }
.pf-contest-filter .dot-closed { background: #f59e0b; }
.pf-contest-filter .dot-deliberated { background: #8b5cf6; }
.pf-contest-filter.active .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }

.pf-contest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.pf-contest-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.2);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pf-contest-card:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.5);
}
.pf-contest-media { position: relative; height: 182px; background: linear-gradient(135deg, #172554, #1d4ed8); }
.pf-contest-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-contest-placeholder { height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); font-size: 3rem; }
.pf-contest-status {
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.pf-contest-status.is-open { background: #166534; }
.pf-contest-status.is-closed { background: #b45309; }
.pf-contest-status.is-deliberated { background: #6d28d9; }
.pf-contest-status.is-draft { background: #475569; }
.pf-contest-type {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #1e293b;
    font-size: 10px; font-weight: 800;
}

.pf-contest-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.pf-contest-partner,
.pf-contest-official {
    display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 10.5px; font-weight: 700;
    text-decoration: none;
}
.pf-contest-partner:hover { background: #dbeafe; color: #172554; }
.pf-contest-partner img { height: 16px; max-width: 28px; object-fit: contain; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; padding: 1px; }
.pf-contest-partner .muted { color: #64748b; font-weight: 500; }
.pf-contest-official { background: #f8fafc; border-color: #e2e8f0; color: #475569; }

.pf-contest-title { margin: 0 0 7px; font-size: 16.5px; font-weight: 900; line-height: 1.3; letter-spacing: -0.015em; }
.pf-contest-title a { color: var(--pf-text); text-decoration: none; }
.pf-contest-title a:hover { color: var(--pf-navy); }
.pf-contest-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; color: var(--pf-muted); }
.pf-contest-meta i { color: #1e40af; margin-right: 3px; }
.pf-contest-desc {
    margin: 0 0 12px;
    font-size: 12.5px; line-height: 1.6; color: #475569;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pf-contest-prize {
    display: inline-flex; align-items: center; gap: 7px;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 11px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: linear-gradient(90deg, #fef3c7, #fee2e2);
    color: #b91c1c;
    font-size: 11px; font-weight: 800;
}
.pf-contest-stats {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    font-size: 11.5px; font-weight: 600; color: var(--pf-muted);
}
.pf-contest-stats i { color: #1e40af; margin-right: 3px; }

.pf-contest-countdown { margin-bottom: 12px; }
.pf-contest-countdown-label {
    margin-bottom: 6px;
    font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: var(--pf-muted);
}
.pf-countdown-box { display: flex; gap: 6px; }
.pf-countdown-unit {
    flex: 1;
    padding: 6px 2px;
    text-align: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
}
.pf-countdown-unit .num { font-size: 1.05rem; font-weight: 900; line-height: 1; color: #1e3a8a; }
.pf-countdown-unit .lbl { margin-top: 2px; font-size: 9px; font-weight: 700; text-transform: uppercase; color: #64748b; }

.pf-contest-actions { display: flex; gap: 8px; margin-top: auto; }
.pf-contest-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    flex: 1;
    height: 40px;
    border-radius: 11px;
    background: var(--pf-navy);
    color: #fff;
    font-size: 12.5px; font-weight: 800;
    text-decoration: none;
    transition: background .15s;
}
.pf-contest-btn:hover { background: var(--pf-navy-dark); color: #fff; }
.pf-contest-admin {
    flex: 0 0 40px; width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--pf-border);
    border-radius: 11px;
    background: #fff;
    color: #475569;
    text-decoration: none;
}
.pf-contest-admin:hover { background: #f8fafc; color: var(--pf-navy); }

/* ══════════════════════════════════════════
   PIED DE PAGE
   ══════════════════════════════════════════ */
.pf-footer {
    margin-top: 40px;
    padding: 26px 0 86px;
    background: #fff;
    border-top: 1px solid var(--pf-border);
    color: var(--pf-muted);
    font-size: 12px;
}
.pf-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
}
.pf-footer-inner strong { color: var(--pf-text); font-weight: 800; }
.pf-footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.pf-footer-links a { color: #475569; font-weight: 600; text-decoration: none; }
.pf-footer-links a:hover { color: var(--pf-navy); text-decoration: underline; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (min-width: 640px) {
    .pf-footer-inner { flex-direction: row; text-align: left; }
}

@media (max-width: 991.98px) {
    .pf-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-contest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .pf-hdr-top { flex-wrap: wrap; gap: 10px; padding: 8px 0; }
    .pf-brand { order: 1; }
    .pf-hdr-actions { order: 2; }
    .pf-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
    .pf-brand-sub { display: none; }
    .pf-label { display: none; }
    /* Boutons-icônes de l’en-tête uniquement : les boutons de contenu
       (participation, actions…) doivent conserver leur libellé. */
    .pf-hdr-actions .pf-btn { width: 38px; padding: 0; }
    .pf-nav { padding: 6px 0; flex-wrap: wrap; overflow-x: visible; gap: 4px; }
    .pf-nav a { padding: 7px 10px; font-size: 12px; }

    .pf-hero-inner { padding: 24px 16px 22px; }
    .pf-main { padding: 18px 14px 6px; }
    .pf-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pf-quick-card { min-height: 132px; padding: 13px; border-radius: 16px; }
    .pf-quick-card h3 { font-size: 13.5px; }
    .pf-quick-card p { font-size: 11px; }

    body.community-ui .post-card { padding: 15px 15px 0; border-radius: 18px; }
    body.community-ui .post-footer { margin: 0 -15px; padding: 8px 12px; flex-wrap: wrap; gap: 4px; }
    body.community-ui .action-btn { flex: 1 1 40%; justify-content: center; padding: 6px 6px; font-size: 11px; }
    body.community-ui .post-title { font-size: 15px; }

    body.community-ui .section-hero { padding: 24px 16px 22px !important; }
    body.community-ui .section-hero-inner { flex-wrap: wrap; gap: 12px; }
    body.community-ui .section-hero-inner > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
    body.community-ui .section-hero-inner > .ms-auto { flex: 1 1 100%; margin-left: 0 !important; }
    body.community-ui .section-hero-inner > .ms-auto .btn { width: 100%; }
    body.community-ui .section-hero-icon { width: 46px; height: 46px; font-size: 1.15rem; }

    body.community-ui .dropdown-filters-row { flex-wrap: wrap; overflow-x: visible; }
    body.community-ui .dropdown-filters-row .select-pill { flex: 1 1 100%; }

    body.community-ui .pf-tabs { flex-wrap: wrap; overflow-x: visible; }
    body.community-ui .pf-tab { flex: 0 0 auto; }

    body.community-ui .pf-contests { padding: 18px 14px 6px; }
    .pf-contest-grid { grid-template-columns: 1fr; gap: 14px; }
    .pf-contest-media { height: 168px; }
    .pf-hero-admin { width: 100%; }
}

/* ══════════════════════════════════════════
   FORUM
   ══════════════════════════════════════════ */
.pf-hero--forum .pf-hero-inner { align-items: center; }
.pf-forum-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}
.pf-forum-hero-stats strong { margin-right: 4px; font-size: 14px; font-weight: 900; color: #fff; }

.pf-forum {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 10px;
}
.pf-forum-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-forum-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }

/* Barre de recherche + filtres */
.pf-forum-toolbar { overflow: hidden; }
.pf-forum-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #f1f5f9;
}
.pf-forum-search { flex: 1 1 260px; min-width: 0; }
.pf-forum-search .search-pill { width: 100%; }
.pf-forum-selects { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
.pf-select {
    flex: 1 1 170px;
    min-width: 0;
    height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 13px;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.pf-select:hover { border-color: #cbd5e1; }
.pf-select:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.pf-select.is-active { background-color: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.pf-forum-filter-actions { display: flex; gap: 8px; margin-left: auto; }

.pf-forum-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-muted);
}
.pf-forum-results strong { color: var(--pf-text); font-weight: 900; }
.pf-forum-active-filters {
    padding: 3px 10px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-forum-feed { display: flex; flex-direction: column; }

/* Statuts des sujets */
.pf-topic-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}
.pf-topic-status.is-solved { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.pf-topic-status.is-new { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.pf-topic-status.is-active { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.pf-topic-menu { padding: 0 6px !important; color: #94a3b8 !important; }
.pf-topic-menu:hover { color: #475569 !important; }

/* Colonne latérale */
.pf-forum-side-card {
    padding: 16px 18px;
    border: 1px solid var(--pf-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pf-forum-side-card > h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13.5px;
    font-weight: 900;
    color: var(--pf-text);
}
.pf-forum-side-card > h2 i { color: var(--pf-navy); }
.pf-forum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.pf-forum-stats > div {
    padding: 10px 4px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f8fafc;
}
.pf-forum-stats strong { display: block; font-size: 17px; font-weight: 900; line-height: 1.1; color: #1e3a8a; }
.pf-forum-stats span { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pf-muted); }

.pf-forum-poplist { display: flex; flex-direction: column; }
.pf-forum-pop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}
.pf-forum-pop:last-child { padding-bottom: 0; border-bottom: 0; }
.pf-forum-pop-title {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pf-forum-pop:hover .pf-forum-pop-title { color: var(--pf-navy); }
.pf-forum-pop-meta { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--pf-muted); }

.pf-forum-charter ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.pf-forum-charter li { position: relative; padding-left: 20px; font-size: 12px; line-height: 1.5; color: #475569; }
.pf-forum-charter li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 1px;
    left: 0;
    font-size: 10px;
    color: #16a34a;
}
.pf-forum-charter .pf-back-link { height: 38px; }

/* Pagination */
.pf-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 8px 0 4px; }
.pf-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--pf-border);
    border-radius: 11px;
    background: #fff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
}
.pf-page-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--pf-navy); }
.pf-page-btn.active { background: var(--pf-navy); border-color: var(--pf-navy); color: #fff; }

@media (max-width: 1024px) {
    .pf-forum { grid-template-columns: 1fr; }
    .pf-forum-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 720px) {
    .pf-forum { padding: 18px 14px 6px; gap: 14px; }
    .pf-forum-filters { padding: 12px 14px; }
    .pf-forum-filter-actions { width: 100%; margin-left: 0; }
    .pf-forum-filter-actions .pf-btn { flex: 1 1 0; }
    .pf-forum-side { grid-template-columns: 1fr; }
    .pf-hero--forum .pf-hero-actions { width: 100%; }
    .pf-hero--forum .pf-hero-btn { flex: 1 1 0; justify-content: center; }
    .pf-forum-results { flex-wrap: wrap; }
}


/* ══════════════════════════════════════════
   CONCOURS — PAGE DE DÉTAIL
   ══════════════════════════════════════════ */
.pf-contest-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 36px;
}
.pf-contest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
.pf-contest-main,
.pf-contest-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.pf-contest-side { position: sticky; top: 16px; }

/* En-tête de la page */
.pf-hero--contest .pf-hero-inner { align-items: flex-start; }
.pf-hero-copy { flex: 1 1 560px; min-width: 0; }
.pf-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 11.5px;
    font-weight: 700;
    color: #bfdbfe;
}
.pf-crumb a { color: #dbeafe; text-decoration: none; }
.pf-crumb a:hover { color: #fff; text-decoration: underline; }
.pf-hero-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pf-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
}
.pf-status.is-open { background: #166534; border-color: #22c55e; }
.pf-status.is-closed { background: #b45309; border-color: #f59e0b; }
.pf-status.is-deliberated { background: #6d28d9; border-color: #a78bfa; }
.pf-status.is-draft { background: #475569; border-color: #94a3b8; }
.pf-hero-partner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #fde68a;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}
.pf-hero-partner strong { color: #fff; font-weight: 800; }
.pf-hero-partner img {
    height: 16px;
    max-width: 30px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 1px;
}
.pf-hero-partner:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.pf-hero-partner.is-official { color: #dbeafe; }
.pf-hero--contest .pf-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
}
.pf-hero--contest .pf-hero-meta i { margin-right: 5px; color: #93c5fd; }
.pf-hero--contest .pf-hero-meta .is-location i { color: #f87171; }

.pf-hero-timer {
    flex: 0 0 auto;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}
.pf-hero-timer-label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bfdbfe;
}
.pf-countdown-box--hero .pf-countdown-unit {
    min-width: 62px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}
.pf-countdown-box--hero .pf-countdown-unit .num { color: #fff; font-size: 1.4rem; }
.pf-countdown-box--hero .pf-countdown-unit .lbl { color: #cbd5e1; }

/* Barre admin */
.pf-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
}
.pf-admin-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pf-admin-note i { color: #fbbf24; }
.pf-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-admin-bar .pf-btn { height: 32px; background: #1e293b; border-color: #334155; color: #e2e8f0; }
.pf-admin-bar .pf-btn:hover { background: #334155; border-color: #475569; color: #fff; }
.pf-btn-warning { background: #f59e0b; border-color: #f59e0b; color: #1f2937; box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25); }
.pf-btn-warning:hover { background: #fbbf24; border-color: #fbbf24; color: #1f2937; }
.pf-btn-block { width: 100%; }

/* Alertes */
.pf-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 13px;
    font-weight: 600;
}
.pf-alert.is-success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.pf-alert.is-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.pf-alert.is-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }

/* Panneaux de contenu */
.pf-detail-panel {
    padding: 20px 22px;
    border: 1px solid var(--pf-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pf-detail-panel > h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: 15.5px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--pf-text);
}
.pf-detail-panel > h2 i { color: var(--pf-navy); }
.pf-detail-panel.is-conditions {
    background: #f8fbff;
    border-color: #bfdbfe;
    border-left: 5px solid #3b82f6;
}
.pf-detail-sub { margin: -4px 0 14px; font-size: 12.5px; color: var(--pf-muted); }
.pf-detail-text { font-size: 13.5px; line-height: 1.75; color: #334155; }
.pf-detail-text p:last-child { margin-bottom: 0; }
.pf-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    margin-left: 2px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    font-weight: 800;
}

/* Appel à participation */
.pf-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
}
.pf-cta-card.is-success { background: #ecfdf5; border-color: #a7f3d0; }
.pf-cta-main { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; }
.pf-cta-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 18px;
}
.pf-cta-icon.is-success { background: #d1fae5; color: #047857; }
.pf-cta-card h2 { margin: 0 0 3px; font-size: 15.5px; font-weight: 900; color: #1e3a8a; }
.pf-cta-card.is-success h2 { color: #047857; }
.pf-cta-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #475569; }
.pf-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Bloc « Participer » */
.pf-participate {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 60%, #1d4ed8 100%);
    color: #fff;
}
.pf-participate::after {
    content: "🎣";
    position: absolute;
    right: 18px;
    bottom: -12px;
    font-size: 5rem;
    opacity: 0.14;
    pointer-events: none;
}
.pf-participate h2 { position: relative; z-index: 1; margin: 0 0 6px; font-size: 17px; font-weight: 900; color: #fff; }
.pf-participate > p { position: relative; z-index: 1; margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: #cbd5e1; }
.pf-btn-light {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #172554;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px -14px rgba(2, 6, 23, 0.8);
    transition: background 0.15s, transform 0.15s;
}
.pf-btn-light:hover { background: #eff6ff; transform: translateY(-1px); }
.pf-participate-form {
    display: none;
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--pf-text);
    box-shadow: 0 18px 40px -26px rgba(2, 6, 23, 0.7);
}
.pf-participate-form.show { display: block; }
.pf-participate-form .form-label { font-size: 12px; font-weight: 800; color: #334155; }
.pf-participate-form .form-control { font-size: 13px; }
.pf-participate-form .pf-btn { height: 42px; }

/* Podium */
.pf-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    justify-content: center;
    gap: 12px;
}
.pf-podium-card {
    overflow: hidden;
    border: 1px solid var(--pf-border);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}
.pf-podium-head { padding: 16px 10px 14px; color: #fff; }
.pf-podium-head.rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.pf-podium-head.rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.pf-podium-head.rank-3 { background: linear-gradient(135deg, #cd7f32, #b45309); }
.pf-podium-head.rank-other { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.pf-podium-head .medal { font-size: 1.7rem; line-height: 1; margin-bottom: 4px; }
.pf-podium-head strong { display: block; font-size: 13.5px; font-weight: 900; }
.pf-podium-head small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.04em; }
.pf-podium-prize { padding: 10px 12px 12px; font-size: 11.5px; line-height: 1.55; color: #475569; }
.pf-podium-prize strong { display: block; margin-bottom: 3px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #b45309; }

/* Participations */
.pf-entry-list { display: flex; flex-direction: column; gap: 12px; }
.pf-entry {
    padding: 14px;
    border: 1px solid var(--pf-border);
    border-radius: 14px;
    background: #fff;
}
.pf-entry-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pf-entry-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pf-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}
.pf-entry-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 800; color: var(--pf-text); }
.pf-entry-time { font-size: 11px; color: var(--pf-muted); }
.pf-rank {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.pf-rank.is-gold { background: #fef3c7; color: #92400e; }
.pf-rank.is-silver { background: #f1f5f9; color: #475569; }
.pf-rank.is-bronze { background: #fdebd8; color: #9a3412; }
.pf-entry-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1e40af;
    text-decoration: none;
}
.pf-entry-link:hover { text-decoration: underline; }
.pf-entry-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.pf-entry-media img,
.pf-entry-media video {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid var(--pf-border);
    background: #f1f5f9;
    display: block;
}

/* Colonne latérale */
.pf-side-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pf-partner-card { text-align: center; }
.pf-partner-card > h2 { justify-content: center; margin-bottom: 6px; }
.pf-partner-logo { display: block; max-height: 72px; margin: 0 auto 12px; object-fit: contain; }
.pf-partner-role { margin: 0 0 14px; font-size: 12px; line-height: 1.6; color: #475569; }
.pf-partner-role i { color: #b45309; margin-right: 4px; }
.pf-prize-card {
    padding: 18px 20px;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.pf-prize-card > h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 900;
    color: #92400e;
}
.pf-prize-card .pf-detail-text { color: #78350f; font-size: 12.5px; }
.pf-info-list { display: flex; flex-direction: column; }
.pf-info-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12.5px;
}
.pf-info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-info-row > span { color: var(--pf-muted); font-weight: 600; }
.pf-info-row > strong { color: var(--pf-text); font-weight: 800; text-align: right; }
.pf-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pf-back-link:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--pf-navy); }

@media (max-width: 1024px) {
    .pf-contest-layout { grid-template-columns: 1fr; }
    .pf-contest-side { position: static; }
    .pf-hero-timer { width: 100%; }
}
@media (max-width: 720px) {
    .pf-contest-detail { padding: 18px 14px 26px; }
    .pf-detail-panel { padding: 16px; border-radius: 14px; }
    .pf-cta-card { padding: 16px; }
    .pf-cta-main { flex: 1 1 100%; }
    .pf-cta-actions { width: 100%; }
    .pf-cta-actions .pf-btn { flex: 1 1 0; }
    .pf-participate { padding: 18px 16px; }
    .pf-hero--contest .pf-hero-inner { padding: 24px 16px 22px; }
    .pf-countdown-box--hero .pf-countdown-unit { flex: 1; min-width: 0; }
    .pf-podium { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════
   PAGES DÉTAIL — SUJET, GUIDE, TEST
   ══════════════════════════════════════════ */
.pf-hero--article .pf-hero-inner { align-items: flex-start; }
.pf-hero--article .pf-hero-copy { flex: 1 1 640px; min-width: 0; }
.pf-hero--article h1 { max-width: 920px; }

.pf-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}
.pf-hero-meta i { margin-right: 5px; color: #93c5fd; }
.pf-hero-meta strong { color: #fff; font-weight: 800; }

.pf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #e0f2fe;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.pf-chip i { color: #bfdbfe; }

.pf-score {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}
.pf-score small { font-size: 11px; font-weight: 700; color: #bfdbfe; }
.pf-score-stars { color: #fbbf24; letter-spacing: 2px; font-size: 13px; }

/* Mise en page */
.pf-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 36px;
}
.pf-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
.pf-article-main,
.pf-article-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.pf-article-side { position: sticky; top: 16px; }

/* Carte article */
.pf-article-card {
    border: 1px solid var(--pf-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.pf-article-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.pf-article-author { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pf-article-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
    overflow: hidden;
}
.pf-article-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-article-author strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--pf-text);
    line-height: 1.3;
}
.pf-article-author .pf-article-author-infos span {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pf-muted);
}
.pf-article-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pf-muted);
}
.pf-article-date i { color: #94a3b8; }

.pf-article-body {
    padding: 18px 22px 6px;
    font-size: 14.5px;
    line-height: 1.8;
    color: #334155;
    overflow-wrap: anywhere;
}
.pf-article-body p { margin: 0 0 14px; }
.pf-article-body p:last-child { margin-bottom: 0; }
.pf-article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.pf-article-body a { color: #1d4ed8; }
.pf-article-body ul,
.pf-article-body ol { margin: 0 0 14px; padding-left: 22px; }
.pf-article-body li { margin-bottom: 6px; }
.pf-article-body blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid #bfdbfe;
    border-radius: 0 10px 10px 0;
    background: #f8fbff;
    color: #334155;
    font-style: italic;
}
.pf-article-body h1,
.pf-article-body h2,
.pf-article-body h3,
.pf-article-body h4 {
    margin: 22px 0 10px;
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--pf-text);
}
.pf-article-lead {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-left: 4px solid #1e3a8a;
    border-radius: 0 10px 10px 0;
    background: #f8fafc;
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.7;
    color: #334155;
}

.pf-article-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    background: #eef2f7;
}
.pf-article-gallery { padding: 4px 22px 8px; }.pf-article-section { padding: 0 22px 20px; }
.pf-article-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 14px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--pf-text);
}
.pf-article-section-title i { color: var(--pf-navy); }

/* Barre de partage */
.pf-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 22px 18px;
    border-top: 1px solid #f1f5f9;
}
.pf-share-label {
    margin-right: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pf-muted);
}
.pf-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 13px;
    border: 1px solid var(--pf-border);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pf-share-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--pf-navy); }
.pf-share-btn.is-primary { background: var(--pf-navy); border-color: var(--pf-navy); color: #fff; }
.pf-share-btn.is-primary:hover { background: var(--pf-navy-dark); border-color: var(--pf-navy-dark); color: #fff; }
.pf-share-btn.is-wa { color: #15803d; }
.pf-share-btn.is-fb { color: #1d4ed8; }
.pf-share-btn.is-x { color: #0f172a; }

/* Notes du test */
.pf-rating-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.pf-rating-item {
    padding: 14px 10px;
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}
.pf-rating-item .val { font-size: 19px; font-weight: 900; line-height: 1.1; color: #1e3a8a; }
.pf-rating-item .lbl {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pf-muted);
}

/* Points forts / faibles */
.pf-proscons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.pf-pros,
.pf-cons { padding: 16px 18px; border: 1px solid; border-radius: 12px; }
.pf-pros { background: #f0fdf4; border-color: #bbf7d0; }
.pf-cons { background: #fef2f2; border-color: #fecaca; }
.pf-pros h3,
.pf-cons h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 900;
}
.pf-pros h3 { color: #15803d; }
.pf-cons h3 { color: #b91c1c; }
.pf-pros ul,
.pf-cons ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pf-pros li,
.pf-cons li {
    position: relative;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #334155;
}
.pf-pros li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 900;
}
.pf-cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-size: 11px;
    font-weight: 900;
}

/* Fiche technique */
.pf-specs-wrap {
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    overflow: hidden;
}
.pf-specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.pf-specs th,
.pf-specs td { padding: 10px 13px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: top; }
.pf-specs th { width: 38%; background: #f8fafc; color: var(--pf-muted); font-weight: 700; }
.pf-specs td { color: var(--pf-text); font-weight: 600; }
.pf-specs tr:last-child th,
.pf-specs tr:last-child td { border-bottom: 0; }

/* Encart conditions */
.pf-conditions {
    padding: 16px 18px;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    background: #f8fbff;
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
}
.pf-conditions h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 900;
    color: #1e3a8a;
}

/* Colonne latérale */
.pf-side-card {
    padding: 20px 22px;
    border: 1px solid var(--pf-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pf-side-card > h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--pf-text);
}
.pf-side-card > h2 i { color: var(--pf-navy); }
.pf-side-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.pf-side-list a {
    display: flex;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
}
.pf-side-list li:first-child a { padding-top: 0; }
.pf-side-list li:last-child a { padding-bottom: 0; border-bottom: 0; }
.pf-side-list a:hover { color: var(--pf-navy); }
.pf-side-list i { margin-top: 3px; color: #93c5fd; flex-shrink: 0; }

/* Commentaires */
.pf-comments-panel > h2 { margin-bottom: 4px; }
.pf-comments-panel #comments { scroll-margin-top: 90px; }

@media (max-width: 1024px) {
    .pf-article-layout { grid-template-columns: 1fr; }
    .pf-article-side { position: static; }
}
/* ══════════════════════════════════════════
   PANNEAU DE NOTIFICATIONS
   Ancrè sous l'en-tête, en carte flottante (et non plus en tiroir
   pleine hauteur hérité de l'ancien sidebar). La hauteur de l'en-tête
   est mesurée en JS et exposée via --pf-header-h.
   ══════════════════════════════════════════ */
body.community-ui #notif-panel {
    position: fixed;
    top: var(--pf-panel-top, calc(var(--pf-header-h, 118px) + 10px));
    right: var(--pf-panel-right, max(16px, calc((100vw - 1200px) / 2 + 20px)));
    left: auto;
    bottom: auto;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: auto;
    max-height: min(70vh, 560px);
    background: #fff;
    border: 1px solid var(--pf-border);
    border-right: 1px solid var(--pf-border);
    border-radius: 18px;
    box-shadow: 0 26px 60px -26px rgba(15, 23, 42, 0.5), 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1045; /* au-dessus de l'en-tête sticky (1040), sous les modales */
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
body.community-ui #notif-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
body.community-ui .notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--pf-border);
}
body.community-ui .notif-panel-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--pf-text);
}
body.community-ui #notif-read-all {
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--pf-navy-soft);
    color: #1e40af;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s, color .15s;
}
body.community-ui #notif-read-all:hover { background: #dbeafe; color: var(--pf-navy-dark); }
body.community-ui .notif-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f8fafc;
}
body.community-ui .notif-list::-webkit-scrollbar { width: 6px; }
body.community-ui .notif-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
body.community-ui .notif-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: background .15s;
}
body.community-ui .notif-item:hover { background: #f1f5f9; }
body.community-ui .notif-item.unread { background: #eff6ff; }
body.community-ui .notif-item.unread::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--pf-navy);
}
body.community-ui .notif-item { position: relative; }
body.community-ui .notif-avatar {
    flex-shrink: 0;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--pf-navy-soft);
    color: var(--pf-navy);
    font-size: 0.9rem;
}
body.community-ui .notif-text { font-size: 12.5px; line-height: 1.5; color: #475569; }
body.community-ui .notif-text strong { color: var(--pf-text); font-weight: 800; }
body.community-ui .notif-time { margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--pf-muted); }
body.community-ui .notif-item.unread .notif-text strong { color: #1e40af; }
body.community-ui .notif-empty,
body.community-ui .notif-loading,
body.community-ui .notif-error {
    padding: 40px 18px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pf-muted);
}
body.community-ui .notif-spinner {
    width: 22px; height: 22px;
    margin: 0 auto;
    border: 2.5px solid #dbeafe;
    border-top-color: var(--pf-navy);
    border-radius: 50%;
    animation: pf-spin .7s linear infinite;
}
body.community-ui .notif-load-more {
    display: block;
    width: calc(100% - 28px);
    margin: 12px 14px;
    padding: 9px;
    border: 1px solid var(--pf-border);
    border-radius: 10px;
    background: #fff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
body.community-ui .notif-load-more:hover { background: #f1f5f9; }

@media (max-width: 900px) {
    body.community-ui #notif-panel {
        right: 12px;
        max-width: calc(100vw - 24px);
    }
}

/* Mobile : feuille basse, pleine largeur utile */
@media (max-width: 767.98px) {
    body.community-ui #notif-panel {
        top: auto;
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        max-height: 72vh;
        border-radius: 18px;
        transform: translateY(16px) scale(.99);
        transform-origin: bottom center;
        box-shadow: 0 22px 50px -20px rgba(15, 23, 42, 0.55);
    }
    body.community-ui #notif-panel.open { transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
    .pf-article { padding: 18px 14px 26px; }
    .pf-article-head,
    .pf-article-body,
    .pf-article-gallery,
    .pf-article-section,
    .pf-share { padding-left: 16px; padding-right: 16px; }
    .pf-article-date { margin-left: 0; width: 100%; }
    .pf-rating-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-proscons { grid-template-columns: 1fr; }
    .pf-side-card { padding: 16px; }
    .pf-hero--article .pf-hero-inner { padding: 24px 16px 22px; }
    .pf-share-btn { flex: 1 1 auto; justify-content: center; }
}
