/*
 * Styles communs à toutes les pages.
 * Couleurs, police et tailles : theme.json (variables --wp--preset--*).
 * Styles propres à un bloc du thème : blocks/<bloc>/style.css.
 */

/* Socle */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--wp--preset--color--encre); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}
.lien-evitement {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	padding: 12px 20px; border-radius: 999px;
	background: var(--wp--preset--color--encre); color: var(--wp--preset--color--blanc);
}
.lien-evitement:focus { top: 16px; }

/* Mise en page */
.site { position: relative; overflow: clip; }
.contenant {
	position: relative; z-index: 2;
	max-width: calc(var(--wp--style--global--content-size) + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
}
.wp-block-group, .wp-block-cover, .wp-block-columns, .wp-block-column { position: relative; }
/* La ligne (z-index 1) passe sur le fond des sections, mais sous leur contenu. */
:where(.wp-block-group, .wp-block-cover__inner-container) > :where(:not(.ligne-point)) { position: relative; z-index: 2; }
/* Les sections pleine largeur se suivent sans espace, comme des bandes. */
.contenu-blocs > .alignfull { margin-block: 0; }
/* Longueur de ligne confortable pour le texte courant. */
:where(.contenu-blocs) p { max-width: 60ch; }
.titre-page { margin-block: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--l); }

/* Titres : l'italique de l'éditeur sert de graisse légère (« Nos sites / ont du caractère. ») */
:where(h1, h2, h3) em { font-style: normal; font-weight: 400; }

/* En-tête */
.site-entete { position: relative; z-index: 10; padding-block: 22px; }
.header-superpose .site-entete { position: absolute; inset: 0 0 auto; }
.site-entete__interieur { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; color: inherit; text-decoration: none; }
.logo__texte strong { font-weight: 800; }

.nav-principale .menu {
	display: flex; gap: 4px; margin: 0; padding: 4px; list-style: none;
	background: var(--wp--preset--color--blanc);
	border: 2px solid var(--wp--preset--color--encre); border-radius: 999px;
	font-weight: 600;
}
.nav-principale a {
	display: block; padding: 10px 16px; border-radius: 999px;
	color: var(--wp--preset--color--encre); text-decoration: none;
	transition: background-color .2s;
}
.nav-principale a:hover, .nav-principale .current-menu-item > a { background: var(--wp--preset--color--menthe); }
.nav-principale .menu-cta > a { background: var(--wp--preset--color--encre); color: var(--wp--preset--color--blanc); }

.menu-bouton {
	display: none; width: 48px; height: 48px; padding: 0; cursor: pointer;
	background: var(--wp--preset--color--blanc);
	border: 2px solid var(--wp--preset--color--encre); border-radius: 50%;
}
.menu-bouton__barres, .menu-bouton__barres::before, .menu-bouton__barres::after {
	display: block; width: 18px; height: 2px; margin-inline: auto;
	background: var(--wp--preset--color--encre); transition: transform .25s;
}
.menu-bouton__barres { position: relative; }
.menu-bouton__barres::before, .menu-bouton__barres::after { content: ""; position: absolute; left: 0; }
.menu-bouton__barres::before { top: -6px; }
.menu-bouton__barres::after { top: 6px; }
.menu-bouton[aria-expanded="true"] .menu-bouton__barres { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-bouton__barres::before { transform: translateY(6px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton__barres::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.menu-bouton { display: block; }
	.nav-principale { display: none; position: absolute; inset: calc(100% - 8px) var(--wp--style--root--padding-right) auto; }
	.nav-principale.est-ouverte { display: block; }
	.nav-principale .menu { flex-direction: column; border-radius: 24px; box-shadow: var(--wp--preset--shadow--decale); }
	.nav-principale a { padding: 14px 18px; }
}

/* Boutons : blocs Boutons de l'éditeur et liens .bouton des gabarits */
.bouton {
	display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px;
	border: 2px solid var(--wp--preset--color--encre); border-radius: 999px;
	background: var(--wp--preset--color--encre); color: var(--wp--preset--color--blanc);
	font-weight: 700; text-decoration: none;
}
.wp-block-button.is-style-contour .wp-block-button__link {
	background: var(--wp--preset--color--blanc); color: var(--wp--preset--color--encre);
}
.bouton, .wp-block-button__link { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s; }
.bouton:hover, .wp-block-button__link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--wp--preset--color--encre); }
.bouton:hover { color: var(--wp--preset--color--blanc); }

