/* Page d'accueil de la plateforme Wenze : mêmes couleurs, police et composants que la boutique et le Studio. */
body.home { --accent: #1AF0A8; }
.home-top { position: sticky; top: 0; z-index: 10; background: var(--ag-bg-100); border-bottom: 1px solid var(--ag-border-100); }
.home-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.home-logo img { height: 44px; width: auto; }
.home-nav { display: flex; align-items: center; gap: 10px 18px; font-weight: 600; font-size: 15px; }
.home-nav .btn { white-space: nowrap; }
.home-nav a:not(.btn):hover { color: var(--accent); }
/* Haut de page : mosaïque de photos floutée et assombrie, notifications animées, texte au premier plan */
.home-hero { position: relative; overflow: hidden; isolation: isolate; padding: 88px 0 88px; background: var(--ag-bg-000); }
.home-hero > .wrap { position: relative; z-index: 3; }
/* Tranches : 4 photos découpées en bandes verticales, posées côte à côte et légèrement décalées */
.hero-slices { position: absolute; z-index: 0; top: 34px; bottom: 34px; right: 3%; left: 56%; display: flex; gap: 12px; }
@media (min-width: 721px) { .home-hero h1 { max-width: min(18ch, 50vw); font-size: clamp(34px, 4.4vw, 58px); } .home-hero .lead { max-width: min(62ch, 46vw); } }
.slice { position: relative; flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; border-radius: 18px;
  /* Fondu : la photo se perd en haut et en bas dans le fond de la page */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%); }
/* Photos nettes mais adoucies, comme faisant partie de l'arrière-plan */
.slice img { width: 100%; height: 100%; object-fit: cover; object-position: var(--px, 50%) center; display: block;
  opacity: .58; filter: saturate(.85); }
.slice.s1 { --px: 56%; --py: 60%; top: 22px; }
.slice.s2 { --px: 55%; --py: 61%; top: -12px; }
.slice.s3 { --px: 53%; --py: 60%; top: 14px; }
.slice.s4 { --px: 52%; --py: 53%; top: -18px; }
/* Petite bulle en verre transparent, juste sous le téléphone : elle ne cache jamais les visages.
   Le texte est en miroir (écrit pour la personne qui tient le téléphone). */
.msg { position: absolute; z-index: 2; left: 50%; top: calc(var(--py) + 8px); width: max-content; max-width: calc(100% - 20px); box-sizing: border-box;
  transform: translateX(-50%) scaleX(-1); padding: 5px 9px 6px; border-radius: 4px 12px 12px 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.42); color: #FFFFFF;
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  font-size: 11px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.45);
  box-shadow: 0 6px 16px rgba(0,0,0,.25); opacity: 0; animation: pop 12s ease-out infinite; }
.msg b { display: block; margin-top: 1px; font-size: 12px; font-weight: 800; }
.s2 .msg { animation-delay: 1.5s; } .s3 .msg { animation-delay: 3s; } .s4 .msg { animation-delay: 4.5s; }
@keyframes pop {
  0% { opacity: 0; translate: 0 10px; scale: .85; }
  4% { opacity: 1; translate: 0 0; scale: 1; }
  70% { opacity: 1; translate: 0 0; scale: 1; }
  76%, 100% { opacity: 0; translate: 0 -6px; scale: 1; }
}
/* Téléphone : une seule bulle visible à la fois (≈ 2,5 s chacune), pour qu'elles ne se gênent pas */
@keyframes pop-m {
  0% { opacity: 0; translate: 0 8px; scale: .85; }
  4% { opacity: 1; translate: 0 0; scale: 1; }
  21% { opacity: 1; translate: 0 0; scale: 1; }
  24%, 100% { opacity: 0; translate: 0 -6px; scale: 1; }
}
@media (prefers-reduced-motion: reduce) { .msg { animation: none !important; opacity: 1; } }

.home-hero .eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.home-hero h1 { font-size: clamp(32px, 6vw, 60px); max-width: 18ch; text-wrap: balance; }
.home-hero .lead { color: var(--ag-ink-muted); font-size: 18px; line-height: 1.6; max-width: 62ch; margin: 20px 0 28px; }
.home-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .fine { color: var(--ag-ink-subtle); font-size: 13px; margin: 16px 0 0; }
.home-grid { padding-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; padding-bottom: 56px; }
.home-grid h2, .home-demo h2 { font-size: 19px; margin: 0 0 8px; }
.home-grid p, .home-demo p { color: var(--ag-ink-muted); line-height: 1.55; margin: 0; }
.home-grid code { color: var(--accent); font-size: 14px; }
.home-steps { padding-bottom: 56px; }
.home-steps h2 { font-size: 28px; margin: 0 0 20px; }
.home-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; counter-reset: step; }
.home-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius-card); border: 1px solid var(--ag-border-100); background: var(--ag-bg-100); }
.home-steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ag-on-accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.home-steps li span { color: var(--ag-ink-muted); line-height: 1.5; }
.home-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.home-foot { border-top: 1px solid var(--ag-border-100); background: var(--ag-bg-100); color: var(--ag-ink-subtle); font-size: 14px; }
.home-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.home-foot nav { display: flex; gap: 18px; }
@media (max-width: 720px) {
  .home-nav .hide-sm { display: none; }
  .home-logo img { height: 36px; }
  .home-nav { gap: 8px; }
  .home-nav .btn.small { height: 38px; padding: 0 10px; font-size: 12px; }
  .home-logo img { height: 32px; }
  /* Téléphone : les 4 tranches sous les boutons, assez hautes pour voir la personne et son téléphone */
  .home-hero { padding: 36px 0 440px; }
  .hero-slices { left: 12px; right: 12px; top: auto; bottom: 28px; height: 340px; gap: 6px; }
  .slice { border-radius: 12px; }
  .slice.s1 { top: 10px; } .slice.s2 { top: -8px; } .slice.s3 { top: 8px; } .slice.s4 { top: -10px; }
  .msg { font-size: 9px; padding: 4px 6px 5px; border-radius: 3px 9px 9px 9px; max-width: calc(100% - 10px); top: calc(var(--py) + 4px); animation-name: pop-m; }
  .msg b { font-size: 10px; }
  .s2 .msg { animation-delay: 3s; } .s3 .msg { animation-delay: 6s; } .s4 .msg { animation-delay: 9s; }
  .hero-shade { background: none; }
  .home-grid { padding-top: 32px; }
  .home-hero .lead { font-size: 16px; }
  .home-hero .cta .btn { flex: 1 1 100%; }
}

/* La page d'accueil gère elle-même ses marges : la photo touche l'en-tête */
body.home > main { padding-top: 0; margin-top: 0; }

/* Boutons en « verre » : matière translucide teintée de vert, lisible sur fond sombre */
.btn-glass { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, rgba(26,240,168,.22), rgba(26,240,168,.08)); border: 1px solid rgba(26,240,168,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s ease, transform .2s ease; }
.btn-glass:hover, .btn-glass:focus-visible { background: linear-gradient(180deg, rgba(26,240,168,.32), rgba(26,240,168,.14)); transform: translateY(-1px); }
/* Verre transparent (incolore) */
.btn-glass.clear { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.btn-glass.clear:hover, .btn-glass.clear:focus-visible { background: rgba(255,255,255,.16); }
.glass-links { display: flex; flex-wrap: wrap; gap: 10px; }
.glass-links .btn-glass { min-height: 40px; font-size: 14px; padding: 0 16px; }
