/* ==========================================================================
   MEMORIX.ONE - DESIGN SYSTEM OFFICIEL (STYLE HUMANIFY 360)
   Architecture éditoriale, Aubergine profond, Bleu ciel, Corail, Arches & Pill Duo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&display=swap');

:root {
  /* Palette Humanify 360 x Memorix */
  --h-plum-dark: #231422;
  --h-plum: #321D31;
  --h-plum-card: #3A2338;
  --h-sky-blue: #8BCAEC;
  --h-sky-blue-hover: #76BEE7;
  --h-coral: #F27A59;
  --h-coral-hover: #E86844;
  --h-sand-light: #F2F4F8;
  --h-sand-card: #FFFFFF;
  --h-slate: #6C727F;
  --h-ink: #231422;
  --h-border: #E5E9F0;

  /* Univers Colors */
  --h-wedding-gold: #D4A373;
  --h-party-purple: #9272BC;
  --h-life-blue: #5D89A8;

  /* Typographie & Rayons */
  --font-h: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-pill: 9999px;
  --radius-card: 28px;
  --radius-arch: 240px 240px 32px 32px;
}

html {
  scroll-behavior: smooth;
}

#univers,
#comment-ca-marche,
#faq,
#avantages {
  scroll-margin-top: 100px;
}

/* Reset de base */
body.home-hub-body {
  font-family: var(--font-h);
  color: var(--h-ink);
  background-color: var(--h-sand-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.h-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BOUTONS SIGNATURE HUMANIFY (DUO PILL + CIRCLE ARROW)
   ========================================================================== */
.h-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.h-btn-pill {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  min-height: 50px;
}

.h-btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.h-btn-group:hover .h-btn-circle {
  transform: translateX(4px);
}

/* Variantes de couleurs des boutons */
.h-btn-sky .h-btn-pill { background: var(--h-sky-blue); color: var(--h-plum-dark); }
.h-btn-sky .h-btn-circle { background: var(--h-sky-blue); color: var(--h-plum-dark); }
.h-btn-sky:hover .h-btn-pill, .h-btn-sky:hover .h-btn-circle { background: var(--h-sky-blue-hover); }

.h-btn-coral .h-btn-pill { background: var(--h-coral); color: #fff; }
.h-btn-coral .h-btn-circle { background: var(--h-coral); color: #fff; }
.h-btn-coral:hover .h-btn-pill, .h-btn-coral:hover .h-btn-circle { background: var(--h-coral-hover); }

.h-btn-dark .h-btn-pill { background: var(--h-plum-card); color: #fff; }
.h-btn-dark .h-btn-circle { background: var(--h-plum-card); color: #fff; }

.h-btn-outline .h-btn-pill { background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2); color: #fff; }
.h-btn-outline .h-btn-circle { background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2); color: #fff; }

/* ==========================================================================
   1. HERO ASYMÉTRIQUE SUR FOND PRUNE AVEC ARCHE & BOUTONS DUO
   ========================================================================== */
.h-hero-section {
  background: var(--h-plum);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.h-hero-section::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.h-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.h-tag-bullet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--h-sky-blue);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.h-tag-bullet .bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--h-coral);
}

.h-hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.h-hero-title em {
  font-style: normal;
  color: var(--h-sky-blue);
}

.h-hero-lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 580px;
}

.h-hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Arche Photo Hero */
.h-hero-arch-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.h-hero-arch-frame {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.h-hero-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Boîte flottante invité sur le Hero */
.h-floating-code-box {
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.25);
  max-width: 560px;
}

.h-floating-code-box .code-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--h-plum-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.h-floating-code-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--h-ink);
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.h-floating-code-box .btn-join-sm {
  background: var(--h-plum);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.h-floating-code-box .btn-join-sm:hover {
  background: var(--h-coral);
}

/* ==========================================================================
   2. SECTION SERVICES : GRILLE DE CARTES SOMBRES HUMANIFY
   ========================================================================== */
.h-services-section {
  padding: 100px 0 80px;
}

.h-section-header-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: 56px;
}

.h-section-header-split h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--h-plum-dark);
  margin-top: 12px;
}

.h-section-header-split p {
  font-size: 1.1rem;
  color: var(--h-slate);
  line-height: 1.65;
}

