/*
 * Octopia — landing candidate « v4 » (route /v4, 2026-09-11).
 * S'appuie sur landing-v2.css + landing-v3.css et n'ajoute que le bandeau des
 * vitrines compatibles (hero et carte d'essai). Aucune classe v2/v3 n'est
 * écrasée : la landing en production reste intacte.
 */

/* ------------------------------------------------- vitrines compatibles */
.v4-platforms {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 24px 0 0;
}
.v4-platforms-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
}
.v4-platform { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; }
.v4-platform svg { width: 24px; height: 24px; flex: 0 0 auto; }
/* Les wordmarks (Woo, PrestaShop) sont le nom lui-même : hauteur calée sur la
   capitale du texte voisin, largeur libre. */
.v4-platform .v4-wordmark { width: auto; height: 22px; }
.v4-platform .v4-wordmark-woo { height: 26px; }
.v4-platform .v4-wordmark-prestashop { height: 15px; }

/* Dans le hero (fond sombre) : noms en blanc, logos en couleur de marque. */
.v2-hero .v4-platforms { color: #fff; }
.v2-hero .v4-platforms-label { color: rgba(255, 255, 255, .55); }
.v2-hero .v4-platform-shopify svg { fill: #b8dc7a; }

/* Dans la carte d'essai (fond clair). */
.v3-trial .v4-platforms {
  justify-content: center; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--ink-900);
}
.v3-trial .v4-platforms-label { color: var(--ink-500); }
.v3-trial .v4-platform { font-size: 16px; }
.v4-trial-platforms { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-500); text-align: center; }
.v3-trial-points strong { color: var(--ink-900); font-weight: 700; }

@media (max-width: 600px) {
  .v4-platforms { gap: 8px 18px; }
  .v4-platform { font-size: 14.5px; }
}

/* ------------------------------------------------------------- App Store */
/* Un bandeau, pas une bannière : une seule ligne sur grand écran, le picto,
   la phrase, le bouton. Il se replie en colonne sous 720px. */
.v4-appstore-card {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 28px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
}
.v4-appstore-mark { flex: 0 0 auto; display: inline-flex; }
.v4-appstore-mark svg { width: 40px; height: 40px; }
.v4-appstore-text { flex: 1 1 auto; min-width: 0; }
.v4-appstore-text h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.v4-appstore-text p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-500); }
.v4-appstore-btn { flex: 0 0 auto; }
.v4-appstore-fine { margin: 12px 2px 0; font-size: 14px; line-height: 1.55; color: var(--ink-500); }

@media (max-width: 720px) {
  .v4-appstore-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .v4-appstore-btn { width: 100%; text-align: center; }
}

/* ------------------------------------------------------ avant / après */
/* Le cadre de la page de démonstration (preview.css, classes pv-*) posé dans
   la landing : la paire sort de la colonne de 1180 px dès 1440 px pour que
   chaque cadre garde les 640 px sous lesquels la mise en page Octopia replie
   ses rangées en pile. Les titres de carte sont des h3 ici (la section porte
   le h2). */
/* The before/after panels enter sideways (data-an="left"/"right", 48 px):
   until they have, the "after" one stood past the right edge and the page
   could be slid 22 px sideways (measured in Firefox, 1440 and 390 px,
   2026-10-28). `clip`, not `hidden`: it makes no scroll container, so the
   sticky "before" column keeps working. */
.v3-example { overflow-x: clip; }
.lp-duo { margin-top: 34px; }
.lp-duo .pv-side-head h3 { margin: 0; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; line-height: 1.2; }
.lp-duo .pv-frame-wrap.is-clipped::after { height: 180px; }
@media (max-width: 720px) {
  .lp-duo { padding: 0 16px; }
  .lp-duo .pv-side-head { padding: 16px 18px 14px; }
}

/* ------------------------------------------- haut de page lisible d'emblée */
/* Le texte du hero ne passe plus par l'opacité 0 : il glisse en place, visible
   dès le premier affichage. Caché, il retardait de 3,7 s le plus grand élément
   affiché (le paragraphe d'accroche), que PageSpeed mesure (Lighthouse mobile,
   2026-11-03). L'animation est en CSS seul : elle part au premier affichage,
   sans attendre le script, donc sans saut quand .v2-js arrive. La carte de
   l'équipe (aside) garde son fondu. */
.v2-hero-grid > div [data-an],
.v2-hero .v2-word { animation: v4-rise .8s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms) both; }
.v2-hero-grid > div [data-an="up"] { --from: translateY(42px); }
.v2-hero-grid > div [data-an="down"] { --from: translateY(-32px); }
.v2-hero .v2-word { --from: translateY(28px) rotate(2deg); animation-duration: .6s; }
.v2-js .v2-hero-grid > div [data-an],
.v2-js .v2-hero .v2-word { opacity: 1; transform: none; transition: none; }
@keyframes v4-rise { from { transform: var(--from, none); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .v2-hero-grid > div [data-an], .v2-hero .v2-word { animation: none; }
}