/* Sticker : variante du bloc Paragraphe */
p.is-style-sticker {
	display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 0;
	padding: 10px 16px; border: 2px solid var(--wp--preset--color--encre); border-radius: 999px;
	box-shadow: 3px 3px 0 var(--wp--preset--color--encre);
	font-weight: 800; font-size: 16px; line-height: 1; white-space: nowrap;
	transform: rotate(-3deg);
}
p.is-style-sticker:not(.has-background) { background: var(--wp--preset--color--blanc); }
p.is-style-sticker a { color: inherit; text-decoration: none; }
p.is-style-sticker a:hover { text-decoration: underline; }
p.is-style-sticker:nth-of-type(even) { transform: rotate(3deg); }

/* Section bordée : variante du bloc Groupe (bandes séparées par un trait encre) */
.wp-block-group.is-style-section-bordee { border-top: 3px solid var(--wp--preset--color--encre); }

/* Avis : variante du bloc Citation */
.wp-block-quote.is-style-carte {
	margin: 0; padding: 30px; border: 2px solid var(--wp--preset--color--encre); border-radius: 28px;
	font-size: 22px; line-height: 1.3; font-weight: 600; transform: rotate(-1.5deg);
}
.wp-block-quote.is-style-carte:not(.has-background) { background: var(--wp--preset--color--blanc); }
.wp-block-column:nth-child(even) > .wp-block-quote.is-style-carte { margin-top: 24px; transform: rotate(2deg); }
.wp-block-quote.is-style-carte p { margin: 0; }
.wp-block-quote.is-style-carte cite { display: block; margin-top: 14px; font-size: 17px; font-style: normal; }

/* Avis Google (bloc du thème) : cartes au style « Carte » du bloc Citation */
.avis-google__resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: none; margin: 0 0 40px; font-size: 18px; font-weight: 700; }
.avis-google__resume a { color: inherit; }
.avis-google__etoiles { letter-spacing: .1em; }
.avis-google__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.avis-google__liste > :nth-child(even) { margin-top: 24px; transform: rotate(2deg); }
.avis-google .is-style-carte { font-size: 18px; }
.avis-google blockquote { margin: 0; }
.avis-google blockquote p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.avis-google figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; font-size: 16px; }
@media (max-width: 781px) {
	.avis-google__liste { grid-template-columns: 1fr; }
	.avis-google__liste > :nth-child(even) { margin-top: 0; }
}

/* Portraits d'équipe en arche : variante du bloc Image, et du bloc Groupe pour une photo à venir */
.wp-block-image.is-style-arche img,
.wp-block-group.is-style-arche {
	width: 100%; aspect-ratio: 9 / 25; margin: 0;
	border: 2px solid var(--wp--preset--color--encre); border-radius: 120px 120px 16px 16px;
}
.wp-block-image.is-style-arche img { object-fit: cover; object-position: 50% 30%; }
.wp-block-image.is-style-arche figcaption { text-align: center; font-size: clamp(11px, 1vw, 14px); white-space: nowrap; }
.wp-block-group.is-style-arche {
	align-items: center; justify-content: flex-end; padding-bottom: 16px; border-style: dashed;
	background: var(--wp--preset--color--orange-clair); font-size: 13px; font-weight: 700; text-align: center;
}
:is(.wp-block-image, .wp-block-group).is-style-arche:nth-child(even) { margin-top: 40px; }
/* Les arches ont besoin de largeur : en dessous de 1100 px, leur colonne passe sous le texte. */
@media (max-width: 1100px) {
	.wp-block-columns:has(.is-style-arche) { flex-wrap: wrap !important; }
	.wp-block-columns:has(.is-style-arche) > .wp-block-column { flex-basis: 100% !important; }
}

/* Mascotte (personnage LW) */
.mascotte { overflow: visible; }
.mascotte__corps { transform-box: fill-box; transform-origin: 50% 90%; animation: mascotte-balance 3.4s ease-in-out infinite; }
.mascotte__oeil { transform-box: fill-box; transform-origin: center; animation: mascotte-cligne 5.2s infinite; }
@keyframes mascotte-balance { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-6px); } }
@keyframes mascotte-cligne { 0%, 88%, 92%, 100% { transform: scaleY(1); } 90% { transform: scaleY(.12); } }

