/* Page Produit : nouveautés (OKTO PDF, mise en route), cartes larges, scènes animées */

.rp-trait { width: 55%; }

/* Grilles : cartes larges sans trou en fin de rangée */
@media (min-width: 48rem) {
  .rp-large, .rp-plein, .rp-md-large { grid-column: span 2; }
}
@media (min-width: 64rem) {
  .rp-md-large { grid-column: auto; }
  .rp-plein { grid-column: 1 / -1; }
}

.rp-puces-col { display: grid; gap: .375rem 2rem; }
@media (min-width: 48rem) {
  .rp-puces-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rp-duo-texte { display: grid; gap: 0 2.5rem; }
@media (min-width: 64rem) {
  .rp-duo-texte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  .rp-duo-texte > ul { margin-top: 0; border-top: 0; padding-top: 0; }
}

/* Nouveautés : deux panneaux de même hauteur */
.rp-duo { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) {
  .rp-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

.rp-scene {
  position: relative;
  height: 266px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--color-ardoise-200);
  background: var(--color-ardoise-50);
  margin-bottom: 1.25rem;
}

/* OKTO PDF */
.rp-pdf-barre {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-ardoise-200);
  background: #fff;
}
.rp-puce {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px; font-weight: 500;
  color: var(--color-ardoise-600);
}
.rp-puce-actif {
  color: var(--color-braise-800);
  background: color-mix(in srgb, var(--color-braise-500) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-braise-500) 28%, transparent);
}
.rp-pdf-corps { position: relative; height: calc(100% - 46px); padding: 14px 16px 0; }
.rp-page {
  position: relative;
  width: min(62%, 250px);
  height: 100%;
  padding: 16px 16px 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 10px 30px -14px rgba(21, 12, 31, .3);
  overflow: hidden;
}
.rp-ligne {
  display: block; position: relative;
  height: 6px; margin-bottom: 9px;
  border-radius: 3px;
  background: var(--color-ardoise-200);
}
.rp-ligne.rp-titre { width: 52%; height: 8px; background: var(--color-ardoise-300); margin-bottom: 13px; }
.rp-l1 { width: 92%; } .rp-l2 { width: 84%; } .rp-l3 { width: 88%; } .rp-l4 { width: 64%; } .rp-l5 { width: 78%; }
.rp-surligne::after {
  content: ""; position: absolute; inset: -3px -2px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--color-braise-400) 30%, transparent);
  transform-origin: left center;
}
.rp-signature {
  position: absolute; left: 14px; bottom: 26px;
  width: 122px; height: 32px;
  fill: none; stroke: var(--color-ardoise-800); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.rp-signature path { stroke-dasharray: 320; stroke-dashoffset: 0; }
.rp-signe-ligne {
  position: absolute; left: 14px; bottom: 22px;
  width: 128px; height: 1px; background: var(--color-ardoise-300);
}
.rp-page-num {
  position: absolute; right: 12px; bottom: 8px;
  font-size: 10px; color: var(--color-ardoise-400);
}
.rp-balayage {
  position: absolute; left: 0; right: 0; top: 0; height: 26px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--color-braise-400) 18%, transparent));
  border-bottom: 1px solid color-mix(in srgb, var(--color-braise-500) 45%, transparent);
  opacity: 0;
}
.rp-bulle {
  position: absolute; right: 14px; top: 34px;
  width: min(44%, 200px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--color-ardoise-200);
  background: #fff;
  box-shadow: 0 16px 34px -18px rgba(21, 12, 31, .35);
  font-size: 12px; line-height: 1.45; color: var(--color-ardoise-700);
}
.rp-bulle-titre { font-size: 11px; font-weight: 600; color: var(--color-ardoise-950); margin-bottom: 4px; }
.rp-bulle-ref {
  display: inline-block; margin-top: 6px;
  padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 500;
  color: var(--color-braise-800);
  background: color-mix(in srgb, var(--color-braise-500) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-braise-500) 25%, transparent);
}

