/*
Theme Name: EAsymage
Theme URI: https://easymage.fr
Author: EAsymage
Description: Thème de blocs maison EAsymage, base neutre aux couleurs du logo EAsymage (orange #FFAA00, anthracite #303030, gris #707070). Fonctionne avec les blocs natifs de WordPress et les extensions EAsymage (blocs-easymage, easymage-forms, popup-easymage, easymage-intro). Aucune dépendance à un thème ou une bibliothèque de blocs tierce. Animations modernes en CSS natif (apparition au défilement, transitions entre pages), désactivées si le visiteur demande moins d'animations. Base : thème easymage de CFL 1.2.4.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 2.3.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easymage
*/

/* ---------------------------------------------------------------
   Réglages globaux non exprimables dans theme.json
   --------------------------------------------------------------- */

:root {
	--eaz-topbar-h: 38px;
}

html {
	scroll-behavior: smooth;
}

/* Ancres (#modeles, #solutions…) : le titre visé ne doit pas passer sous l'en-tête collant. */
[id] {
	scroll-margin-top: 120px;
}

/* Les conteneurs EAsymage « pleine largeur » font 100vw, barre de défilement comprise : sans ceci,
   la page défile de quelques pixels à l'horizontale. « clip » (et non « hidden ») ne casse pas l'en-tête collant. */
body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

/* Les navigateurs n'appliquent pas la police de la page aux éléments de formulaire :
   on la fait hériter (formulaires EAsymage Forms, recherche...). :where() = spécificité nulle,
   un réglage de police d'un formulaire ou d'un bloc garde la priorité. */
:where(button, input, select, textarea) {
	font-family: inherit;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

a,
.wp-element-button,
.wp-block-button__link {
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


/* Liens dans les titres (listes de services, cartes…) : non soulignés. */
:where(h1, h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)) {
	text-decoration: none;
}

:where(h1, h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)):hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-underline-offset: 5px;
}

/* ---------------------------------------------------------------
   En-tête : bandeau anthracite (accroche, contact) + barre blanche (logo, menu, bouton)
   --------------------------------------------------------------- */

/* Tout l'en-tête est collant, mais décalé de la hauteur du bandeau : au défilement, le bandeau
   anthracite disparaît et seule la barre blanche (logo + menu) reste en haut de l'écran. */
.wp-site-blocks > header.wp-block-template-part:has(.eaz-header) {
	position: sticky;
	top: calc(-1 * var(--eaz-topbar-h));
	z-index: 100;
}

body.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.eaz-header) {
	top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--eaz-topbar-h));
}

/* Écran étroit : la barre d'admin WordPress n'est plus collante, l'en-tête remonte en haut. */
@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.eaz-header) {
		top: calc(-1 * var(--eaz-topbar-h));
	}
}

.eaz-header__barre {
	box-shadow: 0 4px 18px rgba(28, 28, 28, 0.10);
}

/* Bandeau anthracite */
.eaz-topbar {
	font-size: 0.85rem;
	font-weight: 500;
}

.eaz-topbar__row {
	min-height: var(--eaz-topbar-h);
	height: var(--eaz-topbar-h);
	gap: 1.5rem;
}

.eaz-topbar__actions {
	gap: 1.5rem;
}

.eaz-topbar p {
	margin: 0;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.eaz-topbar a {
	text-decoration: none;
}

.eaz-topbar a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Pictogrammes (repère, téléphone) dessinés en CSS : pas de balisage à maintenir dans la partie. */
.eaz-topbar__adresse::before,
.eaz-topbar__tel::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--eaz-picto) center / contain no-repeat;
	mask: var(--eaz-picto) center / contain no-repeat;
	opacity: 0.85;
}

