/*
 * Wrapper CSS for the [alliance-infirmiers] shortcode.
 *
 * The SPA itself lives inside the iframe and brings all of its own
 * styling — this file only styles the outer container, the toolbar
 * and the "Plein écran" button.
 */

.ai-frame-wrap {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto 1.5rem;
	background: #f4f7f9;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.ai-frame-wrap.ai-frame--bordered {
	border: 1px solid rgba(11, 114, 133, .15);
}

.ai-frame-toolbar {
	display: flex;
	justify-content: flex-end;
	padding: 6px 10px;
	background: rgba(11, 114, 133, .05);
	border-bottom: 1px solid rgba(11, 114, 133, .12);
}

.ai-frame-fullscreen {
	font-size: 0.82rem;
	font-weight: 600;
	color: #0b7285;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 14px;
	transition: background-color .15s;
}

.ai-frame-fullscreen:hover,
.ai-frame-fullscreen:focus {
	background: rgba(11, 114, 133, .12);
	text-decoration: none;
}

.ai-frame {
	display: block;
	width: 100%;
	height: var(--ai-frame-height, 90vh);
	min-height: 600px;
	border: 0;
	background: #f4f7f9;
}

/* Reduce min height on small screens so the page still has breathing room. */
@media (max-width: 600px) {
	.ai-frame {
		min-height: 480px;
	}
}
