/* Flexi Play : site vitrine, repris du site Flexi Keys (même charte des webapps Flexi Solutions).
   Couleurs : celles de l'appli Flexi Play (bleu #1d4f91, orange #f0a020 de la balle du logo), plus les teintes propres
   au site vitrine (bannière, accent atténué) et la couleur de chaque sport, comme dans l'appli. */
:root { --bg: #f5f6f8; --card: #fff; --text: #1b1f24; --muted: #5d6673; --border: #dde1e6; --placeholder: #a3abb5;
        --open: #1f7a4d; --close: #1d4f91; --ok-bg: #e6f4ec; --ok: #1f6b45; --err-bg: #fbeaea; --err: #a32020;
        --warn-bg: #fdf3e1; --warn: #8a5a00; --accent: #1d4f91; --row: #f8f9fb;
        --accent-strong: #163d70; --accent-soft: #e8eff9; --hero-from: #0f2747; --hero-to: #1d4f91;
        --ball: #f0a020; --padel: #1d4f91; --tennis: #b4532a; --pickleball: #0d7377; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111418; --card: #1b2026; --text: #eef1f4; --muted: #9aa4b1; --border: #2c333b; --placeholder: #66707c;
          --open: #2f9e66; --close: #3a74c4; --ok-bg: #173325; --ok: #7fd3a6; --err-bg: #3a1b1b; --err: #f08a8a;
          --warn-bg: #3a2e14; --warn: #f0c46a; --accent: #6ea0e6; --row: #20262d;
          --accent-strong: #8fb6ec; --accent-soft: #1c2a3d; --hero-from: #0b1626; --hero-to: #163d70;
          --padel: #6ea0e6; --tennis: #e08a5f; --pickleball: #4fb3b0; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

/* Boutons */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: 12px 22px;
       font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn-sm { padding: 7px 14px; font-size: .92rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #3a74c4; } }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* En-tête (charte, section 6) */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 6px 18px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none;
        font-weight: 700; font-size: 1.15rem; margin-right: auto; }
.logo svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.main-nav { display: flex; align-items: center; gap: 4px 18px; font-size: .95rem; }
.main-nav > a:not(.btn) { color: var(--muted); text-decoration: none; padding: 4px 0; }
.main-nav > a:not(.btn):hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; color: var(--text);
               width: 46px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.drawer-head, .nav-backdrop { display: none; }
@media (max-width: 720px) {
  .header-inner { gap: 6px; }
  .menu-toggle { display: inline-flex; order: 1; }
  .logo { order: 3; margin: 0 0 0 auto; flex-direction: row-reverse; }
  #main-nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: min(82vw, 320px); order: 4;
              flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 24px;
              background: var(--card); box-shadow: 4px 0 24px rgba(0,0,0,.18); overflow-y: auto;
              transform: translateX(-105%); transition: transform .22s ease; visibility: hidden; }
  .site-header.open #main-nav { transform: none; visibility: visible; }
  #main-nav > a:not(.btn), #main-nav > a.btn { display: block; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--border);
                                      border-radius: 0; background: none; color: var(--text); font-size: 1.05rem; font-weight: 400; text-align: left; }
  #main-nav > a.btn { color: var(--accent); font-weight: 600; }
  .drawer-head { display: flex; align-items: center; gap: 8px; padding: 18px 20px; font-weight: 700;
                 border-bottom: 1px solid var(--border); padding-top: max(18px, env(safe-area-inset-top)); }
  .drawer-head svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
  .site-header.open .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.35); }
}

/* Bannière */
.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; opacity: .8; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 18px; letter-spacing: -.02em; }
.hero .hl { color: #9cc3f5; }
.lead { font-size: 1.15rem; opacity: .92; margin: 0 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: #fff; color: var(--hero-from); }
.hero .btn-primary:hover { background: #e8eff9; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; opacity: .9; }
.hero-points li::before { content: "✓"; margin-right: 7px; color: #7fd3a6; font-weight: 700; }

.hero-visual { display: flex; justify-content: center; }
.phone { width: 260px; border-radius: 38px; background: #0b0f14; padding: 12px; position: relative;
         box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px #2c333b; }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px;
               background: #0b0f14; border-radius: 0 0 14px 14px; z-index: 1; }
.phone-screen { background: #f5f6f8; color: #1b1f24; border-radius: 28px; padding: 44px 18px 22px; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 40px; }
}

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--card); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin: 0 0 10px; letter-spacing: -.01em; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 44px; max-width: 40em; }
@media (max-width: 600px) { .section { padding: 56px 0; } }

.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.feature h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--muted); }
.f-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
          display: grid; place-items: center; }
