/* ==========================================================================
   Exionis — lot 05 « Nous consulter » : section d'accueil, page dédiée, formulaire.
   Fichier commun à tous les blocs exionis/consulter*, chargé seulement là où ils sont présents.
   Animations : uniquement transform / opacity (calculées par la carte graphique), suspendues hors
   écran ou onglet masqué (classe .is-still posée par view.js), supprimées avec prefers-reduced-motion.
   ========================================================================== */

.exi-cs,
.exi-cn {
	--exi-cs-cyan: #19B6EE;
	--exi-cs-ice: #9FE6FF;
	--exi-cs-text: #C9D8E8;
	--exi-cs-muted: #B6C8DA;
	--exi-cs-line: rgba(120, 200, 255, 0.28);
	--exi-cs-err: #FF9AA5;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: #FFFFFF;
	background:
		radial-gradient(ellipse 70% 60% at 88% 6%, rgba(25, 182, 238, 0.16), transparent 70%),
		radial-gradient(ellipse 60% 70% at 4% 96%, rgba(10, 109, 181, 0.32), transparent 70%),
		linear-gradient(180deg, #06193A 0%, #04101F 62%, #030C18 100%);
}

/* Les deux sections se touchent avec leurs voisines (pas de marge blanche). */
.exi-consulter,
.exi-consulter > .exi-cs,
.wp-block-post-content > .exi-cn {
	margin-block: 0 !important;
}

/* --------------------------------------------------------------------------
   Décor lumineux
   -------------------------------------------------------------------------- */
.exi-cs *,
.exi-cs *::before,
.exi-cs *::after,
.exi-cn *,
.exi-cn *::before,
.exi-cn *::after {
	box-sizing: border-box;
}

.exi-cs-fx {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	contain: strict;
}

.exi-cs-fx > * {
	position: absolute;
	display: block;
}

.exi-cs-fx__grid {
	inset: 0;
	background-image:
		linear-gradient(rgba(120, 190, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(120, 190, 255, 0.07) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 0%, transparent 75%);
}

.exi-cs-fx__halo {
	border-radius: 50%;
	will-change: opacity;
	animation: exi-cs-breathe 14s ease-in-out infinite;
}

.exi-cs-fx__halo--1 {
	top: -34%;
	right: -14%;
	width: min(68vw, 980px);
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(25, 182, 238, 0.30) 0%, rgba(25, 182, 238, 0.08) 42%, transparent 68%);
}

.exi-cs-fx__halo--2 {
	bottom: -48%;
	left: -18%;
	width: min(70vw, 1000px);
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(10, 109, 181, 0.42) 0%, rgba(10, 109, 181, 0.12) 45%, transparent 70%);
	animation: none;
	will-change: auto;
	opacity: 0.85;
}

.exi-cs-fx__halo--3 {
	top: 18%;
	left: 6%;
	width: min(40vw, 520px);
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(25, 182, 238, 0.22) 0%, transparent 65%);
	animation-duration: 10s;
	animation-delay: -3s;
}

/* Page dédiée (section haute, formulaire au premier plan) : halos fixes, la lumière vient du balayage,
   des éclats, des traits et des impulsions — moins de surfaces à recomposer à chaque image. */
.exi-cs-fx--page .exi-cs-fx__halo {
	animation: none;
	will-change: auto;
	opacity: 0.85;
}

.exi-cs-portrait--sm .exi-cs-portrait__glow {
	animation: none;
	will-change: auto;
	opacity: 0.8;
}

/* Balayage lumineux lent : une bande étroite qui traverse la section (petit calque, translation seule) */
.exi-cs-fx__sweep {
	top: -10%;
	bottom: -10%;
	left: 0;
	width: 22%;
	background: linear-gradient(90deg, transparent 0%, rgba(140, 225, 255, 0.05) 30%, rgba(200, 244, 255, 0.11) 50%, rgba(140, 225, 255, 0.05) 70%, transparent 100%);
	opacity: 0;
	will-change: transform, opacity;
	animation: exi-cs-sweep 17s ease-in-out 2s infinite;
}

/* Traits lumineux biseautés */
.exi-cs-fx__beam {
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(25, 182, 238, 0.9) 45%, rgba(210, 246, 255, 0.95) 55%, transparent);
	box-shadow: 0 0 10px rgba(25, 182, 238, 0.6);
	transform-origin: left center;
	opacity: 0.15;
	will-change: transform, opacity;
	animation: exi-cs-beam 9s ease-in-out infinite;
}

.exi-cs-fx__beam--1 {
	left: -4%;
	bottom: 18%;
	width: min(34vw, 460px);
	--r: -34deg;
	transform: rotate(var(--r));
}

