/* ══════════════════════════════════════════════
       VARIABLES & RESET
    ══════════════════════════════════════════════ */
    :root {
      --bg-deep:        #06070F;
      --bg-dark:        #0A0C18;
      --bg-card:        #0D1023;
      --bg-card-hi:     #121530;

      --violet-rebecca: #663399;   /* Rebecca Purple */
      --violet-dark:    #3D1F72;
      --violet-mid:     #7B44B8;

      --rain-base:      #9B59E8;   /* purple rain mid */
      --rain-bright:    #BF7FFF;   /* lumineux */
      --rain-glow:      rgba(159, 89, 232, 0.35);
      --rain-soft:      rgba(159, 89, 232, 0.10);

      --green-ok:       #3FFFA0;
      --amber:          #FFCC55;

      --text-hi:        #F2EDFF;
      --text-body:      #B4A8D0;
      --text-low:       #5C5175;

      --grid-thin:      rgba(102, 51, 153, 0.09);
      --grid-thick:     rgba(102, 51, 153, 0.17);
      --border:         rgba(159, 89, 232, 0.22);
      --border-hi:      rgba(159, 89, 232, 0.45);

      --violet:         #663399;
      --ff-head:        'Comfortaa', sans-serif;
      --ff-body:        'Nunito', sans-serif;
      --page-padding:   clamp(1rem, 4vw, 2rem);
      --section-gap:    clamp(4.5rem, 8vw, 7rem);
      --nav-height:     76px;
      --card-padding:   clamp(1.2rem, 2vw, 2rem);
      --safe-top:       min(env(safe-area-inset-top, 0px), 20px);
      --safe-bottom:    min(env(safe-area-inset-bottom, 0px), 24px);

      --r-card:  16px;
      --r-pill:  50px;
      --r-btn:   50px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
      scroll-padding-top: calc(var(--nav-height) + var(--safe-top) + 1rem);
    }

    body {
      font-family: var(--ff-body);
      background: var(--bg-deep);
      color: var(--text-hi);
      overflow-x: hidden;
      line-height: 1.6;
    }
    body.nav-open { overflow: hidden; }

    /* ══════════════════════════════════════════════
       BLUEPRINT GRID, fixed background
    ══════════════════════════════════════════════ */
    #bg-grid {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        linear-gradient(var(--grid-thin) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-thin) 1px, transparent 1px),
        linear-gradient(var(--grid-thick) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-thick) 1px, transparent 1px);
      background-size: 44px 44px, 44px 44px, 220px 220px, 220px 220px;
    }

    /* ══════════════════════════════════════════════
       CANVAS (shooting stars)
    ══════════════════════════════════════════════ */
    #star-canvas {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }

    /* ══════════════════════════════════════════════
       AMBIENT ORBS
    ══════════════════════════════════════════════ */
    .orb-layer {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }
    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(90px);
      animation: orbDrift 10s ease-in-out infinite alternate;
    }
    .orb-a { width: 550px; height: 550px; background: var(--violet-dark);  top: -200px; left: -150px; opacity: .18; animation-delay: 0s;   }
    .orb-b { width: 320px; height: 320px; background: var(--violet-rebecca); top: 55%;   right: -80px; opacity: .10; animation-delay: 3s;   }
    .orb-c { width: 250px; height: 250px; background: var(--rain-base);     bottom: 0;  left: 35%;    opacity: .08; animation-delay: 6s;   }
    @keyframes orbDrift {
      from { transform: translate(0, 0) scale(1); }
      to   { transform: translate(25px, -18px) scale(1.06); }
    }

    /* ══════════════════════════════════════════════
       LAYOUT
    ══════════════════════════════════════════════ */
    .wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      position: relative;
      z-index: 10;
    }

    section { position: relative; z-index: 10; }

    .divider {
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
      position: relative;
      z-index: 10;
    }

    /* ══════════════════════════════════════════════
       TYPOGRAPHY
    ══════════════════════════════════════════════ */
    h1, h2, h3, h4 { font-family: var(--ff-head); }

    h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.18; }
    h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 700; line-height: 1.2; }
    h3 { font-size: 1.25rem; font-weight: 700; }

    .section-tag {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      font-size: .72rem;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--rain-bright);
      padding: .35rem 1rem;
      background: var(--rain-soft);
      border: 1px solid var(--border);
      border-radius: var(--r-pill);
      margin-bottom: 1rem;
    }
    .section-tag::before {
      content: '';
      width: 7px; height: 7px;
      background: #3FFFA0;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(63,255,160,.7);
      animation: blink 1.6s ease-in-out infinite;
    }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

    /* ══════════════════════════════════════════════
       BUTTONS
    ══════════════════════════════════════════════ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .8rem 2rem;
      border-radius: var(--r-btn);
      font-family: 'Nunito', sans-serif;
      font-weight: 800;
      font-size: 1rem;
      text-decoration: none;
      cursor: pointer;
      border: none;
      position: relative;
      overflow: hidden;
      transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
    }
    /* shimmer */
    .btn::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
      transform: translateX(-120%);
      transition: transform .55s;
    }
    .btn:hover::after { transform: translateX(120%); }

    .btn-primary {
      background: linear-gradient(135deg, #2EE88A 0%, #3FFFA0 100%);
      color: #06070F;
      box-shadow: 0 4px 18px rgba(63,255,160,.3);
      animation: btnPulse 3.5s ease-in-out infinite;
    }
    @keyframes btnPulse {
      0%,100% { box-shadow: 0 4px 18px rgba(63,255,160,.3), 0 0 0 0 rgba(63,255,160,.35); }
      55%      { box-shadow: 0 6px 28px rgba(63,255,160,.4), 0 0 0 9px rgba(63,255,160,0); }
    }
    .btn-primary:hover { transform: translateY(-3px) scale(1.03); animation: none; box-shadow: 0 10px 36px rgba(63,255,160,.5); }

    .btn-ghost {
      background: transparent;
      color: #3FFFA0;
      border: 2px solid rgba(63,255,160,.35);
    }
    .btn-ghost:hover { transform: translateY(-2px); background: rgba(63,255,160,.07); box-shadow: 0 0 24px rgba(63,255,160,.2); border-color: rgba(63,255,160,.6); }

    .btn-welcome {
      background: linear-gradient(135deg, #2EE88A, #3FFFA0);
      color: #06070F;
      font-size: 1.1rem;
      padding: .95rem 2.4rem;
      box-shadow: 0 4px 22px rgba(63,255,160,.3);
      animation: welcomePulse 3s ease-in-out infinite;
    }
    @keyframes welcomePulse {
      0%,100% { box-shadow: 0 4px 22px rgba(63,255,160,.3), 0 0 0 0 rgba(63,255,160,.28); }
      55%      { box-shadow: 0 6px 32px rgba(63,255,160,.4), 0 0 0 10px rgba(63,255,160,0); }
    }
    .btn-welcome:hover { transform: translateY(-3px) scale(1.03); animation: none; box-shadow: 0 12px 40px rgba(63,255,160,.5); }

    .etapes-cta {
      font-size: 1.05rem;
      padding: .9rem 2.2rem;
    }

    /* ══════════════════════════════════════════════
       NAV
    ══════════════════════════════════════════════ */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 200;
      padding: .9rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(6,7,15,.72);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border);
    }
    .nav-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
      flex-shrink: 0;
    }
    .nav-logo img {
      height: 50px;
      width: auto;
      display: block;
    }
    .nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
    .nav-links a {
      color: var(--text-body);
      text-decoration: none;
      font-weight: 700;
      font-size: .85rem;
      letter-spacing: .06em;
      text-transform: uppercase;
      transition: color .2s;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 0; right: 0;
      height: 2px;
      background: var(--rain-bright);
      transform: scaleX(0);
      transition: transform .25s cubic-bezier(.34,1.56,.64,1);
      border-radius: 2px;
    }
    .nav-links a:hover { color: var(--text-hi); }
    .nav-links a:hover::after { transform: scaleX(1); }
    .nav-cta { font-size: .85rem !important; padding: .55rem 1.3rem !important; }
    .nav-cta::after { display: none !important; }

    /* ══════════════════════════════════════════════
       HERO
    ══════════════════════════════════════════════ */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 9rem 0 5rem;
    }
    .hero-inner {
      display: grid;
      grid-template-columns: 1fr 310px;
      gap: 4rem;
      align-items: center;
    }

    /* badge */
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .4rem 1.1rem;
      background: rgba(46,232,155,.08);
      border: 1px solid rgba(46,232,155,.3);
      border-radius: var(--r-pill);
      font-size: .78rem;
      font-weight: 800;
      color: #3FFFA0;
      margin-bottom: 2rem;
    }
    .hero-badge::before {
      content: '';
      width: 7px; height: 7px;
      background: #3FFFA0;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(63,255,160,.7);
      animation: blink 1.6s ease-in-out infinite;
    }

    /* graph highlight words, fond surligné violet, texte blanc */
    .g-mark {
      position: relative;
      color: var(--text-hi);
      display: inline;
      white-space: nowrap;
      background: linear-gradient(transparent 38%, rgba(102, 51, 153, 0.55) 38%);
      border-radius: 2px;
      padding: 0 3px 2px;
    }
    .g-mark svg {
      display: none;
      position: absolute;
      left: 0;
      bottom: -7px;
      width: 100%;
      overflow: visible;
      pointer-events: none;
    }

    .hero p {
      color: var(--text-body);
      font-size: 1.1rem;
      max-width: 560px;
      margin: 2rem 0 2.5rem;
    }
    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

    /* hero stats */
    .hero-stats {
      display: flex;
      gap: 2.5rem;
      margin-top: 3.5rem;
      padding-top: 2rem;
      border-top: 1px solid rgba(102,51,153,.25);
    }
    .stat-val {
      font-family: 'Comfortaa', sans-serif;
      font-size: 1.9rem;
      font-weight: 700;
      color: var(--rain-bright);
      display: block;
      line-height: 1;
    }
    .stat-lbl {
      font-size: .75rem;
      color: var(--text-low);
      margin-top: .35rem;
      font-weight: 600;
      letter-spacing: .04em;
    }

    /* HUD panel (right side of hero) */
    .hero-hud {
      background: rgba(13,16,35,.82);
      border: 1px solid var(--border);
      border-radius: var(--r-card);
      padding: 1.6rem;
      backdrop-filter: blur(18px);
      position: relative;
    }
    /* corner brackets */
    .corner { position: absolute; width: 14px; height: 14px; }
    .corner::before, .corner::after { content: ''; position: absolute; background: var(--rain-bright); }
    .corner::before { width: 100%; height: 2px; top: 0; }
    .corner::after  { height: 100%; width: 2px; top: 0; }
    .c-tl { top: -2px; left: -2px; }
    .c-tr { top: -2px; right: -2px; transform: scaleX(-1); }
    .c-bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
    .c-br { bottom: -2px; right: -2px; transform: scale(-1); }

    .hud-title {
      font-size: .65rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--text-low);
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.2rem;
    }
    .hud-dot { width: 7px; height: 7px; background: #3FFFA0; border-radius: 50%; box-shadow: 0 0 8px rgba(63,255,160,.7); animation: blink 1.6s ease-in-out infinite; }

    .hud-metric { margin-bottom: 1rem; }
    .hud-metric-row {
      display: flex;
      justify-content: space-between;
      font-size: .73rem;
      color: var(--text-body);
      margin-bottom: .3rem;
    }
    .hud-metric-row span:last-child { color: var(--rain-bright); font-weight: 800; }
    .prog { height: 4px; background: rgba(102,51,153,.2); border-radius: 2px; overflow: hidden; }
    .prog-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--violet-rebecca), var(--rain-bright));
      border-radius: 2px;
      width: 0;
      transition: width 1.6s cubic-bezier(.22,1,.36,1);
    }

    .hud-sep { border: none; border-top: 1px solid rgba(102,51,153,.2); margin: 1.2rem 0; }

    .hud-spark-lbl { font-size: .62rem; letter-spacing: .1em; color: var(--text-low); text-transform: uppercase; margin-bottom: .4rem; }

    /* Tamagotchi widget */
    .tama-screen {
      background: #04100A;
      border: 2px solid rgba(63,255,160,.22);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: .9rem;
      position: relative;
      overflow: hidden;
      box-shadow: 0 0 18px rgba(63,255,160,.07), inset 0 0 12px rgba(0,0,0,.5);
    }
    #tama-canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; width: 200px; height: 128px; }
    .tama-feed { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .6rem; }
    .tama-feed-row { display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; }
    .tama-chip {
      font-size: .58rem;
      padding: 3px 8px;
      border-radius: 20px;
      border: 1px solid;
      cursor: pointer;
      font-family: var(--ff-body);
      background: transparent;
      transition: transform .15s, background .15s;
      white-space: nowrap;
    }
    .tama-chip:hover { transform: scale(1.08); }
    .tama-chip.good { border-color: #3FFFA0; color: #3FFFA0; }
    .tama-chip.good:hover { background: rgba(63,255,160,.12); }
    .tama-chip.bad  { border-color: #FF6B6B; color: #FF6B6B; }
    .tama-chip.bad:hover  { background: rgba(255,107,107,.12); }
    #tama-mood-txt { font-size: .68rem; color: var(--text-body); text-align: center; min-height: 1em; margin-bottom: .6rem; }

    /* ══════════════════════════════════════════════
       HASARD SECTION
    ══════════════════════════════════════════════ */
    .s-hasard {
      padding: 7rem 0;
      position: relative;
    }
    /* Dark veil over the canvas behind this section */
    .s-hasard::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(5,6,14,.50);
      pointer-events: none;
      z-index: 0;
    }
    .s-hasard .wrap { position: relative; z-index: 1; }
    .hasard-inner {
      max-width: 780px;
      margin: 0 auto;
      text-align: center;
      background: rgba(8,9,20,.9);
      border: 1px solid rgba(102,51,153,.28);
      border-radius: 20px;
      padding: 3rem 3.5rem 2.5rem;
      box-shadow: 0 0 60px rgba(0,0,0,.6);
    }
    .hasard-inner h2 { margin-bottom: .4rem; }
    .hasard-subtitle { color: var(--text-body); font-style: italic; font-size: .95rem; margin-bottom: 2.5rem; }
    /* keep tabs + panel left-aligned inside the centered block */
    .pain-tabs, .pain-panel, .hasard-cta { text-align: left; }

    /* ── Pain-point tabs ── */
    .pain-tabs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: .6rem;
      margin-bottom: 1.2rem;
    }
    .pain-tab {
      display: flex;
      align-items: center;
      gap: .6rem;
      padding: .75rem 1rem;
      background: rgba(13,16,35,.7);
      border: 1px solid rgba(102,51,153,.2);
      border-radius: 12px;
      cursor: pointer;
      transition: all .25s;
      text-align: left;
    }
    .pain-tab:hover { border-color: var(--border-hi); background: rgba(102,51,153,.08); }
    .pain-tab.active {
      border-color: var(--rain-bright);
      background: rgba(102,51,153,.16);
      box-shadow: 0 0 18px rgba(159,89,232,.2);
    }
    .pain-tab-emoji { font-size: 1.2rem; flex-shrink: 0; }
    .pain-tab-emoji svg { width: 26px; height: 26px; display: block; }
    .pain-tab-label {
      font-size: .82rem;
      font-weight: 700;
      color: var(--text-body);
      line-height: 1.3;
    }
    .pain-tab.active .pain-tab-label { color: var(--text-hi); }

    .pain-panel {
      background: rgba(13,16,35,.6);
      border: 1px solid rgba(102,51,153,.25);
      border-radius: 14px;
      overflow: hidden;
      position: relative;
    }
    .pain-panel::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, var(--violet), var(--rain-bright));
    }
    .pain-slide { display: none; padding: 1.4rem 1.5rem; }
    .pain-slide.active { display: block; animation: slideIn .3s ease; }
    @keyframes slideIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .pain-situation {
      font-size: .88rem;
      color: var(--text-body);
      line-height: 1.7;
      margin-bottom: 1.1rem;
      font-style: italic;
    }
    .pain-situation strong { color: var(--text-hi); font-style: normal; }
    .pain-action-label {
      font-size: .65rem;
      font-weight: 800;
      letter-spacing: .13em;
      text-transform: uppercase;
      color: var(--rain-bright);
      margin-bottom: .45rem;
    }
    .pain-action {
      font-size: .88rem;
      color: var(--text-body);
      line-height: 1.6;
    }

    .hasard-panel {
      background: rgba(13,16,35,.85);
      border: 1px solid var(--border);
      border-radius: var(--r-card);
      padding: 2rem;
      backdrop-filter: blur(16px);
      position: relative;
    }
    .hasard-panel-title {
      font-size: .65rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--text-low);
      margin-bottom: 1.5rem;
    }
    .mini-offer {
      background: rgba(159,89,232,.07);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1rem 1.2rem;
      margin-bottom: .8rem;
      transition: all .25s;
    }
    .mini-offer:hover { border-color: var(--border-hi); background: rgba(159,89,232,.12); }
    .mini-offer-title { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rain-bright); margin-bottom: .3rem; }
    .mini-offer-desc  { font-size: .84rem; color: var(--text-body); }

    .hasard-cta { text-align: center; margin-top: 2.5rem; }
    .hasard-cta p { font-size: .78rem; color: var(--text-low); margin-top: .7rem; }

    /* ══════════════════════════════════════════════
       SERVICES
    ══════════════════════════════════════════════ */
    .s-services { padding: 7rem 0; }
    .section-head { text-align: center; margin-bottom: 4rem; }
    .section-head h2 { margin-bottom: .8rem; }
    .section-head p { color: var(--text-body); font-size: 1rem; max-width: 540px; margin: 0 auto; }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 420px));
      gap: 1.4rem;
      justify-content: center;
    }
    .svc-card {
      background: rgba(13,16,35,.75);
      border: 1px solid rgba(102,51,153,.22);
      border-radius: 20px;
      padding: 2rem;
      position: relative;
      overflow: hidden;
      transition: all .4s cubic-bezier(.34,1.56,.64,1);
      cursor: default;
    }
    .svc-card::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--violet-rebecca), var(--rain-bright));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .4s;
    }
    .svc-card:hover { transform: translateY(-9px); border-color: var(--border-hi); box-shadow: 0 24px 56px rgba(0,0,0,.35), 0 0 32px rgba(159,89,232,.1); }
    .svc-card:hover::before { transform: scaleX(1); }

    /* inner glow */
    .svc-glow {
      position: absolute;
      width: 220px; height: 220px;
      border-radius: 50%;
      background: var(--rain-bright);
      filter: blur(70px);
      opacity: 0;
      transition: opacity .4s;
      top: -60px; right: -60px;
      pointer-events: none;
    }
    .svc-card:hover .svc-glow { opacity: .055; }

    /* Decorative ring */
    .svc-ring {
      position: absolute;
      bottom: -25px; right: -25px;
      width: 130px; height: 130px;
      border-radius: 50%;
      border: 1.5px solid rgba(159,89,232,.07);
      transition: all .4s;
    }
    .svc-card:hover .svc-ring { transform: scale(1.25); border-color: rgba(159,89,232,.18); }

    .svc-icon {
      width: 54px; height: 54px;
      background: var(--rain-soft);
      border: 1px solid var(--border);
      border-radius: 15px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.55rem;
      margin-bottom: 1.5rem;
      transition: all .35s;
      position: relative; z-index: 1;
    }
    .svc-card:hover .svc-icon { background: rgba(159,89,232,.22); transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 22px var(--rain-glow); }

    .svc-card h3 { margin-bottom: .7rem; position: relative; z-index: 1; }
    .svc-card p  { color: var(--text-body); font-size: .9rem; line-height: 1.7; margin-bottom: 1.5rem; position: relative; z-index: 1; }

    .svc-tags { display: flex; flex-wrap: wrap; gap: .4rem; position: relative; z-index: 1; margin-bottom: .5rem; }
    .chip {
      padding: .28rem .8rem;
      background: rgba(102,51,153,.12);
      border: 1px solid rgba(102,51,153,.28);
      border-radius: var(--r-pill);
      font-size: .73rem;
      color: var(--text-body);
      font-weight: 700;
      cursor: pointer;
      transition: border-color .2s, background .2s, color .2s;
      user-select: none;
    }
    .chip:hover { border-color: var(--border-hi); color: var(--text-hi); background: rgba(102,51,153,.2); }
    .chip.active { border-color: var(--rain-bright); background: rgba(159,89,232,.22); color: var(--text-hi); }
    .chip-info {
      display: none;
      margin-top: .8rem;
      padding: .75rem 1rem;
      background: rgba(102,51,153,.1);
      border: 1px solid rgba(159,89,232,.28);
      border-left: 3px solid var(--rain-bright);
      border-radius: 8px;
      font-size: .82rem;
      color: var(--text-body);
      line-height: 1.65;
      position: relative; z-index: 1;
      animation: slideIn .22s ease;
    }
    .chip-info.active { display: block; }

    .badge-pop {
      position: absolute; top: 1rem; right: 1rem;
      font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
      color: var(--rain-bright);
      background: var(--rain-soft);
      padding: .28rem .75rem;
      border-radius: var(--r-pill);
      border: 1px solid var(--border);
    }

    /* ══════════════════════════════════════════════
       USE CASES
    ══════════════════════════════════════════════ */
    .s-usecases { padding: 7rem 0; }
    .uc-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 3rem; }

    .uc-card {
      background: rgba(13,16,35,.65);
      border: 1px solid rgba(102,51,153,.2);
      border-radius: var(--r-card);
      overflow: hidden;
      transition: border-color .3s;
    }
    .uc-card:hover { border-color: var(--border-hi); }

    .uc-head {
      display: grid;
      grid-template-columns: 46px 1fr 36px;
      align-items: center;
      gap: 1.2rem;
      padding: 1.4rem 1.8rem;
      cursor: pointer;
      user-select: none;
    }
    .uc-num {
      font-family: 'Comfortaa', sans-serif;
      font-size: .68rem;
      font-weight: 700;
      letter-spacing: .1em;
      color: var(--text-low);
    }
    .uc-problem { font-weight: 700; font-size: .97rem; }
    .uc-toggle {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: var(--rain-soft);
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      color: var(--rain-bright);
      font-size: 1.2rem;
      font-weight: 700;
      line-height: 1;
      transition: all .3s;
      flex-shrink: 0;
    }
    .uc-card.open .uc-toggle { background: rgba(159,89,232,.25); border-color: var(--border-hi); transform: rotate(45deg); }

    .uc-body {
      max-height: 0;
      overflow: hidden;
      transition: max-height .55s ease;
    }
    .uc-body.open { max-height: 350px; }

    .uc-inner {
      padding: 0 1.8rem 2rem 3.8rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    .uc-before, .uc-after {
      padding: 1.1rem 1.3rem;
      border-radius: 10px;
    }
    .uc-before { background: rgba(255,80,80,.05); border: 1px solid rgba(255,100,100,.15); }
    .uc-after  { background: rgba(63,255,160,.05); border: 1px solid rgba(63,255,160,.18); }
    .case-lbl {
      font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
      margin-bottom: .5rem;
    }
    .uc-before .case-lbl { color: #FF7070; }
    .uc-after  .case-lbl { color: #3FFFA0; }
    .case-txt { font-size: .88rem; color: var(--text-body); line-height: 1.65; }

    /* ── Snake easter egg UI ── */
    #snake-hint {
      position: fixed;
      bottom: 1.4rem;
      left: 1.4rem;
      z-index: 200;
      display: flex;
      align-items: center;
      gap: .5rem;
      padding: .4rem .9rem;
      background: rgba(13,16,35,.75);
      border: 1px solid rgba(102,51,153,.3);
      border-radius: 50px;
      font-size: .7rem;
      font-weight: 700;
      color: var(--text-low);
      letter-spacing: .06em;
      cursor: default;
      backdrop-filter: blur(10px);
      transition: border-color .25s, color .25s;
    }
    #snake-hint:hover { border-color: var(--border-hi); color: var(--text-body); }
    #snake-hint .hint-key {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px; height: 18px;
      background: rgba(102,51,153,.25);
      border: 1px solid rgba(159,89,232,.4);
      border-radius: 4px;
      font-size: .65rem;
      font-weight: 800;
      color: var(--rain-bright);
    }

    #snake-hud {
      position: fixed;
      bottom: 1.4rem;
      left: 1.4rem;
      z-index: 200;
      min-width: 240px;
      background: rgba(13,16,35,.94);
      border: 1px solid rgba(159,89,232,.55);
      border-radius: 14px;
      padding: 1.1rem 1.4rem;
      backdrop-filter: blur(16px);
      box-shadow: 0 0 28px rgba(159,89,232,.2);
      opacity: 0;
      transform: translateY(8px);
      transition: opacity .3s, transform .3s;
      pointer-events: none;
      display: none;
    }
    #snake-hud.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .hud-title {
      font-size: .65rem;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--rain-bright);
      margin-bottom: .9rem;
      display: flex;
      align-items: center;
      gap: .5rem;
    }
    .hud-title::before {
      content: '';
      width: 7px; height: 7px;
      background: #3FFFA0;
      border-radius: 50%;
      box-shadow: 0 0 6px rgba(63,255,160,.7);
      animation: blink 1s ease-in-out infinite;
    }
    .hud-score {
      font-family: var(--ff-head);
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--text-hi);
      line-height: 1;
      margin-bottom: .15rem;
    }
    .hud-score-lbl { font-size: .7rem; color: var(--text-low); margin-bottom: .9rem; }
    .hud-controls { display: flex; flex-direction: column; gap: .35rem; }
    .hud-row {
      display: flex;
      align-items: center;
      gap: .6rem;
      font-size: .75rem;
      color: var(--text-body);
    }
    .kbd {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      height: 20px;
      padding: 0 5px;
      background: rgba(102,51,153,.2);
      border: 1px solid rgba(159,89,232,.4);
      border-radius: 5px;
      font-size: .65rem;
      font-weight: 800;
      color: var(--rain-bright);
      font-family: monospace;
      flex-shrink: 0;
    }
    .hud-sep { height: 1px; background: rgba(102,51,153,.2); margin: .6rem 0; }

    /* ── Live dot (green blinking) ── */
    .live-dot-row { margin-bottom: .6rem; }
    .live-dot {
      display: inline-block;
      width: 10px; height: 10px;
      background: #4DFFA0;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(77,255,160,.7);
      animation: livePulse 1.6s ease-in-out infinite;
    }
    @keyframes livePulse {
      0%,100% { opacity: 1; box-shadow: 0 0 8px rgba(77,255,160,.7); }
      50%      { opacity: .3; box-shadow: 0 0 3px rgba(77,255,160,.2); }
    }

    /* ══════════════════════════════════════════════
       ÉTAPES
    ══════════════════════════════════════════════ */
    .s-etapes { padding: 7rem 0; }
    .etapes-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 3.5rem;
      position: relative;
    }
    /* connector line between steps */
    .etapes-grid::before {
      content: '';
      position: absolute;
      top: 36px;
      left: calc(16.66% + 1rem);
      right: calc(16.66% + 1rem);
      height: 2px;
      background: linear-gradient(90deg, var(--violet), var(--rain-bright), var(--violet));
      opacity: .3;
      pointer-events: none;
    }
    .etape-card {
      background: rgba(13,16,35,.7);
      border: 1px solid rgba(102,51,153,.2);
      border-radius: 18px;
      padding: 2rem 1.8rem;
      position: relative;
      transition: all .35s cubic-bezier(.34,1.56,.64,1);
      display: flex;
      flex-direction: column;
    }
    .etape-card:hover {
      border-color: var(--border-hi);
      transform: translateY(-6px);
      box-shadow: 0 16px 40px rgba(0,0,0,.25), 0 0 24px rgba(159,89,232,.1);
    }
    .etape-num {
      display: inline-flex;
      align-items: center; justify-content: center;
      width: 44px; height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--violet), var(--rain-bright));
      font-family: var(--ff-head);
      font-weight: 700;
      font-size: 1rem;
      color: #fff;
      margin-bottom: 1.3rem;
      box-shadow: 0 0 20px rgba(159,89,232,.35);
    }
    .etape-card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
    .etape-card p  { color: var(--text-body); font-size: .9rem; line-height: 1.7; }
    .etape-tag {
      display: inline-block;
      margin-top: auto;
      padding-top: 1rem;
      font-size: .7rem;
      font-weight: 800;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--rain-bright);
    }

    /* ══════════════════════════════════════════════
       CLIENTS MARQUEE
    ══════════════════════════════════════════════ */
    .s-clients { padding: 5rem 0 6rem; overflow: hidden; }

    .marquee-wrap {
      position: relative;
      margin-top: 2.5rem;
    }
    .marquee-wrap::before,
    .marquee-wrap::after {
      content: '';
      position: absolute; top: 0; bottom: 0; width: 180px; z-index: 2;
    }
    .marquee-wrap::before { left: 0;  background: linear-gradient(90deg,  var(--bg-deep), transparent); }
    .marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg-deep), transparent); }

    .marquee-track {
      display: flex;
      gap: 1.4rem;
      width: max-content;
      animation: marquee 28s linear infinite;
    }
    .marquee-track:hover { animation-play-state: paused; }
    @keyframes marquee {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }
    .client-pill {
      display: flex;
      align-items: center;
      gap: .7rem;
      padding: .75rem 1.4rem;
      background: rgba(13,16,35,.85);
      border: 1px solid rgba(102,51,153,.2);
      border-radius: var(--r-pill);
      white-space: nowrap;
      font-weight: 700;
      font-size: .88rem;
      color: var(--text-body);
      transition: all .3s;
    }
    .client-pill:hover { border-color: var(--border-hi); color: var(--text-hi); }
    .pill-dot { width: 7px; height: 7px; background: var(--rain-bright); border-radius: 50%; opacity: .6; }

    /* ══════════════════════════════════════════════
       HISTOIRE
    ══════════════════════════════════════════════ */
    /* ── AVIS ── */
    .s-avis { padding: 6rem 0; overflow: hidden; }
    .avis-carousel-wrap { position: relative; margin-top: 3rem; }
    .avis-track {
      display: flex;
      gap: 1.5rem;
      transition: transform .45s cubic-bezier(.4,0,.2,1);
    }
    .avis-card {
      flex: 0 0 calc(33.333% - 1rem);
      background: rgba(13,16,35,.8);
      border: 1px solid rgba(102,51,153,.2);
      border-radius: 18px;
      padding: 2rem 1.8rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .avis-stars { color: #FFD700; font-size: 1rem; letter-spacing: 2px; }
    .avis-text {
      color: var(--text-body);
      font-size: .92rem;
      line-height: 1.7;
      flex: 1;
      font-style: italic;
    }
    .avis-author {
      font-size: .75rem;
      color: var(--rain-bright);
      font-weight: 600;
      letter-spacing: .04em;
    }
    .avis-nav {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 2rem;
    }
    .avis-btn {
      background: rgba(102,51,153,.25);
      border: 1px solid rgba(102,51,153,.35);
      color: #fff;
      width: 40px; height: 40px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1rem;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s;
    }
    .avis-btn:hover { background: rgba(102,51,153,.5); }
    .avis-dots { display: flex; gap: .5rem; align-items: center; }
    .avis-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: rgba(255,255,255,.2);
      cursor: pointer;
      transition: background .2s, transform .2s;
    }
    .avis-dot.active { background: var(--rain-bright); transform: scale(1.4); }
    @media(max-width:768px){
      .avis-card { flex: 0 0 85%; }
    }

    .s-histoire { padding: 7rem 0; }
    .histoire-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
      margin-top: 3rem;
    }
    .histoire-text p {
      color: var(--text-body);
      line-height: 1.85;
      margin-bottom: 1.2rem;
      font-size: .97rem;
    }
    .histoire-text strong { color: var(--text-hi); }

    .founders-row {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
      flex-wrap: wrap;
      justify-content: center;
    }
    .founder-card {
      flex: 0 0 auto;
      min-width: 200px;
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.4rem;
      background: rgba(13,16,35,.7);
      border: 1px solid var(--border);
      border-radius: 12px;
      transition: border-color .2s, transform .2s;
      cursor: pointer;
    }
    .founder-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
    .founder-avatar {
      width: 48px; height: 48px;
      background: linear-gradient(135deg, var(--violet-rebecca), var(--rain-bright));
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
      flex-shrink: 0;
    }
    .founder-name { display: block; font-weight: 800; color: var(--text-hi); font-size: .9rem; }
    .founder-role { font-size: .78rem; color: var(--text-low); }

    /* Timeline */
    .timeline { position: relative; padding-left: 0; }
    .timeline::before {
      content: '';
      position: absolute;
      left: 19px; top: 10px; bottom: 0;
      width: 2px;
      background: linear-gradient(180deg, var(--violet-rebecca), var(--rain-bright), transparent);
    }
    .t-item {
      display: flex;
      gap: 1.8rem;
      padding: 1.4rem 0;
      position: relative;
    }
    .t-dot {
      width: 38px; height: 38px;
      min-width: 38px;
      background: var(--rain-soft);
      border: 2px solid var(--border);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: .95rem;
      z-index: 1;
      transition: all .3s;
    }
    .t-item:hover .t-dot { background: rgba(159,89,232,.25); box-shadow: 0 0 16px var(--rain-glow); }
    .t-year { display: block; font-size: .67rem; font-weight: 800; letter-spacing: .1em; color: var(--rain-bright); font-family: 'Comfortaa', sans-serif; margin-bottom: .15rem; }
    .t-label { font-weight: 700; color: var(--text-hi); font-size: .95rem; margin-bottom: .25rem; }
    .t-desc { font-size: .84rem; color: var(--text-body); line-height: 1.6; }

    /* ══════════════════════════════════════════════
       FINAL CTA
    ══════════════════════════════════════════════ */
    .s-cta { padding: 7rem 0; text-align: center; }
    .s-cta h2 { margin-bottom: 1rem; }
    .s-cta p { color: var(--text-body); font-size: 1.05rem; max-width: 480px; margin: 0 auto 2.5rem; }
    .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .cta-sub { margin-top: 1.4rem; font-size: .8rem; color: var(--text-low); }

    /* ══════════════════════════════════════════════
       FOOTER
    ══════════════════════════════════════════════ */
    footer {
      padding: 2.5rem 0;
      border-top: 1px solid rgba(102,51,153,.22);
      position: relative; z-index: 10;
    }
    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.5rem;
    }
    .footer-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
      flex-shrink: 0;
    }
    .footer-logo img {
      height: 44px;
      width: auto;
      display: block;
    }
    .footer-links { display: flex; gap: 1.8rem; list-style: none; }
    .footer-links a { color: var(--text-low); text-decoration: none; font-size: .83rem; transition: color .2s; }
    .footer-links a:hover { color: var(--text-hi); }
    .footer-copy { font-size: .78rem; color: var(--text-low); }

    /* ══════════════════════════════════════════════
       FADE IN (scroll reveal)
    ══════════════════════════════════════════════ */
    .fade-up {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .7s ease, transform .7s ease;
    }
    .fade-up.in { opacity: 1; transform: translateY(0); }
    .fade-up:nth-child(2) { transition-delay: .12s; }
    .fade-up:nth-child(3) { transition-delay: .22s; }

    /* ══════════════════════════════════════════════
       RESPONSIVE SYSTEM
    ══════════════════════════════════════════════ */
    [id] {
      scroll-margin-top: calc(var(--nav-height) + var(--safe-top) + 1rem);
    }

    .wrap {
      padding-inline: var(--page-padding);
    }

    nav.site-nav {
      min-height: calc(var(--nav-height) + var(--safe-top));
      padding:
        calc(.75rem + var(--safe-top))
        var(--page-padding)
        .75rem;
      gap: 1rem;
    }

    .nav-logo {
      position: relative;
      z-index: 3;
    }

    .nav-panel {
      display: flex;
      align-items: center;
      margin-left: auto;
    }

    .nav-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 4px;
      width: 44px;
      height: 44px;
      padding: 0;
      margin-left: auto;
      background: rgba(13,16,35,.82);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--text-hi);
      cursor: pointer;
      transition: border-color .2s, background .2s, transform .2s;
      z-index: 3;
    }

    .nav-toggle span {
      width: 18px;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
      transition: transform .22s ease, opacity .22s ease;
    }

    .btn {
      min-height: 44px;
      justify-content: center;
      text-align: center;
    }

    .hero {
      min-height: 100vh;
      min-height: 100svh;
      align-items: center;
      padding:
        calc(var(--nav-height) + var(--safe-top) + 2.75rem)
        0
        clamp(4rem, 8vw, 5rem);
    }

    @supports (min-height: 100dvh) {
      .hero {
        min-height: 100dvh;
      }
    }

    .hero-actions {
      align-items: stretch;
    }

    .uc-body {
      height: 0;
      max-height: none;
      overflow: hidden;
      transition: height .55s ease;
    }

    .uc-body.open {
      height: auto;
    }

    .avis-carousel-wrap {
      overflow: hidden;
    }

    @media (hover: none) {
      .btn::after {
        display: none;
      }

      .btn-primary,
      .btn-welcome {
        animation: none;
      }

      .btn-primary:hover,
      .btn-ghost:hover,
      .btn-welcome:hover,
      .svc-card:hover,
      .svc-card:hover .svc-icon,
      .founder-card:hover,
      .pain-tab:hover,
      .mini-offer:hover,
      #snake-hint:hover,
      .client-pill:hover {
        transform: none;
        box-shadow: none;
      }

      .svc-card:hover::before {
        transform: scaleX(0);
      }

      .svc-card:hover .svc-glow {
        opacity: 0;
      }

      .svc-card:hover .svc-ring {
        transform: none;
        border-color: rgba(159,89,232,.07);
      }

      .nav-links a:hover,
      .footer-links a:hover {
        color: inherit;
      }

      .t-item:hover .t-dot {
        background: var(--rain-soft);
        box-shadow: none;
      }
    }

    @media (max-width: 1024px) {
      .nav-toggle {
        display: inline-flex;
      }

      .nav-panel {
        position: fixed;
        top: calc(var(--nav-height) + var(--safe-top));
        left: 0;
        right: 0;
        display: block;
        padding: 0 var(--page-padding) calc(1rem + var(--safe-bottom));
        opacity: 0;
        pointer-events: none;
        transform: translateY(-1rem);
        transition: opacity .24s ease, transform .24s ease;
      }

      .site-nav.menu-open .nav-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }

      .site-nav.menu-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
      }

      .site-nav.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
      }

      .site-nav.menu-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
      }

      .site-nav.menu-open {
        background: rgba(6,7,15,.92);
      }

      .nav-panel .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
        padding: 1rem;
        background: rgba(8,9,20,.96);
        border: 1px solid var(--border);
        border-radius: 20px;
        backdrop-filter: blur(20px);
        box-shadow: 0 24px 60px rgba(0,0,0,.35);
      }

      .nav-panel .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: .85rem 1rem;
        border-radius: 999px;
        background: rgba(102,51,153,.08);
        border: 1px solid rgba(102,51,153,.18);
      }

      .nav-panel .nav-cta {
        background: linear-gradient(135deg, #2EE88A 0%, #3FFFA0 100%);
        border: none;
        color: #06070F;
        box-shadow: 0 4px 18px rgba(63,255,160,.25);
      }

      .nav-panel .nav-links a::after {
        display: none;
      }

      .nav-cta {
        padding: .85rem 1rem !important;
      }

      .hero-inner,
      .services-grid,
      .histoire-grid,
      .uc-inner,
      .etapes-grid {
        grid-template-columns: 1fr;
      }

      .hero-inner {
        gap: 2.75rem;
      }

      .hero-hud {
        display: none;
      }

      .etapes-grid::before {
        display: none;
      }

      .histoire-grid {
        gap: 3rem;
      }
    }

    @media (max-width: 768px) {
      .orb {
        filter: blur(72px);
        animation-duration: 14s;
      }

      .orb-a {
        width: 360px;
        height: 360px;
        top: -140px;
        left: -110px;
        opacity: .13;
      }

      .orb-b {
        width: 220px;
        height: 220px;
        right: -90px;
        opacity: .08;
      }

      .orb-c {
        width: 180px;
        height: 180px;
        left: 50%;
        transform: translateX(-50%);
      }

      .hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: calc(var(--nav-height) + var(--safe-top) + 2rem);
        padding-bottom: 4rem;
      }

      .hero p,
      .s-cta p {
        font-size: 1rem;
      }

      .hero-actions,
      .cta-actions {
        flex-direction: column;
        gap: .85rem;
      }

      .hero-actions {
        align-items: flex-start;
      }

      .hero-actions .btn {
        width: auto;
        min-width: min(100%, 240px);
        padding: .72rem 1.35rem;
        font-size: .95rem;
      }

      .cta-actions .btn {
        width: 100%;
        min-width: 0;
      }

      .hasard-inner {
        padding: 2rem 1.25rem;
        border-radius: 18px;
      }

      .pain-tabs {
        grid-template-columns: 1fr;
      }

      .pain-tab,
      .svc-card,
      .etape-card,
      .avis-card {
        padding: var(--card-padding);
      }

      .section-head {
        margin-bottom: 2.5rem;
      }

      .section-head p {
        max-width: 34rem;
      }

      .uc-head {
        grid-template-columns: auto 1fr auto;
        gap: .85rem;
        padding: 1.1rem 1rem;
      }

      .uc-problem {
        font-size: .92rem;
      }

      .uc-inner {
        padding: 0 1rem 1rem;
        gap: 1rem;
      }

      .avis-carousel-wrap {
        margin-inline: calc(var(--page-padding) * -1);
        padding-inline: var(--page-padding);
      }

      .avis-track {
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: .4rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        transform: none !important;
      }

      .avis-track::-webkit-scrollbar {
        display: none;
      }

      .avis-card {
        flex: 0 0 calc(100% - 2.5rem);
        scroll-snap-align: start;
      }

      .avis-nav {
        margin-top: 1.25rem;
      }

      .timeline::before {
        left: 16px;
      }

      .t-item {
        gap: 1rem;
      }

      #snake-hint,
      #snake-hud {
        display: none !important;
      }
    }

    @media (max-width: 480px) {
      h1 {
        font-size: clamp(2rem, 10vw, 2.85rem);
      }

      h2 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
      }

      .hero-badge,
      .section-tag {
        font-size: .68rem;
        letter-spacing: .1em;
      }

      .nav-logo img {
        height: 42px;
      }

      .g-mark {
        white-space: normal;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
      }

      .pain-slide,
      .pain-tab,
      .svc-card,
      .etape-card,
      .avis-card,
      .founder-card,
      .hero-hud {
        border-radius: 16px;
      }

      .hasard-cta .btn-welcome,
      .etapes-cta {
        width: auto;
        min-width: min(100%, 230px);
        padding: .72rem 1.25rem;
        font-size: .94rem;
      }

      .founders-row {
        gap: .85rem;
      }

      .founder-card {
        width: 100%;
        min-width: 0;
        padding: 1rem;
      }

      .t-item {
        align-items: flex-start;
      }

      .footer-inner {
        flex-direction: column;
        text-align: center;
      }

      .footer-logo img {
        height: 40px;
      }

      .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: .85rem 1rem;
      }
    }

    @media (min-width: 1025px) {
      .nav-panel {
        position: static;
        margin-left: auto;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        padding: 0;
      }

      .nav-links {
        display: flex;
      }
    }

    /* ══════════════════════════════════════════════
       LEGAL PAGES
    ══════════════════════════════════════════════ */
    body.legal-page {
      min-height: 100vh;
    }

    body.legal-page #star-canvas {
      display: none;
    }

    .legal-topbar {
      position: sticky;
      top: 0;
      z-index: 200;
      padding-top: var(--safe-top);
      background: rgba(6,7,15,.84);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(102,51,153,.2);
    }

    .legal-topbar-inner {
      min-height: var(--nav-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .legal-main {
      padding: 3.5rem 0 5rem;
      position: relative;
      z-index: 10;
    }

    .legal-intro {
      margin-bottom: 2rem;
    }

    .legal-intro p {
      max-width: 50rem;
      color: var(--text-body);
      font-size: 1.02rem;
      margin-top: 1rem;
    }

    .legal-updated {
      font-size: .85rem;
      color: var(--text-low);
      margin-top: .85rem;
    }

    .legal-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.25rem;
    }

    .legal-card {
      background: rgba(13,16,35,.82);
      border: 1px solid rgba(102,51,153,.22);
      border-radius: 20px;
      padding: 1.6rem;
      box-shadow: 0 18px 50px rgba(0,0,0,.24);
    }

    .legal-card h2 {
      font-size: 1.35rem;
      margin-bottom: .9rem;
    }

    .legal-card p,
    .legal-card li {
      color: var(--text-body);
      font-size: .95rem;
      line-height: 1.75;
    }

    .legal-card p + p,
    .legal-card ul + p,
    .legal-card p + ul {
      margin-top: .85rem;
    }

    .legal-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: .55rem;
    }

    .legal-list strong,
    .legal-card strong {
      color: var(--text-hi);
    }

    .legal-card a {
      color: var(--green-ok);
      text-underline-offset: 2px;
    }

    .legal-card.full {
      grid-column: 1 / -1;
    }

    .legal-note {
      margin-top: 1.25rem;
      padding: .95rem 1rem;
      border-left: 3px solid var(--rain-bright);
      background: rgba(102,51,153,.08);
      border-radius: 10px;
      color: var(--text-body);
      font-size: .9rem;
    }

    .legal-footer {
      margin-top: 2rem;
    }

    .legal-footer .footer-inner {
      justify-content: space-between;
    }

    @media (max-width: 900px) {
      .legal-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .legal-topbar-inner {
        flex-direction: column;
        justify-content: center;
        padding: .85rem 0;
      }

      .legal-main {
        padding-top: 2.5rem;
      }

      .legal-card {
        padding: 1.2rem;
        border-radius: 16px;
      }
    }
  
