/* Coach Impact, page d'accueil.
 *
 * Lecture de design : landing premium pour tireurs sportifs, dans la DA de
 * l'application (fond clair, panneaux blancs, un seul accent orange, rayons
 * 16 px). Thème clair verrouillé sur toute la page, un seul accent, une
 * seule échelle de rayons. Outfit en display. Verre liquide réservé à la
 * navigation et à la carte Premium : c'est un effet, pas une texture de
 * fond.
 */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg: #f2f2f7;
  --panel: #ffffff;
  --panel-2: #e9e9ef;
  --border: rgba(28, 28, 30, 0.08);
  --text: #1c1c1e;
  --muted: #5f5f66;
  --accent: #e0492f;
  --accent-dark: #c43a20;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 32px rgba(28, 28, 30, 0.10);
  --shadow-soft: 0 4px 14px rgba(28, 28, 30, 0.06);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.landing {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--text);
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ */
/*  Navigation : verre liquide, 64 px, une seule ligne                 */
/* ------------------------------------------------------------------ */

header.site {
  position: sticky; top: 12px; z-index: 50;
  max-width: 1112px;
  margin: 12px auto 0;
  padding: 0 20px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px;
}

.name {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.name .logo { flex: none; }

header.site nav { display: flex; gap: 4px; }
header.site nav a {
  color: var(--text); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.2s ease;
}
header.site nav a:hover { background: rgba(28, 28, 30, 0.06); }

/* ------------------------------------------------------------------ */
/*  Surfaces en verre                                                  */
/* ------------------------------------------------------------------ */

.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    var(--shadow-soft);
}
.glass-svg .glass {
  -webkit-backdrop-filter: url(#verre-liquide) blur(3px) saturate(140%);
          backdrop-filter: url(#verre-liquide) blur(3px) saturate(140%);
}
.glass-fallback .glass {
  -webkit-backdrop-filter: blur(14px) saturate(150%);
          backdrop-filter: blur(14px) saturate(150%);
}
.glass-opaque .glass { background: rgba(255, 255, 255, 0.95); }

/* Liseré lumineux qui suit le pointeur (variables posées par glass.js) */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px; pointer-events: none;
  background: radial-gradient(180px circle at var(--sx, 50%) var(--sy, 0%),
    rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.10) 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}

/* ------------------------------------------------------------------ */
/*  Typographie                                                        */
/* ------------------------------------------------------------------ */

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.12rem; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font); font-size: 0.98rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent); color: #ffffff;
  box-shadow: 0 8px 22px rgba(224, 73, 47, 0.32);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--panel-2); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px;
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 73, 47, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(224, 73, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 73, 47, 0); }
}

/* ------------------------------------------------------------------ */
/*  Héros : split asymétrique, vraie capture d'écran                   */
/* ------------------------------------------------------------------ */

.hero { position: relative; overflow: clip; padding: 34px 0 48px; }

.hero-rings {
  position: absolute; right: -190px; top: -150px;
  width: 720px; height: 720px;
  color: var(--accent);
  opacity: 0.07; pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 48px; align-items: center;
}

.lead {
  font-size: 1.16rem; line-height: 1.55;
  color: var(--muted); max-width: 34ch;
  margin-top: 18px;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Cadre de téléphone.
 *
 * Une seule largeur pour TOUS les téléphones du site : c'est elle qui fixe
 * l'échelle, et deux appareils de tailles différentes sur une même page se
 * voient immédiatement. L'écran garde le ratio réel des captures,
 * 1080 x 2400, soit 9:20, la proportion d'un téléphone de 6 à 7 pouces.
 * Aucun recadrage : l'image occupe la largeur, la hauteur suit.
 *
 * Là où la place manque (tuiles du bento), le cadre n'est pas rétréci, il
 * est coupé par le bas : l'appareil garde sa taille apparente.
 */
.phone {
  --tel-largeur: 256px;
  justify-self: center;
  flex: none;
  width: var(--tel-largeur);
  border-radius: 40px;
  padding: 9px;
  background: #1c1c1e;
  box-shadow: var(--shadow), 0 40px 80px rgba(224, 73, 47, 0.13);
}
.phone img {
  display: block;
  width: 100%;
  /* Sans « height: auto », l'attribut height="1200" du HTML s'applique comme
     hauteur CSS et écrase le ratio : l'écran devient une bande verticale. */
  height: auto;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
}

.hero .phone { transform: rotate(2.2deg); }

/* ------------------------------------------------------------------ */
/*  Méthode : trois temps, sans cartes                                 */
/* ------------------------------------------------------------------ */

.steps { padding: 80px 0 16px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 42px;
}
.step { border-top: 2px solid var(--border); padding-top: 22px; position: relative; }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 56px; height: 2px; background: var(--accent);
}
.step b {
  display: block; font-size: 2rem; font-weight: 700;
  color: var(--accent); font-variant-numeric: tabular-nums;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.97rem; max-width: 32ch; }

/* ------------------------------------------------------------------ */
/*  Analyse : split inversé par rapport au héros                       */
/* ------------------------------------------------------------------ */

