/* ==========================================================================
   Pages « singulières » (Qui sommes-nous ?, Contact) : composants hys-* de /root/build/gabarit-singulier.php.
   Chargé après style.css. Couleurs : variables du thème (--hy-*), elles-mêmes branchées sur le Kit.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Frise « Notre histoire » (Loop Carousel du CPT timeline)
   -------------------------------------------------------------------------- */
.hys-timeline {
	--hys-pas: 80px; /* = espace entre les étapes du carrousel */
}

.hys-frise-bloc {
	width: 100%;
	line-height: 0;
}

.hys-frise {
	position: relative;
	display: block;
	height: 20px;
	margin-bottom: 14px;
}

.hys-frise::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--hy-grisbleu);
}

/* Filet ocre du point jusqu'au point suivant, qui s'estompe. */
.hys-frise::after {
	content: "";
	position: absolute;
	left: 32px;
	top: 9px;
	width: calc(100% + var(--hys-pas) - 48px);
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--hy-ocre), rgba(196, 168, 135, .18));
}

.hys-timeline .swiper-slide:last-of-type .hys-frise::after {
	content: none;
}

.hys-etape-annee .elementor-heading-title {
	font-variant-numeric: lining-nums;
}

@media (max-width: 1024px) {
	.hys-timeline {
		--hys-pas: 48px;
	}
}

@media (max-width: 767px) {
	.hys-timeline {
		--hys-pas: 24px;
	}
}

/* Bouton « Notre histoire » du hero : flèche qui part à droite puis descend (maquette). Contournement : la classe
   partagée hy-fleche-descend (style.css) dessine la flèche vers le haut. */
.hys-btn-descend .elementor-button-content-wrapper::after {
	transform: rotate(-90deg);
}

/* FAQ sur panneau clair : la couleur des h3 du Kit (crème) l'emportait sur celle de la question. */
.hy-clair .hy-faq .hy-faq__titre {
	color: var(--hy-faq-texte);
}

.hy-clair .hy-faq .hy-faq__question:hover .hy-faq__titre {
	color: var(--hy-ocre-survol);
}

/* --------------------------------------------------------------------------
   Fondatrices, partenaires, équipe
   -------------------------------------------------------------------------- */
.hys-fondatrice,
.hys-partenaire {
	border: 1px solid rgba(245, 240, 230, .08);
}

.hys-partenaire-logo img {
	display: block;
	width: 373px;
	max-width: 100%;
	height: auto;
}

.hys-separateur-bloc {
	width: 100%;
	line-height: 0;
}

.hys-separateur {
	width: 100%;
	height: 1px;
	margin: 0;
	border: 0;
	background: rgba(196, 168, 135, .3);
}

.hys-chiffre-carte {
	width: auto !important;
	max-width: 100%;
}

.hys-chiffre-carte > .e-con {
	width: auto;
}

