/* Devio Care: interaction layer (press feedback, mobile menu, back to top,
   quote form chips, reduced motion). Loaded after style.css. */

/*--------------------------------------------------------------
# Response: instant press feedback, keyboard focus
--------------------------------------------------------------*/
a,
button,
.btn,
label {
	-webkit-tap-highlight-color: transparent;
}
.btn:active,
button:active,
input[type="submit"]:active,
.wp-block-button__link:active,
.evf-container .evf-submit-container .everest-forms-submit-button:active {
	transform: scale(0.97);
	transition-duration: 0.08s;
}
#services .icon-container a:active {
	transform: scale(0.95);
	transition-duration: 0.08s;
}
.wp-block-button__link,
.evf-container .evf-submit-container .everest-forms-submit-button {
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.16s var(--ease-out);
}
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(14, 85, 155, 0.5);
	outline-offset: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}

/*--------------------------------------------------------------
# Mobile header & menu panel (up to 1023px, where the hamburger shows)
--------------------------------------------------------------*/
.main-navigation button.menu-toggle,
.main-navigation button.dropdown-toggle {
	background: transparent !important;
	border: 0 !important;
	color: var(--dc-ink) !important;
	box-shadow: none;
}
.dc-nav-scrim {
	position: fixed;
	inset: 0;
	z-index: 998;
	background: rgba(8, 28, 50, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}
.dc-nav-open .dc-nav-scrim {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.22s ease, visibility 0s;
}

@media screen and (max-width: 1023px) {
	/* No scroll lock on <html>: it breaks the sticky header. The scrim covers the
	   page and the panel contains its own overscroll. */
	#masthead.site-header {
		position: relative;
		z-index: 999;
		background: #fff;
		min-height: 0;
	}
	#masthead .wrapper::before,
	#masthead .wrapper::after {
		display: none; /* clearfix pseudo-elements would act as flex items */
	}
	#masthead .wrapper {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		max-width: 100%;
		padding: 0 var(--dc-space-m);
	}
	#masthead .site-branding {
		display: block;
		float: none;
		width: auto;
		min-height: 0;
		padding: var(--dc-space-s) 0;
		border: 0;
		text-align: left;
	}
	#masthead .site-logo img.dc-logo {
		height: 35px;
	}
	#masthead .site-branding {
		padding: var(--dc-space-m) 0;
	}
	#masthead .main-navigation {
		float: none;
		position: static;
	}
	.main-navigation button.menu-toggle {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 48px;
		min-width: 48px;
		height: 48px;
		margin: 0 calc(-1 * var(--dc-space-xs)) 0 0;
		padding: 0;
	}
	.menu-toggle span {
		width: 24px;
		margin: 3px 0;
		border-radius: 2px;
		background-color: var(--dc-ink);
		transition: transform 0.2s var(--ease-out), opacity 0.12s ease;
	}
	.menu-toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	.menu-toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}
	.menu-toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	/* The panel drops from the header it belongs to. CSS transitions reverse from
	   the current value, so tapping again mid-animation simply turns it around. */
	#masthead.site-header .main-navigation ul.nav-menu {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		max-height: calc(100vh - 80px);
		max-height: calc(100dvh - 80px);
		overflow-y: auto;
		overscroll-behavior: contain;
		margin: 0;
		padding: var(--dc-space-xs) 0 var(--dc-space-s);
		border-top: 1px solid rgba(10, 61, 112, 0.08);
		border-radius: 0 0 20px 20px;
		box-shadow: 0 24px 48px rgba(8, 28, 50, 0.18);
		background: #fff;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-10px);
		transform-origin: top center;
		/* Closing (this state's transition) is quicker than opening: the system is responding. */
		transition: opacity 0.14s ease, transform 0.16s var(--ease-out), visibility 0s linear 0.16s;
	}
	#masthead.site-header .main-navigation.toggled ul.nav-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		transition: opacity 0.2s ease, transform 0.3s var(--ease-drawer), visibility 0s;
	}
	.main-navigation ul.nav-menu > li {
		position: relative;
		padding: 0;
	}
	.main-navigation ul.nav-menu li a {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 0 var(--dc-space-xxxl) 0 var(--dc-space-m);
		font-size: 17px;
	}
	.main-navigation ul ul li a {
		padding-left: var(--dc-space-xl);
		min-height: 46px;
		font-weight: 600;
	}
	.main-navigation .menu-item-has-children > a:before {
		display: none;
	}
	.main-navigation button.dropdown-toggle {
		top: 2px;
		right: 8px;
		width: 48px;
		height: 48px;
		line-height: 48px;
		display: block;
	}
		.main-navigation ul.nav-menu li.dc-sub-open > ul.sub-menu {
		display: block;
		opacity: 1;
		transform: none;
		transition: opacity 0.18s ease, transform 0.22s var(--ease-out);
	}
	@starting-style {
		.main-navigation ul.nav-menu li.dc-sub-open > ul.sub-menu {
			opacity: 0;
			transform: translateY(-6px);
		}
	}
}

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
.backtotop {
	display: block;
	bottom: 24px;
	width: 48px;
	height: 48px;
	line-height: 48px;
	background-color: var(--dc-blue);
	box-shadow: 0 8px 20px rgba(10, 61, 112, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(96px);
	transition: transform 0.18s var(--ease-out), opacity 0.14s ease, visibility 0s linear 0.18s, background-color 0.15s ease;
}
.backtotop.dc-show {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform 0.3s var(--ease-out), opacity 0.2s ease, visibility 0s, background-color 0.15s ease;
}
.backtotop.dc-show:active {
	transform: scale(0.92);
	transition-duration: 0.08s;
}
.backtotop:hover {
	background-color: var(--dc-blue-dark);
}

/*--------------------------------------------------------------
# Forms: 16px fields (no iOS zoom), choices as radio buttons and checkboxes
--------------------------------------------------------------*/
.evf-container input.input-text,
.evf-container textarea,
.evf-container select {
	font-size: 16px !important;
	min-height: 40px;
}
/* One-line fields 40px tall (48px until 2026-11-12: the user found them too big). */
.evf-container input.input-text:not([type="radio"]):not([type="checkbox"]),
.evf-container select {
	height: 40px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
/* Field rhythm: a label sits XS above its field, one field is L from the next.
   The card's padding sets the inset; two-column rows keep an L gutter. */
.evf-container .evf-field {
	margin-bottom: var(--dc-space-l) !important;
}
.evf-container .evf-field-label {
	margin-bottom: var(--dc-space-xs) !important;
}
.evf-container .evf-field input.input-text,
.evf-container .evf-field textarea,
.evf-container .evf-field select,
.evf-container .evf-field ul:not(.select2-selection__rendered) {
	margin-bottom: 0 !important;
}
.evf-container .evf-field-description {
	margin: var(--dc-space-xs) 0 0 !important;
}
.evf-container .evf-field-container,
.evf-container .evf-submit-container {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.evf-container .evf-field-container .evf-frontend-row:not(.wp-list-table) {
	margin-left: calc(-1 * var(--dc-space-s)) !important;
	margin-right: calc(-1 * var(--dc-space-s)) !important;
}
.evf-container .evf-field-container .evf-frontend-row .evf-frontend-grid {
	padding-left: var(--dc-space-s) !important;
	padding-right: var(--dc-space-s) !important;
}
/* Choices: classic radio buttons (one answer, round) and checkboxes (several, square)
   in an aligned grid, answers in regular weight and no frame, so the questions lead.
   Each list's columns are as wide as its longest answer (--dc-choice-min, set by
   devio.js): days and Oui/Non sit on one row, long answers keep one per line. */
.evf-container .evf-field-checkbox ul,
.evf-container .evf-field-radio ul {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--dc-choice-min, 200px)), 1fr));
	gap: 0 var(--dc-space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}
