/* ==========================================================================
   ludovictichit.fr : compléments à theme.json (dérivé du thème Portised)
   Le point carré, l'en-tête fixe, les sections, les animations.
   ========================================================================== */

:root {
	--bleu: var(--wp--preset--color--bleu, #14233F);
	--orange: var(--wp--preset--color--orange, #FF6600);
	--blanc: #FFFFFF;
	--acier: var(--wp--preset--color--acier, #5C6168);
	--calque: var(--wp--preset--color--calque, #E4E7E8);
	--pt: var(--orange);
	--trait-x: max(16px, calc(50% - 668px));
	--section: var(--wp--preset--spacing--60, 96px);
}

/* ---------- Base ---------- */

html { scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.wp-site-blocks > * { margin-block: 0; }
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + *,
main > .alignfull,
main > .alignfull + * { margin-block-start: 0; margin-block-end: 0; }

h1, h2, .wp-block-heading, .wp-block-post-title { font-stretch: 72%; text-wrap: balance; }
h1, .wp-block-post-title { font-stretch: 70%; }
h3, h4 { font-stretch: 80%; }

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.has-bleu-background-color { --pt: var(--orange); }
.has-orange-background-color { --pt: var(--blanc); }
.has-bleu-background-color a:where(:not(.wp-element-button)) { color: inherit; }

/* ---------- Le point carré ---------- */

.lt-colle { white-space: nowrap; }

.pt {
	display: inline-block;
	width: .14em;
	height: .161em;
	margin-left: .04em;
	overflow: hidden;
	color: transparent;
	vertical-align: baseline;
	background: var(--pt);
}

.is-style-surtitre {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	font-stretch: 100%;
	letter-spacing: .01em;
}
.is-style-surtitre::before {
	content: "";
	flex: none;
	width: 9px;
	height: 10px;
	margin-top: .3em;
	background: var(--pt);
}
h2.is-style-surtitre, h3.is-style-surtitre { font-size: 22px; font-stretch: 85%; }
h2.is-style-surtitre::before, h3.is-style-surtitre::before { margin-top: .25em; }

.qm { color: var(--pt); }

/* Surtitre « // animation · table ronde ». */
.is-style-barres { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; color: var(--wp--preset--color--orange-texte); }
.has-bleu-background-color .is-style-barres { color: var(--orange); }

.is-style-chapeau { font-size: var(--wp--preset--font-size--moyen); line-height: 1.5; max-width: 34em; }

/* Listes : puces carrées par défaut. */
ul.wp-block-list:not(.is-style-sans-puce) { list-style: none; padding-left: 0; }
ul.wp-block-list:not(.is-style-sans-puce) > li { position: relative; padding-left: 24px; }
ul.wp-block-list:not(.is-style-sans-puce) > li + li { margin-top: 6px; }
ul.wp-block-list:not(.is-style-sans-puce) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: 8px;
	height: 9px;
	background: var(--pt);
}
ul.wp-block-list.is-style-lignes { border-top: 3px solid currentColor; }
ul.wp-block-list.is-style-lignes > li { padding: 20px 0 20px 28px; border-bottom: 1px solid currentColor; font-size: 19px; line-height: 1.45; }
ul.wp-block-list.is-style-lignes > li + li { margin-top: 0; }
ul.wp-block-list.is-style-lignes > li::before { top: calc(20px + .5em); }
ul.is-style-sans-puce { list-style: none; padding-left: 0; }

/* ---------- Boutons ---------- */

.wp-block-button__link { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; box-sizing: border-box; }
.wp-block-button:not(.is-style-lien):not(.is-style-outline) .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 9px;
	height: 10px;
	background: var(--orange);
	transition: transform .25s ease;
}
.wp-block-button:not(.is-style-lien):not(.is-style-outline) .wp-block-button__link.has-orange-background-color::after { background: var(--bleu); }
.wp-block-button__link.has-orange-background-color:hover { background-color: #FF7A1F !important; color: var(--bleu) !important; }
.wp-block-button:not(.is-style-lien) .wp-block-button__link:hover::after,
.wp-block-button:not(.is-style-lien) .wp-block-button__link:focus-visible::after { transform: translateX(6px); }

.wp-block-button.is-style-lien .wp-block-button__link {
	background: none !important;
	color: inherit !important;
	padding: 0 !important;
	min-height: 44px;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}


.is-style-grille-bleue,
.is-style-grille-orange { position: relative; z-index: 3; background-size: 32px 32px; }
.is-style-grille-bleue {
	background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	background-attachment: fixed;
}
.is-style-grille-orange {
	background-image: linear-gradient(rgba(0,0,0,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.075) 1px, transparent 1px);
}

main.has-trait { position: relative; }
/* Encadré « Réalisé avec notre réseau de partenaires » : le texte respire à côté du trait orange. */
.note-partenaire { padding: 4px 0 4px 18px; }
.note-partenaire > p { margin: 0; }
/* Appel à l'action final : le titre prend toujours toute la ligne, boutons et téléphone passent dessous, quelle que soit sa longueur. */
.is-style-grille-orange > .alignwide.is-layout-flex > .wp-block-heading { flex-basis: 100%; text-wrap: pretty; }
/* (pretty plutôt que balance : la première ligne se remplit, sans mot orphelin sur la seconde.) */
/* Gabarit « Page » rempli de sections pleine largeur (Nos métiers, Secteurs…) : la page s'efface derrière ses sections. */
/* Ligne de métier : se remplit d'orange au survol, toute la ligne est cliquable. */
.is-style-ligne-metier {
	position: relative;
	border-bottom: 1px solid currentColor;
	margin: 0 -12px !important;
	padding: 28px 12px !important;
	background-image: linear-gradient(var(--orange), var(--orange));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	transition: background-size .35s ease;
}
.is-style-ligne-metier a { color: inherit; text-decoration: none; }
.is-style-ligne-metier .wp-block-heading a::after { content: ""; position: absolute; inset: 0; }
/* Liens vers les sous-pages (Podcast, Vidéo, Agence GEO), cliquables au-dessus de la ligne. */
.is-style-ligne-metier p a { position: relative; z-index: 1; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.is-style-ligne-metier:hover p a, .is-style-ligne-metier:focus-within p a { text-decoration-color: currentColor; }
.is-style-ligne-metier:hover,
.is-style-ligne-metier:focus-within { background-size: 100% 100%; }
.is-style-ligne-metier + .is-style-ligne-metier { margin-top: 0 !important; }

/* Carte cliquable (secteurs, prestations). */
.is-style-carte { position: relative; }
.is-style-carte a { color: inherit; text-decoration: none; }
.is-style-carte a::after { content: ""; position: absolute; inset: 0; }
.is-style-carte:hover .wp-block-heading,
.is-style-carte:focus-within .wp-block-heading { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- En-tête fixe ---------- */

header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
.site-head { border-bottom: 1px solid var(--calque); }
.site-head__in { padding-block: 20px; }
.site-head .wp-block-navigation { gap: 30px; }
.site-head .wp-block-navigation .wp-block-navigation-item { position: relative; }
.site-head .wp-block-navigation .wp-block-navigation-item__content { padding-block: 10px; }
.site-head .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	width: 7px;
	height: 8px;
	margin-left: -3.5px;
	background: var(--orange);
	transform: scale(0);
	transition: transform .2s ease;
}
.site-head .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.site-head .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible::after,
.site-head .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after,
.site-head .wp-block-navigation__container > .wp-block-navigation-item > [aria-current="page"]::after { transform: scale(1); }
.lien-externe > .wp-block-navigation-item__content::before {
	content: "";
	order: 2;
	width: 12px;
	height: 12px;
	margin-left: 6px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 2h7v7M12 2L3 11' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 2h7v7M12 2L3 11' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lien-externe > .wp-block-navigation-item__content { display: inline-flex; align-items: center; font-weight: 500; }
.site-head .bouton-contact .wp-block-button__link { min-height: 44px; padding: 10px 20px; font-size: 16px; }
/* Sous-menus : panneau blanc, filet bleu en haut. */
.site-head .wp-block-navigation .wp-block-navigation__submenu-container { min-width: 270px !important; padding: 10px 0; background: var(--blanc) !important; color: var(--bleu) !important; border: 1px solid var(--calque) !important; border-top: 3px solid var(--bleu) !important; box-shadow: 0 12px 28px rgba(20, 35, 63, .12); }
.site-head .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 20px !important; font-weight: 500; }
.site-head .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--orange-texte); background: #FFF1E6; }
.site-head .bouton-contact .wp-block-button__link::after { display: none; }

/* Le menu passe en burger sous 960 px (WordPress le fait d'origine sous 600 px). */
@media (max-width: 959px) {
	.site-head .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-head .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 480px) {
	.site-head .lt-logo__slogan { display: none; }
	.site-head .lt-logo { --logo-taille: 26px !important; }
	.site-head .bouton-contact .wp-block-button__link { padding: 8px 14px; }
}
.wp-block-navigation__responsive-container-open { position: relative; padding: 8px; }
.wp-block-navigation__responsive-container-open::after {
	content: "";
	position: absolute;
	right: 4px;
	bottom: 8px;
	width: 6px;
	height: 7px;
	background: var(--orange);
}
.wp-block-navigation__responsive-container.is-menu-open { padding: 24px clamp(16px, 4vw, 56px) 40px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; justify-content: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-items: flex-start !important;
	border-bottom: 1px solid rgba(255,255,255,.18);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex;
	width: 100%;
	justify-content: flex-start;
	padding: 16px 0 !important;
	font-size: 34px;
	font-weight: 800;
	font-stretch: 72%;
	line-height: 1;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 12px !important; border: 0 !important; box-shadow: none; background: none !important; color: inherit !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border-bottom: 0; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 0 !important; font-size: 19px; font-weight: 500; font-stretch: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .menu-contact { border-bottom: 0; margin-top: 24px; }
.wp-block-navigation__responsive-container.is-menu-open .menu-contact .wp-block-navigation-item__content { box-sizing: border-box; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px !important; background: var(--orange); color: var(--bleu); font-size: 18px; font-weight: 700; font-stretch: 100%; border-radius: 2px; }
.site-head .wp-block-navigation__container > .menu-contact { display: none; }
.is-menu-open .wp-block-navigation__container > .menu-contact { display: flex; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: var(--orange); }

/* En-tête : se resserre au défilement (navigateurs récents). */
@keyframes lt-resserre { to { padding-block: 10px; } }
@keyframes lt-logo-petit { to { font-size: 26px; } }
@keyframes lt-slogan-out { to { opacity: 0; height: 0; margin-top: 0; } }
@keyframes lt-filet { to { box-shadow: 0 2px 0 var(--orange), 0 8px 20px rgba(10,18,34,.12); } }
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		header.wp-block-template-part .site-head { animation: lt-filet linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
		.site-head__in { animation: lt-resserre linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
		.site-head .lt-logo__nom { animation: lt-logo-petit linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
		.site-head .lt-logo__slogan { animation: lt-slogan-out linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
	}
}

/* ---------- Logo ---------- */

.lt-logo a { color: inherit; text-decoration: none; display: inline-block; }
.lt-logo__nom { display: block; font-size: var(--logo-taille, 32px); font-weight: 800; font-stretch: 75%; line-height: .95; letter-spacing: -.01em; white-space: nowrap; }
.lt-logo__pt { display: inline-block; width: .14em; height: .16em; margin-left: .06em; background: var(--orange); }
.lt-logo__slash { margin: 0 .035em; color: var(--orange); }
.has-orange-background-color .lt-logo__slash { color: var(--bleu); }
.lt-logo__slogan { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--acier); white-space: nowrap; overflow: hidden; }
.lt-logo__slogan > span { color: var(--wp--preset--color--orange-texte); font-weight: 700; }
.has-bleu-background-color .lt-logo__slogan { color: #D6D6D6; }
.has-bleu-background-color .lt-logo__slogan > span { color: var(--orange); }
.has-orange-background-color .lt-logo__pt { background: var(--bleu); }

/* ---------- Fil d'Ariane ---------- */

.lt-fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.lt-fil a { color: inherit; }
.lt-fil i { display: inline-block; width: 5px; height: 6px; background: var(--pt); }

/* ---------- Références ---------- */

/* Grille de références : 3 colonnes sur ordinateur, 2 sur tablette, 1 sur mobile ; dans une colonne, autant que la place le permet. */
.lt-reals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.wp-block-column .lt-reals { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-top: 24px; }
@media (max-width: 1099px) { .lt-reals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .lt-reals { grid-template-columns: 1fr; } }
.lt-reals.a-une { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lt-reals.a-une .est-une { grid-column: span 2; grid-row: span 2; }
/* La grande carte occupe toute la hauteur des deux petites : l'image s'étire, le texte reste en bas. */
.lt-reals.a-une .est-une a { height: 100%; }
.lt-reals.a-une .est-une .lt-reals__visuel { position: relative; flex: 1 1 auto; aspect-ratio: auto; min-height: 320px; }
.lt-reals.a-une .est-une .lt-reals__visuel img { position: absolute; inset: 0; }
.lt-reals__extrait { font-size: 17px; line-height: 1.5; opacity: .85; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1099px) {
	.lt-reals.a-une { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lt-reals.a-une .est-une { grid-column: 1 / -1; grid-row: auto; }
	.lt-reals.a-une .est-une .lt-reals__visuel { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 599px) { .lt-reals.a-une { grid-template-columns: 1fr; } }
.lt-reals__carte a { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.lt-reals__visuel { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #C9CDD0; }
.has-bleu-background-color .lt-reals__visuel { background: var(--wp--preset--color--ardoise); }
.lt-reals__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lt-reals__carte a:hover img { transform: scale(1.03); }
.lt-reals__vide { display: block; width: 100%; height: 100%; }
.lt-reals__meta { font-size: 14px; opacity: .75; }
.lt-reals__titre { font-size: 24px; font-weight: 750; font-stretch: 78%; line-height: 1.1; }
.est-une .lt-reals__titre { font-size: 32px; }
.lt-reals__carte a:hover .lt-reals__titre { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.lt-filtres { display: flex; flex-direction: column; gap: 14px; }
.lt-filtres__groupe { display: grid; grid-template-columns: 80px auto 1fr; align-items: start; gap: 8px; }
.lt-filtres__label { display: flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 700; }
.lt-filtres__choix { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 599px) {
	.lt-filtres__groupe { display: flex; flex-wrap: wrap; }
	.lt-filtres__label { flex-basis: 100%; min-height: 0; }
	.lt-filtres__choix { display: contents; }
}
.lt-filtres a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid currentColor; border-radius: 2px; color: inherit; font-size: 15px; font-weight: 600; text-decoration: none; }
.lt-filtres a[aria-current] { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.has-bleu-background-color .lt-filtres a[aria-current] { background: var(--orange); border-color: var(--orange); color: var(--bleu); }

.chips .wp-block-post-terms, .wp-block-post-terms.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-block-post-terms.chips a { display: inline-block; padding: 5px 12px; border: 1px solid var(--bleu); border-radius: 2px; color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.wp-block-post-terms.chips.taxonomy-prestation a { background: var(--orange); border-color: var(--orange); color: var(--bleu); }
.wp-block-post-terms.chips .wp-block-post-terms__separator { display: none; }

.lt-media { margin: 0; }
.lt-media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.lt-media--podcast iframe { aspect-ratio: auto; min-height: 180px; }
.lt-media__image { display: block; width: 100%; height: auto; }

/* Articles : signature sous le titre, encadré auteur en fin d'article. */
.signature-article > * { margin: 0; font-size: 15px; }
.signature-article .wp-block-post-author-name::before { content: "Par "; }
.signature-article > * + *::before { content: "·"; margin-right: 8px; }

/* Lecteurs chargés au clic (inc/lecteurs.php) : vignette tant que le visiteur n'a pas cliqué. */
.lecteur-differe { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bleu); color: #fff; }
.lecteur-differe--video { aspect-ratio: 16 / 9; }
.lecteur-differe--audio { justify-content: flex-start; min-height: 152px; padding: 24px 28px; }
.wp-has-aspect-ratio .lecteur-differe { position: absolute; inset: 0; aspect-ratio: auto; }
.lecteur-differe__fond, .lecteur-differe__fond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lecteur-differe__fond::after { content: ""; position: absolute; inset: 0; background: rgba(20, 35, 63, .6); }
.lecteur-differe--video .lecteur-differe__bouton { flex-direction: column; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.lecteur-differe__bouton { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.lecteur-differe__icone { display: grid; place-items: center; width: 72px; height: 72px; background: var(--orange); transition: transform .2s ease; }
.lecteur-differe__icone::before { content: ""; margin-left: 5px; border-left: 20px solid var(--bleu); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.lecteur-differe--audio .lecteur-differe__icone { width: 56px; height: 56px; }
.lecteur-differe__bouton:hover .lecteur-differe__icone, .lecteur-differe__bouton:focus-visible .lecteur-differe__icone { transform: scale(1.06); }
.lecteur-differe__bouton:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.lecteur-differe__note { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 12px; margin: 0; font-size: 13px; text-align: center; opacity: .85; }
.lecteur-differe--audio .lecteur-differe__note { left: 28px; text-align: left; }
.lecteur-differe.est-charge { display: block; padding: 0; background: none; }
.lecteur-differe.est-charge iframe { display: block; width: 100%; border: 0; }
.lecteur-differe--video.est-charge iframe { height: 100%; }

.lt-en-bref { border-top: 3px solid currentColor; padding-top: 20px; }
.lt-en-bref__titre { margin: 0 0 8px; font-size: 22px; font-stretch: 85%; }
.lt-en-bref dl { margin: 0; }
.lt-en-bref dl > div { padding: 14px 0; border-bottom: 1px solid #D5D8DA; }
.lt-en-bref dt { font-size: 14px; color: var(--acier); }
.lt-en-bref dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.lt-en-bref .wp-block-button { margin-top: 20px; }

.lt-vide { padding: 16px; border: 1px dashed currentColor; font-size: 14px; opacity: .8; }

/* ---------- Questions fréquentes ---------- */

.wp-block-details { padding: 0; }
.wp-block-details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 22px 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	flex: none;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--orange-texte);
	transition: transform .2s ease;
}
.wp-block-details summary { transition: color .25s ease; }
.wp-block-details summary::after { transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary):not(.faq-corps),
.wp-block-details > .faq-corps > * { margin: 0 0 22px; max-width: 38em; font-size: 17px; }
/* Réponse enveloppée par assets/js/faq.js pour l'animation d'ouverture et de fermeture. */
.wp-block-details > .faq-corps { display: flow-root; margin: 0 !important; }
.wp-block-details.faq-anim > .faq-corps { overflow: hidden; }
/* La question ouverte se repère d'un coup d'œil. */
.wp-block-details[open] > summary { color: var(--wp--preset--color--orange-texte); }
.has-bleu-background-color .wp-block-details[open] > summary { color: var(--wp--preset--color--orange); }
/* Pendant sa fermeture, la question reprend tout de suite son aspect normal. */
.wp-block-details[open].faq-fermeture > summary { color: inherit; }
.wp-block-details.faq-fermeture summary::after { transform: none; }
.liste-faq { border-top: 3px solid currentColor; }
.liste-faq > .wp-block-details { margin-block: 0 !important; }

/* ---------- Logos clients, liens en ligne ---------- */

.logos-clients { gap: 0 !important; }
.logos-clients > * { min-height: 76px; align-items: center; background: var(--blanc); text-align: center; outline: 1px solid #D5D8DA; outline-offset: -.5px; margin: 0 !important; }
.logos-clients img { max-height: 44px; width: auto; }
/* Galerie au style « Logos clients » : une grille de cases blanches, logos centrés en gris, couleur au survol. */
.wp-block-gallery.is-style-logos.has-nested-images { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 0 !important; }
.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image:not(#individual-image) {
	display: flex; align-items: center; justify-content: center; width: auto !important; min-height: 96px; margin: 0 !important; padding: 20px 24px;
	background: var(--blanc, #fff); outline: 1px solid #D5D8DA; outline-offset: -.5px; flex: none !important;
}
.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image img {
	width: auto !important; height: auto !important; max-width: 100% !important; max-height: 48px !important; object-fit: contain !important;
	filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease;
}
.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image:hover img { filter: none; opacity: 1; }
.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image figcaption { display: none; }
.liens > p { margin: 0; }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 781px) { .grille-2 { grid-template-columns: 1fr !important; } }

/* ---------- Méthode, chiffres ---------- */

.etape { border-top: 3px solid currentColor; padding-top: 18px; }
.etape > .wp-block-heading:first-child { font-size: 56px; font-stretch: 70%; }
.etape > h4.wp-block-heading { font-size: 22px; font-stretch: 85%; }

/* ---------- Citation ---------- */

.wp-block-quote.is-style-default, .wp-block-quote { padding-left: 0; }
.wp-block-quote p { margin: 0 0 20px; }
.wp-block-quote cite { display: block; font-size: 17px; font-weight: 400; font-style: normal; color: var(--acier); }
.wp-block-quote { border-top: 3px solid currentColor; padding-top: 28px; }
.has-bleu-background-color .wp-block-quote cite { color: #D6DAE0; }

/* Récit d'une réalisation, article de blog : intertitres à taille de lecture. */
.single .wp-block-post-content h2, .single-reference .wp-block-post-content h2 { font-size: clamp(26px, 2.6vw, 32px); font-stretch: 80%; margin-top: 1.6em; }
.single .wp-block-post-content h3, .single-reference .wp-block-post-content h3 { font-size: 24px; margin-top: 1.4em; }
.single-reference .wp-block-post-content .wp-block-quote p { font-size: clamp(22px, 2.4vw, 30px); }

/* Visuel manquant : un aplat à la place, pour garder la grille. */
.wp-block-post-featured-image.est-vide { aspect-ratio: 16 / 10; background: #C9CDD0; }
.has-bleu-background-color .wp-block-post-featured-image.est-vide { background: var(--wp--preset--color--ardoise); }
.wp-block-post-featured-image.est-vide a { display: block; width: 100%; height: 100%; }

/* ---------- Pied de page ---------- */

.site-foot a { color: #D6D6D6; text-decoration: none; }
.site-foot a:hover { color: var(--blanc); text-decoration: underline; }
.site-foot .wp-block-list > li::before { display: none; }
.site-foot .wp-block-list > li { padding-left: 0; }
/* Sous-entrées (liste imbriquée, touche Tab dans l'éditeur) : en retrait, petit carré orange. */
.site-foot .wp-block-list .wp-block-list { margin: 2px 0 2px; padding-left: 4px; }
.site-foot .wp-block-list .wp-block-list > li { padding-left: 16px; margin-top: 0; font-size: .92em; }
.site-foot .wp-block-list .wp-block-list > li::before { display: block; top: .82em; width: 5px; height: 5px; background: #FF6600; }
.site-foot .bas a { text-decoration: underline; }

/* ---------- Animations d'ouverture ---------- */

@keyframes lt-monte { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes lt-decoupe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes lt-pose { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
	.entree > * { animation: lt-monte .8s cubic-bezier(.2,.7,.1,1) both; }
	.entree > :nth-child(2) { animation-delay: .12s; }
	.entree > :nth-child(3) { animation-delay: .24s; }
	.entree > :nth-child(4) { animation-delay: .32s; }
	.entree h1 .pt { animation: lt-pose .45s cubic-bezier(.3,1.4,.5,1) .9s both; }
	.is-style-decoupe { animation: lt-decoupe 1s cubic-bezier(.7,0,.2,1) .25s both; }
}
@media (prefers-reduced-motion: reduce) {
	.is-style-ligne-metier, .wp-block-button__link::after, .site-head *::after { transition: none !important; }
}

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

.wpcf7-form { display: flex; flex-direction: column; gap: 28px; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label { display: flex; flex-direction: column; gap: 8px; font-size: 17px; font-weight: 700; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	padding: 12px 14px;
	font: inherit;
	font-size: 17px;
	font-weight: 400;
	color: var(--bleu);
	background: var(--blanc);
	border: 1.5px solid var(--bleu);
	border-radius: 2px;
}
.wpcf7-form select { max-width: 360px; }
.wpcf7-form :is(input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--orange-texte); outline-offset: 0; }
.wpcf7-form .champs-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.wpcf7-form fieldset { margin: 0; padding: 0; border: 0; }
.wpcf7-form legend { margin-bottom: 14px; font-size: 22px; font-weight: 750; font-stretch: 85%; }
:is(.wpcf7-checkbox, .wpcf7-radio) { display: flex; flex-wrap: wrap; gap: 10px; }
:is(.wpcf7-checkbox, .wpcf7-radio) .wpcf7-list-item { margin: 0; }
:is(.wpcf7-checkbox, .wpcf7-radio) .wpcf7-list-item label { flex-direction: row; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--bleu); border-radius: 2px; font-size: 16px; font-weight: 600; cursor: pointer; }
.wpcf7-radio .wpcf7-list-item label { border-radius: 22px; }
:is(.wpcf7-checkbox, .wpcf7-radio) input { position: absolute; opacity: 0; width: 1px; height: 1px; }
:is(.wpcf7-checkbox, .wpcf7-radio) .wpcf7-list-item label:has(input:checked) { background: var(--bleu); color: var(--blanc); }
:is(.wpcf7-checkbox, .wpcf7-radio) .wpcf7-list-item label:has(input:focus-visible) { outline: 3px solid var(--wp--preset--color--orange-texte); outline-offset: 2px; }
.wpcf7-form .wpcf7-submit {
	align-self: flex-start;
	min-height: 56px;
	padding: 0 32px;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	color: var(--blanc);
	background: var(--bleu);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}
.wpcf7-form .petit { font-size: 14px; font-weight: 400; color: var(--acier); }

/* ---------- Éditeur ---------- */

.editor-styles-wrapper .is-style-ligne-metier a::after,
.editor-styles-wrapper .is-style-carte a::after { display: none; }

/* ==========================================================================
   Pages : bandeau, sections, appel final.
   Toute la mise en page est ici. Le contenu des pages ne contient que des textes
   rangés dans des sections (groupes pleine largeur) dont le style se choisit dans
   l'éditeur : un changement de design ici s'applique à toutes les pages.
   ========================================================================== */

:root {
	--gouttiere: max(var(--wp--style--root--padding-left, 24px), calc(50% - 620px));
	--lecture: 700px;
	--filet: #B9C0C7;
}

/* ---------- Bandeau (modèle de page) ---------- */

.hero-page { background: var(--blanc); padding: 40px var(--gouttiere) var(--wp--preset--spacing--40); }
.hero-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-cols:has(.hero-image) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
.hero-cols > * { margin: 0 !important; }
.hero-image img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
@media (max-width: 899px) {
	.hero-cols:has(.hero-image) { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.hero-image { max-width: 560px; }
}
.lt-entete { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.lt-entete > * { margin: 0; }
.lt-entete h1.wp-block-heading { max-width: 18ch; font-size: var(--wp--preset--font-size--affiche); line-height: .95; }
.hero-cols:not(:has(.hero-image)) .lt-entete h1.wp-block-heading { max-width: 22ch; }
.lt-entete .is-style-chapeau { max-width: 36em; color: var(--wp--preset--color--ardoise); }
.lt-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.lt-entete .lt-boutons .wp-block-button:not(.is-style-lien) .wp-block-button__link { background: var(--bleu); color: var(--blanc); }

/* ---------- Appel final (bandeau orange, quadrillé) ---------- */

.lt-appel {
	padding: var(--wp--preset--spacing--60) var(--gouttiere);
	background-color: var(--orange);
	background-image: linear-gradient(rgba(0,0,0,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.075) 1px, transparent 1px);
	background-size: 32px 32px;
	color: var(--bleu);
	--pt: var(--blanc);
}
.lt-appel h2.wp-block-heading { margin: 0 0 32px; max-width: 26ch; font-size: var(--wp--preset--font-size--affiche); line-height: .95; text-wrap: pretty; }
.lt-appel .qm { color: var(--blanc) !important; }
.lt-appel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.lt-appel .lt-boutons { margin: 0; }
.lt-appel .wp-block-button__link { background: var(--bleu); color: var(--blanc); }
.lt-appel__tel { font-size: 18px; font-weight: 700; color: var(--bleu); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Sections : socle commun ---------- */

.lt-sections > * { margin-block: 0 !important; }
/* Texte posé hors section (page créée à la main) : colonne de lecture, alignée sur la grille. */
.lt-sections > :not(.alignfull):not(.alignwide) { max-width: var(--lecture); margin-inline: var(--gouttiere) auto !important; }
.lt-sections > :not(.alignfull):first-child { margin-top: var(--wp--preset--spacing--40) !important; }
.lt-sections > :not(.alignfull):last-child { margin-bottom: var(--wp--preset--spacing--60) !important; }

.lt-sections > .wp-block-group.alignfull { padding: var(--wp--preset--spacing--60) var(--gouttiere); }
.lt-sections > .wp-block-group.alignfull > * { margin-block: 0; }
.lt-sections > .wp-block-group.alignfull > * + * { margin-top: 20px; }
.lt-sections > .wp-block-group.alignfull > h2 + * { margin-top: 28px; }
.lt-sections > .wp-block-group.alignfull > h2 { max-width: 26ch; font-size: var(--wp--preset--font-size--titre); }

/* Section avec image de fond (réglage « Arrière-plan » du groupe dans l'éditeur) :
   un voile bleu par-dessus, texte en blanc. */
.lt-sections > .wp-block-group.alignfull[style*="background-image"] {
	position: relative;
	isolation: isolate;
	background-size: cover;
	background-position: center;
	color: var(--blanc);
	--pt: var(--orange);
}
.lt-sections > .wp-block-group.alignfull[style*="background-image"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(20, 35, 63, .92) 0%, rgba(20, 35, 63, .78) 55%, rgba(20, 35, 63, .6) 100%);
}
.lt-sections > .wp-block-group.alignfull[style*="background-image"] a:where(:not(.wp-element-button)) { color: inherit; }
.lt-sections > .wp-block-group.alignfull[style*="background-image"] > h2 + p:not(.liens-suite) { color: #E2E6EC !important; }
.lt-sections > .wp-block-group.alignfull[style*="background-image"] :is(.liens-suite a, h3)::before { --orange: #FF6600; }
.lt-sections > .wp-block-group.alignfull[style*="background-image"] .is-style-barres { color: var(--orange); }

/* Section « texte » (sans style) : une colonne de lecture confortable. */
.lt-sections > .wp-block-group.alignfull:not([class*="is-style-"]) > :not(h2):not(.alignwide):not(.wp-block-lt-references-liees),
.is-style-encart > :not(h2) { max-width: var(--lecture); }
.lt-sections > .wp-block-group.alignfull > h2 + p:not(.liens-suite) { font-size: var(--wp--preset--font-size--moyen); line-height: 1.55; color: var(--wp--preset--color--ardoise); }
.lt-sections > .wp-block-group.alignfull.has-bleu-background-color > h2 + p:not(.liens-suite) { color: #D6DAE0; }
.lt-sections .wp-block-group.alignfull p { text-wrap: pretty; }
.lt-sections > .wp-block-group.alignfull > .wp-block-lt-references-liees { margin-top: 40px; }

/* Grand titre à gauche, texte à droite. */
@media (min-width: 900px) {
	.is-style-accroche,
	.is-style-questions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
	.is-style-accroche > *,
	.is-style-questions > * { grid-column: 2; margin-top: 0 !important; }
	.is-style-accroche > * + *,
	.is-style-questions > * + * { margin-top: 20px !important; }
	.is-style-accroche > h2,
	.is-style-questions > h2 { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 120px; margin: 0 !important; }
	.is-style-accroche > h2 + * { margin-top: 0 !important; }
	.is-style-questions > h2 + * { margin-top: 0 !important; }
}
.lt-sections > .is-style-accroche > h2 { font-size: var(--wp--preset--font-size--affiche); max-width: 12ch; line-height: .95; }
.is-style-accroche > h2 + p { font-size: var(--wp--preset--font-size--moyen); }
.lt-sections > .is-style-questions > h2 { font-size: var(--wp--preset--font-size--titre); }

/* Grilles : étapes, cartes, pictos, deux colonnes. Les sous-groupes sont les cases. */
.is-style-etapes,
.is-style-cartes,
.is-style-encadres,
.is-style-pictos,
.is-style-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 40px; align-items: start; }
:is(.is-style-cartes, .is-style-encadres) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.is-style-encadres { gap: 32px; }
.is-style-pictos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0 32px; }
.is-style-duo { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 72px; }
:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos, .is-style-duo) > :not(.wp-block-group) { grid-column: 1 / -1; max-width: var(--lecture); }
:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos, .is-style-duo) > :is(h2, .alignwide, .liens-suite) { max-width: none; }
:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos, .is-style-duo) > .wp-block-group { margin-top: 36px !important; }
:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos, .is-style-duo) > .wp-block-group + :not(.wp-block-group) { margin-top: 40px !important; }
:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos, .is-style-duo, .is-style-lignes, .is-style-chronologie) > .wp-block-group > * { margin-block: 0; }
:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos, .is-style-duo, .is-style-lignes, .is-style-chronologie) > .wp-block-group > * + * { margin-top: 12px; }
:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos, .is-style-lignes, .is-style-chronologie) h3.wp-block-heading { font-size: 24px; font-stretch: 78%; line-height: 1.1; }
:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos) .wp-block-group p { font-size: 17px; line-height: 1.55; }

/* Sur ordinateur, les cases remplissent la ligne : 2, 3 ou 4 colonnes selon leur nombre. */
@media (min-width: 1000px) {
	:is(.is-style-etapes, .is-style-cartes, .is-style-encadres) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	:is(.is-style-etapes, .is-style-cartes, .is-style-encadres):has(> div.wp-block-group:nth-of-type(4):last-of-type) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	:is(.is-style-etapes, .is-style-cartes, .is-style-encadres):has(> div.wp-block-group:nth-of-type(2):last-of-type) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Quatre cartes ou encadrés : un carré 2 × 2. */
	:is(.is-style-cartes, .is-style-encadres):has(> div.wp-block-group:nth-of-type(4):last-of-type) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.is-style-pictos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.is-style-pictos:has(> div.wp-block-group:nth-of-type(4):last-of-type) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.is-style-pictos:has(> div.wp-block-group:nth-of-type(3):last-of-type) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
	.is-style-pictos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
	.is-style-pictos h3.wp-block-heading { font-size: 20px; }
}
@media (min-width: 640px) and (max-width: 999px) {
	:is(.is-style-etapes, .is-style-cartes, .is-style-encadres, .is-style-pictos) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Étapes numérotées : 1. 2. 3. avec le point carré. */
.is-style-etapes { counter-reset: etape; }
.is-style-etapes > .wp-block-group { counter-increment: etape; border-top: 3px solid currentColor; padding-top: 18px; }
.is-style-etapes > .wp-block-group::before {
	content: counter(etape);
	display: inline-block;
	margin-bottom: 14px;
	padding-right: .2em;
	font-size: 72px;
	font-weight: 800;
	font-stretch: 70%;
	line-height: .9;
	background: linear-gradient(var(--orange), var(--orange)) no-repeat right 0 bottom .06em / .13em .15em;
}

/* Cartes : aplat, filet orange en tête. */
.is-style-cartes > .wp-block-group { padding: 28px 28px 32px; background: var(--calque); border-top: 4px solid var(--orange); height: 100%; box-sizing: border-box; }
.is-style-cartes.has-calque-background-color > .wp-block-group { background: var(--blanc); }
.is-style-cartes.has-bleu-background-color > .wp-block-group { background: var(--wp--preset--color--ardoise); }

/* Un léger arrondi sur les cartes, encadrés et vignettes : le reste du site garde ses angles droits. */
:root { --arrondi: 6px; }
.is-style-encadres > .wp-block-group,
.is-style-cartes > .wp-block-group,
.lt-reals__visuel,
.wp-block-latest-posts.liste-articles > li { border-radius: var(--arrondi); }
.is-style-cartes > .wp-block-group { overflow: hidden; }

/* Encadrés : un filet fin tout autour et une ombre floue, qui donne du relief et un peu de rondeur.
   Filet bleu léger et ombre bleutée sur fond clair ; filet blanc et ombre profonde sur fond bleu ou photo. */
.is-style-encadres > .wp-block-group {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	padding: 32px 30px 34px;
	background: var(--blanc);
	border: 1px solid rgba(20, 35, 63, .22);
	box-shadow: 0 2px 6px rgba(20, 35, 63, .06), 0 14px 34px rgba(20, 35, 63, .13);
	transition: transform .3s ease, box-shadow .3s ease;
}
.is-style-encadres > .wp-block-group:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(20, 35, 63, .08), 0 22px 46px rgba(20, 35, 63, .18); }
.is-style-encadres.has-calque-background-color > .wp-block-group { border-color: rgba(20, 35, 63, .14); }
.is-style-encadres:is(.has-bleu-background-color, [style*="background-image"]) > .wp-block-group {
	background: #1C2C4C;
	border-color: rgba(255, 255, 255, .4);
	box-shadow: 0 2px 8px rgba(255, 255, 255, .06), 0 14px 38px rgba(255, 255, 255, .16);
}
.is-style-encadres[style*="background-image"] > .wp-block-group { background: rgba(28, 44, 76, .82); backdrop-filter: blur(3px); }
.is-style-encadres:is(.has-bleu-background-color, [style*="background-image"]) > .wp-block-group:hover { box-shadow: 0 4px 12px rgba(255, 255, 255, .08), 0 22px 50px rgba(255, 255, 255, .22); }
.is-style-encadres > .wp-block-group > h3::before { content: ""; display: block; width: 12px; height: 13px; margin-bottom: 18px; background: var(--orange); }
.is-style-encadres > .wp-block-group > .lt-picto + h3::before { display: none; }
.is-style-encadres .lt-picto { color: var(--orange); margin-bottom: 18px !important; line-height: 0; }
.is-style-encadres h3 a { color: inherit; text-decoration: none; }
/* Toute la vignette est cliquable dès qu'elle contient un lien, sur le titre ou dans le texte. */
.is-style-encadres > .wp-block-group a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.is-style-encadres > .wp-block-group:has(a) { cursor: pointer; }
.is-style-encadres > .wp-block-group:has(a):hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.is-style-encadres > .wp-block-group:has(a) > h3::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 12px; border-top: 2.5px solid var(--orange); border-right: 2.5px solid var(--orange); transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
.is-style-encadres > .wp-block-group:has(a):hover > h3::after { transform: translate(4px, -2px) rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .is-style-encadres > .wp-block-group { transition: none; } }

/* Encadrés et cartes avec une image de fond (Styles > Arrière-plan de la vignette) :
   un voile par-dessus l'image, sous le texte. Blanc sur fond clair (texte bleu), bleu sur fond bleu ou photo (texte blanc).
   Les vignettes sans image ne changent pas. */
:is(.is-style-encadres, .is-style-cartes) > .wp-block-group[style*="background-image"] { isolation: isolate; background-size: cover; background-position: center; }
:is(.is-style-encadres, .is-style-cartes) > .wp-block-group[style*="background-image"]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, .86); }
:is(.is-style-encadres, .is-style-cartes):is(.has-bleu-background-color, [style*="background-image"]) > .wp-block-group[style*="background-image"]::before { background: rgba(20, 35, 63, .84); }

/* Pictos : le dessin, le titre (lien vers la page), une ligne. */
.is-style-pictos > .wp-block-group { position: relative; padding: 24px 0 8px; border-top: 2px solid currentColor; }
.is-style-pictos .lt-picto { color: var(--orange); margin-bottom: 20px !important; line-height: 0; }
.is-style-pictos h3 a { color: inherit; text-decoration: none; }
.is-style-pictos h3 a::after { content: ""; position: absolute; inset: 0; }
.is-style-pictos h3 a::before { content: ""; float: right; width: 10px; height: 10px; margin: .35em 0 0 12px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); transition: transform .25s ease; }
.is-style-pictos > .wp-block-group:has(a):hover h3 a::before { transform: translateX(5px) rotate(45deg); }
.is-style-pictos > .wp-block-group:has(a):hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Lignes cliquables : grand intitulé à gauche, une phrase à droite, l'orange monte au survol. */
.is-style-lignes > .wp-block-group {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 8px 72px;
	align-items: baseline;
	margin: 0 calc(-1 * 16px) !important;
	padding: 26px 16px;
	border-bottom: 1px solid currentColor;
	background: linear-gradient(var(--orange), var(--orange)) no-repeat left center / 0% 100%;
	transition: background-size .35s ease;
}
.is-style-lignes > h2 + .wp-block-group,
.is-style-lignes > p + .wp-block-group { margin-top: 32px !important; border-top: 3px solid currentColor; }
.is-style-lignes > .wp-block-group > * { margin: 0 !important; }
.is-style-lignes h3.wp-block-heading { font-size: clamp(26px, 2.6vw, 36px); }
.is-style-lignes h3 a { color: inherit; text-decoration: none; }
.is-style-lignes h3 a::after { content: ""; position: absolute; inset: 0; }
.is-style-lignes > .wp-block-group:has(a):hover,
.is-style-lignes > .wp-block-group:has(a):focus-within { background-size: 100% 100%; }
.is-style-lignes > .wp-block-group:not(:has(> p)) { grid-template-columns: 1fr auto; align-items: center; }
.is-style-lignes > .wp-block-group:has(a)::after { content: ""; width: 14px; height: 14px; margin-right: 8px; border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); transform: rotate(45deg); transition: transform .25s ease, border-color .25s ease; }
.is-style-lignes > .wp-block-group:has(a):hover::after { transform: translateX(6px) rotate(45deg); border-color: var(--bleu); }
@media (max-width: 781px) { .is-style-lignes > .wp-block-group:has(> p) { grid-template-columns: 1fr; } }

/* Chronologie : les dates à gauche, une ligne de temps. */
.is-style-chronologie > .wp-block-group {
	display: grid;
	grid-template-columns: minmax(120px, 2fr) minmax(0, 7fr);
	column-gap: 48px;
	max-width: 1000px;
	padding: 26px 0;
	border-top: 1px solid var(--filet);
}
.is-style-chronologie > h2 + .wp-block-group, .is-style-chronologie > p + .wp-block-group { margin-top: 36px !important; border-top: 3px solid currentColor; }
.is-style-chronologie > .wp-block-group + .wp-block-group { margin-top: 0 !important; }
.is-style-chronologie > .wp-block-group > * { grid-column: 2; margin: 0 !important; }
.is-style-chronologie > .wp-block-group > * + * { margin-top: 8px !important; }
.is-style-chronologie .annee { grid-column: 1; grid-row: 1 / span 4; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; font-stretch: 72%; line-height: 1.05; color: var(--wp--preset--color--orange-texte); }
.is-style-chronologie .annee::before { content: ""; display: block; width: 12px; height: 12px; margin-bottom: 12px; background: var(--orange); }
.is-style-chronologie h3.wp-block-heading { font-size: 22px; }
.is-style-chronologie .wp-block-group p:not(.annee) { color: var(--wp--preset--color--ardoise); }
@media (max-width: 599px) {
	.is-style-chronologie > .wp-block-group { grid-template-columns: 1fr; }
	.is-style-chronologie > .wp-block-group > *, .is-style-chronologie .annee { grid-column: 1; grid-row: auto; }
}

/* Deux colonnes : deux idées côte à côte, grands intertitres. */
.is-style-duo > .wp-block-group { padding-top: 24px; border-top: 3px solid currentColor; }
.is-style-duo h3.wp-block-heading { font-size: var(--wp--preset--font-size--grand); font-stretch: 72%; margin-bottom: 18px !important; }
.is-style-duo .wp-block-group p { font-size: 18px; line-height: 1.6; }
.has-bleu-background-color.is-style-duo .wp-block-group p { color: #E2E6EC; }
.is-style-duo h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.is-style-duo h3 a:hover { text-decoration-color: currentColor; }

/* Encadré : une remarque à part, cadre épais. */
.lt-sections > .is-style-encart { padding-block: var(--wp--preset--spacing--50); }
.is-style-encart > * { position: relative; }
.lt-sections > .is-style-encart > h2 { font-size: var(--wp--preset--font-size--grand); }
@media (min-width: 900px) {
	.lt-sections > .is-style-encart { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
	.is-style-encart > * { grid-column: 2; }
	.is-style-encart > h2 { grid-column: 1; grid-row: 1 / span 10; padding-top: 18px; border-top: 4px solid var(--orange); }
	.is-style-encart > h2 + * { margin-top: 0 !important; }
}

/* Questions fréquentes. */
.is-style-questions .liste-faq { max-width: none; }

/* Listes en cases (médias, formations) et étiquettes de villes. */
/* Cases : une grille de petites cases (médias de l'accueil, « Les sujets » des spécialités).
   Chaque case est un groupe : dans l'éditeur, Styles > Arrière-plan pour y mettre une image,
   qui s'affiche en filigrane sous un voile blanc, le texte par-dessus.
   (Les anciennes listes au style « Cases » gardent le même aspect.) */
:is(.wp-block-group.is-style-cases, ul.wp-block-list.is-style-cases, ul.wp-block-list.is-style-cases-logos) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0; max-width: none !important; padding: 0; list-style: none; }
:is(.wp-block-group.is-style-cases > .wp-block-group, ul.wp-block-list.is-style-cases > li, ul.wp-block-list.is-style-cases-logos > li) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 92px;
	margin: 0 !important;
	padding: 16px 20px !important;
	background-color: var(--calque);
	background-size: cover;
	background-position: center;
	outline: 1px solid var(--blanc);
	outline-offset: -.5px;
	font-size: 16px;
	line-height: 1.35;
}
.has-calque-background-color :is(.wp-block-group.is-style-cases > .wp-block-group, ul.wp-block-list.is-style-cases > li) { background-color: var(--blanc); outline-color: #D5D8DA; }
:is(ul.wp-block-list.is-style-cases, ul.wp-block-list.is-style-cases-logos) > li::before { display: none !important; }
.wp-block-group.is-style-cases > .wp-block-group > * { margin: 0; }
:is(.wp-block-group.is-style-cases > .wp-block-group, ul.wp-block-list.is-style-cases > li) strong { font-size: 18px; }
h3 + :is(.wp-block-group.is-style-cases, ul.wp-block-list.is-style-cases) { margin-top: 14px !important; }
/* Image en filigrane : un voile blanc par-dessus, le texte reste bleu et lisible. */
.wp-block-group.is-style-cases > .wp-block-group[style*="background-image"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .84);
}
.has-calque-background-color .wp-block-group.is-style-cases > .wp-block-group[style*="background-image"]::before { background: rgba(255, 255, 255, .8); }

/* Hors colonne étroite (« Les sujets ») : des cases plus larges, intitulé en gras, précision dessous. */
.lt-sections > .wp-block-group.alignfull:not(.is-style-accroche) > :is(.wp-block-group.is-style-cases, ul.wp-block-list.is-style-cases, ul.wp-block-list.is-style-cases-logos) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.lt-sections > .wp-block-group.alignfull:not(.is-style-accroche) > :is(.wp-block-group.is-style-cases, ul.wp-block-list.is-style-cases, ul.wp-block-list.is-style-cases-logos) > * { justify-content: flex-start; min-height: 96px; padding: 20px 22px !important; font-size: 16px; }
.lt-sections > .wp-block-group.alignfull:not(.is-style-accroche) :is(.wp-block-group.is-style-cases > .wp-block-group, ul.wp-block-list.is-style-cases > li, ul.wp-block-list.is-style-cases-logos > li) strong { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 800; font-stretch: 80%; }
.lt-sections > .wp-block-group.alignfull:not(.is-style-accroche) :is(.wp-block-group.is-style-cases > .wp-block-group, ul.wp-block-list.is-style-cases > li, ul.wp-block-list.is-style-cases-logos > li) strong + br { display: none; }
/* Une image glissée dans le texte d'une case (ancienne méthode) : petite, au-dessus du texte. */
:is(.wp-block-group.is-style-cases > .wp-block-group, ul.wp-block-list.is-style-cases > li, ul.wp-block-list.is-style-cases-logos > li) img { display: block; width: auto !important; max-width: 75%; height: auto !important; max-height: 48px; margin-bottom: 12px; object-fit: contain; object-position: left center; }
ul.is-style-villes { display: flex; flex-wrap: wrap; gap: 12px; max-width: none !important; padding: 0; list-style: none; }
ul.wp-block-list.is-style-villes > li { margin: 0 !important; padding: 0 !important; }
ul.is-style-villes > li::before { display: none !important; }
ul.is-style-villes a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; border: 2px solid currentColor; font-weight: 700; color: inherit; text-decoration: none; transition: background .2s ease, color .2s ease; }
ul.is-style-villes a::before { content: ""; width: 10px; height: 10px; background: var(--orange); }
ul.is-style-villes a:hover { background: var(--bleu); color: var(--blanc); }
.has-bleu-background-color ul.is-style-villes a:hover { background: var(--blanc); color: var(--bleu); }

/* Derniers articles (accueil) : deux cartes. */
.lt-sections .wp-block-latest-posts.liste-articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; max-width: none !important; padding: 0; }
.lt-sections .wp-block-latest-posts.liste-articles > li { margin: 0; padding: 28px; background: var(--calque); border-top: 4px solid var(--orange); }
.lt-sections .wp-block-latest-posts.liste-articles > li::before { display: none !important; }
.lt-sections > .has-calque-background-color .wp-block-latest-posts.liste-articles > li { background: var(--blanc); }
.wp-block-latest-posts.liste-articles .wp-block-latest-posts__post-title { display: block; font-size: 24px; font-weight: 800; font-stretch: 78%; line-height: 1.1; color: var(--bleu); text-decoration: none; }
.wp-block-latest-posts.liste-articles .wp-block-latest-posts__post-title:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.wp-block-latest-posts.liste-articles .wp-block-latest-posts__post-date { margin-top: 12px; font-size: 14px; color: var(--acier); }

/* Pictogrammes : ils se dessinent une fois, à leur apparition (assets/js/pictos.js). Sans JavaScript, ils sont simplement là. */
.lt-picto svg { display: block; }
@keyframes lt-dessin { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
	.js-pictos .lt-picto:not(.est-vu) .lt-dessin * { stroke-dasharray: 1; stroke-dashoffset: 1; }
	.js-pictos .lt-picto.est-vu .lt-dessin * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lt-dessin 1.3s cubic-bezier(.45, 0, .2, 1) forwards; }
	.js-pictos .lt-picto.est-vu .lt-dessin * + * { animation-delay: .15s; }
}
.editor-styles-wrapper .lt-dessin * { animation: none !important; stroke-dasharray: none !important; }

/* Page Contact : formulaire à gauche, coordonnées à droite. */
@media (min-width: 900px) {
	.lt-sections > .contact-corps { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 96px; align-items: start; }
	.lt-sections > .contact-corps > * { margin: 0 !important; max-width: none !important; }
}
.contact-aside > .wp-block-group { padding: 22px 0 26px; border-top: 3px solid currentColor; }
.contact-aside > .wp-block-group > * { margin: 0; }
.contact-aside > .wp-block-group > * + * { margin-top: 12px; }
.contact-aside h3.wp-block-heading { font-size: 22px; }
.contact-aside p { font-size: 16px; }
.contact-aside ul.is-style-villes a { min-height: 40px; padding: 0 14px 0 12px; font-size: 15px; border-width: 1.5px; }

/* Lieux d'une ville. */
.lieux .wp-block-column { background: var(--blanc); padding: 28px; border-top: 4px solid var(--orange); }
.lieux h3.wp-block-heading { font-size: 24px; font-stretch: 75%; }

.liens-suite { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.liens-suite a { font-weight: 600; text-decoration: none; color: inherit; }
.liens-suite a::before { content: "> "; color: var(--wp--preset--color--orange-texte); }
.has-bleu-background-color .liens-suite a::before { color: var(--orange); }
.villes-pied a { color: var(--blanc) !important; }

/* Article : en-tête en deux colonnes, comme les pages (titre à gauche, image à droite) */
.entete-article { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.entete-article > * { margin: 0 !important; }
.entete-article .wp-block-post-title { margin-block: 4px !important; }
.single .hero-page { padding-bottom: 40px; }
.entete-article .wp-block-post-title { font-size: var(--wp--preset--font-size--titre); line-height: 1; max-width: 22ch; }
.hero-cols:has(.hero-image) .entete-article .wp-block-post-title { max-width: none; }
@media (min-width: 900px) { .single .hero-cols:has(.hero-image) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.single .hero-image img { aspect-ratio: 4 / 3; max-height: 460px; }

/* Sous l'en-tête : une première section sur fond blanc ne double pas le blanc de l'en-tête */
.lt-sections > .wp-block-group.alignfull:first-child:not(.has-background):not([style*="background-image"]) { padding-top: var(--wp--preset--spacing--40); }
