/*
Theme Name: Kiducation – Devio Care
Template: kiducation
Description: Thème enfant Devio Care : charte bleue de la marque, police Nunito, nouvel accueil, titres et performances.
Version: 1.21.5
Text Domain: kiducation
*/

/* The parent palette and fonts are already swapped in assets/css/base.css
   (generated by tools/build_child_base_css.py). This file holds the design layer. */

:root {
	--dc-blue: #0e559b;        /* logo */
	--dc-blue-dark: #0a3d70;
	--dc-blue-light: #eaf2fb;
	--dc-gray: #58595b;        /* logo */
	--dc-ink: #1f2f40;
	--dc-accent: #f5a623;
	--dc-accent-dark: #e0901a;
	--dc-radius: 18px;
	/* Spacing: one scale on 8px steps (12 is the only half step), nothing above 64.
	   Related items (title + subtitle, label + field) get XS or S; padding inside
	   cards and components M or L; only sections are XXL or XXXL apart. */
	--dc-space-xs: 8px;
	--dc-space-s: 12px;
	--dc-space-m: 16px;
	--dc-space-l: 24px;
	--dc-space-xl: 32px;
	--dc-space-xxl: 48px;
	--dc-space-xxxl: 64px;
	/* Between sections. Next to a cloud band, which already marks the break, one step less. */
	--dc-gap-section: var(--dc-space-xxxl);
	--dc-gap-cloud: var(--dc-space-xxl);
	/* Built-in CSS easings are too soft; these start fast so feedback feels immediate. */
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
@media screen and (max-width: 1023px) {
	:root {
		--dc-gap-section: var(--dc-space-xxl);
		--dc-gap-cloud: var(--dc-space-xl);
	}
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
	font-family: 'Nunito', sans-serif;
	color: var(--dc-gray);
	font-size: 17px;
}
p {
	color: var(--dc-gray);
}
h1, h2, h3, h4, h5, h6,
.section-title,
.entry-title {
	font-family: 'Nunito', sans-serif;
	color: var(--dc-ink);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
}
.section-title,
.section-header .section-title {
	font-size: 38px;
}
#services .entry-title,
#services .entry-title a {
	font-size: 24px;
	font-weight: 700;
	color: var(--dc-ink);
}
a {
	color: var(--dc-blue);
}
a:hover,
a:focus {
	color: var(--dc-blue-dark);
}

/*--------------------------------------------------------------
# Header & logo
--------------------------------------------------------------*/
/* Horizontal lockup: sized by height (46px until 2026-11-12, then 7% smaller at
   the user's request: 43px, phones 35px). */
.site-logo img.dc-logo {
	display: block;
	width: auto;
	height: 43px;
	max-height: none;
}
.site-logo a {
	margin-right: 0;
}
@media screen and (min-width: 1024px) {
	/* One 80px row: logo left, menu right, both centred on the same axis. */
	#masthead.site-header {
		padding: 0;
	}
	#masthead .wrapper {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	#masthead .wrapper::before,
	#masthead .wrapper::after {
		display: none;
	}
	#masthead .site-branding {
		padding: 0;
	}
	.main-navigation ul.nav-menu > li {
		padding: var(--dc-space-m) var(--dc-space-s);
	}
	/* The logo never shrinks; the menu stays on one line. */
	#masthead .site-branding {
		flex-shrink: 0;
		margin-right: var(--dc-space-l);
	}
	#masthead .main-navigation {
		min-width: 0;
	}
	/* !important: the parent sets .main-navigation ul.nav-menu{display:block!important}. */
	#primary-menu {
		display: flex !important;
		flex-wrap: nowrap;
		align-items: center;
		margin-right: 0;
	}
	#primary-menu > li {
		white-space: nowrap;
	}
}
/* Small laptops (1024-1279px): logo + 6 links + pill need ~1065px at full size.
   Use more of the width, tighten the links, and drop "Accueil" (the logo already
   leads home), so everything stays on one row. */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
	/* Every container a bit wider, so the header and the content stay aligned. */
	.wrapper {
		width: 95%;
	}
	#masthead .site-branding {
		margin-right: var(--dc-space-m);
	}
	.main-navigation ul.nav-menu > li {
		padding: var(--dc-space-m) var(--dc-space-xs);
	}
	.main-navigation ul.nav-menu > li > a {
		font-size: 15px;
	}
	#primary-menu > li:first-child {
		display: none;
	}
	.main-navigation ul.nav-menu > li:last-child > a {
		margin-left: var(--dc-space-xs);
		padding: 0 var(--dc-space-m);
	}
}
/* Phones: the parent's 90% + 15px left 35px of empty margin on each side, while
   the logo sits M from the edge. Every container now lines up with the logo, which
   gives the content 38px more width (buttons can sit side by side). */