/* La ligne (dessinée par assets/js/ligne.js) */
.ligne-point { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.ligne-svg { position: absolute; inset: 0 auto auto 0; z-index: 1; overflow: visible; pointer-events: none; }
@media (max-width: 900px) { .ligne-svg { display: none; } }

/* Pied de page */
.site-pied { position: relative; padding-block: 120px 40px; background: var(--wp--preset--color--vert); border-top: 3px solid var(--wp--preset--color--encre); }
.bloc-mascotte.site-pied__mascotte { position: absolute; right: 70px; top: 0; }
.site-pied__titre {
	position: relative; margin: 0;
	font-size: var(--wp--preset--font-size--enorme); font-weight: 800; line-height: .82; letter-spacing: -.04em;
}
.site-pied__titre p { margin: 0; }
.site-pied__actions { margin-top: 70px; }
.site-pied__bas {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
	margin-top: 90px; padding-top: 22px; border-top: 2px solid var(--wp--preset--color--encre);
	font-size: 14px; font-weight: 600;
}
.site-pied__bas p { margin: 0; }
.site-pied__bas a { color: inherit; }
@media (max-width: 900px) { .site-pied__mascotte { display: none; } }

/* Listes d'articles (blog, archives) */
.liste-articles { margin: 0 0 var(--wp--preset--spacing--xl); padding: 0; list-style: none; border-top: 2px solid var(--wp--preset--color--encre); }
.liste-articles__element { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 2px solid var(--wp--preset--color--encre); }
.liste-articles__element a { color: inherit; font-weight: 700; font-size: 22px; text-decoration: none; }

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

/* Légendes d'images */
.wp-element-caption { margin-top: 8px; font-size: 14px; font-weight: 600; }

/* Bandeau défilant : variantes « Bandeau » du bloc Groupe (le défilement est ajouté par site.js) */
:is(.is-style-bandeau, .is-style-bandeau-clients) {
	position: relative; z-index: 3; overflow: hidden; flex-wrap: nowrap !important; gap: 0 !important;
	padding-block: 18px; border-block: 3px solid var(--wp--preset--color--encre);
	font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap;
}
.is-style-bandeau-clients { padding-block: 20px; font-size: clamp(24px, 2.5vw, 36px); }
:is(.is-style-bandeau, .is-style-bandeau-clients) p { flex: none; max-width: none; margin: 0; padding-right: 34px; }
:is(.is-style-bandeau, .is-style-bandeau-clients) p::after { margin-left: 34px; }
.is-style-bandeau p::after { content: "✦"; color: var(--wp--preset--color--vert); }
.is-style-bandeau p:nth-child(even)::after { color: var(--wp--preset--color--orange); }
.is-style-bandeau-clients p::after { content: "●"; }
.bandeau__piste { display: flex; flex: none; animation: bandeau-defile 26s linear infinite; }
.is-style-bandeau-clients .bandeau__piste { animation-direction: reverse; }
/* Arrêt du défilement : au survol de la souris, ou d'un toucher sur mobile (site.js ajoute .est-en-pause). */
:is(.is-style-bandeau, .is-style-bandeau-clients):is(:hover, .est-en-pause) .bandeau__piste { animation-play-state: paused; }
@keyframes bandeau-defile { to { transform: translateX(-50%); } }

/* Liste d'expertises : variante du bloc Groupe ; chaque ligne est un Groupe (Titre + Paragraphe) */
.is-style-expertises { border-top: 2px solid var(--wp--preset--color--encre); }
.is-style-expertises > .wp-block-group {
	position: relative; margin: 0; padding: 14px 0;
	border-bottom: 2px solid var(--wp--preset--color--encre);
	transition: padding-left .4s cubic-bezier(.22, 1, .36, 1), background-color .3s;
}
.is-style-expertises h3 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; }
.is-style-expertises h3 a { color: inherit; text-decoration: none; }
.is-style-expertises h3 a::after { content: ""; position: absolute; inset: 0; } /* toute la ligne est cliquable */
.is-style-expertises > .wp-block-group > p { max-width: 380px; margin: 0; font-weight: 500; opacity: .6; transition: opacity .3s; }
.is-style-expertises > .wp-block-group:is(:hover, :focus-within, .has-background) { padding-left: 24px; }
.is-style-expertises > .wp-block-group:is(:hover, :focus-within) { background: var(--wp--preset--color--menthe); }
.is-style-expertises > .wp-block-group:is(:hover, :focus-within, .has-background) > p { opacity: 1; }
.is-style-expertises > .has-background h3 { color: var(--wp--preset--color--vert-fonce); }
@media (max-width: 900px), (hover: none) {
	.is-style-expertises > .wp-block-group { flex-direction: column; align-items: flex-start; gap: 6px; }
	.is-style-expertises > .wp-block-group > p { opacity: 1; }
}

