/*
 * Tel Rose v3 — Socle commun.
 * Contient UNIQUEMENT ce qui est partagé par toutes les variantes :
 * reset, accessibilité, et la coquille de popup (le CONTENU de la popup
 * est stylé par chaque variante).
 */

/* ---------- Reset minimal ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
}

img,
picture,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

button {
	font: inherit;
	cursor: pointer;
}

/* ---------- Accessibilité ---------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Coquille de popup (appel / SMS) ---------- */

.telrose-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.telrose-popup.is-open {
	opacity: 1;
	pointer-events: auto;
}

.telrose-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(5, 3, 8, 0.82);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.telrose-popup__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.2s ease;
}

.telrose-popup.is-open .telrose-popup__box {
	transform: translateY(0) scale(1);
}

.telrose-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 18px;
	line-height: 1;
}

.telrose-popup__close:hover {
	background: rgba(255, 255, 255, 0.24);
}

body.telrose-popup-open {
	overflow: hidden;
}
