.mv-wrap { margin: 1.5em 0; }
.mv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Recherche */
.mv-search { display: flex; gap: .5em; flex-wrap: wrap; margin: 0 0 1.5em; }
.mv-input { flex: 1 1 260px; min-width: 0; padding: .7em .9em; font-size: 1rem; border: 1px solid #c3c4c7; border-radius: 4px; }
.mv-input:focus { outline: 2px solid currentColor; outline-offset: 1px; }
.mv-btn { padding: .7em 1.4em; font-size: 1rem; cursor: pointer; border: 0; border-radius: 4px; background: #111; color: #fff; }
.mv-btn:hover { opacity: .85; }

/* Messages, fil d'Ariane */
.mv-msg, .mv-count { margin: 0 0 1em; }
.mv-crumbs { margin: 0 0 1em; font-size: .95em; }
.mv-subtitle { margin: 1.5em 0 .75em; }
.mv-reset { margin-top: 1.5em; }

/* Grilles de cartes */
.mv-grid { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 1em; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mv-item { margin: 0; padding: 0; }
.mv-card { display: flex; flex-direction: column; gap: .3em; height: 100%; padding: 1em; text-decoration: none; color: inherit; border: 1px solid #dcdcde; border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.mv-card:hover, .mv-card:focus { border-color: currentColor; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.mv-card-thumb img { display: block; width: 100%; height: auto; border-radius: 4px; margin-bottom: .4em; }
.mv-card-title { font-weight: 600; font-size: 1.05em; }
.mv-card-meta { font-size: .9em; opacity: .7; }
.mv-card-langs { font-size: .8em; letter-spacing: .05em; opacity: .7; }
.mv-card--type { min-height: 90px; justify-content: center; }

.mv-pagination { margin: 1em 0; }
.mv-pagination .page-numbers { display: inline-block; padding: .3em .7em; margin-right: .25em; border: 1px solid #dcdcde; border-radius: 4px; text-decoration: none; }
.mv-pagination .current { font-weight: 700; border-color: currentColor; }

/* Page d'un véhicule */
.mv-single { margin: 1.5em 0; }
.mv-meta { display: flex; flex-wrap: wrap; gap: .5em 2em; margin: 0 0 1.5em; }
.mv-meta-item { display: flex; gap: .5em; }
.mv-meta dt { font-weight: 600; margin: 0; }
.mv-meta dd { margin: 0; }
.mv-files { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.mv-file { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; padding: .9em 1.1em; text-decoration: none; color: inherit; border: 1px solid #dcdcde; border-radius: 6px; }
.mv-file:hover, .mv-file:focus { border-color: currentColor; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.mv-file-lang { font-weight: 700; min-width: 7em; }
.mv-file-label { flex: 1 1 auto; }
.mv-file-info { font-size: .85em; opacity: .7; }

/* reCAPTCHA v3 : badge masqué, mention légale affichée sous le formulaire */
.grecaptcha-badge { visibility: hidden; }
.mv-captcha-note { margin: -1em 0 1.5em; font-size: .8em; opacity: .7; }
.mv-error { color: #b32d2e; }

/* Types de véhicules : image en fond de bloc et en bannière */
.mv-card--has-img { position: relative; overflow: hidden; min-height: 170px; justify-content: flex-end; color: #fff; border-color: transparent; background: #222 var(--mv-bg) center / cover no-repeat; isolation: isolate; }
.mv-card--has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .15) 70%); transition: background .2s; }
.mv-card--has-img:hover::before, .mv-card--has-img:focus::before { background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .3) 70%); }
.mv-card--has-img .mv-card-title, .mv-card--has-img .mv-card-meta { color: #fff; opacity: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

.mv-banner { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: .4em; min-height: 240px; margin: 0 0 1.5em; padding: 1.5em; color: #fff; border-radius: 6px; overflow: hidden; background: #222 var(--mv-bg) center / cover no-repeat; }
.mv-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .1) 75%); }
.mv-banner-title { margin: 0; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.mv-banner-desc { margin: 0; max-width: 60ch; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
@media (max-width: 600px) { .mv-banner { min-height: 160px; padding: 1em; } }