@media screen and (max-width: 600px) {
	.wrapper {
		width: auto;
		padding-left: var(--dc-space-m);
		padding-right: var(--dc-space-m);
	}
	.wrapper.page-section {
		padding-left: 0;
		padding-right: 0;
	}
	.page-section > #primary {
		padding-left: var(--dc-space-m);
		padding-right: var(--dc-space-m);
	}
}
.main-navigation ul.nav-menu > li > a {
	font-weight: 700;
	color: var(--dc-ink);
}
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a,
.main-navigation ul li.current-menu-ancestor > a,
.main-navigation ul li a:hover {
	color: var(--dc-blue);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn,
button,
input[type="submit"],
.wp-block-button__link,
.everest-forms .everest-forms-submit-button,
.everest-forms button[type="submit"] {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 17px;
	/* Full pill, 56px tall, like the hero reference. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	border-radius: 999px;
	background-color: var(--dc-blue);
	border: 2px solid var(--dc-blue);
	color: #fff;
	padding: 0 var(--dc-space-xl);
	line-height: 1.25;
	box-shadow: none;
}
/* Hover only where a real pointer hovers: on touch, :hover sticks after a tap. */
.btn:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
.wp-block-button__link:focus-visible {
	background-color: var(--dc-blue-dark);
	border-color: var(--dc-blue-dark);
	color: #fff;
}
@media (hover: hover) and (pointer: fine) {
	.btn:hover,
	button:hover,
	input[type="submit"]:hover,
	.wp-block-button__link:hover,
	.everest-forms .everest-forms-submit-button:hover,
	.everest-forms button[type="submit"]:hover {
		background-color: var(--dc-blue-dark);
		border-color: var(--dc-blue-dark);
		color: #fff;
	}
	.btn.btn-transparent:hover {
		background-color: var(--dc-blue);
		color: #fff;
	}
}
.btn.btn-transparent {
	background: transparent;
	color: var(--dc-blue);
}
/* Hero buttons (white pill + white outline): see assets/css/hero.css */
.menu-toggle,
.menu-toggle:hover,
.dropdown-toggle,
.dropdown-toggle:hover,
.main-navigation button {
	background: transparent;
	border: 0;
	color: var(--dc-ink);
	padding: 0;
	font-weight: 400;
}
.main-navigation .menu-toggle {
	padding: var(--dc-space-s);
}

/* Home hero: see assets/css/hero.css */

/*--------------------------------------------------------------
# Home sections
--------------------------------------------------------------*/
#services .section-header {
	margin-bottom: var(--dc-space-l);
}
#services .icon-container a {
	box-shadow: 0 10px 24px rgba(14, 85, 155, 0.18);
}
#about {
	background-color: var(--dc-blue-light);
}
#about img {
	border-radius: var(--dc-radius);
}
#about .section-title {
	font-size: 36px;
}

/* Quote band: brand blue instead of the grey photo overlay. */
#cta {
	background-attachment: scroll;
}
#cta .overlay {
	background-color: var(--dc-blue);
	opacity: 0.93;
}
#cta .section-title {
	color: #fff;
	font-size: 40px;
}
#cta p {
	color: rgba(255, 255, 255, 0.92);
	font-size: 18px;
}
#cta .btn.btn-primary {
	background-color: #fff;
	border-color: #fff;
	color: var(--dc-blue);
}
@media (hover: hover) and (pointer: fine) {
	#cta .btn.btn-primary:hover {
		background-color: var(--dc-blue-light);
		border-color: var(--dc-blue-light);
		color: var(--dc-blue-dark);
	}
	#cta .btn.btn-transparent:hover {
		background: #fff;
		color: var(--dc-blue-dark);
	}
	.dc-offer .is-style-outline .wp-block-button__link:hover {
		background: var(--dc-blue);
		color: #fff;
	}
}
#cta .btn.btn-transparent {
	border-color: #fff;
	color: #fff;
}

