/* Aurélie et Aurél' — styles qui ne s'expriment pas dans theme.json.
   Points de rupture : 782px (empilement des colonnes WordPress). */

/* Shantell Sans : axes « informel » 70 et « rebond » 20 figés dans le fichier (assets/fonts) */

/* En-tête collant */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 20;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}
.entete {
	box-shadow: var(--wp--preset--shadow--en-tete);
}
.entete-nom {
	line-height: 1.15;
}
.entete-nom a {
	text-decoration: none;
	color: inherit;
}

/* Bascule en menu burger sous 992px (le cœur la fixe à 600px) */
@media (max-width: 991px) {
	.entete .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.entete .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Menu mobile (template part « menu-mobile ») : fond plein écran, contenu centré */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--creme);
	color: var(--wp--preset--color--marine);
}
.menu-mobile {
	min-height: 100%;
	text-align: center;
}
.menu-mobile .wp-block-navigation-overlay-close {
	align-self: flex-end;
	color: inherit;
}
/* Pas de barre d'appel en double quand le menu est ouvert */
.has-modal-open .barre-appel { display: none; }

/* Ancres : ne pas passer sous l'en-tête collant */
:where(section[id]) {
	scroll-margin-top: 110px;
}

/* Cartes */
.is-style-carte {
	border-radius: 28px 24px 30px 22px;
	padding: clamp(24px, 3.5vw, 40px);
}
.is-style-carte:nth-child(3n+2) { border-radius: 24px 30px 22px 28px; }
.is-style-carte:nth-child(3n+3) { border-radius: 30px 22px 28px 24px; }

/* Pastille en forme libre (pictos, numéros) */
.is-style-pastille {
	flex: 0 0 auto;
	width: var(--pastille, 76px);
	height: var(--pastille, 76px);
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
}
.is-style-pastille > * { margin: 0 !important; }
.is-style-pastille.pastille-petite { --pastille: 60px; }
.is-style-pastille.pastille-moyenne { --pastille: 72px; }
.is-style-pastille.pastille-grande { --pastille: 104px; }
.picto img {
	width: 52px;
	height: 52px;
	display: block;
}
.pastille-grande .picto img { width: 60px; height: 60px; }

/* Liste à pointillés (coordination) */
.is-style-liste-pointilles > * {
	border-top: 2px dashed var(--wp--preset--color--rose-trait);
	padding: 24px 0;
	margin-block-start: 0 !important;
}
.is-style-liste-pointilles > *:last-child {
	border-bottom: 2px dashed var(--wp--preset--color--rose-trait);
}

/* Encadré urgence */
.is-style-urgence {
	border: 3px solid var(--wp--preset--color--rouge);
	border-radius: 28px;
	padding: clamp(28px, 4vw, 48px);
}
/* Encadré urgence et carte posés dans une colonne : toute la hauteur de la ligne
   (pas de :only-child, l'éditeur ajoute des éléments frères dans la colonne) */
.wp-block-column > .is-style-urgence,
.wp-block-column > .is-style-carte {
	height: 100%;
	box-sizing: border-box;
}
.is-style-urgence h2 {
	font-family: var(--wp--preset--font-family--texte);
	font-size: var(--wp--preset--font-size--titre-3);
	color: var(--wp--preset--color--bordeaux);
}
.is-style-urgence p { color: var(--wp--preset--color--brun); }

/* Couleur de fond du bloc parent, reprise par le contour des photos.
   Crème (fond du site) par défaut ; chaque fond de la palette la redéfinit. */
body { --fond: var(--wp--preset--color--creme); }
.has-creme-background-color { --fond: var(--wp--preset--color--creme); }
.has-rose-background-color { --fond: var(--wp--preset--color--rose); }
.has-menthe-background-color { --fond: var(--wp--preset--color--menthe); }
.has-blanc-background-color { --fond: var(--wp--preset--color--blanc); }
.has-turquoise-background-color { --fond: var(--wp--preset--color--turquoise); }
.has-marine-background-color { --fond: var(--wp--preset--color--marine); }
.has-bleu-background-color { --fond: var(--wp--preset--color--bleu); }
.has-ardoise-background-color { --fond: var(--wp--preset--color--ardoise); }
.has-vert-background-color { --fond: var(--wp--preset--color--vert); }
.has-rose-trait-background-color { --fond: var(--wp--preset--color--rose-trait); }
.has-bleu-gris-background-color { --fond: var(--wp--preset--color--bleu-gris); }
.has-rouge-background-color { --fond: var(--wp--preset--color--rouge); }
.has-bordeaux-background-color { --fond: var(--wp--preset--color--bordeaux); }
.has-brun-background-color { --fond: var(--wp--preset--color--brun); }