/* Projets à la une : Boucle de requête dont chaque élément est un Groupe « projet-carte » */
.wp-block-query { position: relative; }
.wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.projet-carte {
	--accent: var(--wp--preset--color--vert);
	--accent-clair: var(--wp--preset--color--menthe);
	position: relative; display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px; align-items: center; margin-bottom: 110px;
}
.projet-carte--orange { --accent: var(--wp--preset--color--orange); --accent-clair: var(--wp--preset--color--orange-clair); }
.projet-carte--bleu { --accent: var(--wp--preset--color--bleu); --accent-clair: var(--wp--preset--color--bleu-clair); }
.projet-carte--violet { --accent: var(--wp--preset--color--violet); --accent-clair: var(--wp--preset--color--violet-clair); }
.projet-carte--jaune { --accent: var(--wp--preset--color--jaune); --accent-clair: var(--wp--preset--color--jaune-clair); }

.projet-carte__capture {
	grid-column: 1 / span 8; overflow: hidden; margin: 0 !important;
	background: var(--wp--preset--color--blanc);
	border: 2px solid var(--wp--preset--color--encre); border-radius: 22px;
	box-shadow: 10px 10px 0 var(--accent);
	transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.projet-carte:hover .projet-carte__capture { transform: rotate(-1deg) scale(.99); }
.projet-carte__capture > p { /* barre du navigateur, avec le domaine du site */
	position: relative; max-width: none; height: 34px; margin: 0; padding-left: 56px;
	background: var(--accent-clair); border-bottom: 2px solid var(--wp--preset--color--encre);
	font-size: 13px; font-weight: 600; line-height: 30px;
}
.projet-carte__capture > p::before, .projet-carte__capture > p::after {
	content: ""; position: absolute; top: 10px; width: 10px; height: 10px;
	border: 2px solid var(--wp--preset--color--encre); border-radius: 50%;
}
.projet-carte__capture > p::before { left: 14px; }
.projet-carte__capture > p::after { left: 31px; }
.projet-carte__capture .wp-block-post-featured-image { margin: 0; }
.projet-carte__capture img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }

.projet-carte__texte { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 14px; }
.projet-carte__texte > * { margin: 0 !important; }
.projet-carte--droite .projet-carte__capture { grid-column: 5 / span 8; grid-row: 1; box-shadow: -10px 10px 0 var(--accent); }
.projet-carte--droite .projet-carte__texte { grid-column: 1 / span 4; grid-row: 1; }
.projet-carte .is-style-sticker { background: var(--accent); }
.projet-carte .wp-block-post-title a { color: inherit; text-decoration: none; }
.projet-carte .wp-block-post-excerpt__excerpt { margin: 0; color: var(--wp--preset--color--texte-doux); }
.projet-carte .wp-block-post-excerpt__more-text { display: none; }
.projet-carte__techs { font-size: 14px; font-weight: 700; }
.projet-carte p:empty { display: none; } /* champ non renseigné dans la fiche projet */