/* Mise en route */
.rp-route { display: flex; align-items: flex-start; justify-content: center; padding: 16px; }
.rp-route-carte {
  width: 100%; max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-ardoise-200);
  background: #fff;
  box-shadow: 0 16px 34px -20px rgba(21, 12, 31, .3);
}
.rp-route-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rp-route-titre { font-size: 13px; font-weight: 600; color: var(--color-ardoise-950); }
.rp-route-reste { font-size: 11px; color: var(--color-ardoise-500); white-space: nowrap; }
.rp-barre { height: 4px; margin: 10px 0 10px; border-radius: 999px; background: var(--color-ardoise-100); overflow: hidden; }
.rp-barre-plein { display: block; height: 100%; width: 57%; border-radius: 999px; background: var(--color-braise-500); transform-origin: left center; }
.rp-etapes { display: grid; gap: 1px; }
.rp-etape {
  display: flex; align-items: center; gap: 9px;
  padding: 3px 6px; border-radius: 8px;
  font-size: 12px; color: var(--color-ardoise-500);
}
.rp-fait { color: var(--color-ardoise-700); }
.rp-coche {
  display: grid; place-items: center; flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 999px;
  border: 1.5px solid var(--color-ardoise-300);
}
.rp-coche svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rp-fait .rp-coche {
  border-color: transparent;
  color: var(--color-braise-700);
  background: color-mix(in srgb, var(--color-braise-500) 14%, transparent);
}
.rp-courante {
  color: var(--color-ardoise-950); font-weight: 500;
  background: color-mix(in srgb, var(--color-braise-500) 7%, transparent);
}
.rp-courante .rp-coche { border-color: var(--color-braise-500); }
.rp-configurer {
  margin-left: auto;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  color: var(--color-braise-800);
  background: #fff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-braise-500) 35%, transparent);
}

/* OKTO Transfert : carte large avec aperçu du lien */
.rp-transfert { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .rp-transfert { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
}
.rp-lien {
  border-radius: 14px;
  border: 1px solid var(--color-ardoise-200);
  background: var(--color-ardoise-50);
  padding: 14px;
  font-size: 12px; color: var(--color-ardoise-600);
}
.rp-lien-adresse {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 9px;
  background: #fff; border: 1px solid var(--color-ardoise-200);
  color: var(--color-ardoise-900); font-weight: 500;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.rp-lien-adresse span { overflow: hidden; text-overflow: ellipsis; }
.rp-cadenas { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: var(--color-ardoise-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-lien-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px 0; }
.rp-lien-ligne b { font-weight: 500; color: var(--color-ardoise-800); text-align: right; }
.rp-transit { height: 3px; margin-top: 10px; border-radius: 999px; background: var(--color-ardoise-200); overflow: hidden; }
.rp-transit span { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--color-braise-500); transform-origin: left center; }

/* Animations : jouées une fois, quand la carte arrive à l'écran */
@keyframes rp-pousse { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rp-trace { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes rp-balaie { 0% { opacity: 0; transform: translateY(-26px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(200px); } }
@keyframes rp-monte { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rp-coche { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rp-appel { 0%, 100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-braise-500) 35%, transparent), 0 0 0 0 color-mix(in srgb, var(--color-braise-500) 0%, transparent); } 50% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-braise-500) 55%, transparent), 0 0 0 5px color-mix(in srgb, var(--color-braise-500) 14%, transparent); } }
@keyframes rp-fondu { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .vu .rp-balayage { animation: rp-balaie 1.8s .3s var(--ease-doux) both; }
  .vu .rp-surligne::after { animation: rp-pousse .7s 1.6s var(--ease-doux) both; }
  .vu .rp-signature path { animation: rp-trace 1.6s 2.1s ease-in-out both; }
  .vu .rp-bulle { animation: rp-monte .5s 3.4s var(--ease-doux) both; }

  .vu .rp-barre-plein { animation: rp-pousse 1.6s .5s var(--ease-doux) both; }
  .vu .rp-fait .rp-coche { animation: rp-coche .4s var(--ease-doux) both; }
  .vu .rp-e1 .rp-coche { animation-delay: .5s; }
  .vu .rp-e2 .rp-coche { animation-delay: .85s; }
  .vu .rp-e3 .rp-coche { animation-delay: 1.2s; }
  .vu .rp-e4 .rp-coche { animation-delay: 1.55s; }
  .vu .rp-configurer { animation: rp-appel 1.4s 2.2s ease-in-out 2; }

  .vu .rp-transit span { animation: rp-pousse 2.2s .4s var(--ease-doux) both; }
}

/* Mouvement réduit : rien ne bouge, les éléments apparaissent en fondu doux */
@media (prefers-reduced-motion: reduce) {
  .vu .rp-surligne::after,
  .vu .rp-signature,
  .vu .rp-bulle,
  .vu .rp-fait .rp-coche,
  .vu .rp-configurer { animation: rp-fondu 1.2s .4s ease-out both; }
  .vu .rp-bulle { animation-delay: .9s; }
}

@media (max-width: 480px) {
  .rp-pdf { height: 300px; }
  .rp-pdf-barre .rp-puce:last-child { display: none; }
  .rp-page { width: 100%; }
  .rp-signature { width: 96px; }
  .rp-signe-ligne { width: 100px; }
  .rp-bulle { top: auto; bottom: 14px; right: 10px; width: 54%; padding: 8px 10px; font-size: 11.5px; }
  .rp-route { height: auto; padding: 12px; }
  .rp-route-carte { padding: 12px; }
  .rp-route-tete { flex-wrap: wrap; row-gap: 2px; }
}
