/* Fameen Ads Manager — affichage public.
   Charte Fameen News : #1C2F6B / #D71920 / #F3F5F7 / #444444 */

.fads-slot {
	margin: 28px auto;
	max-width: 970px;
	text-align: center;
}
.fads-slot img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Label "Publicité" : discret, transparent, conforme à l'éthique éditoriale */
.fads-label {
	display: block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #9AA1AE;
	margin-bottom: 6px;
	font-family: 'Montserrat', 'Inter', sans-serif;
}

/* Emplacements sidebar : centrés sur la largeur de la colonne */
.fads-slot--sidebar_300x250,
.fads-slot--sidebar_300x600 { max-width: 300px; }

/* La demi-page reste visible pendant la lecture */
.fads-slot--sidebar_300x600 { position: sticky; top: 66px; }

/* Bannière catégorie / accueil : espace sous la barre de navigation */
.fads-slot--category_top,
.fads-slot--homepage_top { margin-top: 0; }

/* Sticky mobile : masquée sur desktop, gérée par public.js */
.fads-sticky {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 600;
	background: #FFFFFF;
	box-shadow: 0 -4px 18px rgba(0, 40, 85, .18);
	padding: 6px 8px 8px;
	text-align: center;
}
.fads-sticky .fads-slot { margin: 0 auto; max-width: 320px; }
.fads-sticky .fads-label { margin-bottom: 4px; }
.fads-sticky__close {
	position: absolute;
	top: -14px; right: 12px;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: #D71920;
	color: #FFFFFF;
	border: 2px solid #FFFFFF;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 40, 85, .25);
}
.fads-sticky__close:hover { background: #A81318; }

@media (max-width: 768px) {
	/* Milieu d'article : desktop uniquement (lecture mobile préservée) */
	.fads-slot--article_middle { display: none; }
	/* Pas de sticky sidebar quand la colonne passe sous le contenu */
	.fads-slot--sidebar_300x600 { position: static; }

	.fads-sticky { display: block; }
	body.fads-has-sticky { padding-bottom: 78px; }
	/* Compatibilité thème Fameen News : le bouton "retour en haut" remonte */
	body.fads-has-sticky .fn-back-top { bottom: 92px; }
}
