/**
 * Helo Consultations — front.
 * Charte du site Héloïse Capmeil : police Quicksand, bleu de marque #5590d0
 * (titres, ronds pleins, boutons-pilule), neutres clairs. Les couleurs de texte
 * sur fond coloré sont forcées (!important) pour passer outre les styles Enfold.
 */

.hc-booking {
	/*
	 * Deux bleus, même teinte (211°) et même saturation que le bleu de marque :
	 *  --hc-blue      #5590d0 : aplats et décor uniquement (3.34:1 sur blanc).
	 *  --hc-blue-text #3577c0 : dès qu'il y a du TEXTE, dessus ou dessous
	 *                           (4.61:1 dans les deux sens = WCAG AA).
	 * Le bleu de marque ne porte jamais de texte : à 3.34:1 il échouait le
	 * critère 1.4.3, y compris sur le bouton d'envoi.
	 */
	--hc-blue: #5590d0;
	--hc-blue-text: #3577c0;
	--hc-blue-strong: #2d68ab;
	--hc-accent: #6c9ed4;
	--hc-cyan: #bde5f0;
	--hc-ink: #33475c;
	--hc-muted: #5a6b7d;
	--hc-line: #dbe5f0;
	/* Bordure des champs : seul indicateur visuel du champ, donc ≥ 3:1 (1.4.11). */
	--hc-line-field: #7d97b4;
	--hc-soft: #f3f8fc;
	--hc-radius: 16px;
	--hc-shadow: 0 10px 30px -16px rgba(53, 96, 150, 0.35);

	max-width: 720px;
	margin: 0 auto;
	/* Les séparateurs Enfold (.hr) sont flottants : sans ce clear, celui qui
	   précède le shortcode venait se loger dans la carte du formulaire. */
	clear: both;
	font-family: 'Quicksand', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color: var(--hc-ink);
	-webkit-font-smoothing: antialiased;
}

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

/* ---- Carte ---- */
.hc-form,
.hc-cancel {
	background: #fff;
	border: 1px solid var(--hc-line);
	border-radius: var(--hc-radius);
	box-shadow: var(--hc-shadow);
	padding: 32px 32px 28px;
}

/* ---- Étapes ---- */
.hc-step {
	position: relative;
	padding: 0 0 24px 54px;
	margin: 0 0 24px;
	border-bottom: 1px solid var(--hc-line);
}
/* Classe explicite plutôt que :last-of-type, qui vise le dernier <div> du
   formulaire et casserait si un autre div s'y glissait. */
.hc-step--last {
	border-bottom: 0;
	margin-bottom: 16px;
}
.hc-step__num {
	position: absolute;
	left: 0;
	top: 0;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--hc-blue);
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
}
.hc-step__title {
	margin: 2px 0 6px !important;
	padding: 0;
	font-family: inherit;
	font-size: 21px !important;
	font-weight: 500 !important;
	line-height: 1.25;
	color: var(--hc-blue-text) !important;
	letter-spacing: 0.2px;
}
.hc-step__desc {
	margin: 0 0 16px;
	color: var(--hc-muted);
	font-size: 14px;
}

/* ---- Pastilles (motif) ---- */
.hc-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.hc-pill {
	position: relative;
	cursor: pointer;
	margin: 0;
}
.hc-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.hc-pill span {
	display: inline-block;
	padding: 11px 22px;
	border: 1.5px solid var(--hc-line);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	color: var(--hc-ink);
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.hc-pill:hover span {
	border-color: var(--hc-accent);
}
.hc-pill input:checked + span {
	background: var(--hc-blue-text);
	border-color: var(--hc-blue-text);
	color: #fff !important;
	box-shadow: 0 8px 18px -10px rgba(53, 96, 150, 0.7);
}
.hc-pill input:focus-visible + span {
	outline: 3px solid var(--hc-cyan);
	outline-offset: 2px;
}

/* ---- Sélecteur de jour ---- */
.hc-select {
	width: 100%;
	max-width: 360px;
	margin-top: 14px;
	padding: 13px 42px 13px 16px;
	font-family: inherit;
	font-size: 15px;
	color: var(--hc-ink) !important;
	background-color: #fff;
	border: 1.5px solid var(--hc-line-field);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235590d0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.hc-select:focus {
	outline: none;
	border-color: var(--hc-blue-text);
	box-shadow: 0 0 0 3px var(--hc-cyan);
}

/* ---- Créneaux ---- */
.hc-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}
.hc-slots__hint {
	margin: 4px 0;
	color: var(--hc-muted);
	font-size: 14px;
	font-style: italic;
}
.hc-slot {
	appearance: none;
	border: 1.5px solid var(--hc-line-field);
	background: #fff;
	color: var(--hc-blue-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 17px;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.hc-slot:hover {
	border-color: var(--hc-accent);
	background: var(--hc-soft);
}
.hc-slot:active {
	transform: translateY(1px);
}
.hc-slot.is-selected {
	background: var(--hc-blue-text);
	border-color: var(--hc-blue-text);
	color: #fff !important;
	box-shadow: 0 8px 18px -10px rgba(53, 96, 150, 0.7);
}
.hc-slot:focus-visible {
	outline: 3px solid var(--hc-cyan);
	outline-offset: 2px;
}

/* Zone d'annonce (lecteurs d'écran + retour visuel discret). Reste dans le flux
   pour que le message « choisissez un horaire » soit vu aussi à l'écran. */
.hc-status {
	margin: 10px 0 0;
	min-height: 1.4em;
	font-size: 14px;
	font-weight: 600;
	color: var(--hc-blue-text);
}
.hc-status:empty {
	margin: 0;
	min-height: 0;
}

/* ---- Coordonnées ---- */
.hc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 14px;
}
.hc-field {
	margin: 0;
}
.hc-field--full {
	grid-column: 1 / -1;
}
.hc-field label {
	display: block;
	margin: 0 0 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hc-ink) !important;
}
.hc-req {
	color: var(--hc-blue-text);
}
.hc-field input,
.hc-field textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--hc-ink) !important;
	background: #fff !important;
	border: 1.5px solid var(--hc-line-field) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.hc-field__help {
	display: block;
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--hc-muted);
}
.hc-field textarea {
	resize: vertical;
	min-height: 96px;
}
.hc-field input:focus,
.hc-field textarea:focus {
	outline: none;
	border-color: var(--hc-blue-text) !important;
	box-shadow: 0 0 0 3px var(--hc-cyan) !important;
}