.eaz-topbar__adresse::before {
	--eaz-picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.eaz-topbar__tel::before {
	--eaz-picto: 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.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

.eaz-topbar__tel {
	font-weight: 700;
}

/* Téléphone : l'adresse est masquée, le téléphone reste (centré). */
@media (max-width: 781px) {
	.eaz-topbar__adresse {
		display: none !important;
	}

	.eaz-topbar__row {
		justify-content: center !important;
	}
}

/* Barre blanche : logo à gauche ; à droite le menu puis le bouton d’appel (devis / contact).
   Le bouton est dans la barre blanche (collante) : il reste visible au défilement. */
.eaz-header__row {
	gap: 1.5rem;
	justify-content: flex-start !important;
}

.eaz-header__row .wp-block-site-logo {
	margin-right: auto;
}

.eaz-header__cta {
	flex: none;
	margin: 0;
}

.eaz-header__cta .wp-block-button__link {
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	border-radius: 999px;
}

/* Menu en « hamburger » : le bouton passe à gauche de l'icône du menu, l'icône tout à droite. */
@media (max-width: 1279px) {
	.eaz-header__row .wp-block-navigation {
		order: 3;
	}
}

.eaz-header.eaz-nav-compact .eaz-header__row .wp-block-navigation {
	order: 3;
}

@media (max-width: 781px) {
	.eaz-header__row {
		gap: 0.9rem;
	}

	.eaz-header__cta .wp-block-button__link {
		padding: 0.45rem 0.8rem !important;
		font-size: 0.85rem;
	}
}

.eaz-header .wp-block-site-logo {
	flex: none;
}

.eaz-header .wp-block-navigation a {
	text-decoration: none;
}

.eaz-header .wp-block-navigation-item__label {
	white-space: nowrap;
}

/* Si le menu contient un bloc Logo (héritage de l’ancien thème) :
   L'en-tête a déjà son logo : celui du menu est masqué (sans modifier le menu en base). */
.eaz-header .wp-block-navigation-item:has(> .wp-block-site-logo) {
	display: none !important;
}

/* Survol et page courante : soulignés en orange. */
.eaz-header .wp-block-navigation a:hover,
.eaz-header .wp-block-navigation .current-menu-item > a,
.eaz-header .wp-block-navigation .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

/* Sous-menus : carte blanche avec liseré orange. */
.eaz-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--primary) !important;
	border: 0 !important;
	border-top: 3px solid var(--wp--preset--color--accent) !important;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 32px rgba(28, 28, 28, 0.16);
	padding: 0.5rem 0;
	min-width: 260px;
}

.eaz-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	padding: 0.5rem 1.1rem;
}

@media (max-width: 781px) {
	.eaz-header .wp-block-site-logo img {
		width: 96px !important;
		height: auto;
	}
}

/* Menu « hamburger » : WordPress ne bascule qu'en dessous de 600 px. Le menu de ce site est long
   (8 entrées, libellés longs) : il passe en hamburger dès qu'il ne tient plus sur une ligne.
   - assets/js/menu.js ajoute la classe .eaz-nav-compact quand le menu déborde (s'adapte
     tout seul si on ajoute / renomme des entrées) ;
   - en dessous de 1280 px, hamburger d'office (évite un flash avant le chargement du script). */
@media (min-width: 600px) and (max-width: 1279px) {
	.eaz-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.eaz-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

@media (min-width: 600px) {
	.eaz-header.eaz-nav-compact .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.eaz-header.eaz-nav-compact .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

.eaz-header .wp-block-navigation__responsive-container-open svg {
	width: 30px;
	height: 30px;
}

/* Menu ouvert (plein écran) : entrées plus grandes, alignées à gauche, sous-menus indentés. */
.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--medium);
}

.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border-top: 0 !important;
	box-shadow: none;
	min-width: 0;
	padding: 0.4rem 0 0 1rem;
	font-size: var(--wp--preset--font-size--normal);
}

.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	padding: var(--wp--preset--spacing--60) clamp(1.5rem, 6vw, 3rem);
}

.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important;
	text-align: left;
}

.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.9rem;
}

/* Menu ouvert : entrées principales en grand, sous-entrées un cran en dessous ; les libellés longs
   passent à la ligne au lieu de déborder. */
.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: 1.15rem !important;
	font-weight: 700;
}

.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	font-size: 1rem !important;
	font-weight: 500;
}

.eaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
	white-space: normal;
}

/* ---------------------------------------------------------------
   Pied de page (noir doux)
   --------------------------------------------------------------- */

.eaz-footer a {
	text-decoration: none;
}

