/* ==========================================================================
   Landing publique brody.fr
   Dépend de tokens.css (chargé avant).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header collant translucide
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  flex-shrink: 0;
}

.brand img { height: 1.9rem; width: auto; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: var(--on-orange);
  font-size: var(--text-lg);
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--fg); }

/* Sur mobile on masque les ancres : le CTA reste la seule action. */
@media (max-width: 860px) {
  .site-nav { display: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-title {
  font-size: var(--text-3xl);
  text-transform: uppercase;
  font-weight: 800;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--fg-2);
  margin: 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem) var(--section-y);
}

/* Halo orange diffus derrière le hero. */
.hero::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -30%;
  height: 70vh;
  background: radial-gradient(60% 55% at 50% 40%, var(--glow) 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: var(--text-lg);
  color: var(--fg-2);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  color: var(--fg-3);
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Bandeau valeurs
   -------------------------------------------------------------------------- */

.values {
  border-block: 1px solid var(--hair);
  background: var(--bg-base);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.value {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--hair);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: 0.9rem;
}

.value h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.value p {
  font-size: var(--text-sm);
  color: var(--fg-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Blocs fonctionnalités (alternance gauche / droite)
   -------------------------------------------------------------------------- */

.feature {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--hair);
}

.feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* Bloc pair : visuel à gauche, texte à droite. */
.feature-reverse .feature-visual { order: -1; }

.feature-title {
  font-size: var(--text-2xl);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.feature-benefit {
  font-size: var(--text-lg);
  color: var(--fg-2);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--fg-2);
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.feature-visual {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .feature .container {
    grid-template-columns: 1fr;
  }

  /* En colonne, le visuel passe toujours après le texte, quel que soit l'ordre
     choisi en desktop : lire d'abord, voir ensuite. */
  .feature-reverse .feature-visual { order: 0; }
}

/* --------------------------------------------------------------------------
   Mockup iPhone (100 % CSS)
   -------------------------------------------------------------------------- */

.phone {
  --phone-width: 19rem;
  width: var(--phone-width);
  max-width: 100%;
  flex-shrink: 0;
}

.phone-sm { --phone-width: 15.5rem; }
.phone-lg { --phone-width: 22rem; }

.phone-frame {
  position: relative;
  padding: 0.7rem;
  border-radius: calc(var(--radius) + 20px);
  background: linear-gradient(160deg, #2A2A33 0%, #101015 45%, #26262E 100%);
  box-shadow:
    var(--shadow-lift),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.8);
}

.phone-screen {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  background: var(--bg-base);
  /* Ratio portrait iPhone moderne. */
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 1.6rem;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.phone-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--fg-3);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.018) 0 12px,
      transparent 12px 24px
    ),
    var(--elevated);
  border: 1px dashed var(--hair-2);
  border-radius: inherit;
}

.phone-placeholder-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.phone-placeholder-file {
  font-size: var(--text-xs);
  color: var(--orange);
  background: var(--orange-soft);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   Confidentialité / confiance
   -------------------------------------------------------------------------- */

.trust {
  background: var(--bg-base);
  border-bottom: 1px solid var(--hair);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.trust-card {
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair);
  background: var(--card);
}

.trust-card h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: var(--text-sm);
  color: var(--fg-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.cta-final .container {
  position: relative;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 106, 26, 0.3);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 106, 26, 0.18) 0%, transparent 65%),
    var(--card);
  text-align: center;
  overflow: hidden;
}

.cta-final h2 {
  font-size: var(--text-3xl);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cta-final p {
  color: var(--fg-2);
  font-size: var(--text-lg);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   Badge App Store
   -------------------------------------------------------------------------- */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: var(--on-orange);
  box-shadow: 0 8px 24px var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appstore-badge:hover,
.appstore-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--glow), 0 0 0 6px var(--orange-soft);
}

.appstore-badge svg { flex-shrink: 0; }

.appstore-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.appstore-badge-text .small {
  font-size: var(--text-xs);
  font-weight: 500;
  opacity: 0.75;
}

.appstore-badge-text .large {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Variante « bientôt disponible » : même gabarit, traitement neutre. */
.appstore-badge-soon {
  background: var(--card-2);
  border: 1px solid var(--hair-2);
  color: var(--fg-2);
  box-shadow: none;
  cursor: default;
}

.appstore-badge-soon:hover { transform: none; box-shadow: none; }

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

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--hair);
  background: var(--bg-deep);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--text-sm);
}

.footer-links a { color: var(--fg-2); transition: color 0.18s ease; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--orange); }

.footer-copy {
  font-size: var(--text-sm);
  color: var(--fg-3);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Apparition au scroll
   -------------------------------------------------------------------------- */

/* Le contenu est VISIBLE par défaut. L'état masqué n'est appliqué que sous
   `.js`, classe posée par un script inline en <head> — donc uniquement si le
   JavaScript s'exécute réellement. Ainsi, un script bloqué (CSP, extension,
   erreur réseau) laisse une page parfaitement lisible au lieu d'une page
   blanche : l'animation est un bonus, jamais une condition d'affichage. */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */

.legal {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.legal .container { max-width: 46rem; }

.legal h1 {
  font-size: var(--text-3xl);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.legal h2 {
  font-size: var(--text-xl);
  text-transform: uppercase;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}

.legal h3 {
  font-size: var(--text-lg);
  margin-top: 1.75rem;
}

.legal p,
.legal li { color: var(--fg-2); }

.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }

.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

.legal-updated {
  font-size: var(--text-sm);
  color: var(--fg-3);
  margin-bottom: 2.5rem;
}

.legal-placeholder {
  border-left: 3px solid var(--gold);
  background: rgba(245, 196, 81, 0.07);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-block: 1.5rem;
}

.legal-placeholder p { margin: 0; color: var(--fg-2); font-size: var(--text-sm); }