/* "Ce qu'on offre" block, home page content (replaces the flyer image). */
.dc-offer {
	max-width: 1000px;
	margin: var(--dc-space-xl) auto var(--dc-gap-section);
	text-align: center;
}
.dc-offer h2 {
	font-size: 36px;
	margin-bottom: var(--dc-space-s);
}
.dc-offer > p {
	max-width: 640px;
	margin: 0 auto var(--dc-space-xl);
	font-size: 18px;
}
.dc-offer__list {
	list-style: none;
	margin: 0 0 var(--dc-space-xl);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--dc-space-m);
}
.dc-offer__list li {
	background: var(--dc-blue-light);
	border-radius: var(--dc-radius);
	padding: var(--dc-space-l) var(--dc-space-s);
	color: var(--dc-ink);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
}
.dc-offer__list li::before {
	content: none !important;
}
.dc-offer__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin: 0 auto var(--dc-space-s);
	border-radius: 50%;
	background: #fff;
	color: var(--dc-blue);
	font-size: 26px;
}
.dc-offer__list li:nth-child(even) .dc-offer__icon {
	color: var(--dc-accent-dark);
}
.dc-offer .wp-block-buttons {
	justify-content: center;
	gap: var(--dc-space-s);
}
.dc-offer .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--dc-blue);
}

/*--------------------------------------------------------------
# Inner page banner
--------------------------------------------------------------*/
#page-site-header {
}
#page-site-header .overlay {
	background-color: var(--dc-blue-dark);
	opacity: 0.55;
}
#page-site-header .page-title {
	margin: 0;
	color: #fff;
	font-size: 46px;
	font-weight: 700;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

/*--------------------------------------------------------------
# Footer contact band & forms
--------------------------------------------------------------*/
.footer-widgets-area {
	background-color: var(--dc-blue-dark);
}
.footer-widgets-area video {
	border-radius: var(--dc-radius);
}
.footer-widgets-area .everest-forms {
	border-radius: var(--dc-radius);
}
.everest-forms .evf-field-label,
.everest-forms label {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	color: var(--dc-ink);
}
.everest-forms input.input-text,
.everest-forms textarea,
.everest-forms select {
	border-radius: 10px !important;
	border: 1px solid #cfd8e3 !important;
	background: #f7f9fc !important;
}
.everest-forms input.input-text:focus,
.everest-forms textarea:focus {
	border-color: var(--dc-blue) !important;
	outline: 2px solid rgba(14, 85, 155, 0.18);
}
.everest-forms abbr.required {
	color: #c0392b;
}
.evf-container .evf-submit-container .everest-forms-submit-button {
	background-color: var(--dc-blue) !important;
	border: 2px solid var(--dc-blue) !important;
	border-radius: 50px !important;
	color: #fff !important;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 17px;
	padding: var(--dc-space-s) var(--dc-space-xl) !important;
}
@media (hover: hover) and (pointer: fine) {
	.evf-container .evf-submit-container .everest-forms-submit-button:hover {
		background-color: var(--dc-blue-dark) !important;
		border-color: var(--dc-blue-dark) !important;
	}
}

/* Home: the page content (offer block) uses the full width, there is no sidebar. */
.home.right-sidebar #primary {
	width: 100%;
	float: none;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 991px) {
	.dc-offer__list {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media screen and (max-width: 767px) {
	body {
		font-size: 16px;
	}
	.section-title,
	.section-header .section-title,
	#cta .section-title,
	.dc-offer h2,
	#about .section-title {
		font-size: 28px;
	}
	.dc-offer__list {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--dc-space-s);
	}
	.dc-offer__list li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	#page-site-header {
	}
	#page-site-header .page-title {
		font-size: 32px;
	}
	#cta .btn.btn-primary {
		margin-right: 0;
		margin-bottom: var(--dc-space-s);
	}
}
