/* style the announcement banner */
/*.phpbb_announcement {
	font-size: 0.85rem;
	background-color: #fdf6e3;
	border-radius: 7px;
	position: relative;
	margin: 10px 0;
	padding: 10px;
}*/

/* Nouveau style du cadre au 21/04/2025 */
.phpbb_announcement {
	font-size: 0.95rem;
	background-color: #2e2b26; /* fond sombre type cuir */
	background-image: linear-gradient(145deg, #2e2b26, #1e1c1a);
	color: #e7d9b9; /* couleur texte type parchemin */
	border: 2px solid #8c6f47; /* contour cuivré */
	border-radius: 10px;
	padding: 16px;
	margin: 15px 0;
	box-shadow: 0 0 8px rgba(0,0,0,0.6), inset 0 0 10px rgba(255, 255, 255, 0.05);
	font-family: 'Georgia', serif; /* ou une police fantasy si tu veux en rajouter */
}

/* zero out any text margins and scroll any overflow */
.phpbb_announcement div {
	font-size: 0.75rem;
	line-height: 1.25rem;
	overflow: auto hidden;
	margin: 0;
}

/* make posted images responsive */
.phpbb_announcement .postimage {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	max-width: 100%;
}

/* style the close button */
.phpbb_announcement .close {
	opacity: 0.6;
	position: absolute;
	z-index: 999;
	top: 4px;
	right: 4px;
	left: auto;
}

/* reposition close button for right-to-left languages */
.rtl .phpbb_announcement .close {
	right: auto;
	left: 4px;
}

/* hide close button on desktops by default */
.notouch .phpbb_announcement .close {
	opacity: 0;
	transition: opacity 0.5s;
}

/* display the close button on mouse-over of the banner */
.notouch .phpbb_announcement:hover .close {
	opacity: 0.6;
}

/* fix for lists, force them to display inside containing div */
.phpbb_announcement ul,
.phpbb_announcement ol {
	margin-left: 20px;
}

.rtl .phpbb_announcement ul,
.rtl .phpbb_announcement ol {
	margin-right: 20px;
	margin-left: 0;
}

/* Ajout du 21/04/2025 pour test */

/* Assurer que chaque annonce est le conteneur du bouton */
.phpbb_announcement {
    position: relative;
}

/* Repositionner le bouton “fermer” à l’intérieur du cadre */
.phpbb_announcement .close {
    position: absolute;
    top:    8px !important;    /* distance depuis le haut du cadre */
    right:  8px !important;    /* distance depuis le bord droit */
    left:   auto !important;   /* annule tout décalage gauche éventuel */
    opacity: 0.6;
    z-index: 999;
}

/* Si vous voulez qu’il soit toujours visible, même sur mobile : */
.phpbb_announcement .close {
    opacity: 1 !important;
}

/* (Optionnel) Modifier l’opacité au survol pour desktop */
.notouch .phpbb_announcement .close {
    opacity: 0; 
    transition: opacity 0.3s;
}
.notouch .phpbb_announcement:hover .close {
    opacity: 1;
}
