/* ==========================================================================
   ACN – Autocarrefour Nyon
   Maquette de référence : 1920 px, conteneur 1640 px.
   ========================================================================== */

@font-face {
	font-family: "Red Hat Display";
	src: url("../fonts/red-hat-display-normal.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Red Hat Display";
	src: url("../fonts/red-hat-display-italic.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Red Hat Text";
	src: url("../fonts/red-hat-text-normal.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Red Hat Text";
	src: url("../fonts/red-hat-text-italic.woff2") format("woff2");
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}

:root {
	--marine: #022144;
	--gris: #ccced1;
	--gris-clair: #e5e6e8;
	--gris-tuile: #f0f1f2;
	--blanc: #fff;
	--texte: #022144;

	--font-display: "Red Hat Display", system-ui, sans-serif;
	--font-text: "Red Hat Text", system-ui, sans-serif;

	--container: 1640px;
	--gutter: clamp(20px, 7.3vw, 140px);
	--radius: 20px;
	--section: clamp(64px, 6.25vw, 120px);

	--fs-xl: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);   /* 60 */
	--fs-lg: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);    /* 40 */
	--fs-md: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);  /* 30 */
	--fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);   /* 18 */
	--fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem); /* 20 */
	--fs-small: 0.9375rem;                               /* 15 */
}

/* Reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--blanc);
	color: var(--texte);
	font-family: var(--font-text);
	font-size: var(--fs-body);
	font-weight: 500;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, address {
	margin: 0;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.3;
}

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

a {
	color: inherit;
}

address {
	font-style: normal;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--marine);
	outline-offset: 3px;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--marine);
	color: var(--blanc);
}
.skip-link:focus {
	top: 16px;
}

/* Mise en page
   ========================================================================== */

.container {
	width: min(var(--container), 100% - 2 * var(--gutter));
	margin-inline: auto;
}
.container--narrow {
	width: min(1292px, 100% - 2 * var(--gutter));
}
.container--form {
	width: min(1088px, 100% - 2 * var(--gutter));
}
.container--text {
	width: min(880px, 100% - 2 * var(--gutter));
}

.site-main > .block + .block {
	margin-top: var(--section);
}
.site-main > .block:last-child {
	margin-bottom: var(--section);
}

/* Typographie
   ========================================================================== */

.title-xl {
	font-size: var(--fs-xl);
	line-height: 1.2;
}
.title-lg {
	font-size: var(--fs-lg);
}
.title-md {
	font-size: var(--fs-md);
}

.prose > * + * {
	margin-top: 1.55em;
}
.prose ul {
	padding-left: 1.2em;
}
.prose ul > li + li {
	margin-top: 0.15em;
}
.prose a {
	text-underline-offset: 3px;
}
.prose strong {
	font-weight: 700;
}

.section-head {
	margin-bottom: clamp(32px, 3.6vw, 70px);
	text-align: center;
}
.section-head p {
	margin-top: 8px;
}

.page-text {
	padding-block: var(--section);
}
.page-text h1 {
	margin-bottom: 40px;
}
.page-text .prose h2 {
	font-size: var(--fs-md);
	margin-top: 1.6em;
}

/* Boutons
   ========================================================================== */

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.buttons--center {
	justify-content: center;
}
.buttons--stacked {
	flex-direction: column;
	align-items: stretch;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 235px;
	min-height: 46px;
	padding: 10px 32px;
	border: 0;
	border-radius: 40px;
	font-family: var(--font-text);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover {
	transform: translateY(-1px);
}
.btn--primary {
	background: var(--marine);
	color: var(--blanc);
}
.btn--primary:hover {
	background: #0b3363;
}
.btn--secondary {
	background: var(--gris);
	color: var(--marine);
}
.btn--secondary:hover {
	background: #bcbfc3;
}

/* Images
   ========================================================================== */

.media-rounded {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--marine);
}
.media-rounded img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Teinte bleue : image en luminosité à 40 % sur fond marine. */
.tinted {
	background: var(--marine);
	isolation: isolate;
}
.tinted.is-tinted > img {
	mix-blend-mode: luminosity;
	opacity: 0.4;
}

