/* Site vitrine Team Football Club — feuille unique de la page d'accueil et des
   mentions légales. Les pages CGU / confidentialité gardent leur CSS embarqué
   (reprises telles quelles de hosting-legal/).
   Couleurs de marque : marine #032447 (fond du splash de l'app) et vert du logo. */

:root {
  --navy: #032447;
  --navy-2: #0a325d;
  --navy-ink: #0d2a4c;
  --green: #1fb05b;
  --green-ink: #13813f;
  --green-soft: #e6f5ec;

  --bg: #f7f8fa;
  --bg-raised: #ffffff;
  --ink: #0f1f33;
  --ink-soft: #4a5a6e;
  --ink-faint: #7b8898;
  --line: #e1e6ec;
  --shadow: 0 1px 2px rgba(3, 36, 71, 0.06), 0 12px 32px rgba(3, 36, 71, 0.08);

  --radius: 18px;
  --maxw: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111e;
    --bg-raised: #0e1c2e;
    --ink: #e8eef5;
    --ink-soft: #a4b2c3;
    --ink-faint: #74839a;
    --line: #1c2c42;
    --green-ink: #4fd387;
    --green-soft: #10291d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #07111e;
  --bg-raised: #0e1c2e;
  --ink: #e8eef5;
  --ink-soft: #a4b2c3;
  --ink-faint: #74839a;
  --line: #1c2c42;
  --green-ink: #4fd387;
  --green-soft: #10291d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3 {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: var(--green-ink); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 12px;
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
/* Logo 2× plus grand (demande explicite : 34 → 68px de haut, soit 354px de
   large au ratio de l'image 891×171). Largeur bornée à l'espace disponible
   plutôt que hauteur fixe : sur un écran étroit le logo rétrécit en gardant
   ses proportions au lieu d'être écrasé. */
.topbar-logo { display: block; flex: 0 1 354px; min-width: 120px; }
.topbar-logo img { display: block; width: 100%; max-width: 354px; height: auto; }
.topbar-nav { display: none; gap: 28px; flex-shrink: 0; }
.topbar-nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.topbar-nav a:hover { color: #fff; }
@media (min-width: 860px) { .topbar-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(31, 176, 91, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  /* +34px en haut : la barre du haut (en position absolue par-dessus) a
     grandi avec le logo, 34 → 68px. */
  padding: 138px 0 72px;
  overflow: hidden;
}
/* Filigrane « photo de match » dans le fond bleu (demande explicite : poser
   d'emblée qu'il s'agit d'une app de foot ; photo fournie par l'utilisateur,
   assets/hero-photo.webp). Opacité 20 % (demandée) en fondu `luminosity` : la
   scène prend la teinte du bleu au lieu d'apporter ses couleurs. Masque
   radial : fondu sur les bords, plus effacé à gauche derrière le texte. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero-photo.webp') center / cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(120% 100% at 62% 50%, #000 30%, transparent 82%);
  mask-image: radial-gradient(120% 100% at 62% 50%, #000 30%, transparent 82%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 170px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
}
.hero .eyebrow { color: #7fe0a6; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); }
.hero h1 em { font-style: normal; color: #5fd896; }
.hero-lede {
  margin-top: 20px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34em;
}
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-width: 180px;
}
.store-btn svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-btn small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.2; }
.store-btn strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.store-btn[aria-disabled="true"] { cursor: default; }
/* Lancement Android d'abord (demande explicite) : Google Play mis en avant,
   App Store grisé avec l'étiquette « iOS à venir ». */
.store-btn--available { border-color: rgba(31, 176, 91, 0.7); box-shadow: 0 0 0 1px rgba(31, 176, 91, 0.35); }
.store-btn--soon { position: relative; border-color: rgba(255, 255, 255, 0.12); }
/* Contenu grisé (pas le bouton entier : un filtre sur le parent griserait
   aussi l'étiquette verte, et un enfant ne peut pas l'annuler). */
.store-btn--soon > svg,
.store-btn--soon > span { opacity: 0.5; }
.store-soon-tag {
  position: absolute;
  top: -9px; right: -8px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hero-note { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Téléphone (maquette CSS de l'écran Composition) ---------- */
/* ---------- Téléphones réalistes (inspiration fournie par l'utilisateur) ----------
   Style ANDROID (sortie Android d'abord, iOS à venir — demande explicite) :
   poinçon caméra rond au lieu de la Dynamic Island, boutons volume et marche
   sur la tranche DROITE. Châssis sombre avec reflet,
   capture RÉELLE à l'écran (ratio d'origine, jamais rognée), léger reflet
   lumineux, inclinaison 3D et halo vert. Largeur pilotée par --w. */
.device {
  --w: 240px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.045);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(150deg, #3d434a 0%, #16191c 16%, #0a0c0e 55%, #262a2f 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--w) * 0.02) #050607,
    0 50px 90px -24px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(31, 176, 91, 0.28);
  transform-style: preserve-3d;
}
/* Boutons latéraux : volume (deux, via box-shadow) à gauche, marche à droite. */
.device::before,
.device::after {
  content: '';
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, #30353a, #15181b);
}
.device::before {
  /* Volume (un seul bouton long, comme la plupart des Android). */
  right: -3px; top: 18%; height: 14%;
  border-radius: 0 2px 2px 0;
}
.device::after {
  /* Marche, sous le volume. */
  right: -3px; top: 36%; height: 7%;
  border-radius: 0 2px 2px 0;
}
.device-screen {
  position: relative;
  border-radius: calc(var(--w) * 0.13);
  overflow: hidden;
  background: #000;
}
.device-screen img { display: block; width: 100%; height: auto; }
.device-island {
  /* Poinçon caméra Android (rond, centré). */
  position: absolute;
  top: 1.5%; left: 50%;
  transform: translateX(-50%);
  width: calc(var(--w) * 0.055);
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, #2a3440 0 18%, #000 45%);
  border-radius: 50%;
  z-index: 2;
}
/* Reflet sur la vitre. */
.device-screen::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

/* Hero : deux téléphones qui se chevauchent, inclinés, sur un halo vert. */
.hero-devices {
  position: relative;
  height: 520px;
  perspective: 1800px;
}
.hero-devices::before {
  content: '';
  position: absolute;
  inset: 8% 5%;
  background: radial-gradient(closest-side, rgba(31, 176, 91, 0.55), transparent);
  filter: blur(30px);
}
.hero-devices .device { position: absolute; }
.hero-devices .device--back {
  --w: 215px;
  right: 6%; top: 0;
  transform: rotateY(-18deg) rotateX(6deg) rotateZ(5deg);
}
.hero-devices .device--front {
  --w: 205px;
  left: 6%; bottom: 0;
  z-index: 2;
  transform: rotateY(18deg) rotateX(6deg) rotateZ(-6deg);
}
@media (min-width: 560px) {
  .hero-devices { height: 600px; }
  .hero-devices .device--back { --w: 250px; right: 12%; }
  .hero-devices .device--front { --w: 235px; left: 12%; }
}
@media (min-width: 900px) {
  .hero-devices { height: 620px; }
  .hero-devices .device--back { right: 0; }
  .hero-devices .device--front { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Fonctionnalités : rangées alternées texte / téléphone ---------- */
.showcase { display: grid; gap: 24px; }
.show-row { display: grid; gap: 28px; align-items: center; }
.show-text h3 { font-size: 26px; margin-bottom: 12px; }
.show-text p { color: var(--ink-soft); font-size: 16px; }
.show-text p + p { margin-top: 12px; }
.show-text .feature-icon { margin-bottom: 16px; }
/* Téléphone posé DIRECTEMENT sur la page (demande explicite : plus de bloc à
   fond vert). Simple conteneur centré qui porte la perspective 3D. */
.show-stage {
  display: grid;
  place-items: center;
  /* Rangées rapprochées (demande explicite) : le téléphone est déjà haut. */
  padding: 8px 0;
  perspective: 1600px;
}
/* Sur fond clair, l'ombre portée remplace le halo vert du hero (qui salirait
   la page) : ombre neutre douce, à peine teintée de vert. */
.show-stage .device {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--w) * 0.02) #050607,
    0 40px 70px -28px rgba(3, 36, 71, 0.45),
    0 18px 40px -20px rgba(31, 176, 91, 0.25);
}
.show-stage .device { --w: 210px; transform: rotateY(-16deg) rotateX(5deg) rotateZ(3deg); }
.show-row:nth-child(even) .show-stage .device { transform: rotateY(16deg) rotateX(5deg) rotateZ(-3deg); }
@media (min-width: 900px) {
  .showcase { gap: 8px; }
  .show-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .show-row:nth-child(even) .show-text { order: 2; }
  .show-stage .device { --w: 230px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }
.section--alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Fonctionnalités */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.section--alt .feature { background: var(--bg); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-soft);
  color: var(--green-ink);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* Entraîneur / joueur */
.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 860px) { .roles { grid-template-columns: 1fr 1fr; } }
.role {
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.role--coach { background: var(--navy); color: #fff; border-color: var(--navy); }
.role h3 { font-size: 24px; margin-bottom: 6px; }
.role > p { color: var(--ink-soft); margin-bottom: 20px; }
.role--coach > p { color: rgba(255, 255, 255, 0.72); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: '';
  flex: none;
  width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Étapes */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 16px;
  counter-reset: step;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.section--alt .steps li { background: var(--bg); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: 'Lexend', sans-serif; font-weight: 700;
  margin-bottom: 16px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 15px; }

/* Bandeau confidentialité */
.trust {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: start;
}
@media (min-width: 900px) { .trust { grid-template-columns: 1fr 1fr; gap: 64px; } }
.trust .section-head { margin-bottom: 0; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trust-list li {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.trust-list b { display: block; margin-bottom: 2px; }
.trust-list span { color: var(--ink-soft); font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; display: grid; gap: 12px; }
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--ink-faint);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* Appel final */
.cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 56px 28px;
  text-align: center;
}
.cta h2 { font-size: clamp(26px, 4vw, 38px); }
.cta p { margin: 14px auto 0; color: rgba(255, 255, 255, 0.75); max-width: 32em; }
.cta .store-row { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-faint);
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand .logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .footer-brand .logo-on-light { display: none; }
  .footer-brand .logo-on-dark { display: block; }
}
.footer-brand p { margin-top: 10px; max-width: 26em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { margin-top: 32px; font-size: 12.5px; }

/* ---------- Page texte (mentions légales) ---------- */
.page-masthead {
  background: var(--navy);
  padding: 22px 0;
}
.page-masthead img { height: 34px; width: auto; }
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}
.page h1 { font-size: 32px; margin-bottom: 8px; }
.page .meta { color: var(--ink-faint); font-size: 14px; margin-bottom: 32px; }
.page h2 { font-size: 20px; margin: 36px 0 12px; }
.page p { margin-bottom: 12px; }
.info-block {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 18px;
}
.info-row {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
@media (min-width: 560px) { .info-row { grid-template-columns: 180px 1fr; gap: 16px; } }
.info-row dt { color: var(--ink-faint); font-size: 14px; }
.info-row dd { margin: 0; }
