  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #0D0F12; --bg2: #111418; --card: #161A21; --card2: #1C2028;
    --border: rgba(255,255,255,0.07); --text: #F0F2EB; --muted: #7A8090;
    --accent1: #1A6CF6; --accent2: #6E3BFF;
    --grad: linear-gradient(135deg, #1A6CF6, #6E3BFF);
    --grad-text: linear-gradient(90deg, #1A6CF6, #8B5CF6);
    --font-display: 'Syne', sans-serif; --font-body: 'Inter', sans-serif; --font-mono: 'JetBrains Mono', monospace;
  }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--text); font-family: var(--font-body); overflow-x: hidden; line-height: 1.6; }

  /* COLOR */
  .blue { color: #447fec; -webkit-text-fill-color: #447fec; font-style: normal; }
  .purple { color: #a94ef7; -webkit-text-fill-color: #a94ef7; }
  .purple-gradient { background: linear-gradient(90deg, #8862fe, #a94ef7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; }
  .blue-gradient { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; }


  /* SPLASH SCREEN */
  .splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .45s ease, visibility .45s ease;
  }
  .splash-screen.splash-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

  .splash-inner { display: flex; flex-direction: column; align-items: center; }

  .splash-line-wrap { position: relative; width: 2px; height: 220px; }

  .splash-line {
    position: absolute; top: 0; left: 0; width: 2px; height: 220px;
    background: linear-gradient(to bottom, #1A6CF6, #6E3BFF);
    transform: scaleY(0); transform-origin: top;
    animation: splashLineGrow 1.1s ease-in-out forwards;
  }
  @keyframes splashLineGrow { to { transform: scaleY(1); } }

  /*
  .splash-dots {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    height: 100%; width: 14px;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  }
  */

  .splash-dots {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    height: 180px;
    width: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .splash-dot {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--text);
    box-shadow: 0 0 12px rgba(59,130,246,0.6);
    opacity: 0; transform: scale(0.2);
    animation: splashDotPop 0.45s cubic-bezier(.34,1.56,.64,1) forwards;
    animation-fill-mode: forwards;
  }
  @keyframes splashDotPop { to { opacity: 1; transform: scale(1); } }

  .splash-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    color: var(--text);
    margin-top: 50px;
    opacity: 0;
    transform: translateY(12px);
    animation: splashTitleIn 0.5s ease-out forwards;
    animation-delay: 1.3s;
  }
  @keyframes splashTitleIn { to { opacity: 1; transform: translateY(0); } }


  /* NAV */
  .site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px 48px; background: rgba(13,15,18,0.7); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); transition: background .3s; z-index: 1200; }
  /* nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px 48px; background: rgba(13,15,18,0.7); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); transition: background .3s; z-index: 1200; } */
  .nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 20px; background: var(--text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; text-decoration: none; display: flex; align-items: center; height: 32px; }
  .nav-brand { display:flex; flex-direction:column; align-items:flex-start; line-height:1; }
  .nav-tagline { margin-top:4px; font-size:11px; font-weight:400; color:var(--muted); letter-spacing:.4px; opacity:.75; }
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; margin-top: 0.5%;}
  .nav-links li { display: flex; align-items: center; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; display: flex; align-items: center; height: 32px; line-height: 1; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta { background: var(--grad); color: #fff; border: none; border-radius: 50px; padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: opacity .2s, transform .2s; text-decoration: none; }
  .nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
  .nav-right { display: flex; align-items: center; gap: 10px; position: relative; }

  @media(max-width:700px){
    .nav-cta { font-size: 11.5px; }
  }

  .lang-switch { position: relative; }
  .lang-switch-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color .2s, color .2s;
  }
  .lang-switch-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
  .lang-switch-btn svg { display: none; }
  .lang-switch-btn.open { color: #6FA3FF; border-color: rgba(26,108,246,0.4); }
  .lang-switch-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    min-width: 90px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 2000;
  }
  .lang-switch-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .lang-switch-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
  }
  .lang-switch-option:hover { background: rgba(255,255,255,0.06); color: var(--text); }
  .lang-switch-option.active { color: #6FA3FF; }
  

  /* HERO */
  #life-timeline { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 120px 48px 80px; }
  .hero-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26,108,246,0.15) 0%, transparent 70%); }
  .hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.04; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; }
  .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; max-width: 1200px; width: 100%; position: relative; z-index: 1; padding-top: 40px; }
  
  .hero-text { position: relative; }
  .hero-motto { position:absolute; left:50%; width:30%; }
  .hero-motto img { width:100%; height:auto; display:block; }

  .hero-app-icon { margin-bottom: 26px; margin-left: 2%; margin-top:20%; }
  .hero-app-icon img { width: 96px; height: 96px; border-radius: 22px; border: solid 0.8px black; display: block; box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 30px rgba(26,108,246,.25); }
  .hero-app-icon::before { content: ""; position: absolute; inset: -18px; background: radial-gradient(circle, rgba(26,108,246,.35), transparent 65%); filter: blur(100px); z-index: -1; }

  .hero-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(26,108,246,0.12); border: 1px solid rgba(26,108,246,0.25); border-radius: 50px; padding: 6px 14px; margin-bottom: 24px; font-size: 12px; font-weight: 500; color: #6FA3FF; letter-spacing: 0.5px; }
  .hero-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #1A6CF6; animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
  .hero-title { font-family: var(--font-display); font-size: clamp(32px,5vw,32px); font-weight: 800; line-height: 1.35; letter-spacing: -2px; margin-bottom: 20px; }
  .hero-title-rtl { padding-inline-start: 20%; } /* Ar */
  .hero-title em { font-style: normal; }  
  .hero-sub { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 440px; font-weight: 300; }

  .hero-actions { display: flex; gap: 14px; align-items: center; padding-top: 36px; }
  .hero-actions-rtl { padding-inline-start: 20%; }

  @media(max-width:700px){
    .hero-title { font-size: clamp(25px,5vw,25px); }
    .hero-title-rtl { padding-inline-start: 0; }
    .hero-motto { position:relative; width:35%; }
    .hero-app-icon { margin-top:-5%; }

    .hero-actions-rtl { padding-inline-start: 0; }
  }
  
  /* Sur desktop, on garde visuellement Télécharger en premier */
  .hero-actions .btn-primary { order: 1; }
  .hero-actions .btn-video { order: 2; }

  @media (max-width: 700px) {
    .hero-actions {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }

    /* Sur mobile : vidéo avant téléchargement (= ordre du DOM) */
    .hero-actions .btn-video { order: 0; }
    .hero-actions .btn-primary { order: 1; }

    .btn-video,
    .btn-primary {
      justify-content: center;
      width: 100%;
    }
  }
  
  .btn-primary { background: var(--grad); color: #fff; border: none; border-radius: 50px; padding: 14px 28px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: all .25s; display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(26,108,246,0.3); }


  /* BOUTON VOIR LA VIDÉO */
  .btn-video { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14); color: var(--text); border-radius: 50px; padding: 14px 26px 14px 20px; font-size: 15px; font-weight: 600; font-family: var(--font-body); cursor: pointer; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; }
  .btn-video::before { content: ""; position: absolute; inset: -2px; border-radius: 50px; padding: 2px; background: var(--grad); opacity: 0; transition: opacity .3s; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
  .btn-video:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); border-color: transparent; }
  .btn-video:hover::before { opacity: 1; }
  .btn-video-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; flex-shrink: 0; box-shadow: 0 0 0 0 rgba(26,108,246,0.55); animation: videoPulse 2.4s ease-out infinite; }