.media-logo {
	position: absolute;
	top: 6.5%;
	left: 5.5%;
	width: 15%;
	max-width: 141px;
}
.media-logo img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.media-badge {
	position: absolute;
	bottom: 0;
	left: 17%;
	z-index: 2;
	width: clamp(140px, 13vw, 251px);
	padding: 0.6% 1.4%;
	border-radius: 10px;
	background: var(--blanc);
	transform: translateY(50%);
	box-shadow: 0 6px 24px rgb(2 33 68 / 0.12);
}
.media-badge img {
	width: 100%;
}
.media-badge--center {
	left: 50%;
	bottom: 10%;
	transform: translateX(-50%);
}

.block-placeholder {
	padding: 32px;
	border: 2px dashed var(--gris);
	border-radius: var(--radius);
	text-align: center;
}

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

.site-header {
	position: relative;
	z-index: 50;
	background: var(--blanc);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 102px;
}
.site-header__logo img {
	width: clamp(200px, 15.2vw, 291px);
}

.site-nav {
	display: flex;
	align-items: center;
}
.site-nav__menu {
	display: flex;
	gap: clamp(18px, 1.95vw, 37px);
	padding: 0;
	list-style: none;
	font-size: var(--fs-small);
}
.site-nav__menu a {
	position: relative;
	display: block;
	padding-block: 8px;
	text-decoration: none;
	white-space: nowrap;
}
.site-nav__menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 5px;
	background: var(--marine);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s;
}
.site-nav__menu a:hover::after,
.site-nav__menu .current-menu-item > a::after,
.site-nav__menu .current-page-ancestor > a::after {
	transform: scaleX(1);
}
.site-nav__menu--contact {
	position: relative;
	margin-left: clamp(18px, 1.95vw, 37px);
	padding-left: clamp(18px, 1.95vw, 37px);
}
.site-nav__menu--contact::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	height: 22px;
	border-left: 1px solid var(--gris);
	transform: translateY(-50%);
}

.site-header__toggle {
	display: none;
	padding: 12px;
	margin-right: -12px;
	background: none;
	border: 0;
	cursor: pointer;
}
.burger,
.burger::before,
.burger::after,
.burger span {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--marine);
	transition: transform 0.25s, opacity 0.25s;
}
.burger {
	position: relative;
	background: none;
}
.burger::before,
.burger::after {
	content: "";
	position: absolute;
	left: 0;
}
.burger::before {
	top: -8px;
}
.burger::after {
	top: 8px;
}
[aria-expanded="true"] .burger span {
	opacity: 0;
}
[aria-expanded="true"] .burger::before {
	transform: translateY(8px) rotate(45deg);
}
[aria-expanded="true"] .burger::after {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1180px) {
	.site-header__inner {
		min-height: 80px;
	}
	.site-header__toggle {
		display: block;
	}
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 8px var(--gutter) 32px;
		background: var(--blanc);
		box-shadow: 0 20px 30px rgb(2 33 68 / 0.08);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}
	.site-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
	}
	.site-nav__menu {
		flex-direction: column;
		gap: 0;
		font-size: 1.125rem;
	}
	.site-nav__menu a {
		padding-block: 12px;
		border-bottom: 1px solid var(--gris-clair);
	}
	.site-nav__menu a::after {
		display: none;
	}
	.site-nav__menu .current-menu-item > a {
		font-weight: 700;
	}
	.site-nav__menu--contact {
		margin: 0;
		padding: 0;
	}
	.site-nav__menu--contact::before {
		display: none;
	}
}

/* Hero
   ========================================================================== */

