/* MV Infoservices — styles du site */

:root {
	--mv-bleu: #176A90;
	--mv-bleu-fonce: #0F4F6C;
	--mv-bleu-clair: #E3F1F7;
	--mv-jaune: #FFC94A;
	--mv-encre: #13202A;
	--mv-texte: #3C4A54;
	--mv-gris: #5B6670;
	--mv-fond: #F3F7F9;
	--mv-ligne: #DCE6EB;
	--mv-radius: 24px;
	--mv-ombre: 0 12px 32px rgba(19, 32, 42, .08);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--mv-jaune); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text:focus { background: #fff; color: var(--mv-encre); padding: .75rem 1rem; z-index: 100000; }

/* ---------- Boutons ---------- */
.wp-block-button__link { transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; text-decoration: none; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.mv-btn-jaune .wp-block-button__link { background: var(--mv-jaune); color: var(--mv-encre); }
.mv-btn-jaune .wp-block-button__link:hover { background: #FFD66E; color: var(--mv-encre); }
.mv-btn-blanc .wp-block-button__link { background: #fff; color: var(--mv-bleu); }
.mv-btn-blanc .wp-block-button__link:hover { background: var(--mv-bleu-clair); color: var(--mv-bleu-fonce); }
.mv-btn-ghost .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.mv-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.12); color: #fff; }
.mv-btn-contour .wp-block-button__link { background: transparent; color: var(--mv-bleu); box-shadow: inset 0 0 0 2px var(--mv-bleu); }
.mv-btn-contour .wp-block-button__link:hover { background: var(--mv-bleu); color: #fff; }

/* ---------- En-tête ---------- */
.mv-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; }
.admin-bar .mv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mv-header { top: 0; } }
.mv-header.is-scrolled { box-shadow: 0 6px 24px rgba(19,32,42,.08); border-bottom-color: var(--mv-ligne); }
.mv-header-inner { min-height: 76px; }
.mv-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--mv-encre); }
.mv-logo:hover { color: var(--mv-encre); }
.mv-mark { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--mv-bleu); color: #fff; display: grid; place-items: center; font-family: Archivo, sans-serif; font-weight: 900; font-size: 16px; letter-spacing: -.02em; }
.mv-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.mv-logo-name { font-family: Archivo, sans-serif; font-weight: 900; font-size: 1.15rem; }
.mv-logo-sub { font-size: .8rem; color: var(--mv-gris); }
.mv-header .wp-block-navigation { font-weight: 600; font-size: .98rem; }
.mv-header .wp-block-navigation a { text-decoration: none; }
.mv-header .wp-block-navigation-item__content:hover { color: var(--mv-bleu); }
.mv-header .wp-block-navigation__submenu-container { border-radius: 16px; border: 1px solid var(--mv-ligne) !important; box-shadow: var(--mv-ombre); padding: .5rem !important; min-width: 280px !important; }
.mv-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .6rem .8rem !important; border-radius: 10px; }
.mv-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--mv-bleu-clair); }
.mv-header-tel .wp-block-button__link { background: var(--mv-jaune); color: var(--mv-encre); }
.mv-header-tel .wp-block-button__link:hover { background: #FFD66E; color: var(--mv-encre); }
@media (max-width: 960px) { .mv-header-actions { display: none !important; } }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.1rem; font-size: 1.2rem; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; display: grid; place-items: center; }

