/*
Theme Name: Notre Dame Auto-école
Theme URI: https://autoecolenotredame.fr/
Author: RSP
Author URI: https://www.rsp.fr/
Description: Thème sur mesure de l'Auto-école Notre Dame (Dijon) : permis auto & moto, formations professionnelles, récupération de points et permis bateau réunis sur un seul site.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Propriétaire
Text Domain: notredame
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
	--orange: #f04923;
	--orange-soft: color-mix(in srgb, var(--orange) 9%, #fff);
	--blue: #00ade3;
	--blue-soft: color-mix(in srgb, var(--blue) 9%, #fff);
	--green: #72bf44;
	--green-soft: color-mix(in srgb, var(--green) 9%, #fff);
	--charcoal: #414142;
	--charcoal-soft: #f1f1ef;

	--ink: #1a1a1b;
	--text: #3a3a3c;
	--muted: #6b6b70;
	--line: #e6e4df;
	--bg: #ffffff;
	--bg-alt: #f7f6f3;

	--accent: var(--orange);
	--accent-soft: var(--orange-soft);

	--font-title: "Outfit", "Segoe UI", system-ui, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(26, 26, 27, .06), 0 8px 24px rgba(26, 26, 27, .06);
	--shadow-lg: 0 2px 4px rgba(26, 26, 27, .06), 0 20px 48px rgba(26, 26, 27, .12);

	--container: 1200px;
	--content: 780px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 84px;
}

.accent-blue,
.is-blue {
	--accent: var(--blue);
	--accent-soft: var(--blue-soft);
}

.accent-green,
.is-green {
	--accent: var(--green);
	--accent-soft: var(--green-soft);
}

.accent-charcoal,
.is-charcoal {
	--accent: var(--charcoal);
	--accent-soft: var(--charcoal-soft);
}

.accent-orange,
.is-orange {
	--accent: var(--orange);
	--accent-soft: var(--orange-soft);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 .5em;
	color: var(--ink);
	font-family: var(--font-title);
	font-weight: 700;
	line-height: 1.1em;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.15rem; }

p,
ul,
ol,
figure,
table {
	margin: 0 0 1.1em;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
	border-radius: 4px;
}

strong {
	color: var(--ink);
	font-weight: 650;
}

hr,
.wp-block-separator {
	margin: 2.5rem auto;
	border: 0;
	border-top: 1px solid var(--line);
}

.and-icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
	vertical-align: -.25em;
}

.screen-reader-text,
.and-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.and-skip {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: #fff;
}

.and-skip:focus {
	top: 12px;
}

.and-container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.and-center {
	text-align: center;
}

.and-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin: 0 0 .9rem;
	color: var(--and-color, var(--accent));
	font-family: var(--font-title);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.and-lead {
	color: var(--text);
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.55;
}

/* ==========================================================================
   3. Boutons
   ========================================================================== */

.and-btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 48px;
	padding: .75em 1.4em;
	border: 2px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-title);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.and-btn:hover,
.wp-block-button__link:hover {
	box-shadow: 0 6px 18px rgba(26, 26, 27, .18);
	color: #fff;
	transform: translateY(-1px);
}

.and-btn .and-icon,
.wp-block-button__link .and-icon {
	width: 1.1em;
	height: 1.1em;
}

.and-btn.is-ghost,
.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--accent);
}

.is-style-outline > .wp-block-button__link:hover,
.and-btn.is-ghost:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.and-btn.is-light {
	border-color: #fff;
	background: #fff;
	color: var(--ink);
}

.and-btn.is-light:hover {
	color: var(--ink);
}

.and-btn.is-outline-light {
	border-color: rgba(255, 255, 255, .7);
	background: transparent;
	color: #fff;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 1.2em;
}

.wp-block-buttons.is-content-justification-center {
	justify-content: center;
}

.and-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-weight: 600;
	text-decoration: none;
}

.and-link-arrow:hover .and-icon {
	transform: translateX(3px);
}

.and-link-arrow .and-icon {
	transition: transform .15s ease;
}

/* ==========================================================================
   4. En-tête
   ========================================================================== */

.and-topbar {
	background: var(--ink);
	color: #d9d9dc;
	font-size: .85rem;
}

.and-topbar .and-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}

.and-topbar p {
	display: flex;
	align-items: center;
	gap: .5em;
	margin: 0;
}

.and-topbar-right {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.and-topbar a {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	color: #fff;
	text-decoration: none;
}

.and-topbar a:hover {
	color: var(--blue);
}

.and-topbar .and-icon {
	width: 1.05em;
	height: 1.05em;
}

.and-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(10px);
}

/* Sous la barre d'admin WP : 32px, 46px sous 783px, et elle défile avec la page sous 601px. */
.admin-bar .and-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .and-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .and-header {
		top: 0;
	}
}

.and-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.and-logo {
	display: block;
	flex: none;
	line-height: 0;
}

.and-logo img {
	width: auto;
	height: 60px;
}

.and-nav {
	flex: 1;
}

.and-menu {
	display: flex;
	justify-content: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.and-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.and-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	padding: 28px 12px;
	color: var(--ink);
	font-family: var(--font-title);
	font-size: 1.02rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.and-menu > li > a::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 18px;
	left: 12px;
	height: 3px;
	border-radius: 3px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}

.and-menu > li:hover > a::after,
.and-menu > li:focus-within > a::after,
.and-menu > .current-menu-item > a::after,
.and-menu > .current-menu-ancestor > a::after,
.and-menu > .current-page-ancestor > a::after {
	transform: scaleX(1);
}

.and-menu .sub-menu {
	position: absolute;
	top: calc(100% - 8px);
	left: 0;
	z-index: 10;
	min-width: 270px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	background: #fff;
	box-shadow: var(--shadow-lg);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.and-menu > li:hover > .sub-menu,
.and-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.and-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--ink);
	font-size: .97rem;
	text-decoration: none;
}

.and-menu .sub-menu a:hover,
.and-menu .sub-menu .current-menu-item > a {
	background: var(--accent-soft);
	color: var(--accent);
}

.and-sub-toggle {
	display: none;
}

.and-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.and-header-cta {
}

.and-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}

.and-burger-close {
	display: none;
}

.and-burger[aria-expanded="true"] .and-burger-open {
	display: none;
}

.and-burger[aria-expanded="true"] .and-burger-close {
	display: inline;
}

.and-burger .and-icon {
	width: 24px;
	height: 24px;
}

.and-nav-mobile-extra {
	display: none;
}

@media (max-width: 1180px) {
	.and-menu > li > a {
		padding-right: 8px;
		padding-left: 8px;
		font-size: .96rem;
	}

	.and-menu > li > a::after {
		right: 8px;
		left: 8px;
	}
}

@media (max-width: 1080px) {
	:root {
		--header-h: 72px;
	}

	.and-topbar-left,
	.and-topbar-right li:nth-child(2) {
		display: none !important;
	}

	.and-topbar .and-container {
		justify-content: center;
	}

	.and-logo img {
		height: 50px;
	}

	.and-burger {
		display: inline-flex;
	}

	/* backdrop-filter créerait un bloc conteneur pour le panneau fixe. */
	.and-header {
		background: #fff;
		backdrop-filter: none;
	}

	.and-nav {
		position: fixed;
		top: var(--nav-top, 112px);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 99;
		overflow-y: auto;
		padding: 12px var(--gutter) 40px;
		background: #fff;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}

	.and-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.and-menu {
		flex-direction: column;
		gap: 0;
	}

	.and-menu > li {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--line);
	}

	.and-menu > li > a {
		flex: 1;
		padding: 18px 4px;
		font-size: 1.15rem;
	}

	.and-menu > li > a::after {
		top: 18px;
		right: auto;
		bottom: 18px;
		left: -12px;
		width: 4px;
		height: auto;
		transform: scaleY(0);
	}

	.and-sub-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		border: 0;
		border-radius: 50%;
		background: var(--accent-soft);
		color: var(--accent);
		cursor: pointer;
	}

	.and-sub-toggle .and-icon {
		transition: transform .2s ease;
	}

	.and-sub-toggle[aria-expanded="true"] .and-icon {
		transform: rotate(180deg);
	}

	.and-menu .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		margin: 0 0 14px;
		padding: 4px 0 4px 12px;
		border: 0;
		border-left: 3px solid var(--accent);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.and-menu > li.is-open > .sub-menu {
		display: block;
	}

	.and-nav-mobile-extra {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-top: 24px;
	}

	body.and-nav-open {
		overflow: hidden;
	}
}