.exi-cs-fx__beam--2 {
	left: -2%;
	bottom: 8%;
	width: min(22vw, 300px);
	--r: -34deg;
	transform: rotate(var(--r));
	animation-delay: -3.5s;
	animation-duration: 11s;
}

.exi-cs-fx__beam--3 {
	right: -6%;
	top: 30%;
	width: min(26vw, 360px);
	--r: -34deg;
	transform: rotate(var(--r));
	animation-delay: -6s;
	animation-duration: 13s;
}

/* Flares : cœur lumineux + éclat horizontal */
.exi-cs-fx__flare {
	width: 180px;
	height: 180px;
	margin: -90px 0 0 -90px;
	background: radial-gradient(circle, rgba(235, 250, 255, 0.95) 0, rgba(130, 225, 255, 0.55) 2.5%, rgba(25, 182, 238, 0.18) 16%, transparent 58%);
	opacity: 0.35;
	will-change: transform, opacity;
	animation: exi-cs-flare 8s ease-in-out infinite;
}

.exi-cs-fx__flare::before,
.exi-cs-fx__flare::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 2px;
}

.exi-cs-fx__flare::before {
	width: 340px;
	height: 1.5px;
	margin: -0.75px 0 0 -170px;
	background: linear-gradient(90deg, transparent, rgba(160, 235, 255, 0.75), transparent);
}

.exi-cs-fx__flare::after {
	width: 1.5px;
	height: 70px;
	margin: -35px 0 0 -0.75px;
	background: linear-gradient(180deg, transparent, rgba(160, 235, 255, 0.5), transparent);
}

.exi-cs-fx__flare--1 {
	top: 12%;
	left: 92%;
}

.exi-cs-fx__flare--2 {
	top: 74%;
	left: 6%;
	animation-delay: -3s;
	animation-duration: 11s;
}

.exi-cs-fx__flare--3 {
	top: 94%;
	left: 64%;
	animation-delay: -6s;
	animation-duration: 13s;
	transform: scale(0.7);
}

/* Nappe d'ondes en pointillés : calque fixe (masque calculé une seule fois) ; des impulsions lumineuses
   parcourent trois ondes dans un calque séparé, sans masque (seuls quelques traits sont redessinés). */
.exi-cs-fx__waves {
	right: -4%;
	bottom: -6%;
	width: min(66%, 1100px);
	aspect-ratio: 1200 / 420;
	overflow: hidden;
	opacity: 0.9;
}

.exi-cs-fx__waves--pulses {
	opacity: 1;
	will-change: transform; /* calque à part : redessiner les impulsions ne redessine pas la nappe */
}

.exi-cs-fx__drift {
	position: absolute;
	top: 0;
	left: -25%;
	width: 150%;
	height: 100%;
}

.exi-cs-fx__drift svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.exi-cs-pulse {
	stroke-dashoffset: 1000;
	animation: exi-cs-pulse 9s linear infinite;
}

.exi-cs-pulse--2 {
	animation-duration: 12s;
	animation-delay: -4s;
}

.exi-cs-pulse--3 {
	animation-duration: 15s;
	animation-delay: -9s;
}

@keyframes exi-cs-breathe {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 1; }
}

@keyframes exi-cs-sweep {
	0% { opacity: 0; transform: translateX(-120%) skewX(-14deg); }
	8% { opacity: 1; }
	46% { opacity: 1; }
	54% { opacity: 0; transform: translateX(520%) skewX(-14deg); }
	100% { opacity: 0; transform: translateX(520%) skewX(-14deg); }
}

@keyframes exi-cs-beam {
	0%, 100% { opacity: 0.12; transform: rotate(var(--r)) scaleX(0.82); }
	50% { opacity: 0.7; transform: rotate(var(--r)) scaleX(1); }
}

@keyframes exi-cs-flare {
	0%, 100% { opacity: 0.25; transform: scale(0.82); }
	50% { opacity: 0.85; transform: scale(1); }
}