/* Photos */
.is-style-polaroid img,
.is-style-polaroid-ombre img {
	border: 8px solid var(--fond);
	border-radius: 32px;
	box-sizing: border-box;
	object-fit: cover;
	width: 100%;
	transform: rotate(1.5deg);
}
.is-style-polaroid img { aspect-ratio: 3 / 4; transform: rotate(2deg); }
.is-style-polaroid-ombre img {
	aspect-ratio: 4 / 3;
	box-shadow: var(--wp--preset--shadow--decalee);
}
.is-style-portrait img {
	width: 170px;
	height: 182px;
	object-fit: cover;
	border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
}
.wp-block-image figcaption {
	font-family: var(--wp--preset--font-family--manuscrite);
	color: var(--wp--preset--color--marine);
	text-align: center;
	margin-top: 15px;
}
/* Photos inclinées : 15px visibles sous le coin le plus bas (rotation ≈ largeur × 1,3 % pour 1,5°)
   et sous l'ombre décalée de 14px */
.is-style-polaroid-ombre figcaption { margin-top: calc(15px + 14px + 1.3%); }
.is-style-polaroid figcaption { margin-top: calc(15px + 1.75%); }

/* Bouton d'appel sur deux lignes */
.is-style-appel .wp-block-button__link {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-height: 76px;
	padding: 10px 30px;
	border-radius: 24px 28px 22px 30px;
	box-shadow: var(--wp--preset--shadow--bouton);
	font-size: 17px;
	font-weight: 600;
}
/* À gauche par défaut, sauf si un alignement est choisi dans l'éditeur */
.is-style-appel .wp-block-button__link:not([class*="has-text-align-"]) {
	text-align: left;
}
.is-style-appel .wp-block-button__link strong {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.is-style-appel.appel-grand .wp-block-button__link strong {
	font-size: var(--wp--preset--font-size--telephone);
}
.is-style-appel .wp-block-button__link:hover {
	background: var(--wp--preset--color--turquoise);
	color: var(--wp--preset--color--marine);
	transform: translateY(2px);
	box-shadow: 0 4px 0 var(--wp--preset--color--marine);
}

/* Questions fréquentes : signe + / – */
.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 72px;
	font-weight: 700;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--manuscrite);
	font-size: 24px;
	color: var(--wp--preset--color--bleu);
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :last-child { padding-bottom: 24px; }
.wp-block-details summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--bleu);
	outline-offset: 3px;
	border-radius: 8px;
}

/* Pied de page */
.pied-de-page a { color: var(--wp--preset--color--blanc); }
.pied-mention {
	border-top: 1px solid var(--wp--preset--color--bleu-gris);
	padding-top: 24px;
	max-width: 70em;
}

/* Barre d'appel fixe, mobile seulement */
.barre-appel { display: none; }

@media (max-width: 781px) {
	.masquer-mobile { display: none !important; }
	.hero-colonnes { flex-direction: column-reverse; }
	.barre-appel {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--creme);
		box-shadow: 0 -2px 12px rgba(23, 63, 115, 0.12);
	}
	.barre-appel .wp-block-button,
	.barre-appel .wp-block-button__link { width: 100%; }
	body { padding-bottom: 84px; }
	.is-style-pastille { --pastille: 64px; }
	.picto img { width: 44px; height: 44px; }
}

@media (min-width: 782px) {
	.masquer-desktop { display: none !important; }
}

/* Tablette (782–1092px) : bouton d'appel réduit à l'icône téléphone (picto Flaticon 038).
   Le texte est masqué visuellement mais reste lu par les lecteurs d'écran. */
.entete .alignwide > .wp-block-group:first-child { flex-shrink: 0; }
@media (min-width: 782px) and (max-width: 1092px) {
	.entete .masquer-mobile .wp-block-button__link {
		position: relative;
		width: 52px;
		height: 52px;
		padding: 0;
		overflow: hidden;
		white-space: nowrap;
		color: transparent;
	}
	.entete .masquer-mobile .wp-block-button__link::before {
		content: "";
		position: absolute;
		inset: 12px;
		background-color: var(--wp--preset--color--marine);
		-webkit-mask: url("../icons/nous-joindre-par-telephone.svg") center / contain no-repeat;
		mask: url("../icons/nous-joindre-par-telephone.svg") center / contain no-repeat;
	}
	.entete .masquer-mobile .wp-block-button__link:hover::before {
		background-color: var(--wp--preset--color--blanc);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}