@media (max-width: 600px) {
	.and-header-cta {
		display: none;
	}

	.and-logo img {
		height: 44px;
	}
}

/* Couleurs propres à chaque univers dans le menu. */
.and-menu > li.is-orange { --accent: var(--orange); --accent-soft: var(--orange-soft); }
.and-menu > li.is-blue { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.and-menu > li.is-green { --accent: var(--green); --accent-soft: var(--green-soft); }
.and-menu > li.is-charcoal { --accent: var(--charcoal); --accent-soft: var(--charcoal-soft); }

/* ==========================================================================
   5. En-tête de page, fil d'Ariane, sous-navigation
   ========================================================================== */

.and-hero-page {
	position: relative;
	overflow: hidden;
	padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
	background: var(--accent-soft);
}

.and-hero-page .and-container {
	position: relative;
	z-index: 1;
}

.and-hero-page h1 {
	max-width: 820px;
}

.and-hero-page .and-lead {
	max-width: 720px;
	margin-bottom: 0;
}

.and-hero-dots {
	position: absolute;
	top: 50%;
	right: max(-60px, calc((100vw - var(--container)) / 2 - 140px));
	width: 340px;
	height: 220px;
	transform: translateY(-50%);
	pointer-events: none;
}

.and-hero-dots::before,
.and-hero-dots::after {
	content: "";
	position: absolute;
	border-radius: 50%;
}

.and-hero-dots::before {
	top: 0;
	left: 0;
	width: 180px;
	height: 180px;
	background: var(--accent);
	opacity: .16;
	box-shadow: 120px 50px 0 -20px var(--accent);
}

.and-hero-dots::after {
	right: 20px;
	bottom: 0;
	width: 110px;
	height: 110px;
	border: 14px solid var(--accent);
	opacity: .14;
}

@media (max-width: 860px) {
	.and-hero-dots {
		top: auto;
		right: -120px;
		bottom: -100px;
		transform: none;
	}
}

.and-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin-bottom: 1.2rem;
	color: var(--and-color, var(--muted));
	font-size: .9rem;
}

.and-breadcrumb a {
	color: var(--and-color, var(--muted));
	text-decoration: none;
}

.and-breadcrumb a:hover {
	color: var(--and-color, var(--accent));
	text-decoration: underline;
}

.and-subnav {
	border-bottom: 1px solid var(--line);
	background: #fff;
}

.and-subnav ul {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 12px 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}

@media (min-width: 900px) {
	.and-subnav ul {
		flex-wrap: wrap;
		overflow: visible;
	}
}

.and-subnav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--ink);
	font-size: .95rem;
	font-weight: 550;
	text-decoration: none;
	white-space: nowrap;
}

.and-subnav a:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.and-subnav a[aria-current="page"] {
	background: var(--accent);
	color: #fff;
}

/* ==========================================================================
   6. Contenu éditorial (blocs)
   ========================================================================== */

.and-content {
	padding: clamp(40px, 6vw, 72px) var(--gutter);
}

.and-content > *,
.and-content .wp-block-group.is-layout-constrained > *,
.and-content > :where(.and-flow) > :where(.elementor-widget-text-editor:not(.wp-block-group)) > *,
.and-content .wp-block-group.is-layout-constrained > :where(.elementor-widget-text-editor:not(.wp-block-group)) > * {
	max-width: var(--content);
	margin-right: auto;
	margin-left: auto;
}

.and-content > .alignwide,
.and-content .wp-block-group.is-layout-constrained > .alignwide,
.and-content .wp-block-group.is-layout-constrained > :where(.elementor-widget-text-editor:not(.wp-block-group)) > .alignwide {
	max-width: var(--container);
}

.and-content > .alignfull {
	max-width: none;
	margin-right: calc(var(--gutter) * -1);
	margin-left: calc(var(--gutter) * -1);
}

.and-content > .alignfull.is-layout-constrained,
.and-content > .alignfull > .and-container {
	padding-right: var(--gutter);
	padding-left: var(--gutter);
}

.and-content:where(:not(.and-content + *)) > :first-child,
.and-content:where(:not(.and-content + *)) > :where(.and-flow:first-child) > :where(.elementor-widget):first-child {
	margin-top: 0;
}

.and-content:where(:not(:has(+ .and-content))) > :last-child {
	margin-bottom: 0;
}

.and-content h2 {
	margin-top: 2.2em;
}

.and-content h3 {
	margin-top: 1.8em;
}

.and-content h2:first-child,
.and-content h3:first-child,
.and-content .wp-block-group h2:first-child,
.and-content .wp-block-group h3:first-child,
.and-content .wp-block-column > h3:first-child,
.and-content .wp-block-column > h2:first-child {
	margin-top: 0;
}

.and-content ul,
.and-content ol {
	padding-left: 1.3em;
}

.and-content li + li {
	margin-top: .35em;
}

.and-content li::marker {
	color: var(--accent);
}

/* Liste à coches */
.and-content ul.is-style-checklist,
.and-content .and-checklist ul,
ul.and-checklist {
	padding-left: 0;
	list-style: none;
}

.and-content ul.is-style-checklist li,
.and-content .and-checklist li,
ul.and-checklist li {
	position: relative;
	padding-left: 2em;
}

.and-content ul.is-style-checklist li::before,
.and-content .and-checklist li::before,
ul.and-checklist li::before {
	content: "";
	position: absolute;
	top: .2em;
	left: 0;
	width: 1.3em;
	height: 1.3em;
	border-radius: 50%;
	background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* Étapes numérotées */
.and-content ol.and-steps,
.and-content .and-steps ol {
	padding-left: 0;
	counter-reset: and-step;
	list-style: none;
}

.and-content ol.and-steps > li,
.and-content .and-steps ol > li {
	position: relative;
	min-height: 2.4em;
	padding-left: 3.2em;
	counter-increment: and-step;
}

.and-content ol.and-steps > li + li {
	margin-top: 1em;
}

.and-content ol.and-steps > li::before,
.and-content .and-steps ol > li::before {
	content: counter(and-step);
	position: absolute;
	top: -.1em;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.2em;
	height: 2.2em;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-title);
	font-weight: 700;
}

/* Sections pleine largeur */
.and-section {
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(48px, 7vw, 96px);
}

.and-content > .and-band {
	margin-top: clamp(48px, 6vw, 80px);
	margin-bottom: clamp(48px, 6vw, 80px);
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
	background: var(--bg-alt);
}

.and-content > .and-band:last-child {
	margin-bottom: calc(clamp(40px, 6vw, 72px) * -1);
}

.and-content > .and-band:first-child {
	margin-top: calc(clamp(40px, 6vw, 72px) * -1);
}

.and-band.is-soft {
	background: var(--accent-soft);
}

.and-band.is-dark {
	background: var(--ink);
	color: #d9d9dc;
}

.and-band.is-dark h2,
.and-band.is-dark h3,
.and-band.is-dark strong {
	color: #fff;
}

.and-section-head {
	max-width: 720px;
	margin-bottom: clamp(24px, 4vw, 40px) !important;
}

