/* Page d'accueil — vitrine (Phase G1). S'appuie sur css/tokens.css +
   css/components.css (boutons, cards). Namespace .home-*. */

.home {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ── Révélation au scroll (IntersectionObserver, scrollReveal.js) ───────────── */

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-animate].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { transition: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.home-hero__media, .home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 28, 0.45) 0%, rgba(8, 20, 28, 0.35) 40%, rgba(8, 20, 28, 0.8) 100%);
}

.home-hero__nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 76px 20px 24px; /* le bouton clair/sombre flottant occupe le coin haut droit */
}

.home-hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-hero__navlink {
  background: none;
  border: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 12px;
  opacity: 0.9;
}
.home-hero__navlink:hover { opacity: 1; text-decoration: underline; }

.home-hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw + 1rem, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 18px;
  text-wrap: balance;
}

.home-hero__sub {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
  max-width: 46ch;
  margin: 0 0 32px;
}

.home-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}

.btn--on-photo {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--on-photo:hover { background: rgba(255, 255, 255, 0.15); }

.home-hero__tryfree {
  background: none;
  border: none;
  color: #fff;
  opacity: 0.85;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}
.home-hero__tryfree:hover { opacity: 1; }

/* ── 3 blocs ──────────────────────────────────────────────────────────────── */

.home-blocs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.home-bloc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-ink);
  margin-bottom: 18px;
}
.home-bloc__icon svg { width: 26px; height: 26px; }

.home-bloc__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.home-bloc__text {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* ── Capture de l'app ─────────────────────────────────────────────────────── */

.home-showcase {
  padding: 0 24px 88px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-showcase__frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-hover);
}

.home-showcase__bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--color-bg);
}
.home-showcase__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.home-showcase__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Fonctionnalités ──────────────────────────────────────────────────────── */

.home-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.1rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 44px;
}

.home-features {
  padding: 88px 24px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-feature {
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.home-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  margin-bottom: 16px;
}
.home-feature__icon svg { width: 22px; height: 22px; }

.home-feature__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.home-feature__text {
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
  font-size: 0.92rem;
}

/* ── Galerie ──────────────────────────────────────────────────────────────── */

.home-gallery {
  padding: 88px 24px;
}

.home-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-gallery__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform var(--transition-base);
}
.home-gallery__img:hover { transform: scale(1.035); }

@media (prefers-reduced-motion: reduce) {
  .home-gallery__img { transition: none; }
  .home-gallery__img:hover { transform: none; }
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.home-faq {
  padding: 88px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.home-faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.home-faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
}
.home-faq__item summary::-webkit-details-marker { display: none; }
.home-faq__item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.home-faq__item[open] summary::after { transform: rotate(45deg); }

.home-faq__item p {
  margin: 12px 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.home-footer {
  padding: 32px 24px 40px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-footer a { color: var(--color-accent-ink); }

@media (max-width: 640px) {
  .home-hero__content { padding: 24px 20px 48px; }
  .home-blocs, .home-features, .home-gallery, .home-faq { padding-left: 20px; padding-right: 20px; }
}