/* Autres projets : Groupe « projet-mini » = fenêtre du site (capture) + logo collé en sticker */
.projet-mini { position: relative; margin-bottom: 30px; }
.projet-mini__ecran {
	display: flex; flex-direction: column; aspect-ratio: 1; overflow: hidden; margin: 0 !important;
	background: var(--wp--preset--color--blanc);
	border: 2px solid var(--wp--preset--color--encre); border-radius: 18px;
}
.projet-mini__ecran > p { /* barre du navigateur, avec le domaine du site */
	position: relative; flex: none; max-width: none; height: 28px; margin: 0; padding-left: 46px;
	border-bottom: 2px solid var(--wp--preset--color--encre);
	font-size: 11px; font-weight: 600; line-height: 25px; white-space: nowrap; overflow: hidden;
}
.projet-mini__ecran > p::before, .projet-mini__ecran > p::after {
	content: ""; position: absolute; top: 8px; width: 8px; height: 8px;
	border: 1.5px solid var(--wp--preset--color--encre); border-radius: 50%;
}
.projet-mini__ecran > p::before { left: 11px; }
.projet-mini__ecran > p::after { left: 25px; }
.projet-mini__ecran .wp-block-post-featured-image { flex: 1; min-height: 0; margin: 0; }
.projet-mini__ecran .wp-block-post-featured-image a { display: block; height: 100%; }
.projet-mini__ecran img {
	display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
	transition: transform .6s cubic-bezier(.3, 1.4, .5, 1);
}
.projet-mini__logo {
	position: absolute; left: -10px; bottom: -14px; z-index: 3;
	display: grid; place-items: center; width: 118px; height: 70px; margin: 0; padding: 8px 12px;
	background: var(--wp--preset--color--blanc);
	border: 2px solid var(--wp--preset--color--encre); border-radius: 14px;
	box-shadow: 4px 4px 0 var(--wp--preset--color--encre);
	transform: rotate(-5deg); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
	pointer-events: none;
}
.projet-mini__logo img { width: auto; max-width: 100%; height: auto; max-height: 48px; object-fit: contain; }
.wp-block-post:hover .projet-mini__logo { transform: rotate(-1deg) translateY(-4px); }
.wp-block-post:hover .projet-mini__ecran img { transform: scale(1.04); }

/* Accueil : les vignettes reprennent les grandes cartes en petit (capture 4:3, ombre décalée
   à la couleur du projet), sans logo. La page Nos projets garde sa propre présentation. */
.projets-autres .projet-mini {
	--accent: var(--wp--preset--color--vert);
	--accent-clair: var(--wp--preset--color--menthe);
	margin-bottom: 22px;
}
.projets-autres .projet-mini--orange { --accent: var(--wp--preset--color--orange); --accent-clair: var(--wp--preset--color--orange-clair); }
.projets-autres .projet-mini--bleu { --accent: var(--wp--preset--color--bleu); --accent-clair: var(--wp--preset--color--bleu-clair); }
.projets-autres .projet-mini--violet { --accent: var(--wp--preset--color--violet); --accent-clair: var(--wp--preset--color--violet-clair); }
.projets-autres .projet-mini--jaune { --accent: var(--wp--preset--color--jaune); --accent-clair: var(--wp--preset--color--jaune-clair); }
.projets-autres .projet-mini__logo { display: none; }
.projets-autres .projet-mini__ecran {
	aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: 8px 8px 0 var(--accent);
	transition: transform .4s cubic-bezier(.3, 1.4, .5, 1), box-shadow .4s;
}
.projets-autres .projet-mini__ecran > p { background: var(--accent-clair); }
.projets-autres .wp-block-post:hover .projet-mini__ecran { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: 12px 12px 0 var(--accent); }
.projets-autres .wp-block-post:hover .projet-mini__ecran img { transform: none; }
.projets-autres .wp-block-post-title { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.projets-autres .wp-block-post-title a { color: inherit; text-decoration: none; }
.projets-autres .wp-block-post-title a::after { content: " →"; opacity: .5; }
.projets-autres .wp-block-post-terms { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--texte-doux); }
.projets-autres .wp-block-post-terms a { color: inherit; text-decoration: none; }
@media (max-width: 781px) {
	.projets-autres .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 18px !important; }
	.projets-autres .projet-mini__ecran { box-shadow: 5px 5px 0 var(--accent); }
	.projets-autres .projet-mini__ecran > p { padding-left: 34px; font-size: 9px; }
	.projets-autres .projet-mini__ecran > p::before { left: 8px; }
	.projets-autres .projet-mini__ecran > p::after { left: 19px; }
	.projets-autres .wp-block-post-title { font-size: 16px; }
}

@media (max-width: 900px) {
	.projet-carte { grid-template-columns: 1fr; gap: 20px; margin-bottom: 64px; }
	.projet-carte .projet-carte__capture, .projet-carte .projet-carte__texte { grid-column: 1; grid-row: auto; }
	.projet-carte--droite .projet-carte__capture { box-shadow: 10px 10px 0 var(--accent); }
}

/* En-tête : téléphone et devis (classes « menu-tel » et « menu-cta » des liens du menu).
   Le téléphone n'affiche que son icône ; le numéro reste lu par les lecteurs d'écran. */
