/*
 * Passerelle articles ↔ forum 1et2 (1et2-passerelle-forum.php).
 * Côté article : notice « aussi dans le forum » et bandeau de statistiques, avec les commandes de
 * l'administrateur. Côté forum : notice « aussi publié en article », version, bouton, avis.
 * Couleurs du site sombre (fiches logiciels) et du thème wpForo « 1et2 » (variables --f-* de 1et2.css).
 */

/* ================================================================== Article : notice en haut */
.pf-notice{
	display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;
	margin:0 0 22px;padding:11px 16px;border-radius:10px;
	background:rgba(32,171,165,.08);border:1px solid rgba(32,171,165,.3);border-left:3px solid #20aba5;
	color:#c5d0e4;font-size:.92em;line-height:1.5;
}
.pf-notice a{color:#7fd8d4 !important;font-weight:600;text-decoration:none;white-space:nowrap}
.pf-notice a:hover{text-decoration:underline}

/* ================================================================== Article : bandeau en bas */
.pf-bandeau{
	display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;
	margin:34px 0 10px;padding:18px 20px;border-radius:12px;
	background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
	border:1px solid #ffffff1f;color:#c5d0e4;
}
.pf-bandeau-icone{
	flex:0 0 auto;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;
	background:rgba(32,171,165,.14);color:#7fd8d4;box-shadow:inset 0 0 0 1px rgba(32,171,165,.35);
}
.pf-bandeau-texte{flex:1 1 220px;display:flex;flex-direction:column;gap:2px;min-width:0}
.pf-bandeau-titre{color:#fff;font-weight:600;font-size:1.02em}
.pf-bandeau-stats{color:#9aabc8;font-size:.9em}
.pf-bandeau-stats [data-pf="reponses"]{color:#e2e9f5;font-weight:600}
.pf-bandeau a.pf-bouton{
	flex:0 0 auto;display:inline-block;padding:10px 22px;border-radius:24px;
	background:#20aba5;color:#fff !important;font-weight:600;text-decoration:none;white-space:nowrap;
	transition:background .15s ease;
}
.pf-bandeau a.pf-bouton:hover{background:#1b958f}
.pf-bandeau a.pf-bouton:focus-visible,.pf-notice a:focus-visible,.pf-outils :focus-visible{outline:2px solid #7fd8d4;outline-offset:2px}

/* Commandes de l'administrateur (visibles des seuls éditeurs) */
.pf-outils{
	flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;
	margin-top:2px;padding-top:12px;border-top:1px dashed #ffffff26;font-size:.82em;color:#9aabc8;
}
.pf-outils-etat{padding:2px 9px;border-radius:4px;background:rgba(79,214,160,.13);color:#4fd6a0;font-weight:600}
.pf-outils-etat.pf-perime{background:rgba(242,198,109,.13);color:#f2c66d}
.pf-outils a,.pf-outils button{
	padding:0;border:0;background:none;color:#7fd8d4 !important;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;
}
.pf-outils a:hover,.pf-outils button:hover{text-decoration:underline}
.pf-outils button[data-faire="supprimer"]{color:#ff8a8a !important}
.pf-outils label{display:inline-flex;align-items:center;gap:6px;margin:0;color:#9aabc8;font:inherit}
/* Liste du modèle : petite pastille sombre, à l'abri du style des listes du thème (nice-select retiré par passerelle.js) */
.pf-bandeau .pf-outils select{
	-webkit-appearance:none !important;appearance:none !important;display:inline-block !important;
	width:auto !important;height:auto !important;min-height:0 !important;margin:0 !important;
	padding:3px 26px 3px 10px !important;border:1px solid rgba(127,216,212,.35) !important;border-radius:999px !important;
	background:#0f1a2d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237fd8d4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center !important;
	color:#e2e9f5 !important;font:inherit !important;font-weight:600 !important;line-height:1.5 !important;box-shadow:none !important;cursor:pointer;
}
.pf-bandeau .pf-outils select:hover{border-color:#7fd8d4 !important}
.pf-bandeau .pf-outils select option{background:#0f1a2d;color:#e2e9f5}
.pf-bandeau .pf-outils .nice-select{display:none !important}
.pf-outils-message{color:#e2e9f5}
.pf-outils-message.pf-erreur{color:#ff8a8a}
.pf-outils.pf-occupe{opacity:.55;pointer-events:none}

@media (max-width:600px){
	.pf-bandeau{padding:16px}
	.pf-bandeau-icone{display:none}
	.pf-bandeau a.pf-bouton{flex:1 1 100%;text-align:center}
}

/* ================================================================== Forum : sujet issu d'un article */
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-forum-notice{
	margin:0 0 16px;padding:9px 14px;border-radius:var(--r-m,12px);
	background:var(--f-lagon-voile,rgba(32,171,165,.12));border:1px solid rgba(127,216,212,.22);border-left:3px solid var(--f-lagon,#20aba5);
	color:var(--f-texte,#c5d0e4);font-size:13.5px;line-height:1.5;
}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-forum-notice a{font-weight:600}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-version{margin-top:14px}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-lire{margin:18px 0 4px}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-lire a{
	display:inline-block;padding:8px 18px;border-radius:var(--r-pill,999px);
	background:var(--f-lagon,#20aba5);color:#fff !important;font-weight:600;text-decoration:none !important;
	transition:background .15s ease;
}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-lire a:hover{background:var(--f-lagon-vif,#33c7c0)}

/* Avis repris de la fiche */
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-avis{margin:0 0 8px}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content .pf-avis-etoiles{color:var(--f-miel,#f2c66d);font-size:17px;letter-spacing:2px;margin-right:6px}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-avis strong{color:var(--f-blanc,#fff)}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p.pf-avis-source{margin:10px 0 0;font-size:12.5px;color:var(--f-brume,#8b9cbc)}