.and-section-head.has-text-align-center,
.has-text-align-center.and-section-head {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.and-section-head h2 {
	margin-top: 0;
}

.and-section-head p:last-child {
	margin-bottom: 0;
}

.has-text-align-center {
	text-align: center;
}

/* Encadrés */
.and-panel {
	margin-top: 2rem;
	margin-bottom: 2rem;
	padding: clamp(22px, 3.5vw, 36px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.wp-block-column > .and-panel {
	margin-top: 0;
}

.wp-block-column > .and-panel + .and-panel {
	margin-top: 20px;
}

.and-panel > :last-child,
.and-panel > .elementor-text-editor > :last-child {
	margin-bottom: 0;
}

.and-panel > h2:first-child,
.and-panel > .elementor-text-editor > h2:first-child,
.and-panel > h3:first-child,
.and-panel > .elementor-text-editor > h3:first-child {
	margin-top: 0;
}

/* Logo en tête de carte (réseaux CityZen / CityPro) */
.and-panel-logo {
	margin: 0 0 18px;
}

.and-panel-logo img {
	display: block;
	width: clamp(150px, 18vw, 200px);
	height: auto;
}

.and-panel-logo + :is(h2, h3) {
	margin-top: 0;
}

.and-panel.is-soft {
	border-color: transparent;
	background: var(--accent-soft);
	box-shadow: none;
}

.and-callout {
	position: relative;
	margin-top: 2rem;
	margin-bottom: 2rem;
	padding: 20px 24px 20px 64px;
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	color: var(--ink);
}

.and-callout::before {
	content: "i";
	position: absolute;
	top: 20px;
	left: 20px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-title);
	font-weight: 800;
}

.and-callout > :last-child,
.and-callout > .elementor-text-editor > :last-child {
	margin-bottom: 0;
}

/* Fiche formation : informations clés */
.and-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin-top: 1.5rem;
	margin-bottom: 2rem;
}

.and-facts > p,
.and-facts > .elementor-text-editor > p {
	margin: 0;
	padding: 16px 18px;
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	color: var(--ink);
	font-size: .97rem;
	line-height: 1.45;
}

.and-facts > p strong,
.and-facts > .elementor-text-editor > p strong {
	display: block;
	margin-bottom: 4px;
	color: var(--accent);
	font-family: var(--font-title);
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Informations détaillées (programme officiel) */
.and-details {
	margin-top: 1.5rem;
	margin-bottom: 2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
}

.and-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	color: var(--ink);
	font-family: var(--font-title);
	font-size: 1.05rem;
	font-weight: 650;
	cursor: pointer;
	list-style: none;
}

.and-details summary::-webkit-details-marker {
	display: none;
}

.and-details summary::after {
	content: "+";
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 1.3rem;
	line-height: 1;
}

.and-details[open] summary::after {
	content: "−";
}

.and-details > :not(summary) {
	padding-right: 20px;
	padding-left: 20px;
}

.and-details > :last-child {
	padding-bottom: 8px;
}

/* Grille de fonctionnalités */
.and-features {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.and-features > .wp-block-column,
.and-feature {
	margin: 0 !important;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.and-feature h3 {
	margin-top: 0;
	font-size: 1.2rem;
}

.and-feature p:last-child {
	margin-bottom: 0;
}

.and-feature-icon {
	display: inline-grid !important;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 0 16px !important;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 1.5rem;
	line-height: 1;
}

.and-feature-icon .and-icon {
	width: 26px;
	height: 26px;
}

/* Colonnes */
.wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(20px, 3vw, 40px);
	margin-bottom: 1.5em;
}

.wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}

.wp-block-column > :last-child {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-direction: column;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.are-vertically-aligned-center,
.is-vertically-aligned-center {
	align-items: center;
	align-self: center;
}

/* Tableaux (tarifs) */
.wp-block-table {
	overflow-x: auto;
	margin-top: 1.5rem;
	margin-bottom: 2rem;
}

.wp-block-table table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-radius: var(--radius-sm);
	background: #fff;
	font-size: 1rem;
}

.wp-block-table table.has-fixed-layout {
	table-layout: auto;
}

.wp-block-table th,
.wp-block-table td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead {
	border: 0;
}

.wp-block-table thead th {
	border-bottom: 2px solid var(--accent);
	color: var(--ink);
	font-family: var(--font-title);
	font-weight: 650;
}

.wp-block-table td:last-child,
.wp-block-table th:last-child {
	text-align: right;
	white-space: nowrap;
}

.wp-block-table td:last-child {
	color: var(--ink);
	font-weight: 650;
}

.wp-block-table figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: .9rem;
}

/* Chiffres clés : bulles pleines comme celles de l'accueil (.and-chiffres), toutes sur une ligne */
.and-stats {
	display: flex !important;
	justify-content: center;
	gap: clamp(10px, 2.4vw, 28px);
	margin-bottom: 2rem;
	container-type: inline-size;
}

.and-stats > p,
.and-stats > .elementor-text-editor > p {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	max-width: 176px;
	aspect-ratio: 1;
	margin: 0;
	padding: 14px;
	border-radius: 50%;
	background: var(--stat-bg);
	box-shadow: 0 18px 40px rgba(26, 26, 27, .14);
	color: #fff;
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	animation: and-float 7s ease-in-out infinite;
}

.and-stats > p strong,
.and-stats > .elementor-text-editor > p strong {
	display: block;
	margin-bottom: 6px;
	color: #fff;
	font-family: var(--font-title);
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 800;
	line-height: 1;
}

/* Trop étroit pour loger le texte dans la bulle : seul le chiffre y reste, le texte passe dessous */
@container (max-width: 620px) {
	.and-stats > p,
	.and-stats > .elementor-text-editor > p {
		justify-content: flex-start;
		aspect-ratio: auto;
		padding: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		color: var(--muted);
		font-size: clamp(.72rem, 2.9cqi, .9rem);
		font-weight: 400;
		animation: none;
	}

	.and-stats > p strong,
	.and-stats > .elementor-text-editor > p strong {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		aspect-ratio: 1;
		margin-bottom: 10px;
		border-radius: 50%;
		background: var(--stat-bg);
		box-shadow: 0 12px 28px rgba(26, 26, 27, .14);
		font-size: clamp(1.15rem, 6cqi, 2.3rem);
		animation: and-float 7s ease-in-out infinite;
		animation-delay: inherit;
	}
}

/* Même suite de couleurs et même décalage du flottement que sur l'accueil */
.and-stats > p,
.and-stats > .elementor-text-editor > p { --stat-bg: var(--orange); }
.and-stats > p:nth-child(3n+2),
.and-stats > .elementor-text-editor > p:nth-child(3n+2) { --stat-bg: var(--blue); animation-delay: -2s; }
.and-stats > p:nth-child(3n+3),
.and-stats > .elementor-text-editor > p:nth-child(3n+3) { --stat-bg: var(--green); animation-delay: -4s; }
.and-stats > p:nth-child(4),
.and-stats > .elementor-text-editor > p:nth-child(4) { animation-delay: -6s; }

/* Pastilles (dates) */
.and-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-left: 0 !important;
	list-style: none;
}

.and-chips li {
	margin: 0 !important;
	padding: 10px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-weight: 550;
}

.and-chips li strong {
	color: var(--accent);
}

/* Bloc « Code court » : éviter la marge parasite */
.and-content .wp-block-shortcode {
	margin: 0;
}

/* ==========================================================================
   7. Composants dynamiques (codes courts)
   ========================================================================== */

/* Univers */
.and-univers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: var(--container) !important;
	margin-bottom: 0;
}

@media (max-width: 1100px) {
	.and-univers {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.and-univers {
		grid-template-columns: 1fr;
	}
}

.and-univers-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 26px 24px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-top: 6px solid var(--accent);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}

.and-univers-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-3px);
}

.and-univers-card::after {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: var(--accent);
	opacity: .08;
	pointer-events: none;
}

.and-univers-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.and-univers-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
}

.and-univers-icon .and-icon {
	width: 26px;
	height: 26px;
}

.and-univers-card h3 {
	margin: 0;
	font-size: 1.3rem;
}

.and-univers-card h3 a {
	color: var(--ink);
	text-decoration: none;
}

.and-univers-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.and-univers-card > p {
	color: var(--muted);
	font-size: .97rem;
}

.and-univers-card ul {
	position: relative;
	z-index: 1;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.and-univers-card li {
	margin: 0 !important;
	border-top: 1px solid var(--line);
}

.and-univers-card li a {
	display: block;
	padding: 9px 0;
	color: var(--ink);
	font-size: .97rem;
	text-decoration: none;
}

.and-univers-card li a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.and-univers-more {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin-top: auto;
	color: var(--accent);
	font-weight: 650;
	text-decoration: none;
}

/* Cartes de sous-pages */
.and-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 18px;
	max-width: var(--content) !important;
	margin-bottom: 2rem;
}

.and-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--text);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.and-card:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.and-card-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}

.and-card-icon .and-icon {
	width: 26px;
	height: 26px;
}

.and-card-toy {
	width: 96px;
	height: 96px;
	margin: -8px 0 -4px -6px;
}

.and-card-toy img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 3px 5px rgba(26, 26, 27, .18));
	transition: transform .2s ease;
}

.and-card:hover .and-card-toy img {
	transform: scale(1.06) rotate(-3deg);
}

.and-card-title {
	color: var(--ink);
	font-family: var(--font-title);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.and-card-text {
	font-size: .97rem;
}

.and-card-more {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin-top: auto;
	padding-top: 6px;
	color: var(--accent);
	font-weight: 650;
}

/* Documents à télécharger */
.and-content ul.and-docs,
ul.and-docs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
	margin-top: 1.2rem;
	margin-bottom: 2rem;
	padding: 0;
	list-style: none;
}

.and-content .and-docs li + li {
	margin-top: 0;
}

.and-doc {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--text);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.and-doc:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow);
}

.and-doc-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}

.and-doc-icon .and-icon {
	width: 22px;
	height: 22px;
}

.and-doc-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.and-doc-title {
	color: var(--ink);
	font-weight: 650;
	line-height: 1.3;
}