.analyse { padding: 80px 0; }
.analyse-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 56px; align-items: center;
}
.analyse .phone { transform: rotate(-2deg); }
.analyse h2 { max-width: 18ch; }
.analyse .points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.analyse .points li { display: flex; gap: 14px; align-items: flex-start; }
.analyse .points svg { flex: none; margin-top: 3px; color: var(--accent); }
.analyse .points b { font-weight: 600; }
.analyse .points span { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

/* ------------------------------------------------------------------ */
/*  Bento des fonctionnalités                                          */
/* ------------------------------------------------------------------ */

.bento { padding: 24px 0 80px; }
.bento-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 18px; margin-top: 42px;
}
.tile {
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: clip;
}
.tile p { color: var(--muted); font-size: 0.95rem; }

/* Tuile à visuel : le téléphone garde sa taille de référence et sort par le
   bas de la tuile, qui le coupe. Hauteur fixe pour que les deux tuiles de la
   rangée s'alignent exactement. */
.tile-visual { height: 452px; align-items: center; }
.tile-visual > h3, .tile-visual > p { align-self: stretch; }
.tile-visual .phone { margin-top: 14px; }
.tile-tinted { background: linear-gradient(152deg, #fff4f1, #ffe6df); border-color: rgba(224, 73, 47, 0.15); }
.tile-dark { background: #1c1c1e; color: #f5f5f7; border-color: transparent; }
.tile-dark p { color: #b9b9c0; }
.tile-dark .chiffre {
  font-size: 2.6rem; font-weight: 700; color: #ff8a6a;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}

/* Rangée 1 : les deux tuiles à téléphone, de largeur égale, donc de hauteur
   égale. Rangée 2 : trois tuiles de texte de largeurs inégales, pour le
   rythme. Cinq cellules pour cinq contenus, aucune case vide. */
.t-a { grid-column: span 6; }
.t-e { grid-column: span 6; }
.t-b { grid-column: span 5; }
.t-c { grid-column: span 3; }
.t-d { grid-column: span 4; }

/* ------------------------------------------------------------------ */
/*  Progression : bande sombre chiffrée                                */
/* ------------------------------------------------------------------ */

.progression { padding: 0 0 80px; }
.progression-band {
  border-radius: var(--radius-lg);
  background: #1c1c1e; color: #f5f5f7;
  padding: 52px 48px;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 44px; align-items: center;
}
.progression-band h2 { color: #ffffff; max-width: 17ch; }
.progression-band > div > p { color: #b9b9c0; margin-top: 14px; max-width: 44ch; }
.paliers { display: grid; gap: 13px; }
.palier-ligne { display: flex; align-items: center; gap: 14px; font-size: 0.94rem; font-weight: 500; }
.palier-ligne .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.09);
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.9rem;
}
.palier-ligne.actif .num { background: var(--accent); color: #fff; }
.palier-ligne .nom { flex: 1; min-width: 0; }
.palier-ligne.a-venir { color: #8d8d95; }

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

.privacy { padding: 0 0 80px; }
.privacy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 38px;
}
.privacy-item {
  border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  padding: 24px;
}
.privacy-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.privacy-item p { color: var(--muted); font-size: 0.93rem; }

/* ------------------------------------------------------------------ */
/*  Offre                                                              */
/* ------------------------------------------------------------------ */

.offre { padding: 0 0 80px; }
.offre-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px; margin-top: 42px; align-items: stretch;
}
.plan {
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: flex; flex-direction: column;
}
.plan-libre { background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.plan .prix { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }
.plan .prix small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan ul { margin: 22px 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.96rem; }
.plan li svg { flex: none; margin-top: 4px; color: var(--accent); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-premium { position: relative; }
.plan-premium .prix small { color: var(--muted); }

/* ------------------------------------------------------------------ */
/*  CTA final et pied de page                                          */
/* ------------------------------------------------------------------ */

.cta-final { padding: 0 0 86px; text-align: center; }
.cta-final .inner {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ff7d5c, var(--accent-dark));
  color: #fff; padding: 66px 32px;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.9); margin: 14px auto 30px; max-width: 46ch; }
.cta-final .btn { background: #ffffff; color: var(--accent-dark); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); }
.cta-final .btn:hover { background: #fff2ee; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 30px 0 46px;
  font-size: 0.88rem; color: var(--muted);
}
footer.site .container { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* ------------------------------------------------------------------ */
/*  Apparition au défilement                                           */
/* ------------------------------------------------------------------ */

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ */
/*  Écrans étroits                                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 980px) {
  .hero-grid, .analyse-grid, .progression-band, .offre-grid { grid-template-columns: 1fr; }
  .analyse-grid .phone { order: 2; }
  .steps-grid, .privacy-grid { grid-template-columns: 1fr; gap: 26px; }
  .t-a, .t-b, .t-c, .t-d, .t-e { grid-column: span 12; }
  .tile-visual { height: 430px; }
  .hero { padding-top: 36px; }
  .hero-rings { display: none; }
}

@media (max-width: 640px) {
  header.site { padding: 0 14px; }
  header.site nav a { padding: 8px 9px; font-size: 0.85rem; }
  .name span { display: none; }
  .progression-band { padding: 36px 24px; }
  .plan { padding: 28px 24px; }
}