/* ---- Consentement ---- */
.hc-consent {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 4px 0 24px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--hc-muted);
}
.hc-consent input {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	accent-color: var(--hc-blue-text);
	flex: 0 0 auto;
}
.hc-consent a {
	color: var(--hc-blue-text);
	font-weight: 600;
}

/* ---- Bouton (pilule, comme le site) ---- */
.hc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: #fff !important;
	background: var(--hc-blue-text);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 12px 26px -14px rgba(53, 96, 150, 0.85);
	transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hc-submit:hover {
	background: var(--hc-blue-strong);
	box-shadow: 0 16px 32px -14px rgba(53, 96, 150, 0.95);
}
.hc-submit:active {
	transform: translateY(1px);
}
.hc-submit:focus-visible {
	outline: 3px solid var(--hc-cyan);
	outline-offset: 3px;
}
/* Envoi en cours : le bouton est verrouillé par le JS pour éviter qu'un
   double-clic n'enregistre deux demandes. */
.hc-submit:disabled,
.hc-submit.is-sending {
	background: var(--hc-muted);
	box-shadow: none;
	cursor: progress;
	transform: none;
}
.hc-submit--danger {
	width: auto;
	background: #c0392b;
	box-shadow: 0 12px 26px -14px rgba(192, 57, 43, 0.6);
}
.hc-submit--danger:hover {
	background: #a93226;
}

/* ---- Notices ---- */
.hc-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 20px;
	border-radius: 12px;
	margin-bottom: 22px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}
.hc-notice__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.hc-notice--success {
	background: #e9f7ef;
	border: 1px solid #46b974;
	color: #1e7e44;
}
.hc-notice--success .hc-notice__icon {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231e7e44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.hc-notice--error {
	background: #fdecea;
	border: 1px solid #e0796f;
	color: #b71c1c;
}
.hc-notice--error .hc-notice__icon {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23b71c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}
.hc-notice--maintenance {
	background: #eef4fb;
	border: 1px solid var(--hc-accent);
	color: #34557d;
}
.hc-notice--maintenance .hc-notice__icon {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2334557d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

/* ---- Annulation ---- */
.hc-cancel h3 {
	margin: 0 0 12px !important;
	color: var(--hc-blue-text) !important;
	font-size: 22px !important;
	font-weight: 500 !important;
}
.hc-cancel p {
	color: var(--hc-muted);
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 20px;
}

/* ---- Honeypot ---- */
.hc-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.hc-form,
	.hc-cancel {
		padding: 24px 18px;
	}
	.hc-step {
		padding-left: 46px;
	}
	.hc-step__title {
		font-size: 19px !important;
	}
	.hc-grid {
		grid-template-columns: 1fr;
	}
	.hc-select {
		max-width: 100%;
	}
}

/* =======================================================================
 * Consultation par e-mail ([helo_consultation_email])
 * ===================================================================== */

.hc-optional {
	font-weight: 400;
	font-size: 13px;
	color: var(--hc-muted);
}

/* Champ de rédaction long : c'est la pièce maîtresse de ce formulaire. */
.hc-booking--email .hc-field textarea {
	min-height: 260px;
	line-height: 1.6;
}

.hc-counter {
	margin: 6px 0 0;
	text-align: right;
	font-size: 13px;
	color: var(--hc-muted);
	min-height: 1.2em;
}
.hc-counter.is-warning {
	color: #b45309;
	font-weight: 600;
}

/* Rappel de confidentialité : une promesse explicite, pas une mention légale
   noyée. Ton informatif (bleu), jamais alarmant. */
.hc-privacy-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 0;
	padding: 12px 15px;
	background: var(--hc-soft);
	border: 1px solid var(--hc-line);
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--hc-muted);
}
.hc-privacy-note__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233577c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* État d'envoi : le bouton se verrouille, l'utilisateur voit que ça part. */
.hc-submit:disabled,
.hc-submit.is-sending {
	background: var(--hc-muted);
	cursor: progress;
	box-shadow: none;
}
.hc-submit:disabled:hover,
.hc-submit.is-sending:hover {
	background: var(--hc-muted);
	box-shadow: none;
}

/* Libellé réservé aux lecteurs d'écran. */
.hc-booking .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;
}

/* Brouillon récupéré après une erreur : information, pas alerte. */
.hc-counter.is-restored {
	color: var(--hc-blue-text);
	font-weight: 600;
	text-align: left;
}
