/* ==========================================================================
   MOTOCLÉ FRANCE — Service national de programmation de clé moto à distance
   Surcharge de palette (bleu) chargée après style.css, sur ses pages uniquement.
   Même système de design qu'ALL KEY, identité visuelle distincte.
   ========================================================================== */

:root {
  --red: #1656d6;
  --red-2: #3b82f6;
  --red-deep: #0d3a8f;
  --shadow-red: 0 12px 28px -8px rgba(22, 86, 214, 0.45);
}

.page-hero .accent,
.hero h1 .accent { color: var(--red-2); }

.topbar { border-bottom: 1px solid rgba(22,86,214,0.35); }
.btn-call:hover { box-shadow: 0 16px 32px -8px rgba(22,86,214,0.55); }
.btn-primary:hover { box-shadow: 0 18px 36px -8px rgba(22,86,214,0.55); }
.card:hover { border-color: rgba(22,86,214,0.35); }

.mk-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ink-1);
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.mk-logo .mk-accent { color: var(--red); }
.mk-powered {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--grey);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
}

/* ---------- Colis animé (hero MotoClé France) ---------- */
.hero-parcel {
  display: block !important;
  position: absolute;
  right: 4%;
  bottom: 10px;
  width: 30%;
  max-width: 400px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.45));
}
.hero-parcel svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-parcel .pc-arrive,
.hero-parcel .pc-float,
.hero-parcel .pc-key,
.hero-parcel .pc-shadow,
.hero-parcel .pc-speed rect,
.hero-parcel .pc-spark { transform-box: fill-box; transform-origin: center bottom; }
.hero-parcel .pc-arrive { animation: pcArrive 1.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
.hero-parcel .pc-float { animation: pcFloat 3.8s ease-in-out 2.2s infinite; }
.hero-parcel .pc-shadow { transform-origin: center; animation: pcShadow 3.8s ease-in-out 2.2s infinite; }
.hero-parcel .pc-key { animation: pcKey 5.2s ease-in-out 2.6s infinite; opacity: 0; }
.hero-parcel .pc-spark { animation: pcSpark 5.2s ease-in-out 2.6s infinite; opacity: 0; transform-origin: center; }
.hero-parcel .pc-speed rect { opacity: 0; animation: pcSpeed 1.9s ease-out 0.3s both; }
.hero-parcel .pc-speed rect:nth-child(2) { animation-delay: 0.45s; }
.hero-parcel .pc-speed rect:nth-child(3) { animation-delay: 0.6s; }
@keyframes pcArrive {
  0%   { transform: translate(300px, -30px) rotate(14deg); opacity: 0; }
  45%  { opacity: 1; }
  68%  { transform: translate(-10px, 0) rotate(-3deg); }
  84%  { transform: translate(5px, 0) rotate(1.2deg); }
  100% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@keyframes pcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pcShadow { 0%, 100% { transform: scaleX(1); opacity: .35; } 50% { transform: scaleX(.9); opacity: .24; } }
@keyframes pcKey {
  0%, 12%  { transform: translateY(60px); opacity: 0; }
  30%, 70% { transform: translateY(-4px); opacity: 1; }
  88%, 100% { transform: translateY(60px); opacity: 0; }
}
@keyframes pcSpark { 0%, 25% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes pcSpeed {
  0%   { opacity: 0; transform: translateX(90px); }
  30%  { opacity: .55; }
  100% { opacity: 0; transform: translateX(-40px); }
}
@media (max-width: 1024px) { .hero-parcel { width: 30%; right: 3%; } }
@media (max-width: 900px) {
  .hero-parcel { position: relative; right: auto; bottom: auto; width: 78%; max-width: 340px; margin: 26px auto -6px; opacity: 1; }
}
@media (max-width: 480px) { .hero-parcel { width: 86%; max-width: 330px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-parcel .pc-arrive, .hero-parcel .pc-float, .hero-parcel .pc-shadow,
  .hero-parcel .pc-key, .hero-parcel .pc-spark, .hero-parcel .pc-speed rect { animation: none; }
  .hero-parcel .pc-key, .hero-parcel .pc-spark, .hero-parcel .pc-speed { display: none; }
}
