/* Haut de la page accueil, repris pour les deux pages de téléchargement. */

    /* ========== RESET & BASE ========== */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: #09090b; color: #e4e4e7;
      font-size: 16px; line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    ul { list-style: none; }

    /* ========== VARIABLES ========== */
    :root {
      --violet-50: #f5f3ff; --violet-100: #ede9fe; --violet-200: #ddd6fe;
      --violet-300: #c4b5fd; --violet-400: #a78bfa; --violet-500: #8b5cf6;
      --violet-600: #7c3aed; --violet-700: #6d28d9; --violet-800: #5b21b6;
      --violet-900: #4c1d95;
      --dark-950: #09090b; --dark-900: #0f0f14; --dark-800: #18181b;
      --dark-700: #27272a; --dark-600: #3f3f46; --dark-500: #8a8a93;
      --dark-400: #949499; --dark-300: #a1a1aa; --dark-200: #d4d4d8;
      --dark-100: #e4e4e7; --dark-50: #fafafa;
      --green-500: #10b981; --amber-500: #f59e0b;
      --max-w: 1200px;
    }

    /* ========== UTILITIES ========== */
    .container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
    .mono { font-family: 'JetBrains Mono', monospace; }
    .text-violet { color: var(--violet-400); }
    .text-gradient {
      background: linear-gradient(135deg, var(--violet-400), var(--violet-300));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ========== BUTTONS ========== */
    .btn {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 32px; border-radius: 12px;
      font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif;
      border: none; cursor: pointer; transition: all 0.25s ease;
      text-decoration: none;
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--violet-600), var(--violet-700));
      color: white; box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
    }
    .btn-secondary {
      background: var(--dark-800); color: white;
      border: 1.5px solid var(--dark-600);
    }
    .btn-secondary:hover {
      border-color: var(--violet-500); color: var(--violet-300);
    }
    .btn-sm { padding: 10px 22px; font-size: 14px; border-radius: 10px; }

    /* ========== NAV ========== */
    .nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(39, 39, 42, 0.5);
      transition: background 0.3s;
    }
    .nav-inner {
      max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
      height: 72px; display: flex; align-items: center; justify-content: space-between;
    }
    .nav-logo { display: flex; align-items: center; gap: 12px; }
    .nav-logo span { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: white; }
    .nav-logo .fast { color: var(--violet-400); }
    .nav-links { display: flex; gap: 32px; align-items: center; }
    .nav-links a {
      font-size: 14px; font-weight: 500; color: var(--dark-300);
      transition: color 0.2s;
    }
    .nav-links a:hover { color: white; }
    .nav-mobile { display: none; background: none; border: none; cursor: pointer; }
    /* Zone de droite : profil + burger. Les liens poussent contre elle
       (margin-left:auto) ; sur telephone les liens disparaissent et le
       profil reste visible SANS ouvrir le menu. */
    .nav-inner { gap: 20px; }
    .nav-links { margin-left: auto; }
    .nav-droite { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
    .nav-mobile svg { color: white; }

    /* ========== HERO ========== */
    .hero {
      min-height: 100vh; display: flex; align-items: center; justify-content: center;
      text-align: center; padding: 120px 24px 80px; position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: ''; position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 800px 600px at 50% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 80% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-content { position: relative; max-width: 800px; }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 6px 18px; border-radius: 999px;
      background: rgba(124, 58, 237, 0.12); border: 1px solid rgba(124, 58, 237, 0.25);
      font-size: 13px; font-weight: 600; color: var(--violet-300);
      margin-bottom: 32px;
    }
    .hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); animation: pulse 2s infinite; }
    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
    .hero h1 {
      font-size: clamp(40px, 6vw, 72px); font-weight: 900;
      line-height: 1.05; letter-spacing: -2px; color: white;
      margin-bottom: 24px;
    }
    .hero p {
      font-size: 20px; color: var(--dark-300); max-width: 560px;
      margin: 0 auto 40px; line-height: 1.6;
    }
    .hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
    .hero-platforms {
      margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px;
    }
    .hero-platforms span { font-size: 13px; color: var(--dark-500); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
    .platform-logos { display: flex; gap: 32px; align-items: center; opacity: 0.5; }
    .platform-logos span { font-size: 16px; font-weight: 700; color: var(--dark-400); }

    /* ========== PHONE MOCKUPS ========== */
    .phone {
      border-radius: 30px; background: #131316; border: 1px solid var(--dark-700);
      padding: 6px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.75);
    }
    .phone img { border-radius: 24px; width: 100%; height: auto; display: block; }
    /* hero angled cluster */
    .hero-showcase {
      margin-top: 64px; display: flex; justify-content: center; align-items: center;
      gap: 0; position: relative;
    }
    .hero-showcase .phone { flex: 0 0 auto; width: 224px; }
    .hero-showcase .phone-center {
      width: 252px; z-index: 3;
      box-shadow: 0 30px 70px -20px rgba(0,0,0,.8), 0 0 90px -28px rgba(124,58,237,.55);
    }
    .hero-showcase .phone-left  { transform: rotate(-7deg) scale(.9) translate(32px, 12px); z-index: 1; }
    .hero-showcase .phone-right { transform: rotate(7deg)  scale(.9) translate(-32px, 12px); z-index: 1; }
    /* phone inside step / loop cards */
    .card-phone { margin-top: 26px; }
    .card-phone .phone { max-width: 232px; margin: 0 auto; }