.eaz-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.eaz-footer h3 {
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.eaz-footer h3::after {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	margin-top: 0.6rem;
	background: var(--wp--preset--color--accent);
	border-radius: 2px;
}

/* Logo (bandeau anthracite) sur une pastille blanche : il se confondrait avec le fond sombre. */
.eaz-footer__logo img {
	background: var(--wp--preset--color--base);
	padding: 10px 14px;
	border-radius: 10px;
	box-sizing: content-box;
}

.eaz-footer__liens {
	list-style: none;
	padding-left: 0;
	line-height: 2;
}

.eaz-footer .wp-block-social-links .wp-social-link {
	background-color: rgba(255, 255, 255, 0.12);
}

.eaz-footer .wp-block-social-links .wp-social-link:hover {
	background-color: var(--wp--preset--color--accent);
}

/* ---------------------------------------------------------------
   Blocs natifs
   --------------------------------------------------------------- */

/* Accordéon (bloc Détails) */
.wp-block-details {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: 0.9rem 1.2rem;
	background: var(--wp--preset--color--base);
}

.wp-block-details + .wp-block-details {
	margin-top: 0.75rem;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.wp-block-details[open] summary {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--primary);
}

/* Tableaux de caractéristiques */
.wp-block-table table,
.entry-content table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td,
.entry-content table th,
.entry-content table td {
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.6rem 0.9rem;
	text-align: left;
	overflow-wrap: anywhere;
}

/* Sur téléphone : cellules plus compactes pour que le tableau tienne dans la largeur. */
@media (max-width: 600px) {
	.wp-block-table th,
	.wp-block-table td,
	.entry-content table th,
	.entry-content table td {
		padding: 0.5rem 0.55rem;
		font-size: var(--wp--preset--font-size--small);
	}
}

.wp-block-table th,
.entry-content table th {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* Bouton style « contour » */
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--secondary);
}

/* Bannières (cover) : sur mobile, le texte passe sur toute la largeur de l'image,
   un dégradé horizontal ne suffit plus à le rendre lisible → voile uniforme. */
@media (max-width: 781px) {
	.wp-block-cover .wp-block-cover__background.has-background-gradient {
		background: color-mix(in srgb, var(--wp--preset--color--secondary) 75%, transparent) !important;
		opacity: 1 !important;
	}
}

/* Cartes (groupe avec style « carte ») */
.is-style-eaz-carte {
	background: var(--wp--preset--color--base);
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(28, 28, 28, 0.1);
	overflow: hidden;
}

/* Page qui se termine par une section pleine largeur (ex. bandeau d’appel) : pas de bande
   entre cette section et le pied de page. */