.evf-container .evf-field-checkbox li,
.evf-container .evf-field-radio li {
	display: flex;
	align-items: flex-start;
	gap: var(--dc-space-s);
	width: auto !important;
	margin: 0 !important;
	padding: 0;
}
.evf-container .evf-field-checkbox li::before,
.evf-container .evf-field-radio li::before {
	content: none !important;
}
/* 17px control (20px until 2026-11-12, then 15% smaller at the user's request),
   centred on the first line of its answer (21px); the label's S padding above and
   below makes every row a 44px tap target. */
.evf-container .evf-field-checkbox input,
.evf-container .evf-field-radio input {
	-webkit-appearance: none !important;
	appearance: none !important;
	flex-shrink: 0;
	position: static !important;
	width: 17px !important;
	height: 17px !important;
	min-height: 0 !important;
	margin: calc(var(--dc-space-s) + 2px) 0 0 !important;
	padding: 0 !important;
	border: 1.5px solid #8a9bb0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	opacity: 1 !important;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.evf-container .evf-field-checkbox input {
	border-radius: 4px !important;
}
.evf-container .evf-field-radio input:checked {
	border-color: var(--dc-blue) !important;
	background: var(--dc-blue) !important;
	box-shadow: inset 0 0 0 3px #fff !important;
}
.evf-container .evf-field-checkbox input:checked {
	border-color: var(--dc-blue) !important;
	background: var(--dc-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat !important;
}
.evf-container .evf-field-checkbox input:focus-visible,
.evf-container .evf-field-radio input:focus-visible {
	outline: 3px solid rgba(14, 85, 155, 0.5);
	outline-offset: 2px;
}
.evf-container .evf-field-checkbox label.everest-forms-field-label-inline,
.evf-container .evf-field-radio label.everest-forms-field-label-inline {
	display: block;
	flex: 1;
	min-width: 0;
	width: auto !important;
	margin: 0 !important;
	padding: var(--dc-space-s) 0;
	/* Everest Forms v2 paints choice labels as gradient text (background-clip: text,
	   transparent fill) with an ID selector; plain text instead. */
	background: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
	-webkit-text-fill-color: currentColor !important;
	color: var(--dc-ink) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
}
/* Two rows or more: devio.js picks a column count that fills the rows evenly (7 days
   = 4 + 3, not 6 + 1). */
.evf-container ul.dc-choices-balanced {
	grid-template-columns: repeat(var(--dc-choice-cols), minmax(0, 1fr));
}
@media (hover: hover) and (pointer: fine) {
	.evf-container .evf-field-checkbox li:hover input:not(:checked),
	.evf-container .evf-field-radio li:hover input:not(:checked) {
		border-color: var(--dc-blue) !important;
	}
	/* With a mouse a row needs no 44px tap target: XS above and below. */
	.evf-container .evf-field-checkbox label.everest-forms-field-label-inline,
	.evf-container .evf-field-radio label.everest-forms-field-label-inline {
		padding: var(--dc-space-xs) 0;
	}
	.evf-container .evf-field-checkbox input,
	.evf-container .evf-field-radio input {
		margin-top: calc(var(--dc-space-xs) + 2px) !important;
	}
}

/* Questions: dark and a step larger than the answers' helper text (Everest Forms v2
   paints labels as transparent gradient text). A hint ("Plusieurs choix possibles",
   an example) sits right under its question, before the answers. */
.evf-container .evf-field-label,
.evf-container .evf-field-label .evf-label {
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
	color: var(--dc-ink) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important; /* the page's 1.7 left a wide gap above the hint */
}
.evf-container .evf-field:not(.evf-field-title):not(.dc-cond-off) {
	display: flex !important; /* the plugin sets block with an ID selector */
	flex-direction: column;
}
.evf-container .evf-field > * {
	order: 2;
}
.evf-container .evf-field > .evf-field-label {
	order: 0;
}
/* The hint reads as part of its question: right under it (the label's XS margin is
   taken back), XS above the answers. */
.evf-container .evf-field > .evf-field-description {
	order: 1;
	margin: calc(-1 * var(--dc-space-xs)) 0 var(--dc-space-xs) !important;
	color: var(--dc-gray) !important;
	font-size: 14px;
	line-height: 1.35 !important;
}
/* Section titles (the "title" field also prints its name as a label: hidden). The
   gap before a section is twice the gap between two questions. */
.evf-container .evf-field-title > .evf-field-label {
	display: none !important;
}
.evf-container .evf-field-title {
	margin: 0 0 var(--dc-space-m) !important;
	padding-top: var(--dc-space-l);
	border-top: 1px solid var(--dc-rule);
}
.evf-container .evf-field-title h3 {
	margin: 0;
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
	color: var(--dc-blue) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.3;
}
.evf-container [data-field-id="dcSecCoord-101"] {
	margin-top: var(--dc-space-l) !important;
}
/* Errors: the field's own frame turns red too, not just the message under it. */
.evf-container input.evf-error,
.evf-container select.evf-error,
.evf-container textarea.evf-error {
	border-color: #c62828 !important;
}
/* A field focused by the error check stays clear of the sticky header, label included. */
.evf-container input,
.evf-container select,
.evf-container textarea {
	scroll-margin-top: calc(96px + var(--dc-space-xl));
}
/* Follow-up questions (devio.js): out of the flow until they apply, then fade in. */
.evf-container .evf-field.dc-cond-off {
	display: none !important;
}
.evf-container .evf-field.dc-cond-in {
	animation: dc-field-in 0.2s var(--ease-out);
}
@keyframes dc-field-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}
/* Send: one clear last step, full width on phones. */
.evf-container .evf-submit-container {
	margin-top: var(--dc-space-s);
}
.evf-container .evf-submit-container .everest-forms-submit-button {
	min-height: 52px;
	padding: 0 var(--dc-space-xl) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
}
@media screen and (max-width: 600px) {
	.evf-container .evf-submit-container .everest-forms-submit-button {
		width: 100%;
	}
}