.hero__slides {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--marine);
}
.hero__slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	align-items: flex-end;
	min-height: 480px;
	aspect-ratio: 1640 / 812;
	color: var(--blanc);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s, visibility 0.8s;
}
.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}
.hero__media {
	position: absolute;
	inset: 0;
	isolation: isolate;
	background: var(--marine);
}
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__slide.is-tinted .hero__media img {
	mix-blend-mode: luminosity;
	opacity: 0.4;
}
.hero__slide:not(.is-tinted) .hero__media::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(to top, rgb(0 0 0 / 0.35), transparent);
}
.hero__content {
	position: relative;
	width: 100%;
	padding: clamp(24px, 3.5vw, 57px);
	padding-bottom: clamp(28px, 3.7vw, 60px);
}
.hero__logo img {
	width: auto;
	max-width: clamp(90px, 9vw, 141px);
	max-height: 141px;
	margin-bottom: clamp(16px, 1.6vw, 30px);
}
.hero__slide--gauche .hero__logo img {
	max-width: clamp(180px, 21.6vw, 415px);
	max-height: 164px;
}
.hero__title {
	max-width: 1180px;
	font-size: var(--fs-xl);
	font-weight: 600;
	line-height: 1.2;
}
.hero__text {
	max-width: 810px;
	margin-top: clamp(16px, 2.6vw, 50px);
	font-size: var(--fs-lead);
	font-weight: 400;
	line-height: 1.38;
}

/* Variante slogan : logo à gauche, titre à droite. */
.hero__slide--droite .hero__content {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
.hero__slide--droite .hero__logo img {
	margin-bottom: 0;
}
.hero__slide--droite .hero__title {
	margin-left: auto;
	text-align: right;
}

.hero__progress {
	position: relative;
	height: 5px;
	margin-top: 23px;
	overflow: hidden;
}
.hero__progress::before {
	content: "";
	position: absolute;
	inset: 2px 0 auto;
	border-top: 1px solid var(--gris);
}
.hero__progress-bar {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: calc(100% / var(--count));
	max-width: 258px;
	background: var(--marine);
	transition: transform 0.6s ease;
}

.hero__buttons {
	justify-content: center;
	margin-top: clamp(20px, 1.6vw, 28px);
}
.hero__progress + .hero__buttons {
	margin-top: 32px;
}

@media (max-width: 700px) {
	.hero__slide {
		aspect-ratio: auto;
		min-height: 520px;
	}
	.hero__slide--droite .hero__content {
		flex-direction: column;
		align-items: flex-start;
	}
	.hero__slide--droite .hero__title {
		margin-left: 0;
		text-align: left;
	}
}

/* Image + texte
   ========================================================================== */

.image-texte__inner {
	display: grid;
	grid-template-columns: 812fr 674fr;
	gap: clamp(32px, 8vw, 154px);
	align-items: start;
}
.image-texte__media {
	aspect-ratio: 812 / 422;
}
.image-texte--droite .image-texte__media {
	order: 2;
}
.image-texte__content > * + * {
	margin-top: clamp(20px, 2vw, 38px);
}
.image-texte__content .buttons {
	margin-top: clamp(24px, 1.8vw, 32px);
}
.image-texte__content .title-lg {
	max-width: 642px;
}

@media (max-width: 900px) {
	.image-texte__inner {
		grid-template-columns: 1fr;
	}
	.image-texte--droite .image-texte__media {
		order: 0;
	}
}

/* Carte bleue + image
   ========================================================================== */

.carte-image__inner {
	--offset: clamp(40px, 4.7vw, 90px);
	display: grid;
	grid-template-columns: 828fr 500fr 312fr;
	grid-template-rows: var(--offset) auto var(--offset);
}
.carte-image__card {
	grid-column: 1 / 3;
	grid-row: 2 / 4;
	padding: clamp(28px, 2.5vw, 48px) clamp(24px, 3.85vw, 74px);
	border-radius: var(--radius);
	background: var(--marine);
	color: var(--blanc);
}
.carte-image__card > * {
	max-width: 728px;
}
.carte-image__card > * + * {
	margin-top: clamp(20px, 2vw, 38px);
}
.carte-image__card .buttons {
	margin-top: clamp(24px, 2vw, 40px);
}
.carte-image__media {
	position: relative;
	grid-column: 2 / 4;
	grid-row: 1 / 3;
	z-index: 1;
}
/* Hauteur mini au ratio de la maquette, l'image s'étire si la carte est plus haute. */
.carte-image__media::before {
	content: "";
	display: block;
	padding-top: calc(422 / 812 * 100%);
}
.carte-image__media .media-rounded {
	position: absolute;
	inset: 0;
}

/* Image à gauche : on inverse les colonnes et on décale le texte. */
.carte-image--gauche .carte-image__inner {
	grid-template-columns: 312fr 500fr 828fr;
}
.carte-image--gauche .carte-image__card {
	grid-column: 2 / 4;
	padding-left: calc(500 / 1328 * 100% + clamp(24px, 3.4vw, 66px));
}
.carte-image--gauche .carte-image__media {
	grid-column: 1 / 3;
}
.carte-image--gauche .media-badge {
	left: auto;
	right: 17%;
}

.carte-image__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	max-width: none !important;
	font-size: clamp(1.125rem, 1rem + 0.35vw, 1.375rem);
}
.carte-image__contact a {
	text-decoration: none;
}
.carte-image__contact .buttons--stacked .btn {
	min-width: 260px;
}