.wp-block-post-content:has(> .alignfull:last-child) {
	padding-bottom: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Carte EAsymage suivie d'une légende dans le même groupe : la carte (height:100%) ne doit pas
   occuper toute la cellule, sinon la légende déborde sur la ligne suivante de la grille. */
.wp-block-group > .easymage-card:not(:only-child) {
	height: auto;
}

/* Titre précédé d'un petit trait orange (cartes d'avantages). Classe à ajouter au titre : eaz-titre-accent. */
.eaz-titre-accent::before {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-bottom: 0.7rem;
	background: var(--wp--preset--color--accent);
	border-radius: 2px;
}

/* Encadré de performances (fiches produits). Classe de paragraphe : eaz-perf. */
.eaz-perf {
	background: var(--wp--preset--color--surface);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: 4px;
	padding: 0.6rem 0.9rem;
}

/* Colonnes « texte | image » : sur téléphone, l'image repasse au-dessus du texte.
   Classe à ajouter au bloc Colonnes : eaz-inverse-mobile. */
@media (max-width: 781px) {
	.wp-block-columns.eaz-inverse-mobile {
		flex-direction: column-reverse;
	}
}

/* Liens dans le texte d'une section sombre : couleur du texte + soulignés (l’anthracite serait illisible). */
.wp-block-post-content :is(.has-secondary-background-color, .has-primary-background-color, .has-bg-dark-background-color) a:not(.wp-element-button):not(.wp-block-button__link) {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Bandeau de titre des pages « Page » (espaces parrainage, mentions…) */
.eaz-titre-page h1 {
	margin: 0;
}


/* ---------------------------------------------------------------
   Classes de mise en page (à poser dans « Avancé > Classes CSS additionnelles »)
   --------------------------------------------------------------- */

/* Section : espacement vertical régulier entre les grandes parties d'une page. */
.eaz-section {
	padding-top: var(--wp--preset--spacing--60) !important;
	padding-bottom: var(--wp--preset--spacing--60) !important;
}

.eaz-section--serree {
	padding-top: var(--wp--preset--spacing--50) !important;
	padding-bottom: var(--wp--preset--spacing--50) !important;
}

.eaz-centre,
.eaz-centre :where(h1, h2, h3, h4, p) {
	text-align: center;
}

.eaz-centre .wp-block-buttons,
.wp-block-buttons.eaz-centre {
	justify-content: center;
}

/* Sur-titre (petit texte au-dessus d'un titre). */
.eaz-surtitre {
	font-size: 0.85rem !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.4rem !important;
}

.has-secondary-background-color .eaz-surtitre,
.has-primary-background-color .eaz-surtitre,
.wp-block-cover .eaz-surtitre {
	color: var(--wp--preset--color--accent);
}

.eaz-chapo {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

/* Bannière d'en-tête de page (vidéo ou image). */
.eaz-hero h1 {
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	line-height: 1.1;
	max-width: 18ch;
}

.eaz-hero.eaz-centre h1 {
	margin-left: auto;
	margin-right: auto;
}

.eaz-hero .eaz-chapo {
	max-width: 42rem;
}

.eaz-hero.eaz-centre .eaz-chapo {
	margin-left: auto;
	margin-right: auto;
}



/* Liste d'atouts : coche orange sur pastille. */
ul.eaz-atouts {
	list-style: none;
	padding-left: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 0.8rem 1.5rem;
}

ul.eaz-atouts li {
	position: relative;
	padding-left: 2rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

ul.eaz-atouts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23303030' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 75% no-repeat;
}


/* Coordonnées (pages formulaire). */
.eaz-coordonnees p {
	margin: 0.2rem 0;
}

/* Média + texte en pleine largeur : texte bien aéré. */
.wp-block-media-text.alignfull .wp-block-media-text__content {
	padding: var(--wp--preset--spacing--60) clamp(1.5rem, 6vw, 5rem);
}

.wp-block-media-text.alignfull .wp-block-media-text__content > * {
	max-width: 560px;
}

/* Galerie : images de même hauteur, recadrées. */
.eaz-galerie.wp-block-gallery .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Sections foncées : titres en blanc (la couleur « Titres » anthracite serait illisible). */
:is(.has-secondary-background-color, .has-primary-background-color, .wp-block-cover.is-dark) :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
	color: var(--wp--preset--color--base);
}

/* Bannière non centrée : titre et chapeau alignés sur le bord gauche de la colonne de contenu
   (sans ceci, leur largeur maximale les centrerait dans la mise en page « contrainte »). */
.eaz-hero:not(.eaz-centre) .wp-block-cover__inner-container > :is(h1, .eaz-chapo) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

/* Carte contenant un formulaire : marges intérieures (les champs ne touchent pas les bords). */
.eaz-carte-formulaire {
	padding: clamp(1.2rem, 4vw, 2.5rem) !important;
}

/* Bannières : sur-titre et texte lisibles sur une vidéo claire. */
.eaz-hero .wp-block-cover__inner-container {
	text-shadow: 0 1px 12px rgba(28, 28, 28, 0.45);
}

/* Étapes numérotées (« Comment ça se passe ? ») : pastilles orange. Classe de liste numérotée : eaz-etapes. */
ol.eaz-etapes {
	list-style: none;
	counter-reset: eaz-etape;
	padding-left: 0;
	max-width: 760px;
	margin-left: auto !important;
	margin-right: auto !important;
}

ol.eaz-etapes li {
	counter-increment: eaz-etape;
	position: relative;
	padding: 0.2rem 0 1rem 3.2rem;
}

ol.eaz-etapes li::before {
	content: counter(eaz-etape);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--secondary);
	font-weight: 800;
	display: grid;
	place-items: center;
}

/* ---------------------------------------------------------------
   Orange du logo : trop clair pour un texte blanc → texte anthracite sur l'orange
   (boutons, pastilles), et l'orange n'est jamais utilisé seul pour du texte sur fond clair.
   --------------------------------------------------------------- */
.has-accent-background-color:not(.has-text-color) {
	color: var(--wp--preset--color--primary);
}

.wp-block-button__link.has-accent-background-color:hover,
.wp-element-button.has-accent-background-color:hover {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base) !important;
}

/* Bandeau du haut : accroche à gauche, e-mail à droite (picto enveloppe). */
.eaz-topbar__mail::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--eaz-picto) center / contain no-repeat;
	mask: var(--eaz-picto) center / contain no-repeat;
	opacity: 0.85;
	--eaz-picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}

.eaz-topbar__accroche {
	opacity: 0.9;
}

@media (max-width: 781px) {
	.eaz-topbar__accroche {
		display: none !important;
	}
}

/* Logo EAsymage (large, ≈ 2,6 : 1) : un peu plus petit sur téléphone. */
@media (max-width: 781px) {
	.eaz-header .wp-block-site-logo img {
		width: 130px !important;
	}
}

