/* ==========================================================================
   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;
}

@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; }

/* La galère de l'utilisateur, avant la réponse de l'app. Traitée comme une
   citation : c'est sa voix, pas celle de la marque. */
.feature-problem {
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--hair-2);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--fg-3);
  margin-bottom: 1.25rem;
}

.feature-problem::before {
  content: '\201C';
  color: var(--orange);
  font-style: normal;
}

.feature-problem::after {
  content: '\201D';
  color: var(--orange);
  font-style: normal;
}

.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)
   -------------------------------------------------------------------------- */

/* iPhone 17 Pro Max — 6,9", écran natif 1320 × 2868 px.
   Le cadre est proportionnel à sa largeur (unités em) pour que toutes les
   tailles restent cohérentes sans recalculer chaque valeur. */
.phone {
  /* min() borne la largeur au viewport : sur petit écran, le cadre ET ses
     proportions internes (unités em ci-dessous) rétrécissent ensemble. */
  --phone-width: min(20rem, 74vw);
  width: var(--phone-width);
  max-width: 100%;
  flex-shrink: 0;
  /* Base des unités em internes = largeur du mockup. */
  font-size: var(--phone-width);
}

.phone-sm { --phone-width: min(16rem, 62vw); }
.phone-lg { --phone-width: min(23.5rem, 80vw); }

.phone-frame {
  position: relative;
  /* Épaisseur de la tranche titane. */
  padding: 0.031em;
  border-radius: 0.165em;
  background:
    linear-gradient(150deg, #4A4A52 0%, #1C1C22 18%, #0C0C10 50%, #23232B 82%, #4A4A52 100%);
  box-shadow:
    var(--shadow-lift),
    inset 0 0 0 0.004em rgba(255, 255, 255, 0.22),
    0 0 0 0.003em rgba(0, 0, 0, 0.9);
}

.phone-screen {
  position: relative;
  border-radius: 0.138em;
  overflow: hidden;
  background: #000;
  /* Ratio natif exact, et non 9:19.5 arrondi. */
  aspect-ratio: 1320 / 2868;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-screen picture { display: contents; }

/* -- Boutons latéraux ------------------------------------------------------ */

.phone-btn {
  position: absolute;
  background: linear-gradient(180deg, #55555E, #2A2A31);
  border-radius: 0.006em;
  z-index: 1;
}

/* Bouton Action + volumes : tranche gauche. */
.phone-btn-action      { left: -0.008em; top: 15%;   width: 0.008em; height: 4%; }
.phone-btn-volume-up   { left: -0.008em; top: 22.5%; width: 0.008em; height: 6.5%; }
.phone-btn-volume-down { left: -0.008em; top: 31%;   width: 0.008em; height: 6.5%; }

/* Bouton latéral (contrôle de l'appareil photo) : tranche droite. */
.phone-btn-power       { right: -0.008em; top: 25%;  width: 0.008em; height: 9%; }

.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); }

/* --------------------------------------------------------------------------
   Page profil public /u/<handle> et /@<handle>
   -------------------------------------------------------------------------- */

.profile-page {
  max-width: 40rem;
  text-align: center;
}

.profile-head { margin-bottom: 2.5rem; }

.profile-avatar {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: var(--on-orange);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  box-shadow: 0 12px 36px var(--glow);
}

.profile-name {
  font-size: var(--text-4xl);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.profile-handle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.profile-gym {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-base);
  color: var(--fg-2);
  margin: 0;
}

/* -- Chiffres clés --------------------------------------------------------- */

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.profile-stat {
  padding: 1.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--hair);
}

.profile-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}

.profile-stat-value small { font-size: 0.5em; font-weight: 600; }
.profile-stat-value.is-gold { color: var(--gold); }
.profile-stat-value.is-green { color: var(--green); }

.profile-stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* -- Badges ---------------------------------------------------------------- */

.profile-badges { margin-bottom: 2.5rem; }

.profile-section-title {
  font-size: var(--text-lg);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* -- Appel à télécharger --------------------------------------------------- */

.profile-cta {
  padding: clamp(1.5rem, 5vw, 2.25rem);
  margin-bottom: 1.5rem;
  text-align: left;
}

.profile-cta .muted { margin: 0; }

.profile-hint {
  font-size: var(--text-sm);
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .profile-stats { grid-template-columns: 1fr; }
}

/* Marqueur des mentions légales non renseignées. Volontairement voyant :
   une information légale manquante doit se voir, pas se fondre dans le texte. */
.legal-todo {
  background: rgba(245, 196, 81, 0.16);
  border: 1px dashed rgba(245, 196, 81, 0.55);
  color: var(--gold);
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  font-size: 0.9em;
  font-style: italic;
}
