/* CPG Réservation : formulaire [hb_booking_form] et récapitulatif [hb_reservation_summary].
   Couleur d'accent et polices : celles du site (kit Elementor), posées en variables par le module.
   Les sélecteurs sont préfixés pour l'emporter sur les styles de bouton du thème (bordure rose de Hello…). */
.cpg-resa-form, .cpg-resa-resume {
	--cpg-resa-accent: #333; --cpg-resa-accent-texte: #fff;
	--cpg-resa-police: inherit; --cpg-resa-police-titres: var(--cpg-resa-police);
	--cpg-resa-encre: #1d1d1f; --cpg-resa-gris: #6e6e73; --cpg-resa-trait: #dcdcdf; --cpg-resa-fond-doux: #f6f5f2;
	--cpg-resa-teinte: color-mix(in srgb, var(--cpg-resa-accent) 16%, #fff);
	max-width: 820px; margin: 0 auto; text-align: left;
	font-family: var(--cpg-resa-police); color: var(--cpg-resa-encre); font-size: 16px; line-height: 1.55;
}
.cpg-resa-form *, .cpg-resa-resume * { box-sizing: border-box; }
.cpg-resa-etape { margin: 0 0 8px; }
.cpg-resa-etape[hidden], .cpg-resa-form [hidden] { display: none !important; }

/* Carte du formulaire. */
.cpg-resa-form { background: #fff; padding: clamp(20px, 4vw, 40px); box-shadow: 0 18px 50px rgba(16, 16, 26, .10); border-top: 3px solid var(--cpg-resa-accent); }

/* Titres. */
.cpg-resa-form .cpg-resa-titre, .cpg-resa-resume h3 {
	font-family: var(--cpg-resa-police-titres); font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.25;
	margin: 0 0 22px; color: var(--cpg-resa-encre); letter-spacing: 0; text-transform: none;
}
.cpg-resa-form h3.cpg-resa-titre { font-size: 1.3rem; margin: 28px 0 14px; }

/* Champs. */
.cpg-resa-ligne { display: grid; grid-template-columns: 1fr 1fr minmax(110px, .6fr); gap: 16px; }
.cpg-resa-champ { display: block; margin: 0 0 16px; }
.cpg-resa-ligne .cpg-resa-champ { margin: 0; }
.cpg-resa-champ > span, .cpg-resa-champ > label {
	display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cpg-resa-gris);
}
.cpg-resa-form input[type="text"], .cpg-resa-form input[type="email"], .cpg-resa-form input[type="tel"],
.cpg-resa-form select, .cpg-resa-form textarea {
	width: 100%; max-width: 100%; min-height: 52px; padding: 12px 14px; margin: 0;
	font-family: inherit; font-size: 16px; color: var(--cpg-resa-encre); line-height: 1.4;
	background-color: #fff; border: 1px solid var(--cpg-resa-trait); border-radius: 0; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.cpg-resa-form textarea { min-height: 110px; }
.cpg-resa-form input:focus, .cpg-resa-form select:focus, .cpg-resa-form textarea:focus {
	outline: none; border-color: var(--cpg-resa-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cpg-resa-accent) 25%, transparent);
}
.cpg-resa-form select:disabled { background-color: var(--cpg-resa-fond-doux); color: var(--cpg-resa-encre); opacity: 1; }
.cpg-resa-form .cpg-resa-date {
	cursor: pointer; padding-right: 44px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='1.6'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='1'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 14px center / 20px;
}
.cpg-resa-form .cpg-resa-date::placeholder { color: #a1a1a6; }
.cpg-resa-grille { display: flex; flex-wrap: wrap; column-gap: 16px; }
.cpg-resa-grille .cpg-resa-plein { flex: 1 1 100%; }
.cpg-resa-grille .cpg-resa-demi { flex: 1 1 calc(50% - 8px); min-width: 200px; }

/* Boutons : accent du site, angles droits. */
.cpg-resa-form .cpg-resa-bouton, .cpg-resa-resume .cpg-resa-bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 14px 30px; margin: 0;
	font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
	background: var(--cpg-resa-accent); color: var(--cpg-resa-accent-texte); border: 1px solid var(--cpg-resa-accent); border-radius: 0;
	box-shadow: none; cursor: pointer; transition: filter .15s, background-color .15s, color .15s;
}
.cpg-resa-form .cpg-resa-bouton:hover, .cpg-resa-form .cpg-resa-bouton:focus { background: var(--cpg-resa-accent); color: var(--cpg-resa-accent-texte); border-color: var(--cpg-resa-accent); filter: brightness(.92); text-decoration: none; }
.cpg-resa-form .cpg-resa-bouton:focus-visible { outline: 2px solid var(--cpg-resa-encre); outline-offset: 2px; }
.cpg-resa-form .cpg-resa-bouton:disabled { opacity: .55; cursor: wait; filter: none; }
/* Boutons compacts : « Modifier la recherche » garde l'accent du site, « Précédent » est en contour. */
.cpg-resa-form .cpg-resa-modifier, .cpg-resa-form .cpg-resa-precedent { min-height: 42px; padding: 10px 18px; font-size: 12px; }
.cpg-resa-form .cpg-resa-precedent { background: transparent; color: var(--cpg-resa-encre); border-color: var(--cpg-resa-trait); }
.cpg-resa-form .cpg-resa-precedent:hover, .cpg-resa-form .cpg-resa-precedent:focus { background: var(--cpg-resa-fond-doux); color: var(--cpg-resa-encre); border-color: var(--cpg-resa-encre); filter: none; }
.cpg-resa-actions { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cpg-resa-haut { margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--cpg-resa-trait); }
.cpg-resa-form .cpg-resa-lien, .cpg-resa-resume .cpg-resa-lien {
	background: none; border: 0; padding: 0; min-height: 0; color: var(--cpg-resa-encre); font: inherit; font-size: 15px;
	text-decoration: underline; text-decoration-color: var(--cpg-resa-accent); text-underline-offset: 4px; cursor: pointer; box-shadow: none; letter-spacing: 0; text-transform: none;
}
.cpg-resa-form .cpg-resa-lien:hover, .cpg-resa-form .cpg-resa-lien:focus { background: none; color: var(--cpg-resa-encre); text-decoration-thickness: 2px; }

/* Messages. */
.cpg-resa-erreur { color: #b3261e; background: #fdf0ef; border-left: 3px solid #b3261e; padding: 12px 14px; margin: 16px 0 0; font-size: 15px; }
.cpg-resa-info { margin: 12px 0; }
.cpg-resa-petit { font-size: 14px; color: var(--cpg-resa-gris); margin: 12px 0; }
.cpg-resa-confidentialite a { color: inherit; text-decoration: underline; }

/* Résultat : disponibilité et prix. */
.cpg-resa-dispo { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; }
.cpg-resa-dispo::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--cpg-resa-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 14px; }
.cpg-resa-prix { margin: 4px 0 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.cpg-resa-prix strong { font-family: var(--cpg-resa-police-titres); font-weight: 400; font-size: clamp(2.2rem, 5vw, 2.9rem); line-height: 1.1; }
.cpg-resa-prix small { font-size: 14px; color: var(--cpg-resa-gris); }
.cpg-resa-detail { margin: 10px 0 0; padding: 14px 18px; background: var(--cpg-resa-fond-doux); }
.cpg-resa-detail p { margin: 0 0 6px; font-size: 14px; color: var(--cpg-resa-gris); }
.cpg-resa-detail ul, .cpg-resa-recap { list-style: none; margin: 0; padding: 0; }
.cpg-resa-detail li, .cpg-resa-recap li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--cpg-resa-trait); }
.cpg-resa-detail li:last-child { border-bottom: 0; }
.cpg-resa-recap li > span:first-child { color: var(--cpg-resa-gris); }
.cpg-resa-recap li > span:last-child { text-align: right; }
.cpg-resa-total { font-size: 1.1em; }
.cpg-resa-total strong { font-family: var(--cpg-resa-police-titres); font-weight: 400; font-size: 1.3em; }
.cpg-resa-resume-bloc { margin: 26px 0 0; padding: 20px 22px; background: var(--cpg-resa-fond-doux); }
.cpg-resa-resume-bloc h3 { margin-top: 0 !important; }

