/* ============================================================
   Modale du sélecteur de langue (header partagé)
   Déclencheur : .change_lang_btn
   Contenu   : conteneur Elementor portant l'ID #cef-lang-popup
   ============================================================ */

/*
 * IMPORTANT : le conteneur #cef-lang-popup reste DANS le header. Son layout
 * (flex-direction, gap, alignements) vient des règles Elementor scopées au
 * header (.elementor-XXXX .elementor-element-...). On n'ajoute ici QUE le
 * « chrome » de la modale : positionnement centré, fond blanc, ombre, overlay.
 */

/* Overlay plein écran (créé par le JS). */
.cef-lang-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999998;
	background: rgba(0, 0, 0, 0.6);
}

.cef-lang-popup-overlay.is-open {
	display: block;
}

/* Carte = conteneur Elementor, centré au-dessus de l'overlay. */
#cef-lang-popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	z-index: 999999;
	max-width: 350px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 24px 32px;
	-webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

#cef-lang-popup.is-open {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}

/* Verrouille le scroll de la page quand la modale est ouverte. */
body.cef-lang-popup-open {
	overflow: hidden;
}

/* Bouton de fermeture (ajouté automatiquement par cef-lang-popup.js). */
.cef-lang-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	color: rgba(0, 0, 0, 0.45);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	-webkit-transition: color 0.2s ease, opacity 0.2s ease;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.cef-lang-popup__close:hover,
.cef-lang-popup__close:focus {
	background: transparent;
	color: rgba(0, 0, 0, 0.8);
	opacity: 1;
}

