/* ============================================================
   HOME PAGE – home.css
   Préfixe : hm-  |  Zéro conflit avec new-styles.css
   Identité : produit IA premium, violet profond → rose → or
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --hm-dark:          #07070F;
  --hm-night:         #0D0D1A;
  --hm-surface:       #13131F;
  --hm-glass:         rgba(255,255,255,0.04);
  --hm-glass-border:  rgba(255,255,255,0.08);
  --hm-primary:       #FF3F7F;
  --hm-purple:        #8C00FF;
  --hm-gold:          #FFC400;
  --hm-gradient:      linear-gradient(135deg, #8C00FF 0%, #FF3F7F 55%, #FFC400 100%);
  --hm-gradient-full: linear-gradient(150deg, rgba(69,6,147,1) 0%, rgba(140,0,255,1) 25%, rgba(255,63,127,1) 66%, rgba(255,196,0,1) 90%);
  --hm-text:          #F0F0F8;
  --hm-text-mid:      rgba(240,240,248,0.65);
  --hm-text-dim:      rgba(240,240,248,0.38);
  --hm-radius-card:   20px;
  --hm-radius-pill:   999px;
  --hm-transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset scopé ────────────────────────────────────────────── */
.hm-section { box-sizing: border-box; }
.hm-section *, .hm-section *::before, .hm-section *::after { box-sizing: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.hm-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── Utilitaires ────────────────────────────────────────────── */
.hm-gradient-text {
  background: var(--hm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Reveal animation */
.hm-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.hm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hm-reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.hm-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.hm-reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.hm-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* =====================================================
   1. HERO
   ===================================================== */
.hm-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hm-dark);
  padding-top: 80px;
}

/* Vidéo plein fond – visible, overlay très léger */
.hm-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.72; /* vidéo bien visible */
}

/* Gradient subtil en bas pour transition douce */
.hm-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(7,7,15,0.18) 0%,
      rgba(7,7,15,0.05) 40%,
      rgba(7,7,15,0.55) 85%,
      rgba(7,7,15,0.92) 100%);
  z-index: 1;
}

/* Glow décoratif */
.hm-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(80px);
}
.hm-hero__glow--1 {
  width: 520px; height: 520px;
  top: -100px; right: -60px;
  background: radial-gradient(circle, rgba(140,0,255,0.22) 0%, transparent 70%);
}
.hm-hero__glow--2 {
  width: 420px; height: 420px;
  bottom: 40px; left: -80px;
  background: radial-gradient(circle, rgba(255,63,127,0.18) 0%, transparent 70%);
}
.hm-hero__glow--3 {
  width: 300px; height: 300px;
  bottom: 80px; right: 15%;
  background: radial-gradient(circle, rgba(255,196,0,0.15) 0%, transparent 70%);
}

/* Contenu hero */
.hm-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Badge "IA × Psychologie de couple" */
.hm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--hm-radius-pill);
  border: 1px solid rgba(255,196,0,0.35);
  background: rgba(255,196,0,0.08);
  color: #FFE066;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: hmFadeUp 0.7s ease both;
}
.hm-hero__badge svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.hm-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0;
  animation: hmFadeUp 0.75s 0.1s ease both;
}
.hm-hero__title .hm-gradient-text {
  display: block;
}

.hm-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-width: 620px;
  margin: 0;
  font-weight: 400;
  animation: hmFadeUp 0.75s 0.2s ease both;
}

/* Zone tester IA dans le hero */
.hm-hero__tester {
  width: 100%;
  max-width: 680px;
  animation: hmFadeUp 0.75s 0.3s ease both;
}

.hm-tester-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
}
.hm-tester-card:focus-within {
  border-color: rgba(140,0,255,0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.28), 0 0 0 3px rgba(140,0,255,0.14);
}

.hm-tester-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.97rem;
  font-family: 'Roboto', sans-serif;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  padding: 0.6rem 0;
  line-height: 1.5;
}
.hm-tester-input::placeholder { color: rgba(255,255,255,0.38); }

.hm-tester-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--hm-gradient);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--hm-transition), box-shadow var(--hm-transition);
}
.hm-tester-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255,63,127,0.45);
}
.hm-tester-btn svg { width: 18px; height: 18px; }