/* ---------------------------------------------------------------
   Animations (amélioration progressive, CSS natif, aucune bibliothèque)
   - Désactivées si le visiteur a demandé « moins d'animations » (prefers-reduced-motion).
   - Navigateur trop ancien : le contenu s'affiche simplement, sans effet.
   - Seuls opacity / translate / scale sont animés (fluide, pas de recalcul de mise en page).
   --------------------------------------------------------------- */

/* Transition douce entre les pages du site (fondu). Chrome, Edge, Safari ; ignoré ailleurs. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	/* L'en-tête reste en place pendant la transition : seul le contenu change. */
	.wp-site-blocks > header.wp-block-template-part {
		view-transition-name: eaz-entete;
	}
}

/* Apparition au défilement. Classes à poser sur un bloc (« Avancé > Classes CSS additionnelles ») :
     eaz-apparition           fondu + légère montée
     eaz-apparition-gauche    arrive depuis la gauche
     eaz-apparition-droite    arrive depuis la droite
     eaz-apparition-zoom      léger zoom
     eaz-apparition-enfants   sur un groupe / une grille / des colonnes : chaque élément enfant apparaît à son tour */
@media (prefers-reduced-motion: no-preference) {
	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		@keyframes eaz-monte {
			from {
				opacity: 0;
				translate: 0 2.5rem;
			}
		}

		@keyframes eaz-depuis-gauche {
			from {
				opacity: 0;
				translate: -3rem 0;
			}
		}

		@keyframes eaz-depuis-droite {
			from {
				opacity: 0;
				translate: 3rem 0;
			}
		}

		@keyframes eaz-zoom {
			from {
				opacity: 0;
				scale: 0.92;
			}
		}

		.eaz-apparition,
		.eaz-apparition-enfants > * {
			animation: eaz-monte auto ease-out backwards;
			animation-timeline: view();
			animation-range: entry 0% entry 80%;
		}

		.eaz-apparition-gauche {
			animation: eaz-depuis-gauche auto ease-out backwards;
			animation-timeline: view();
			animation-range: entry 0% entry 80%;
		}

		.eaz-apparition-droite {
			animation: eaz-depuis-droite auto ease-out backwards;
			animation-timeline: view();
			animation-range: entry 0% entry 80%;
		}

		.eaz-apparition-zoom {
			animation: eaz-zoom auto ease-out backwards;
			animation-timeline: view();
			animation-range: entry 0% entry 80%;
		}

		/* Effet « cascade » : chaque enfant démarre un peu plus tard que le précédent. */
		.eaz-apparition-enfants > :nth-child(2) { animation-range: entry 10% entry 90%; }
		.eaz-apparition-enfants > :nth-child(3) { animation-range: entry 20% entry 100%; }
		.eaz-apparition-enfants > :nth-child(n + 4) { animation-range: entry 30% cover 30%; }
	}
}

/* Dans l'éditeur, tout reste visible et immobile (pas de défilement de page à suivre). */
.editor-styles-wrapper :is(.eaz-apparition, .eaz-apparition-gauche, .eaz-apparition-droite, .eaz-apparition-zoom, .eaz-apparition-enfants > *) {
	animation: none !important;
}

/* Survol des cartes : légère élévation. */
@media (prefers-reduced-motion: no-preference) {
	.is-style-eaz-carte {
		transition: translate 0.25s ease, box-shadow 0.25s ease;
	}

	.is-style-eaz-carte:hover {
		translate: 0 -4px;
		box-shadow: 0 14px 36px rgba(28, 28, 28, 0.16);
	}
}

/* ---------------------------------------------------------------
   Mots mis en avant, bannières, cartes, citation (2.1.0)
   --------------------------------------------------------------- */

/* Mot d'un titre en orange (sur fond sombre uniquement : l'orange seul est illisible sur fond clair). */
.eaz-mot-cle {
	color: var(--wp--preset--color--accent);
}

.eaz-hero-accueil h1 {
	max-width: 15ch;
}

