/* home-a : styles spécifiques à la page d accueil (refonte T-001)
   Périmètre : hero, bandeau preuve, pain points, habillage de la démo.
   Les composants .btn .badge .chip .mark .sticker .card viennent de site.css (jamais redéfinis ici).
   Animations : transform / opacity uniquement. */

/* =========================================================
   2. HERO
   ========================================================= */
.home .hero {
  padding: calc(var(--nav-h, 64px) + 14px + 64px) 32px 88px;
  background: var(--bg-primary);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.home .hero .badge { margin-bottom: 28px; animation: homeFadeDown .6s ease both; }
.home .hero h1 { max-width: 980px; margin: 0 auto 24px; text-wrap: balance; text-transform: none; }
.home .hero h1 em { font-style: italic; }
.home .hero-sub {
  font-size: 19px; font-weight: 400; line-height: 1.55; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 36px;
  opacity: 0; animation: homeFadeUp .7s ease .25s forwards;
}
.home .hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: none; animation: homeFadeUp .7s ease .4s forwards;
}
.home .hero-chips {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  opacity: 0; animation: homeFadeUp .7s ease .55s forwards;
}
/* lien discret sous les boutons (démo Calendly) */
.home .hero-alt { margin: 16px 0 0; font-size: 15px; color: var(--text-secondary); opacity: 0; animation: homeFadeUp .7s ease .5s forwards; }
.home .hero-alt a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime-dark); text-decoration-thickness: 2px; }
.home .hero-alt a:hover { color: var(--black); text-decoration-color: var(--black); }
.home .hero-cta .btn-wa-ico { width: 20px; height: 20px; flex: none; }

/* A/B « hero_cta » (assets/ab.js) : variante a = diagnostic en primaire (style par défaut) ;
   variante b = WhatsApp en primaire, placé en premier. Ordre et style en CSS seulement (pas de JS visible). */
html[data-ab-hero_cta="b"] .home .hero-cta .cta-wa { order: -1; background: var(--black); border-color: var(--black); color: var(--white); }
html[data-ab-hero_cta="b"] .home .hero-cta .cta-wa:hover, html[data-ab-hero_cta="b"] .home .hero-cta .cta-wa:focus-visible { background: var(--lime); border-color: var(--lime); color: #222222; }
html[data-ab-hero_cta="b"] .home .hero-cta .cta-diag { background: var(--bg-card); border-color: var(--black); color: var(--black); }
html[data-ab-hero_cta="b"] .home .hero-cta .cta-diag:hover, html[data-ab-hero_cta="b"] .home .hero-cta .cta-diag:focus-visible { background: var(--lime); border-color: var(--lime); color: #222222; }

.home .hero-chips .chip { display: inline-flex; align-items: center; gap: 8px; }
.home .hero-chips .chip-check { width: 20px; height: 20px; flex: none; }

/* vidéo : cadre arrondi, contour anthracite conservé (demande de Lucas) */
.home .hero-visual {
  position: relative; margin-top: 64px; width: 100%; max-width: 1040px;
  perspective: none; opacity: 0; animation: homeFadeUp .9s cubic-bezier(.16,1,.3,1) .5s forwards;
}
.home .hero-video {
  border-radius: var(--r-lg, 28px);
  box-shadow: 0 0 0 6px #222222, var(--shadow-float, 0 24px 56px rgba(34,34,34,.10));
}
html[data-theme="dark"] .home .hero-video {
  box-shadow: 0 0 0 6px #222222, 0 0 0 7px rgba(255,255,255,.12), var(--shadow-float, 0 24px 56px rgba(0,0,0,.5));
}
/* sticker posé sur le coin bas gauche du cadre (hors de l'élément parallaxe, pas d'overflow caché) */
.home .hero-sticker { position: absolute; left: -10px; bottom: -22px; z-index: 3; }

@keyframes homeFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes homeFadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   2b. BANDEAU PREUVE (sobre, statique)
   ========================================================= */
.home .proof-strip { padding: 24px 0 96px; background: var(--bg-primary); }
.home .proof-strip-inner {
  margin: 0; padding: 22px 28px;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "photo quote" "photo who";
  column-gap: 20px; row-gap: 6px; align-items: center; text-align: left;
  border: 1px solid var(--border); border-radius: var(--r-lg, 28px); background: var(--bg-card);
}
.home .proof-strip-photo { grid-area: photo; align-self: center; display: block; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--lime); }
.home .proof-strip-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.home .proof-strip-quote { grid-area: quote; margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-primary); font-weight: 400; }
.home .proof-strip-who { grid-area: who; font-size: 14px; color: var(--text-secondary); }
.home .proof-strip-who strong { color: var(--text-primary); font-weight: 700; }
.home .proof-strip-who strong::after { content: ", "; font-weight: 400; }

/* =========================================================
   3. PAIN POINTS
   ========================================================= */
