/* LiuGong Maroc — styles complémentaires au theme.json */

:root {
	--lgm-vert: #48C83C; /* vert électrique, couleur de la CLG856H-E */
	--lgm-vert-pale: #E9F8E6;
	--lgm-bleu: #002D72; /* LiuGong Blue, Pantone 288 C (charte 2026) */
	--lgm-bleu-fonce: #002D72;
	--lgm-orange: #FF671F; /* LiuGong Orange, Pantone 165 C (charte 2026) */
	--lgm-orange-pale: #FFEDE4;
	--lgm-gris-fond: #F3F5F8;
	--lgm-gris-ligne: #DADDE3;
	--lgm-gris-texte: #5A6270;
}

:where(body) { margin: 0; }
img { max-width: 100%; height: auto; }

/* Lien d'évitement (accessibilité) */
.lgm-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--lgm-bleu); color: #fff; padding: 12px 16px; }
.lgm-skip:focus { left: 16px; top: 16px; }

/* ---------- Boutons (styles de bloc) ---------- */
.wp-block-button.is-style-lgm-orange .wp-block-button__link {
	background: var(--lgm-orange); color: var(--lgm-bleu); font-weight: 800; font-size: 1.1875rem;
	box-shadow: 0 8px 20px rgba(255,103,31, .45);
}
.wp-block-button.is-style-lgm-orange .wp-block-button__link:hover { background: #FF8547; color: var(--lgm-bleu); }
.wp-block-button.is-style-lgm-contour .wp-block-button__link {
	background: transparent; color: var(--lgm-bleu); border: 2px solid var(--lgm-bleu); padding: 12px 24px;
}
.wp-block-button.is-style-lgm-contour .wp-block-button__link:hover { background: var(--lgm-bleu); color: #fff; }
.wp-block-button.is-style-lgm-contour-clair .wp-block-button__link {
	background: transparent; color: #fff; border: 2px solid #fff; padding: 12px 24px;
}
.wp-block-button.is-style-lgm-contour-clair .wp-block-button__link:hover { background: #fff; color: var(--lgm-bleu); }

/* ---------- En-tête ---------- */
.lgm-header { border-bottom: 1px solid var(--lgm-gris-ligne); background: #fff; }
.lgm-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.lgm-header .lgm-logo { margin: 0; }
.lgm-header .lgm-logo img { height: 52px; width: auto; display: block; }
.lgm-header .wp-block-navigation { font-weight: 600; gap: 8px 28px; }
.lgm-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--texte); }
.lgm-header .wp-block-navigation a:hover { color: var(--lgm-bleu); }
.lgm-header .lgm-nav-cta a { background: var(--lgm-orange); color: var(--lgm-bleu) !important; font-weight: 800; box-shadow: 0 6px 16px rgba(255, 103, 31, .35); padding: 12px 20px; border-radius: 999px; }
.lgm-header .lgm-nav-cta a:hover { background: #FF8547; }


/* Sous-menu « Catalogue » (déroulant au survol et au clavier) */
.lgm-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff; border: 1px solid var(--lgm-gris-ligne); border-top: 3px solid var(--lgm-orange);
	border-radius: 0 0 6px 6px; box-shadow: 0 8px 24px rgba(0, 48, 125, .12); min-width: 240px; padding: 8px 0; z-index: 50;
}
.lgm-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 10px 18px; font-weight: 600; display: block; }
.lgm-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover,
.lgm-header .wp-block-navigation .wp-block-navigation__submenu-container a:focus { background: var(--lgm-gris-fond); color: var(--lgm-bleu); }
.lgm-header .wp-block-navigation-submenu__toggle { color: inherit; }

/* ---------- Sections ---------- */
.lgm-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.lgm-section--bleu { background: var(--lgm-bleu); color: #fff; }
.lgm-section--bleu :where(h1, h2, h3) { color: #fff; }
.lgm-section--bleu p { color: #E3E8F0; }
.lgm-section--gris { background: var(--lgm-gris-fond); }

.lgm-eyebrow { margin: 0; color: var(--lgm-bleu); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .875rem; }
.lgm-section--bleu .lgm-eyebrow { color: var(--lgm-orange); }
.lgm-lead { font-size: 1.125rem; }

.lgm-split { gap: 48px; align-items: center; }
.lgm-split > .wp-block-column { min-width: 0; }
.lgm-hero-img img { width: 100%; height: clamp(260px, 32vw, 420px); object-fit: cover; border-radius: 6px; display: block; }
.lgm-rounded img { border-radius: 6px; display: block; width: 100%; }

/* Bandeau SIB */
.lgm-bandeau { background: var(--lgm-orange-pale); border-top: 4px solid var(--lgm-orange); color: var(--lgm-bleu); }
.lgm-bandeau a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 18px 0; color: var(--lgm-bleu); text-decoration: none; font-weight: 600; }
.lgm-bandeau strong { font-size: 1.125rem; font-weight: 800; }
.lgm-bandeau .lgm-bandeau__cta { text-decoration: underline; }

/* Badges */
.lgm-badge { display: inline-block; margin: 0; background: var(--lgm-bleu); color: #fff; border-bottom: 3px solid var(--lgm-orange); font-weight: 800; font-size: .8125rem; letter-spacing: .1em; padding: 6px 14px; border-radius: 999px; }
.lgm-badge--pale { background: var(--lgm-orange-pale); color: var(--lgm-bleu); border-bottom: 0; letter-spacing: .02em; font-size: .75rem; }

/* Grille de caractéristiques */
.lgm-specs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px !important; background: var(--lgm-gris-ligne); border: 1px solid var(--lgm-gris-ligne); border-radius: 6px; overflow: hidden; }
.lgm-specs > * { margin: 0 !important; background: #fff; padding: 18px; }
.lgm-specs .lgm-spec-label { display: block; font-size: .8125rem; color: var(--lgm-gris-texte); font-weight: 400; }
.lgm-specs strong { display: block; font-size: 1.375rem; color: var(--lgm-bleu); font-weight: 800; }

/* Cartes (gamme, machines, services) */
.lgm-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px !important; }
.lgm-grid > * { margin: 0 !important; }
.lgm-card { background: #fff; border: 1px solid var(--lgm-gris-ligne); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.lgm-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.lgm-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.lgm-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.lgm-card__titre { font-size: 1.125rem; font-weight: 800; color: var(--lgm-bleu); }
.lgm-card__meta { font-size: .875rem; color: var(--lgm-gris-texte); }

.lgm-service { background: var(--lgm-gris-fond); border-top: 4px solid var(--lgm-orange); padding: 24px; }
.lgm-service h3 { margin: .25rem 0 .5rem; font-size: 1.25rem; }
.lgm-service p { margin: 0; }
.lgm-service .lgm-num { font-size: .8125rem; font-weight: 800; color: var(--lgm-bleu); }

/* Chiffres clés */
.lgm-chiffre { margin: 0; }
.lgm-chiffre strong { display: block; font-size: 3rem; line-height: 1.1; font-weight: 800; color: var(--lgm-orange); }

/* Carte infos SIB */
.lgm-infocard { background: var(--lgm-orange-pale); border-top: 6px solid var(--lgm-orange); border-radius: 6px; padding: 32px; color: var(--lgm-bleu); }
.lgm-section--bleu .lgm-infocard p { color: var(--lgm-bleu); }
.lgm-infocard .lgm-info-label { margin: 0; font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.lgm-infocard .lgm-info-valeur { margin: 4px 0 20px; font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.lgm-infocard .lgm-info-valeur:last-child { margin-bottom: 0; }

.lgm-programme > * { background: #fff; border-top: 4px solid var(--lgm-orange); padding: 20px; margin: 0 0 12px !important; }
.lgm-programme h3 { margin: 0; font-size: 1.0625rem; }
.lgm-programme p { margin: 6px 0 0; }

/* Contact */
.lgm-coord p { margin: 0 0 18px; }
.lgm-coord .lgm-reseaux-contact { margin: -8px 0 0; gap: 12px; }
.lgm-coord .lgm-reseaux-contact .wp-social-link a { padding: 10px; }
.lgm-coord .lgm-reseaux-contact .wp-social-link:hover { background-color: #FF671F !important; }
.lgm-coord .lgm-reseaux-contact .wp-social-link:hover svg { fill: #002D72; color: #002D72; }
.lgm-coord strong { display: block; color: var(--lgm-bleu); }

/* ---------- Catalogue (extension LGM Core) ---------- */
.lgm-filtres { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.lgm-filtres a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid #B8BEC8; color: var(--lgm-bleu); font-weight: 600; text-decoration: none; background: #fff; }
.lgm-filtres a[aria-current="true"] { background: var(--lgm-bleu); border-color: var(--lgm-bleu); color: #fff; }
.lgm-compteur { color: var(--lgm-gris-texte); margin: 0 0 24px; }
.lgm-machines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.lgm-machine { border: 1px solid var(--lgm-gris-ligne); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.lgm-machine__media { position: relative; background: var(--lgm-gris-fond); }
.lgm-machine__media img { width: 100%; height: 220px; object-fit: cover; display: block; }
.lgm-machine__vide { height: 220px; display: flex; align-items: center; justify-content: center; color: var(--lgm-gris-texte); font-weight: 600; font-size: .875rem; }
.lgm-machine__media .lgm-badge { position: absolute; top: 12px; left: 12px; }
.lgm-machine__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.lgm-machine__type { font-size: .8125rem; color: var(--lgm-gris-texte); font-weight: 600; margin: 0; }
.lgm-machine__body h3 { margin: 0; font-size: 1.375rem; }
.lgm-machine dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: .875rem; }
.lgm-machine dt { color: var(--lgm-gris-texte); }
.lgm-machine dd { margin: 2px 0 0; font-weight: 600; }
.lgm-machine__actions { margin-top: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.lgm-machine__actions > a { transition: background-color .2s, color .2s, transform .2s; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; text-decoration: none; padding: 10px 12px; text-align: center; }
.lgm-machine__pdf { grid-column: 1 / -1; font-size: .8125rem; color: var(--lgm-bleu); background: var(--lgm-gris-fond); border: 1px solid var(--lgm-gris-ligne); }
.lgm-machine__pdf:hover { background: var(--lgm-orange-pale); color: var(--lgm-bleu); }
.lgm-machine__actions > .lgm-machine__wa { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: #0E8A4C; color: #fff; }
.lgm-machine__wa:hover, .lgm-machine__wa:focus-visible { background: #0B7140; color: #fff; transform: scale(1.06); }
.lgm-machine__wa svg { display: block; }
.lgm-machine__actions .lgm-machine__cta { margin-top: 0; font-size: .8125rem; font-weight: 700; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.lgm-machine__actions:not(:has(.lgm-machine__wa)) .lgm-machine__cta { grid-column: 1 / -1; }
@media (max-width: 1080px) { .lgm-machines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lgm-machines { grid-template-columns: minmax(0, 1fr); } }
.lgm-machine__cta { margin-top: auto; text-align: center; text-decoration: none; border: 2px solid var(--lgm-bleu); color: var(--lgm-bleu); font-weight: 600; padding: 12px; border-radius: 4px; }
.lgm-machine__cta:hover { background: var(--lgm-bleu); color: #fff; }
.lgm-note { font-size: .8125rem; color: var(--lgm-gris-texte); margin-top: 24px; }

/* Formulaires (extension LGM Core) */
.lgm-form { background: var(--lgm-gris-fond); padding: 32px; border-radius: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lgm-form .lgm-plein { grid-column: 1 / -1; }
.lgm-form label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; }
.lgm-form input, .lgm-form select, .lgm-form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #B8BEC8; border-radius: 4px; background: #fff; color: var(--wp--preset--color--texte); }
.lgm-form input:focus, .lgm-form select:focus, .lgm-form textarea:focus { outline: 3px solid #0058BC; outline-offset: 1px; }
.lgm-form button { justify-self: start; font: inherit; font-weight: 800; background: var(--lgm-bleu); color: #fff; border: 0; padding: 16px 32px; border-radius: 999px; cursor: pointer; }
.lgm-form button:hover { background: var(--lgm-bleu-fonce); }
.lgm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.lgm-alerte { padding: 16px 20px; border-radius: 4px; margin: 0 0 18px; font-weight: 600; }
.lgm-alerte--ok { background: #E3F4E8; color: #14532D; }
.lgm-alerte--erreur { background: #FDE8E8; color: #7F1D1D; }

/* Carte du siège */
.lgm-carte { margin-top: 40px; }
.lgm-carte iframe { display: block; width: 100%; height: 400px; border: 0; border-radius: 6px; }
.lgm-carte__itineraire { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 22px; background: var(--lgm-bleu); color: #fff !important; font-weight: 700; border-radius: 999px; text-decoration: none; }
.lgm-carte__itineraire:hover { background: var(--lgm-bleu-fonce); }

/* Pied de page */
.lgm-footer { background: var(--lgm-bleu-fonce); color: #C9D2E0; font-size: .875rem; }
.lgm-footer a { color: #fff; }
.lgm-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 40px; padding-bottom: 40px; }
.lgm-footer p { margin: 0; }
.lgm-footer .lgm-reseaux { margin: 0; }
.lgm-footer .lgm-reseaux .wp-social-link a { padding: 6px; }

@media (max-width: 640px) {
	.lgm-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
	.lgm-specs { grid-template-columns: minmax(0, 1fr); }
	.lgm-header .lgm-logo img { height: 40px; }
	.lgm-carte iframe { height: 300px; }
}

/* =====================================================================
   v2.0 — Accueil « v3 » : en-tête sombre, slider, sections, pied de page
   ===================================================================== */
:root { --lgm-nuit: #001E4D; --lgm-titre: var(--wp--preset--font-family--titre, 'Barlow Condensed', Montserrat, sans-serif); }

.lgm-accueil-v3 > * { margin-block-start: 0 !important; }
.lgm-titre-cond { font-family: var(--lgm-titre); text-transform: uppercase; letter-spacing: .01em; line-height: .98; font-weight: 800; font-size: clamp(2.25rem, 4.5vw, 3.4rem); }
mark.lgm-jaune { background: none; color: var(--lgm-orange); }
mark.lgm-surligne { background: var(--lgm-orange); color: var(--lgm-bleu); padding: 0 .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lgm-section--bleu-fonce { background: var(--lgm-bleu-fonce); color: #fff; }
.lgm-section--nuit { background: var(--lgm-nuit); color: #fff; }
:is(.lgm-section--bleu-fonce, .lgm-section--nuit) :is(h1, h2, h3) { color: #fff; }
:is(.lgm-section--bleu-fonce, .lgm-section--nuit) .lgm-eyebrow { color: #fff; }
.lgm-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
:is(.lgm-section--bleu, .lgm-section--bleu-fonce, .lgm-section--nuit, .lgm-slide) .lgm-eyebrow::before { content: ""; width: 36px; height: 3px; background: var(--lgm-orange); }
.wp-block-button.lgm-btn-petit .wp-block-button__link { font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 20px; }

/* Apparition au défilement (navigateurs compatibles uniquement) */
@supports (animation-timeline: view()) {
	@keyframes lgm-monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
	.lgm-rv { animation: lgm-monte linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}

/* ---------- En-tête sombre ---------- */
/* Barre de navigation toujours visible : le « sticky » est posé sur le conteneur du template-part
   (l'élément <header> enfant direct de .wp-site-blocks), sinon il ne peut pas rester collé. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 1000; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.wp-site-blocks > header.wp-block-template-part + * { margin-block-start: 0; }
.lgm-header--sombre { background: #fff; border-bottom: 3px solid var(--lgm-orange); box-shadow: 0 4px 18px rgba(0, 30, 77, .12); }
html { scroll-padding-top: 96px; }
.lgm-header--sombre .lgm-logo { background: none; padding: 0; }
.lgm-header--sombre .lgm-logo img { height: 48px; }
.lgm-header--sombre .wp-block-navigation { color: var(--lgm-bleu); font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; gap: 8px 24px; }
.lgm-header--sombre .wp-block-navigation a { color: inherit; }
.lgm-header--sombre .wp-block-navigation a:hover { color: var(--lgm-orange); }
.lgm-header--sombre .wp-block-navigation .wp-block-navigation__submenu-container { color: var(--lgm-bleu); text-transform: none; letter-spacing: 0; font-size: .9375rem; }
.lgm-header--sombre .wp-block-navigation .wp-block-navigation__submenu-container a:hover,
.lgm-header--sombre .wp-block-navigation .wp-block-navigation__submenu-container a:focus { background: var(--lgm-orange-pale); color: var(--lgm-bleu); }
.lgm-header--sombre .lgm-nav-sib > a { color: var(--lgm-orange); display: inline-flex; align-items: center; gap: 6px; }
.lgm-header--sombre .lgm-nav-sib > a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lgm-orange); }
.lgm-header--sombre .lgm-nav-cta a { color: var(--lgm-bleu) !important; }
.lgm-header--sombre .wp-block-navigation__responsive-container-open { color: var(--lgm-bleu); }
.lgm-header--sombre .wp-block-navigation__responsive-container.is-menu-open { background: #fff; color: var(--lgm-bleu); }
.lgm-header--sombre .is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; color: var(--lgm-bleu); border: 0; box-shadow: none; }

/* ---------- Carrousels (commun) ---------- */
.lgm-carrousel { position: relative; }
.lgm-carrousel > .lgm-slide { margin: 0 !important; }
.lgm-carrousel__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.lgm-carrousel__puces { display: flex; gap: 10px; flex: 1 1 280px; }
.lgm-carrousel__puce { flex: 1; min-height: 32px; padding: 14px 0; border: 0; background: none; cursor: pointer; }
.lgm-carrousel__barre { position: relative; display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.lgm-carrousel__barre::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lgm-orange); }
.lgm-carrousel__puce.is-done .lgm-carrousel__barre::after { width: 100%; }
.lgm-carrousel__puce.is-active .lgm-carrousel__barre::after { width: 100%; }
@keyframes lgm-barre { from { width: 0; } to { width: 100%; } }
.lgm-slider .lgm-carrousel__puce.is-active .lgm-carrousel__barre::after { animation: lgm-barre 6s linear both; }
.lgm-slider.is-pause .lgm-carrousel__puce.is-active .lgm-carrousel__barre::after { animation-play-state: paused; }
.lgm-carrousel.is-reduit .lgm-carrousel__puce.is-active .lgm-carrousel__barre::after { animation: none; width: 100%; }
.lgm-carrousel__fleches { display: flex; gap: 8px; }
.lgm-carrousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.65); background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.lgm-carrousel__btn:hover, .lgm-carrousel__btn:focus-visible { background: var(--lgm-orange); border-color: var(--lgm-orange); color: var(--lgm-bleu); }
.lgm-carrousel :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Slider plein écran ---------- */
.lgm-slider { height: clamp(540px, 82vh, 680px); overflow: hidden; background: var(--lgm-nuit); padding: 0 !important; }
.lgm-slider > .lgm-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; color: #fff; }
.lgm-slider:not(.lgm-js) > .lgm-slide:first-child, .lgm-slider > .lgm-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.lgm-slide__img { position: absolute !important; inset: 0; margin: 0 !important; max-width: none !important; z-index: 0; }
.lgm-slide__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lgm-slider > .lgm-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,27,71,.93) 0%, rgba(0,27,71,.72) 45%, rgba(0,27,71,.25) 100%); }
.lgm-slide__contenu { position: relative; z-index: 2; width: 100%; max-width: 1240px !important; display: flex; flex-direction: column; gap: 22px; }
.lgm-slide__contenu > * { margin: 0 !important; max-width: 820px; }
.lgm-slide__contenu .lgm-eyebrow { color: #fff; font-weight: 800; }
.lgm-slide__titre { font-family: var(--lgm-titre); text-transform: uppercase; font-weight: 800; font-size: clamp(3.25rem, 9vw, 6.5rem); line-height: .92; color: #fff !important; }
.lgm-slide__contenu .lgm-lead { color: #E3E8F0; max-width: 560px; }
.lgm-slider > .lgm-carrousel__ctrl { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 5; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@keyframes lgm-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes lgm-entre { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.lgm-slider > .lgm-slide.is-active .lgm-slide__img img { animation: lgm-zoom 7s ease-out both; }
.lgm-slider > .lgm-slide.is-active .lgm-slide__contenu > * { animation: lgm-entre .8s cubic-bezier(.2,.7,.2,1) both; }
.lgm-slider > .lgm-slide.is-active .lgm-slide__contenu > :nth-child(2) { animation-delay: .15s; }
.lgm-slider > .lgm-slide.is-active .lgm-slide__contenu > :nth-child(n+3) { animation-delay: .3s; }

/* Bandeau SIB (jaune pâle) */
.lgm-bandeau { background: var(--lgm-orange-pale); border-top: 4px solid var(--lgm-orange); }

/* ---------- Pôles (cartes photo) ---------- */
.lgm-grid--poles { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px !important; margin-top: 2rem; }
.lgm-pole { position: relative; height: 420px; border-radius: 8px; overflow: hidden; background: var(--lgm-nuit); transition: transform .35s, box-shadow .35s; }
.lgm-pole:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,.35); }
.lgm-pole__img { position: absolute !important; inset: 0; margin: 0 !important; }
.lgm-pole__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.lgm-pole:hover .lgm-pole__img img { transform: scale(1.07); }
.lgm-pole::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,27,71,0) 20%, rgba(0,27,71,.95) 72%); }
.lgm-pole__contenu { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.lgm-pole__contenu > * { margin: 0 !important; }
.lgm-pole__contenu h3 { font-size: 1.875rem; color: #fff; }
.lgm-pole__contenu p { color: #E3E8F0; font-size: .875rem; }

/* ---------- Division électrique ---------- */
.lgm-electrique { background: #fff; padding: 0 !important; }
.lgm-electrique__entete { padding-top: clamp(56px, 7vw, 80px); padding-bottom: 28px; }
.lgm-electrique__entete h2 { margin: 0; }
.lgm-electrique__bandeau { background: var(--lgm-bleu); color: #fff; }
.lgm-electrique__cols { margin: 0 auto !important; width: 100%; max-width: var(--wp--style--global--content-size, 1240px) !important; align-items: stretch !important; }
.lgm-electrique__cols > .wp-block-column:first-child { padding: 48px 0; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.lgm-electrique__cols > .wp-block-column:first-child > * { margin: 0; }
.lgm-electrique__accroche { font-size: clamp(3rem, 6vw, 4.5rem) !important; line-height: .92; }
.lgm-electrique .lgm-lead { color: #E3E8F0; }
.lgm-electrique__img { margin: 0; height: 100%; min-height: 320px; }
.lgm-electrique__img img { width: 100%; height: 100%; object-fit: cover; }
.lgm-badge--jaune { align-self: flex-start; background: var(--lgm-orange); color: var(--lgm-bleu); border: 0; }
.lgm-electrique__barre { background: var(--lgm-orange-pale); color: var(--lgm-bleu); padding-top: 18px; padding-bottom: 18px; }
.lgm-electrique__barre p { margin: 0; }
.lgm-electrique__barre > .wp-block-group { justify-content: center !important; text-align: center; gap: 14px 28px; }
.lgm-electrique__barre .wp-block-buttons { justify-content: center; }

/* ---------- Best sellers ---------- */
.lgm-bs-entete { padding-bottom: 28px !important; }
.lgm-bs-entete h2 { margin: 0; }
.lgm-bs { display: grid; background: var(--lgm-nuit); color: #fff; overflow: hidden; padding: 72px 0 40px !important; }
.lgm-bs > .lgm-slide { grid-area: 1 / 1; position: relative; padding: 0 24px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.lgm-bs:not(.lgm-js) > .lgm-slide:first-child, .lgm-bs > .lgm-slide.is-active { opacity: 1; visibility: visible; }
.lgm-bs:not(.lgm-js) > .lgm-slide + .lgm-slide { display: none; }
.lgm-bs > .lgm-slide > .lgm-bs__fond { position: absolute !important; inset: -72px 0 -200px; opacity: .16; z-index: 0; }
.lgm-bs__cols { position: relative; z-index: 1; }
.lgm-bs__cols > .wp-block-column:first-child { display: flex; flex-direction: column; gap: 18px; }
.lgm-bs__cols > .wp-block-column:first-child > * { margin: 0; }
.lgm-bs__compteur { color: var(--lgm-orange); font-weight: 800; letter-spacing: .12em; }
.lgm-bs__nom { color: #fff !important; font-size: clamp(3rem, 7vw, 5.75rem) !important; line-height: .9; }
.lgm-bs .lgm-lead { color: #E3E8F0; }
.lgm-bs__machines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lgm-bs__machines a { display: flex; gap: 16px; align-items: center; padding: 12px; color: #fff; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; transition: background-color .2s; }
.lgm-bs__machines a:hover { background: rgba(255,255,255,.14); }
.lgm-bs__machines img { width: 130px; height: 90px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.lgm-bs__machines span { display: flex; flex-direction: column; gap: 4px; }
.lgm-bs__machines strong { font-size: 1.125rem; }
.lgm-bs__machines small { color: #C9D2E0; }
.lgm-bs__machines em { font-style: normal; font-weight: 800; color: var(--lgm-orange); font-size: .8125rem; }
.lgm-bs > .lgm-carrousel__ctrl { grid-area: 2 / 1; position: relative; z-index: 2; max-width: 1240px; width: 100%; margin: 36px auto 0; padding: 0 24px; box-sizing: border-box; }

/* ---------- À propos ---------- */
.lgm-filet { width: 48px !important; height: 4px; border: 0 !important; background: var(--lgm-orange) !important; margin-left: auto !important; margin-right: auto !important; opacity: 1; }
.lgm-apropos__titre { text-transform: uppercase; font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 900px !important; margin-left: auto !important; margin-right: auto !important; text-align: center; }
.lgm-apropos__accroche { font-size: 1.5rem; font-weight: 700; color: var(--lgm-bleu); line-height: 1.3; }
.lgm-apropos__img { position: relative; margin: 0; }
.lgm-apropos__img::before { content: ""; position: absolute; right: -16px; bottom: -16px; width: 60%; height: 60%; background: var(--lgm-orange); border-radius: 8px; }
.lgm-apropos__img img { position: relative; width: 100%; height: 360px; object-fit: cover; border-radius: 8px; }

/* ---------- Logo + chiffres ---------- */
.lgm-grand-logo { background: #fff; padding-top: 32px; padding-bottom: 48px; }
.lgm-grand-logo img { width: 100%; max-width: 760px; height: auto; }
.lgm-chiffres { background: var(--lgm-bleu-fonce); text-align: center; }
.lgm-chiffres .lgm-chiffre { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #E3E8F0; }
.lgm-chiffres .lgm-chiffre strong { font-family: var(--lgm-titre); font-size: 4rem; line-height: 1; margin-bottom: 10px; }

/* ---------- Secteurs ---------- */
.lgm-section--nuit .lgm-grid { margin-top: 2rem; }
.lgm-secteur { background: var(--lgm-bleu); border-radius: 8px; border-bottom: 5px solid var(--lgm-orange); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .35s; }
.lgm-secteur:hover { transform: translateY(-6px); }
.lgm-secteur > * { margin: 0 !important; }
.lgm-secteur h3 { font-size: 1.125rem; }
.lgm-secteur p { color: #E3E8F0; font-size: .875rem; }
.lgm-secteur__machines { margin-top: auto !important; }
.lgm-secteur__machines a { color: var(--lgm-orange); font-weight: 800; text-decoration: none; }

/* ---------- Clients ---------- */
.lgm-clients__logos { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 32px; }
.lgm-clients__logos img { background: #fff; border-radius: 6px; padding: 16px; object-fit: contain !important; }

/* ---------- Bandeau d'appel jaune ---------- */
.lgm-cta-zone { background: var(--lgm-bleu-fonce); padding-bottom: clamp(56px, 8vw, 104px); }
.lgm-cta { background: var(--lgm-orange); color: var(--lgm-bleu); border-radius: 10px; overflow: hidden; gap: 0 !important; margin: 0 auto !important; width: 100%; max-width: var(--wp--style--global--content-size, 1240px) !important; }
.lgm-cta > .wp-block-column:first-child { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.lgm-cta__titre { margin: 0; font-size: clamp(2.25rem, 4.5vw, 3.25rem) !important; }
.lgm-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lgm-cta__actions a { min-height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s; }
.lgm-cta__actions a:hover { transform: translateY(-2px); }
.lgm-cta__wa { background: #075E54; color: #fff !important; }
.lgm-cta__tel { background: var(--lgm-bleu); color: #fff !important; }
.lgm-cta__mail { background: #fff; color: var(--lgm-bleu) !important; }
.lgm-cta__media { position: relative; min-height: 300px; }
.lgm-cta__media figure { position: absolute; inset: 0; margin: 0; }
.lgm-cta__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pied de page 4 colonnes ---------- */
.lgm-footer { background: var(--lgm-nuit); border-top: 3px solid var(--lgm-orange); padding-top: 64px; }
.lgm-footer__cols { gap: 40px !important; padding-bottom: 48px; }
.lgm-footer__cols p { margin: 0 0 14px; line-height: 1.6; }
.lgm-footer__logo { display: inline-block; margin: 0 0 16px; }
.lgm-footer__logo img { height: 52px; width: auto; display: block; }
.lgm-footer__titre { color: #fff !important; font-size: .9375rem !important; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; font-family: inherit; }
.lgm-footer__liens a { color: #C9D2E0; text-decoration: none; line-height: 2.1; }
.lgm-footer__liens a:hover { color: var(--lgm-orange); }
.lgm-footer__bas { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .8125rem; }
.lgm-footer .lgm-reseaux .wp-social-link a { padding: 10px; }

@media (max-width: 781px) {
	.lgm-slider > .lgm-slide::before { background: rgba(0,27,71,.82); }
	.lgm-electrique__cols > .wp-block-column:first-child { padding: 40px 0 8px; }
	.lgm-cta__media { min-height: 220px; }
	.lgm-bs__machines img { width: 96px; height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
	.lgm-rv, .lgm-slider > .lgm-slide.is-active .lgm-slide__img img, .lgm-slider > .lgm-slide.is-active .lgm-slide__contenu > * { animation: none !important; }
	.lgm-slider > .lgm-slide, .lgm-bs > .lgm-slide, .lgm-pole, .lgm-pole__img img, .lgm-secteur, .lgm-cta__actions a { transition: none !important; }
}

/* Éditeur : toutes les diapositives visibles les unes sous les autres pour pouvoir les modifier */
.editor-styles-wrapper .lgm-slider { height: auto; }
.editor-styles-wrapper .lgm-slider > .lgm-slide { position: relative; inset: auto; min-height: 540px; opacity: 1; visibility: visible; margin-bottom: 8px !important; }
.editor-styles-wrapper .lgm-bs { display: block; }
.editor-styles-wrapper .lgm-bs > .lgm-slide { display: block !important; opacity: 1; visibility: visible; margin-bottom: 48px !important; }
.editor-styles-wrapper .lgm-rv { animation: none !important; }

/* Contenus centrés : en-têtes de section */
.lgm-entete-centre { text-align: center; }
.lgm-entete-centre .lgm-eyebrow, p.lgm-eyebrow.has-text-align-center { display: flex; justify-content: center; }
#poles > .lgm-eyebrow, #poles > h2 { text-align: center; justify-content: center; margin-left: auto !important; margin-right: auto !important; }
#poles > .lgm-eyebrow { display: flex; }
.lgm-electrique__entete h2 { text-align: center; }
.lgm-cta-zone { padding-top: 0; }

/* =====================================================================
   v2.1 — Mise en page « boîte » : le site est centré, pas en plein cadre
   ===================================================================== */
:root { --lgm-boite: 1320px; }
body { background: #E6EBF2; }
.wp-site-blocks { max-width: var(--lgm-boite); margin-left: auto; margin-right: auto; background: #fff; min-height: 100vh; box-shadow: 0 0 0 1px rgba(0,27,71,.06), 0 0 48px rgba(0,27,71,.14); overflow-x: clip; }
.wp-site-blocks > header.wp-block-template-part { max-width: var(--lgm-boite); }
/* Dans la boîte, les sections pleine largeur s'arrêtent aux bords de la boîte */
.wp-block-post-content > .alignfull { max-width: none !important; margin-left: calc(-1 * var(--wp--style--root--padding-left, 24px)) !important; margin-right: calc(-1 * var(--wp--style--root--padding-right, 24px)) !important; width: auto; }
@media (max-width: 1360px) { .wp-site-blocks { box-shadow: none; } body { background: #fff; } }
.wp-site-blocks { display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:has(> main), .wp-site-blocks > #contenu { flex: 1 0 auto; }
.lgm-page-main { padding-left: 0 !important; padding-right: 0 !important; }
.lgm-chiffres .lgm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px) { .lgm-chiffres .lgm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lgm-chiffres .lgm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lgm-electrique__bandeau { background: linear-gradient(90deg, var(--lgm-bleu) 50%, #fff 50%); }
.lgm-electrique__cols > .wp-block-column:last-child { background: #fff; display: flex; align-items: center; justify-content: center; }
.lgm-electrique__img img { object-fit: contain; }
.lgm-electrique > * { margin-block-start: 0 !important; }
@media (max-width: 781px) { .lgm-electrique__bandeau { background: var(--lgm-bleu); } .lgm-electrique__cols > .wp-block-column:last-child { border-radius: 8px; margin-bottom: 24px; } }

/* Fiches machines : badge rouge, bouton fiche technique plus visible */
.lgm-machine__media .lgm-badge,
.lgm-machine__media .lgm-badge--pale { background: #C8102E; color: #fff; border: 0; font-weight: 800; letter-spacing: .03em; box-shadow: 0 4px 12px rgba(200, 16, 46, .35); }
.lgm-machine__actions > .lgm-machine__pdf { background: var(--lgm-orange); color: var(--lgm-bleu); border: 0; font-weight: 800; font-size: .875rem; box-shadow: 0 6px 16px rgba(255,103,31, .45); }
.lgm-machine__actions > .lgm-machine__pdf::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M12 12v6M9 15l3 3 3-3'/%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 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M12 12v6M9 15l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat; }
.lgm-machine__actions > .lgm-machine__pdf:hover, .lgm-machine__actions > .lgm-machine__pdf:focus-visible { background: #FF8547; color: var(--lgm-bleu); transform: translateY(-2px); }

/* Catalogue : liens vers la fiche */
.lgm-machine__lien { color: inherit; text-decoration: none; }
.lgm-machine__lien:hover { text-decoration: underline; }
.lgm-machine__voir { font-weight: 800; font-size: .875rem; color: var(--lgm-bleu); text-decoration: none; }
.lgm-machine__voir:hover { text-decoration: underline; }



/* =====================================================================
   v2.3 — Fiche machine LiuGong Maroc (mise en page propre)
   ===================================================================== */
.lgm-fiche-page { padding: 0 !important; }
.lgm-pf { --pf-max: 1240px; }
.lgm-pf__btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s, background-color .2s, color .2s; }
.lgm-pf__btn:hover { transform: translateY(-2px); }
.lgm-pf__btn--jaune { background: var(--lgm-orange); color: var(--lgm-bleu) !important; box-shadow: 0 8px 20px rgba(255, 103, 31, .35); }
.lgm-pf__btn--jaune:hover { background: #FF8547; }
.lgm-pf__btn--contour { border: 2px solid rgba(255,255,255,.7); color: #fff !important; }
.lgm-pf__btn--contour:hover { background: #fff; color: var(--lgm-bleu) !important; }
.lgm-pf__btn--blanc { background: #fff; color: var(--lgm-bleu) !important; }
.lgm-pf__btn--wa { width: 52px; padding: 0; background: #0E8A4C; color: #fff !important; }
.lgm-pf__btn--wa:hover { background: #0B7140; }
.lgm-pf__kicker { margin: 0 0 6px; font-weight: 800; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: #8A6A00; }
.lgm-pf__h2 { margin: 0 0 28px; font-family: var(--lgm-titre); text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; color: var(--lgm-bleu); }

/* Bandeau « plaque constructeur » */
.lgm-pf__hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--lgm-bleu) 0%, var(--lgm-nuit) 70%); color: #fff; padding: 26px 24px 0; }
.lgm-pf__filigrane { position: absolute; right: -2%; bottom: 70px; font-family: var(--lgm-titre); font-weight: 800; font-size: clamp(7rem, 20vw, 17rem); line-height: .8; color: rgba(255,255,255,.05); white-space: nowrap; pointer-events: none; }
.lgm-pf__hero-in { position: relative; max-width: var(--pf-max); margin: 0 auto; }
.lgm-pf__fil { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .8125rem; font-weight: 600; color: #C9D2E0; }
.lgm-pf__fil a { color: #fff; text-decoration: none; }
.lgm-pf__fil a:hover { color: var(--lgm-orange); }
.lgm-pf__fil [aria-current] { color: var(--lgm-orange); }
.lgm-pf__hero-grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 36px 0 56px; }
.lgm-pf__texte > * { margin: 0; }
.lgm-pf__type { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lgm-orange); }
.lgm-pf__badge { background: #C8102E; color: #fff; border-radius: 999px; padding: 4px 12px; font-size: .75rem; letter-spacing: .03em; }
.lgm-pf__titre { margin-top: 12px !important; font-family: var(--lgm-titre); text-transform: uppercase; font-size: clamp(3rem, 6.5vw, 5.25rem); line-height: .9; color: #fff !important; }
.lgm-pf__titre span { display: block; font-size: .42em; letter-spacing: .2em; color: #C9D2E0; margin-bottom: 6px; }
.lgm-pf__intro { margin-top: 18px !important; max-width: 560px; color: #E3E8F0; line-height: 1.7; }
.lgm-pf__intro p { margin: 0 0 10px; }
.lgm-pf__cta { margin-top: 24px !important; display: flex; flex-wrap: wrap; gap: 12px; }
.lgm-pf__photo { position: relative; margin: 0; background: #fff; min-height: 380px; display: flex; align-items: center; justify-content: center; padding: 32px; clip-path: polygon(10% 0, 100% 0, 100% 88%, 90% 100%, 0 100%, 0 12%); }
.lgm-pf__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--lgm-orange); }
.lgm-pf__photo a { display: block; width: 100%; cursor: zoom-in; }
.lgm-pf__photo img { width: 100%; max-height: 430px; object-fit: contain; display: block; transition: transform .5s; }
.lgm-pf__photo a:hover img { transform: scale(1.04); }
.lgm-pf__vide { color: var(--lgm-gris-texte); font-weight: 700; }
.lgm-pf__chiffres { position: relative; z-index: 2; max-width: var(--pf-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: #fff; color: var(--lgm-bleu); border-radius: 12px 12px 0 0; overflow: hidden; }
.lgm-pf__chiffres > div { padding: 22px 24px; border-top: 4px solid var(--lgm-orange); }
.lgm-pf__chiffres > div + div { border-left: 1px solid var(--lgm-gris-ligne); }
.lgm-pf__chiffres dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lgm-gris-texte); }
.lgm-pf__chiffres dd { margin: 6px 0 0; font-family: var(--lgm-titre); font-weight: 800; font-size: 1.75rem; line-height: 1.05; }

/* Sommaire collant */
.lgm-pf__sommaire { position: sticky; top: 92px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding: 0 max(24px, calc((100% - 1240px) / 2)); min-height: 60px; background: #fff; border-bottom: 1px solid var(--lgm-gris-ligne); box-shadow: 0 6px 16px rgba(0,27,71,.06); }
.lgm-pf__sommaire a { color: var(--lgm-bleu); font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 20px 0 16px; border-bottom: 3px solid transparent; }
.lgm-pf__sommaire a:hover { border-bottom-color: var(--lgm-orange); }
.lgm-pf__sommaire-cta { margin-left: auto; padding: 10px 22px !important; border: 0 !important; border-radius: 999px; background: var(--lgm-orange); }
.admin-bar .lgm-pf__sommaire { top: 124px; }
.lgm-pf [id] { scroll-margin-top: 170px; }

/* Fiche technique à points de conduite */
.lgm-pf__section { padding: 72px 24px; }
.lgm-pf__tech-in { max-width: var(--pf-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.lgm-pf__datasheet { margin: 0; }
.lgm-pf__datasheet > div { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid #EEF1F5; }
.lgm-pf__datasheet dt { display: flex; flex: 1 1 auto; align-items: baseline; gap: 12px; color: #3A4250; font-weight: 600; }
.lgm-pf__datasheet dt::after { content: ""; flex: 1 1 auto; min-width: 24px; border-bottom: 2px dotted #B8BEC8; transform: translateY(-4px); }
.lgm-pf__datasheet dd { margin: 0; flex: 0 1 auto; max-width: 55%; text-align: right; font-weight: 800; color: var(--lgm-bleu); }
.lgm-pf__note { margin: 16px 0 0; font-size: .8125rem; color: var(--lgm-gris-texte); }
.lgm-pf__encart { position: sticky; top: 180px; background: var(--lgm-bleu); color: #fff; border-radius: 14px; padding: 30px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--lgm-orange); }
.lgm-pf__encart p { margin: 0; color: #E3E8F0; line-height: 1.6; }
.lgm-pf__encart .lgm-pf__encart-titre { font-family: var(--lgm-titre); text-transform: uppercase; font-size: 1.75rem; line-height: 1; color: #fff; }
.lgm-pf__tel { color: var(--lgm-orange); font-weight: 800; text-decoration: none; text-align: center; }

/* Atouts numérotés */
.lgm-pf__atouts { background: #F1F3F6; }
.lgm-pf__atouts > * { max-width: var(--pf-max); margin-left: auto !important; margin-right: auto !important; }
.lgm-pf__atouts-liste { list-style: none; padding: 0; margin: 0; counter-reset: atout; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.lgm-pf__atouts-liste li { counter-increment: atout; background: #fff; border-radius: 12px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 18px rgba(0,27,71,.06); transition: transform .3s; }
.lgm-pf__atouts-liste li:hover { transform: translateY(-4px); }
.lgm-pf__atouts-liste li::before { content: counter(atout, decimal-leading-zero); font-family: var(--lgm-titre); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--lgm-orange); -webkit-text-stroke: 1px #B8860B; }
.lgm-pf__atouts-liste strong { color: var(--lgm-bleu); font-size: 1.125rem; }
.lgm-pf__atouts-liste span { color: #3A4250; line-height: 1.6; font-size: .9375rem; }

/* Services LGM */
.lgm-pf__services { background: var(--lgm-nuit); color: #fff; padding: 40px max(24px, calc((100% - 1240px) / 2)); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.lgm-pf__services > div { display: flex; gap: 16px; align-items: flex-start; }
.lgm-pf__services-icone { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; background: rgba(255,103,31,.14); color: var(--lgm-orange); display: inline-flex; align-items: center; justify-content: center; }
.lgm-pf__services p { margin: 0; color: #C9D2E0; font-size: .9375rem; line-height: 1.55; }
.lgm-pf__services strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }

/* À comparer */
.lgm-pf__liees > * { max-width: var(--pf-max); margin-left: auto !important; margin-right: auto !important; }
.lgm-pf__liees-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.lgm-pf__liees-tete a { color: var(--lgm-bleu); font-weight: 800; text-decoration: none; }
.lgm-pf__liees ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lgm-pf__liees li a { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--lgm-gris-ligne); border-radius: 12px; text-decoration: none; color: var(--lgm-bleu); transition: border-color .2s, box-shadow .2s; }
.lgm-pf__liees li a:hover { border-color: var(--lgm-orange); box-shadow: 0 10px 24px rgba(0,27,71,.1); }
.lgm-pf__liee-img { flex: 0 0 auto; width: 120px; height: 84px; display: flex; align-items: center; justify-content: center; }
.lgm-pf__liee-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lgm-pf__liee-txt { display: flex; flex-direction: column; gap: 4px; }
.lgm-pf__liee-txt strong { font-family: var(--lgm-titre); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.lgm-pf__liee-txt small { color: var(--lgm-gris-texte); }

/* Devis */
.lgm-pf__devis { max-width: var(--pf-max); margin: 0 auto 80px; padding: 0 24px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0; }
.lgm-pf__devis-info { background: var(--lgm-orange); color: var(--lgm-bleu); border-radius: 14px 0 0 14px; padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.lgm-pf__devis-info > * { margin: 0; }
.lgm-pf__devis-info .lgm-pf__kicker { color: var(--lgm-bleu); }
.lgm-pf__devis-info .lgm-pf__h2 { margin: 0; }
.lgm-pf__devis-info ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.lgm-pf__devis-info a { color: var(--lgm-bleu); }
.lgm-pf__devis-form .lgm-form { border-radius: 0 14px 14px 0; height: 100%; box-sizing: border-box; }

@media (max-width: 900px) {
	.lgm-pf__hero-grille, .lgm-pf__tech-in, .lgm-pf__devis { grid-template-columns: minmax(0, 1fr); }
	.lgm-pf__photo { min-height: 260px; }
	.lgm-pf__encart { position: static; }
	.lgm-pf__services, .lgm-pf__liees ul { grid-template-columns: minmax(0, 1fr); }
	.lgm-pf__devis-info { border-radius: 14px 14px 0 0; }
	.lgm-pf__devis-form .lgm-form { border-radius: 0 0 14px 14px; }
	.lgm-pf__sommaire { top: 70px; gap: 4px 18px; }
	.lgm-pf__datasheet dd { max-width: 60%; }
}
@media (prefers-reduced-motion: reduce) { .lgm-pf__btn, .lgm-pf__photo img, .lgm-pf__atouts-liste li { transition: none; } }

/* Sélection de machines (page SIB 2026…) */
.lgm-selection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 1.5rem; }
.lgm-selection .lgm-machine__body > p:not(.lgm-machine__type) { margin: 0; color: #3A4250; }
.lgm-selection .lgm-machine__voir { margin-top: auto; }
@media (max-width: 900px) { .lgm-selection { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   v2.4 — Mobile : barre « Contacter un expert » fixe + slider sans chevauchement
   ===================================================================== */
.lgm-barre-mobile { display: none; }
@media (max-width: 781px) {
	:root { --lgm-barre-h: 72px; }
	body { padding-bottom: calc(var(--lgm-barre-h) + env(safe-area-inset-bottom, 0px)); }
	.lgm-barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--lgm-bleu-fonce); border-top: 3px solid var(--lgm-orange); box-shadow: 0 -6px 20px rgba(0, 27, 71, .25); }
	.lgm-barre-mobile a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; }
	.lgm-barre-mobile__expert { flex: 1; border-radius: 999px; background: var(--lgm-orange); color: var(--lgm-bleu) !important; font-size: 1rem; }
	.lgm-barre-mobile__rond { width: 48px; flex: 0 0 48px; border-radius: 50%; color: #fff !important; }
	.lgm-barre-mobile__tel { background: var(--lgm-bleu); border: 2px solid rgba(255,255,255,.5); }
	.lgm-barre-mobile__wa { background: #0E8A4C; }
	/* Le menu mobile ouvert passe au-dessus de la barre */
	.has-modal-open .lgm-barre-mobile { display: none; }

	/* Slider : le bouton « Contacter un expert » passe dans la barre fixe, les commandes ne chevauchent plus rien */
	.lgm-slider { height: auto; min-height: 560px; }
	.lgm-slider > .lgm-slide { justify-content: flex-start; padding-top: 64px; padding-bottom: 120px; }
	.lgm-slider .wp-block-button.is-style-lgm-contour-clair { display: none; }
	.lgm-slider > .lgm-carrousel__ctrl { bottom: 22px; flex-wrap: nowrap; gap: 14px; }
	.lgm-slider .lgm-carrousel__puces { flex: 1 1 auto; min-width: 0; }
	.lgm-slider .lgm-carrousel__btn { width: 42px; height: 42px; flex: 0 0 42px; }
	.lgm-slide__titre { font-size: clamp(2.75rem, 13vw, 4rem); }
}
@media (max-width: 781px) and (prefers-reduced-motion: reduce) { .lgm-barre-mobile { box-shadow: none; } }

/* =====================================================================
   v2.5 — Charte 2026 (bleu #002D72 / orange #FF671F), en-tête blanc,
   WhatsApp sur tout le site, chiffres « LiuGong dans le monde »
   ===================================================================== */
.lgm-header--sombre .lgm-nav-sib > a { color: var(--lgm-orange); }
.lgm-header--sombre .wp-block-navigation a:hover, .lgm-header--sombre .wp-block-navigation a:focus-visible { color: var(--lgm-orange); }
@media (max-width: 781px) { .lgm-header--sombre .lgm-logo img { height: 42px; } }

/* Pied de page : logo blanc (version charte sur fond bleu) */

/* Chiffres : bloc constructeur + bloc LiuGong Maroc, séparés */
.lgm-chiffres__titre { color: #fff !important; text-align: center; font-family: var(--lgm-titre); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 2rem !important; }
.lgm-chiffres__titre::after { content: ""; display: block; width: 48px; height: 4px; background: var(--lgm-orange); margin: 14px auto 0; }
.lgm-chiffres .lgm-grid--monde { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.lgm-chiffres__maroc { margin-top: 2.5rem !important; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .2); }
@media (max-width: 781px) { .lgm-chiffres .lgm-grid--monde { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lien vers la gamme complète du constructeur */
.lgm-gamme-complete { margin-top: 32px; padding: 24px 28px; background: var(--lgm-gris-fond); border-left: 4px solid var(--lgm-orange); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.lgm-gamme-complete p { margin: 0; color: var(--lgm-bleu); font-weight: 600; }
.lgm-gamme-complete a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 2px solid var(--lgm-bleu); border-radius: 999px; color: var(--lgm-bleu); font-weight: 700; text-decoration: none; }
.lgm-gamme-complete a:hover, .lgm-gamme-complete a:focus-visible { background: var(--lgm-bleu); color: #fff; }

/* WhatsApp : bulle ronde fixe sur ordinateur et tablette (la barre mobile prend le relais en dessous de 782 px) */
.lgm-wa-flottant { position: fixed; right: 24px; bottom: 24px; z-index: 950; width: 60px; height: 60px; border-radius: 50%; background: #0E8A4C; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.lgm-wa-flottant:hover, .lgm-wa-flottant:focus-visible { transform: scale(1.08); }
.lgm-wa-flottant:focus-visible { outline: 3px solid var(--lgm-orange); outline-offset: 3px; }
.lgm-wa-flottant svg { width: 32px; height: 32px; }
@media (max-width: 781px) { .lgm-wa-flottant { display: none; } }
@media (prefers-reduced-motion: reduce) { .lgm-wa-flottant { transition: none; } }
/* La bulle WhatsApp ne recouvre pas la dernière ligne du pied de page */
@media (min-width: 782px) { .lgm-footer { padding-bottom: 72px; } }
/* Pages juridiques */
.lgm-legal h2 { font-size: 1.5rem; margin-top: 2rem; }
.lgm-legal p, .lgm-legal li { line-height: 1.7; }

/* =====================================================================
   Électrique : l'accent orange devient vert (couleur de la CLG856H-E)
   dans la section « Division électrique » et sur la diapositive électrique.
   ===================================================================== */
.lgm-electrique, .lgm-slide--electrique { --lgm-orange: var(--lgm-vert); --lgm-orange-pale: var(--lgm-vert-pale); }
.lgm-electrique .wp-block-button.is-style-lgm-orange .wp-block-button__link,
.lgm-slide--electrique .wp-block-button.is-style-lgm-orange .wp-block-button__link { box-shadow: 0 8px 20px rgba(72, 200, 60, .45); }
.lgm-electrique .wp-block-button.is-style-lgm-orange .wp-block-button__link:hover,
.lgm-slide--electrique .wp-block-button.is-style-lgm-orange .wp-block-button__link:hover { background: #6BD861; }
/* Barres de progression et commandes du slider en vert quand la diapositive électrique est affichée */
.lgm-slider:has(.lgm-slide--electrique.is-active) { --lgm-orange: var(--lgm-vert); }

/* Pied de page : colonne des liens juridiques sans titre, alignée sur les autres colonnes (ordinateur) */
@media (min-width: 782px) { .lgm-footer__liens--sans-titre { padding-top: calc(.9375rem * 1.5 + 8px); } }

/* Slider de l'accueil : pas de barres de progression, seulement les 3 boutons (précédent, pause, suivant) à droite */
.lgm-slider .lgm-carrousel__puces { display: none; }
.lgm-slider > .lgm-carrousel__ctrl { justify-content: flex-end; }
