/*
Theme Name: Mix Urbain
Theme URI: https://www.mix-urbain.com/
Description: Thème léger du site Mix Urbain (MP INDUSTRIES). Reprend la présentation historique du site sans constructeur de pages ni extension de diaporama.
Author: MP INDUSTRIES
Version: 1.1.3
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: mixurbain
*/

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
main { margin: 0; }
a { text-decoration: none; }
.wp-block-post-content :is(p, li, td, .wp-block-freeform) a:not(.wp-block-button__link):not(.mu-doc__lien) { text-decoration: underline; text-underline-offset: 2px; }
.wp-block-post-content .mu-article a, .wp-block-post-content .mu-carte a { text-decoration: none !important; }
::selection { background: var(--wp--preset--color--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 2px; }

.mu-surtitre,
.has-serif-italique-font-family {
	font-family: var(--wp--preset--font-family--serif-italique);
	font-style: italic;
	color: #7c7c7c;
	font-size: 18px;
}

/* Sections pleine largeur */
.mu-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.mu-section > .wp-block-columns { gap: clamp(24px, 4vw, 48px); }

/* Boutons */
.wp-block-button.is-style-fantome .wp-block-button__link {
	background: rgba(255, 255, 255, .15);
	border: 1px solid rgba(255, 255, 255, .35);
	color: #fff;
	backdrop-filter: blur(2px);
}
.wp-block-button.is-style-fantome .wp-block-button__link:hover { background: var(--wp--preset--color--orange); border-color: var(--wp--preset--color--orange); }
.wp-block-button.is-style-sombre .wp-block-button__link { background: var(--wp--preset--color--brun); color: #fff; }
.wp-block-button.is-style-sombre .wp-block-button__link:hover { background: var(--wp--preset--color--titre); }

/* ------------------------------------------------------------------ */
/* Bandeau Union européenne (FTJ)                                      */
/* ------------------------------------------------------------------ */

.mu-ftj {
	background: #101010;
	color: #9a9a9a;
	font-size: 11px;
	line-height: 1.45;
	padding: 10px 20px;
	gap: 18px;
}
.mu-ftj__logos { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mu-ftj__ue { display: flex; flex-direction: column; align-items: center; gap: 3px; background: #fff; padding: 5px 7px 4px; margin: 0; }
.mu-ftj__ue img { width: 54px; height: 36px; display: block; }
.mu-ftj__ue span { color: #003399; font-size: 8.5px; line-height: 1.15; text-align: center; font-weight: 600; }
.mu-ftj__logo { background: #fff; padding: 4px; height: 58px; width: auto; display: block; margin: 0; }
.mu-ftj__logo img { height: 50px; width: auto; display: block; }
.mu-ftj__texte { margin: 0; max-width: 1150px; }
.mu-ftj__texte strong { color: #d5d5d5; font-weight: 600; }
@media (max-width: 781px) {
	.mu-ftj { flex-wrap: wrap !important; justify-content: center; text-align: center; }
	.mu-ftj { padding: 8px 12px; gap: 8px; }
	.mu-ftj__logo { height: 44px; } .mu-ftj__logo img { height: 36px; }
	.mu-ftj__texte { font-size: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

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

.mu-entete-zone { position: relative; z-index: 50; height: 0; }
.mu-entete {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(33, 33, 33, .92);
	color: #fff;
	transition: background .25s ease, box-shadow .25s ease;
}
.mu-entete.is-fixe {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.mu-entete.is-fixe .mu-entete__haut { display: none !important; }
.mu-entete__haut {
	padding: 8px 25px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	font-size: 13px;
	min-height: 40px;
}
.mu-entete__haut p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.mu-entete__haut a { color: #fff; }
.mu-entete__haut a:hover { color: var(--wp--preset--color--orange); }
.mu-ico::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 9px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
	opacity: .85;
}
.mu-ico--mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E"); }
.mu-ico--tel { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.mu-entete .wp-block-social-links { gap: 18px; }
.mu-entete .wp-block-social-links .wp-social-link { color: #fff; }
.mu-entete .wp-block-social-links .wp-social-link svg { width: 14px; height: 14px; }

.mu-entete__bas { padding: 16px 25px; min-height: 78px; }
.mu-entete .wp-block-site-logo img { width: 150px; transition: width .25s ease; }
.mu-entete.is-fixe .wp-block-site-logo img { width: 84px; }
.mu-entete.is-fixe .mu-entete__bas { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }

.mu-menu .wp-block-navigation__container { gap: 4px; }
.mu-menu .wp-block-navigation-item__content {
	display: block;
	padding: 4px 14px !important;
	line-height: 30px;
	border: 1px solid transparent;
	color: #fff;
}
.mu-menu .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--orange); }
.mu-menu .current-menu-item > .wp-block-navigation-item__content,
.mu-menu .is-actif > .wp-block-navigation-item__content { border-color: rgba(255, 255, 255, .45); }
.mu-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 15px; padding: 8px 0 !important; }
.mu-menu .wp-block-navigation__responsive-container-open svg,
.mu-menu .wp-block-navigation__responsive-container-close svg { fill: #fff; width: 28px; height: 28px; }

@media (max-width: 781px) {
	.mu-entete__haut { padding: 6px 16px; font-size: 12px; }
	.mu-entete__haut .wp-block-social-links { display: none; }
	.mu-entete__bas { padding: 12px 16px; min-height: 64px; }
	.mu-entete .wp-block-site-logo img { width: 104px; }
}

/* Pages sans diaporama : on réserve la hauteur de l'en-tête dans le bandeau */
.mu-bandeau { padding-top: 150px !important; padding-bottom: 50px !important; }
.mu-bandeau .wp-block-post-title,
.mu-bandeau .wp-block-query-title,
.mu-bandeau h1 { color: #fff; margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.mu-bandeau .mu-bandeau__meta { color: rgba(255, 255, 255, .85); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 10px; }
.mu-bandeau .mu-bandeau__meta a { color: #fff; }

/* ------------------------------------------------------------------ */
/* Diaporama de l'accueil                                              */
/* ------------------------------------------------------------------ */

.mu-diaporama { position: relative; overflow: hidden; background: #212121; min-height: min(100vh, 920px); }
.mu-diaporama > .mu-diapo {
	position: absolute !important;
	inset: 0;
	min-height: 100% !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s linear .9s;
	padding-top: 140px;
}
.mu-diaporama > .mu-diapo.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.mu-diaporama:not(.is-pret) > .mu-diapo:first-child { opacity: 1; visibility: visible; }
.mu-diapo .wp-block-cover__image-background { transform: scale(1.04); transition: transform 7s ease-out; }
.mu-diapo.is-active .wp-block-cover__image-background { transform: scale(1); }
.mu-diapo__surtitre { font-style: italic; font-weight: 600; font-size: clamp(17px, 2vw, 22px); margin: 0; color: #fff; }
.mu-diapo__titre {
	font-family: var(--wp--preset--font-family--bree-serif);
	font-weight: 400;
	letter-spacing: 0;
	font-size: clamp(30px, 4.2vw, 45px);
	line-height: 1.12;
	color: #fff;
	margin: 6px 0 22px;
}
.mu-diaporama__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 34px;
	height: 34px;
	border: 0;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.mu-diaporama__nav:hover { background: var(--wp--preset--color--orange); }
.mu-diaporama__nav--prec { left: 16px; }
.mu-diaporama__nav--suiv { right: 16px; }
.mu-diaporama__points { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.mu-diaporama__points button { width: 10px; height: 10px; padding: 0; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; }
.mu-diaporama__points button[aria-current="true"] { background: #fff; }

/* ------------------------------------------------------------------ */
/* Tuiles des gammes (galerie)                                         */
/* ------------------------------------------------------------------ */

.mu-tuiles.wp-block-gallery { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px !important; }
.mu-tuiles.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: auto !important; margin: 0 !important; }
@media (max-width: 781px) { .mu-tuiles.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; } }
.mu-tuiles.wp-block-gallery .wp-block-image { position: relative; overflow: hidden; aspect-ratio: 8 / 7; }
.mu-tuiles.wp-block-gallery .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.mu-tuiles.wp-block-gallery .wp-block-image:hover img { transform: scale(1.06); }
.mu-tuiles.wp-block-gallery .wp-block-image a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); transition: background .3s ease; }
.mu-tuiles.wp-block-gallery .wp-block-image:hover a::after { background: rgba(0, 0, 0, .45); }
.mu-tuiles.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	inset: 0;
	top: 0;
	display: grid;
	place-items: center;
	text-align: center;
	background: none;
	max-height: none;
	padding: 12px;
	color: #fff;
	font-size: clamp(17px, 1.7vw, 22px);
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1.25;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
	pointer-events: none;
	z-index: 2;
}


/* ------------------------------------------------------------------ */
/* Sections de l'accueil                                               */
/* ------------------------------------------------------------------ */

.mu-engagement h2 { color: var(--wp--preset--color--titre); }
.mu-engagement .mu-engagement__chapo { color: var(--wp--preset--color--titre); font-weight: 700; }
.mu-engagement p { color: #3a2a1a; }

.mu-atouts h3 { color: #fff; margin-top: 18px; }
.mu-atouts p { color: rgba(255, 255, 255, .78); font-size: 14px; }
.mu-atouts .mu-atout__icone img { width: 52px; height: 52px; margin: 0 auto; display: block; }

.mu-video { position: relative; margin: 0; cursor: pointer; }
.mu-video img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.mu-video a::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(33, 33, 33, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 7l8 5-8 5z'/%3E%3C/svg%3E") center / 30px no-repeat;
	transition: transform .2s ease, background-color .2s ease;
}
.mu-video:hover a::after { transform: scale(1.08); background-color: var(--wp--preset--color--orange); }
.mu-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ------------------------------------------------------------------ */
/* Cartes produits / articles                                          */
/* ------------------------------------------------------------------ */

.mu-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mu-cartes.mu-cartes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .mu-cartes, .mu-cartes.mu-cartes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .mu-cartes, .mu-cartes.mu-cartes--4 { gap: 14px; } }
.mu-cartes > li { margin: 0; }

.mu-carte { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.mu-carte > * { margin: 0 !important; }
.mu-carte .mu-carte__image,
.mu-carte a.mu-carte__image { display: block; border: 1px solid #e4e4e4; background: #fff; aspect-ratio: 1; overflow: hidden; margin-bottom: 8px !important; }
.mu-carte .mu-carte__image img { width: 100%; height: 100% !important; object-fit: contain; transition: transform .4s ease; }
.mu-carte:hover .mu-carte__image img { transform: scale(1.04); }
.mu-carte__gamme,
.mu-carte .mu-carte__gamme a { align-self: flex-start; display: inline-block; background: var(--wp--preset--color--gris); color: #fff !important; font-size: 10px; line-height: 1; padding: 6px 9px; text-decoration: none !important; }
.mu-carte div.mu-carte__gamme { background: none; padding: 0; }
.mu-carte .mu-carte__gamme .wp-block-post-terms__separator { display: none; }
.mu-carte .mu-carte__gamme a + a { display: none; }
.mu-carte__titre,
.mu-carte .mu-carte__titre { font-size: 14px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.3; margin-top: 6px !important; }
.mu-carte__titre a { color: var(--wp--preset--color--titre); text-decoration: none !important; }
.mu-carte__titre a:hover { color: var(--wp--preset--color--orange); }
.mu-ref { font-size: 12px; color: #9a9a9a; margin: 0; letter-spacing: .04em; }
.mu-ref:empty { display: none; }

/* Articles d'actualité */
.mu-article { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.mu-article > * { margin: 0 !important; }
.mu-article__visuel { position: relative; overflow: hidden; }
.mu-article__visuel .wp-block-post-featured-image { margin: 0; }
.mu-article__visuel .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .5s ease; }
.mu-article:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.mu-article__visuel .mu-article__legende {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 16px 14px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
	pointer-events: none;
}
.mu-article__legende > * { margin: 0 !important; }
.mu-article__legende .wp-block-post-terms a { display: inline-block; background: var(--wp--preset--color--gris); color: #fff; font-size: 10px; padding: 5px 8px; pointer-events: auto; }
.mu-article__legende .wp-block-post-title { font-size: 17px !important; line-height: 1.3; margin-top: 8px !important; }
.mu-article__legende .wp-block-post-title a { color: #fff; pointer-events: auto; }
.mu-article .wp-block-post-excerpt { font-size: 14px; }
.mu-article .wp-block-post-excerpt__more-link { font-size: 12px; font-weight: 600; color: var(--wp--preset--color--titre); }

/* Barre latérale du catalogue */
.mu-lateral { background: #f5f5f5; padding: 28px 24px; align-self: flex-start; }
.mu-lateral h2 { font-size: 13px !important; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 14px; }
.mu-lateral .wp-block-search__input { border: 1px solid #ddd; font-size: 13px; padding: 9px 12px; }
.mu-lateral .wp-block-search__button { padding: 8px 14px; background: var(--wp--preset--color--orange); color: var(--wp--preset--color--titre); border: 0; }
.mu-gammes { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.mu-gammes li { padding: 7px 0; border-bottom: 1px solid #e3e3e3; }
.mu-gammes li::before { content: "▪"; color: #b0b0b0; margin-right: 8px; font-size: 10px; }
.mu-gammes a { color: var(--wp--preset--color--gris-texte); }
.mu-gammes a:hover, .mu-gammes .is-current a { color: var(--wp--preset--color--orange); }
.mu-gammes__nb { color: #9a9a9a; font-size: 12px; }

/* Pagination */
.wp-block-query-pagination { margin-top: 40px; gap: 6px; font-size: 13px; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-block; min-width: 34px; padding: 6px 10px; text-align: center; border: 1px solid #e0e0e0; color: var(--wp--preset--color--titre); }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--wp--preset--color--orange); border-color: var(--wp--preset--color--orange); color: var(--wp--preset--color--titre); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Fiche produit                                                       */
/* ------------------------------------------------------------------ */

.mu-fiche__visuel .wp-block-post-featured-image { border: 1px solid #e4e4e4; padding: 16px; background: #fff; }
.mu-fiche__visuel .wp-block-post-featured-image img { width: 100%; object-fit: contain; }
.mu-fiche__titre { font-size: 26px !important; text-transform: uppercase; margin: 0 !important; }
.mu-fiche .mu-ref { font-size: 13px; }
.mu-fiche__desc { font-size: 14px; line-height: 1.75; border-top: 1px solid #eee; padding-top: 18px; }
.mu-fiche__desc p { margin: 0 0 .9em; }
.mu-fiche__desc b, .mu-fiche__desc strong { color: var(--wp--preset--color--titre); }
.mu-fiche__meta { font-size: 13px; color: #8a8a8a; }
.mu-fiche__meta a { color: var(--wp--preset--color--titre); text-decoration: underline; }
.mu-fiche__meta .wp-block-post-terms__prefix { color: #8a8a8a; }

/* ------------------------------------------------------------------ */
/* Documents (Abonnés, catalogues Drive)                               */
/* ------------------------------------------------------------------ */

.mu-documents { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mu-doc { border: 1px solid #e4e4e4; background: #fff; display: flex; flex-direction: column; gap: 6px; padding: 0 0 14px; margin: 0; }
.mu-doc > * { padding: 0 14px; }
.mu-doc__vignette { display: block; padding: 0 !important; aspect-ratio: 3 / 4; background: #f3f3f3; overflow: hidden; }
.mu-doc__vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mu-doc__type { display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 28px; color: #c5c5c5; }
.mu-doc__titre { font-weight: 700; color: var(--wp--preset--color--titre); line-height: 1.3; margin-top: 8px; font-size: 14px; }
.mu-doc__meta { font-size: 12px; color: #8a8a8a; }
.mu-doc__lien { margin-top: auto; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--orange-texte) !important; text-decoration: none !important; }

.mu-connexion { max-width: 420px; background: #f5f5f5; padding: 26px 28px; }
.mu-connexion--ok { max-width: none; }
.mu-connexion label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.mu-connexion input[type="text"], .mu-connexion input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid #d5d5d5; font: inherit; }
.mu-connexion .login-remember label { font-weight: 400; }
.mu-connexion input[type="submit"] { background: var(--wp--preset--color--orange); color: var(--wp--preset--color--titre); border: 0; padding: 12px 22px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.mu-connexion__oubli { font-size: 13px; margin: 6px 0 0; }
.mu-connexion__pages { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 14px 0 0; }
.mu-connexion__pages a { display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid #ddd; font-size: 13px; text-decoration: none !important; }
.mu-reserve { background: #fff7ec; border-left: 3px solid var(--wp--preset--color--orange); padding: 12px 16px; }

/* Onglets convertis (WPBakery -> Détails) */
.wp-block-details { border-bottom: 1px solid #e4e4e4; padding: 14px 0; }
.wp-block-details summary { font-weight: 700; color: var(--wp--preset--color--titre); cursor: pointer; font-size: 17px; }
.wp-block-details[open] summary { color: var(--wp--preset--color--orange); margin-bottom: 12px; }
.mu-encart { background: #f1f1f1; padding: 0 0 18px; margin-bottom: 24px; }
.mu-encart > * { margin-left: 0; margin-right: 0; }
.mu-encart > :not(.wp-block-image) { padding-left: 14px; padding-right: 14px; }
.mu-encart > .wp-block-image { margin: 0 0 14px; }
.mu-encart > .wp-block-image img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; display: block; }
.mu-encart h3 { font-size: 15px !important; margin: 0 0 10px; letter-spacing: 0; }
.mu-encart h3 a { color: var(--wp--preset--color--titre); text-decoration: none !important; }
.mu-encart p { font-size: 13px; line-height: 1.6; margin: 0 0 8px; }

/* Formulaire de contact */
.wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--titre); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; padding: 11px 13px; margin-top: 5px; border: 1px solid #d8d8d8; background: #fff; font: inherit; font-weight: 400; }
.wpcf7 textarea { min-height: 160px; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: 13px; }
.wpcf7 input[type="submit"] { background: var(--wp--preset--color--orange); color: var(--wp--preset--color--titre); border: 0; padding: 14px 26px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--titre); color: #fff; }

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

.mu-pied { background: var(--wp--preset--color--nuit); color: var(--wp--preset--color--pale); font-size: 14px; }
.mu-pied h2 { color: #fba032 !important; font-size: 14px !important; text-transform: uppercase; letter-spacing: 0; margin: 0 0 22px; }
.mu-pied a { color: var(--wp--preset--color--pale); }
.mu-pied a:hover { color: #fff; }
.mu-pied p { margin: 0 0 14px; }
.mu-pied .mu-gammes li { border-color: rgba(255, 255, 255, .07); padding: 6px 0; }
.mu-pied .mu-gammes li::before { color: rgba(255, 255, 255, .25); }
.mu-pied .mu-gammes a { color: var(--wp--preset--color--pale); }
.mu-pied .mu-gammes__nb { display: none; }
.mu-pied .wp-block-latest-posts li { padding: 0 0 14px; margin: 0; }
.mu-pied__bas { border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; color: #6d7579; }
.mu-pied__bas a { color: #8e989c; }
.mu-pied__liens { list-style: none; padding: 0; margin: 12px 0 0; }
.mu-pied__liens li { margin: 0 0 6px; }

/* Haut de page */
.mu-haut {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 40;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: rgba(33, 33, 33, .85);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
}
.mu-haut.is-visible { opacity: 1; visibility: visible; }
.mu-haut:hover { background: var(--wp--preset--color--orange); }

/* Impression : pas d'en-tête fixe ni de bandeaux */
@media print {
	.mu-entete, .mu-haut, .mu-cookies, .mu-diaporama__nav, .mu-diaporama__points { display: none !important; }
	.mu-bandeau { padding-top: 20px !important; }
}

/* Pages : pas de double marge quand le contenu commence/finit par une section colorée */
.mu-page-contenu:has(> .wp-block-post-content > .mu-section:first-child) { padding-top: 0 !important; }
.mu-page-contenu:has(> .wp-block-post-content > .mu-section:last-child) { padding-bottom: 0 !important; }
@media (max-width: 781px) { .mu-diaporama { min-height: 78vh; } .mu-diaporama > .mu-diapo { padding-top: 120px; } }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* Lien hors bouton au survol : orange foncé, lisible sur fond blanc */
.mu-gammes a:hover, .mu-gammes .is-current a, .mu-carte__titre a:hover { color: var(--wp--preset--color--orange-texte); }
.wp-block-details[open] summary { color: var(--wp--preset--color--orange-texte); }
/* Pot de miel anti-robots du formulaire */
.mu-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Menu mobile ouvert : liens centrés, au-dessus de tout */
.mu-menu .wp-block-navigation__responsive-container.is-menu-open { z-index: 100000; }
.mu-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: center; gap: 6px; }

/* Accueil : en-tête transparent sur la photo, grand logo blanc (comme le site historique).
   Au défilement, l'en-tête redevient la barre sombre compacte. */
body.home .mu-entete:not(.is-fixe) { background: linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .12) 70%, rgba(0, 0, 0, 0)); }
body.home .mu-entete:not(.is-fixe) .mu-entete__haut { border-bottom-color: transparent; }
body.home .mu-entete:not(.is-fixe) .wp-block-site-logo img { width: 200px; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
body.home .mu-entete:not(.is-fixe) .mu-menu .wp-block-navigation-item__content,
body.home .mu-entete:not(.is-fixe) .mu-entete__haut a { text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
@media (max-width: 781px) { body.home .mu-entete:not(.is-fixe) .wp-block-site-logo img { width: 130px; } }
/* Pas d'espace parasite entre le bandeau UE et la photo / le bandeau de titre */
main.wp-block-group > * { margin-block-start: 0 !important; }