@keyframes exi-cs-pulse {
	to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Portrait
   -------------------------------------------------------------------------- */
.exi-cs-portrait {
	--s: 232px;
	position: relative;
	flex: none;
	width: var(--s);
	height: var(--s);
}

.exi-cs-portrait--lg {
	--s: clamp(184px, 17vw, 232px);
}

.exi-cs-portrait--sm {
	--s: 92px;
}

.exi-cs-portrait > span {
	position: absolute;
	border-radius: 50%;
}

.exi-cs-portrait__glow {
	inset: -38%;
	background: radial-gradient(circle, rgba(25, 182, 238, 0.42) 0%, rgba(25, 182, 238, 0.12) 38%, transparent 66%);
	will-change: transform, opacity;
	animation: exi-cs-breathe 7s ease-in-out infinite;
}

.exi-cs-portrait__ring {
	inset: -7px;
	border: 2px solid rgba(25, 182, 238, 0.9);
	box-shadow: 0 0 22px rgba(25, 182, 238, 0.5), inset 0 0 14px rgba(25, 182, 238, 0.35);
}

.exi-cs-portrait--sm .exi-cs-portrait__ring {
	inset: -4px;
	border-width: 1.5px;
	box-shadow: 0 0 12px rgba(25, 182, 238, 0.45);
}

/* Reflet qui tourne lentement sur l'anneau */
.exi-cs-portrait__arc {
	inset: -9px;
	background: conic-gradient(from 0deg, transparent 0deg 250deg, rgba(150, 232, 255, 0.15) 290deg, rgba(225, 250, 255, 0.95) 340deg, transparent 360deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
	will-change: transform;
	animation: exi-cs-spin 12s linear infinite;
}

.exi-cs-portrait--sm .exi-cs-portrait__arc {
	inset: -5px;
	animation-duration: 9s;
}

.exi-cs-portrait__frame {
	inset: 0;
	overflow: hidden;
	background: #0A1F3A;
}

.exi-cs-portrait__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes exi-cs-spin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Boutons et réassurance (pictogrammes en masque : couleur = texte du bouton)
   -------------------------------------------------------------------------- */
.exi-cs .wp-block-button:not(.is-style-contour-clair) .wp-block-button__link,
.exi-cf__submit {
	background: var(--exi-cs-cyan);
	border-color: var(--exi-cs-cyan);
	color: #04101F;
	font-weight: 600;
}

.exi-cs .wp-block-button:not(.is-style-contour-clair) .wp-block-button__link:hover,
.exi-cs .wp-block-button:not(.is-style-contour-clair) .wp-block-button__link:focus-visible,
.exi-cf__submit:hover,
.exi-cf__submit:focus-visible {
	background: #FFFFFF;
	border-color: #FFFFFF;
	color: #04101F;
}

.exi-cs .wp-block-button:not(.is-style-contour-clair),
.exi-cf__submit-wrap {
	filter: drop-shadow(0 0 14px rgba(25, 182, 238, 0.45));
}

.exi-cs .wp-block-button.is-style-contour-clair .wp-block-button__link {
	--exi-bc: rgba(190, 230, 255, 0.55);
	border-color: var(--exi-bc);
	color: #FFFFFF;
	/* Biseaux des coins coupés : le contour reste continu */
	background:
		linear-gradient(to bottom right, transparent calc(50% - 0.8px), var(--exi-bc) calc(50% - 0.5px), var(--exi-bc) calc(50% + 0.5px), transparent calc(50% + 0.8px)) left top / var(--exi-chamfer, 10px) var(--exi-chamfer, 10px) no-repeat border-box,
		linear-gradient(to bottom right, transparent calc(50% - 0.8px), var(--exi-bc) calc(50% - 0.5px), var(--exi-bc) calc(50% + 0.5px), transparent calc(50% + 0.8px)) right bottom / var(--exi-chamfer, 10px) var(--exi-chamfer, 10px) no-repeat border-box,
		transparent;
}

.exi-cs .wp-block-button.is-style-contour-clair .wp-block-button__link:hover,
.exi-cs .wp-block-button.is-style-contour-clair .wp-block-button__link:focus-visible {
	--exi-bc: var(--exi-cs-cyan);
	color: var(--exi-cs-cyan);
}

.exi-btn-fleche .wp-block-button__link::after,
.exi-btn-tel .wp-block-button__link::before,
.exi-cs__assure::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--exi-ico) center / contain no-repeat;
	mask: var(--exi-ico) center / contain no-repeat;
}

.exi-btn-fleche .wp-block-button__link::after {
	--exi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
	transition: transform 0.25s ease;
}

.exi-btn-fleche .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.exi-btn-tel .wp-block-button__link::before {
	--exi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.2 3.6 6 3.3a1.6 1.6 0 0 0-1.7 1.1c-1.2 4.1 1.4 9.3 5.2 12.8 3 2.8 6.4 4.2 9.3 3.5a1.6 1.6 0 0 0 1.2-1.6l-.2-2.4a1.4 1.4 0 0 0-1-1.2l-2.8-.9a1.4 1.4 0 0 0-1.5.4l-1.1 1.2a10.8 10.8 0 0 1-4.8-4.9l1.2-1a1.4 1.4 0 0 0 .4-1.5l-.9-2.9a1.4 1.4 0 0 0-1.1-.9Z'/%3E%3C/svg%3E");
	color: var(--exi-cs-cyan);
}