@media (max-width: 900px) {
	.carte-image__inner,
	.carte-image--gauche .carte-image__inner {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
	}
	.carte-image__media,
	.carte-image--gauche .carte-image__media {
		grid-column: 1;
		grid-row: 1;
		margin-inline: 16px;
	}
	.carte-image__card,
	.carte-image--gauche .carte-image__card {
		grid-column: 1;
		grid-row: 2;
		margin-top: -48px;
		padding-top: 88px;
		padding-left: clamp(24px, 3.85vw, 74px);
	}
}

/* Liens dans les cartes bleues et le texte centré */
.carte-image__card .prose a,
.texte-centre .prose a {
	text-decoration: none;
}
.carte-image__card .prose a:hover,
.texte-centre .prose a:hover {
	text-decoration: underline;
}
.prose .has-lead {
	font-size: clamp(1.125rem, 1rem + 0.35vw, 1.375rem);
}

/* Texte centré
   ========================================================================== */

.texte-centre {
	position: relative;
	text-align: center;
}
.texte-centre__content {
	position: relative;
	max-width: 967px;
}
.texte-centre__content .prose {
	max-width: 882px;
	margin: clamp(20px, 2vw, 32px) auto 0;
}
.texte-centre__buttons {
	position: relative;
	z-index: 2;
	margin-top: clamp(28px, 2.4vw, 46px);
	padding-inline: var(--gutter);
}

/* Image sous le texte : les boutons chevauchent le haut de l'image. */
.texte-centre--dessous .texte-centre__buttons {
	margin-bottom: -23px;
}
.texte-centre__image {
	width: 100%;
	position: relative;
	aspect-ratio: 1920 / 614;
	min-height: 300px;
	overflow: hidden;
}
.texte-centre__image > img,
.texte-centre__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.texte-centre--dessous .texte-centre__content:empty + .texte-centre__buttons {
	margin-top: 0;
}

/* Texte sur l'image : contenu en bas, boutons à cheval sur le bord inférieur. */
.texte-centre--fond {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: max(420px, 32vw);
	padding-top: 120px;
	color: var(--blanc);
}
.texte-centre--fond .texte-centre__bg {
	position: absolute;
	inset: 0 0 23px;
}
.texte-centre--fond .texte-centre__content {
	padding-bottom: clamp(24px, 1.7vw, 32px);
}
.texte-centre--fond .texte-centre__content .prose {
	margin-top: 12px;
}
.texte-centre--fond .texte-centre__buttons {
	margin-top: 0;
}
.texte-centre--fond:not(:has(.texte-centre__buttons)) .texte-centre__bg {
	bottom: 0;
}

/* Encadré gris + image
   ========================================================================== */