.and-doc-meta {
	color: var(--muted);
	font-size: .85rem;
}

.and-doc-dl {
	flex: none;
	color: var(--accent);
}

.and-doc-dl .and-icon {
	width: 20px;
	height: 20px;
}

/* Sessions de stage accéléré */
.and-content ul.and-sessions,
ul.and-sessions {
	display: grid;
	gap: 12px;
	margin-top: 1.5rem;
	margin-bottom: 2rem;
	padding: 0;
	list-style: none;
}

.and-content .and-sessions li + li {
	margin-top: 0;
}

.and-session {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
}

.and-session-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}

.and-session-icon .and-icon {
	width: 22px;
	height: 22px;
}

.and-session-body {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.and-session-title {
	color: var(--ink);
	font-family: var(--font-title);
	font-size: 1.08rem;
	font-weight: 650;
	line-height: 1.3;
}

.and-session-dates {
	color: var(--text);
}

.and-session-meta {
	color: var(--muted);
	font-size: .9rem;
}

.and-session-statut {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--green-soft);
	color: var(--green);
	font-size: .85rem;
	font-weight: 600;
	white-space: nowrap;
}

.and-session.is-dernier .and-session-statut {
	background: var(--orange-soft);
	color: var(--orange);
}

.and-session.is-complet {
	background: var(--bg-alt);
}

.and-session.is-complet .and-session-statut {
	background: var(--charcoal-soft);
	color: var(--muted);
}

.and-session .and-btn {
	min-height: 42px;
	padding: .55em 1.2em;
	font-size: .95rem;
}

/* Agences */
.and-agences {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
	max-width: var(--container) !important;
}

.and-agence {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.and-agence header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin-bottom: 14px;
}

.and-agence h3 {
	margin: 0;
	font-size: 1.3rem;
}

.and-tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: .8rem;
	font-weight: 600;
}

.and-agence-line {
	display: flex;
	gap: 10px;
	margin: 0 0 10px;
	font-size: .96rem;
	line-height: 1.5;
}

.and-agence-line .and-icon {
	margin-top: .15em;
	color: var(--accent);
}

.and-agence-line:last-child {
	margin-bottom: 0;
}

/* Actualités */
.and-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 2rem;
	max-width: var(--container) !important;
}

.and-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.and-post-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.and-post-body {
	padding: 24px;
}

.and-post-body time {
	color: var(--muted);
	font-size: .88rem;
}

.and-post-body h3 {
	margin: 6px 0 10px;
	font-size: 1.25rem;
}

.and-post-body h3 a {
	color: var(--ink);
	text-decoration: none;
}

.and-post-body h3 a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.and-post-body p {
	margin: 0;
	font-size: .97rem;
}

.and-single-thumb img {
	border-radius: var(--radius);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	text-decoration: none;
}

.nav-links .current {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

/* ==========================================================================
   8. Formulaires
   ========================================================================== */

.and-form-wrap {
	max-width: var(--content);
	margin: 1.5rem auto 2rem;
}

.and-form {
	padding: clamp(22px, 4vw, 36px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.and-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

@media (max-width: 640px) {
	.and-form-grid {
		grid-template-columns: 1fr;
	}
}

.and-field {
	margin: 0 0 16px;
}

.and-field.is-full {
	grid-column: 1 / -1;
}

.and-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--ink);
	font-size: .95rem;
	font-weight: 600;
}

.and-field label span {
	color: var(--orange);
}

.and-field input,
.and-field select,
.and-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1.5px solid #cfccc5;
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.and-field textarea {
	min-height: 120px;
	resize: vertical;
}

.and-field input:focus,
.and-field select:focus,
.and-field textarea:focus {
	border-color: var(--accent);
	outline: none;
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.and-consent {
	margin: 4px 0 20px;
	font-size: .9rem;
	line-height: 1.5;
}

.and-consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.and-consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	accent-color: var(--accent);
}

.and-form-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.and-required {
	color: var(--muted);
	font-size: .88rem;
}

.and-notice {
	display: flex;
	gap: 14px;
	margin-bottom: 18px;
	padding: 18px 20px;
	border-radius: var(--radius-sm);
	color: var(--ink);
}

.and-notice .and-icon {
	margin-top: .15em;
}

.and-notice.is-success {
	background: var(--green-soft);
}

.and-notice.is-success .and-icon {
	color: var(--green);
}

.and-notice.is-error {
	background: var(--orange-soft);
}

.and-notice.is-error .and-icon {
	color: var(--orange);
}

/* ==========================================================================
   9. Accueil
   ========================================================================== */

.and-home {
	padding-top: 0;
}

.and-hero-home {
	--hero-pb: clamp(48px, 7vw, 104px);
	position: relative;
	/* Au-dessus de la bande suivante : les jouets ([and_jouets]) débordent dessus. */
	z-index: 3;
	overflow: visible;
	overflow-x: clip;
	margin-bottom: 0 !important;
	padding-top: clamp(40px, 7vw, 96px);
	padding-bottom: var(--hero-pb);
	background: var(--bg);
}

/* L'arche Darcy en filigrane, posée au bas de l'en-tête, à droite (un peu au-delà du bord
   du conteneur), derrière les jouets (z-index négatif : au-dessus du fond blanc, sous le contenu). */
.and-hero-home::before {
	content: "";
	position: absolute;
	z-index: -1;
	/* top: auto / left: auto annulent ceux de l'overlay Elementor (.e-con::before), sinon l'arche reste en haut à gauche. */
	top: auto;
	right: max(0px, (100% - var(--container)) / 2 - 120px);
	bottom: 0;
	left: auto;
	width: min(720px, 62%);
	aspect-ratio: 1200 / 897;
	max-height: 70%;
	background: url("assets/img/arche-darcy-hibou-1200.webp?v=2") 100% 100% / contain no-repeat;
	opacity: .12;
	pointer-events: none;
}

.and-hero-home > .wp-block-columns {
	max-width: var(--container) !important;
	margin-bottom: 0;
}

.and-hero-home h1 {
	margin-bottom: .4em;
	font-size: clamp(2.3rem, 5.2vw, 4rem);
}

.and-hero-home h1 em,
.and-hero-home .and-hero-baseline em {
	color: var(--orange);
	font-style: normal;
}

/* « Auto-école Notre Dame » sur une seule ligne : la taille suit la largeur de la colonne
   (le texte fait environ 10,7 fois la taille de police). */
.and-hero-home :has(> h1) {
	container-type: inline-size;
}

.and-hero-home h1 {
	font-size: min(4rem, 9cqi);
	white-space: nowrap;
}

/* Accroche sous le nom de l'auto-école. */
.and-hero-home h1 + .and-hero-baseline {
	margin-top: -.2em;
	margin-bottom: 1em;
	font-family: var(--font-title);
	letter-spacing: -.01em;
	font-size: clamp(1.1rem, 5.2cqi, 2rem);
	font-weight: 700;
	line-height: 1.2;
}

.and-hero-home .and-lead {
	max-width: 560px;
	margin-bottom: 1.6em;
}

.and-hero-home .and-checklist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-top: 26px;
	font-size: .95rem;
}

.and-hero-home .and-checklist li {
	margin: 0;
}

/* Label « École conduite qualité » (Sécurité routière) à gauche de la liste. */
.and-hero-labels {
	gap: clamp(14px, 2vw, 24px);
	margin-top: 26px;
}

.and-hero-labels .and-checklist {
	margin: 0;
}

.and-hero-label {
	flex: none;
	width: clamp(84px, 9vw, 112px);
}

.and-hero-label img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(26, 26, 27, .14);
	transform: rotate(-8deg);
}

.and-hero-label a:focus-visible {
	display: block;
	border-radius: 50%;
	outline: 3px solid var(--orange);
	outline-offset: 3px;
}

/* Jouets : voiture, moto et camion garés devant le panneau indicateur. La scène est calée
   en bas de l'en-tête et les roues débordent sur la bande suivante. */
.and-hero-home .wp-block-column:has(.and-jouets) {
	align-self: flex-end;
}

.and-jouets {
	position: relative;
	/* Plus large que sa colonne : la scène s'étale sous le texte et vers le bord droit. */
	width: 154%;
	max-width: none;
	aspect-ratio: 1.8 / 1;
	margin: 0 -18% 0 -36%;
}

.and-jouets-panneau {
	position: absolute;
	/* Pied du poteau posé au bas de l'en-tête */
	bottom: calc(var(--hero-pb) * -1);
	left: 38%;
	width: 47%;
}

.and-jouets-panneau img {
	display: block;
	width: 100%;
	height: auto;
}