.home .problem { background: var(--bg-warm, var(--bg-secondary)); }
.home .problem h2 { max-width: 780px; margin: 0 auto 20px; text-transform: none; }
.home .problem .lead { max-width: 600px; margin: 0 auto 56px; font-size: 19px; font-weight: 400; }
.home .pain-grid { gap: 24px; max-width: 960px; }
.home .pain {
  position: relative; border-radius: var(--r-lg, 28px); padding: 32px;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  text-align: left;
}
.home .pain .label {
  display: inline-flex; margin: 0 0 16px; text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.home .pain p { font-size: 17px; font-weight: 400; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.home .photo-slot--wide { border-radius: var(--r-lg, 28px); border-style: solid; margin-top: 56px; }
.home .problem-quote { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.25; letter-spacing: -0.02em; margin-top: 56px; max-width: 760px; }
.home .problem-quote em { font-style: italic; }

/* inclinaison statique + survol : propriétés rotate / translate indépendantes
   (elles ne se mélangent pas avec le transform du reveal .stagger) */
@media (min-width: 1024px) {
  .home .pain:nth-child(1) { rotate: -1deg; }
  .home .pain:nth-child(2) { rotate: 1deg; }
  .home .pain:nth-child(3) { rotate: 1deg; }
  .home .pain:nth-child(4) { rotate: -1deg; }
}
@media (hover: hover) {
  .home .pain { transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1), translate .25s ease; }
  .home .pain:hover { translate: 0 -4px; }
}

/* =========================================================
   4. DÉMO INTERACTIVE (habillage seul, logique JS inchangée)
   ========================================================= */
.home .demo { background: var(--bg-primary); }
.home .demo h2 { text-transform: none; margin-bottom: 18px; }
.home .demo .lead { font-size: 19px; font-weight: 400; }
.home .demo-window {
  border-radius: var(--r-lg, 28px); border: 1px solid var(--border);
  box-shadow: var(--shadow-float, 0 24px 56px rgba(34,34,34,.10));
}
.home .demo-topbar { padding: 16px 22px; }
.home .demo-cfg-title { font-weight: 700; }
.home .dmod { border-radius: var(--r-md, 20px); padding: 22px 20px; box-shadow: none; }
.home .dmod:hover { border-color: var(--lime-dark); }
.home .dmod.sel { border-color: var(--lime-dark); background: var(--lime-wash); box-shadow: none; }
.home .dmod-ic { border-radius: 12px; box-shadow: none; }
.home .dmod.sel .dmod-ic { box-shadow: none; }
.home .demo-tab { border-radius: var(--r-sm, 12px); }
.home .dp-action { border-radius: var(--r-pill, 999px); padding: 12px 20px; }
.home .dp-head { font-weight: 700; }
.home .demo-foot { padding: 18px 26px; }
/* « Tester l'application en vrai » : bouton principal standard (non teinté par la couleur de démo, contraste AA garanti) */
.home .demo-app .demo-foot .btn-primary { background: var(--black); border-color: var(--black); color: var(--white); }
.home .demo-app .demo-foot .btn-primary:hover, .home .demo-app .demo-foot .btn-primary:focus-visible { background: var(--lime); border-color: var(--lime); color: #222222; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  .home .proof-strip-inner { grid-template-areas: "photo who" "quote quote"; row-gap: 14px; }
}
@media (max-width: 768px) {
  .home .hero { padding: calc(var(--nav-h, 64px) + 14px + 40px) 20px 56px; }
  .home .hero-sub { font-size: 17px; }
  .home .hero-cta { width: 100%; flex-direction: column; }
  .home .hero-cta .btn { width: 100%; justify-content: center; min-height: 52px; }
  .home .hero-visual { margin-top: 48px; }
  .home .hero-video { border-radius: var(--r-md, 20px); }
  .home .hero-sticker { left: 8px; bottom: -18px; }
  .home .proof-strip { padding: 8px 0 64px; }
  .home .proof-strip-inner { padding: 20px; border-radius: var(--r-md, 20px); }
  .home .problem .lead { font-size: 17px; margin-bottom: 40px; }
  .home .pain { padding: 24px; border-radius: var(--r-md, 20px); }
  .home .pain p { font-size: 16px; }
  .home .photo-slot--wide { border-radius: var(--r-md, 20px); margin-top: 40px; }
  .home .demo .lead { font-size: 17px; }
  .home .demo-window { border-radius: var(--r-md, 20px); }
  .home .demo-config { padding: 24px 18px; }
}

/* mouvement réduit : état final direct */
@media (prefers-reduced-motion: reduce) {
  .home .hero .badge, .home .hero-sub, .home .hero-cta, .home .hero-alt, .home .hero-chips, .home .hero-visual { animation: none; opacity: 1; transform: none; }
  .home .pain:nth-child(n) { rotate: 0deg; translate: none; transition: none; }
}