.exi-btn-tel .wp-block-button__link:hover::before {
	color: inherit;
}

.exi-cs__assure {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 0.875rem;
	color: var(--exi-cs-muted);
}

.exi-cs__assure::before {
	--exi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8 4.5 5.6v5.8c0 4.6 3.1 8.4 7.5 9.8 4.4-1.4 7.5-5.2 7.5-9.8V5.6Z'/%3E%3Cpath d='m8.6 12.1 2.4 2.4 4.5-4.6'/%3E%3C/svg%3E");
	width: 22px;
	height: 22px;
	color: var(--exi-cs-cyan);
}

/* --------------------------------------------------------------------------
   Section d'accueil
   -------------------------------------------------------------------------- */
.exi-cs {
	padding: clamp(64px, 8vw, 112px) clamp(16px, 4vw, 40px);
}

.exi-cs__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.5fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	max-width: var(--wp--style--global--wide-size, 1180px);
	margin-inline: auto;
	padding: clamp(36px, 4.4vw, 60px) clamp(28px, 4.4vw, 64px);
	border: 1px solid var(--exi-cs-line);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(10, 46, 92, 0.55) 0%, rgba(4, 18, 36, 0.35) 55%, rgba(6, 30, 62, 0.5) 100%);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 40px rgba(25, 182, 238, 0.06);
	overflow: hidden;
}

/* Liseré lumineux qui parcourt le haut du panneau */
.exi-cs__panel-line,
.exi-cf__edge {
	position: absolute;
	left: 0;
	width: 34%;
	height: 1px;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(120, 220, 255, 0.95), transparent);
	will-change: transform;
	animation: exi-cs-edge 10s ease-in-out infinite;
}

.exi-cs__panel-line {
	top: 0;
}

@keyframes exi-cs-edge {
	0% { transform: translateX(-110%); opacity: 0; }
	10% { opacity: 1; }
	50% { opacity: 1; }
	60% { transform: translateX(310%); opacity: 0; }
	100% { transform: translateX(310%); opacity: 0; }
}

.exi-cs__person {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 34px;
	text-align: center;
}

.exi-cs__quote {
	position: relative;
	max-width: 290px;
	margin: 0;
	padding: 0 20px;
	font-family: var(--wp--preset--font-family--titres);
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.4;
	color: #EAF2FA;
}

.exi-cs__q {
	position: absolute;
	font-size: 2.2rem;
	line-height: 1;
	color: var(--exi-cs-cyan);
	text-shadow: 0 0 12px rgba(25, 182, 238, 0.6);
}

.exi-cs__q--open {
	left: -6px;
	top: -10px;
}

.exi-cs__q--close {
	right: -6px;
	bottom: -22px;
}

.exi-cs__content {
	position: relative;
	padding-left: clamp(28px, 4vw, 64px);
}

.exi-cs__content::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4%;
	bottom: 4%;
	width: 1px;
	background: linear-gradient(180deg, transparent, rgba(120, 200, 255, 0.45) 30%, rgba(120, 200, 255, 0.45) 70%, transparent);
}

.exi-cs__content > * {
	margin-block: 0;
}

.exi-cs .is-style-surtitre {
	margin-block-end: 16px;
	color: #3FC6F4; /* cyan Exionis légèrement éclairci : petit texte lisible même sous un halo */
}

.exi-cs__heading {
	margin-block-end: 18px !important;
	font-family: var(--wp--preset--font-family--titres);
	font-size: clamp(1.75rem, 2.9vw, 2.6rem);
	font-weight: 600;
	line-height: 1.16;
	color: #FFFFFF;
	text-wrap: balance;
}

.exi-cs__lead {
	max-width: 54ch;
	margin-block-end: 30px !important;
	font-size: var(--wp--preset--font-size--l);
	line-height: 1.6;
	color: var(--exi-cs-text);
}

.exi-cs__ctas {
	gap: 16px;
	margin-block-end: 26px !important;
}

/* --------------------------------------------------------------------------
   Page dédiée
   -------------------------------------------------------------------------- */
.exi-cn {
	min-height: calc(100svh - var(--exi-header-h, 68px));
	padding: clamp(24px, 3.6vw, 44px) clamp(16px, 4vw, 40px) clamp(56px, 7vw, 104px);
}

.exi-cn__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
	align-items: start;
	gap: clamp(36px, 5.5vw, 88px);
	max-width: var(--wp--style--global--wide-size, 1180px);
	margin-inline: auto;
}

.exi-cn__intro > * {
	margin-block: 0;
}

