/*
Theme Name: MOTARD
Theme URI: https://motard-motocycles.com
Author: MOTARD
Description: Thème sur mesure du site MOTARD Motocycles (marque marocaine). Types de contenu: Motos et Revendeurs.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: motard
*/

:root {
  --red: #e4002b;
  --red-dark: #8f001a;
  --black: #000;
  --ink: #0b0b0b;
  --grey: #3a3a3a;
  --muted: #8a8a8a;
  --white: #fff;
  --radius: 14px;
  --wrap: 1120px;
  --font-title: "Poppins", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-title); font-weight: 800; text-transform: uppercase;
  line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--light { background: var(--white); color: var(--black); }
.section--light .muted { color: #666; }
.muted { color: var(--muted); }
.screen-reader-text { position: absolute; left: -9999px; }

/* Eyebrow tag */
.tag {
  display: inline-block; background: var(--red); color: #fff;
  font: 700 .66rem/1 var(--font-title); letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 12px 6px 10px; margin-bottom: 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

/* Buttons */
.btn {
  display: inline-block; font: 700 .85rem var(--font-title); padding: 13px 22px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #ff1744; }
.btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--sm { padding: 8px 14px; font-size: .72rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img, .brand svg { height: 40px; width: auto; }
.brand-text { font: 800 1.4rem var(--font-title); letter-spacing: .08em; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font: 700 .72rem var(--font-title); letter-spacing: .06em; text-transform: uppercase; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  background: radial-gradient(120% 120% at 90% 0%, #6b0014 0%, #000 60%); overflow: hidden;
}
.hero--home { min-height: 80vh; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center right; opacity: .75; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 20%, transparent 80%); }
.hero .wrap { position: relative; z-index: 1; padding: 80px 0; }
.hero p.lead { max-width: 460px; color: #ddd; font-size: 1.05rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero--page { min-height: 340px; background: linear-gradient(90deg, #000 25%, #a00020 100%); }
.hero--page .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero--page p { color: #eee; text-align: justify; }

/* Trust bar */
.trustbar { background: #000; border-top: 1px solid #1c1c1c; }
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar div { padding: 20px 18px; border-left: 2px solid var(--red); margin: 14px 0; }
.trustbar strong { display: block; font: 700 .72rem var(--font-title); letter-spacing: .08em; text-transform: uppercase; }
.trustbar span { font-size: .8rem; color: var(--muted); }

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }

/* Moto cards */
.moto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.moto-grid--home { grid-template-columns: repeat(2, 1fr); }
.moto-card {
  background: #fff; color: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #e4e4e4; box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.moto-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.moto-card__img { aspect-ratio: 4/3.2; display: grid; place-items: center; background: #fff; padding: 12px; }
.moto-card__img img { max-height: 100%; width: auto; object-fit: contain; }
.moto-card__body { padding: 14px 18px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.moto-card__cat { font: 700 .55rem var(--font-title); letter-spacing: .18em; color: var(--red); text-transform: uppercase; }
.moto-card__name { font: 800 1.35rem var(--font-title); margin: 2px 0 0; text-transform: uppercase; }
.moto-card__cc { font: 600 .7rem var(--font-title); color: #555; }
.moto-card--dark { background: linear-gradient(180deg, #1a1a1a, #000); color: #fff; border-color: #222; }
.moto-card--dark .moto-card__img { background: transparent; }
.moto-card--dark .moto-card__cc { color: #aaa; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button {
  font: 700 .75rem var(--font-title); padding: 8px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid #999; background: #fff; color: #000;
}
.filters button.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* Numbered cards */
.num-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.num-card {
  position: relative; border-radius: 12px; padding: 22px 100px 22px 22px;
  background: #3a3a3a; min-height: 92px; overflow: hidden;
}
.num-card--red { background: linear-gradient(90deg, #8f001a, #000); }
.num-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.num-card p { font-size: .82rem; color: #ddd; margin: 0; }
.num-card .n {
  position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: var(--red);
  display: grid; place-items: center; font: 800 2.2rem var(--font-title); border-radius: 12px;
}

/* Feature block with image */
.feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: #111 center/cover; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.2)); }
.feature > * { position: relative; z-index: 1; }

/* Pro band */
.pro-band { background: linear-gradient(90deg, #000 30%, #3a0010 100%); }
.pro-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.pro-list { list-style: none; padding: 0; margin: 0; }
.pro-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.7); }
.pro-list strong { display: block; font: 700 .85rem var(--font-title); text-transform: uppercase; }
.pro-list span { font-size: .85rem; color: #ccc; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: #111; border-radius: 10px; overflow: hidden; }
.post-card__img { aspect-ratio: 16/10; background: #222 center/cover; }
.post-card__body { padding: 16px; }
.post-card h3 { font-size: .95rem; text-transform: uppercase; }
.post-card p { font-size: .8rem; color: #aaa; }

/* CTA */
.cta {
  border-radius: var(--radius); text-align: center; padding: 70px 24px;
  background: linear-gradient(100deg, #a8001f, #000);
}
.cta img, .cta svg { height: 44px; margin: 0 auto 18px; }

/* Finder */
.finder { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.panel {
  background: linear-gradient(135deg, #000 50%, #6b0014); border-radius: var(--radius);
  padding: 32px; color: #fff;
}
.finder__col { display: flex; flex-direction: column; gap: 20px; }
.dealer-list { max-height: 360px; overflow: auto; display: grid; gap: 12px; }
.dealer { background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.08); }
.dealer.is-nearest { border-color: var(--red); }
.dealer h4 { font-size: .95rem; margin-bottom: 4px; }
.dealer p { margin: 0; font-size: .85rem; color: #ccc; }
.dealer .dist { color: var(--red); font-weight: 700; }
#motard-map { min-height: 520px; border-radius: var(--radius); background: #111; z-index: 0; }
.search-row { display: flex; gap: 8px; margin: 14px 0; }
.search-row input { flex: 1; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: #aaa; }
input, select, textarea {
  background: transparent; border: 1px solid rgba(255,255,255,.7); border-radius: 4px;
  color: #fff; padding: 10px; font: inherit; width: 100%;
}
select option { color: #000; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); }
.form-card { background: linear-gradient(135deg, #000 40%, #6b0014); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.notice--ok { background: #0f5132; }
.notice--ko { background: #842029; }

/* Contact split */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section--light h2 { color: #000; }

/* Footer */
.site-footer { border: 1px solid var(--red); border-width: 1px 0 0; padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-grid > div:not(:first-child) { border-left: 1px solid var(--red); padding-left: 16px; }
.site-footer h5 { font: 600 .9rem var(--font-title); margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li, .site-footer p { font: 400 .68rem var(--font-title); color: #999; text-transform: uppercase; margin-bottom: 5px; }
.site-footer p { text-transform: none; line-height: 1.5; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--red); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 .62rem var(--font-title); color: #999; text-transform: uppercase; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #000; padding: 20px; border-bottom: 1px solid #222; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .header-cta { display: none; }
  .trustbar .wrap, .moto-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .split, .pro-band .wrap, .finder, .contact-split, .hero--page .wrap, .num-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:not(:first-child) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .moto-grid, .moto-grid--home, .post-grid, .trustbar .wrap, .form-row { grid-template-columns: 1fr; }
  .moto-card__img { aspect-ratio: 4/3; }
}

/* ---- Fidélité maquette ---- */
.hero--img { background-size: cover; background-position: center right; }
.hero--m { position: relative; }
.hero--m::after {
  content: ""; position: absolute; right: 4%; top: 50%; width: 300px; height: 300px;
  transform: translateY(-50%); background: var(--m-logo) center/contain no-repeat; opacity: .55; pointer-events: none;
}
.hero--m .wrap { z-index: 2; }
.brand img { height: 44px; width: 44px; }

.photo-card { border-radius: var(--radius); overflow: hidden; background: #0b0b0b; border: 1px solid #1c1c1c; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .25s; }
.photo-card:hover { transform: translateY(-5px); }
.photo-card__img { display: block; aspect-ratio: 4/4.2; background-size: cover; background-position: center; }
.photo-card__body { padding: 18px 20px 22px; background: linear-gradient(180deg, #111, #000); position: relative; }
.photo-card__body h3 { color: #fff; font-size: 1.5rem; margin: 2px 0 6px; }
.photo-card__body p { color: #bbb; font-size: .82rem; margin-bottom: 14px; max-width: 70%; }
.photo-card__body .btn { position: absolute; right: 20px; bottom: 22px; }

.blog-card { position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.blog-card__img { display: block; aspect-ratio: 4/3.4; background-size: cover; background-position: center; }
.blog-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #000 75%); }
.blog-card__body { position: relative; z-index: 1; margin-top: -90px; padding: 0 20px 20px; }
.blog-card h3 { font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 10px; }
.blog-card p { font-size: .78rem; color: #bbb; max-width: 70%; margin-bottom: 12px; }
.blog-card .btn { position: absolute; right: 20px; bottom: 20px; }

.hero--page h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
@media (max-width: 900px) { .hero--m::after { display: none; } }

/* =====================================================
   MOBILE-FIRST / INTERACTIVITÉ
   ===================================================== */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom); }
:target, [id] { scroll-margin-top: 90px; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn--sm { min-height: 40px; }
.btn:active { transform: scale(.97); }

/* Header intelligent */
.site-header { transition: transform .3s ease, background .3s; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { background: rgba(0,0,0,.96); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.nav-cta { display: none; }
.nav-toggle { width: 44px; height: 44px; position: relative; padding: 0; font-size: 0; }
.nav-toggle::before, .nav-toggle::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.nav-toggle::before { top: 16px; box-shadow: 0 7px 0 #fff; }
.nav-toggle::after { top: 30px; }
.nav-toggle.is-open::before { top: 22px; box-shadow: none; transform: rotate(45deg); }
.nav-toggle.is-open::after { top: 22px; transform: rotate(-45deg); }

/* Apparition avec décalage */
.stagger { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.stagger.is-in { opacity: 1; transform: none; }
.moto-card, .photo-card { will-change: transform; }
.moto-card.stagger.is-in, .photo-card.stagger.is-in { transition: transform .15s ease-out, box-shadow .25s, opacity .6s; }
@media (prefers-reduced-motion: reduce) { .stagger { opacity: 1; transform: none; transition: none; } .site-header { transition: none; } }

/* Filtres : chips défilables */
.filters-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.filters-wrap .filters { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 4px 2px; }
.filters-wrap .filters::-webkit-scrollbar { display: none; }
.filters button { white-space: nowrap; min-height: 44px; scroll-snap-align: center; transition: background .2s, color .2s; }
#moto-count { white-space: nowrap; font-size: .85rem; }

/* Carte revendeur */
.dealer__actions { display: flex; gap: 8px; margin-top: 10px; }
.dealer { cursor: pointer; transition: border-color .2s, background .2s; }
.dealer:hover { background: rgba(255,255,255,.1); }

/* Barre d'actions mobile */
.mobile-bar { display: none; }

/* ---------- Tablette ---------- */
@media (max-width: 900px) {
  :root { --wrap: 100%; }
  body { font-size: 16px; padding-bottom: 76px; }
  .section { padding: 56px 0; }
  .wrap { width: calc(100% - 32px); }
  .site-header .wrap { height: 64px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: flex; flex-direction: column; justify-content: center; gap: 28px;
    position: fixed; inset: 64px 0 0 0; padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
    background: radial-gradient(120% 80% at 100% 0%, #5a0012 0%, #000 65%);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .3s, visibility .3s; overflow-y: auto; border: 0;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav li a { display: block; font-size: 1.7rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); letter-spacing: 0; }
  .nav-cta { display: inline-flex; width: 100%; font-size: 1rem; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: 0; }
  .hero--home { min-height: calc(100svh - 64px); }
  .hero .wrap { padding: 56px 0; }
  .hero__bg { background-position: 70% center; opacity: .6; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, #000 95%); }
  .hero--page .wrap { gap: 18px; }
  .hero--page p { text-align: left; }
  .hero--img { background-position: 70% center; }
  .hero__actions .btn { flex: 1 1 100%; }

  .trustbar .wrap { grid-template-columns: 1fr 1fr; }
  .trustbar div { margin: 8px 0; padding: 12px 14px; }

  .split { gap: 16px; margin-bottom: 28px; }
  .moto-grid, .moto-grid--home { grid-template-columns: 1fr 1fr; gap: 14px; }
  .moto-card__body { flex-direction: column; align-items: flex-start; padding: 12px 14px 16px; }
  .moto-card__name { font-size: 1.1rem; }
  .moto-card__img { aspect-ratio: 1/1; padding: 6px; }
  .photo-card__img { aspect-ratio: 1/1; }
  .photo-card__body { padding: 14px 14px 16px; }
  .photo-card__body h3 { font-size: 1.15rem; }
  .photo-card__body p { max-width: 100%; font-size: .78rem; }
  .photo-card__body .btn { position: static; }

  /* Carrousel tactile (accueil) */
  .moto-grid--home, .post-grid {
    display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 4px 16px 16px; scrollbar-width: none;
  }
  .moto-grid--home::-webkit-scrollbar, .post-grid::-webkit-scrollbar { display: none; }
  .moto-grid--home > *, .post-grid > * { flex: 0 0 78%; scroll-snap-align: center; }

  .blog-card p { max-width: 100%; }
  .blog-card .btn { position: static; }

  .num-grid { gap: 12px; }
  .num-card { padding: 18px 84px 18px 18px; }
  .num-card .n { width: 64px; font-size: 1.8rem; }
  .feature { min-height: 0; }
  .feature > .wrap, .feature > div { padding: 28px 18px !important; }

  .pro-band .wrap { gap: 28px; }
  .cta { padding: 48px 20px; }

  .finder { gap: 16px; }
  .finder > div:last-child, #motard-map { order: -1; }
  #motard-map { min-height: 340px; height: 340px; }
  .finder__col { gap: 16px; }
  .panel { padding: 22px; }
  .dealer-list { max-height: none; }
  #use-position { width: 100%; }

  .contact-split { gap: 28px; }
  input, select, textarea { font-size: 16px; min-height: 46px; }
  .form-card { padding: 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:not(:first-child) { border-left: 2px solid var(--red); padding-left: 12px; }
  .footer-bottom { flex-direction: column; }

  .mobile-bar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.94); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.1); transform: translateY(110%); transition: transform .3s;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { padding: 10px 6px; font-size: .78rem; }
  body.menu-open .mobile-bar { transform: translateY(110%); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 560px) {
  h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .section { padding: 44px 0; }
  .hero--home .wrap { padding: 40px 0 56px; }
  .trustbar strong { font-size: .66rem; }
  .trustbar span { font-size: .72rem; }
  .form-row { grid-template-columns: 1fr; }
  .num-card h3 { font-size: 1rem; }
  .num-card p { font-size: .78rem; }
  .moto-grid:not(.moto-grid--home) { gap: 10px; }
  .moto-card__body .btn { width: 100%; }
  .filters-wrap { flex-direction: column; align-items: stretch; gap: 8px; }
  .filters-wrap .filters { margin-inline: -16px; padding-inline: 16px; }

  .brand img { height: 38px; width: 38px; }
}
@media (max-width: 360px) { .moto-grid:not(.moto-grid--home) { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .single-moto { grid-template-columns: 1fr !important; gap: 24px !important; } }

/* ---- Correctifs mobile (menu plein écran, héros, CTA header) ---- */
@media (max-width: 900px) {
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #000; }
  .site-header .header-cta { display: none; }
  .site-header .wrap { justify-content: space-between; }

  .hero--home { align-items: flex-end; }
  .hero--home .hero__bg { bottom: auto; height: 56%; opacity: 1; background-position: 76% center; }
  .hero--home .hero__bg::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 55%, #000 100%); }
  .hero--home .wrap { padding: 32svh 0 40px; }
  .hero--home p.lead { font-size: .95rem; }
}
@media (max-width: 900px) { .moto-card__img img { transform: scale(1.18); } }

/* ---- Contraste : blocs sombres dans sections claires ---- */
.num-card, .panel, .form-card, .photo-card, .feature, .cta, .pro-band { color: #fff; }
.section--light .panel h2, .section--light .num-card h3, .section--light .form-card h2, .section--light .cta h2 { color: #fff; }
.num-card--red h3 { color: #fff; }

@media (max-width: 900px) {
  .finder { display: flex; flex-direction: column; }
  .finder__col { display: contents; }
  .finder__col > .panel:first-child { order: 1; }
  #motard-map { order: 2 !important; }
  .finder__col > .panel:last-child { order: 3; }
  .finder > div:last-child { order: 2; }
}
.panel .muted, .form-card .muted, .num-card .muted { color: #cfcfcf !important; }

/* ---- Alignement sur la maquette (v4) ---- */
.feature-band { background-size: cover; background-position: center right; min-height: 420px; position: relative; display: flex; align-items: center; margin-top: 40px; }
.feature-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%); }
.feature-band .wrap { position: relative; z-index: 1; padding: 50px 0; }
.feature-band__cards { display: grid; gap: 16px; max-width: 460px; }
.num-grid--grey .num-card { background: #9d9d9d; color: #fff; min-height: 128px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.num-grid--grey .num-card h3 { font-size: 1.45rem; color: #fff; }
.num-grid--grey .num-card p { color: #fff; }
.num-card h3 { font-size: 1.3rem; }
.cta__logo { margin: 0 auto 16px; height: 56px; width: 56px; }
.footer-logo { height: 44px; width: 44px; margin-bottom: 12px; }
.pro-band { min-height: 380px; display: flex; align-items: center; }
.pro-band .wrap { width: min(var(--wrap), 100% - 40px); }
.hero--home { min-height: 86vh; }
@media (max-width: 900px) {
  .feature-band { min-height: 0; background-position: 70% center; }
  .feature-band::after { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.85)); }
  .feature-band .wrap { padding: 28px 0; }
  .num-grid--grey .num-card h3 { font-size: 1.1rem; }
  .pro-band { min-height: 0; display: block; }
}

/* ---- Proportions maquette (grand écran) ---- */
@media (min-width: 901px) {
  .section { padding: clamp(80px, 8vw, 130px) 0; }
  .feature-band { min-height: 520px; }
  .pro-band { min-height: 460px; }
  .photo-card__img { aspect-ratio: 4/4.8; }
  .num-grid--grey .num-card { min-height: 160px; padding-right: 120px; }
  .num-grid--grey .num-card .n { width: 96px; font-size: 2.8rem; }
  .feature-band .num-card { min-height: 130px; padding-right: 110px; }
  .feature-band .num-card .n { width: 88px; font-size: 2.5rem; }
  .cta { padding: 110px 24px; }
  .hero--home { min-height: 92vh; }
  .hero--home h1 { font-size: clamp(3.4rem, 6.5vw, 5.4rem); }
}

/* ---- Robustesse (v1.4) : logo, CTA du menu, barre mobile ---- */
.site-header .custom-logo-link { display: flex; align-items: center; }
.site-header .custom-logo, .site-header .brand img { height: 46px !important; width: auto !important; max-width: 190px; object-fit: contain; }
.main-nav .nav-cta { display: none !important; }
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .main-nav .nav-cta { display: inline-flex !important; font-size: 1rem; text-transform: none; letter-spacing: 0; border: 0; padding: 14px 22px; }
  .mobile-bar { display: grid; }
}
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--red); }

/* ---------- MOTION 1.5 : animation au scroll, avec affichage sûr sans JS ---------- */
.reveal, .stagger { opacity: 1; transform: none; transition: none; }
html.motion-ready .reveal:not(.is-in),
html.motion-ready .stagger:not(.is-in) { opacity: 0; transform: translate3d(0, 30px, 0); }
html.motion-gsap .reveal,
html.motion-gsap .stagger { transition: none !important; }
html.motion-ready .moto-grid,
html.motion-ready .num-grid,
html.motion-ready .post-grid,
html.motion-ready .trustbar .wrap,
html.motion-ready .pro-list,
html.motion-ready .feature-band__cards { opacity: 1; transform: none; }
.hero__bg, .feature-band, .pro-band { will-change: transform, background-position; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__bg, .feature-band, .pro-band { will-change: auto; }
}