.encadre-image__box {
	padding: clamp(32px, 2.6vw, 50px) 24px clamp(32px, 2.2vw, 42px);
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--gris-clair);
	text-align: center;
}
.encadre-image__content p {
	max-width: 760px;
	margin: 12px auto 0;
	font-size: var(--fs-small);
}
.encadre-image__image {
	width: 100%;
	aspect-ratio: 1920 / 614;
	min-height: 260px;
	overflow: hidden;
}
.encadre-image__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.encadre-image__foot {
	height: clamp(32px, 3.85vw, 74px);
	border-radius: 0 0 var(--radius) var(--radius);
	background: var(--gris-clair);
}
/* Un carrousel de modèles qui suit l'encadré s'en rapproche. */
.encadre-image + .modeles {
	margin-top: clamp(40px, 3.6vw, 70px) !important;
}

/* Mosaïque
   ========================================================================== */

.mosaique__inner {
	display: grid;
	grid-template-columns: 812fr 674fr;
	gap: clamp(32px, 8vw, 154px);
	align-items: center;
}
.mosaique__grid {
	position: relative;
	aspect-ratio: 812 / 536;
}
.mosaique__item {
	position: absolute;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--gris-tuile);
}
.mosaique__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mosaique__item--1 {
	left: 40.9%;
	top: 0;
	width: 59.2%;
	height: 57.3%;
}
.mosaique__item--2 {
	left: 0;
	top: 15.9%;
	width: 38.9%;
	height: 41.4%;
}
.mosaique__item--3 {
	left: 13.7%;
	top: 59.3%;
	width: 52.5%;
	height: 40.7%;
}
.mosaique--logos .mosaique__item img {
	object-fit: contain;
	padding: 9% 12%;
}
.mosaique__content > * + * {
	margin-top: clamp(20px, 2vw, 38px);
}
.mosaique__content .buttons {
	margin-top: clamp(24px, 1.8vw, 32px);
}

@media (max-width: 900px) {
	.mosaique__inner {
		grid-template-columns: 1fr;
	}
}

/* Carrousels (modèles, équipe)
   ========================================================================== */

.carousel {
	position: relative;
	padding-inline: clamp(52px, 6vw, 98px);
}
.carousel__track {
	--per-view: 4;
	--gap: clamp(20px, 2.9vw, 56px);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
	gap: var(--gap);
	margin: 0;
	padding: 0 0 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
	display: none;
}
.carousel__item {
	scroll-snap-align: start;
}
.carousel__arrow {
	position: absolute;
	top: var(--arrow-top, 50%);
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 1px solid var(--marine);
	border-radius: 50%;
	background: var(--blanc);
	color: var(--marine);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.carousel__arrow:hover {
	background: var(--marine);
	color: var(--blanc);
}
.carousel__arrow:disabled {
	opacity: 0.3;
	pointer-events: none;
}
.carousel__arrow--prev {
	left: 0;
}
.carousel__arrow--next {
	right: 0;
}
.carousel.is-static .carousel__arrow {
	display: none;
}

@media (max-width: 1100px) {
	.carousel__track {
		--per-view: 3;
	}
}
@media (max-width: 800px) {
	.carousel__track {
		--per-view: 2;
	}
	.carousel__arrow {
		width: 44px;
		height: 44px;
	}
}
@media (max-width: 520px) {
	.carousel {
		padding-inline: 0;
	}
	.carousel__track {
		--per-view: 1.3;
	}
	.carousel__arrow {
		display: none;
	}
}

/* Modèle */
.modeles .carousel {
	--arrow-top: 80px;
}
.modele {
	display: block;
	text-decoration: none;
}
.modele__image {
	aspect-ratio: 2 / 1;
}
.modele__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.modele__name {
	margin-top: clamp(12px, 1.2vw, 22px);
	font-size: var(--fs-md);
	font-weight: 600;
	line-height: 1.2;
}
.modele__motor {
	margin-top: 8px;
	font-size: var(--fs-small);
	font-weight: 700;
	line-height: 1.3;
}
.modele__desc {
	font-size: var(--fs-small);
	line-height: 1.3;
}
a.modele:hover .modele__name {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Membre */
.equipe .carousel {
	--arrow-top: 45%;
}
.membre {
	overflow: hidden;
	height: 100%;
	border-radius: var(--radius);
	background: var(--marine);
	color: var(--blanc);
}
.membre__photo {
	aspect-ratio: 316 / 222;
	border-radius: 0 0 var(--radius) var(--radius);
	overflow: hidden;
	background: radial-gradient(circle at 50% 40%, #6b84a3, var(--marine));
}
.membre__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 15%;
}
.membre__body {
	padding: clamp(16px, 1.3vw, 24px) clamp(16px, 2vw, 38px) clamp(20px, 1.7vw, 32px);
}
.membre__name {
	font-size: var(--fs-md);
	font-weight: 600;
	line-height: 1.2;
}
.membre__role {
	margin-top: 6px;
	font-size: var(--fs-small);
	font-weight: 700;
}

/* Cartes numérotées
   ========================================================================== */

.box-grey {
	border-radius: var(--radius);
	background: var(--gris-clair);
}
.cartes-numerotees__box {
	padding: clamp(40px, 4vw, 76px) clamp(20px, 7.3vw, 138px) clamp(48px, 5vw, 100px);
}
.cartes-numerotees__box .section-head {
	max-width: 600px;
	margin-inline: auto;
}
.cartes-numerotees__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(60px, 4vw, 80px) clamp(16px, 2.3vw, 43px);
	padding: 0;
	list-style: none;
}
.carte-num {
	position: relative;
	padding: 72px 16px 28px;
	border-radius: var(--radius);
	background: var(--blanc);
	text-align: center;
	font-size: var(--fs-small);
	line-height: 1.5;
}
.carte-num__number {
	position: absolute;
	top: 0;
	left: 50%;
	display: grid;
	place-items: center;
	width: clamp(64px, 5.2vw, 100px);
	aspect-ratio: 1;
	border-radius: 10px;
	background: var(--marine);
	color: var(--blanc);
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem);
	font-style: italic;
	font-weight: 900;
	transform: translate(-50%, -50%);
}
.carte-num__title {
	font-family: var(--font-text);
	font-size: inherit;
	font-weight: 700;
	line-height: inherit;
}