/* Conversation replay dans le tester */
.hm-tester-conversation {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 0.5rem 0.25rem;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: none;
}
.hm-tester-conversation::-webkit-scrollbar { display: none; }

.hm-msg {
  padding: 0.65rem 1rem;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 85%;
  animation: hmMsgIn 0.3s ease both;
}
@keyframes hmMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hm-msg--user {
  align-self: flex-end;
  background: var(--hm-gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.hm-msg--ai {
  align-self: flex-start;
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,0.07);
}
.hm-msg--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.7rem 1rem;
}
.hm-msg--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: hmDot 1.2s infinite;
}
.hm-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.hm-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hmDot {
  0%, 80%, 100% { transform: scale(1); opacity: 0.45; }
  40%           { transform: scale(1.4); opacity: 1; }
}

/* CTA secondaire sous le tester */
.hm-hero__cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: hmFadeUp 0.75s 0.4s ease both;
}

.hm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--hm-radius-pill);
  border: none;
  background: var(--hm-gradient);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--hm-transition), box-shadow var(--hm-transition);
  box-shadow: 0 4px 24px rgba(255,63,127,0.32);
}
.hm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,63,127,0.48);
  color: #fff;
}

.hm-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--hm-radius-pill);
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  color: rgba(255,255,255,0.82);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--hm-transition), color var(--hm-transition), background var(--hm-transition);
}
.hm-btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Metrics strip */
.hm-hero__metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: hmFadeUp 0.75s 0.5s ease both;
}
.hm-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.hm-metric__value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  background: var(--hm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hm-metric__label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hm-metric-sep {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.12);
}

/* Scroll indicator */
.hm-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: hmScrollFadeUp 1s 0.8s ease both;
}
@keyframes hmScrollFadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hm-hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: hmScrollLine 2s ease-in-out infinite;
}
@keyframes hmScrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

/* Keyframes globales hero */
@keyframes hmFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   3. FEATURES (produit)
   ===================================================== */
.hm-features {
  padding: 6rem 0;
  background: #fff;
}
.hm-features__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.hm-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hm-purple);
  margin-bottom: 0.75rem;
}
.hm-features__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #0D0D1A;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}
.hm-features__subtitle {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.hm-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hm-feature-card {
  background: #FAFAFA;
  border: 1px solid #EBEBEB;
  border-radius: var(--hm-radius-card);
  padding: 2rem 1.75rem;
  transition: transform var(--hm-transition), box-shadow var(--hm-transition), border-color var(--hm-transition);
  position: relative;
  overflow: hidden;
}
.hm-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--hm-gradient);
  opacity: 0;
  transition: opacity var(--hm-transition);
}
.hm-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(140,0,255,0.1);
  border-color: rgba(140,0,255,0.15);
}
.hm-feature-card:hover::before { opacity: 1; }

.hm-feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(140,0,255,0.08), rgba(255,63,127,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.hm-feature-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0D0D1A;
  margin: 0 0 0.5rem;
}
.hm-feature-card__text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   4. HOW IT WORKS (3 étapes)
   ===================================================== */
.hm-how {
  padding: 6rem 0;
  background: var(--hm-night);
  position: relative;
  overflow: hidden;
}
.hm-how::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(140,0,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hm-how__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4.5rem;
}
.hm-how__header .hm-section-label { color: var(--hm-gold); }
.hm-how__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.hm-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Ligne connectrice entre les étapes */
.hm-how__steps::before {
  content: '';
  position: absolute;
  top: 42px; left: calc(50% / 3 + 1.5rem);
  right: calc(50% / 3 + 1.5rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(140,0,255,0.6), rgba(255,63,127,0.6), rgba(255,196,0,0.6));
  z-index: 0;
}

.hm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hm-step__number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--hm-gradient);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(140,0,255,0.12);
}

.hm-step__img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 4/3;
}
.hm-step__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.hm-step:hover .hm-step__img img { transform: scale(1.04); }