.exi-crumb {
	margin-block-end: clamp(28px, 4vw, 52px) !important;
	font-size: 0.8125rem;
}

.exi-crumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--exi-cs-muted);
}

.exi-crumb__item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.exi-crumb__item + .exi-crumb__item::before {
	content: "›";
	color: var(--exi-cs-cyan);
	font-size: 1.1em;
}

.exi-crumb__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--exi-cs-text);
	text-decoration: none;
}

.exi-crumb__link:hover {
	color: #FFFFFF;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.exi-crumb__home {
	width: 16px;
	height: 16px;
}

.exi-crumb [aria-current] {
	color: #FFFFFF;
}

.exi-cn .is-style-surtitre {
	color: #3FC6F4;
}

.exi-cn__title {
	margin-block-end: 22px !important;
	font-family: var(--wp--preset--font-family--titres);
	font-size: clamp(2.1rem, 4.2vw, 3.5rem);
	font-weight: 600;
	line-height: 1.07;
	color: #FFFFFF;
	text-wrap: balance;
}

.exi-cn__lead {
	max-width: 46ch;
	margin-block-end: clamp(28px, 3.6vw, 44px) !important;
	font-size: var(--wp--preset--font-size--l);
	line-height: 1.6;
	color: var(--exi-cs-text);
}

.exi-atouts {
	display: grid;
	gap: 18px;
	margin: 0 0 clamp(32px, 4.4vw, 56px) !important;
	padding: 0;
	list-style: none;
}

.exi-atout {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	color: #E6EFF7;
	font-size: 1rem;
	line-height: 1.45;
}

.exi-atout__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(25, 182, 238, 0.35);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(25, 182, 238, 0.16), rgba(25, 182, 238, 0.02) 70%);
	color: var(--exi-cs-cyan);
}

.exi-atout__icon svg {
	width: 22px;
	height: 22px;
}

.exi-contact {
	display: flex;
	align-items: center;
	gap: 26px;
	padding: 8px 0 8px 6px;
}

.exi-contact__body > p {
	margin: 0;
}

.exi-contact__title {
	font-family: var(--wp--preset--font-family--titres);
	font-size: 1.15rem;
	font-weight: 600;
	color: #FFFFFF;
}

.exi-contact__name {
	margin-top: 4px !important;
	color: #EAF2FA;
}

.exi-contact__role {
	margin-top: 2px !important;
	font-size: 0.875rem;
	color: var(--exi-cs-muted);
}

.exi-contact__line {
	display: block;
	width: 150px;
	height: 1px;
	margin-top: 14px;
	background: linear-gradient(90deg, var(--exi-cs-cyan), transparent);
	box-shadow: 0 0 8px rgba(25, 182, 238, 0.6);
}

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.exi-cf {
	position: relative;
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid rgba(120, 200, 255, 0.32);
	border-radius: 16px;
	background: linear-gradient(160deg, rgba(12, 44, 86, 0.92) 0%, rgba(5, 21, 42, 0.95) 55%, rgba(7, 28, 56, 0.94) 100%);
	box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45), 0 0 46px rgba(25, 182, 238, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	overflow: hidden;
	scroll-margin-top: calc(var(--exi-header-h, 68px) + 16px);
}

.exi-cf__anchor {
	position: absolute;
	top: 0;
	scroll-margin-top: calc(var(--exi-header-h, 68px) + 16px);
}

.exi-cf__edge--top {
	top: 0;
}

.exi-cf__edge--bottom {
	bottom: 0;
	animation-delay: -5s;
	animation-direction: reverse;
}

.exi-cf__corner {
	position: absolute;
	width: 46px;
	height: 46px;
	pointer-events: none;
	border-color: var(--exi-cs-cyan);
	border-style: solid;
	filter: drop-shadow(0 0 6px rgba(25, 182, 238, 0.8));
	opacity: 0.6;
	will-change: opacity;
	animation: exi-cs-corner 6s ease-in-out infinite;
}

.exi-cf__corner--tl {
	top: -1px;
	left: -1px;
	border-width: 2px 0 0 2px;
	border-top-left-radius: 16px;
}

.exi-cf__corner--br {
	right: -1px;
	bottom: -1px;
	border-width: 0 2px 2px 0;
	border-bottom-right-radius: 16px;
	animation-delay: -3s;
}

@keyframes exi-cs-corner {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}

.exi-cf__form > *,
.exi-cf__success > * {
	margin-block: 0;
}

.exi-cf__title {
	font-family: var(--wp--preset--font-family--titres);
	font-size: clamp(1.4rem, 1.9vw, 1.7rem);
	font-weight: 600;
	line-height: 1.2;
	color: #FFFFFF;
}