@media (max-width: 900px) {
	.cartes-numerotees__list {
		grid-template-columns: 1fr;
	}
}

/* Accordéon
   ========================================================================== */

.accordeon__list {
	columns: 3 280px;
	column-gap: clamp(24px, 3.1vw, 60px);
}
.accordeon__item {
	display: inline-block;
	width: 100%;
	break-inside: avoid;
	border-bottom: 1px solid var(--gris);
	font-size: var(--fs-small);
}
.accordeon__item summary {
	position: relative;
	display: block;
	padding: 10px 32px 10px 0;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.accordeon__item summary::-webkit-details-marker {
	display: none;
}
.accordeon__item summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	font-size: 1.125rem;
	transform: translateY(-50%);
}
.accordeon__item[open] summary::after {
	content: "–";
}
.accordeon__item p {
	padding-bottom: 16px;
	font-weight: 500;
}

/* Formulaire (Contact Form 7)
   ========================================================================== */

.acn-form .form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 8px;
}
.acn-form .form-full {
	grid-column: 1 / -1;
}
.acn-form label {
	display: block;
}
.acn-form input[type="text"],
.acn-form input[type="email"],
.acn-form input[type="tel"] {
	width: 100%;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--gris);
	border-radius: 0;
	background: transparent;
	color: var(--texte);
	font: inherit;
	font-size: var(--fs-body);
}
.acn-form input::placeholder,
.acn-form textarea::placeholder {
	color: #1a1a1a;
	opacity: 1;
}
.acn-form input:focus,
.acn-form textarea:focus {
	outline: none;
	border-color: var(--marine);
}
.acn-form textarea {
	width: 100%;
	min-height: 220px;
	padding: 22px 30px;
	border: 1px solid var(--gris);
	border-radius: 4px;
	color: var(--texte);
	font: inherit;
	font-size: var(--fs-body);
	resize: vertical;
}
.acn-form .form-label {
	padding-block: 10px;
}
.acn-form .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 14px 46px;
	margin-top: 12px;
}
.acn-form .wpcf7-list-item {
	margin: 0;
}
.acn-form .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 18px;
	font-weight: 700;
	cursor: pointer;
}
.acn-form input[type="checkbox"] {
	appearance: none;
	flex: none;
	width: 31px;
	height: 31px;
	margin: 0;
	border: 1px solid #707070;
	border-radius: 5px;
	background: var(--blanc);
	cursor: pointer;
}
.acn-form input[type="checkbox"]:checked {
	border-color: var(--marine);
	background: var(--marine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.acn-form .form-submit {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}
.acn-form .wpcf7-spinner {
	position: absolute;
}
.acn-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 0.875rem;
	color: #b3261e;
}
.acn-form .wpcf7-response-output {
	margin: 24px 0 0 !important;
	padding: 14px 20px !important;
	border-radius: 10px;
	text-align: center;
}

@media (max-width: 700px) {
	.acn-form .form-grid {
		grid-template-columns: 1fr;
	}
	.acn-form .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}
}