.hm-step__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}
.hm-step__text {
  font-size: 0.88rem;
  color: var(--hm-text-mid);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   5. QUOTE / MANIFESTE
   ===================================================== */
.hm-quote {
  padding: 5rem 0;
  background: #fff;
}
.hm-quote__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hm-quote__mark {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  line-height: 0.6;
  margin-bottom: 1rem;
  background: var(--hm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hm-quote__text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  color: #0D0D1A;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}
.hm-quote__sub {
  font-size: 0.92rem;
  color: #888;
  margin: 0;
}

/* =====================================================
   6. FEATURE DEEP (accordéon + image)
   ===================================================== */
.hm-deep {
  padding: 6rem 0;
  background: #F7F7FA;
}
.hm-deep__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hm-deep__img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.hm-deep__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Bandeau dégradé en bas de l'image */
.hm-deep__img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(13,13,26,0.45), transparent);
}

.hm-deep__content {}
.hm-deep__label { margin-bottom: 0.75rem; }
.hm-deep__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #0D0D1A;
  line-height: 1.2;
  margin: 0 0 2rem;
}

/* Accordéon deep */
.hm-accordion {}
.hm-accordion__item {
  border-bottom: 1px solid #E5E5EC;
}
.hm-accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: #0D0D1A;
  transition: color var(--hm-transition);
}
.hm-accordion__btn:hover { color: var(--hm-purple); }
.hm-accordion__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(140,0,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--hm-transition), transform var(--hm-transition);
  color: var(--hm-purple);
}
.hm-accordion__btn[aria-expanded="true"] .hm-accordion__icon {
  background: var(--hm-gradient);
  border-color: transparent;
  color: #fff;
  transform: rotate(45deg);
}
.hm-accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.hm-accordion__body.is-open {
  max-height: 200px;
}
.hm-accordion__body p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

/* =====================================================
   7. BLOG
   ===================================================== */
.hm-blog {
  padding: 6rem 0;
  background: #fff;
}
.hm-blog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.hm-blog__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #0D0D1A;
  margin: 0;
}
.hm-blog__link {
  font-size: 0.88rem;
  color: var(--hm-purple);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--hm-transition);
  white-space: nowrap;
}
.hm-blog__link:hover { gap: 0.6rem; }
.hm-blog__link svg { width: 16px; height: 16px; }

.hm-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.hm-blog-card {
  border-radius: var(--hm-radius-card);
  overflow: hidden;
  background: #FAFAFA;
  border: 1px solid #EBEBEB;
  transition: transform var(--hm-transition), box-shadow var(--hm-transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.hm-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.hm-blog-card__img {
  aspect-ratio: 16/7;
  overflow: hidden;
}
.hm-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hm-blog-card:hover .hm-blog-card__img img { transform: scale(1.05); }

.hm-blog-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hm-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #999;
}
.hm-blog-card__cat {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--hm-radius-pill);
  background: rgba(140,0,255,0.07);
  color: var(--hm-purple);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.hm-blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0D0D1A;
  line-height: 1.4;
  margin: 0;
}
.hm-blog-card__excerpt {
  font-size: 0.84rem;
  color: #777;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-blog-card__read {
  font-size: 0.82rem;
  color: var(--hm-purple);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  transition: gap var(--hm-transition);
}
.hm-blog-card:hover .hm-blog-card__read { gap: 0.55rem; }
.hm-blog-card__read svg { width: 14px; height: 14px; }

/* Fallback no articles */
.hm-blog__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #999;
  font-size: 0.95rem;
}

/* =====================================================
   8. FAQ
   ===================================================== */
.hm-faq {
  padding: 6rem 0;
  background: var(--hm-night);
  position: relative;
  overflow: hidden;
}
.hm-faq::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,196,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hm-faq__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.hm-faq__header .hm-section-label { color: var(--hm-primary); }
.hm-faq__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.hm-faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hm-faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hm-faq__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  transition: color var(--hm-transition);
}
.hm-faq__btn:hover { color: #fff; }
.hm-faq__ico {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 300;
  color: var(--hm-primary);
  transition: transform var(--hm-transition);
}
.hm-faq__btn[aria-expanded="true"] .hm-faq__ico { transform: rotate(45deg); }
.hm-faq__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.hm-faq__body.is-open { max-height: 200px; }
.hm-faq__body p {
  font-size: 0.88rem;
  color: var(--hm-text-mid);
  line-height: 1.7;
  margin: 0 0 1.35rem;
}

/* =====================================================
   9. CTA FINAL
   ===================================================== */
.hm-cta {
  padding: 6rem 0;
  background: var(--hm-gradient-full);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hm-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}
.hm-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.hm-cta__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.hm-cta__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.hm-cta__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin: 0 0 2rem;
}
.hm-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  border-radius: var(--hm-radius-pill);
  background: #fff;
  color: #450693;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--hm-transition), box-shadow var(--hm-transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.hm-cta__btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  color: #450693;
}

