/* =============================================================================
   YYG Instagram Popup – Feuille de style
   Compatible : tous navigateurs modernes, responsive mobile.
   ============================================================================= */

/* ── Bouton flottant ─────────────────────────────────────────────────────── */

.yyg-ig-popup-btn {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 99990;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Dégradé fidèle à la charte graphique Instagram */
	background: linear-gradient(
		135deg,
		#f58529  0%,
		#dd2a7b 40%,
		#8134af 70%,
		#515bd4 100%
	);
	color: #ffffff;
	padding: 0;
	box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.28 );
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yyg-ig-popup-btn:hover {
	transform: scale( 1.1 );
	box-shadow: 0 7px 26px rgba( 0, 0, 0, 0.38 );
}

.yyg-ig-popup-btn:focus-visible {
	outline: 3px solid #dd2a7b;
	outline-offset: 4px;
	transform: scale( 1.05 );
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */

.yyg-ig-popup-overlay {
	position: fixed;
	inset: 0; /* top/right/bottom/left = 0 */
	z-index: 99999;
	background-color: rgba( 0, 0, 0, 0.65 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;

	/* État initial : invisible */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.yyg-ig-popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.yyg-ig-popup-modal {
	position: relative;
	background: #ffffff;
	border-radius: 14px;
	width: 100%;
	max-width: 740px;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba( 0, 0, 0, 0.38 );

	/* Animation d'entrée */
	transform: translateY( 24px ) scale( 0.98 );
	transition: transform 0.28s cubic-bezier( 0.34, 1.2, 0.64, 1 );
}

.yyg-ig-popup-overlay.is-open .yyg-ig-popup-modal {
	transform: translateY( 0 ) scale( 1 );
}

/* ── En-tête de la modal ─────────────────────────────────────────────────── */

.yyg-ig-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #efefef;
	flex-shrink: 0;
}

.yyg-ig-popup-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111111;
	line-height: 1.3;
}

/* ── Bouton fermer ───────────────────────────────────────────────────────── */

.yyg-ig-popup-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background-color: #f3f3f3;
	color: #555555;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.yyg-ig-popup-close:hover {
	background-color: #dd2a7b;
	color: #ffffff;
}

.yyg-ig-popup-close:focus-visible {
	outline: 3px solid #dd2a7b;
	outline-offset: 3px;
	background-color: #dd2a7b;
	color: #ffffff;
}

/* ── Contenu scrollable ──────────────────────────────────────────────────── */

.yyg-ig-popup-content {
	overflow-y: auto;
	padding: 20px;
	flex: 1;
	-webkit-overflow-scrolling: touch; /* défilement fluide sur iOS */
}

/* ── Responsive mobile ───────────────────────────────────────────────────── */

@media ( max-width: 480px ) {

	.yyg-ig-popup-btn {
		width: 50px;
		height: 50px;
		bottom: 18px;
		right: 18px;
	}

	.yyg-ig-popup-modal {
		max-height: 93vh;
		border-radius: 10px;
	}

	.yyg-ig-popup-header {
		padding: 13px 14px;
	}

	.yyg-ig-popup-title {
		font-size: 0.95rem;
	}

	.yyg-ig-popup-content {
		padding: 14px;
	}
}