/* ========== MASCOTTE (génie) ========== */
    /* Hero : le génie se tient dans la marge gauche, à côté des mockups
       (ancré au bord gauche du showcase → jamais par-dessus les écrans). */
    .hero-genie {
      position: absolute; left: 0; bottom: -6px; width: 184px; height: auto;
      transform: translate(calc(-100% - 8px), 0); z-index: 4; pointer-events: none;
      filter: drop-shadow(0 20px 34px rgba(124, 58, 237, 0.42));
      animation: floaty 6s ease-in-out infinite;
    }
    @keyframes floaty {
      0%, 100% { transform: translate(calc(-100% - 8px), 0); }
      50%      { transform: translate(calc(-100% - 8px), -14px); }
    }
    @media (max-width: 1240px) { .hero-genie { display: none; } }


@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--dark-900); padding: 24px; border-bottom: 1px solid var(--dark-700); gap: 16px; }
  .nav-links.open a { font-size: 16px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero p { font-size: 17px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .platform-logos { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-showcase .phone { width: 196px; }
  .hero-showcase .phone-center { width: 216px; }
}
@media (max-width: 560px) {
  .hero-showcase .phone-left, .hero-showcase .phone-right { display: none; }
  .hero-showcase .phone-center { transform: none; width: 232px; }
}
/* Focus visible sur fond sombre (accessibilité clavier). */
    a:focus-visible, button:focus-visible, .btn:focus-visible {
      outline: 2px solid var(--violet-400); outline-offset: 3px; border-radius: 8px;
    }

    /* Lien d'évitement (skip-link) : caché jusqu'au focus clavier. */
    .skip-link {
      position: absolute; left: -9999px; top: 0; z-index: 200;
      background: var(--violet-600); color: #fff; padding: 10px 16px;
      border-radius: 0 0 10px 0; font-weight: 600;
    }
    .skip-link:focus { left: 0; }

    /* Respecte "réduire les animations" (WCAG 2.3.3) + filet : le contenu
       fade-in reste visible même si les transitions sont neutralisées. */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
      }
      .fade-in { opacity: 1 !important; transform: none !important; }
    }


/* ========== MENU COURT + DRAPEAU (2026-09-23) ==========
       Trois liens au lieu de huit : le menu tient jusqu'à 900 px, qui redevient
       le palier du burger. ⚠️ Le drapeau est un SVG, JAMAIS un emoji : Windows
       n'affiche aucun emoji drapeau, il montre deux lettres. */
    .nav-langue {
      display: inline-flex; align-items: center; justify-content: center;
      width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
      border: 1px solid var(--dark-700); transition: border-color 0.2s, background 0.2s;
    }
    .nav-langue:hover { border-color: var(--violet-500); background: var(--dark-800); }
    .nav-langue:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 2px; }
    .nav-langue-drapeau {
      display: block; width: 24px; height: 16px; border-radius: 3px; overflow: hidden;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    }
    .nav-langue-drapeau svg { display: block; width: 100%; height: 100%; }

/* Telechargement : la boutique de CE telephone, le QR sur ordinateur (classes posees dans le head). */
    html.appareil-ios .store-play, html.appareil-android .store-apple { display: none; }
    .hero .hero-gratuit { font-size: 14px; color: var(--dark-400); margin: 20px auto 0; max-width: none; }
    .hero .hero-gratuit a { color: var(--violet-300); text-decoration: underline; text-underline-offset: 3px; }
    .hero-qr {
      display: none; width: 92px; margin: 20px auto 0;
    }
    html.appareil-bureau .hero-qr { display: flex; }
    .hero-qr img { width: 92px; height: 92px; flex-shrink: 0; image-rendering: pixelated; border-radius: 6px; }
    .hero .hero-qr p { font-size: 14px; color: var(--dark-300); margin: 0; max-width: none; line-height: 1.55; }
    .barre-store {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
      display: none; align-items: center; justify-content: space-between; gap: 12px;
      padding: 12px 16px; background: rgba(9, 9, 11, 0.96); border-top: 1px solid var(--dark-700);
      transform: translateY(110%); visibility: hidden;
      transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }
    html.appareil-mobile .barre-store { display: flex; }
    html.appareil-mobile body { padding-bottom: 76px; }
    .barre-store.visible { transform: none; visibility: visible; transition: transform 0.3s ease; }
    .barre-store p { margin: 0; font-size: 15px; line-height: 1.3; color: white; }
    .barre-store p span { display: block; font-size: 12px; color: var(--dark-400); }
    @media (prefers-reduced-motion: reduce) { .barre-store, .barre-store.visible { transition: none; } }


.pays-drapeau {
      display: inline-block; flex-shrink: 0; width: 24px; height: 16px;
      border-radius: 3px; overflow: hidden; vertical-align: middle;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
    }
    .pays-drapeau svg { display: block; width: 100%; height: 100%; }
    .hero-drapeaux {
      list-style: none; margin: 4px 0 0; padding: 0; max-width: 560px;
      display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    }
    .hero-drapeaux li { display: block; }
    .hero-drapeaux .pays-drapeau { display: block; width: 27px; height: 18px; }

@media (max-width: 560px) { .hero-drapeaux { max-width: 270px; } }
html { scroll-padding-top: 100px; }
@media(max-width:1000px) { .nav-links { gap: 18px; } }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 5px; }
@media (max-width: 560px) { .nav-inner { padding-inline: 16px; gap: 12px; } .nav-droite { gap: 8px; } .nav-logo { gap: 8px; } }
