/* QUARZEO — révolution visuelle accueil R2 */
body.qhp-site {
  --qzr2-night: #020f1b;
  --qzr2-navy: #032942;
  --qzr2-cyan: #37d8eb;
  --qzr2-blue: #0787f4;
  --qzr2-violet: #795cff;
}

/* Hero automobile cinématique */
body.qhp-site .qzv12-hero {
  min-height: 930px !important;
  padding: 82px 0 105px !important;
  background:
    linear-gradient(90deg, rgba(1, 12, 22, .97) 0%, rgba(2, 22, 37, .91) 41%, rgba(2, 20, 34, .38) 68%, rgba(1, 12, 21, .31) 100%),
    linear-gradient(180deg, rgba(1,12,22,.04), rgba(1,12,22,.52)),
    url('/assets/qz-home-hero-r2.webp') center / cover no-repeat !important;
}
body.qhp-site .qzv12-hero::before {
  opacity: .72;
  background:
    linear-gradient(rgba(67, 215, 235, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 215, 235, .06) 1px, transparent 1px) !important;
  background-size: 72px 72px !important;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.75) 47%, transparent 78%) !important;
}
body.qhp-site .qzv12-hero::after {
  height: 150px !important;
  background: linear-gradient(180deg, transparent, rgba(2,15,27,.82)) !important;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%) !important;
}
body.qhp-site .qzv12-hero-shell {
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr) !important;
  gap: 34px !important;
  align-items: end !important;
}
body.qhp-site .qzv12-eyebrow {
  margin-bottom: 18px !important;
  color: #71e8f5 !important;
  text-shadow: 0 0 26px rgba(55,216,235,.34);
}
body.qhp-site .qzv12-title-row h1 {
  max-width: 790px !important;
  font-size: clamp(58px, 5.8vw, 88px) !important;
  line-height: .91 !important;
  letter-spacing: -.067em !important;
}
body.qhp-site .qzv12-title-row h1 em {
  margin-top: 12px !important;
  background: linear-gradient(95deg, #6fe4f1, #2abde1 62%, #a4f4f8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
body.qhp-site .qzv12-title-row > p {
  max-width: 700px !important;
  margin: 25px 0 30px !important;
  color: rgba(230,246,252,.76) !important;
  font-size: 16px !important;
}

/* Moteur cockpit, sans modifier ses contrats fonctionnels */
body.qhp-site .qzv12-search {
  width: min(790px, 100%) !important;
  padding: 0 27px 27px !important;
  border: 1px solid rgba(102, 224, 242, .27) !important;
  border-radius: 29px !important;
  color: #eaf8fc !important;
  background:
    radial-gradient(circle at 95% 0, rgba(34,196,226,.17), transparent 35%),
    linear-gradient(145deg, rgba(3,27,45,.96), rgba(5,49,74,.91)) !important;
  box-shadow: 0 38px 90px rgba(0,5,12,.5), inset 0 1px rgba(255,255,255,.09) !important;
  backdrop-filter: blur(22px) saturate(140%) !important;
}
body.qhp-site .qzv12-search::before {
  height: 3px !important;
  background: linear-gradient(90deg, #0b83f3, #4be3ec 60%, transparent) !important;
  box-shadow: 0 0 22px rgba(61,222,237,.45);
}
body.qhp-site .qzv12-search-top {
  min-height: 74px !important;
  margin: 0 -27px 24px !important;
  padding: 14px 27px !important;
  border-bottom-color: rgba(135,223,240,.13) !important;
  background: rgba(255,255,255,.035) !important;
}
body.qhp-site .searchDeckProgress span { color: rgba(215,239,248,.48) !important; }
body.qhp-site .searchDeckProgress span.active { color: #fff !important; }
body.qhp-site .searchDeckProgress span b {
  border-color: rgba(92,216,237,.19) !important;
  color: #88aab9 !important;
  background: rgba(255,255,255,.055) !important;
}
body.qhp-site .searchDeckProgress span.active b {
  color: #fff !important;
  background: linear-gradient(135deg, #087ff0, #32ccdf) !important;
  box-shadow: 0 0 0 6px rgba(32,188,220,.08), 0 9px 22px rgba(0,129,224,.26) !important;
}
body.qhp-site .searchDeckProgress i { background: rgba(143,215,231,.22) !important; }
body.qhp-site .searchDeckHint { color: rgba(210,236,245,.55) !important; }
body.qhp-site .qzv12-step-head > span {
  border: 1px solid rgba(95,220,239,.2) !important;
  color: #65e2ef !important;
  background: linear-gradient(145deg, rgba(9,108,174,.38), rgba(27,203,225,.12)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.07);
}
body.qhp-site .qzv12-step-head strong { color: #fff !important; }
body.qhp-site .qzv12-step-head small { color: rgba(216,239,247,.55) !important; }
body.qhp-site .plateField,
body.qhp-site .zipHeroV6,
body.qhp-site .manualVehicleFields label,
body.qhp-site .locationGrid label { color: #79dce9 !important; }
body.qhp-site .plateInputWrap {
  border: 1px solid rgba(110,223,240,.35) !important;
  border-radius: 17px !important;
  background: rgba(249,253,255,.98) !important;
  box-shadow: 0 16px 38px rgba(0,6,14,.34), 0 0 0 5px rgba(40,197,225,.055) !important;
}
body.qhp-site .plateFlag {
  background: linear-gradient(180deg, #087cf0, #064ca3) !important;
  box-shadow: inset -1px 0 rgba(255,255,255,.15);
}
body.qhp-site .plateInputWrap input { color: #06243d !important; }
body.qhp-site .plateApiStatus,
body.qhp-site .locationStatus {
  padding: 10px 12px;
  border: 1px solid rgba(108,216,235,.08);
  border-radius: 11px;
  color: rgba(218,240,248,.58) !important;
  background: rgba(255,255,255,.035);
}
body.qhp-site .manualVehicleLink,
body.qhp-site .stageBackV6 { color: #6fe4f2 !important; }
body.qhp-site .demoPlateBar { border-top-color: rgba(123,218,236,.13) !important; }
body.qhp-site .demoPlateBar > span { color: rgba(213,238,247,.44) !important; }
body.qhp-site .demoPlate {
  border-color: rgba(93,218,238,.13) !important;
  color: #cceff6 !important;
  background: rgba(255,255,255,.055) !important;
}
body.qhp-site .manualVehicleFields,
body.qhp-site .vehicleResolvedCard { color: #eaf8fc !important; background: rgba(255,255,255,.065) !important; }
body.qhp-site .manualVehicleHead strong { color: #fff !important; }
body.qhp-site .manualVehicleHead span { color: rgba(220,241,249,.56) !important; }
body.qhp-site .searchStageNavV6 { border-bottom-color: rgba(130,220,238,.12) !important; }
body.qhp-site .vehicleCompactV6 { color: #dff6fb !important; background: rgba(255,255,255,.065) !important; }
body.qhp-site .locationAdvancedV6 { border-top-color: rgba(128,220,238,.13) !important; }
body.qhp-site .locationAdvancedV6 summary { color: #a4dbe7 !important; }
body.qhp-site .qzv12-search-foot { color: rgba(213,239,248,.68) !important; }

/* Carte de démonstration vivante */
body.qhp-site .qzv12-preview {
  overflow: visible !important;
  border: 1px solid rgba(102,224,241,.25) !important;
  background:
    radial-gradient(circle at 90% 0, rgba(45,211,231,.18), transparent 36%),
    linear-gradient(145deg, rgba(3,24,40,.94), rgba(4,48,72,.88)) !important;
  box-shadow: 0 42px 96px rgba(0,5,12,.52), inset 0 1px rgba(255,255,255,.07) !important;
}
body.qhp-site .qzv12-preview-head { padding-bottom: 12px !important; }
body.qhp-site .qzv12-preview-head strong { font-size: 15px !important; }
body.qhp-site .qzr2-demo-sort {
  position: relative;
  z-index: 600;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 14px 12px;
  padding: 6px;
  border: 1px solid rgba(126,221,239,.13);
  border-radius: 15px;
  background: rgba(0,10,20,.28);
  backdrop-filter: blur(10px);
}
body.qhp-site .qzr2-demo-sort button {
  min-width: 0;
  padding: 9px 5px;
  border: 0;
  border-radius: 10px;
  color: rgba(221,243,250,.54);
  background: transparent;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
body.qhp-site .qzr2-demo-sort button span { display: block; margin-bottom: 3px; color: #65ddea; font-size: 13px; }
body.qhp-site .qzr2-demo-sort button.is-active {
  color: #04243b;
  background: linear-gradient(135deg, #e9fcfd, #69deeb);
  box-shadow: 0 8px 20px rgba(19,185,212,.18);
  transform: translateY(-1px);
}
body.qhp-site .qzr2-demo-sort button.is-active span { color: #0874bd; }
body.qhp-site .qzv12-map { height: 430px !important; border-radius: 0 !important; }
body.qhp-site .qzr2-map-live {
  position: absolute;
  z-index: 520;
  top: 46%;
  left: 51%;
  width: 166px;
  pointer-events: none;
  transform: translate(-50%,-50%);
}
body.qhp-site .qzr2-map-pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 72px; height: 72px;
  border: 1px solid rgba(42,202,229,.68);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  animation: qzr2-map-pulse 2.3s ease-out infinite;
}
body.qhp-site .qzr2-map-pin {
  position: relative;
  display: grid;
  width: 42px; height: 42px;
  margin: 0 auto;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 8px;
  color: #fff;
  background: linear-gradient(135deg, #087ff1, #29cddd);
  box-shadow: 0 10px 30px rgba(0,73,140,.36), 0 0 0 7px rgba(44,211,230,.13);
  font-size: 11px;
  font-weight: 950;
  transform: rotate(-45deg);
}
body.qhp-site .qzr2-map-pin span { transform: rotate(45deg); }
body.qhp-site .qzr2-map-caption {
  display: block;
  margin-top: 15px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 10px;
  color: #06304b;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(2,34,55,.24);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}
body.qhp-site .qzv12-preview-result {
  position: relative;
  z-index: 590;
  grid-template-columns: 46px minmax(0,1fr) auto !important;
  margin: -52px 14px 14px !important;
  border: 1px solid rgba(9,116,180,.13);
  border-radius: 18px !important;
  box-shadow: 0 24px 55px rgba(0,12,24,.36) !important;
  transition: transform .35s ease, box-shadow .35s ease;
}
body.qhp-site .qzv12-preview-result.qzr2-changing { transform: translateY(-4px) scale(1.008); box-shadow: 0 30px 65px rgba(0,12,24,.43) !important; }
body.qhp-site .qzr2-rank {
  position: absolute;
  right: 13px;
  top: -19px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 99px;
  color: #eaffff;
  background: linear-gradient(135deg,#057ee9,#15aaca);
  box-shadow: 0 9px 22px rgba(0,92,165,.28);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

/* Réseau national à fort potentiel */
body.qhp-site .qzv12-network {
  padding: 130px 0 !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(16,140,230,.12), transparent 28%),
    linear-gradient(180deg, #f8fcff, #edf8fe) !important;
}
body.qhp-site .qzv12-network-grid {
  grid-template-columns: 1.08fr .92fr !important;
  gap: 34px !important;
  align-items: stretch !important;
}
body.qhp-site .qzv12-france-card.qzr2-network-card {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 38px !important;
  border: 1px solid rgba(98,218,239,.2) !important;
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, rgba(20,131,201,.23), transparent 48%),
    radial-gradient(circle at 10% 10%, rgba(49,215,234,.13), transparent 30%),
    linear-gradient(145deg,#021421,#04304b 70%,#042239) !important;
  box-shadow: 0 42px 95px rgba(2,34,57,.25), inset 0 1px rgba(255,255,255,.06) !important;
}
body.qhp-site .qzv12-france-card.qzr2-network-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(89,214,233,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(89,214,233,.05) 1px,transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 45%,#000,transparent 72%);
}
body.qhp-site .qzr2-network-head { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 24px; }
body.qhp-site .qzr2-network-head h2 { max-width: 520px; margin: 12px 0 0 !important; color: #fff !important; font-size: clamp(38px,3.6vw,58px) !important; line-height: .98 !important; }
body.qhp-site .qzr2-network-head h2 em { color: #65e2ef; font-style: normal; }
body.qhp-site .qzr2-network-stats { display: flex; gap: 8px; align-items: flex-start; }
body.qhp-site .qzr2-network-stats span {
  display: flex; min-width: 92px; padding: 11px 12px;
  border: 1px solid rgba(116,224,242,.16); border-radius: 14px;
  flex-direction: column; color: rgba(221,243,250,.58); background: rgba(255,255,255,.055); font-size: 8px;
}
body.qhp-site .qzr2-network-stats strong { color: #fff; font-size: 17px; }
body.qhp-site .qzr2-france-stage { position: relative; z-index: 2; height: 530px; margin-top: 26px; }
body.qhp-site .qzr2-france-stage svg { width: 100%; height: 100%; overflow: visible; }
body.qhp-site .qzr2-france-shape { opacity: .8; filter: brightness(.76) saturate(1.35) drop-shadow(0 16px 34px rgba(0,10,18,.36)); }
body.qhp-site .qzr2-route,
body.qhp-site .qzr2-routes path { fill: none; stroke: url(#qzr2-route-gradient); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 7 9; opacity: .56; animation: qzr2-route-flow 13s linear infinite; }
body.qhp-site .qzr2-route.future { opacity: .25; stroke-width: 1.2; animation-duration: 20s; }
body.qhp-site .qzr2-future-node circle,
body.qhp-site .qzr2-future-nodes circle { fill: #55c9df; opacity: .48; }
body.qhp-site .qzr2-future-node text,
body.qhp-site .qzr2-future-nodes text { fill: rgba(218,242,249,.55); font-size: 10px; font-weight: 700; }
body.qhp-site .qzr2-hub .qzr2-hub-wave,
body.qhp-site .qzr2-hub .wave { fill: none; stroke: #51deed; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: qzr2-hub-wave 2.6s ease-out infinite; }
body.qhp-site .qzr2-hub .wave-b { animation-delay: 1.3s; }
body.qhp-site .qzr2-hub .qzr2-hub-core,
body.qhp-site .qzr2-hub .core { fill: #7ff2f5; filter: url(#qzr2-node-glow); }
body.qhp-site .qzr2-hub rect { fill: rgba(2,17,29,.9); stroke: rgba(113,228,242,.36); }
body.qhp-site .qzr2-hub text { fill: #fff; font-size: 12px; font-weight: 800; }
body.qhp-site .qzr2-hub text tspan:last-child { fill: #6de3ef; font-size: 8px; letter-spacing: .1em; }
body.qhp-site .qzr2-network-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-top: 20px; border-top: 1px solid rgba(120,222,240,.13); }
body.qhp-site .qzr2-network-legend { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(218,241,249,.58); font-size: 9px; }
body.qhp-site .qzr2-network-legend span { display: flex; align-items: center; gap: 7px; }
body.qhp-site .qzr2-network-legend i { width: 8px; height: 8px; border-radius: 50%; background: #70e7ef; box-shadow: 0 0 0 5px rgba(112,231,239,.1); }
body.qhp-site .qzr2-network-legend i.future { background: rgba(112,231,239,.32); box-shadow: none; }
body.qhp-site .qzr2-network-foot strong { color: #fff; font-size: 10px; letter-spacing: .08em; }
body.qhp-site .qzv12-network-content { display: flex; flex-direction: column; justify-content: center; }
body.qhp-site .qzv12-city { min-height: 290px !important; }
body.qhp-site .qzv12-network-copy { padding: 10px 10px 0; }

@keyframes qzr2-map-pulse { 0% { opacity:.85; transform:translate(-50%,-50%) scale(.35); } 100% { opacity:0; transform:translate(-50%,-50%) scale(1.55); } }
@keyframes qzr2-route-flow { to { stroke-dashoffset:-260; } }
@keyframes qzr2-hub-wave { 0% { opacity:.75; transform:scale(.35); } 100% { opacity:0; transform:scale(1.8); } }

@media (max-width: 1100px) {
  body.qhp-site .qzv12-hero-shell { grid-template-columns: 1fr !important; }
  body.qhp-site .qzv12-preview { display: block !important; width: 100%; max-width: 790px !important; min-height: 590px !important; margin-top: 26px; }
  body.qhp-site .qzv12-network-grid { grid-template-columns: 1fr !important; }
  body.qhp-site .qzv12-france-card.qzr2-network-card { display: block !important; min-height: 700px; }
  body.qhp-site .qzv12-network-content { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.qhp-site .qzv12-hero { min-height: 0 !important; padding: 58px 0 80px !important; background-position: 64% center !important; }
  body.qhp-site .qzv12-title-row h1 { font-size: clamp(45px,12.5vw,64px) !important; }
  body.qhp-site .qzv12-search { padding-inline: 17px !important; }
  body.qhp-site .qzv12-search-top { margin-inline: -17px !important; padding-inline: 17px !important; }
  body.qhp-site .qzv12-preview { min-height: 560px !important; margin-top: 20px; }
  body.qhp-site .qzr2-demo-sort { grid-template-columns: 1fr 1fr; }
  body.qhp-site .qzv12-map { height: 330px !important; }
  body.qhp-site .qzr2-map-live { top: 51%; width: 142px; }
  body.qhp-site .qzv12-preview-result { grid-template-columns: 42px minmax(0,1fr) !important; margin-top: -34px !important; }
  body.qhp-site .qzv12-preview-result > a { grid-column: 2 !important; }
  body.qhp-site .qzr2-network-head { display: block; }
  body.qhp-site .qzr2-network-stats { margin-top: 20px; }
  body.qhp-site .qzv12-france-card.qzr2-network-card { min-height: 680px; padding: 25px !important; }
  body.qhp-site .qzr2-france-stage { height: 425px; margin-inline: -18px; }
  body.qhp-site .qzr2-network-foot { display: block; }
  body.qhp-site .qzr2-network-foot strong { display: block; margin-top: 12px; }
}

@media (max-width: 430px) {
  body.qhp-site .qzv12-hero { background-position: 69% center !important; }
  body.qhp-site .qzv12-title-row h1 { font-size: 43px !important; }
  body.qhp-site .qzv12-preview-head { padding: 17px 15px 12px !important; }
  body.qhp-site .qzr2-demo-sort { margin-inline: 10px; }
  body.qhp-site .qzr2-network-stats span { min-width: 0; flex: 1; }
  body.qhp-site .qzr2-france-stage { height: 390px; }
  body.qhp-site .qzr2-hub text { font-size: 10px; }
  body.qhp-site .qzr2-future-node text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.qhp-site .qzr2-map-pulse,
  body.qhp-site .qzr2-route,
  body.qhp-site .qzr2-routes path,
  body.qhp-site .qzr2-hub-wave,
  body.qhp-site .qzr2-hub .wave { animation: none !important; }
}