/* Zones cliquables posées sur les trois flèches du panneau */
.and-jouets-fleche {
	position: absolute;
	border-radius: 6px;
}

.and-jouets-fleche.is-particuliers { top: 9%; left: 0; width: 47%; height: 18%; }
.and-jouets-fleche.is-formations-professionnelles { top: 0; left: 53%; width: 45%; height: 18%; }
.and-jouets-fleche.is-contact { top: 25%; left: 53%; width: 47%; height: 13%; }

.and-jouets-fleche:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
}

.and-jouets-vehicules {
	position: absolute;
	right: 0;
	bottom: calc(var(--hero-pb) * -1 - 14%);
	left: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
}

/* Les visuels sont carrés : on compense le vide sous chaque jouet pour aligner les roues. */
.and-jouets-vehicules img {
	flex: 0 0 36%;
	width: 36%;
	height: auto;
	margin: 0 -1.5%;
	filter: drop-shadow(0 12px 14px rgba(26, 26, 27, .18));
}

.and-jouets-vehicules .is-permis-voiture { transform: translateY(15%); }
.and-jouets-vehicules .is-permis-moto { position: relative; z-index: 1; transform: translateY(13.5%); }
.and-jouets-vehicules .is-permis-poids-lourds { position: relative; z-index: 2; flex-basis: 35%; width: 35%; transform: translateY(9.5%); }

/* Sans marge latérale suffisante, la scène ne déborde plus à droite. */
@media (max-width: 1400px) {
	.and-jouets {
		width: 136%;
		margin-right: 0;
	}
}

@media (max-width: 781px) {
	.and-hero-home .wp-block-column:has(.and-jouets) {
		align-self: auto;
	}

	.and-jouets {
		width: 100%;
		max-width: 560px;
		margin: 16px auto 0;
	}
}

/* Chiffres clés : bulles inspirées du logo */
.and-chiffres {
	display: flex !important;
	justify-content: center;
	align-items: center;
	margin: 0 auto clamp(32px, 4vw, 48px) !important;
}

.and-chiffres > p,
.and-chiffres > .elementor-text-editor > p {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: clamp(108px, 14vw, 168px);
	aspect-ratio: 1;
	margin: 0 -6px;
	border-radius: 50%;
	background: var(--orange);
	box-shadow: 0 18px 40px rgba(26, 26, 27, .14);
	color: #fff;
	font-size: clamp(.78rem, 1.1vw, .92rem);
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	animation: and-float 7s ease-in-out infinite;
}

.and-chiffres > p strong,
.and-chiffres > .elementor-text-editor > p strong {
	color: #fff;
	font-family: var(--font-title);
	font-size: clamp(1.8rem, 3.4vw, 2.7rem);
	font-weight: 800;
	line-height: 1;
}

.and-chiffres > p:nth-child(2),
.and-chiffres > .elementor-text-editor > p:nth-child(2) {
	position: relative;
	top: 18px;
	background: var(--blue);
	animation-delay: -2s;
}

.and-chiffres > p:nth-child(3),
.and-chiffres > .elementor-text-editor > p:nth-child(3) {
	background: var(--green);
	animation-delay: -4s;
}

@keyframes and-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

.and-home > .and-univers-section {
	position: relative;
	z-index: 2;
	margin-top: 0;
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.and-home > .and-section-head {
	margin-top: clamp(48px, 6vw, 80px);
}

/* Bande juste sous l'en-tête (blanc) : collée, les fonds alternent blanc / beige */
.and-home > .and-hero-home + .and-band {
	margin-top: 0;
}

/* Stage accéléré */
.and-promo {
	display: grid !important;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	max-width: var(--container) !important;
	padding: clamp(28px, 5vw, 56px);
	border-radius: calc(var(--radius) * 1.5);
	background: var(--ink);
	color: #d9d9dc;
}

.and-promo h2 {
	margin-top: 0;
	color: #fff;
}

.and-promo .and-eyebrow {
	color: var(--orange);
}

.and-promo .and-chips li {
	border-color: rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.and-promo .and-chips li strong {
	color: var(--orange);
}

.and-promo > :last-child {
	margin-bottom: 0;
}

@media (max-width: 860px) {
	.and-promo {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   10. Bandeau d'appel et pied de page
   ========================================================================== */

.and-cta-band {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 6vw, 64px) 0;
	background: var(--accent);
	color: #fff;
}

.and-cta-band::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -80px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
}

.and-cta-band-inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.and-cta-band .and-eyebrow {
	color: rgba(255, 255, 255, .85);
}

.and-cta-band h2 {
	max-width: 640px;
	margin: 0;
	color: #fff;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
}

/* Variante accueil : fond blanc, textes et boutons aux couleurs du thème. */
.and-cta-band.is-white {
	overflow: visible;
	overflow-x: clip;
	background: #fff;
	color: var(--ink);
}

/* Le rond remonte sur la route au-dessus, derrière l'arche et les véhicules. */

.and-cta-band.is-white::before {
	background: var(--accent-soft);
}

.and-cta-band.is-white .and-eyebrow {
	color: var(--accent);
}

.and-cta-band.is-white h2 {
	color: var(--ink);
}

.and-cta-band-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.and-footer {
	background: var(--ink);
	color: #b9b9be;
	font-size: .95rem;
}

.and-footer a {
	color: #fff;
	text-decoration: none;
}

.and-footer a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.and-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 48px;
}

@media (max-width: 980px) {
	.and-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.and-footer-grid {
		grid-template-columns: 1fr;
	}
}

.and-logo-footer {
	display: inline-block;
	margin-bottom: 18px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	background: #fff;
}

.and-logo-footer img {
	height: 64px;
}

.and-footer-title {
	margin-bottom: 16px;
	color: #fff;
	font-size: 1.05rem;
}

.and-footer-small {
	margin-top: -8px;
	font-size: .88rem;
}

.and-footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.and-footer-menu li + li {
	margin-top: 8px;
}

.and-footer-line {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.and-footer-line .and-icon {
	margin-top: .2em;
	color: var(--blue);
}

/* Logos Qualiopi (sur cartouche blanc, comme le logo) et label Sécurité routière (rond). */
.and-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.and-badges a {
	display: block;
}

.and-badges a:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
}

.and-badges img {
	display: block;
	height: 68px;
	width: auto;
}

.and-badges .is-qualiopi a,
.and-badges .is-qualiopi > img {
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	background: #fff;
}

.and-badges .is-qualiopi img {
	height: 52px;
}

.and-badges .is-label,
.and-badges .is-label a {
	border-radius: 50%;
}

.and-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .85rem;
}

.and-footer-bottom .and-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.and-footer-bottom p {
	margin: 0;
}

.and-legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ==========================================================================
   11. Éditeur
   ========================================================================== */

.editor-styles-wrapper {
	font-family: var(--font-body);
}

.editor-styles-wrapper .and-chiffres > p {
	animation: none;
}

/* Citation */
.wp-block-quote {
	position: relative;
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	padding: 28px 32px 28px 36px;
	border-left: 5px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--accent-soft);
	color: var(--ink);
	font-size: 1.08rem;
}

.wp-block-quote p:last-of-type {
	margin-bottom: .6em;
}

.wp-block-quote cite {
	color: var(--accent);
	font-family: var(--font-title);
	font-style: normal;
	font-weight: 700;
}

/* Lien « Contact » du menu : visible uniquement sur mobile (bouton dédié sur ordinateur). */
@media (min-width: 1081px) {
	.and-menu > .and-menu-contact {
		display: none;
	}
}


/* ==========================================================================
   12. Photos
   ========================================================================== */

/* Bandeau de page avec photo */
.and-hero-page.has-image .and-container {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.and-hero-page.has-image .and-hero-dots {
	display: none;
}

.and-hero-media {
	position: relative;
	margin: 0;
}

.and-hero-media::before {
	content: "";
	position: absolute;
	top: -22px;
	right: -22px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: var(--accent);
	opacity: .9;
}

.and-hero-media::after {
	content: "";
	position: absolute;
	bottom: -18px;
	left: -18px;
	width: 84px;
	height: 84px;
	border: 12px solid var(--accent);
	border-radius: 50%;
	opacity: .35;
}

.and-hero-media img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--radius) * 1.4);
	box-shadow: var(--shadow-lg);
}

@media (max-width: 860px) {
	.and-hero-page.has-image .and-container {
		grid-template-columns: 1fr;
	}

	.and-hero-media {
		margin-right: 12px;
	}

	.and-hero-media img {
		aspect-ratio: 16 / 9;
	}
}

/* Cartes univers avec photo */
.and-univers-card.has-image {
	padding-top: 0;
	border-top: 0;
}

