/*
 * Fichier     : tel-resa-fermee.css
 * Destination : wp-content/themes/tel-divi-child/css/tel-resa-fermee.css
 * Provenance  : création (2026-11-20), maquettes « Popup hors saison » desktop et mobile
 * Version     : v1 – 2026-11-20
 * Rôle        : style de la popup « réservations fermées » (js/tel-resa-fermee.js). Écrite dans le <head>
 *               par functions.php, à la suite de style.css, seulement quand "reservations_fermees" vaut true.
 *               Couleurs et polices Canopée : Forêt #1F3A2B, Mousse #4E7029, Ocre #E3A23B (focus), Crème #F4F1E8,
 *               Encre #1F2A22, Texte secondaire #55604F ; Instrument Sans 600 (titre), Onest (texte, boutons).
 */
html.tel-rf-ouverte { overflow: hidden; }

dialog.tel-rf {
	position: fixed;
	inset: 0;
	margin: auto;
	padding: 0;
	width: min(520px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	overflow: auto;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: #1F2A22;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	font-family: 'Onest', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.6;
}
dialog.tel-rf[open] { animation: tel-rf-in .35s ease-out; }
dialog.tel-rf::backdrop { background: rgba(31, 42, 34, .6); }
@keyframes tel-rf-in { from { transform: translateY(24px); opacity: 0; } }

.tel-rf__lisiere { display: block; width: 100%; height: 104px; background: #1F3A2B; }
.tel-rf__lune { fill: #F4F1E8; opacity: .85; }
.tel-rf__loin { fill: #355840; }
.tel-rf__pres, .tel-rf__sol { fill: #4E7029; }

.tel-rf__x {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(244, 241, 232, .15);
	color: #F4F1E8;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.tel-rf__corps { padding: 32px 40px 36px; }
.tel-rf .tel-rf__eyb {
	margin: 0 0 8px;
	padding: 0;
	color: #4E7029;
	font-weight: 600;
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .12em;
}
.tel-rf .tel-rf__titre {
	margin: 0 0 14px;
	padding: 0;
	color: #1F2A22;
	font-family: 'Instrument Sans', system-ui, sans-serif;
	font-weight: 600;
	font-size: 30px;
	line-height: 1.1;
	letter-spacing: -.02em;
}
.tel-rf .tel-rf__txt { margin: 0 0 12px; padding: 0; color: #55604F; }

.tel-rf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tel-rf .tel-rf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 24px;
	border: 2px solid #1F3A2B;
	border-radius: 999px;
	font: 600 16px/1.2 'Onest', system-ui, sans-serif;
	text-decoration: none;
	cursor: pointer;
}
.tel-rf .tel-rf__btn--foret { background: #1F3A2B; color: #F4F1E8; }
.tel-rf .tel-rf__btn--foret:hover { background: #2a4d39; border-color: #2a4d39; }
.tel-rf .tel-rf__btn--discret { background: transparent; color: #1F3A2B; }
.tel-rf .tel-rf__btn--discret:hover { background: #F4F1E8; }

.tel-rf .tel-rf__tel { margin: 16px 0 0; padding: 0; font-size: 15px; color: #55604F; }
.tel-rf .tel-rf__tel a { color: #1F3A2B; font-weight: 600; white-space: nowrap; }

.tel-rf__x:focus-visible,
.tel-rf .tel-rf__btn:focus-visible,
.tel-rf .tel-rf__tel a:focus-visible { outline: 3px solid #E3A23B; outline-offset: 2px; }

/* Mobile : feuille posée en bas de l'écran, boutons pleine largeur. */
@media (max-width: 600px) {
	dialog.tel-rf {
		inset: auto 0 0 0;
		margin: 0;
		width: 100%;
		max-width: none;
		max-height: 92%;
		border-radius: 20px 20px 0 0;
	}
	.tel-rf__lisiere { height: 84px; }
	.tel-rf__corps { padding: 24px 22px calc(28px + env(safe-area-inset-bottom, 0px)); }
	.tel-rf .tel-rf__titre { font-size: 26px; }
	.tel-rf__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	dialog.tel-rf[open] { animation: none; }
}