/* Services : cartes à cocher. */
.cpg-resa-option {
	display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 16px 18px; cursor: pointer;
	border: 1px solid var(--cpg-resa-trait); background: #fff; transition: border-color .15s, background-color .15s;
}
.cpg-resa-option:hover { border-color: var(--cpg-resa-gris); }
.cpg-resa-option:has(input:checked) { border-color: var(--cpg-resa-accent); background: var(--cpg-resa-teinte); }
.cpg-resa-option input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--cpg-resa-accent); }

/* Code promo. */
.cpg-resa-coupon-ligne { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.cpg-resa-coupon-ligne input { flex: 1 1 180px; width: auto !important; }
.cpg-resa-coupon-msg { color: #b3261e; font-size: 14px; }
.cpg-resa-stripe { margin: 14px 0; min-height: 40px; }
.cpg-resa-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Calendrier de choix des dates : deux mois côte à côte (un seul sur mobile), dans le flux de la page
   (il pousse le contenu au lieu de le recouvrir), dates choisies sur fond vert comme avant. */
.cpg-resa-form, .cpg-resa-resume { --cpg-resa-vert: #cdeccb; --cpg-resa-vert-clair: #e8f6e6; --cpg-resa-vert-texte: #1f5130; }
.cpg-resa-calendrier {
	margin: 4px 0 22px; padding: 16px 16px 12px; background: #fff; color: var(--cpg-resa-encre);
	border: 1px solid #ececef; box-shadow: 0 14px 36px rgba(16, 16, 26, .12);
}
.cpg-resa-cal-aide { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid #ececef; font-size: 15px; color: var(--cpg-resa-encre); text-align: center; }
.cpg-resa-cal-mois-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 22px; }
.cpg-resa-cal-mois + .cpg-resa-cal-mois { border-left: 1px solid #ececef; padding-left: 22px; }
.cpg-resa-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; min-height: 38px; }
.cpg-resa-cal-tete strong { font-family: var(--cpg-resa-police-titres); font-weight: 400; font-size: 1.1rem; text-transform: capitalize; white-space: nowrap; }
.cpg-resa-cal-vide { flex: 0 0 34px; }
.cpg-resa-form .cpg-resa-cal-nav {
	flex: 0 0 auto; width: 34px; height: 34px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	background: var(--cpg-resa-encre); color: #fff; border: 0; border-radius: 50%; font-size: 20px; line-height: 1; box-shadow: none; cursor: pointer;
}
.cpg-resa-form .cpg-resa-cal-nav:hover, .cpg-resa-form .cpg-resa-cal-nav:focus { background: var(--cpg-resa-accent); color: var(--cpg-resa-accent-texte); }
.cpg-resa-form .cpg-resa-cal-nav:disabled { opacity: .25; background: var(--cpg-resa-encre); color: #fff; cursor: default; }
.cpg-resa-cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cpg-resa-cal-js { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cpg-resa-gris); padding: 4px 0 8px; }
.cpg-resa-form .cpg-resa-cal-j {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; min-height: 0; padding: 0; margin: 0;
	font-family: inherit; font-size: 15px; font-weight: 400; color: var(--cpg-resa-encre); letter-spacing: 0; text-transform: none;
	background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
/* Jours libres : chiffres dans l'accent du site, en gras ; jours pris : simplement grisés. */
.cpg-resa-form button.cpg-resa-cal-j { cursor: pointer; color: var(--cpg-resa-accent); font-weight: 700; }
.cpg-resa-form button.cpg-resa-cal-j:hover { background: var(--cpg-resa-vert-clair); color: var(--cpg-resa-encre); }
.cpg-resa-form button.cpg-resa-cal-j:focus { background: transparent; color: var(--cpg-resa-accent); }
.cpg-resa-form button.cpg-resa-cal-j:focus-visible { outline: 2px solid var(--cpg-resa-accent); outline-offset: -2px; }
.cpg-resa-form .cpg-resa-cal-off { color: #c2c2c7; font-weight: 400; background: transparent; text-decoration: none; }
/* Demi-journées : arrivée seule ou départ seul, signalées par un coin grisé. */
.cpg-resa-form button.cpg-resa-etat-depart { background: linear-gradient(135deg, transparent 50%, #f0f0f1 50%); }
.cpg-resa-form button.cpg-resa-etat-arrivee { background: linear-gradient(135deg, #f0f0f1 50%, transparent 50%); }
.cpg-resa-form .cpg-resa-cal-sejour, .cpg-resa-form .cpg-resa-cal-sejour:hover { background: var(--cpg-resa-vert-clair) !important; color: var(--cpg-resa-vert-texte) !important; }
.cpg-resa-form .cpg-resa-cal-arrivee, .cpg-resa-form .cpg-resa-cal-depart,
.cpg-resa-form .cpg-resa-cal-arrivee:hover, .cpg-resa-form .cpg-resa-cal-depart:hover,
.cpg-resa-form .cpg-resa-cal-arrivee:focus, .cpg-resa-form .cpg-resa-cal-depart:focus { background: var(--cpg-resa-vert) !important; color: var(--cpg-resa-vert-texte) !important; font-weight: 700; }

/* Résumé de la recherche (après « Chercher »). */
.cpg-resa-recap-recherche { margin: 0 0 6px; }
.cpg-resa-recap-liste { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.cpg-resa-recap-liste li { display: flex; flex-direction: column; gap: 2px; }
.cpg-resa-recap-liste span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cpg-resa-gris); }
.cpg-resa-recap-liste strong { font-size: 18px; font-weight: 400; }
.cpg-resa-recap-recherche .cpg-resa-actions { margin: 16px 0 0; }
.cpg-resa-resultat { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--cpg-resa-trait); }

@media (max-width: 640px) {
	.cpg-resa-ligne { grid-template-columns: 1fr 1fr; }
	.cpg-resa-ligne .cpg-resa-adultes { grid-column: 1 / -1; }
	.cpg-resa-ligne { gap: 12px; }
	.cpg-resa-form .cpg-resa-date { padding-left: 10px; padding-right: 32px; font-size: 15px; background-position: right 8px center; background-size: 18px; }
	.cpg-resa-calendrier { padding: 14px 10px 10px; }
	.cpg-resa-form .cpg-resa-cal-j { height: 38px; }
	.cpg-resa-form .cpg-resa-actions .cpg-resa-bouton:not(.cpg-resa-modifier):not(.cpg-resa-precedent) { width: 100%; }
}

/* Récapitulatif de la page « Merci ». */
.cpg-resa-resume { padding: clamp(22px, 4vw, 40px); background: #fff; box-shadow: 0 18px 50px rgba(16, 16, 26, .10); border-top: 3px solid var(--cpg-resa-accent); }
.cpg-resa-merci-tete { text-align: center; padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px solid var(--cpg-resa-trait); }
.cpg-resa-merci-coche { display: inline-block; width: 62px; height: 62px; border-radius: 50%; margin: 0 0 16px;
	background: var(--cpg-resa-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 30px; }
.cpg-resa-merci-titre { font-family: var(--cpg-resa-police-titres); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; margin: 0 auto 10px; max-width: 560px; }
.cpg-resa-merci-titre strong { font-weight: 400; color: var(--cpg-resa-accent); word-break: break-word; }
.cpg-resa-merci-texte { margin: 0 auto; max-width: 560px; color: var(--cpg-resa-gris); }
.cpg-resa-resume h3 { margin: 0 0 6px; }
.cpg-resa-merci-espace { margin: 0 0 16px; color: var(--cpg-resa-gris); }
.cpg-resa-merci-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.cpg-resa-merci-dates div { padding: 14px 16px; background: var(--cpg-resa-fond-doux); }
.cpg-resa-merci-dates span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cpg-resa-gris); margin: 0 0 4px; }
.cpg-resa-merci-dates strong { font-size: 18px; font-weight: 400; }
.cpg-resa-resume .cpg-resa-total { border-bottom: 0; padding-top: 14px; }
.cpg-resa-resume .cpg-resa-total strong { font-family: var(--cpg-resa-police-titres); font-weight: 400; font-size: 1.6rem; }
@media (max-width: 560px) {
	.cpg-resa-merci-dates { grid-template-columns: 1fr 1fr; }
}

/* Navigateurs sans color-mix (Safari < 16.2) : teinte neutre. */
@supports not (color: color-mix(in srgb, red 50%, white)) {
	.cpg-resa-form, .cpg-resa-resume { --cpg-resa-teinte: #f1efe9; }
}