.and-univers-media {
	position: relative;
	margin: 0 -26px 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: 6px solid var(--accent);
}

.and-univers-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.and-univers-card:hover .and-univers-media img {
	transform: scale(1.04);
}

.and-univers-card.has-image .and-univers-head {
	margin-top: -26px;
}

.and-univers-card.has-image .and-univers-icon {
	position: relative;
	z-index: 1;
	border: 4px solid #fff;
	width: 58px;
	height: 58px;
}

.and-univers-card.has-image .and-univers-head {
	align-items: flex-start;
}

.and-univers-card.has-image .and-univers-head h3 {
	margin-top: 36px;
}

.and-univers-card.has-image::after {
	display: none;
}

/* Images dans le contenu */
.wp-block-image {
	margin: 2rem auto;
}

.wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.wp-block-image.and-photo img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.wp-block-image.alignwide.and-photo img {
	max-height: 440px;
	object-fit: cover;
}

.wp-block-image figcaption {
	margin-top: 10px;
	color: var(--muted);
	font-size: .9rem;
	text-align: center;
}

.wp-block-column > .wp-block-image {
	margin-top: 0;
	margin-bottom: 0;
}

.and-media-row {
	margin-top: 1.5rem;
	margin-bottom: 2rem;
}

.and-media-row .wp-block-image.and-photo img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ==========================================================================
   13. Portes Particuliers / Professionnels, avis, références
   ========================================================================== */

.and-univers.is-3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
	.and-univers.is-3 {
		grid-template-columns: 1fr;
	}
}

.and-portes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: var(--container) !important;
	margin-bottom: 0;
}

@media (max-width: 860px) {
	.and-portes {
		grid-template-columns: 1fr;
	}
}

.and-porte {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: calc(var(--radius) * 1.4);
	background: #fff;
	box-shadow: var(--shadow-lg);
}

.and-porte-media {
	position: relative;
	aspect-ratio: 16 / 8;
	overflow: hidden;
}

.and-porte-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .25) 100%);
}

.and-porte-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.and-porte:hover .and-porte-media img {
	transform: scale(1.04);
}

.and-porte-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(24px, 3.5vw, 40px);
	border-top: 6px solid var(--accent);
}

.and-porte-kicker {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin: 0 0 4px;
	color: var(--accent);
	font-family: var(--font-title);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.and-porte h2 {
	margin: 0 0 .4em;
	font-size: clamp(2rem, 3.4vw, 2.6rem);
}

.and-porte h2 a {
	color: var(--ink);
	text-decoration: none;
}

.and-porte ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.and-porte li {
	margin: 0 !important;
}

.and-porte li a {
	display: inline-flex;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--ink);
	font-size: .93rem;
	font-weight: 550;
	text-decoration: none;
}

.and-porte li a:hover {
	background: var(--accent);
	color: #fff;
}

.and-porte .and-btn {
	align-self: flex-start;
	margin-top: auto;
}

/* Mot du dirigeant */
.and-pitch {
	position: relative;
	max-width: 860px !important;
	margin-top: 0 !important;
	padding: 0 0 0 28px;
	border: 0;
	border-left: 5px solid var(--orange);
	border-radius: 0;
	background: none;
	font-family: var(--font-title);
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 500;
	line-height: 1.4;
}

.and-pitch cite {
	display: block;
	margin-top: 12px;
	color: var(--muted);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
}

/* Valeurs */
.and-values {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}

@media (max-width: 980px) {
	.and-values {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.and-values {
		grid-template-columns: 1fr;
	}
}

.and-values > p,
.and-values > .elementor-text-editor > p {
	margin: 0;
	padding: 22px 18px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	color: var(--muted);
	font-size: .93rem;
	line-height: 1.45;
}

.and-values > p strong,
.and-values > .elementor-text-editor > p strong {
	display: block;
	margin-bottom: 6px;
	color: var(--ink);
	font-family: var(--font-title);
	font-size: 1.15rem;
}

.and-values > p::before,
.and-values > .elementor-text-editor > p::before {
	content: "";
	display: block;
	width: 34px;
	height: 6px;
	margin-bottom: 14px;
	border-radius: 6px;
	background: var(--orange);
}

.and-values > p:nth-child(2)::before,
.and-values > .elementor-text-editor > p:nth-child(2)::before { background: var(--blue); }
.and-values > p:nth-child(3)::before,
.and-values > .elementor-text-editor > p:nth-child(3)::before { background: var(--green); }
.and-values > p:nth-child(4)::before,
.and-values > .elementor-text-editor > p:nth-child(4)::before { background: var(--orange); }
.and-values > p:nth-child(5)::before,
.and-values > .elementor-text-editor > p:nth-child(5)::before { background: linear-gradient(90deg, var(--orange), var(--blue), var(--green)); }

/* Réseaux CityZen et CityPro, sous les valeurs (accueil). */
.and-reseaux {
	margin-top: clamp(32px, 4vw, 48px);
}

.and-reseaux-title {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
}

.and-reseaux-logos {
	gap: 18px clamp(18px, 3vw, 32px);
}

.and-reseau {
	flex: none;
	width: clamp(140px, 20vw, 230px);
	padding: clamp(12px, 1.4vw, 16px) clamp(14px, 2vw, 22px);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.and-reseau img {
	display: block;
	width: 100%;
	height: auto;
}

/* Logos des partenaires (page L'auto-école) : PNG carrés, marges comprises */
ul.and-partenaires {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(12px, 2vw, 20px);
	margin: 1.5rem 0 2rem;
	padding: 0 !important;
	list-style: none;
}

ul.and-partenaires li {
	flex: none;
	width: clamp(96px, calc((100% - 4 * 20px) / 5), 150px);
	margin: 0;
	padding: clamp(6px, 1vw, 12px);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

ul.and-partenaires li::before {
	content: none;
}

ul.and-partenaires img {
	display: block;
	width: 100%;
	max-width: 160px;
	height: auto;
	margin: 0 auto;
}

/* Avis */
.and-avis {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
	max-width: var(--container) !important;
	margin-bottom: 1.5rem;
}

.and-avis-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.and-avis-card blockquote {
	margin: 12px 0 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: 1rem;
}

.and-avis-card figcaption {
	display: flex;
	flex-direction: column;
	margin-top: auto;
	color: var(--muted);
	font-size: .9rem;
}

.and-stars {
	color: #f5a524;
	font-size: 1.15rem;
	letter-spacing: 2px;
}

.and-stars .is-off {
	color: #d9d6cf;
}

.and-avis-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.and-google-logo {
	flex: none;
}

.and-avis-card blockquote p {
	margin: 0 0 .6em;
}

.and-avis-card blockquote p:last-child {
	margin-bottom: 0;
}

/* Avis long : replié sur 6 lignes, dépliable (classe posée par main.js). */
.and-avis-card.is-folded blockquote {
	max-height: calc(6 * 1.65em);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 55%, transparent);
	mask-image: linear-gradient(#000 55%, transparent);
}

.and-avis-more {
	align-self: flex-start;
	margin: -6px 0 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
}

.and-avis-more:hover {
	text-decoration: underline;
}

.and-avis-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	margin: 0 auto 1.6rem;
	color: var(--muted);
	font-size: .95rem;
}

.and-avis-summary strong {
	color: var(--ink);
	font-family: var(--font-title);
	font-size: 1.6rem;
	line-height: 1;
}

.and-avis-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	margin: 0;
}

/* Bandeau sans avis publié : on le masque. */
.and-band:not(:has(*)) {
	display: none;
}

/* Arguments chiffrés (boîte automatique) */
.and-big-number strong {
	color: var(--accent);
	font-family: var(--font-title);
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	font-weight: 800;
	line-height: 1;
}

/* Menu « Particuliers » sur deux colonnes */
@media (min-width: 1081px) {
	.and-menu > .and-mega > .sub-menu {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2px 8px;
		min-width: 560px;
	}

	.and-menu > .and-mega > .sub-menu > li:first-child {
		grid-column: 1 / -1;
		border-bottom: 1px solid var(--line);
		margin-bottom: 4px;
		padding-bottom: 4px;
	}
}

/* Icônes des pages du menu (inc/icons.php) */
.and-menu a {
	gap: 8px;
}

.and-menu .sub-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
}

.and-menu-icon {
	width: 20px;
	height: 20px;
	color: var(--accent);
}

.and-menu > li > a > .and-menu-icon {
	width: 18px;
	height: 18px;
}

.and-menu .sub-menu a:hover .and-menu-icon,
.and-menu .sub-menu .current-menu-item > a .and-menu-icon {
	color: currentColor;
}

