/* ==========================================================================
   GROUPE NGF, moteurs.css
   Page moteurs hors-bord Hidea : intro produit + grille de modèles tarifés.
   S'appuie sur le design system (base + components).
   ========================================================================== */

/* ---------- Intro produit (photo + argumentaire) --------------------------- */
.motor-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.motor-intro__media {
  position: relative;
  background: radial-gradient(120% 120% at 50% 20%, #eef8fa, #d6ebf0 70%, #c8e0e9);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 36px);
  text-align: center;
}
.motor-intro__media img { width: auto; max-height: 460px; margin-inline: auto; mix-blend-mode: multiply; }
.motor-intro__text .kicker { margin-bottom: 16px; }
.motor-intro__text p { margin-top: 16px; }
.motor-intro__text .ticks { margin-top: 22px; }
@media (max-width: 860px) {
  .motor-intro { grid-template-columns: 1fr; }
  .motor-intro__media img { max-height: 340px; }
}

/* ---------- Grille des modèles --------------------------------------------- */
/* Flex plutôt que grid : la dernière rangée (2 cartes sur 5) reste centrée. */
.motors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.motor-card {
  flex: 1 1 320px;
  max-width: 372px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.motor-card:hover { border-color: rgba(22, 167, 224, .55); box-shadow: var(--sh-md); transform: translateY(-4px); }

/* Vignette produit : cadre identique pour tous les modèles, la photo est
   contenue sans recadrage pour garder les moteurs à la même échelle. */
.motor-card__media {
  aspect-ratio: 5 / 4;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #edf7f9);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.motor-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .4s var(--ease);
}
.motor-card:hover .motor-card__media img { transform: scale(1.04); }

.motor-card__head {
  padding: 22px 24px 20px;
  background: radial-gradient(120% 130% at 100% 0%, var(--navy-700), var(--navy-900));
  color: #fff;
  position: relative;
}
.motor-card__ref {
  font-family: var(--f-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--azure-light);
}
.motor-card__power {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -.02em;
  line-height: 1;
  margin-top: 8px;
}
.motor-card__power small { font-size: .95rem; font-weight: 600; color: rgba(226, 236, 248, .7); letter-spacing: 0; }

.motor-card__price {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.motor-card__price .amount {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy-800);
  letter-spacing: -.01em;
}
.motor-card__price .amount span { color: var(--azure-dark); font-size: 1rem; }
.motor-card__price .note { display: block; margin-top: 3px; font-size: .74rem; color: var(--muted); }

.motor-card__specs { list-style: none; margin: 0; padding: 18px 24px; display: grid; gap: 10px; flex: 1; }
.motor-card__specs li { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; border-bottom: 1px dotted var(--line); padding-bottom: 9px; }
.motor-card__specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.motor-card__specs dt, .motor-card__specs .k { color: var(--muted); }
.motor-card__specs .v { color: var(--ink); font-weight: 600; text-align: right; }

.motor-card__foot { padding: 0 24px 24px; }
.motor-card__foot .btn { width: 100%; }

/* Bandeau note / commande */
.motor-note {
  margin-top: clamp(26px, 4vw, 40px);
  padding: 18px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: .92rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.motor-note svg { flex: none; margin-top: 2px; color: var(--azure-dark); }

/* ---------- Réception / arrivage (vidéo + photo) --------------------------- */
.arrivage {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.arrivage figure { margin: 0; }
.arrivage__video video,
.arrivage__photo img {
  width: 100%; height: 100%; max-height: 460px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #04122a;
  display: block;
}
.arrivage figcaption {
  margin-top: 8px; font-size: .82rem; color: var(--muted);
}
@media (max-width: 780px) {
  .arrivage { grid-template-columns: 1fr; }
  .arrivage__video video, .arrivage__photo img { max-height: none; }
}
