/* Homepage — couche premium Apple (n'altère pas primeo-site.css) */

/* ── Hero cinématique ── */
.po-hero {
  position: relative;
  min-height: auto;
  padding: 56px 22px 64px;
  overflow: visible;
}
.po-hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% 40%;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 113, 227, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(138, 216, 208, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 35% 28% at 15% 25%, rgba(153, 185, 242, 0.1) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.po-hero > * { position: relative; z-index: 1; }

.po-hero-visual {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: clamp(340px, 52vw, 480px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(165deg, #f8fafc 0%, #eef4fb 45%, #f5f9ff 100%);
  border: 1px solid rgba(0, 113, 227, 0.08);
  box-shadow: 0 32px 80px rgba(13, 71, 127, 0.1);
}
.po-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 0%, transparent 72%, rgba(251, 251, 253, 0.35) 100%);
  pointer-events: none;
}
[data-theme="dark"] .po-hero-visual {
  background: linear-gradient(165deg, #141c2e 0%, #101828 48%, #0d1320 100%);
  border-color: rgba(106, 161, 245, 0.14);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .po-hero-visual::after {
  background: linear-gradient(180deg, transparent 0%, transparent 70%, rgba(13, 19, 32, 0.45) 100%);
}
.po-hero-composition {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(20px, 5vw, 48px);
  padding: 36px 24px 20px;
  width: 100%;
  min-height: 260px;
}
.po-hero-logo-float {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.po-hero-logo-float:nth-child(1) { transform: translateY(8px); }
.po-hero-logo-float:nth-child(2) { transform: translateY(-12px) scale(1.08); }
.po-hero-logo-float:nth-child(3) { transform: translateY(4px); }
.po-hero-visual:hover .po-hero-logo-float:nth-child(1) { transform: translateY(4px); }
.po-hero-visual:hover .po-hero-logo-float:nth-child(2) { transform: translateY(-18px) scale(1.1); }
.po-hero-visual:hover .po-hero-logo-float:nth-child(3) { transform: translateY(0); }
.po-hero-logo-float .po-logo-slot {
  margin: 0;
  max-width: 156px;
  min-height: 128px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}
.po-hero-logo-float .po-logo-slot--fine.po-logo-slot--landscape img { height: 78px; }
.po-hero-logo-float .po-logo-slot--fine.po-logo-slot--portrait img { height: 102px; }
.po-hero-logo-float span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--po-ink-2);
}
/* Hero composition — pastels SVG (fidèles aux calligraphies) */
.po-hero-logo-float[data-brand="odrink"] .po-logo-slot {
  --brand-primary: #99b9f2; --brand-bg: rgba(153,185,242,0.16); --brand-bg-2: rgba(130,212,151,0.1); --brand-border: rgba(153,185,242,0.22);
}
.po-hero-logo-float[data-brand="oshield"] .po-logo-slot {
  --brand-primary: #95b5ee; --brand-bg: rgba(149,181,238,0.17); --brand-bg-2: rgba(138,216,208,0.11); --brand-border: rgba(149,181,238,0.24);
}
.po-hero-logo-float[data-brand="omnify"] .po-logo-slot {
  --brand-primary: #99b9f2; --brand-bg: rgba(153,185,242,0.15); --brand-bg-2: rgba(128,208,147,0.1); --brand-border: rgba(153,185,242,0.22);
}

.po-hero + .po-section {
  padding-top: 56px;
}
.po-hero-visual .po-stats-band {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
  margin: 0 20px 20px;
  padding: 16px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  max-width: none;
}
[data-theme="dark"] .po-hero-visual .po-stats-band {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .po-hero .po-headline {
  background: linear-gradient(135deg, #eef3fa 0%, #eef3fa 55%, #6aa1f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .po-client-mock {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(106, 161, 245, 0.15);
}
[data-theme="dark"] .po-client-row { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .po-core-note { background: rgba(106,161,245,0.1); border-color: rgba(106,161,245,0.18); }

/* Fallback si bandeau hors carte (autres pages) */
.po-stats-band {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 64px);
  flex-wrap: wrap;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 18px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}
.po-stat { text-align: center; }
.po-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--po-ink);
  line-height: 1;
}
.po-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--po-ink-3);
}

/* Scroll reveal */
.po-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.po-reveal.visible {
  opacity: 1;
  transform: none;
}
.po-reveal-delay-1 { transition-delay: 0.08s; }
.po-reveal-delay-2 { transition-delay: 0.16s; }
.po-reveal-delay-3 { transition-delay: 0.24s; }

/* Tuiles solutions — hover logo */
.po-product-tile .po-logo-slot {
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s;
}
.po-product-tile:hover .po-logo-slot {
  transform: scale(1.04);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1), inset 3px 0 0 var(--brand-primary);
}

/* OPremium shimmer subtil */
.po-tier-card {
  position: relative;
  overflow: hidden;
}
.po-tier-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s;
  pointer-events: none;
}
.po-tier-card:hover::after { transform: translateX(120%); }

/* Client mock glass */
.po-client-mock {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Band Connect — gradient vivant */
.po-band {
  position: relative;
  overflow: hidden;
}
.po-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #0d477f, #0071e3 40%, #5856d6 80%, #0d477f);
  background-size: 200% 200%;
  animation: po-band-shift 12s ease infinite;
  opacity: 0.35;
}
@keyframes po-band-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.po-band > * { position: relative; z-index: 1; }

/* Accent titre hero */
.po-hero .po-headline {
  background: linear-gradient(135deg, #1d1d1f 0%, #1d1d1f 55%, #0071e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .po-hero .po-headline { color: var(--po-ink); background: none; -webkit-text-fill-color: currentColor; }
}

/* Tuiles why — reveal stagger */
.po-why-card { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s, box-shadow 0.25s; }
.po-why-card.visible { opacity: 1; transform: none; }
.po-why-card:nth-child(2) { transition-delay: 0.06s; }
.po-why-card:nth-child(3) { transition-delay: 0.12s; }
.po-why-card:nth-child(4) { transition-delay: 0.18s; }

@media (max-width: 720px) {
  .po-hero { padding-bottom: 48px; }
  .po-hero-composition { gap: 12px; padding: 24px 12px 12px; min-height: 220px; }
  .po-hero-logo-float .po-logo-slot { max-width: 100px; min-height: 88px; }
  .po-hero-visual .po-stats-band { margin: 0 14px 14px; gap: 16px; padding: 14px 16px; }
  .po-hero-visual { min-height: 300px; }
}