/* Jouet de la page à la place de l'icône (sous-menus du menu principal) */
.and-menu .sub-menu a:has(.and-menu-toy-icon) {
	padding-block: 3px;
}

@media (min-width: 1081px) {
	.and-menu > li:not(.and-mega) > .sub-menu:has(.and-menu-toy-icon) {
		min-width: 350px;
	}
}

.and-menu-toy-icon {
	flex: none;
	width: 44px;
	height: 44px;
}

.and-menu-toy-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 2px 3px rgba(26, 26, 27, .18));
}

.and-footer-menu a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.and-footer-menu .and-menu-icon {
	width: 18px;
	height: 18px;
	color: var(--blue);
}

/* Icônes des liens vers les pages : sous-navigation, cartes univers, portes d'entrée */
.and-link-icon {
	width: 18px;
	height: 18px;
	color: var(--accent);
}

/* Jouet à la place de l'icône dans les listes de formations des cartes univers. */
.and-link-toy {
	flex: none;
	width: 40px;
	height: 40px;
	margin-block: -6px;
}

.and-link-toy img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 2px 3px rgba(26, 26, 27, .18));
}

/* Sous-navigation : pastille resserrée à gauche quand le jouet remplace l'icône. */
.and-subnav a:has(.and-link-toy) {
	padding-left: 8px;
}

.and-subnav a,
.and-porte li a {
	align-items: center;
	gap: 8px;
}

.and-univers-card li a {
	display: flex;
	align-items: center;
	gap: 10px;
}

.and-subnav a:hover .and-link-icon,
.and-subnav a[aria-current="page"] .and-link-icon,
.and-porte li a:hover .and-link-icon {
	color: currentColor;
}

.and-highlights .and-media-row + .and-media-row {
	margin-top: clamp(40px, 6vw, 72px);
}

.and-content > .and-highlights {
	max-width: var(--container);
	margin-top: clamp(48px, 6vw, 80px);
	margin-bottom: clamp(48px, 6vw, 80px);
}

.and-content .and-eyebrow + h1,
.and-content .and-eyebrow + h2,
.and-content .and-eyebrow + h3 {
	margin-top: 0;
}

.and-avis {
	grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
	justify-content: center;
}

.and-features {
	margin-bottom: 2rem;
}

.and-features:has(> :nth-child(4):last-child) {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.and-field.and-rating input {
	width: 1px;
	min-height: 0;
	height: 1px;
	padding: 0;
}

.and-content > * + .and-section-head {
	margin-top: clamp(48px, 6vw, 80px);
}

/* ==========================================================================
   14. Véhicules animés au défilement
   ========================================================================== */

.and-road {
	--k: .8;
	--sky-h: 150px;
	/* Largeur de l'arche (visuel 402×300) et fondu des véhicules qui passent derrière. */
	--arch-w: calc(var(--sky-h) * 1.34);
	--fade: 28px;
	position: relative;
	height: calc(var(--sky-h) + 16px);
	overflow: hidden;
	pointer-events: none;
}

/* L'arche Darcy, sur la même ligne que les véhicules. */
.and-skyline {
	position: absolute;
	z-index: 1;
	bottom: 8px;
	left: 50%;
	display: block;
	width: auto;
	max-width: none;
	height: var(--sky-h);
	transform: translateX(-50%);
}

/* File de véhicules, masquée sur toute la largeur de l'arche. */
.and-road-lane {
	--l: calc(50% - var(--arch-w) / 2);
	--r: calc(50% + var(--arch-w) / 2);
	position: absolute;
	inset: 0;
}

.and-veh {
	position: absolute;
	bottom: 8px;
	left: calc(var(--o) * 100%);
	width: calc(var(--vw) * var(--k) * 1px);
	line-height: 0;
	will-change: transform;
}

.and-road.is-live .and-veh {
	left: 0;
}

.and-veh img,
.and-roadbar-car img,
.and-roadbar-car svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Ombre portée sous le véhicule. */
.and-veh::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: 8%;
	bottom: -2px;
	left: 8%;
	height: 5px;
	border-radius: 50%;
	background: rgba(26, 26, 27, .16);
}

.and-veh-body {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	transition: transform .35s ease-out;
}

/* Voiture-école dessinée de la barre de progression. */
.and-wheel {
	transform-box: fill-box;
	transform-origin: center;
}

.and-roadbar .f-orange { fill: var(--orange); }
.and-roadbar .f-blue { fill: var(--blue); }
.and-roadbar .f-green { fill: var(--green); }

/* Plan d'eau (permis bateau), qui passe sous l'arche. */
.and-road.is-water::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 22px;
	background: var(--blue);
}

.and-road.is-water::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: 21px;
	left: 0;
	height: 12px;
	background: radial-gradient(ellipse 22px 10px at 20px 12px, var(--blue) 97%, transparent) 0 0 / 40px 12px repeat-x;
	animation: and-waves 4s linear infinite;
}

.and-road.is-water .and-veh::after {
	display: none;
}

.and-road.is-water .and-veh img {
	animation: and-bob 3s ease-in-out infinite;
}

.and-road.is-water .and-veh:nth-child(even) img {
	animation-delay: -1.5s;
}

@keyframes and-waves {
	to { transform: translateX(-40px); }
}

@keyframes and-bob {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -4px; }
}

/* Barre de progression de lecture sous l'en-tête. */
.and-roadbar {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	pointer-events: none;
}

.and-roadbar-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--accent);
}

.and-roadbar-car {
	position: absolute;
	bottom: 1px;
	left: 0;
	width: calc(var(--vw, 38) * 1px);
	line-height: 0;
	transform: translateX(-100%);
	will-change: transform;
}

