/* -----------------------------------------------------------
   COULEURS & VARIABLES
----------------------------------------------------------- */
:root {
    --rm-blue-night: #0B1B2B;
    --rm-blue-struct: #163249;
    --rm-turquoise: #18A0A5;
    --rm-turquoise-soft: #5CD6D7;
    --rm-gold: #C79B2E;
    --rm-bg-main: #F6F7F9;
    --rm-text-main: #2E3A47;
    --rm-deep: #0B1B2B;
    --muted: #6B7280;
    --radius: 18px;
    --rm-bg-soft: rgba(246, 247, 249, 0.6);
    --radius-lg: 24px;
    --shadow-soft: 0 12px 36px rgba(11, 27, 43, 0.12);

    /* Alias pour compatibilité */
    --rm-primary: #113B70;
    --rm-primary-dark: #0A2A55;
    --rm-muted: var(--muted);
    --rm-blue: #2F80ED;
  }

    /* -----------------------------------------------------------
       BASE / RESET
    ----------------------------------------------------------- */
    * {
      -webkit-tap-highlight-color: transparent;
      box-sizing: border-box; /* Toujours utile */
    }

    ::selection {
      background: rgba(199, 155, 46, 0.14);
      color: inherit;
    }

    html, body {
      height: 100%;
    }

    body {
      font-family: 'Poppins', sans-serif;
      margin: 0;
      color: var(--rm-text-main);
      background: linear-gradient(180deg, var(--rm-bg-main) 0%, rgba(11,27,43,0.02) 100%);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      position: relative;
      transition: background 0.4s ease, color 0.2s ease;

      /* Couches d'ambiance premium / gamifié */
      background-image:
        radial-gradient(900px 400px at 10% 12%, rgba(24,160,165,0.08), transparent 12%),
        radial-gradient(700px 350px at 88% 82%, rgba(47,128,237,0.06), transparent 14%),
        linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
      background-repeat: no-repeat;
      background-attachment: fixed;
    }

    /* Overlays animés pour immersion subtile */
    body::before,
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    body::before {
      mix-blend-mode: screen;
      background:
        radial-gradient(circle at 22% 18%, rgba(140, 255, 230, 0.10), transparent 18%),
        radial-gradient(circle at 80% 78%, rgba(110, 192, 246, 0.09), transparent 20%);
      filter: blur(36px);
      animation: rm-bg-float 16s ease-in-out infinite;
      opacity: 0.8;
    }

    body::after {
      mix-blend-mode: multiply;
      background: linear-gradient(180deg, rgba(11,27,43,0.04), rgba(11,27,43,0.02));
      pointer-events: none;
    }

    /* ensures main app content sits above the ambient layers */
    #app, .main {
      position: relative;
      z-index: 2;
      isolation: isolate;
    }

    /* focus accessible et stylé pour un rendu SaaS soigné */
    :focus {
      outline: 3px solid rgba(199,155,46,0.14);
      outline-offset: 3px;
      border-radius: 8px;
    }

    /* animation clé pour l'overlay */
    @keyframes rm-bg-float {
      0%   { transform: translateY(0) scale(1); }
      50%  { transform: translateY(-18px) scale(1.02); }
      100% { transform: translateY(0) scale(1); }
    }

    /* -----------------------------------------------------------
       TYPOGRAPHIE (HEADINGS & LIENS)
    ----------------------------------------------------------- */
    h1, h2, h3, h4, h5 {
      margin: 0 0 0.6em 0;
      font-weight: 700;
      line-height: 1.25;
      color: var(--rm-deep);
      letter-spacing: -0.015em;
    }

    h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; }
    h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 750; }
    h3 { font-size: 1.4rem; font-weight: 700; }
    h4 { font-size: 1.15rem; font-weight: 700; }
    h5 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rm-muted); }

    a {
      color: var(--rm-primary);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    a:hover {
      color: var(--rm-primary-dark);
      text-decoration: underline;
    }

    /* -----------------------------------------------------------
       UTILITAIRES & MODES SOMBRES
    ----------------------------------------------------------- */
    .on-dark, .on-dark p { color: #F8FAFC; }
    .on-dark .muted, .on-dark .text-muted { color: rgba(248, 250, 252, 0.75); }
    .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #FFFFFF; }
    .on-dark h5 { color: rgba(248, 250, 252, 0.65); }

    /* -----------------------------------------------------------
       SECTIONS & STRUCTURE RM
    ----------------------------------------------------------- */
    .rm-section-title {
      background: linear-gradient(135deg, #1A1F71, #4F8EF7);
      color: #ffffff;
      padding: 80px 20px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .rm-section-title::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: rgba(255, 255, 255, 0.05);
      transform: rotate(45deg);
      animation: rm-shimmer 6s infinite linear;
    }

    @keyframes rm-shimmer {
      0% { transform: rotate(45deg) translateX(-100%) translateY(-100%); }
      100% { transform: rotate(45deg) translateX(100%) translateY(100%); }
    }

    .rm-container {
      max-width: 1000px;
      margin: 0 auto;
    }

    .rm-section-heading {
      font-family: 'Poppins', sans-serif;
      font-size: 3rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin: 0 0 15px 0;
      opacity: 0;
      transform: translateY(20px);
      animation: rm-fade-slide 1s forwards;
    }

    .rm-section-subtitle {
      font-family: 'Poppins', sans-serif;
      font-size: 1.25rem;
      font-weight: 400;
      max-width: 700px;
      margin: 0 auto;
      opacity: 0;
      transform: translateY(20px);
      animation: rm-fade-slide 1.2s forwards;
      animation-delay: 0.3s;
    }

    .rm-section-bar {
      background: linear-gradient(180deg, rgba(15,25,40,0.72), rgba(8,16,30,0.82));
      border-radius: 1.25rem;
      box-shadow: 0 12px 30px rgba(2,6,23,0.62), inset 0 1px 0 rgba(255,255,255,0.03);
      margin: 4rem auto;
      padding: 3rem 2rem;
      max-width: 72rem;
      text-align: center;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(212,175,55,0.10);
      backdrop-filter: blur(6px) saturate(120%);
      transition: transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .36s, filter .36s;
      transform: translateZ(0);
      animation: rm-card-enter .6s ease both;
    }

    /* subtle gold/gradient top accent for premium feel */
    .rm-section-bar::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 6px;
      background: linear-gradient(90deg, #D4AF37 0%, #FFD77A 60%, rgba(212,175,55,0.25) 100%);
      transform-origin: left center;
      opacity: 0.95;
    }

    /* hover lift for gamified interactivity */
    .rm-section-bar:hover {
      transform: translateY(-8px);
      box-shadow: 0 28px 60px rgba(2,6,23,0.72), 0 6px 18px rgba(0,0,0,0.35);
      filter: saturate(1.06) brightness(1.02);
    }

    /* entrance animation */
    @keyframes rm-card-enter {
      from { opacity: 0; transform: translateY(12px) scale(.996); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .rm-container-bar {
      max-width: 72rem;
      margin: 0 auto;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: center;
      justify-content: center;
      padding: 0 1rem;
    }

  .bar-content {
    display: inline-flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.5rem 2.25rem;
    background: var(--rm-blue-night);
    border-radius: 1.25rem;
  }

  .bar-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg,#D4AF37,#D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .bar-subtitle {
    margin-top: .5rem;
    font-size:  1.05rem;
    font-weight: 500;
    color: var(--rm-text-muted);
  }

    @keyframes rm-fade-slide {
      to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 768px) {
      .rm-section-heading { font-size: 2rem; }
      .rm-section-subtitle { font-size: 1rem; }
    }

    /* -----------------------------------------------------------
       ELEMENTS DÉCORATIFS (Confetti, Orbs, Sidebar)
    ----------------------------------------------------------- */
    .confetti {
      pointer-events: none;
      position: fixed;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      z-index: 9999;
    }

    .sidebar {
      position: fixed;
      top: 80px;
      left: 0;
      width: 90px;
      height: calc(100vh - 80px);
      background: linear-gradient(160deg, #F9FAFB, #F1F5F9);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px 0;
      z-index: 1005;
      border-top-right-radius: 30px;
      border-bottom-right-radius: 30px;
      box-shadow: 6px 0 24px rgba(15, 23, 42, 0.08);
    }

    .sidebar .level-indicator {
      margin-bottom: 25px;
      background: linear-gradient(90deg, #FACC15, #FEF3C7);
      border-radius: 12px;
      padding: 6px 10px;
      font-size: 1rem;
      font-weight: 700;
      color: #0F172A;
      box-shadow: 0 0 14px rgba(250, 204, 21, 0.45);
      animation: bounce-level 1.2s infinite alternate;
    }

    .sidebar a {
      color: white;
      background: linear-gradient(135deg, #2563EB, #38BDF8);
      border-radius: 24px;
      margin: 28px 0;
      font-size: 2rem;
      width: 44px;
      height: 44px;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: all .25s ease;
      box-shadow: 0 10px 26px rgba(59, 130, 246, 0.35);
    }

    .sidebar a:hover, .sidebar a.active {
      transform: scale(1.15) rotate(-5deg);
      color: var(--rm-gold);
      box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
    }

    @keyframes bounce-level {
      0% { transform: translateY(0); }
      100% { transform: translateY(-8px); }
    }

    .floating-orb {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.11);
      transition: background 0.3s;
      z-index: 0;
      animation: orbMove 18s infinite alternate ease-in-out;
    }

    .orb1 { width: 155px; height: 155px; top: 14%; left: 18%; animation-delay: 0s; }
    .orb2 { width: 210px; height: 180px; bottom: 16%; right: 11%; animation-delay: 2s; }
    .orb3 { width: 150px; height: 150px; top: 38%; right: 15%; animation-delay: 6s; }
    .orb4 { width: 110px; height: 110px; bottom: 12%; left: 10%; animation-delay: 8s; }

    @keyframes orbMove {
      0% { transform: translateY(0) scale(1); }
      100% { transform: translateY(-30px) scale(1.07); }
    }

    /* -----------------------------------------------------------
       HERO SECTION
    ----------------------------------------------------------- */
    .hero-section::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.34);
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 1000px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      align-items: center;
    }

    .avatar-hero {
      width: 88px;
      height: 88px;
      border-radius: 50%;
      background: white;
      border: 4px solid var(--rm-turquoise);
      display: grid;
      place-items: center;
      font-size: 3.2rem;
      box-shadow: 0 8px 26px rgba(47, 164, 169, 0.35);
      animation: pop 2.5s infinite alternate;
    }

    @keyframes pop {
      0% { transform: scale(1); }
      100% { transform: scale(1.12); }
    }

    .hero-section h1 {
      color: #F9FAFB;
      font-size: 2.9rem;
      font-weight: 900;
      text-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
    }

    .hero-section h1 strong { color: var(--rm-gold); }

    .hero-section h2 {
      font-size: 1.6rem;
      color: var(--rm-deep);
      background: rgba(255, 255, 255, 0.9);
      border-radius: 50px;
      padding: 8px 24px;
      font-weight: 600;
    }

    .hero-quote {
      font-style: italic;
      font-weight: 700;
      font-size: 1.13rem;
      color: var(--rm-turquoise-soft);
    }

    .btn-hero {
      background: linear-gradient(90deg, var(--rm-blue-night), var(--rm-turquoise));
      color: white;
      border-radius: 50px;
      min-width: 210px;
      padding: 15px 46px;
      margin-top: 22px;
      font-weight: 700;
      font-size: 1.15rem;
      border: none;
      transition: transform .3s ease, box-shadow .3s ease;
      box-shadow: 0 12px 32px rgba(15, 42, 68, 0.45);
    }

    .btn-hero:hover {
      transform: scale(1.08);
      background: linear-gradient(90deg, var(--rm-blue-struct), var(--rm-turquoise-soft));
    }

    /* -----------------------------------------------------------
       STEPS & PROGRESS
    ----------------------------------------------------------- */
    .steps-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      position: relative;
      gap: 80px;
    }
.p {
      font-size: 1.15rem;
      color: white;
      max-width: 720px;
      margin: 0 0 12px 0;
      line-height: 1.6;
      letter-spacing: 0.01em;
      font-weight: 500;
      padding: 16px 20px;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(11,27,43,0.02));
      border: 1px solid rgba(255,255,255,0.04);
      box-shadow: 0 10px 30px rgba(11,27,43,0.08), inset 0 1px 0 rgba(255,255,255,0.02);
      backdrop-filter: blur(6px) saturate(120%);
      transition: transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .28s, background .28s;
      text-shadow: 0 1px 0 rgba(0,0,0,0.04);
      position: relative;
    }

    /* accent bar pour effet gamifié */
    .p::before {
      content: "";
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 6px;
      height: 60%;
      border-radius: 6px;
      background: linear-gradient(180deg, var(--rm-turquoise), var(--rm-blue));
      box-shadow: 0 8px 20px rgba(24,160,165,0.18);
      opacity: 0.95;
    }

    /* texte accentué */
    .p strong { color: var(--rm-gold); font-weight: 800; }

    /* micro-interactions */
    .p:hover, .p:focus {
      transform: translateY(-6px);
      box-shadow: 0 24px 56px rgba(11,27,43,0.18);
      background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(11,27,43,0.035));
    }

    /* responsive */
    @media (max-width: 768px) {
      .p { font-size: 1.02rem; padding: 12px 14px; border-radius: 12px; }
      .p::before { left: 10px; width: 5px; }
    }
    .h2{
        margin:0; font-weight:900; color:#D4AF37; -webkit-user-select:none; user-select:none;
    }
    .progress-line {
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      height: 7px;
      background: linear-gradient(90deg, #ffde7c 40%, #0075df 60%);
      border-radius: 5px;
      box-shadow: 0 2px 8px #eabb3788;
      z-index: 0;
      animation: moveGradient 2.3s linear infinite;
      background-size: 200% auto;
    }

    @keyframes moveGradient {
      0% { background-position: 0%; }
      100% { background-position: 100%; }
    }

    .step {
      display: flex;
      align-items: center;
      gap: 25px;
      width: auto;
      max-width: 520px;
      background: linear-gradient(135deg, rgba(25, 25, 70, 0.85), rgba(0, 31, 63, 0.85));
      border-radius: 22px;
      padding: 20px 25px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
      border: 2px solid rgba(255, 223, 55, 0.5);
      position: relative;
      z-index: 1;
      transition: transform 0.22s, box-shadow 0.22s;
      backdrop-filter: blur(6px);
    }

    .step img {
      height: auto;
      width: auto;
      max-width: 50%;
      border-radius: 14px;
      border: 3px solid #ffecb4;
      margin-right: 18px;
      object-fit: contain;
    }

    .step:nth-child(even) { align-self: flex-end; }
    .step:nth-child(odd) { align-self: flex-start; }

    .step h4 {
      margin-bottom: 8px;
      font-size: 1.25rem;
      background: linear-gradient(90deg, #3B82F6, #A78BFA);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 700;
      text-shadow: 0 0 10px rgba(255, 195, 80, 0.4);
    }

    .step p {
      margin: 0;
      font-size: 1rem;
      color: #F9FAFB;
      text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    }

    /* -----------------------------------------------------------
       CARDS & OFFRES
    ----------------------------------------------------------- */
    .offer-card {
      width: 325px;
      background: #fffef0;
      border-radius: 28px;
      padding: 26px;
      margin: 15px;
      box-shadow: 0 10px 25px #ffc03c28;
      border: 2px solid #fff2b3;
      transition: transform 0.2s, box-shadow 0.2s;
      position: relative;
      overflow: hidden;
    }

    .offer-card:hover {
      transform: scale(1.06) rotate(-2.5deg);
      box-shadow: 0 18px 44px #ffea61c8;
    }

    .offer-card h5 { font-size: 1.11rem; color: #58d68d; }

    /* -----------------------------------------------------------
       TÉMOIGNAGES
    ----------------------------------------------------------- */
    blockquote {
      background: #F9FAFB;
      border-left: 8px solid #ffaa45;
      border-radius: 22px;
      padding: 26px;
      box-shadow: 0 6px 18px #ffd7953b;
      margin-bottom: 27px;
      position: relative;
    }

    blockquote footer:before {
      content: "🏅 ";
      font-size: 1.1em;
      color: #58d68d;
      margin-right: 6px;
    }

    blockquote footer { font-weight: bold; color: #003366; }

    /* -----------------------------------------------------------
       PARTENAIRES
    ----------------------------------------------------------- */
    .logo-carousel {
      overflow: hidden;
      width: 100%;
      background: #f7f5e9;
      border-radius: 15px;
      box-shadow: 0 6px 18px #ffd36b1a;
      padding: 32px 0;
    }

    .logo-track {
      display: flex;
      width: calc(250px * 12);
      animation: scroll 18s linear infinite;
      align-items: center;
      gap: 20px;
    }

    .logo-track img {
      width: 170px;
      margin: 0 40px;
      object-fit: contain;
      transition: transform 0.2s;
    }

    .logo-track img:hover {
      transform: scale(1.1) rotate(-2deg);
      filter: drop-shadow(0 3px 10px #ffd94e6d);
    }

    @keyframes scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* -----------------------------------------------------------
       LEAD & WAVES
    ----------------------------------------------------------- */
    .lead-section {
      background: linear-gradient(135deg, #60A5FA, #34D399);
      color: #0F172A;
      padding: 84px 20px;
      text-align: center;
      border-radius: 24px;
      max-width: 900px;
      margin: 40px auto;
      box-shadow: 0 16px 48px rgba(59, 130, 246, 0.35);
    }

    .lead-section h3 { letter-spacing: 2px; font-size: 2.0rem; }
    .lead-section p { font-size: 1.11rem; margin-bottom: 20px; }

    .lead-section .btn {
      background: white;
      color: #3B82F6;
      border-radius: 24px;
      padding: 14px 38px;
      font-weight: 700;
    }

    .lead-section .btn:hover {
      background: linear-gradient(90deg, #faee7b, #f89500);
      color: #ff5f24;
    }

    .section-wave {
      width: 100%;
      height: 40px;
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23329AF5" fill-opacity="0.3" d="M0,64L48,69.3C96,75,192,85,288,85.3C384,85,480,75,576,80C672,85,768,107,864,112C960,117,1056,107,1152,96C1248,85,1344,75,1392,69.3L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"/></svg>') center/cover no-repeat;
    }

    @media (max-width: 992px) {
      .steps-row { flex-direction: column; align-items: center; }
      .step { width: 88vw; flex-direction: column; align-items: center !important; text-align: center; }
      .step img { margin-right: 0; margin-bottom: 12px; }
      .hero-section { margin-left: 0; min-height: 55vh; }
      .sidebar { display: none; }
    }

    @keyframes pulse-glow {
      0%, 100% { box-shadow: 0 0 22px rgba(255, 210, 140, 0.65); }
      50% { box-shadow: 0 0 48px rgba(255, 210, 140, 1); }
    }

    @keyframes pulse-glow-blue {
      0%, 100% { box-shadow: 0 0 22px rgba(144, 212, 255, 0.65); }
      50% { box-shadow: 0 0 48px rgba(144, 212, 255, 1); }
    }

    /* -----------------------------------------------------------
       TOPBAR & LAYOUT
    ----------------------------------------------------------- */
    .topbar {
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
      position: sticky;
      top: 0;
      z-index: 60;
      backdrop-filter: blur(6px) saturate(1.2);
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--rm-deep); }

    .brand .logo {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--rm-blue), #6ecff6);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 800;
      box-shadow: 0 8px 28px rgba(50, 154, 245, 0.18);
      font-size: 18px;
    }

    .topbar .nav-actions { display: flex; gap: 12px; align-items: center; }

    .container-station { width: 100%; margin: 28px 0; padding: 0 12px; }
    .station-grid { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }

    /* -----------------------------------------------------------
       PANEL GAUCHE & XP
    ----------------------------------------------------------- */
    .panel {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82));
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: var(--shadow-soft);
      position: relative;
      border: 1px solid rgba(15, 23, 42, 0.03);
    }

    .welcome { display: flex; gap: 14px; align-items: center; }

    .avatar {
      width: 72px;
      height: 72px;
      border-radius: 14px;
      overflow: hidden;
      flex-shrink: 0;
      background: linear-gradient(135deg, #fff6ea, #ffd89b);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      box-shadow: 0 10px 26px rgba(255, 184, 110, 0.12);
      border: 1px solid rgba(50, 154, 245, 0.08);
    }

    .welcome h4 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--rm-deep); user-select: none; }
    .welcome p { margin: 0; color: var(--muted); font-size: 0.95rem; user-select: none; }

    .small-cta { margin-top: 14px; display: flex; gap: 10px; }

    /* ================= CTA ================= */
    .cta {
      background: linear-gradient(90deg, #007BFF, #ff914d);
      color: white;
      padding: 3rem 2rem;
      border-radius: 20px;
      text-align: center;
      max-width: 800px;
      margin: 4rem auto;
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    .cta h3 {
      font-size: 1.8rem;
      font-weight: 700;
    }
    .cta p { color: #fff; }
    .btn-primary {
      background: linear-gradient(90deg, #007BFF, #ff914d);
      color: white;
      font-weight: bold;
      border-radius: 50px;
      padding: 0.6rem 1.4rem;
      border: none;
      transition: all 0.3s ease;
    }
    .btn-ghost {
      background: linear-gradient(90deg, #007BFF, #ff914d);
      color: white;
      font-weight: 700;
      border-radius: 40px;
      padding: 8px 16px;
      transition: transform .18s ease, box-shadow .18s ease;
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
      border: none;
    }

    .btn-ghost:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16); }

    .progress-card {
      margin-top: 18px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.48));
      border-radius: 12px;
      padding: 18px;
      display: flex;
      gap: 12px;
      align-items: center;
      box-shadow: 0 6px 18px rgba(10, 20, 40, 0.04);
      flex-direction: column;
      border: 1px solid rgba(15, 23, 42, 0.03);
    }

    .progress-visual { width: 128px; height: 128px; display: grid; place-items: center; }
    .xp-row { width: 100%; margin-top: 12px; text-align: center; }
    .xp-label { font-size: 0.9rem; color: var(--rm-deep); font-weight: 600; user-select: none; }

    .xp-bar-wrapper {
      width: 100%;
      height: 14px;
      background: rgba(13, 43, 76, 0.06);
      border-radius: 999px;
      margin-top: 8px;
      overflow: hidden;
      box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .xp-bar-fill {
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, #6ecff6, #6fb2ff, #ff914d);
      border-radius: 999px;
      transition: width 800ms cubic-bezier(.2, .9, .3, 1);
      box-shadow: 0 6px 18px rgba(111, 178, 255, 0.12);
    }

    .progress-meta h5 { margin: 0; font-weight: 800; color: var(--rm-deep); user-select: none; }
    .progress-meta p { margin: 0; color: var(--muted); user-select: none; }

    /* -----------------------------------------------------------
       ACTIONS GRID & CARDS
    ----------------------------------------------------------- */
    .actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

    .action-card {
      background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FC 100%);
      border-radius: 18px;
      padding: 22px;
      box-shadow: 0 12px 36px rgba(15, 42, 68, 0.10);
      transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
      border: 1px solid rgba(47, 164, 169, 0.18);
      display: flex;
      flex-direction: column;
      gap: 14px;
      align-items: flex-start;
      position: relative;
      overflow: hidden;
      text-decoration: none;
      color: #0F2A44;
    }

    .action-card::before {
      content: '';
      position: absolute;
      top: -60%;
      right: -40%;
      width: 240px;
      height: 240px;
      background: radial-gradient(circle, rgba(47, 164, 169, 0.14) 0%, transparent 70%);
      border-radius: 50%;
      transition: all 0.45s ease;
    }

    .action-card:hover, .action-card:focus, .action-card:active {
      transform: translateY(-12px) scale(1.025);
      box-shadow: 0 32px 72px rgba(15, 42, 68, 0.35);
      border-color: rgba(212, 175, 55, 0.45);
      background: linear-gradient(135deg, #0F2A44 0%, #1F3A5F 100%);
      color: #F9FAFB;
    }

    .action-card:hover::before {
      top: -25%;
      right: -15%;
      background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    }

    .action-icon {
      width: 64px;
      height: 64px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      color: #FFFFFF;
      font-size: 28px;
      box-shadow: 0 12px 30px rgba(15, 42, 68, 0.25);
      transition: transform 0.28s ease;
      position: relative;
      z-index: 2;
    }

    .action-card:hover .action-icon { transform: scale(1.12) rotate(-6deg); }

    .action-title { font-weight: 700; color: #0F2A44; margin: 0; font-size: 1.12rem; z-index: 2; user-select: none; }
    .action-desc { color: #475569; margin: 0; font-size: 0.95rem; line-height: 1.55; z-index: 2; user-select: none; }

    .action-card:hover .action-title, .action-card:hover .action-desc { color: #F9FAFB; }

    .card-cta { margin-top: auto; align-self: stretch; display: flex; justify-content: flex-end; gap: 8px; z-index: 2; }

    .ic-explore { background: linear-gradient(135deg, #6ecff6 0%, var(--rm-blue) 100%); }
    .ic-match { background: linear-gradient(135deg, #ffd89b 0%, #ffb76b 100%); color: var(--rm-deep); }
    .ic-actions { background: linear-gradient(135deg, #58d68d 0%, #2ecc71 100%); }

    .muted { color: var(--muted); font-size: 0.95rem; }

    /* -----------------------------------------------------------
       OFFCANVAS & MAPA
    ----------------------------------------------------------- */
    .offcanvas-end { --bs-offcanvas-width: 420px; }
    .hub-title { font-weight: 800; font-size: 1.2rem; color: var(--rm-deep); user-select: none; }
    .hub-desc { color: var(--muted); margin-top: 8px; user-select: none; }

    #rmj-quest-path {
      margin-top: 30px;
      display: flex;
      flex-direction: column;
      gap: 22px;
      position: relative;
      padding: 10px 0;
    }

    #rmj-quest-path::before {
      content: "";
      position: absolute;
      left: 28px;
      top: 0;
      bottom: 0;
      width: 4px;
      background: linear-gradient(180deg, #5be7ff, #9b6bff);
      border-radius: 5px;
      opacity: 0.35;
    }

    .mapa-marker {
      position: absolute;
      left: 12px;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: linear-gradient(135deg, #fff6ea, #ffd89b);
      display: grid;
      place-items: center;
      transform: translateY(-50%);
      box-shadow: 0 10px 26px rgba(50, 154, 245, 0.12);
      border: 2px solid rgba(255, 255, 255, 0.6);
      z-index: 30;
      transition: top 450ms cubic-bezier(.2, .9, .3, 1), transform 250ms ease;
    }

    .mapa-marker img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

    /* -----------------------------------------------------------
       QUEST STEPS (CORRECTION SYNTAXE)
    ----------------------------------------------------------- */
    .quest-step {
      color: var(--rm-text-main);
      text-decoration: none;
      /* Correction : propriétés orphelines réintégrées ici */
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      position: relative;
      transition: transform .25s ease, background .3s ease, border .25s ease;
      cursor: pointer;
    }

    .quest-step h4 { color: var(--rm-deep); font-weight: 700; margin: 0; font-size: 1.25rem; user-select: none; }
    .quest-step p { color: var(--rm-muted); margin: 2px 0 0; line-height: 1.5; font-size: 0.95rem; opacity: 0.85; user-select: none; }

    /* Etats survolés */
    .quest-step:hover, .quest-step:focus, .quest-step:active { color: #ffffff; }
    .quest-step:hover h4, .quest-step:focus h4, .quest-step:active h4 { color: #ffffff; }
    .quest-step:hover p, .quest-step:focus p, .quest-step:active p { color: rgba(255, 255, 255, 0.85); }
    .quest-step .step-icon, .quest-step .step-arrow { color: inherit; }

    .step-icon {
      min-width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.35rem;
      background: linear-gradient(135deg, #8f5bff, #3db3ff);
      color: white;
      border: 2px solid rgba(255, 255, 255, 0.5);
      transition: transform .25s ease;
    }

    .step-arrow {
      margin-left: auto;
      font-size: 1.4rem;
      color: #ccc;
      transition: transform .25s ease;
    }

    .step-completed .step-icon { background: linear-gradient(135deg, #00d47e, #6bff95); }
    .step-completed { border-color: rgba(0, 255, 160, 0.3); background: rgba(0, 255, 160, 0.08); }

    /* -----------------------------------------------------------
       MEDIA QUERIES FINALES
    ----------------------------------------------------------- */
    @media (max-width: 1000px) {
      .station-grid { grid-template-columns: 1fr; }
      .actions-grid { grid-template-columns: repeat(2, 1fr); }
      .panel { order: 2; }
      #rmj-quest-path::before { left: 18px; }
      .mapa-marker { left: 2px; }
    }

    @media (max-width: 600px) {
      .actions-grid { grid-template-columns: 1fr; }
      .avatar { width: 56px; height: 56px; font-size: 22px; }
      .mapa-marker { display: none; }
    }