/* Bouton b.connect — assets officiels SVG, wrapper minimal. */

.bconnect-button-wrap {
	flex-direction: column;
	gap: 4px;
	margin: 16px 0;
}

/* Rendu automatique (hook login/register/checkout WordPress ou WooCommerce) :
   centré, comportement historique inchangé. */
.bconnect-button-wrap--auto {
	display: flex;
	align-items: center;
}

/* Rendu via [bconnect_button] : élément naturel du flux, plaçable librement
   dans Gutenberg (ex. à côté d'un bouton WordPress dans une Rangée), sans
   centrage global forcé. Le badge mock reste sous le bouton (flex column). */
.bconnect-button-wrap--shortcode {
	display: inline-flex;
	align-items: flex-start;
}

/* Réglage marchand "Alignement du bouton (shortcode)" — sans effet sur le rendu auto. */
.bconnect-button-wrap--shortcode.bconnect-button-wrap--align-center {
	display: flex;
	align-items: center;
}

.bconnect-button {
	display: inline-block;
	line-height: 0;
	transition: opacity 0.15s ease;
}

.bconnect-button:hover,
.bconnect-button:focus {
	opacity: 0.85;
}

.bconnect-button img {
	max-width: 100%;
	width: 320px;
	height: auto;
	display: block;
}

.bconnect-button-caption {
	margin: 4px 0 0;
	font-size: 13px;
}

.bconnect-mock-badge {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #fff;
	background: #c0392b;
	padding: 2px 8px;
	border-radius: 3px;
	text-transform: uppercase;
}

.bconnect-notice {
	margin: 12px 0;
}

.bconnect-notice-front {
	max-width: 720px;
	margin: 16px auto;
	padding: 12px 16px;
	background: #f0f4ff;
	border-left: 4px solid #16326e;
	font-size: 14px;
}

/* Écran de login WordPress : le formulaire est étroit. */
.login .bconnect-button img {
	width: 100%;
}

/* Contexte "link" (appairage) : rendu sobre et compact, aligné à gauche —
   utilisé notamment dans wp-admin/profile.php, sous le texte de statut. */
.bconnect-button-wrap--link {
	align-items: flex-start;
}

.bconnect-button-wrap--link .bconnect-button img {
	width: 160px;
}

/* Bloc slogan + séparateur « ou » — wp-login.php uniquement (contexte
   "login", source "auto"), au-dessus du bouton. */
.bconnect-login-intro {
	margin: 16px 0 4px;
	text-align: center;
}

.bconnect-separator {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	color: #646970;
	font-size: 13px;
}

.bconnect-separator::before,
.bconnect-separator::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #dcdcde;
}

.bconnect-pitch {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #3c434a;
}

.bconnect-more {
	margin: 0 0 12px;
	font-size: 13px;
}

/* --- Modale « En savoir plus » — wp-login.php uniquement. Toutes les règles
   sont préfixées .bconnect-modal* pour éviter toute collision ; ces classes
   n'existent que sur l'écran de connexion. --- */

.bconnect-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

/* Masquage initial fiable : prime sur display:flex. */
.bconnect-modal[hidden] {
	display: none;
}

.bconnect-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.6 );
}

.bconnect-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	/* Plein écran, sans marge : la modale distante (bconnect.net) est conçue
	   pour occuper tout le viewport, pas pour être encadrée avec un fond
	   visible autour (constaté : un cadre plus petit laisse voir le fond
	   assombri de la modale au-dessus/en dessous, à tort perçu comme une
	   "barre grise" de leur contenu). */
	width: 100%;
	height: 100%;
	background: #fff;
	overflow: hidden;
}

.bconnect-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid #dcdcde;
}

.bconnect-modal__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
	color: #1d2327;
}

.bconnect-modal__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: #50575e;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}

.bconnect-modal__close:hover,
.bconnect-modal__close:focus {
	color: #1d2327;
	background: #f6f7f7;
	border-color: #dcdcde;
}

.bconnect-modal__body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: #fff;
}

.bconnect-modal__loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 16px;
	font-size: 14px;
	color: #50575e;
	text-align: center;
	background: #fff;
}

.bconnect-modal__loading[hidden] {
	display: none;
}

.bconnect-modal__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Blocage du défilement de la page pendant l'ouverture. */
body.bconnect-modal-open {
	overflow: hidden;
}