.btn-video-icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; flex-shrink: 0;
}

.btn-video-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,108,246,0.9) 0%, rgba(110,59,255,0.6) 40%, transparent 70%);
  transform: scale(1);
  opacity: 1;
  animation: videoPulseGPU 2.4s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes videoPulseGPU {
  0%   { transform: scale(1);   opacity: 0.9; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

  /* MODAL VIDÉO */
  .video-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .video-modal.open { opacity: 1; visibility: visible; }
  .video-modal-backdrop { position: absolute; inset: 0; background: rgba(6,7,10,0.85); backdrop-filter: blur(6px); }
  .video-modal-content { position: relative; z-index: 1; width: 100%; max-width: 860px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transform: scale(0.96) translateY(8px); transition: transform .3s; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
  .video-modal.open .video-modal-content { transform: scale(1) translateY(0); }
  .video-modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); background: rgba(13,15,18,0.6); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s; }
  .video-modal-close:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
  .video-modal-player-wrap { width: 100%; aspect-ratio: 16 / 9; background: #000; }

  .video-modal-player-wrap video { width: 100%; height: 100%; display: block; } /* Server */
  .video-modal-player-wrap iframe { width: 100%; height: 100%; display: block; border: 0; } /* Youtube */

  .video-modal-caption { padding: 20px 24px 24px; }
  .video-modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .video-modal-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
  body.video-modal-locked { overflow: hidden; }

  @media (max-width: 700px) {
    .video-modal-content { max-width: 100%; }
  }


  /* TIMELINE YEAR HEADER */
  .tl-year-header { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px 0; padding-left: 65px; }
  .tl-year-label { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--text); letter-spacing: 1.5px; text-transform: uppercase; }
  .tl-year-line { flex: 1; height: 1px; background: var(--border); }

  /* TIMELINE */
  .timeline-spine { position: relative; padding: 10px 0; }
  .spine-line { position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, rgba(26,108,246,0.5), rgba(110,59,255,0.5), transparent); }
  .tl-event { display: flex; align-items: flex-start; gap: 20px; position: relative; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
  .tl-event.revealed { opacity: 1; transform: translateY(0); }
  .tl-dot-wrap { flex-shrink: 0; width: 42px; display: flex; justify-content: center; padding-top: 6px; }
  .tl-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; background: var(--bg2); position: relative; z-index: 1; transition: transform .3s; }
  .tl-dot-birth { width: 22px; height: 22px; border-radius: 50%; background: #447fec; border: 1.5px solid #ffffff; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; flex-shrink: 0; box-shadow: 0 0 10px rgba(68,127,236,.5); }
  .tl-dot-birth span { color: #ffffff; font-size: 12px; line-height: 1; }
  .tl-event:hover .tl-dot { transform: scale(1.4); }
  .tl-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; flex: 1; transition: border-color .3s, transform .3s; }
  .tl-card:hover { border-color: rgba(26,108,246,0.3); transform: translateX(3px); }
  .tl-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
  .tl-card-title { font-size: 13px; font-weight: 600; }
  .tl-card-year { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
  .tl-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
  .tl-card-divider { border: none; height: 0.5px; background: rgba(255,255,255,0.07); margin: 8px 0; }
  .tl-card-footer { display: flex; align-items: center; justify-content: space-between; }
  .tl-card-loc { font-size: 11px; color: var(--muted); }
  .tl-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
  .tl-card-media { display: flex; gap: 8px; margin-top: 10px; margin-bottom: 10px; }

  .tl-main-image { flex: 1; height: 170px; object-fit: cover; border-radius: 10px; background: var(--card2); display: block; min-width: 0; }
  .tl-extra-photo { width: 75px; flex-shrink: 0; height: 170px; border-radius: 10px; background: #101010; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--font-body); color: var(--muted); }
  .tl-extra-photo strong { font-size: 18px; color: var(--text); line-height: 1; }
  .tl-extra-photo span { font-size: 10px; margin-top: 3px; }

  .tl-card-age-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5px; padding-left: 65px; padding-right: 5px; margin-bottom: 15px; }
  .tl-card-age-left { font-size: 10px; color: var(--muted); font-style: italic; }
  .tl-card-age-right { font-size: 10px; color: var(--muted); font-style: italic; }

  /* HERO TIMELINE AUTO-SCROLL (nouveau) */
  .tl-hero-viewport {
    position: relative; height: 620px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
  }

  .tl-hero-track { will-change: transform; }

   /* LINEO DIVIDER */
  .tl-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0;
  }
  .tl-hero-divider-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 50px;
    letter-spacing: 2px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }


  /* SECTION */
  section { padding: 150px 0px 130px 0px; } /* 150px 48px */
  
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-eyebrow { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 2px; color: #6FA3FF; text-transform: uppercase; margin-bottom: -20px; }
  .section-title { font-family: var(--font-display); font-size: clamp(32px,4vw,32px); font-weight: 800; letter-spacing: 0px; line-height: 1.35; text-transform: uppercase; } /* letter-spacing: -1.5px; */
  .section-sub { font-size: 16px; color: var(--muted); max-width: 480px; font-weight: 300; line-height: 1.7; }

  /* LIFE STORY TIMELINE */
  #vision { background: var(--bg2);  position: relative; overflow: hidden; }
  #vision::before { content:""; position:absolute; width:600px; height:600px; background: radial-gradient(circle, rgba(26,108,246,.18), transparent 65%); left:50%; top:50%; transform:translate(-50%,-50%); filter:blur(80px); pointer-events:none; }
  .story-inner { max-width:1200px; margin:auto; position:relative; z-index:1; }
  .story-header { text-align:center; max-width:700px; margin:0 auto 30px; }
  .story-title { font-family:var(--font-display); font-size:clamp(32px,4vw,32px); font-weight:800; line-height:1.35; margin-bottom:25px; }

  .story-hint { margin-top: 60px; font-size: 0.82rem; opacity: .45; font-style: italic; text-align: center; animation: pulseHint 2.5s ease-in-out infinite; }
  @keyframes pulseHint {
    0%,100% { opacity:.35; }
    50% { opacity:.9; }
  }

  @media (max-width: 700px) {
    .section-title { font-size: clamp(22px,4vw,22px); }
    .story-header { max-width:900px; }
  }

  /* TIMELINE */
  .life-line-wrapper { position:relative; padding:80px 0 20px; }
  .life-items { display:flex; justify-content:space-between; position:relative; }
  .life-item { width:16.66%; text-align:center; position:relative; }
  .story-text { font-size:18px; line-height: 1;}
  .story-question { margin-top:35px; font-family:var(--font-display); font-size:28px; font-weight:800; line-height:1.25; }
  .story-question span { background:var(--grad-text); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

  .life-line { position:absolute; top:90px; left:0; right:0; height:3px; background: linear-gradient(90deg, #447fec, #a94ef7 ); border-radius:50px; }

  /* Birth */
  .life-item.birth .life-dot { width:34px; height:34px; background:#447fec; border:3px solid white; display:flex; align-items:center; justify-content:center; margin-top:-6px; box-shadow: 0 0 30px rgba(68,127,236,.8); }
  .life-item.birth .life-dot span { color:white; font-size:15px; line-height:1; }
  .life-year { font-family:var(--font-display); font-size:22px; font-weight:800; color:#F0F2EB; margin-bottom:8px; }
  .life-label { color:var(--muted); font-size:13px; line-height:1.4; max-width:130px; margin:auto; }

  /* Dot Color: ou var(--bg) selon le rendu souhaité */
  .life-dot { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 25px; background: var(--bg2); border: 3px solid #ffffff; position: relative; z-index: 2; box-shadow: 0 0 18px rgba(255,255,255,.25); }

  /* Mobile */
  @media(max-width:700px){
    #vision { padding:90px 24px; }
    .story-header { margin-bottom:20px; }
    .story-title { font-size:clamp(25px,5vw,25px); }
    .story-text { font-size:15px; }
    .story-question { font-size:24px; }

    .life-line-wrapper { padding:35px 0 20px; }
    .life-line { top:47px; }
    .life-items { display:flex; flex-direction:row; justify-content:space-between; }
    .life-item { width:33.333%; }
    .life-year { font-size:18px; }
    .life-label { font-size:12px; max-width:90px; }
    .mobile-hide { display:none; }

    .story-hint { margin-top: 50px; font-size: 0.75rem; }
  }

  /* Line + Dots Animation */
  .life-line { transform: scaleX(0); transform-origin:left center; transition: transform 3s ease;  }
  .life-line-wrapper.revealed .life-line {  transform:scaleX(1);  }

  /* Apparition progressive des étapes */
  .life-item {  opacity:0;  transform:translateY(15px) scale(.85);  transition: opacity .2s ease, transform .3s cubic-bezier(.34,1.56,.64,1);  }
  .life-item.show { opacity:1;  transform:translateY(0) scale(1);  }
  .life-dot { transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s ease;  }
  .life-item:hover .life-dot { transform:scale(1.15); }
  .life-item.show .life-dot { animation: dotPulse .6s ease; }

  @keyframes dotPulse {
    0% {
      transform:scale(.5);
      box-shadow:0 0 0 rgba(68,127,236,0);
    }
    50% {
      transform:scale(1.25);
      box-shadow:0 0 25px rgba(68,127,236,.7);
    }
    100% {
      transform:scale(1);
    }
  }

  /* LIFE HOVER CARD */
  .life-hover-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,12,18,0.55);
    backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 998;
  }
  .life-hover-backdrop.show { opacity: 1; }

  .life-hover-card {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.94);
    width: min(400px, 85vw);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 999;
  }
  .life-hover-card.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .life-hover-card .tl-card-media { margin-top: 8px; margin-bottom: 8px; }
  .life-hover-card .tl-main-image { height: 150px; }

  /* Curseur "cliquable" sur les dots reliés à un event */
  .life-item[data-event]:not([data-event=""]) { cursor: pointer; }
  .life-hover-backdrop.show { opacity: 1; pointer-events: auto; }

  .life-item[data-event] .life-dot {
    position: relative;
  }
  .life-item[data-event] .life-dot::after {
    content: "";
    position: absolute;
    inset: -10px; /* zone de tap élargie, invisible, ne déclenche pas le :hover CSS mais capte le JS */
    z-index: 3;
  }





  /* MAP */
  #memory-map { background: var(--bg); overflow: hidden; }
  .map-header { margin-bottom: 32px; }
  .map-header-top { display: flex; align-items: flex-end; gap: 40px; margin-bottom: 8px; }
  .map-header-top .section-title { margin-bottom: 0; white-space: nowrap; }
  .map-header-sub { font-size: 16px; color: var(--muted); font-weight: 300; line-height: 1.7; white-space: nowrap; }
  .map-visual { position: relative; height: 500px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); width: 100%; }

  #leaflet-map { width: 100%; height: 100%; }
  .leaflet-container { background: #1a1e28 !important; }
  .leaflet-tile { filter: brightness(0.32) saturate(0.2) hue-rotate(195deg); }
  .leaflet-control-zoom a { background: var(--card) !important; color: var(--text) !important; border-color: var(--border) !important; }
  .leaflet-control-attribution { background: rgba(13,15,18,0.7) !important; color: var(--muted) !important; font-size: 9px !important; }
  .leaflet-control-attribution a { color: #6FA3FF !important; }
  .custom-pin { background: transparent !important; border: none !important; }

  .leaflet-control-attribution { display: none; }


  /* MAP CATEGORIES FILTER */
  .map-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }

  .map-filter-chip {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    min-width: 50px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 0.5px solid rgba(255,255,255,0.15);
    cursor: pointer; font-family: var(--font-body);
    transition: background .2s, border-color .2s;
  }
  .map-filter-chip-icon { font-size: 14px; line-height: 1; }
  .map-filter-chip-label { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .2s; }

  /* Chip catégorie active — couleur propre à la catégorie */
  .map-filter-chip.active {
    background: color-mix(in srgb, var(--chip-color) 12%, transparent);
    border-color: color-mix(in srgb, var(--chip-color) 60%, transparent);
  }
  .map-filter-chip.active .map-filter-chip-label { color: var(--chip-color); }

  /* Chip "Tout" active — utilise l'accent du site, pas une couleur de catégorie */
  .map-filter-chip-all.active {
    background: var(--card2);
    border-color: var(--accent1);
    border-width: 1.5px;
  }
  .map-filter-chip-all.active .map-filter-chip-label { color: var(--text); }


  /* SCROLLABLE MAP CATEGORIES FILTER */
  @media (max-width: 600px) {
    .map-filter-row {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 4px;
      scrollbar-width: none;
    }
    .map-filter-row::-webkit-scrollbar { display: none; }
    .map-filter-chip { flex-shrink: 0; }
  }



  /* MAP PIN CARD */
  .map-pin-card {
    position: absolute; z-index: 1000; top: 20px; right: 20px;
    background: var(--card); border: 0.5px solid rgba(26,108,246,0.4);
    border-radius: 14px; padding: 12px; width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6); transition: opacity .3s;
    display: flex; align-items: flex-start; gap: 12px;
  }
  .map-pin-card-img {
    width: 60px; height: 60px; object-fit: cover; border-radius: 12px;
    flex-shrink: 0; display: block;
  }
  .map-pin-card-emoji-box {
    width: 60px; height: 60px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; background: rgba(255,255,255,0.05);
  }
  .map-pin-card-content { flex: 1; min-width: 0; padding-top: 1px; }
  .map-pin-card-title {
    font-size: 13px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .map-pin-card-meta { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
  .map-pin-card-desc { font-size: 12px; color: #9CA3B5; line-height: 1.5; }
  .map-pin-card { display: none; }

  /* MAP PINS */
  .map-pin-wrap { position: relative; width: 45px; height: 45px; cursor: pointer; }
  .map-pin-photo { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2.5px solid #181818; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.5); transition: transform .2s; }
  .map-pin-photo:hover { transform: scale(1.15); }
  .map-pin-emoji-wrap { width: 45px; height: 45px; border-radius: 50%; border: 2.5px solid #181818; display: flex; align-items: center; justify-content: center; font-size: 14px; background: #202020; transition: transform .2s; }
  .map-pin-emoji-wrap:hover { transform: scale(1.15); }

  .map-pin-wrap.map-pin-active { z-index: 10; }
  .map-pin-active .map-pin-photo,
  .map-pin-active .map-pin-emoji-wrap {
    transform: scale(1.3);
    border-color: #fff !important;
    /* box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 4px 16px rgba(0,0,0,0.6); */
  }

  /* FEATURES */
  #features { background: var(--bg2); }
  .features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 48px; }

  /*.feat-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s, border-color .3s; overflow: hidden; } */
  .feat-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s, border-color .3s; overflow: hidden; }

  .feat-card.revealed { opacity: 1; transform: translateY(0); }
  .feat-card:hover { border-color: rgba(26,108,246,0.25); transform: translateY(-4px); }

  /* .feat-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; font-size: 20px; } */
  .feat-icon { position: absolute; top: 24px; right: 24px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }

  /* .feat-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; } */
  .feat-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 25px; letter-spacing: -0.3px; padding-right: 50px; margin-top: 10px; }

  .feat-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
  
  .pie-wrap { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
  .pie-svg { width: 92px; height: 92px; }
  .pie-svg { flex-shrink: 0; }
  .pie-legend { display: flex; flex-direction: column; gap: 5px; }
  .pie-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
  .pie-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .cat-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .cat-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
  
  .notif-preview { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 32px; display: flex; align-items: center; gap: 10px; }
  .notif-icon { width: 45px; height: 45px; border-radius: 8px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; overflow: hidden; }
  .notif-icon-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .notif-text { flex: 1; }

  /* Structure des notifs en 3 lignes */
  .notif-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .notif-title { font-size: 11px; font-weight: 600; }
  .notif-desc-row { font-size: 11px; color: var(--text); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
  .notif-ago-row { font-size: 10px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 4px; }

  /* .notif-body { font-size: 10px; color: var(--muted); line-height: 1.4; } */
  .notif-time { font-size: 9px; color: var(--muted); flex-shrink: 0; }

  .pdf-preview-img { margin: 12px auto 0; border-radius: 10px; overflow: hidden; max-width: 300px; margin-top: -5px; }
  .pdf-preview-img img { width: 100%; height: auto; display: block; }
  /* .pdf-preview { background: #1a1e28; border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-top: 12px; } */

  .pdf-page { background: #0f1117; border-radius: 6px; padding: 10px; }
  .pdf-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; border-bottom: 0.5px solid var(--border); padding-bottom: 6px; }
  .pdf-logo { font-family: var(--font-display); font-size: 11px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .pdf-name { font-size: 9px; color: var(--muted); }
  .pdf-event { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
  .pdf-event-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .pdf-event-title { font-size: 9px; font-weight: 600; }
  .pdf-event-meta { font-size: 8px; color: var(--muted); }

  /* STATS */
  #insights { background: var(--bg); text-align: center; }
  .stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; margin-top: 56px; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
  .stats-categories { display: flex; justify-content: center; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
  .stats-cat-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .stats-cat-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
  .stats-cat-label { font-size: 12px; color: var(--muted); font-weight: 500; }
  .stat-item { padding: 40px 24px; background: var(--card); transition: background .3s; }
  .stat-item:hover { background: var(--card2); }
  .stat-num { font-family: var(--font-display); font-size: 48px; font-weight: 800; letter-spacing: -2px; margin-bottom: 8px; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .stat-label { font-size: 13px; color: var(--muted); }
  .stats-cat-num { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }


  /* BIG CARD */
  .feat-card-large { grid-column: span 2; display: flex; flex-direction: column; }
  @media (max-width: 900px) { .feat-card-large { grid-column: span 2; } }
  @media (max-width: 600px) { .feat-card-large { grid-column: span 1; } }

  /* RESPONSIVE */
  @media (max-width: 600px) {
    .tl-hero-viewport .tl-dot-wrap { width: 42px; }
    .tl-hero-viewport .tl-event { gap: 8px; }
    .tl-hero-viewport .tl-year-header,

    .tl-hero-viewport .tl-card-age-row { padding-left: 54px; }

    .tl-hero-viewport .tl-card { padding: 10px 12px; }
    .tl-hero-viewport .tl-card-title { font-size: 12px; }
    .tl-hero-viewport .tl-card-desc { font-size: 11px; }

    .tl-hero-viewport .tl-main-image { height: 120px; }
    .tl-hero-viewport .tl-extra-photo { height: 120px; }

    .tl-hero-viewport .tl-badge,
    .tl-hero-viewport .tl-card-year,
    .tl-hero-viewport .tl-card-loc { font-size: 9px; }

    /* MAP */
    .map-pin-card {
      width: calc(100% - 24px);
      max-width: 280px;
      top: 12px;
      right: 12px;
      padding: 10px;
      gap: 10px;
    }
    .map-pin-card-img,
    .map-pin-card-emoji-box { width: 46px; height: 46px; }
    .map-pin-card-title { font-size: 12px; }
    .map-pin-card-desc { font-size: 11px; }
  }

  .widget-preview { display: flex; align-items: center; gap: 16px; margin-top: 14px; }

  /* .widget-frame { width: 130px; height: 130px; border-radius: 22px; overflow: hidden; position: relative; background: var(--card2); flex-shrink: 0; border: 1px solid var(--border); } */
  /* LARGE WIDGET */
  .widget-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 2.16 / 1;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: var(--card2);
    border: 1px solid var(--border);
    margin: 24px auto 0;
  }

  .widget-frame-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .widget-frame-title { font-size: 11px; font-weight: 700; color: #fff; }
  .widget-frame-sub { font-size: 9px; color: rgba(255,255,255,0.7); margin-top: 1px; }
  .widget-dots { display: flex; flex-direction: row; justify-content: center; gap: 8px; margin-top: 15px; }
  .widget-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); }
  .widget-dot.active { background: var(--accent1); }


  /* WIDGET + NOTIF */
  .feat-card-full { grid-column: 1 / -1; }

  /* Animation des notifs "Ce jour-là" — empilement séquentiel en boucle */
  @keyframes notifPop1 {
    0%   { opacity: 0; transform: translateY(14px) scale(0.94); }
    8%   { opacity: 1; transform: translateY(0) scale(1.06); }
    20%  { opacity: 1; transform: translateY(0) scale(1); }
    82%  { opacity: 1; transform: translateY(0) scale(1); }
    92%  { opacity: 0; transform: translateY(-8px) scale(0.96); }
    100% { opacity: 0; transform: translateY(14px) scale(0.94); }
  }
  @keyframes notifPop2 {
    0%, 32% { opacity: 0; transform: translateY(14px) scale(0.94); }
    40%  { opacity: 1; transform: translateY(0) scale(1.06); }
    52%  { opacity: 1; transform: translateY(0) scale(1); }
    82%  { opacity: 1; transform: translateY(0) scale(1); }
    92%  { opacity: 0; transform: translateY(-8px) scale(0.96); }
    100% { opacity: 0; transform: translateY(14px) scale(0.94); }
  }
  .notif-anim-1 { animation: notifPop1 6s cubic-bezier(.34,1.4,.64,1) infinite; }
  .notif-anim-2 { animation: notifPop2 6s cubic-bezier(.34,1.4,.64,1) infinite; }

  /* Widget rotatif — réplique fidèle du vrai widget SwiftUI */
  .widget-frame { position: relative; }
  .widget-frame-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s ease; }
  .widget-frame-emoji-center {
    position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
    font-size: 40px; z-index: 1; transition: opacity .25s ease;
  }
  .widget-frame-gradient-top {
    position: absolute; top: 0; left: 0; right: 0; height: 38%;
    background: linear-gradient(to bottom, rgba(19,22,27,0.85), transparent);
    pointer-events: none; z-index: 2;
  }
  .widget-frame-gradient-bottom {
    position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
    background: linear-gradient(to top, rgba(19,22,27,0.9), transparent);
    pointer-events: none; z-index: 2;
  }
  .widget-frame-gradient-left {
    position: absolute; top: 0; bottom: 0; left: 0; width: 20%;
    background: linear-gradient(to right, rgba(19,22,27,0.5), transparent);
    pointer-events: none; z-index: 2;
  }
  .widget-frame-gradient-right {
    position: absolute; top: 0; bottom: 0; right: 0; width: 20%;
    background: linear-gradient(to left, rgba(19,22,27,0.5), transparent);
    pointer-events: none; z-index: 2;
  }
  .widget-frame-top-row {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 10px 12px;
  }
  .widget-frame-years-ago { font-size: 9px; font-weight: 500; color: rgba(255,255,255,0.6); transition: opacity .25s ease; }
  .widget-frame-emoji-badge { font-size: 14px; transition: opacity .25s ease; }
  .widget-frame-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 10px 12px; }
  .widget-frame-title {
    font-size: 12px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
    transition: opacity .25s ease;
  }
  .widget-frame-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .widget-frame-date { font-size: 9px; color: rgba(255,255,255,0.6); white-space: nowrap; transition: opacity .25s ease; }
  .widget-frame-age { font-size: 9px; color: rgba(255,255,255,0.5); white-space: nowrap; transition: opacity .25s ease; }

  .widget-frame-fading .widget-frame-img,
  .widget-frame-fading .widget-frame-emoji-center,
  .widget-frame-fading .widget-frame-title,
  .widget-frame-fading .widget-frame-years-ago,
  .widget-frame-fading .widget-frame-date,
  .widget-frame-fading .widget-frame-age,
  .widget-frame-fading .widget-frame-emoji-badge { opacity: 0; }


  /* TL SECTION */
  .tl-section { background: var(--bg2); position: relative; overflow: hidden; }
  .tl-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(110,59,255,0.07) 0%, transparent 60%); pointer-events: none; }
  .timeline-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .tl-text-block { position: sticky; top: 120px; }
  .tl-section .section-sub { margin-top: 5%; line-height: 1.8; }
  .tl-desktop-cta { display: inline-flex; margin-top: 28px; }

  /* TL SECTION - REVERSE */
  @media (max-width: 900px) { 
    .timeline-spine { order: 2; }
    .timeline-layout { display: flex; flex-direction: column; }
    .tl-text-block { order: 1; position: static; }
    .tl-desktop-cta { display: none; }
  }

  /* Timeline events animation */
  #tlSec4 .tl-event { opacity:0; transform:translateX(-45px) scale(.96); filter:blur(6px); transition: opacity .4s ease, transform .5s cubic-bezier(.34,1.56,.64,1), filter .4s ease; }
  #tlSec4 .tl-event.show { opacity:1; transform:translateX(0) scale(1); filter:blur(0); }

  /* Dot animation */
  #tlSec4 .tl-dot { transform:scale(.4); opacity:.5; }
  #tlSec4 .tl-event.show .tl-dot { animation: timelineDotAppear .9s cubic-bezier(.34,1.56,.64,1) forwards; }

  @keyframes timelineDotAppear {
    0% {
      transform:scale(.3);
      opacity:0;
      box-shadow:0 0 0 rgba(26,108,246,0);
    }

    45% {
      transform:scale(1.45);
      opacity:1;
      box-shadow:
        0 0 35px rgba(26,108,246,.7),
        0 0 70px rgba(26,108,246,.25);
    }

    75% {
      transform:scale(.9);
    }

    100% {
      transform:scale(1);
      opacity:1;
      box-shadow:
        0 0 18px rgba(26,108,246,.45);
    }
  }



  /* CTA */
  #cta { background: var(--bg); text-align: center; padding: 140px 48px; position: relative; overflow: hidden; }
  #cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(110,59,255,0.12) 0%, transparent 60%); }
  .cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
  .cta-title { font-family: var(--font-display); font-size: clamp(45px,5vw,45px); font-weight: 800; letter-spacing: -2px; line-height: 1.35; margin-bottom: 20px; text-transform: uppercase; }
  .cta-sub { font-size: 18px; color: var(--muted); margin-bottom: 20px; font-weight: 300; }
  .cta-sub-hint { font-size: 18px; color: var(--muted); margin-bottom: 40px; font-weight: 300; opacity: .45; font-style: italic; animation: pulseHint 2.5s ease-in-out infinite; margin-top: 0px; }
  .store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .store-badge { width: 190px; justify-content: flex-start; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 20px; cursor: pointer; transition: all .25s; text-decoration: none; color: var(--text); }
  .store-badge:hover { border-color: rgba(26,108,246,0.4); transform: translateY(-2px); background: var(--card2); }
  .store-badge-img { height: 28px; width: auto; object-fit: contain; }
  .store-badge-text { text-align: left; }
  .store-badge-sub { font-size: 10px; color: var(--muted); display: block; }
  .store-badge-name { font-size: 14px; font-weight: 600; display: block; }

  @keyframes pulseHint {
    0%,100% { opacity:.35; }
    50% { opacity:.9; }
  }

  @media (max-width: 700px) {
    #cta { padding: 80px 48px 100px 48px; }
    .cta-title { font-size: clamp(25px,5vw,25px); }
    .cta-sub-hint { font-size: 15px; }
  }

  /* FOOTER */
  footer { border-top: 1px solid var(--border); padding: 36px 48px 15px; background: var(--bg); } /* padding: 36px 48px 28px; */
  .footer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; }
  .footer-brand { display:flex; flex-direction:column; align-items:flex-start; gap:15px; }
  .footer-icon { width:80px; height:80px; border-radius: 22px; border: solid 0.8px black; display: block; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 30px rgba(26, 108, 246, .25);}
  .footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: white; } /* background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; */
  .footer-links { display: flex; gap: 28px; position: absolute; left: 50%; transform: translateX(-50%); }
  .footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
  .footer-links a:hover { color: var(--text); }
  .footer-bottom { display: flex; justify-content: flex-end; }
  .footer-copy { font-size: 12px; color: var(--muted); }

  /* REVEAL */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  @media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    section { padding: 70px 24px; }
    #life-timeline { padding: 90px 24px 60px; }
    .hero-inner, .timeline-layout { grid-template-columns: 1fr; }
    .hero-inner > *, .timeline-layout > * { min-width: 0; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }

    .footer-top { flex-direction:row; align-items:flex-start; gap:20px; }
    .footer-icon { width:65px; height:65px; border-radius:16px; }
    .footer-brand { flex-shrink:0; padding-right:25%; border-right:1px solid var(--border); padding-top: 5%; gap:20px; }
    .footer-links { position:static; transform:none; flex-direction:column; gap:8px; align-items:flex-start; padding-left:0; }
    .footer-bottom { justify-content:flex-start; }
    .footer-copy { text-align:left; }
    
    .map-header-top {  flex-direction: column;  align-items: flex-start;  gap: 8px;  }
    .map-header-top .section-title {  white-space: normal;  }
    .map-header-sub {  white-space: normal;  }
  }
  @media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }


  /* LEGAL */
  main { max-width: 780px; margin: 0 auto; padding: 64px 24px 100px; }
  h1 { font-family: var(--font-display); font-size: clamp(28px,4vw,42px); font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .updated { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 48px; }
  h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.3px; }
  h2 .num { color: #6FA3FF; margin-right: 8px; }
  p, li { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
  ul { padding-left: 20px; margin-bottom: 10px; }
  strong { color: var(--text); font-weight: 600; }
  .placeholder { color: #6FA3FF; background: rgba(242,204,38,0.08); padding: 1px 5px; border-radius: 4px; font-weight: 600; } /* color: #F2CC26; */
  .box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; }
  .box p { color: var(--text); font-size: 13px; margin-bottom: 6px; }
  table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 13px; }
  th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
  th { color: var(--text); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
  a { color: #6FA3FF; }
  .lang-block { display: none; }
  .lang-block.active { display: block; }





  /* Cookies Policy */
  .cookie-banner{
    position:fixed;
    left:50%;
    bottom:24px;
    transform:translateX(-50%) translateY(30px);
    width:min(92%,650px);
    padding:18px 22px;
    background:rgba(20,22,27,.96);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    backdrop-filter:blur(20px);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    z-index:5000;

    opacity:0;
    visibility:hidden;
    transition:.35s;
    box-shadow:0 20px 50px rgba(0,0,0,.45);
  }

  .cookie-banner.show{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
  }

  .cookie-text{
    color:var(--muted);
    font-size:14px;
    line-height:1.55;
  }

  .cookie-btn{
    flex-shrink:0;
    border:none;
    border-radius:999px;
    background:var(--grad);
    color:#fff;
    font-weight:600;
    font-size:14px;
    padding:11px 22px;
    cursor:pointer;
    transition:.2s;
  }

  .cookie-btn:hover{
    transform:translateY(-2px);
  }

  @media(max-width:700px){

    .cookie-banner{
      flex-direction:column;
      align-items:flex-start;
    }

    .cookie-btn{
      width:100%;
    }

  }



  /* Arrow Top */
  #backToTop{
    position:fixed;
    right:32px;
    bottom:10%;

    width:54px;
    height:54px;

    border-radius:18px;

    background:#1A6CF6;
    box-shadow:
        0 12px 35px rgba(26,108,246,.35),
        0 4px 12px rgba(0,0,0,.25);

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    opacity:0;
    visibility:hidden;
    transform:translateY(20px) scale(.92);

    transition:
        opacity .35s,
        transform .35s,
        background .25s,
        box-shadow .25s;

    z-index:1000;
}

@media (max-width: 700px) { 
  #backToTop{ bottom:5%; } 
}

#backToTop.visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
}

#backToTop:hover{
    background:#2B7BFF;
    transform:translateY(-4px);
    box-shadow:
        0 18px 45px rgba(26,108,246,.45),
        0 6px 18px rgba(0,0,0,.35);
}

#backToTop svg{
    width:22px;
    height:22px;
}