.exi-cf__req {
	margin-top: 6px !important;
	font-size: 0.8125rem;
	color: var(--exi-cs-muted);
}

.exi-cf__status {
	display: none;
	margin-top: 18px !important;
	padding: 12px 14px;
	border-left: 3px solid #FF6B7A;
	border-radius: 6px;
	background: rgba(225, 27, 44, 0.14);
	color: #FFE1E5;
	font-size: 0.9375rem;
}

.exi-cf__status.is-visible {
	display: block;
}

.exi-cf__status p {
	margin: 0;
}

.exi-cf__status:focus {
	outline: 2px solid #FF9AA5;
	outline-offset: 2px;
}

.exi-cf__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
	margin-top: 24px !important;
}

.exi-cf__field--full {
	grid-column: 1 / -1;
}

.exi-cf__label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #EAF2FA;
}

.exi-cf__star {
	color: var(--exi-cs-cyan);
}

.exi-cf__star.is-optional {
	display: none;
}

.exi-cf.is-callback [data-field="telephone"] .exi-cf__star {
	display: inline;
}

.exi-cf__control {
	position: relative;
}

.exi-cf__icon {
	position: absolute;
	left: 13px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	color: #8FB3D4;
	pointer-events: none;
	transition: color 0.2s;
}

.exi-cf__control--textarea .exi-cf__icon {
	top: 15px;
	margin-top: 0;
}

.exi-cf__input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px 12px 42px;
	border: 1px solid rgba(120, 190, 255, 0.32);
	border-radius: 8px;
	background: rgba(3, 14, 29, 0.72);
	color: #FFFFFF;
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.4;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.exi-cf__input::placeholder {
	color: #8AA2BB;
	opacity: 1;
}

.exi-cf__input:hover {
	border-color: rgba(140, 210, 255, 0.55);
}

.exi-cf__input:focus,
.exi-cf__input:focus-visible {
	outline: none;
	border-color: var(--exi-cs-cyan);
	background: rgba(4, 20, 40, 0.9);
	box-shadow: 0 0 0 3px rgba(25, 182, 238, 0.28), 0 0 18px rgba(25, 182, 238, 0.22);
}

.exi-cf__control:focus-within .exi-cf__icon {
	color: var(--exi-cs-cyan);
}

.exi-cf__input--area {
	min-height: 128px;
	resize: vertical;
}

.exi-cf__input--select {
	padding-right: 42px;
	cursor: pointer;
}

.exi-cf__input--select:invalid,
.exi-cf__input--select.is-empty {
	color: #8AA2BB;
}

.exi-cf__input--select option {
	background: #0A1F3A;
	color: #FFFFFF;
}

.exi-cf__chevron {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	color: #CFE3F5;
	pointer-events: none;
}

.exi-cf__field.is-invalid .exi-cf__input {
	border-color: #FF6B7A;
	box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.18);
}

.exi-cf__field.is-invalid .exi-cf__icon {
	color: var(--exi-cs-err);
}

.exi-cf__field.is-valid .exi-cf__input {
	border-color: rgba(25, 182, 238, 0.55);
}

.exi-cf__error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 7px 0 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--exi-cs-err);
}

.exi-cf__error[hidden] {
	display: none;
}

.exi-cf__error-icon {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
}

/* Case « être rappelé » */
.exi-cf__field--check {
	position: relative;
	margin-top: -4px;
}

.exi-cf__check {
	position: absolute;
	opacity: 0;
	width: 22px;
	height: 22px;
	margin: 0;
}

.exi-cf__check-label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 32px;
	font-size: 0.9375rem;
	color: #E6EFF7;
	cursor: pointer;
}

.exi-cf__box {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	border: 1px solid rgba(140, 210, 255, 0.55);
	border-radius: 5px;
	background: rgba(3, 14, 29, 0.72);
	transition: background-color 0.2s, border-color 0.2s;
}

.exi-cf__box::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 6px;
	height: 11px;
	border: solid #04101F;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s;
}

.exi-cf__check:checked + .exi-cf__check-label .exi-cf__box {
	border-color: var(--exi-cs-cyan);
	background: var(--exi-cs-cyan);
}

.exi-cf__check:checked + .exi-cf__check-label .exi-cf__box::after {
	transform: rotate(45deg) scale(1);
}

.exi-cf__check:focus-visible + .exi-cf__check-label .exi-cf__box {
	outline: 2px solid var(--exi-cs-cyan);
	outline-offset: 3px;
}

/* Champ piège pour les robots (hors écran, ignoré des lecteurs d'écran) */
.exi-cf__trap {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.exi-cf__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 26px !important;
}

.exi-cf__submit-wrap {
	display: inline-flex;
}

