/*
 * Page Contact (elements V4 + formulaire V3) : ce que les styles atomiques
 * ne savent pas exprimer. Chargee seulement sur les pages de hiricominfo_pages_contact().
 */

/* Badge « ouvert / fermé » (#hc-statut, rempli par contact.js). */
#hc-statut .hc-point {
	display: inline-block;
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin-right: 10px;
	border-radius: 50%;
	background: #FCA5A5;
}
#hc-statut .hc-point--ouvert {
	background: #4ADE80;
	box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
	animation: hc-pulsation 2s infinite;
}
@keyframes hc-pulsation {
	70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
	100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Jour en cours dans les horaires. */
.hc-aujourdhui {
	background: #E0F2F1;
	box-shadow: inset 3px 0 0 #007371;
}
.hc-aujourdhui > :first-child::after {
	content: " · aujourd’hui";
	font-weight: 500;
	color: #007371;
}

/* Fermeture exceptionnelle annoncée sous les horaires (contact.js). */
.hc-fermeture {
	margin: 8px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #FDF6E3;
	box-shadow: inset 3px 0 0 #D4A843;
	color: #1F2937;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.5;
}

/* Liens dans les textes de la page (réponses, renvoi vers la FAQ). */
.hc-page-contact .e-paragraph-base a,
.hc-page-contact p a {
	color: #007371;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Formulaire V3 : focus des champs. */
.hc-formulaire .elementor-field-textual:focus {
	border-color: #007371 !important;
	background-color: #FFFFFF !important;
	box-shadow: 0 0 0 3px rgba(0, 115, 113, .15);
	outline: none;
}

/* Objet de la demande : boutons radio en pastilles. */
.hc-formulaire .elementor-field-type-radio .elementor-field-subgroup {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.hc-formulaire .elementor-field-type-radio .elementor-field-option {
	position: relative;
	margin: 0;
}
.hc-formulaire .elementor-field-type-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.hc-formulaire .elementor-field-type-radio .elementor-field-option label {
	display: inline-block;
	margin: 0;
	padding: 9px 16px;
	border: 1.5px solid #D5DBE1;
	border-radius: 999px;
	background: #F7F8FA;
	color: #1F2937;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.hc-formulaire .elementor-field-type-radio .elementor-field-option label:hover {
	border-color: #42A8A5;
	background: #E0F2F1;
}
.hc-formulaire .elementor-field-type-radio input:checked + label {
	border-color: #007371;
	background: #007371;
	color: #FFFFFF;
}
.hc-formulaire .elementor-field-type-radio input:focus-visible + label {
	outline: 2px solid #007371;
	outline-offset: 2px;
}

/* Réduire les animations : le moteur d'Interactions d'Elementor n'en tient
   pas compte. !important passe devant ses styles en ligne et ses animations.
   Elementor 4.4 repère chaque élément atomique par data-interaction-id (les
   animations elles-mêmes sont dans le bloc de données elementor-interactions-data). */
@media (prefers-reduced-motion: reduce) {
	.hc-page-contact [data-interaction-id] {
		opacity: 1 !important;
		transform: none !important;
	}
	.hc-page-contact *,
	.hc-page-contact *::before,
	.hc-page-contact *::after {
		animation: none !important;
		transition: none !important;
	}
}