@media (max-width: 600px) {
	.and-road {
		--k: .55;
		--sky-h: 100px;
		--fade: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.and-roadbar-car {
		display: none;
	}
}

/* ==========================================================================
   Jouets par catégorie (inc/toys.php)
   ========================================================================== */

/* En-tête de page : le jouet de la catégorie posé sur un disque blanc */
/* Fond à la couleur du jouet (and_toy_hero_style), texte en blanc */
.and-hero-page.has-toy {
	padding-block: clamp(28px, 4vw, 48px);
	background: var(--hero-bg, var(--accent));
	color: #fff;
}

.and-hero-page.has-toy h1,
.and-hero-page.has-toy .and-eyebrow,
.and-hero-page.has-toy .and-breadcrumb a:hover {
	color: #fff;
}

.and-hero-page.has-toy .and-lead,
.and-hero-page.has-toy .and-breadcrumb,
.and-hero-page.has-toy .and-breadcrumb a {
	color: rgba(255, 255, 255, .88);
}

.and-hero-page.has-toy .and-container {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

.and-hero-page.has-toy .and-hero-dots {
	display: none;
}

.and-hero-toy {
	position: relative;
	justify-self: end;
	width: min(100%, 420px);
	margin: 0;
	aspect-ratio: 1;
}

/* Disque blanc cerclé d'un halo clair sur le fond coloré */
.and-hero-toy::before {
	content: "";
	position: absolute;
	inset: 9%;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 clamp(10px, 1.6vw, 16px) rgba(255, 255, 255, .3), var(--shadow-lg);
}

/* Pastille pleine en haut à droite, couleur du jouet assombrie */
.and-hero-toy::after {
	content: "";
	position: absolute;
	top: 4%;
	right: 6%;
	width: 18%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: color-mix(in srgb, var(--hero-bg, var(--accent)) 72%, #000);
}

.and-hero-toy img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 18px 18px rgba(26, 26, 27, .2));
	animation: and-toy-in .7s cubic-bezier(.2, .8, .3, 1.2) both;
}

@keyframes and-toy-in {
	from {
		opacity: 0;
		transform: translateY(24px) scale(.94);
	}
}

@media (prefers-reduced-motion: reduce) {
	.and-hero-toy img {
		animation: none;
	}
}

@media (max-width: 860px) {
	.and-hero-page.has-toy .and-container {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.and-hero-toy {
		grid-row: 1;
		justify-self: center;
		width: min(56vw, 210px);
	}
}

/* Cartes univers : jouet sur le fond pâle de l'univers */
.and-univers-media.is-toy {
	background: var(--accent-soft);
}

.and-univers-media.is-toy img {
	width: auto;
	margin-inline: auto;
	object-fit: contain;
	filter: drop-shadow(0 10px 10px rgba(26, 26, 27, .16));
}

.and-univers-card:hover .and-univers-media.is-toy img {
	transform: none;
}

/* ==========================================================================
   15. Contenu Elementor
   Le contenu converti (bin/elementor-convert.php) garde les classes des blocs :
   conteneurs et widgets reprennent le rendu des blocs d'origine.
   ========================================================================== */

/* Conteneurs issus des groupes et colonnes : flux normal, marges fusionnées */
.and-content .e-con.and-flow,
.and-content .e-con.wp-block-group,
.and-content .e-con.wp-block-column {
	display: block;
}

.and-content .e-con.and-flow,
.and-content .e-con.wp-block-group {
	width: auto;
}

/* Largeurs des sections (les règles « .and-content > * » du contenu) */
.elementor.and-content > .e-con {
	max-width: var(--content);
}

.elementor.and-content > .e-con.alignwide {
	max-width: var(--container);
}

.elementor.and-content > .e-con.alignfull,
.elementor.and-content > .e-con.is-shortcode {
	max-width: none;
}

/*
 * Elementor limite chaque widget à 100 % de son conteneur : on rétablit les
 * largeurs des blocs (texte, large, pleine largeur) et celles des codes courts.
 */
.elementor.elementor .is-layout-constrained > .elementor-widget:not(.elementor-widget-shortcode),
.elementor.elementor .is-layout-constrained > .elementor-widget-shortcode > .elementor-shortcode > *,
.elementor.elementor > .e-con.is-shortcode > .elementor-widget-shortcode > .elementor-shortcode > * {
	max-width: var(--content);
	margin-right: auto;
	margin-left: auto;
}

.elementor.elementor .is-layout-constrained > .elementor-widget.alignwide {
	max-width: var(--container);
}

.elementor.elementor .is-layout-constrained > .elementor-widget.alignfull {
	max-width: none;
}

.elementor.elementor .e-con:not(.is-layout-constrained) > .elementor-widget.and-section-head {
	max-width: 720px;
}

/* Marges basses des blocs devenus widgets (Elementor les remet à zéro) */
.and-content .e-con > .elementor-widget:is(.and-stats, .and-callout, .and-facts, .and-panel, .wp-block-image) {
	margin-bottom: 2rem;
}

.and-content .e-con.wp-block-column > .elementor-widget.wp-block-image,
.and-content .e-con.wp-block-column > .elementor-widget:last-child {
	margin-bottom: 0;
}

/* Dernier bloc de la page : pas de marge basse */
.and-content:not(:has(+ .and-content)) > .e-con:last-child > .elementor-widget:last-child {
	margin-bottom: 0;
}

/*
 * Premier et dernier élément d'une colonne ou de la page : mêmes règles (et même
 * spécificité) que « .and-content > :last-child » et « .wp-block-column > :last-child ».
 */
.wp-block-column > :where(.elementor-widget-shortcode:last-child) > :where(.elementor-shortcode) > :last-child,
.wp-block-column > :where(.elementor-widget-text-editor:not(.wp-block-group):last-child) > :last-child,
.and-content:where(:not(:has(+ .and-content))) > :where(.e-con:last-child) > :where(.elementor-widget-shortcode:last-child) > :where(.elementor-shortcode) > :last-child,
.and-content:where(:not(:has(+ .and-content))) > :where(.e-con.and-flow:last-child) > :where(.elementor-widget:last-child) > :last-child {
	margin-bottom: 0;
}

.and-content:where(:not(.and-content + *)) > :where(.e-con:first-child) > :where(.elementor-widget-shortcode:first-child) > :where(.elementor-shortcode) > :first-child,
.and-content:where(:not(.and-content + *)) > :where(.e-con.and-flow:first-child) > :where(.elementor-widget:first-child) > :first-child {
	margin-top: 0;
}

/* Légende des images */
.and-content .wp-block-image .widget-image-caption {
	margin-bottom: 1em;
}

/* Titre en tête d'un code court placé après un autre contenu */
.and-content .elementor-widget-shortcode:not(:first-child) > .elementor-shortcode > h2:first-child,
.and-content > .e-con.is-shortcode:not(:first-child) > .elementor-widget-shortcode:first-child > .elementor-shortcode > h2:first-child {
	margin-top: 2.2em;
}

/* Intertitre de section après un autre contenu */
.and-content > .e-con.and-flow > .elementor-widget.and-section-head:not(:first-child),
.and-content > .e-con.and-flow:not(:first-child) > .elementor-widget.and-section-head:first-child {
	margin-top: clamp(48px, 6vw, 80px);
}

/* Contenu ajouté par le gabarit après le contenu Elementor (lien des actualités) */
.and-elementor > .and-content:has(+ .and-content) {
	padding-bottom: 0;
}

.and-elementor > .and-content + .and-content {
	padding-top: 0;
}

/* Code court sans résultat en fin de page : le contenu qui le précède termine la page */
.and-content > .e-con.is-shortcode:not(:has(.elementor-shortcode > *)) {
	display: none;
}

.and-content:not(:has(+ .and-content)) > .e-con:has(+ .e-con.is-shortcode:last-child .elementor-shortcode:empty) > .elementor-widget:last-child > :last-child {
	margin-bottom: 0;
}

/*
 * Dans l'éditeur Elementor, le texte d'un widget est enveloppé d'une div
 * .elementor-text-editor : les règles « .and-values > p »… la traversent
 * (sélecteurs doublés plus haut) et la grille garde ses cases.
 */
.elementor-widget-text-editor.wp-block-group > .elementor-text-editor {
	display: contents;
}

/* Bande vide (code court sans résultat, ex. aucun avis) : masquée */
.and-content .e-con.and-band:not(:has(.elementor-widget > :not(.elementor-shortcode), .elementor-shortcode > *)) {
	display: none;
}

/* Colonnes */
.and-content .e-con.wp-block-columns {
	flex-wrap: nowrap;
}

.and-content .e-con.wp-block-column {
	flex: 1 1 0;
	width: 100%;
}

.and-content .e-con.wp-block-column.and-col-width {
	flex-grow: 0;
	flex-basis: var(--width);
}

/*
 * Les widgets de texte n'ajoutent qu'une div autour des paragraphes : les
 * intertitres qui l'ouvrent gardent leur marge, sauf en tête de section.
 */
.and-content .elementor-widget-text-editor:not(.wp-block-group) > h2:first-child {
	margin-top: 2.2em;
}

.and-content .elementor-widget-text-editor:not(.wp-block-group) > h3:first-child {
	margin-top: 1.8em;
}

.and-content .e-con:not(.and-flow) > .elementor-widget:first-child > :is(h2, h3):first-child,
.and-content:not(.and-content + *) > .e-con.and-flow:first-child > .elementor-widget:first-child > :is(h2, h3):first-child {
	margin-top: 0;
}

/* Boutons */
.and-content .elementor-widget-button.wp-block-button .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 48px;
	padding: .75em 1.4em;
	border: 2px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-title);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.and-content .elementor-widget-button.wp-block-button .elementor-button:hover {
	box-shadow: 0 6px 18px rgba(26, 26, 27, .18);
	color: #fff;
	transform: translateY(-1px);
}

.and-content .elementor-widget-button.is-style-outline .elementor-button {
	padding: .667em 1.333em;
	background: transparent;
	color: var(--accent);
}

.and-content .elementor-widget-button.is-style-outline .elementor-button:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

/* ==========================================================================
   En-tête Elementor (case « En-tête géré avec Elementor », inc/elementor.php)
   ========================================================================== */

/* Plus d'espace au-dessus : la première section est l'en-tête */
.has-elementor-hero .and-content {
	padding-top: 0;
}

/* Première section en pleine largeur de la fenêtre, quelle que soit la largeur du contenu */
.has-elementor-hero .elementor.and-content > .e-con:first-child {
	width: 100vw;
	max-width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

/* 100vw compte la barre de défilement : évite le défilement horizontal */
.has-elementor-hero .and-main {
	overflow-x: clip;
}

/* Sous-navigation insérée sous l'en-tête Elementor : pleine largeur, comme lui */
.has-elementor-hero .elementor.and-content .and-subnav {
	width: 100vw;
	max-width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

/*
 * Même rendu dans l'éditeur Elementor : il enveloppe les sections (.elementor-section-wrap)
 * et ajoute ses propres éléments, « première section » se repère donc à la classe e-parent.
 */
.elementor-editor-active.has-elementor-hero .elementor.and-content > .e-con.e-parent:not(.e-con.e-parent ~ .e-con.e-parent),
.elementor-editor-active.has-elementor-hero .elementor.and-content > .elementor-section-wrap > .e-con.e-parent:not(.e-con.e-parent ~ .e-con.e-parent) {
	width: 100vw;
	max-width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}