.exi-cf__submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 14px 26px;
	border: 1px solid var(--exi-cs-cyan);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	transition: background-color 0.2s, border-color 0.2s;
}

.exi-cf__submit-icon {
	width: 18px;
	height: 18px;
}

.exi-cf__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(4, 16, 31, 0.3);
	border-top-color: #04101F;
	border-radius: 50%;
	animation: exi-cs-spin 0.8s linear infinite;
}

.exi-cf.is-sending .exi-cf__spinner {
	display: block;
}

.exi-cf.is-sending .exi-cf__submit-icon {
	display: none;
}

.exi-cf.is-sending .exi-cf__submit {
	cursor: progress;
	opacity: 0.85;
}

.exi-cf__assure {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 230px;
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--exi-cs-muted);
}

.exi-cf__assure-icon {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--exi-cs-cyan);
}

.exi-cf__mention {
	margin-top: 18px !important;
	padding-top: 16px;
	border-top: 1px solid rgba(120, 190, 255, 0.14);
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--exi-cs-muted);
}

.exi-cf__mention a {
	color: var(--exi-cs-ice);
	text-underline-offset: 2px;
}

/* Message de succès */
.exi-cf__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: clamp(28px, 6vw, 72px) 12px;
	text-align: center;
}

.exi-cf__success[hidden] {
	display: none;
}

.exi-cf__success:focus {
	outline: none;
}

.exi-cf__success-icon {
	width: 64px;
	height: 64px;
	padding: 12px;
	border: 1px solid rgba(25, 182, 238, 0.5);
	border-radius: 50%;
	color: var(--exi-cs-cyan);
	box-shadow: 0 0 30px rgba(25, 182, 238, 0.35), inset 0 0 18px rgba(25, 182, 238, 0.2);
}

.exi-cf__success-title {
	font-family: var(--wp--preset--font-family--titres);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
	color: #FFFFFF;
}

.exi-cf__success-text {
	max-width: 40ch;
	color: var(--exi-cs-text);
}

