/* WP Andolsheim — module Alert. Encart coloré avec icône + titre + contenu libre.
   4 variants prédéfinis. Chacun a une couleur de fond et un texte contrastant.
   La pastille d'icône utilise un overlay sombre semi-transparent (rgba) qui marche
   pour tous les variants sans avoir à coder une couleur sp\xC3\xA9cifique par variant. */

.wpa-alert {
	display: block;
	padding: 1.25em 1.5em;
	color: #ffffff;
	background: #0379bf;
	border-radius: 0;
	margin:25px 0;
}

/* ---- 4 Variants ---- */

.wpa-alert--info {
	background: #0379bf;
	color: #ffffff;
}

.wpa-alert--success {
	background: #2d8a3e;
	color: #ffffff;
}

.wpa-alert--warning {
	background: #c98300;
	color: #ffffff;
}

.wpa-alert--danger {
	background: #c0392b;
	color: #ffffff;
}

/* ---- Header : icône badge + titre ---- */

.wpa-alert__header {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: 0.6em;
}

.wpa-alert__icon-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8em;
	height: 1.8em;
	background: rgba(0, 0, 0, 0.18);
	border-radius: 50%;
	color: inherit;
}

.wpa-alert__icon-badge .dashicons {
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1;
	color: inherit;
}

.wpa-alert__icon-badge > i {
	font-size: 1em;
	line-height: 1;
	color: inherit;
}

.wpa-alert__title {
	margin: 0;
	flex: 1 1 auto;
	font-weight: 700;
	font-size: 1.05em;
	color: inherit;
}

/* ---- Body : contenu des InnerBlocks ---- */

.wpa-alert__body {
	color: inherit;
}

.wpa-alert__body > :first-child { margin-top: 0; }
.wpa-alert__body > :last-child { margin-bottom: 0; }

/* Tous les paragraphes / titres / listes héritent de la couleur blanche. */
.wpa-alert__body p,
.wpa-alert__body li,
.wpa-alert__body strong,
.wpa-alert__body em,
.wpa-alert__body h1,
.wpa-alert__body h2,
.wpa-alert__body h3,
.wpa-alert__body h4,
.wpa-alert__body h5,
.wpa-alert__body h6 {
	color: inherit;
}

.wpa-alert__body a {
	color: inherit;
	text-decoration: underline;
}

.wpa-alert__body ul {
	margin: 0.4em 0;
	padding-left: 1.5em;
}

.wpa-alert__body ul li {
	margin: 0.3em 0;
}

/* ---- Aperçu éditeur : RichText du titre doit rester éditable ---- */

.editor-styles-wrapper .wpa-alert__title {
	outline: none;
	min-width: 1em;
}
