/* =====================================================================
   Holypixx — page d'accueil
   Même identité que galerie.html : Cormorant Garamond + Jost, palette
   crème / rose / charbon — version modernisée (dégradés, profondeur,
   micro-animations légères, respect de prefers-reduced-motion).
   ===================================================================== */

:root {
  --cream:     #f7f2ec;
  --ivory:     #fdfbf8;
  --sand:      #efe6db;
  --rose:      #b98a7a;
  --rose-deep: #9c6f61;
  --rose-soft: rgba(185, 138, 122, .13);
  --charcoal:  #3a332e;
  --ink:       #2b2521;
  --muted:     #7c716a;
  --line:      #e5dbd0;
  --serif: "Unbounded", "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 18px -10px rgba(58, 51, 46, .25);
  --shadow: 0 18px 50px -20px rgba(58, 51, 46, .35);
  --shadow-lg: 0 30px 70px -25px rgba(58, 51, 46, .45);
  --shadow-rose: 0 16px 34px -14px rgba(156, 111, 97, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.25; }
h3 { font-size: 1.05rem; line-height: 1.4; }
a { color: inherit; }
img, svg { max-width: 100%; }

.hm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* Dégradé de texte pour les mots-clés */
.hm-accent {
  background: linear-gradient(120deg, var(--rose-deep), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Révélation au défilement ---------- */

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hmFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
  .hm-hero-copy > * { animation: hmFadeUp .8s var(--ease) both; }
  .hm-hero-copy > *:nth-child(1) { animation-delay: .02s; }
  .hm-hero-copy > *:nth-child(2) { animation-delay: .1s; }
  .hm-hero-copy > *:nth-child(3) { animation-delay: .18s; }
  .hm-hero-copy > *:nth-child(4) { animation-delay: .26s; }
  .hm-hero-copy > *:nth-child(5) { animation-delay: .34s; }
  .hm-mock { animation: hmFadeUp .9s var(--ease) .22s both; }
}

/* ---------- Navigation ---------- */

.hm-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 251, 248, .82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.hm-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 1.5rem;
  max-width: 1120px; margin: 0 auto;
}
.hm-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.hm-brand-mark {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 9px;
  background: linear-gradient(150deg, var(--rose), var(--rose-deep));
  box-shadow: var(--shadow-rose);
  color: #fff;
  font-family: var(--serif); font-size: 1.15rem;
}
.hm-brand-name { font-family: var(--serif); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; color: var(--ink); }

.hm-nav-links { display: flex; align-items: center; gap: 1.8rem; }
.hm-nav-links a {
  position: relative;
  font-size: .88rem; color: var(--muted); text-decoration: none;
  padding: .2rem 0;
  transition: color .15s var(--ease);
}
.hm-nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--rose-deep);
  transition: right .25s var(--ease);
}
.hm-nav-links a:hover { color: var(--rose-deep); }
.hm-nav-links a:hover::after { right: 0; }
.hm-nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.hm-nav-login { font-size: .88rem; color: var(--charcoal); text-decoration: none; transition: color .15s var(--ease); }
.hm-nav-login:hover { color: var(--rose-deep); }

/* ---------- Boutons ---------- */