.nav-principale .menu-tel { display: flex; }
.nav-principale .menu-tel > a {
	display: flex; align-items: center; justify-content: center; width: 44px; padding: 0;
	font-size: 0; white-space: nowrap;
}
.nav-principale .menu-tel > a::before, .barre-mobile__tel::before {
	content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: var(--icone-tel) center / contain no-repeat; mask: var(--icone-tel) center / contain no-repeat;
}
:root { --icone-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
@media (min-width: 901px) and (max-width: 1180px) {
	.nav-principale a { padding-inline: 12px; }
}
@media (max-width: 900px) {
	.nav-principale .menu-tel > a { display: flex; align-items: center; gap: 8px; flex: 1; width: auto; padding: 14px 18px; font-size: inherit; }
}

/* Barre de contact fixe sur mobile (inc/setup.php, llw_barre_mobile) */
.barre-mobile { display: none; }
@media (max-width: 900px) {
	html { scroll-padding-bottom: 96px; } /* l'élément qui reçoit le focus ne passe pas sous la barre */
	.barre-mobile {
		position: fixed; inset: auto 12px max(12px, env(safe-area-inset-bottom)); z-index: 50;
		display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 6px;
		background: var(--wp--preset--color--blanc);
		border: 2px solid var(--wp--preset--color--encre); border-radius: 999px;
		box-shadow: 4px 4px 0 var(--wp--preset--color--encre);
	}
	.barre-mobile a {
		display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px;
		font-weight: 800; text-decoration: none; color: var(--wp--preset--color--encre);
	}
	.barre-mobile__tel { background: var(--wp--preset--color--menthe); }
	.barre-mobile__devis { background: var(--wp--preset--color--encre); color: var(--wp--preset--color--blanc) !important; }
	.site-pied { padding-bottom: 110px; }
}

/* Avis Google en sticker (format « résumé » du bloc) */
.is-style-sticker.avis-google--resume { transform: none; }
.avis-google--resume a { color: inherit; text-decoration: none; }
.avis-google--resume a:hover { text-decoration: underline; }

/* Méthode : colonnes en cartes */
.etapes > .wp-block-column {
	padding: 28px; border: 2px solid var(--wp--preset--color--encre); border-radius: 24px;
	box-shadow: 6px 6px 0 var(--wp--preset--color--encre);
}
.etapes .is-style-sticker { transform: rotate(-4deg); }
.etapes h3 { margin: 22px 0 10px; font-size: clamp(26px, 2.4vw, 34px); }
.etapes p:not(.is-style-sticker) { margin: 0; font-weight: 500; }
@media (max-width: 1100px) and (min-width: 782px) {
	.etapes { flex-wrap: wrap !important; }
	.etapes > .wp-block-column { flex-basis: calc(50% - 12px) !important; }
}

/* Villes desservies : stickers en vrac */
.villes { gap: 18px 14px !important; }
.villes .is-style-sticker { font-size: clamp(18px, 1.8vw, 24px); padding: 14px 20px; }
.villes .is-style-sticker:nth-of-type(3n) { transform: rotate(2deg); }

/* FAQ : blocs Détails */
.faq { border-top: 2px solid var(--wp--preset--color--encre); }
.faq .wp-block-details { margin: 0; border-bottom: 2px solid var(--wp--preset--color--encre); }
.faq summary {
	position: relative; padding: 22px 56px 22px 0; cursor: pointer; list-style: none;
	font-size: clamp(19px, 1.8vw, 24px); font-weight: 800; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
	display: grid; place-items: center; width: 40px; height: 40px;
	border: 2px solid var(--wp--preset--color--encre); border-radius: 50%;
	background: var(--wp--preset--color--blanc); font-size: 24px; transition: rotate .3s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq .wp-block-details > p { margin: 0 0 24px; font-weight: 500; }

/* Arches : prénom et rôle */
.wp-block-image.is-style-arche figcaption { line-height: 1.25; }
.wp-block-group.is-style-arche { overflow: visible; }
.wp-block-group.is-style-arche p { line-height: 1.25; font-size: clamp(11px, 1vw, 13px); white-space: nowrap; }

/* Mobile : sections moins hautes, et les étapes et les avis défilent de côté au lieu de s'empiler. */
@media (max-width: 781px) {
	.contenu-blocs > .alignfull:not(.accueil-hero, .page-hero):not(:is(.is-style-bandeau, .is-style-bandeau-clients)) { padding-block: 72px !important; }
	.contenu-blocs h2.wp-block-heading { margin-bottom: 28px !important; }

	.etapes, .avis-google__liste {
		display: flex !important; flex-wrap: nowrap !important; gap: 16px !important;
		margin-inline: -20px !important; padding: 6px 20px 18px; scroll-padding-inline: 20px;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	}
	.etapes::-webkit-scrollbar, .avis-google__liste::-webkit-scrollbar { display: none; }
	.etapes > .wp-block-column, .avis-google__liste > * { flex: 0 0 78% !important; scroll-snap-align: start; }
	.avis-google__liste > * { margin-top: 0 !important; transform: none !important; }
	.etapes > .wp-block-column { padding: 22px; }
}

/* Méthode en ligne (pages expertises) : gros numéro, titre, phrase, reliés par un trait encre */
.methode > .wp-block-column { position: relative; padding-top: 22px; border-top: 3px solid var(--wp--preset--color--encre); }
.methode__numero {
	margin: 0 0 6px; font-size: clamp(48px, 5vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.04em;
	color: var(--wp--preset--color--vert-fonce);
}
.methode h3 { margin: 0 0 8px; font-size: clamp(24px, 2.2vw, 30px); }
.methode p:not(.methode__numero) { margin: 0; font-weight: 500; }
@media (max-width: 781px) {
	.methode { gap: 26px !important; }
	.methode > .wp-block-column { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding-top: 16px; }
	.methode__numero { grid-row: span 2; font-size: 44px; }
}

/* Très petits écrans : « Aix-en-Provence », insécable dans les H1, doit tenir sur la ligne. */
@media (max-width: 370px) { h1.wp-block-heading { font-size: 34px; } }

/* ---------- Méga-menu « Expertises » (sous-menus du menu principal) ---------- */
.nav-principale .menu-description { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--wp--preset--color--texte-doux); }
@media (min-width: 901px) {
	.nav-principale .menu > .menu-item-has-children { position: relative; }
	.nav-principale .menu > .menu-item-has-children > a::after {
		content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
		border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
	}
	/* Le panneau : une carte blanche bordée, en grille, accrochée sous « Expertises ». */
	.nav-principale .menu > .menu-item-has-children > .sub-menu {
		position: absolute; top: calc(100% + 14px); left: 50%; z-index: 20;
		display: grid; grid-template-columns: repeat(5, 172px); gap: 6px; width: max-content;
		margin: 0; padding: 14px; list-style: none;
		background: var(--wp--preset--color--blanc); border: 2px solid var(--wp--preset--color--encre);
		border-radius: 24px; box-shadow: var(--wp--preset--shadow--decale);
		opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
		transition: opacity .2s, transform .25s cubic-bezier(.22, 1, .36, 1), visibility 0s .25s;
	}
	/* Pont invisible entre le lien et le panneau, pour ne pas le perdre en descendant la souris. */
	.nav-principale .menu > .menu-item-has-children > .sub-menu::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
	.nav-principale .menu > .menu-item-has-children:is(:hover, :focus-within):not(.est-ferme) > .sub-menu {
		opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
	}
	.nav-principale .sub-menu a { border-radius: 16px; padding: 12px 14px; line-height: 1.2; font-weight: 800; }
	.nav-principale .sub-menu .sub-menu { margin: 0; padding: 0 0 6px 14px; list-style: none; }
	.nav-principale .sub-menu .sub-menu a { padding: 5px 0; border-radius: 0; font-size: 14px; font-weight: 600; background: none; }
	.nav-principale .sub-menu .sub-menu a::before { content: "↳ "; color: var(--wp--preset--color--texte-doux); }
	.nav-principale .sub-menu .sub-menu a:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 900px) {
	/* Mobile : les 5 expertises en retrait sous « Expertises », sans les sous-pages. */
	.nav-principale .sub-menu { margin: 0; padding: 0 0 6px 18px; list-style: none; }
	.nav-principale .sub-menu a { padding-block: 9px; }
	.nav-principale .sub-menu .menu-description, .nav-principale .sub-menu .sub-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.nav-principale .menu > .menu-item-has-children > .sub-menu { transition: none; }
}

/* Fil d'Ariane des pages (aussi dans l'éditeur, qui ne charge que base.css) : sans puces. */
.service-fil ul.wp-block-list { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