.h-cards-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.h-card-service {
  background: var(--h-plum);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px -10px rgba(35, 20, 34, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.h-card-service:hover {
  transform: translateY(-8px);
}

.h-card-service .card-img-top {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #000;
}

.h-card-service .card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.88;
}

.h-card-service:hover .card-img-top img {
  transform: scale(1.05);
  opacity: 1;
}

.h-card-service .card-badge-top {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--h-plum-dark);
}

.h-card-service .card-body {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.h-card-service .service-type-label {
  color: var(--h-sky-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.h-card-service h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.h-card-service p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}

.h-card-service .btn-card-bottom {
  margin-top: auto;
  align-self: flex-start;
}

/* Carte Horizontale Pill pour les autres accès */
.h-horizontal-pill-banner {
  margin-top: 32px;
  background: var(--h-plum);
  border-radius: var(--radius-pill);
  padding: 24px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 16px 36px -10px rgba(35, 20, 34, 0.15);
  flex-wrap: wrap;
  gap: 20px;
}

.h-horizontal-pill-banner .pill-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.h-horizontal-pill-banner .pill-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h-sky-blue);
  font-size: 1.3rem;
}

.h-horizontal-pill-banner h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.h-horizontal-pill-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* ==========================================================================
   3. SECTION CHIFFRES CLÉS (LES 4 CERCLES HUMANIFY)
   ========================================================================== */
.h-stats-section {
  padding: 90px 0;
  text-align: center;
}

.h-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.h-stat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  border-radius: 50%;
  padding: 28px;
  color: #fff;
  transition: transform 0.25s ease;
}

.h-stat-circle-card:hover {
  transform: scale(1.04);
}

.h-stat-circle-card.sky { background: var(--h-sky-blue); color: var(--h-plum-dark); }
.h-stat-circle-card.coral { background: var(--h-coral); color: #fff; }
.h-stat-circle-card.plum { background: var(--h-plum); color: #fff; }

.h-stat-number {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.h-stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  max-width: 170px;
}

/* ==========================================================================
   4. COMMENT ÇA MARCHE (ARCHES ET PHOTOS RÉELLES)
   ========================================================================== */
.h-workflow-section {
  background: #fff;
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
  padding: 100px 0;
}

.h-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}

.h-workflow-card {
  display: flex;
  flex-direction: column;
}

.h-workflow-arch-img {
  aspect-ratio: 4/3;
  border-radius: 120px 120px 24px 24px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 16px 32px -8px rgba(35, 20, 34, 0.12);
  background: #000;
}

.h-workflow-arch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-workflow-card .step-bullet-tag {
  color: var(--h-coral);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.h-workflow-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--h-plum-dark);
  margin-bottom: 10px;
}

.h-workflow-card p {
  color: var(--h-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   5. SECTION FAQ HUMANIFY (ACCORDÉON AVEC PUCES CORAIL)
   ========================================================================== */
.h-faq-section {
  padding: 100px 0;
  background: var(--h-sand-light);
}

.h-faq-list {
  max-width: 880px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.h-faq-item {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 8px 12px;
  border: 1px solid var(--h-border);
  transition: all 0.2s ease;
}

.h-faq-item[open] {
  border-color: var(--h-coral);
  box-shadow: 0 10px 30px -8px rgba(35, 20, 34, 0.08);
}

.h-faq-summary {
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--h-plum-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.h-faq-summary::-webkit-details-marker {
  display: none;
}

.h-faq-summary .circle-arrow-faq {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--h-sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--h-plum-dark);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.h-faq-item[open] .circle-arrow-faq {
  transform: rotate(45deg);
  background: var(--h-coral);
  color: #fff;
}

.h-faq-answer {
  padding: 0 24px 24px;
  color: var(--h-slate);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ==========================================================================
   6. BANDEAU DE CONFIANCE & SOUVERAINETÉ LOI 25
   ========================================================================== */
.h-trust-section {
  background: var(--h-plum-dark);
  color: #fff;
  padding: 70px 0;
}

.h-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.h-trust-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.h-trust-item .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h-coral);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.h-trust-item h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.h-trust-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .h-hero-grid,
  .h-section-header-split,
  .h-cards-trio,
  .h-stats-grid,
  .h-workflow-grid,
  .h-trust-grid {
    grid-template-columns: 1fr;
  }

  .h-stat-circle-card {
    aspect-ratio: auto;
    border-radius: var(--radius-card);
    padding: 36px;
  }
}