.exi-cf__again {
	margin-top: 8px !important;
	padding: 10px 16px;
	border: 1px solid rgba(190, 230, 255, 0.45);
	background: transparent;
	color: #FFFFFF;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

.exi-cf__again:hover {
	border-color: var(--exi-cs-cyan);
	color: var(--exi-cs-ice);
}

/* --------------------------------------------------------------------------
   Apparition au défilement (seulement si le script est actif : sinon tout est visible)
   -------------------------------------------------------------------------- */
[data-exi-reveal].is-armed {
	opacity: 0;
	transform: translateY(26px);
}

[data-exi-reveal].is-armed.is-in {
	opacity: 1;
	transform: none;
	transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.exi-cs__panel.is-armed .exi-cs__person,
.exi-cs__panel.is-armed .exi-cs__content > * {
	opacity: 0;
	transform: translateY(14px);
}

.exi-cs__panel.is-armed.is-in .exi-cs__person,
.exi-cs__panel.is-armed.is-in .exi-cs__content > * {
	opacity: 1;
	transform: none;
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.exi-cs__panel.is-in .exi-cs__content > :nth-child(1) { transition-delay: 0.15s; }
.exi-cs__panel.is-in .exi-cs__content > :nth-child(2) { transition-delay: 0.25s; }
.exi-cs__panel.is-in .exi-cs__content > :nth-child(3) { transition-delay: 0.35s; }
.exi-cs__panel.is-in .exi-cs__content > :nth-child(4) { transition-delay: 0.45s; }
.exi-cs__panel.is-in .exi-cs__content > :nth-child(5) { transition-delay: 0.55s; }
.exi-cn__intro.is-in { transition-delay: 0.05s; }
.exi-cf.is-in { transition-delay: 0.2s; }

/* Animations suspendues (hors écran, onglet masqué) */
.is-still .exi-cs-fx *,
.is-still .exi-cs-fx *::before,
.is-still .exi-cs-fx *::after,
.is-still .exi-cs-portrait > span,
.is-still .exi-cs__panel-line,
.is-still .exi-cf__edge,
.is-still .exi-cf__corner {
	animation-play-state: paused !important;
}

/* --------------------------------------------------------------------------
   Tablette
   -------------------------------------------------------------------------- */
@media (max-width: 979px) {
	.exi-cn__grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 680px;
	}

	.exi-cn {
		min-height: 0;
	}

	.exi-cn__lead {
		max-width: none;
	}

	.exi-contact {
		margin-bottom: 4px;
	}
}

@media (max-width: 899px) {
	.exi-cs__panel {
		grid-template-columns: minmax(0, 1fr);
		max-width: 680px;
		text-align: left;
	}

	.exi-cs__person {
		flex-direction: row;
		gap: 30px;
		text-align: left;
	}

	.exi-cs-portrait--lg {
		--s: 168px;
	}

	.exi-cs__content {
		padding-left: 0;
	}

	.exi-cs__content::before {
		display: none;
	}

	.exi-cs-fx__waves {
		width: 110%;
		right: -20%;
	}
}

/* --------------------------------------------------------------------------
   Téléphone : une colonne, boutons pleine largeur, décor allégé
   -------------------------------------------------------------------------- */
@media (max-width: 759px) {
	.exi-cs {
		padding: 48px 16px;
	}

	.exi-cs__panel {
		gap: 30px;
		padding: 32px 20px 28px;
		border-radius: 14px;
	}

	.exi-cs__person {
		flex-direction: column;
		gap: 26px;
		text-align: center;
	}

	.exi-cs-portrait--lg {
		--s: 156px;
	}

	.exi-cs__quote {
		font-size: 1.02rem;
		max-width: 260px;
	}

	.exi-cs__heading {
		font-size: clamp(1.5rem, 6.8vw, 1.9rem);
	}

	.exi-cs__lead {
		font-size: 1rem;
		margin-block-end: 26px !important;
	}

	.exi-cs__ctas {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.exi-cs__ctas .wp-block-button {
		width: 100%;
	}

	.exi-cs__ctas .wp-block-button__link {
		justify-content: center;
		width: 100%;
		min-height: 52px;
	}

	.exi-cs__assure {
		justify-content: center;
	}

	.exi-cn {
		padding: 20px 16px 56px;
	}

	.exi-crumb {
		margin-block-end: 26px !important;
	}

	.exi-cn__title {
		font-size: clamp(1.9rem, 8.6vw, 2.4rem);
	}

	.exi-cn__lead {
		font-size: 1rem;
	}

	.exi-atouts {
		gap: 14px;
	}

	.exi-atout__icon {
		width: 40px;
		height: 40px;
	}

	.exi-cf {
		padding: 22px 18px 24px;
		border-radius: 14px;
	}

	.exi-cf__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.exi-cf__input {
		min-height: 50px;
		font-size: 1rem; /* 16 px : pas de zoom automatique sur iPhone */
	}

	.exi-cf__foot {
		flex-direction: column;
		align-items: stretch;
	}

	.exi-cf__submit-wrap,
	.exi-cf__submit {
		width: 100%;
	}

	.exi-cf__submit {
		min-height: 54px;
	}

	.exi-cf__assure {
		justify-content: center;
		max-width: none;
	}

	/* Décor allégé */
	.exi-cs-fx__halo--3,
	.exi-cs-fx__beam--2,
	.exi-cs-fx__beam--3,
	.exi-cs-fx__flare--3,
	.exi-cs-waves__pulses {
		display: none !important;
	}

	.exi-cs-fx__grid {
		background-size: 44px 44px;
	}

	.exi-cs-fx__waves {
		width: 170%;
		right: -50%;
		bottom: -2%;
	}

	.exi-cs-fx__flare::before {
		width: 220px;
		margin-left: -110px;
	}

	/* Les éclats restent hors des zones de texte */
	.exi-cs-fx__flare--1 {
		top: 1.5%;
		left: 97%;
	}

	.exi-cs-fx__flare--2 {
		top: 99%;
		left: 8%;
	}

	.exi-cs-fx__waves:not(.exi-cs-fx__waves--pulses) {
		opacity: 0.5;
	}
}

/* --------------------------------------------------------------------------
   Animations réduites : décor fixe, aucune apparition animée
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.exi-cs-fx *,
	.exi-cs-fx *::before,
	.exi-cs-fx *::after,
	.exi-cs-portrait > span,
	.exi-cs__panel-line,
	.exi-cf__edge,
	.exi-cf__corner {
		animation: none !important;
	}

	.exi-cs-fx__sweep,
	.exi-cs-portrait__arc,
	.exi-cs__panel-line,
	.exi-cf__edge,
	.exi-cs-waves__pulses {
		display: none !important;
	}

	[data-exi-reveal].is-armed,
	.exi-cs__panel.is-armed .exi-cs__person,
	.exi-cs__panel.is-armed .exi-cs__content > * {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.exi-cf__spinner {
		animation-duration: 2s;
	}
}

/* Très petits écrans (320 px) : libellés des boutons sur une seule ligne */
@media (max-width: 374px) {
	.exi-cs__ctas .wp-block-button__link,
	.exi-cf__submit {
		padding-inline: 12px;
		letter-spacing: 0.05em;
		gap: 8px;
	}
}