.hm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .88rem; font-weight: 500;
  padding: .75rem 1.5rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--charcoal);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.hm-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hm-btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  border-color: transparent; color: #fff;
  box-shadow: var(--shadow-rose);
}
.hm-btn-primary:hover { box-shadow: 0 22px 40px -16px rgba(156, 111, 97, .65); }
.hm-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.hm-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hm-btn-on-rose { background: #fff; border-color: #fff; color: var(--rose-deep); }
.hm-btn-on-rose:hover { background: var(--cream); }
.hm-btn-lg { padding: .95rem 2rem; font-size: .95rem; }

/* ---------- Hero ---------- */

.hm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 1.5rem clamp(4rem, 7vw, 6rem);
  background: var(--ivory);
}
.hm-hero::before,
.hm-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
  z-index: 0; pointer-events: none;
}
.hm-hero::before {
  width: 34rem; height: 34rem; top: -14rem; left: -10rem;
  background: radial-gradient(circle, var(--rose-soft), transparent 70%);
}
.hm-hero::after {
  width: 26rem; height: 26rem; bottom: -12rem; right: -8rem;
  background: radial-gradient(circle, var(--sand), transparent 70%);
}
.hm-hero-grid {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rose-deep); font-weight: 500;
  background: var(--rose-soft);
  border-radius: 999px;
  padding: .4rem .9rem .4rem .7rem;
  margin-bottom: 1.3rem;
}
.hm-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--rose-deep); flex: none;
}
.hm-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.18; margin-bottom: 1.3rem; }
.hm-hero-lede { font-size: 1.08rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.9rem; }
.hm-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.3rem; }
.hm-hero-checks { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hm-hero-check {
  display: flex; align-items: center; gap: .45rem;
  font-size: .82rem; color: var(--muted);
}
.hm-hero-check::before {
  content: "✓"; display: grid; place-items: center;
  width: 1.05rem; height: 1.05rem; border-radius: 999px;
  background: var(--rose-soft); color: var(--rose-deep);
  font-size: .62rem; font-weight: 700; flex: none;
}

/* Maquette décorative : un écran de mot de passe stylisé */
.hm-mock { display: flex; justify-content: center; position: relative; }
.hm-mock-frame {
  width: min(340px, 100%);
  background: linear-gradient(160deg, var(--rose) 0%, var(--rose-deep) 100%);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform .4s var(--ease);
}
.hm-mock:hover .hm-mock-frame { transform: translateY(-6px) rotate(-.6deg); }
.hm-mock-frame::before {
  content: "";
  position: absolute; inset: -14px;
  border: 1px dashed rgba(185, 138, 122, .35);
  border-radius: 32px;
  z-index: -1;
}
.hm-mock-dots { display: flex; gap: .35rem; margin-bottom: 1rem; }
.hm-mock-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.hm-mock-card { background: #fff; border-radius: 14px; padding: 1.4rem 1.2rem; text-align: center; box-shadow: 0 10px 26px -14px rgba(58, 51, 46, .3); }
.hm-mock-lock { font-size: 1.6rem; margin-bottom: .6rem; }
.hm-mock-card h4 { font-family: var(--serif); font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .4rem; }
.hm-mock-card p { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.hm-mock-input {
  height: 2.2rem; border-radius: 8px; background: var(--cream);
  border: 1px solid var(--line); margin-bottom: .7rem;
}
.hm-mock-btn { height: 2.2rem; border-radius: 999px; background: linear-gradient(135deg, var(--rose), var(--rose-deep)); }
.hm-mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: 1rem; }
.hm-mock-grid span {
  display: block; aspect-ratio: 1; border-radius: 6px;
  background: rgba(255, 255, 255, .3);
  filter: blur(1px);
}
.hm-mock-chip {
  position: absolute;
  display: flex; align-items: center; gap: .4rem;
  background: #fff; color: var(--charcoal);
  font-size: .76rem; font-weight: 500;
  padding: .55rem .95rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.hm-mock-chip--top { top: -8%; right: -6%; }
.hm-mock-chip--bottom { bottom: 10%; left: -9%; }
@media (max-width: 520px) {
  .hm-mock-chip { display: none; }
}

/* ---------- Sections génériques ---------- */

.hm-section { padding: clamp(3.2rem, 7vw, 5.5rem) 1.5rem; }
.hm-section-alt { background: var(--cream); }
.hm-section-head { max-width: 640px; margin: 0 auto 2.8rem; text-align: center; }
.hm-section-head p { color: var(--muted); margin-top: .8rem; font-size: 1rem; }

/* ---------- Pourquoi ---------- */

.hm-why { max-width: 760px; margin: 0 auto; text-align: center; }
.hm-why h2 { margin-bottom: 1.4rem; }
.hm-why p { font-size: 1.05rem; color: var(--charcoal); margin-bottom: 1.1rem; }
.hm-why strong { color: var(--ink); font-weight: 500; }

/* ---------- Étapes ---------- */

.hm-steps {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
}
@media (min-width: 861px) {
  .hm-steps::before {
    content: "";
    position: absolute; top: 1.3rem; left: 12.5%; right: 12.5%; height: 1px;
    background: repeating-linear-gradient(to right, var(--rose) 0 8px, transparent 8px 16px);
    opacity: .5; z-index: 0;
  }
}
.hm-step { position: relative; z-index: 1; text-align: center; }
.hm-step-num {
  display: grid; place-items: center; margin: 0 auto .9rem;
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: linear-gradient(150deg, var(--charcoal), #241e1a);
  color: var(--cream);
  font-family: var(--serif); font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 22px -10px rgba(58, 51, 46, .5);
}
.hm-step p { font-size: .88rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Fonctionnalités ---------- */

.hm-features {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: dense;
  gap: 1.4rem;
}
.hm-feature {
  position: relative;
  overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hm-feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--rose-deep));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.hm-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.hm-feature:hover::before { transform: scaleX(1); }
.hm-feature-icon {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm);
  background: var(--rose-soft);
  font-size: 1.25rem; margin-bottom: 1rem;
}
.hm-feature h3 { margin-bottom: .5rem; }
.hm-feature p { font-size: .88rem; color: var(--muted); }

/* Tuile vedette : l'alerte e-mail de capture, mise en avant dans la grille */
.hm-feature-spotlight {
  grid-column: span 2;
  background: linear-gradient(150deg, var(--charcoal) 0%, #241e1a 100%);
  border-color: transparent;
  color: var(--cream);
}
.hm-feature-spotlight h3 { color: #fff; }
.hm-feature-spotlight p { color: rgba(247, 242, 236, .78); }
.hm-feature-icon-spotlight { background: rgba(255, 255, 255, .12); }
.hm-feature-badge {
  position: absolute; top: 1.3rem; right: 1.3rem;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; font-size: .66rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px;
}
.hm-feature-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1.2rem;
}
.hm-feature-flow span:not(.hm-feature-flow-arrow) {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: .4rem .8rem;
  font-size: .78rem;
  white-space: nowrap;
}
.hm-feature-flow-arrow { color: rgba(247, 242, 236, .5); font-size: .9rem; }
@media (max-width: 640px) {
  .hm-feature-spotlight { grid-column: span 1; }
}

/* ---------- Sécurité ---------- */

.hm-security {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--charcoal), #241e1a);
  color: var(--cream);
}
.hm-security::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50rem 30rem at 85% -10%, rgba(185, 138, 122, .18), transparent 65%);
  pointer-events: none;
}
.hm-security > * { position: relative; z-index: 1; }
.hm-security .hm-section-head h2 { color: #fff; }
.hm-security .hm-section-head p { color: rgba(247, 242, 236, .72); }
.hm-security-body { max-width: 720px; margin: 0 auto 2.4rem; text-align: center; }
.hm-security-body p { font-size: 1.02rem; color: rgba(247, 242, 236, .85); }
.hm-security-list {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  list-style: none;
}
.hm-security-list li {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 1.3rem 1.3rem;
  font-size: .86rem; color: rgba(247, 242, 236, .85);
  backdrop-filter: blur(6px);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.hm-security-list li:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-3px);
}
.hm-security-list .hm-security-icon { display: block; font-size: 1.3rem; margin-bottom: .6rem; }
.hm-security-list strong { display: block; color: #fff; font-family: var(--serif); font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }

/* ---------- CTA finale ---------- */

.hm-cta {
  position: relative; overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}
.hm-cta::before, .hm-cta::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .12); filter: blur(10px);
}
.hm-cta::before { width: 16rem; height: 16rem; top: -8rem; left: -4rem; }
.hm-cta::after { width: 20rem; height: 20rem; bottom: -10rem; right: -6rem; }
.hm-cta > * { position: relative; z-index: 1; }
.hm-cta h2 { color: #fff; margin-bottom: .8rem; }
.hm-cta p { color: rgba(255, 255, 255, .85); margin-bottom: 1.8rem; }

/* ---------- Pied de page ---------- */

.hm-footer { padding: 2.5rem 1.5rem; border-top: 1px solid var(--line); }
.hm-footer-row {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.hm-footer-tagline { font-size: .82rem; color: var(--muted); }
.hm-footer-copy { font-size: .78rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-mock { order: -1; }
  .hm-steps { grid-template-columns: repeat(2, 1fr); }
  .hm-security-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hm-nav-links { display: none; }
  .hm-nav-login { display: none; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-hero-checks { flex-direction: column; gap: .6rem; }
}