/*--------------------------------------------------------------
# Desktop submenu: grows from its menu item, with a grace delay on exit
--------------------------------------------------------------*/
@media screen and (min-width: 1024px) {
	.main-navigation ul.nav-menu > li > ul.sub-menu {
		display: block !important;
		left: 0;
		top: calc(100% - 4px);
		padding: var(--dc-space-xs);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 1px 2px rgba(8, 28, 50, 0.06), 0 14px 32px rgba(8, 28, 50, 0.14);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px) scale(0.98);
		transform-origin: top left;
		/* Leaving: wait 120ms so a diagonal mouse path does not close it, then go fast. */
		transition: opacity 0.12s ease 0.12s, transform 0.14s var(--ease-out) 0.12s, visibility 0s linear 0.26s;
	}
	/* One link per row (the top-level items are inline-block and nowrap). */
	.main-navigation ul.nav-menu > li > ul.sub-menu > li {
		display: block;
	}
	/* Items near the right edge open leftwards, so the panel stays on screen at 1024px. */
	.main-navigation ul.nav-menu > li:nth-last-child(-n+3) > ul.sub-menu {
		left: auto;
		right: 0;
		transform-origin: top right;
	}
	.main-navigation ul.nav-menu > li:hover > ul.sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.16s ease, transform 0.2s var(--ease-out), visibility 0s;
	}
	/* Keyboard navigation: no animation, ever. */
	.main-navigation ul.nav-menu > li.focus > ul.sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}
	.main-navigation ul.sub-menu li a {
		border-radius: 8px;
		padding: var(--dc-space-s) var(--dc-space-m);
		font-weight: 600;
	}
	.main-navigation ul ul li:hover > a,
	.main-navigation ul ul li.focus > a {
		background-color: var(--dc-blue-light) !important;
		color: var(--dc-blue) !important;
	}
	.main-navigation ul.sub-menu > li,
	.main-navigation ul.sub-menu > li > a {
		border: 0 !important;
	}
}