/* Texte de la bannière d'accueil : arrive en cascade au chargement de la page. */
@media (prefers-reduced-motion: no-preference) {
	@keyframes eaz-arrivee {
		from {
			opacity: 0;
			translate: 0 1.5rem;
		}
	}

	.eaz-hero-accueil .wp-block-cover__inner-container > * {
		animation: eaz-arrivee 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
	}

	/* 2.3.1 : le titre est l'élément principal de la page (LCP). Parti d'une opacité nulle, il n'était compté qu'à la
	   fin de son animation (mesure en ligne : LCP retardé) ; il part maintenant de 20 % : même effet, compté dès son
	   premier affichage. */
	@keyframes eaz-arrivee-titre {
		from {
			opacity: 0.2;
			translate: 0 1.5rem;
		}
	}

	.eaz-hero-accueil .wp-block-cover__inner-container > h1 {
		animation-name: eaz-arrivee-titre;
	}

	.eaz-hero-accueil .wp-block-cover__inner-container > :nth-child(2) { animation-delay: 0.15s; }
	.eaz-hero-accueil .wp-block-cover__inner-container > :nth-child(3) { animation-delay: 0.3s; }
	.eaz-hero-accueil .wp-block-cover__inner-container > :nth-child(n + 4) { animation-delay: 0.45s; }
}

/* Bouton « pause / lecture » des vidéos de fond (assets/js/video.js). Une vidéo qui tourne en boucle
   doit pouvoir être arrêtée (accessibilité, WCAG 2.2.2). */
.eaz-video-bouton {
	position: absolute;
	right: clamp(0.75rem, 3vw, 1.5rem);
	bottom: clamp(0.75rem, 3vw, 1.5rem);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: rgba(28, 28, 28, 0.55);
	color: var(--wp--preset--color--base);
	cursor: pointer;
}

.eaz-video-bouton:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
}

.eaz-video-bouton::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--eaz-picto) center / contain no-repeat;
	mask: var(--eaz-picto) center / contain no-repeat;
	/* En lecture : picto « pause ». */
	--eaz-picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4h4v16H6zm8 0h4v16h-4z'/%3E%3C/svg%3E");
}

.eaz-video-bouton[data-etat="pause"]::before {
	--eaz-picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E");
}

/* Texte lu par les lecteurs d'écran seulement. */
.eaz-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Cartes « Professionnels / Particuliers ». */
.eaz-carte-public {
	height: 100%;
	padding: clamp(1.5rem, 4vw, 2.5rem) !important;
	border-top: 4px solid var(--wp--preset--color--accent);
}

/* Citation mise en avant. */
.eaz-citation {
	max-width: 44ch;
	margin-inline: auto !important;
	font-size: clamp(1.25rem, 2.4vw, 1.8rem);
	font-weight: 600;
	line-height: 1.45;
	color: var(--wp--preset--color--contrast);
	text-wrap: balance;
}

.eaz-citation::before {
	content: "“";
	display: block;
	font-size: 4.5rem;
	line-height: 0.8;
	color: var(--wp--preset--color--accent);
}

/* Titres de section : retours à la ligne équilibrés. */
:where(h1, h2, h3) {
	text-wrap: balance;
}

/* Cartes de services de l'accueil (blocs Image EAsymage dans la grille « eg-accueil-solutions ») :
   photo bord à bord, texte décollé des bords. */
.eg-accueil-solutions .easymage-card-content {
	box-sizing: border-box;
	padding: 1.5rem;
}

/* Petit téléphone : logo + bouton + menu ne tiennent pas sur une ligne → le bouton d'appel de l'en-tête
   est masqué (il est repris dans les pages et dans le menu). */
@media (max-width: 520px) {
	.eaz-header__cta {
		display: none !important;
	}
}

/* ---------------------------------------------------------------
   Pages de services (2.2.0)
   --------------------------------------------------------------- */

/* Bannière de page : titre plus large que sur l'accueil. */
.eaz-hero-page h1 {
	max-width: 22ch;
}

/* Carte « support » : photo bord à bord en haut, texte dessous, bouton en bas. */
.eaz-carte-support {
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 0 0 1.6rem !important;
}

.eaz-carte-support > :not(.eaz-support-img) {
	margin-inline: 1.5rem;
}

.eaz-carte-support .eaz-support-img {
	margin: 0 0 0.4rem;
}

.eaz-carte-support .eaz-support-img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

.eaz-carte-support .wp-block-buttons {
	margin-top: auto;
}

/* Rangées de cartes : même hauteur, espacement entre deux rangées. */
.wp-block-columns.eaz-apparition-enfants > .wp-block-column > .is-style-eaz-carte {
	height: 100%;
}

.wp-block-columns.eaz-apparition-enfants + .wp-block-columns.eaz-apparition-enfants {
	margin-top: var(--wp--preset--spacing--50);
}

/* Liste d'atouts dans une carte : une seule colonne (la carte est étroite). */
.is-style-eaz-carte ul.eaz-atouts {
	grid-template-columns: 1fr;
}