/* ---------- Héro d'accueil ---------- */
.mv-hero { position: relative; overflow: hidden; isolation: isolate; }
.mv-hero::before, .mv-hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; animation: mv-drift 12s ease-in-out infinite; }
.mv-hero::before { width: 560px; height: 560px; right: -160px; top: -200px; background: #1F7FAA; }
.mv-hero::after { width: 280px; height: 280px; left: -100px; bottom: -60px; background: #1A73A0; animation-delay: -5s; }
.mv-hero h1 { color: #fff; text-transform: uppercase; line-height: .98; letter-spacing: -.03em; }
.mv-hero p { color: #DCEEF6; }
.mv-rotator { color: var(--mv-jaune); display: inline-block; transition: opacity .25s ease, transform .25s ease; }
.mv-rotator.is-changing { opacity: 0; transform: translateY(12px); }
.mv-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(0,0,0,.18); font-size: .9rem; font-weight: 600; color: #fff; }
.mv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mv-jaune); animation: mv-pulse 2.2s ease-out infinite; }
.mv-hero-visual { position: relative; width: min(400px, 82vw); aspect-ratio: 1; margin-inline: auto; }
.mv-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,255,255,.45); animation: mv-spin 40s linear infinite; }
.mv-disc { position: absolute; inset: 11%; border-radius: 50%; background: #2B90BC; display: grid; place-items: center; }
.mv-disc svg { width: 48%; height: auto; }
.mv-badge { position: absolute; padding: .8rem 1.1rem; border-radius: 18px; display: flex; flex-direction: column; line-height: 1.15; box-shadow: 0 14px 30px rgba(0,0,0,.18); animation: mv-float 5s ease-in-out infinite; }
.mv-badge strong { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.mv-badge span { font-size: .8rem; font-weight: 600; }
.mv-badge--jaune { right: -4%; top: 6%; background: var(--mv-jaune); color: var(--mv-encre); }
.mv-badge--blanc { left: -6%; bottom: 10%; background: #fff; color: var(--mv-encre); animation-delay: -2.5s; }
.mv-badge--blanc strong { color: var(--mv-bleu); }

/* Bandeau défilant */
.mv-ticker { background: var(--mv-jaune); color: var(--mv-encre); overflow: hidden; white-space: nowrap; transform: rotate(-1.5deg); margin: 0 -40px; padding: .85rem 0; position: relative; z-index: 2; }
.mv-ticker-track { display: inline-flex; animation: mv-ticker 36s linear infinite; font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; }
.mv-ticker-track span { padding-right: 2.5rem; }

/* ---------- Titres de section ---------- */
.mv-eyebrow { font-family: Archivo, sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mv-bleu); margin-bottom: .4rem !important; }
.mv-dark .mv-eyebrow, .mv-hero .mv-eyebrow { color: #8CC7E0; }
.mv-lead { font-size: var(--wp--preset--font-size--large); }

/* ---------- Sélecteur de panne ---------- */
.mv-pannes-chips { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.mv-chip { min-height: 48px; padding: 0 1.3rem; border-radius: 999px; border: 2px solid #CFDDE4; background: #fff; color: var(--mv-encre); font: 600 1rem/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.mv-chip:hover { border-color: var(--mv-bleu); transform: translateY(-2px); }
.mv-chip[aria-selected="true"] { background: var(--mv-bleu); border-color: var(--mv-bleu); color: #fff; }
.mv-panne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 2rem; padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--mv-radius); background: #fff; box-shadow: var(--mv-ombre); margin-bottom: 1rem; }
.mv-panne h3 { margin: 0 0 .5rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.mv-panne p { margin: 0; font-size: 1.1rem; }
.mv-panne .mv-panne-link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.6rem; border-radius: 999px; background: var(--mv-bleu); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.mv-panne .mv-panne-link:hover { background: var(--mv-bleu-fonce); color: #fff; transform: translateY(-2px); }
.js .mv-panne[hidden] { display: none; }
.js .mv-panne.is-active { animation: mv-in .4s ease-out; }
@media (max-width: 640px) { .mv-panne { grid-template-columns: 1fr; } .mv-panne .mv-panne-link { justify-self: start; } }

/* ---------- Cartes ---------- */
.mv-card { background: #fff; border-radius: var(--mv-radius); padding: clamp(1.4rem, 2.6vw, 1.9rem); box-shadow: var(--mv-ombre); position: relative; transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, color .25s ease; height: 100%; box-sizing: border-box; }
.mv-card h3 { margin: 0; font-size: 1.25rem; transition: color .25s ease; }
.mv-card h3 a { color: inherit; text-decoration: none; }
.mv-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mv-card p { margin: 0; color: var(--mv-gris); font-size: .98rem; transition: color .25s ease; }
.mv-card .mv-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--mv-bleu-clair); color: var(--mv-bleu); display: grid; place-items: center; transition: background-color .25s ease, color .25s ease; margin: 0 0 .9rem; }
.mv-card .mv-ico svg { width: 24px; height: 24px; }
.mv-card--lien:hover, .mv-card--lien:focus-within { transform: translateY(-8px); background: var(--mv-bleu); box-shadow: 0 22px 44px rgba(23,106,144,.32); }
.mv-card--lien:hover h3, .mv-card--lien:focus-within h3 { color: #fff; }
.mv-card--lien:hover p, .mv-card--lien:focus-within p { color: #DCEEF6; }
.mv-card--lien:hover .mv-ico, .mv-card--lien:focus-within .mv-ico { background: var(--mv-jaune); color: var(--mv-encre); }
.mv-card-more { margin-top: .9rem !important; font-weight: 700; color: var(--mv-bleu) !important; font-size: .95rem; transition: color .25s ease; }
.mv-card--lien:hover .mv-card-more { color: var(--mv-jaune) !important; }

/* Étapes */
.mv-step-num { font-family: Archivo, sans-serif; font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--mv-bleu); margin: 0 0 .6rem !important; }

/* Chiffres clés */
.mv-stat strong { display: block; font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--mv-encre); }
.mv-stat span { color: var(--mv-gris); font-size: .95rem; }

/* ---------- Sections sombres et avis ---------- */
.mv-dark { color: #C4D2DA; }
.mv-dark h2, .mv-dark h3 { color: #fff; }
.mv-review { background: #1D2C37; border-radius: var(--mv-radius); padding: clamp(1.4rem, 2.6vw, 2rem); margin: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 1rem; }
.mv-stars { color: var(--mv-jaune); letter-spacing: 3px; font-size: 1.1rem; }
.mv-review blockquote { margin: 0; color: #E8EEF1; font-size: 1.05rem; line-height: 1.6; }
.mv-review figcaption { font-size: .9rem; color: #9FB0BA; margin-top: auto; }

/* Bandeau rendez-vous */
.mv-cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; }
.mv-cta-band::after { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; border-radius: 50%; background: var(--mv-bleu); right: -90px; top: -140px; animation: mv-drift 12s ease-in-out infinite; }
.mv-cta-band h2 { color: #fff; }
.mv-cta-band p { color: #C4D2DA; }

/* ---------- Bandeau de titre des pages ---------- */
.mv-page-hero { position: relative; overflow: hidden; isolation: isolate; }
.mv-page-hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: #1F7FAA; right: -120px; top: -180px; }
.mv-page-hero h1 { color: #fff; }
.mv-page-hero p, .mv-page-hero a { color: #DCEEF6; }

/* Contenu des pages */
.mv-prose h2 { margin-top: 2.6rem; }
.mv-prose h3 { margin-top: 1.8rem; }
.mv-prose ul { padding-left: 1.2rem; }
.mv-prose li { margin-bottom: .35rem; }
.mv-prose li::marker { color: var(--mv-bleu); }
.mv-encadre { background: #fff; border-radius: var(--mv-radius); padding: clamp(1.3rem, 2.6vw, 1.9rem); box-shadow: var(--mv-ombre); border-top: 4px solid var(--mv-jaune); }
.mv-encadre > :first-child { margin-top: 0; }
.mv-encadre > :last-child { margin-bottom: 0; }
.mv-check { list-style: none; padding-left: 0 !important; }
.mv-check li { position: relative; padding-left: 1.9rem; }
.mv-check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--mv-bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* FAQ */
.wp-block-details summary { cursor: pointer; font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.12rem; color: var(--mv-encre); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 44px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--mv-bleu-clair); color: var(--mv-bleu); display: grid; place-items: center; font-size: 1.3rem; transition: transform .25s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: .8rem; }

/* Blog */
.mv-post-card { background: #fff; border-radius: var(--mv-radius); overflow: hidden; box-shadow: var(--mv-ombre); height: 100%; transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.mv-post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(19,32,42,.12); }
.mv-post-card .wp-block-post-featured-image { margin: 0; }
.mv-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.mv-post-card .wp-block-post-title a { color: var(--mv-encre); text-decoration: none; }
.mv-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.wp-block-query-pagination { gap: .5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 999px; background: #fff; text-decoration: none; }
.wp-block-query-pagination .current { background: var(--mv-bleu); color: #fff; }

/* ---------- Pied de page ---------- */
.mv-footer { color: #A9BAC4; }
.mv-footer a { color: #E8EEF1; text-decoration: none; }
.mv-footer a:hover { color: var(--mv-jaune); }
.mv-footer h2, .mv-footer h3 { color: #fff; font-size: 1.05rem; }
.mv-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

/* Barre d'action mobile */
.mv-mobilebar { display: none; }
@media (max-width: 782px) {
	.mv-mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 60; padding: .5rem; border-radius: 999px; background: rgba(19,32,42,.94); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
	.mv-mobilebar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
	.mv-mobilebar .mv-mb-tel { background: var(--mv-jaune); color: var(--mv-encre); }
	.mv-mobilebar .mv-mb-rdv { background: #fff; color: var(--mv-encre); }
	body { padding-bottom: 84px; }
}

/* ---------- Apparition au défilement ---------- */
.js .mv-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .mv-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes mv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes mv-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }
@keyframes mv-spin { to { transform: rotate(360deg); } }
@keyframes mv-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mv-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,201,74,.6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255,201,74,0); } }
@keyframes mv-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .mv-reveal { opacity: 1; transform: none; }
}

/* Menu en mode hamburger jusqu'à 1024 px (tablettes) */
@media (min-width: 600px) and (max-width: 1024px) {
	.mv-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.mv-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}

/* ---------- Sections et mise en page (v1.1) ---------- */
.wp-site-blocks { overflow-x: clip; }
.wp-block-group.mv-section { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); margin-block-start: 0 !important; }
.wp-block-group.mv-section:not(.has-background) + .wp-block-group.mv-section:not(.has-background) { padding-top: 0; }
.wp-block-group.mv-section:has(+ .mv-section--serre) { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.wp-block-group.mv-hero { padding-top: clamp(2.75rem, 6vw, 5rem); padding-bottom: clamp(4.75rem, 9vw, 7.5rem); }
.mv-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important; align-items: center; gap: clamp(2rem, 5vw, 4rem) !important; }
.mv-hero-text { gap: 1.4rem; }
.mv-hero-text .mv-lead { max-width: 34rem; }
.mv-duo { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: center; gap: clamp(2rem, 5vw, 4.5rem) !important; }
@media (max-width: 900px) {
	.mv-hero-grid, .mv-duo { grid-template-columns: minmax(0, 1fr) !important; }
	.mv-hero-visual { width: min(300px, 70vw); }
}
.mv-ticker { margin-top: -1.9rem !important; margin-bottom: 0 !important; }
p.mv-intro { max-width: 680px; margin-left: 0 !important; margin-right: auto !important; font-size: 1.15rem; color: var(--mv-gris); margin-bottom: 2.2rem; }
.mv-dark p.mv-intro { color: #C4D2DA; }
.mv-section > h2 + .wp-block-group, .mv-section > .is-layout-flex + .is-layout-grid, .mv-section > .is-layout-flex + .wp-block-query { margin-top: 2.2rem; }
.mv-stats { gap: 2rem 1.5rem !important; }
.mv-post-card-body { padding: 1.2rem 1.4rem 1.5rem; }
.mv-post-card-body .wp-block-post-date { color: var(--mv-gris); }
.mv-post-card-body .wp-block-post-title { margin-top: .4rem; font-size: 1.2rem; }
.mv-footer { margin-top: 0 !important; }
main > .wp-block-group:last-child:not(.mv-section) { margin-bottom: var(--wp--preset--spacing--50); }

/* Pages de service */
.mv-prose > .mv-lead { color: var(--mv-encre); }
.mv-prose > .wp-block-buttons { margin-top: 1.75rem; }
.mv-prose > .mv-encadre { margin-top: 2rem; margin-bottom: 2rem; }
.mv-encadre--limite { border-top-color: var(--mv-bleu); background: var(--mv-bleu-clair); box-shadow: none; }
.mv-related { margin-top: clamp(3rem, 6vw, 4.5rem) !important; }
.mv-related > h2 { margin: 0 0 1.5rem; }
.mv-related .mv-cards { gap: 1.25rem !important; }
.mv-cards { grid-template-columns: repeat(auto-fill, minmax(min(19.5rem, 100%), 1fr)) !important; }
.mv-dark .is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr)) !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Film d'accueil : fond du héro et séquence d'ouverture (v1.2) ---------- */
.mv-hero-media { position: absolute; inset: 0; z-index: -1; margin: 0 !important; max-width: none !important; overflow: hidden; background: #0A2233; }
.mv-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,32,47,.92) 0%, rgba(15,79,108,.72) 48%, rgba(15,79,108,.36) 100%); }
.mv-hero:has(.mv-hero-media)::before, .mv-hero:has(.mv-hero-media)::after { display: none; }
.mv-hero:has(.mv-hero-media) .mv-ring, .mv-hero:has(.mv-hero-media) .mv-disc { display: none; }
.mv-intro-film { position: fixed; inset: 0; width: 100%; max-width: none !important; margin: 0 !important; z-index: 100001; background: #03080C; display: grid; place-items: center; transition: opacity .6s ease; }
.mv-intro-film[hidden] { display: none; }
.mv-intro-film.is-out { opacity: 0; pointer-events: none; }
.mv-intro-film video { width: 100%; height: 100%; object-fit: cover; }
.mv-intro-film { overflow: hidden; }
@media (max-aspect-ratio: 4/3) { .mv-intro-film video { position: absolute; left: 50%; top: 50%; width: 170vw; max-width: none; height: auto; transform: translate(-50%, -50%); } }
.mv-intro-skip { position: absolute; right: 1.5rem; bottom: 1.5rem; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.35); color: #fff; font: 600 .95rem/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; }
.mv-intro-skip:hover { background: rgba(255,255,255,.16); }
html.mv-intro-on { overflow: hidden; }

/* Titre du héro : le mot qui change garde sa propre ligne, la hauteur du héro ne bouge plus */
.mv-hero h1 .mv-rotator { display: block; white-space: nowrap; }
.mv-hero h1 br { display: none; }

/* Logo vectoriel (M et flèche) dans l'en-tête et le pied de page */
.mv-logo-mark { height: 46px; width: auto; flex: 0 0 auto; display: block; }
.mv-lm { fill: #535050; }
.mv-lf { fill: #2A6690; }
.mv-footer .mv-logo-mark { height: 40px; }
.mv-footer .mv-lm { fill: #FFFFFF; }
.mv-footer .mv-lf { fill: #5CC4F2; }

/* Logo complet horizontal (symbole + lettrage d'origine) */
.mv-logo-full { height: 58px; width: auto; flex: 0 0 auto; display: block; }
.mv-lt { fill: #535050; }
.mv-ls { fill: #231F20; }
/* Logo du pied de page : plus petit et jamais plus large que sa colonne (15/11) */
.mv-footer .mv-logo { max-width: 100%; }
.mv-footer .mv-logo-full { height: auto; width: 240px; max-width: 100%; }
.mv-footer .mv-lt { fill: #FFFFFF; }
.mv-footer .mv-ls { fill: #A9BAC4; }
@media (max-width: 1240px) { .mv-header .mv-logo-full { height: 50px; } }
@media (max-width: 600px) { .mv-header .mv-logo-full { height: 42px; } .mv-footer .mv-logo-full { width: 220px; } }

/* Avis qui se relaient en fondu (deux avis par vignette) */
.mv-review-slot { display: grid; height: 100%; perspective: 1400px; }
.mv-review-slot > .mv-review { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateY(-180deg); transition: transform .85s cubic-bezier(.45, .05, .2, 1); will-change: transform; }
.mv-review-slot > .mv-review.is-on { transform: rotateY(0deg); }
.mv-review-slot > .mv-review.is-out { transform: rotateY(180deg); }
.mv-review-slot { min-height: 290px; }
/* Tablette et mobile : avec le film en fond, les badges du héro passent en ligne sous les boutons */
@media (max-width: 900px) {
	.mv-hero:has(.mv-hero-media) .mv-hero-visual { width: auto; aspect-ratio: auto; margin: 0; display: flex; flex-wrap: wrap; gap: .9rem; }
	.mv-hero:has(.mv-hero-media) .mv-badge { position: static; }
}
@media (min-width: 901px) and (max-width: 1240px) { .mv-badge--jaune { right: 4%; } .mv-badge--blanc { left: 0; } }

/* Bouton du menu sur tablette et smartphone : bien visible, avec le mot « Menu » */
.mv-header .wp-block-navigation__responsive-container-open { grid-auto-flow: column; column-gap: .45rem; padding: 0 1rem 0 .8rem; border-radius: 999px; background: var(--mv-bleu); color: #fff; font: 700 .95rem/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.mv-header .wp-block-navigation__responsive-container-open::after { content: "Menu"; }
.mv-header .wp-block-navigation__responsive-container-open svg { fill: #fff; width: 22px; height: 22px; }
@media (max-width: 600px) { .mv-header .mv-logo-full { height: 34px; } .mv-header-inner { gap: .75rem !important; } }

/* Le flou de l'en-tête enfermait le menu mobile plein écran dans l'en-tête : supprimé */
.mv-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
.mv-header:has(.wp-block-navigation__responsive-container.is-menu-open) { z-index: 100000; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 3.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 1rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; padding: .6rem 0 0 1rem !important; gap: .7rem; font-size: 1.02rem; font-weight: 500; border: 0 !important; box-shadow: none; min-width: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem 1.5rem 2.5rem !important; background-color: #fff !important; animation: none !important; opacity: 1 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 0 !important; text-align: left; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--mv-encre); }
body:has(.wp-block-navigation__responsive-container.is-menu-open) .mv-mobilebar { display: none; }

/* Bouton « Télécharger / imprimer » et mise en page d'impression (PDF) */
.mv-print { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--mv-bleu); color: #fff; font: 700 1rem/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; }
.mv-print:hover { background: var(--mv-bleu-fonce); }
@media print {
	.mv-header, .mv-footer, .mv-mobilebar, .mv-cta-band, .mv-intro-film, .mv-print, #wpadminbar { display: none !important; }
	html { margin-top: 0 !important; }
	body { background: #fff !important; padding: 0 !important; color: #000; font-size: 11pt; }
	.mv-page-hero { background: none !important; padding: 0 0 .5rem !important; margin: 0 0 1rem !important; }
	.mv-page-hero::before { display: none; }
	.mv-page-hero h1 { color: #000 !important; font-size: 18pt; }
	.mv-prose h2 { font-size: 12.5pt; margin-top: 1.2rem; break-after: avoid; }
	.mv-reveal { opacity: 1 !important; transform: none !important; }
	a { color: inherit !important; text-decoration: none; }
}
/* Bouton WhatsApp flottant */
.mv-wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: 0 1.3rem; border-radius: 999px; background: #1FAF54; color: #fff; font: 700 1rem/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.22); transition: transform .2s ease, background-color .2s ease; }
.mv-wa:hover { background: #17994A; color: #fff; transform: translateY(-2px); }
@media (max-width: 782px) { .mv-wa { right: .9rem; bottom: 5.9rem; width: 54px; min-height: 54px; padding: 0; justify-content: center; } .mv-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
body:has(.wp-block-navigation__responsive-container.is-menu-open) .mv-wa { display: none; }
@media print { .mv-wa { display: none !important; } }
/* Formulaire de contact (WPForms) aux couleurs du site */
.wpforms-container .wpforms-field input[type=text], .wpforms-container .wpforms-field input[type=email], .wpforms-container .wpforms-field input[type=tel], .wpforms-container .wpforms-field select, .wpforms-container .wpforms-field textarea { width: 100% !important; max-width: 100% !important; min-height: 48px; padding: .7rem .9rem !important; border: 2px solid #CFDDE4 !important; border-radius: 12px !important; background: #fff !important; font-size: 1rem !important; color: var(--mv-encre) !important; box-sizing: border-box; }
.wpforms-container .wpforms-field input:focus, .wpforms-container .wpforms-field select:focus, .wpforms-container .wpforms-field textarea:focus { border-color: var(--mv-bleu) !important; outline: none; }
.wpforms-container .wpforms-field-label { font-weight: 700 !important; color: var(--mv-encre) !important; }
.wpforms-container button[type=submit] { min-height: 50px; padding: 0 1.8rem !important; border: 0 !important; border-radius: 999px !important; background: var(--mv-bleu) !important; color: #fff !important; font-weight: 700 !important; font-size: 1rem !important; cursor: pointer; }
.wpforms-container button[type=submit]:hover { background: var(--mv-bleu-fonce) !important; }
/* Plan de l'atelier : la carte Google ne se charge qu'au clic */
.mv-map { display: grid; place-items: center; align-content: center; gap: .8rem; min-height: 320px; padding: 1.5rem; border-radius: var(--mv-radius); background: var(--mv-bleu-clair); text-align: center; overflow: hidden; }
.mv-map p { margin: 0; color: var(--mv-gris); font-size: .95rem; }
.mv-map.is-loaded { display: block; padding: 0; min-height: 0; }
.mv-map iframe { display: block; width: 100%; height: 400px; border: 0; }
@media print { .mv-map { display: none !important; } }
.mv-map-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--mv-bleu); color: #fff; font: 700 1rem/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; }
.mv-map-btn:hover { background: var(--mv-bleu-fonce); }
/* Badge des avis du héro : plus grand, cliquable, mène à la zone des avis */
a.mv-badge { text-decoration: none; cursor: pointer; }
.mv-badge--jaune { padding: 1.05rem 1.4rem 1.1rem; border-radius: 22px; gap: .15rem; }
.mv-badge--jaune strong { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.mv-badge--jaune span { font-size: .92rem; }
.mv-badge--jaune .mv-badge-stars { font-size: 1rem; letter-spacing: 2px; color: var(--mv-encre); }
.mv-badge--jaune .mv-badge-more { font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
a.mv-badge--jaune::after { content: ""; position: absolute; inset: -6px; border-radius: 28px; border: 2px solid rgba(255, 201, 74, .7); animation: mv-badge-ring 2.4s ease-out infinite; pointer-events: none; }
a.mv-badge--jaune:hover, a.mv-badge--jaune:focus-visible { background: #FFD66E; color: var(--mv-encre); animation-play-state: paused; box-shadow: 0 0 0 4px #fff, 0 18px 36px rgba(0, 0, 0, .28); }
@keyframes mv-badge-ring { 0% { opacity: .9; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
@media (max-width: 900px) { .mv-hero:has(.mv-hero-media) a.mv-badge--jaune { position: relative; } }
/* En-tête qui reste visible au défilement : c'est le conteneur du gabarit qui doit être collant */
.wp-block-template-part:has(> .mv-header) { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-block-template-part:has(> .mv-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-block-template-part:has(> .mv-header) { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-block-template-part:has(> .mv-header) { top: 0; } }
.wp-block-template-part:has(.wp-block-navigation__responsive-container.is-menu-open) { z-index: 100000; }
.wp-block-template-part > .mv-header { position: static; }

/* Citation (v1.3) */
.wp-block-quote { border-left: 4px solid var(--wp--preset--color--accent, #FFC94A); background: #fff; border-radius: 0 16px 16px 0; padding: 1.25rem 1.5rem; margin-block: 2rem; box-shadow: 0 6px 24px rgba(23,106,144,.08); }
.wp-block-quote p { font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.4; color: #176A90; margin: 0 0 .6rem; }
.wp-block-quote cite { font-style: normal; font-size: .95rem; color: #3c4a54; }

/* Galerie (v1.4) */
.mv-galerie.wp-block-gallery.has-nested-images { gap: 1.25rem; margin-block: 1.25rem 2.5rem; }
.mv-galerie.wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(23,106,144,.08); }
.mv-galerie.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; transition: transform .35s ease; }
.mv-galerie.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }
.mv-galerie.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: #3c4a54; text-shadow: none; text-align: left; font-size: .95rem; line-height: 1.45; padding: .85rem 1rem 1rem; margin: 0; max-height: none; overflow: visible; }
.mv-galerie.wp-block-gallery.has-nested-images figure.wp-block-image::before { display: none; }
@media (max-width: 781px) { .mv-galerie.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - .625rem); } }
@media (max-width: 520px) { .mv-galerie.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .mv-galerie figure.wp-block-image img { transition: none; } .mv-galerie figure.wp-block-image:hover img { transform: none; } }

/* Menu sur une ligne entre 1025 et 1279 px (v1.4) */
@media (min-width: 1025px) and (max-width: 1279px) {
  .mv-header .wp-block-navigation { --navigation-layout-gap: 1rem; gap: 1rem !important; font-size: .95rem; }
  .mv-header .wp-block-navigation .wp-block-navigation__container { gap: 1rem !important; }
  .mv-header-tel .wp-block-button__link { padding-left: .9rem !important; padding-right: .9rem !important; }
}
@media (min-width: 1025px) and (max-width: 1099px) {
  .mv-header .wp-block-navigation, .mv-header .wp-block-navigation .wp-block-navigation__container { gap: .7rem !important; font-size: .9rem; }
}

/* Mot qui change : la colonne du titre ne s'élargit jamais, le script réduit le mot s'il est trop long (v1.5) */
.mv-hero-grid > * { min-width: 0; }
.mv-hero h1 { max-width: 100%; }
.mv-hero h1 .mv-rotator { max-width: 100%; }

/* Titre du héro (v1.6) : même style sur les trois lignes, taille un peu réduite (43 px sur smartphone, 67 px sur grand écran) */
.mv-hero h1.has-hero-font-size { font-size: clamp(2.6rem, 2.19rem + 2.22vw, 4.2rem) !important; }
.mv-hero h1 .mv-h1-a, .mv-hero h1 .mv-h1-b { display: block; }

/* « À Nice » en contour, aligné à droite sous « Réparation » (v1.7, variante A choisie par Marc) */
.mv-hero h1 .mv-h1-b { padding-left: 3.4em; }
@supports (-webkit-text-stroke: 1px #fff) {
  .mv-hero h1 .mv-h1-b { color: transparent; -webkit-text-stroke: max(1.5px, .028em) #fff; }
}

/* Titre du héro (v1.8) : « Réparation » et « à Nice » fixes forment le cadre, le mot qui change est centré entre eux et entre par glissement */
.mv-hero h1.has-hero-font-size { width: fit-content; max-width: 100%; }
.mv-hero h1 .mv-h1-b { padding-left: 0; text-align: right; }
.mv-hero h1 .mv-rotator { contain: inline-size; width: 100%; text-align: center; transition: opacity .32s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
.mv-hero h1 .mv-rotator.is-out { opacity: 0; transform: translateY(-45%); }
.mv-hero h1 .mv-rotator.is-in { opacity: 0; transform: translateY(45%); transition: none; }

/* Transition intro → héro sans à-coup (v1.9) : place de la barre de défilement réservée, fondu plus long */
html { scrollbar-gutter: stable; }
.mv-intro-film { transition: opacity 1s cubic-bezier(.4, 0, .2, 1); }

/* Photos de la galerie : pas d'enregistrement par clic droit, glisser-déposer ou appui long (v1.10) */
.mv-galerie img, .wp-lightbox-overlay img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
