/*
 * Modale à iframe (.c-modal.-iframe) — « Rejoindre l'équipe » → emploi.delice.ca
 * (views/partials/blocks/job-offers.twig, 2026-11-18).
 *
 * ⚠️ HORS de mainCss.css EXPRÈS : la compilation Vite du CSS ne redonne pas le
 *   mainCss.css actuel (minifieur/cibles différents, ~3 400 règles réécrites,
 *   mesuré le 2026-11-18) ; la recompiler pour une modale risquait des écarts
 *   sur tout le site. Le JS, lui, se recompile à l'identique.
 * La base (position, apparition, z-index) vient de .c-modal (_modal.scss).
 * Fermer : bouton reprenant .c-sidesheet_close (carré rouge du thème).
 */
.c-modal.-iframe {
	display: flex;
	width: min(calc(100vw - var(--container-spacing-md) * 2), 960px);
	height: calc(100dvh - var(--container-spacing-md) * 2);
	background-color: var(--neutral-300);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.c-modal.-iframe .c-modal_close {
	top: 0;
	right: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background-color: var(--primary-500);
	color: var(--on-primary-500);
}

.c-modal_frame {
	flex: 1;
	width: 100%;
	height: 100%;
	border: 0;
	background-color: var(--neutral-300);
}

/* Téléphone : plein écran (une marge autour d'un formulaire ne sert à rien). */
@media (max-width: 700px) {
	.c-modal.-iframe {
		width: 100vw;
		height: 100dvh;
	}
}