.f-icon svg { width: 24px; height: 24px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: none; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.steps h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.audiences { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.audience { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 14px; padding: 24px; }
.audience h3 { margin: 0 0 8px; font-size: 1.1rem; }
.audience p { margin: 0; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Contact */
.contact { background: transparent; }
.contact-form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.contact-form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); width: 100%; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--placeholder); font-weight: 400; opacity: 1; }
.contact-form button { justify-self: start; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-note { margin: 0; color: var(--muted); font-size: .9rem; }

/* Pied de page : petit, gris, centré (charte, section 7) */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 26px 0 22px; text-align: center; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-footer { margin: 0; font-size: 1rem; }
.logo-footer svg { width: 24px; height: 24px; }
.site-footer p { margin: 4px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .88rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.soon { margin-top: 12px; display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent);
                  background: var(--accent-soft); border-radius: 999px; padding: 3px 12px; }
.demo-full { text-align: center; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.demo-note { text-align: center; font-size: .88rem; margin: 10px 0 0; }
.phone-screen.shot { padding: 40px 8px 12px; background: #111418; }
.phone-screen.shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
/* Captures prises en 390 × 844 (téléphone récent) : téléphone plus haut et moins large. */
.hero-visual .phone { width: 250px; border-radius: 42px; }
/* Carrousel de captures de l'application dans le téléphone de la bannière */
.hero-visual { flex-direction: column; align-items: center; }
.carousel { position: relative; aspect-ratio: 600 / 1298; border-radius: 12px; overflow: hidden; background: #f5f6f8; }
.phone-screen.shot .carousel .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .7s ease; border-radius: 12px; }
.phone-screen.shot .carousel .slide.active { opacity: 1; }
.carousel-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; max-width: 340px; width: 100%; text-align: center; }
.carousel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.carousel-row .carousel-caption { flex: 1; }
.carousel-arrow { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
                  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
                  transition: background .2s; }
.carousel-arrow:hover { background: rgba(255, 255, 255, .28); }
.carousel-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-caption { margin: 0; font-size: .9rem; opacity: .92; min-height: 2.6em; }
.carousel-dots { display: flex; gap: 2px; }
.carousel-dots button { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.45); transition: width .2s, background .2s; }
.carousel-dots button[aria-current="true"]::before { width: 20px; background: #fff; }
.carousel-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .phone-screen.shot .carousel .slide { transition: none; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note.ok { color: var(--ok); background: var(--ok-bg); border-radius: 10px; padding: 10px 14px; }
.form-note.error { color: var(--err); background: var(--err-bg); border-radius: 10px; padding: 10px 14px; }
.form-privacy { margin: 0; color: var(--muted); font-size: .82rem; }
/* Pages légales */
.legal h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 24px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal .table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--border); }
.legal th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.form-privacy a { color: inherit; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal blockquote { margin: 12px 0 20px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--row); border-radius: 0 10px 10px 0; }
.legal blockquote p:last-child { margin-bottom: 0; }


/* Propre à Flexi Play */
.logo b { color: var(--ball); }
.logo svg { width: 32px; height: 32px; }
.hero .hl { color: var(--ball); }
.hero-points li::before { color: var(--ball); }
.sports { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sport { background: var(--card); border: 1px solid var(--border); border-top: 5px solid var(--c); border-radius: 14px; padding: 24px; }
.sport h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--c); }
.sport p { margin: 0; color: var(--muted); }
.sport .scale { margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--text); }
.sport.padel { --c: var(--padel); } .sport.tennis { --c: var(--tennis); } .sport.pickleball { --c: var(--pickleball); }
.cta-band { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; border-radius: 18px; padding: 36px 28px;
            display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.cta-band p { margin: 0; opacity: .9; max-width: 36em; }
.cta-band .btn-primary { background: #fff; color: var(--hero-from); }
.cta-band .btn-primary:hover { background: #e8eff9; }
.cta-band .btn-ghost { margin-left: 8px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .cta-band .btn-ghost { margin-left: 0; } }
.main-nav > a.current { color: var(--text); font-weight: 600; }
