/* ============================================================
   Lovely Couple — Hub premium polish for /outils-couple-ia/
   Scoped layer (lcx-*) loaded only on the hub page.
   Reuses the design tokens from seo-pillar.css (:root --lc-*).
   No JS lib, no heavy image, no external font. CSS-only visuals.
   ============================================================ */

/* ---------- Hero: premium stage with phone mockup ---------- */
.lcx-hero-stage{
  position:relative;
  min-height:430px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lcx-hero-stage:before{
  content:"";
  position:absolute;
  inset:6% 4%;
  border-radius:48px;
  background:radial-gradient(circle at 30% 20%,rgba(255,79,147,.32),transparent 60%),
             radial-gradient(circle at 80% 80%,rgba(156,53,236,.28),transparent 62%);
  filter:blur(14px);
  z-index:0;
}
.lcx-phone{
  position:relative;
  z-index:2;
  width:min(280px,72vw);
  background:linear-gradient(160deg,#fff,#fff6fb);
  border:1px solid var(--lc-border);
  border-radius:38px;
  padding:14px 14px 18px;
  box-shadow:0 34px 80px rgba(126,0,76,.22),0 4px 0 rgba(255,255,255,.6) inset;
}
.lcx-phone-notch{
  width:96px;height:7px;border-radius:999px;
  background:#ffd7e7;margin:2px auto 12px;
}
.lcx-phone-screen{
  background:linear-gradient(180deg,#fff7fb,#ffeef6);
  border:1px solid #ffe0ec;
  border-radius:26px;
  padding:14px 13px 16px;
  display:flex;flex-direction:column;gap:10px;
  min-height:300px;
}
.lcx-chat-head{display:flex;align-items:center;gap:10px;padding-bottom:6px;border-bottom:1px solid #ffe0ec}
.lcx-chat-avatar{
  width:34px;height:34px;border-radius:14px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--lc-hot),var(--lc-purple));
  color:#fff;font-size:16px;box-shadow:0 8px 20px rgba(242,38,117,.28);
}
.lcx-chat-head strong{display:block;font-size:14px;line-height:1.1;color:var(--lc-plum)}
.lcx-chat-head small{display:block;font-size:11px;color:var(--lc-muted);font-weight:800}
.lcx-bubble{
  max-width:84%;padding:9px 12px;border-radius:16px;
  font-size:13.5px;line-height:1.4;font-weight:700;
}
.lcx-bubble--in{
  align-self:flex-start;background:#fff;border:1px solid #ffe0ec;
  color:var(--lc-plum);border-bottom-left-radius:5px;
}
.lcx-bubble--out{
  align-self:flex-end;color:#fff;border-bottom-right-radius:5px;
  background:linear-gradient(135deg,var(--lc-hot),var(--lc-purple));
  box-shadow:0 10px 24px rgba(242,38,117,.22);
}
.lcx-bubble--typing{align-self:flex-start;display:inline-flex;align-items:center;gap:2px;min-height:34px}
.lcx-type{font-weight:800;color:var(--lc-hot)}
.lcx-caret{
  display:inline-block;width:2px;height:15px;margin-left:1px;
  background:var(--lc-hot);border-radius:2px;
  animation:lcx-blink 1s steps(1) infinite;
}
@keyframes lcx-blink{50%{opacity:0}}

/* Floating tool chips around the phone */
.lcx-float{
  position:absolute;z-index:3;
  background:rgba(255,255,255,.92);
  border:1px solid var(--lc-border);
  border-radius:16px;padding:9px 13px;
  font-size:13px;font-weight:900;color:var(--lc-plum);
  box-shadow:0 16px 38px rgba(126,0,76,.16);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  white-space:nowrap;
  animation:lcx-floaty 6s ease-in-out infinite;
}
.lcx-float--1{top:8%;left:-4%;animation-delay:0s}
.lcx-float--2{top:26%;right:-6%;animation-delay:.8s}
.lcx-float--3{bottom:20%;left:-7%;animation-delay:1.6s}
.lcx-float--4{bottom:4%;right:-2%;animation-delay:2.4s}
@keyframes lcx-floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}

/* ---------- En bref: 3 benefit cards ---------- */
.lcx-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.lcx-benefit{
  background:linear-gradient(160deg,#fff,#fff6fb);
  border:1px solid var(--lc-border);border-radius:22px;padding:16px 16px 18px;
}
.lcx-benefit-ico{
  width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  font-size:20px;margin-bottom:10px;
  background:var(--lc-soft);border:1px solid var(--lc-border);
}
.lcx-benefit h3{font-size:18px;margin:0 0 4px;letter-spacing:-.02em}
.lcx-benefit p{font-size:14.5px;line-height:1.5;color:var(--lc-muted);margin:0}

/* ---------- Tool groups (portail) ---------- */
.lcx-groupHead{margin:34px 0 14px}
.lcx-groupHead h3{font-size:clamp(20px,3vw,26px);margin:0 0 4px;letter-spacing:-.03em}
.lcx-groupHead p{font-size:15px;color:var(--lc-muted);margin:0}

/* Featured tools: 3 large cards */
.lcx-featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lcx-fcard{
  position:relative;display:flex;flex-direction:column;
  background:linear-gradient(165deg,#fff 0,#fff4fa 100%);
  border:1px solid var(--lc-border);border-radius:26px;padding:22px;
  text-decoration:none;color:var(--lc-plum);overflow:hidden;
  box-shadow:0 18px 46px rgba(135,0,79,.10);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.lcx-fcard:before{
  content:"";position:absolute;top:-40%;right:-30%;width:70%;height:80%;
  background:radial-gradient(circle,rgba(255,79,147,.18),transparent 70%);
  opacity:0;transition:opacity .25s ease;
}
.lcx-fcard:hover{transform:translateY(-5px);box-shadow:0 30px 70px rgba(135,0,79,.18);border-color:#ff9ec2}
.lcx-fcard:hover:before{opacity:1}
.lcx-fcard-ico{
  width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  font-size:23px;margin-bottom:14px;
  background:linear-gradient(135deg,rgba(242,38,117,.12),rgba(156,53,236,.12));
  border:1px solid var(--lc-border);
}
.lcx-fcard-tag{
  display:inline-flex;align-self:flex-start;margin-bottom:8px;
  font-size:11px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:var(--lc-hot);
}
.lcx-fcard h4{font-size:21px;line-height:1.12;letter-spacing:-.03em;margin:0 0 8px}
.lcx-fcard p{font-size:14.5px;line-height:1.5;color:var(--lc-muted);margin:0 0 14px}
.lcx-preview{
  background:#fff;border:1px dashed #ffc4dc;border-radius:14px;
  padding:9px 12px;font-size:13px;line-height:1.4;color:#7a5a72;font-style:italic;margin-bottom:14px;
}
.lcx-preview b{color:var(--lc-hot);font-style:normal}
.lcx-fcard-go{
  margin-top:auto;display:inline-flex;align-items:center;gap:6px;
  font-weight:950;color:var(--lc-hot);font-size:14.5px;
}
.lcx-fcard-go:after{content:"\2192";transition:transform .2s ease}
.lcx-fcard:hover .lcx-fcard-go:after{transform:translateX(4px)}

/* Compact tool cards (situation + play) */
.lcx-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.lcx-tools.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.lcx-tcard{
  display:flex;gap:13px;align-items:flex-start;
  background:#fff;border:1px solid var(--lc-border);border-radius:20px;padding:16px;
  text-decoration:none;color:var(--lc-plum);
  box-shadow:0 12px 32px rgba(135,0,79,.07);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.lcx-tcard:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(135,0,79,.13);border-color:#ff9ec2}
.lcx-tcard-ico{
  width:40px;height:40px;border-radius:13px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-size:19px;
  background:var(--lc-soft);border:1px solid var(--lc-border);
}
.lcx-tcard-body{min-width:0}
.lcx-tcard h4{font-size:16.5px;line-height:1.18;letter-spacing:-.02em;margin:0 0 3px}
.lcx-tcard p{font-size:13.5px;line-height:1.45;color:var(--lc-muted);margin:0}

/* ---------- "Choisis ton moment" parcours ---------- */
.lcx-moments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:8px}
.lcx-moment{
  display:flex;align-items:center;gap:14px;
  background:linear-gradient(135deg,#fff,#fff6fb);
  border:1px solid var(--lc-border);border-radius:20px;padding:15px 16px;
  text-decoration:none;color:var(--lc-plum);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.lcx-moment:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(135,0,79,.12);border-color:#ff9ec2}
.lcx-moment-ico{
  width:46px;height:46px;border-radius:15px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-size:22px;
  background:linear-gradient(135deg,rgba(242,38,117,.12),rgba(156,53,236,.12));
  border:1px solid var(--lc-border);
}
.lcx-moment-body{min-width:0;flex:1}
.lcx-moment h4{font-size:16px;line-height:1.2;letter-spacing:-.02em;margin:0 0 2px}
.lcx-moment p{font-size:13.5px;line-height:1.4;color:var(--lc-muted);margin:0}
.lcx-moment-go{flex:0 0 auto;color:var(--lc-hot);font-weight:950;font-size:18px;transition:transform .18s ease}
.lcx-moment:hover .lcx-moment-go{transform:translateX(4px)}

/* ---------- "Comment ça marche" steps ---------- */
.lcx-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:8px;counter-reset:lcx-step}
.lcx-step{
  position:relative;background:#fff;border:1px solid var(--lc-border);
  border-radius:22px;padding:22px 18px 18px;
  box-shadow:0 12px 32px rgba(135,0,79,.07);
}
.lcx-step:before{
  counter-increment:lcx-step;content:counter(lcx-step);
  position:absolute;top:-16px;left:18px;
  width:38px;height:38px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  font-weight:950;font-size:18px;color:#fff;
  background:linear-gradient(135deg,var(--lc-hot),var(--lc-purple));
  box-shadow:0 12px 28px rgba(242,38,117,.28);
}
.lcx-step h4{font-size:18px;margin:10px 0 6px;letter-spacing:-.02em}
.lcx-step p{font-size:14.5px;line-height:1.5;color:var(--lc-muted);margin:0}

/* ---------- IA incarnée ---------- */
.lcx-ai{
  background:linear-gradient(160deg,#fff,#fff4fa);
  border:1px solid var(--lc-border);border-radius:28px;
  padding:clamp(20px,3vw,32px);margin:32px 0;
  box-shadow:0 18px 46px rgba(135,0,79,.08);
}
.lcx-ai h2{margin:0 0 8px}
.lcx-ai-lead{font-size:16px;line-height:1.6;color:#5d465e;max-width:760px;margin:0 0 18px}
.lcx-ai-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.lcx-ai-card{background:#fff;border:1px solid var(--lc-border);border-radius:18px;padding:16px}
.lcx-ai-ico{font-size:22px;margin-bottom:8px;display:block}
.lcx-ai-card h4{font-size:16px;margin:0 0 4px;letter-spacing:-.02em}
.lcx-ai-card p{font-size:13.5px;line-height:1.45;color:var(--lc-muted);margin:0}
.lcx-ai-cta{
  display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(135deg,var(--lc-hot),var(--lc-purple));color:#fff;
  border-radius:999px;padding:13px 20px;text-decoration:none;font-weight:950;
  box-shadow:0 16px 38px rgba(242,38,117,.22);transition:transform .18s ease;
}
.lcx-ai-cta:hover{transform:translateY(-2px)}

/* ---------- Hero microcopy line ---------- */
.lcx-microcopy{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:16px;color:var(--lc-muted);font-weight:850;font-size:14px}
.lcx-microcopy span{display:inline-flex;align-items:center;gap:6px}
.lcx-microcopy span:before{content:"\2713";color:var(--lc-hot);font-weight:950}

/* ---------- Responsive ---------- */
@media(max-width:880px){
  .lcx-hero-stage{min-height:360px;margin-top:14px}
  .lcx-benefits,.lcx-featured,.lcx-tools,.lcx-tools.two,.lcx-moments,.lcx-steps,.lcx-ai-grid{grid-template-columns:1fr}
  .lcx-step{padding-top:26px}
}
@media(max-width:520px){
  .lcx-phone{width:min(248px,82vw)}
  .lcx-float{font-size:12px;padding:7px 10px}
  .lcx-float--1{left:-2%}.lcx-float--2{right:-2%}.lcx-float--3{left:-2%}.lcx-float--4{right:0}
  .lcx-hero-stage:before{inset:10% 8%}
}
/* Page-scoped hero H1 guard on very narrow screens (does not touch shared seo-pillar.css) */
@media(max-width:380px){
  .lc-pillar[data-page-type="tools_couple_ai"] .lc-hero h1{font-size:clamp(30px,9vw,36px);overflow-wrap:break-word}
}

/* ---------- Accessibility: reduce motion ---------- */
@media(prefers-reduced-motion:reduce){
  .lcx-float{animation:none}
  .lcx-caret{animation:none;opacity:1}
  .lcx-fcard,.lcx-tcard,.lcx-moment,.lcx-ai-cta,.lcx-fcard-go:after,.lcx-moment-go{transition:none}
}