/* Dernier panneau clair avant le bloc CTA du pied de page : le fond crème continue derrière le bloc (maquette). */
.hy-panneau.hys-panneau--fin {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

body:has(.hys-panneau--fin) .pb-cta-zone {
	background-color: var(--hy-creme);
	background-image: url(../img/motif-clair.svg);
	background-size: 1319px 725px;
	background-position: center top;
}

/* --------------------------------------------------------------------------
   Page entièrement claire (Contact) : fond de page crème, coins du hero compris ; le pied de page sombre suit.
   -------------------------------------------------------------------------- */
body:has(.hys-panneau--page) {
	background-color: var(--hy-creme);
	background-image: url(../img/motif-clair.svg);
}

.hy-panneau.hys-panneau--page {
	border-radius: 0;
	background: none !important;
}

/* Voile uniforme du hero de la page Contact (maquette : noir 60 à 80 %). */
.hy-hero.hys-hero--contact.e-con::before {
	background-image: linear-gradient(180deg, rgba(29, 29, 27, .7) 0%, rgba(29, 29, 27, .6) 46%, rgba(29, 29, 27, .8) 100%) !important;
	background-color: transparent !important;
}

/* --------------------------------------------------------------------------
   Carte du formulaire
   -------------------------------------------------------------------------- */
.hys-carte-form {
	box-shadow: 0 16px 20px rgba(0, 0, 0, .04);
}

.hys-form {
	--pb-form-etiquette-fond: #FAF7F2;
	width: 100%;
}

.hys-form .elementor-field-group .elementor-field-textual {
	min-height: 0;
	height: 72px;
	padding: 0 20px;
	border: 1px solid rgba(29, 29, 27, .08);
	border-radius: 8px;
	background: var(--hy-creme);
	color: var(--hy-noir);
	transition: border-color .25s ease, box-shadow .25s ease;
}

.hys-form .elementor-field-group textarea.elementor-field-textual {
	height: 188px;
	padding: 20px;
	resize: vertical;
}

.hys-form .elementor-field-textual::placeholder {
	color: rgba(29, 29, 27, .4);
	opacity: 1;
}

.hys-form select.elementor-field-textual.is-vide {
	color: rgba(29, 29, 27, .4);
}

.hys-form .elementor-field-textual:hover {
	border-color: rgba(29, 29, 27, .25);
}

.hys-form .elementor-field-textual:focus {
	border-color: var(--hy-ocre);
	box-shadow: 0 0 0 3px rgba(196, 168, 135, .3);
	outline: 0;
}

/* Liste : chevron de la maquette à la place de celui d'Elementor. */
.hys-form .select-caret-down-wrapper {
	display: none;
}

.hys-form .elementor-select-wrapper {
	position: relative;
	width: 100%;
}

.hys-form .elementor-select-wrapper::before {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 12px;
	height: 7px;
	margin-top: -3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M.75 0a.75.75 0 0 0-.56 1.16l5.25 5.6a.77.77 0 0 0 1.12 0l5.25-5.6A.75.75 0 0 0 11.25 0H.75Z' fill='%23161925' fill-opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

.hys-form select.elementor-field-textual {
	padding-right: 48px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

/* Libellé du groupe « Sujet » (les champs de saisie ont le libellé flottant du socle). */
.hys-form .elementor-field-type-radio > .elementor-field-label {
	margin-bottom: 12px;
	color: var(--hy-noir);
	font-size: .8125rem;
	line-height: 1.7;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* « Sujet » : boutons radio en pastilles (cochée = noire). */
.hys-form .elementor-field-type-radio .elementor-field-subgroup {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hys-form .elementor-field-type-radio .elementor-field-option {
	position: relative;
	margin: 0;
	padding: 0;
}

.hys-form .elementor-field-type-radio .elementor-field-option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.hys-form .elementor-field-type-radio .elementor-field-option label {
	display: block;
	padding: 14px 16px;
	border: 1px solid rgba(29, 29, 27, .3);
	border-radius: 100px;
	color: var(--hy-noir);
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.hys-form .elementor-field-type-radio .elementor-field-option input:hover + label {
	border-color: var(--hy-noir);
	background: rgba(29, 29, 27, .06);
}

.hys-form .elementor-field-type-radio .elementor-field-option input:checked + label {
	border-color: var(--hy-noir);
	background: var(--hy-noir);
	color: #fff;
}

.hys-form .elementor-field-type-radio .elementor-field-option input:focus-visible + label {
	outline: 2px solid var(--hy-ocre);
	outline-offset: 2px;
}

/* Case d'acceptation (standard Logia). */
.hys-form .elementor-field-type-acceptance .elementor-field-subgroup {
	display: block;
}

.hys-form .elementor-field-type-acceptance .elementor-field-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.hys-form .elementor-field-group input[type="checkbox"] {
	flex: none;
	width: 20px !important;
	height: 20px !important;
	min-height: 0 !important;
	margin: 2px 0 0;
	padding: 0 !important;
	accent-color: var(--hy-noir);
	cursor: pointer;
}

.hys-form .elementor-field-type-acceptance label {
	color: rgba(29, 29, 27, .6);
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

/* Bouton d'envoi : pilule foncée pleine largeur (couleurs : .hy-clair, style.css). */
.hys-form .elementor-field-type-submit .elementor-button {
	height: 52px;
	padding: 0 24px;
	border-radius: 100px;
}

.hys-form .elementor-field-type-submit .elementor-button > span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.hys-form .elementor-message {
	margin-top: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

.hys-form .elementor-message.elementor-message-success {
	color: #3F6B3A;
}

.hys-form .elementor-message.elementor-message-danger,
.hys-form .elementor-help-inline {
	color: #A8402E;
}

/* Mention reCAPTCHA sous le bouton (le badge flottant de Google est masqué sur cette page : la mention le remplace). */
.hys-mention {
	font-size: .75rem !important;
	line-height: 1.5 !important;
}

.hys-mention p {
	max-width: 430px;
	margin-inline: auto;
}

.hys-mention a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color .25s ease;
}

.hys-mention a:hover {
	color: var(--hy-noir);
}

body:has(.hys-form) .grecaptcha-badge {
	visibility: hidden;
}

.hys-script {
	width: 0 !important;
	height: 0;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Carte sombre « Coordonnées »
   -------------------------------------------------------------------------- */
.hys-coordonnee {
	padding-top: 24px;
	border-top: 1px solid rgba(196, 168, 135, .12);
}

.hys-coord-picto {
	flex: none;
	line-height: 0;
}

.hys-coord-picto img {
	display: block;
	width: 44px;
	height: 44px;
}

.hys-coord-picto--glyphe {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px;
	border-radius: 12px;
	background: rgba(196, 168, 135, .12);
}

.hys-coord-picto--glyphe img {
	width: 15px;
	height: 24px;
}

.hys-coord-textes {
	flex: 1 1 0;
	min-width: 0;
}

.hys-libelle .elementor-heading-title {
	color: rgba(249, 247, 243, .5);
	font-size: .8125rem;
	font-weight: 400;
	letter-spacing: .1em;
}

.hys-coord-valeur .elementor-heading-title {
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.hys-coord-valeur a {
	color: inherit;
	transition: color .25s ease;
}

.hys-coord-valeur a:is(:hover, :focus-visible) {
	color: var(--hy-ocre);
}

.hys-reseaux-bloc {
	padding-top: 40px;
	border-top: 1px solid rgba(196, 168, 135, .12);
}

/* --------------------------------------------------------------------------
   « Nos adresses » : cartes d'adresse et carte Google Maps
   -------------------------------------------------------------------------- */
.hys-adresse {
	position: relative;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	transition: background-color .3s ease, box-shadow .3s ease;
}

.hys-adresse:has(a:hover) {
	background-color: rgba(255, 255, 255, .9) !important;
	box-shadow: 0 16px 32px rgba(29, 29, 27, .06);
}

.hys-adresse-ville .elementor-heading-title {
	font-size: .875rem;
}

.hys-adresse-texte a {
	color: inherit;
	transition: color .25s ease;
}

.hys-adresse-texte a:is(:hover, :focus-visible) {
	color: var(--hy-noir);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hys-carte-maps {
	overflow: hidden;
	border: 1px solid var(--hy-ocre);
	border-radius: 16px;
	line-height: 0;
}

.hys-carte-maps .elementor-custom-embed {
	line-height: 0;
}

.hys-carte-maps iframe {
	display: block;
	width: 100%;
	border: 0;
}

/* --------------------------------------------------------------------------
   Tablette et mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hys-reseaux-bloc {
		margin-top: 16px;
	}
}

/* Cartes d'adresse : deux colonnes en tablette (la carte Google Maps passe dessous). */
@media (min-width: 768px) and (max-width: 1024px) {
	.hys-adresses-liste {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hys-form .elementor-field-group .elementor-field-textual {
		height: 60px;
		padding: 0 16px;
	}

	.hys-form .elementor-field-group textarea.elementor-field-textual {
		height: 160px;
		padding: 16px;
	}

	.hys-form {
		--pb-form-etiquette-gauche: 8px;
	}

	.hys-form .elementor-field-type-radio .elementor-field-option label {
		padding: 12px 14px;
	}
}

/* Filet de sécurité : page sans bloc CTA (champ ACF décoché). Le cache d'éléments d'Elementor peut resservir le pied
   de page avec le bloc, rendu une première fois pour une autre page (correctif à faire dans inc/cta.php). */
body.pb-sans-cta .pb-cta-zone {
	display: none;
}