/* =====================================================
   5b. GRILLES DE LECTURE PSYCHOLOGIQUES
   ===================================================== */
.hm-psych {
  padding: 6rem 0;
  background: var(--hm-night);
  position: relative;
  overflow: hidden;
}

.hm-psych__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
}
.hm-psych__glow--1 {
  width: 600px; height: 600px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(140,0,255,0.13) 0%, transparent 70%);
}
.hm-psych__glow--2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, rgba(255,63,127,0.11) 0%, transparent 70%);
}

.hm-psych__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.hm-psych__header .hm-section-label {
  color: var(--hm-gold);
}
.hm-psych__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.hm-psych__subtitle {
  font-size: 1rem;
  color: var(--hm-text-mid);
  line-height: 1.7;
  margin: 0;
}

.hm-psych__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Card */
.hm-psych-card {
  position: relative;
  background: var(--hm-glass);
  border: 1px solid var(--hm-glass-border);
  border-radius: var(--hm-radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--hm-transition), box-shadow var(--hm-transition), border-color var(--hm-transition);
}
/* Gradient top border on hover */
.hm-psych-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hm-gradient);
  opacity: 0;
  transition: opacity var(--hm-transition);
}
/* Subtle inner glow on hover */
.hm-psych-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(140,0,255,0.07), transparent 70%);
  opacity: 0;
  transition: opacity var(--hm-transition);
  pointer-events: none;
}
.hm-psych-card:hover,
a.hm-psych-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(140,0,255,0.2);
  border-color: rgba(140,0,255,0.25);
  color: inherit;
}
.hm-psych-card:hover::before,
a.hm-psych-card:hover::before { opacity: 1; }
.hm-psych-card:hover::after,
a.hm-psych-card:hover::after  { opacity: 1; }

/* Numero editorial */
.hm-psych-card__num {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hm-text-dim);
}

/* Icon */
.hm-psych-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(140,0,255,0.15), rgba(255,63,127,0.1));
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
  transition: transform var(--hm-transition);
}
.hm-psych-card:hover .hm-psych-card__icon { transform: scale(1.08) rotate(-3deg); }

/* Body text */
.hm-psych-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.hm-psych-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.hm-psych-card__author {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hm-text-dim);
  margin: 0;
}
.hm-psych-card__text {
  font-size: 0.88rem;
  color: var(--hm-text-mid);
  line-height: 1.65;
  margin: 0.4rem 0 0;
}

/* CTA link (only on anchor cards) */
.hm-psych-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hm-primary);
  margin-top: 0.25rem;
  transition: gap var(--hm-transition), color var(--hm-transition);
}
.hm-psych-card:hover .hm-psych-card__cta { gap: 0.55rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hm-features__grid { grid-template-columns: repeat(2, 1fr); }
  .hm-psych__grid { grid-template-columns: 1fr; }
  .hm-how__steps { grid-template-columns: 1fr; gap: 3rem; }
  .hm-how__steps::before { display: none; }
  .hm-step { flex-direction: row; text-align: left; align-items: flex-start; gap: 1.25rem; padding: 0; }
  .hm-step__number { flex-shrink: 0; width: 44px; height: 44px; font-size: 1rem; }
  .hm-step__img { display: none; }
  .hm-deep__grid { grid-template-columns: 1fr; }
  .hm-deep__img { display: none; }
  .hm-blog__grid { grid-template-columns: repeat(2, 1fr); }
  .hm-hero__metrics { gap: 1.25rem; }
}

@media (max-width: 640px) {
  .hm-features__grid { grid-template-columns: 1fr; }
  .hm-psych__grid { gap: 0.85rem; }
  .hm-psych-card { padding: 1.5rem; }
  .hm-blog__grid { grid-template-columns: 1fr; }
  .hm-hero__cta-row { flex-direction: column; align-items: center; }
  .hm-metric-sep { display: none; }
  .hm-hero__metrics { gap: 1.5rem; justify-content: center; }
  .hm-blog__header { flex-direction: column; align-items: flex-start; }
  .hm-hero__tester { max-width: 100%; }
  .hm-tester-card { border-radius: 24px; }
}