/* Plan + horaires
   ========================================================================== */

.localisation__head {
	padding: clamp(32px, 2.6vw, 50px) 24px 0;
	border-radius: var(--radius) var(--radius) 0 0;
	text-align: center;
}
.localisation__head p {
	margin-top: 8px;
	font-size: var(--fs-small);
}
.localisation__button {
	position: relative;
	z-index: 2;
	margin-top: 24px;
	margin-bottom: -23px;
}
.localisation__map {
	width: 100%;
	aspect-ratio: 1920 / 614;
	min-height: 280px;
	overflow: hidden;
	background: var(--marine);
}
.localisation__map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.localisation__horaires {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px clamp(40px, 5vw, 100px);
	padding: clamp(32px, 2.8vw, 54px) 24px clamp(40px, 3.5vw, 66px);
	border-radius: 0 0 var(--radius) var(--radius);
	text-align: center;
	font-size: var(--fs-body);
}
.localisation__col .title-md {
	font-weight: 600;
	margin-bottom: clamp(20px, 2vw, 40px);
}
.localisation__service {
	font-weight: 700;
}

/* Pied de page
   ========================================================================== */

.site-footer {
	padding-top: var(--section);
	font-size: var(--fs-small);
	line-height: 1.2;
}
.site-main > .block:last-child:is(.texte-centre--fond, .texte-centre--dessous) {
	margin-bottom: clamp(48px, 4vw, 80px);
}
.site-main:has(> .block:last-child) + .site-footer {
	padding-top: 0;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 543fr 316fr 369fr 246fr 166fr;
	gap: 32px;
	padding-bottom: clamp(32px, 2.4vw, 46px);
}
.site-footer__brand img {
	width: clamp(200px, 16.5vw, 317px);
	height: auto;
	margin-top: -26px;
}
.site-footer__title {
	margin-bottom: 1.2em;
	font-family: var(--font-text);
	font-size: inherit;
	font-weight: 700;
	text-transform: uppercase;
}
.site-footer__col p + p {
	margin-top: 1.2em;
}
.site-footer a {
	text-decoration: none;
}
.site-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.site-footer__menu {
	padding: 0;
	list-style: none;
}
.social {
	display: flex;
	gap: 17px;
	margin-top: 20px;
	padding: 0;
	list-style: none;
}
.social a {
	display: grid;
	place-items: center;
	width: 41px;
	height: 41px;
	border: 1px solid var(--marine);
	border-radius: 50%;
	transition: background-color 0.2s, color 0.2s;
}
.social a:hover {
	background: var(--marine);
	color: var(--blanc);
}
.site-footer__copy {
	padding-block: 14px 30px;
	border-top: 5px solid var(--gris);
	text-align: center;
}

@media (max-width: 1100px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.site-footer__brand {
		grid-column: 1 / -1;
	}
}
@media (max-width: 560px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* Éditeur : les blocs s'affichent comme en front.
   ========================================================================== */

.editor-styles-wrapper {
	font-family: var(--font-text);
	color: var(--texte);
}
.editor-styles-wrapper .wp-block[data-type^="acn/"] {
	max-width: none;
}
.editor-styles-wrapper .block {
	margin-block: 24px;
}
.editor-styles-wrapper .hero__slide:not(.is-active) {
	display: none;
}

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