/*--------------------------------------------------------------
# Typography details
--------------------------------------------------------------*/
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
h1, h2, h3,
.section-title,
.page-title,
.dc-hero__title {
	text-wrap: balance; /* no lone word on the last line ("enfants") */
}
.dc-hero__title,
#page-site-header .page-title,
.section-title,
.dc-offer h2,
#cta .section-title {
	letter-spacing: -0.02em;
}
.dc-hero__title {
	line-height: 1.06;
}
p,
li {
	text-wrap: pretty;
}
::selection {
	background: rgba(14, 85, 155, 0.16);
	color: var(--dc-ink);
}
#featured-slider .dc-hero__nounou a {
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.dc-offer .wp-block-button__link[href^="tel:"] {
	font-variant-numeric: tabular-nums;
}

/*--------------------------------------------------------------
# Home hero entrance: once per visit, short stagger, never blocks clicks
--------------------------------------------------------------*/
@keyframes dc-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}
.dc-hero__content > * {
	animation: dc-rise 0.5s var(--ease-out) both;
}
.dc-hero__content > :nth-child(2) { animation-delay: 0.05s; }
.dc-hero__content > :nth-child(3) { animation-delay: 0.1s; }
.dc-hero__content > :nth-child(4) { animation-delay: 0.15s; }
.dc-hero__content > :nth-child(5) { animation-delay: 0.2s; }

/*--------------------------------------------------------------
# Reduced motion: no movement, only short fades
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-property: color, background-color, border-color, opacity, visibility !important;
		animation: none !important;
	}
	.btn:active,
	button:active,
	input[type="submit"]:active,
	.wp-block-button__link:active,
	.backtotop.dc-show:active,
	.evf-container label:active,
	#masthead.site-header .main-navigation ul.nav-menu,
	.main-navigation ul.nav-menu li.dc-sub-open > ul.sub-menu,
	.backtotop {
		transform: none !important;
	}
}
