/* ══════════════════════════════════════════════════════════
   RM-SOLUTIONS — DESIGN SYSTEM
   Palette : Noir #0A0A0A · Blanc #FFFFFF · Rouge #B91C1C
   ══════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --rm-black:   #0A0A0A;
  --rm-white:   #FFFFFF;
  --rm-red:     #B91C1C;
  --rm-red-2:   #991B1B;
  --rm-red-3:   #DC2626;
  --rm-red-light: rgba(185,28,28,.08);
  --rm-red-mid:   rgba(185,28,28,.15);

  /* Gris */
  --rm-gray-50:  #FAFAFA;
  --rm-gray-100: #F4F4F5;
  --rm-gray-200: #E4E4E7;
  --rm-gray-300: #D4D4D8;
  --rm-gray-400: #A1A1AA;
  --rm-gray-500: #71717A;
  --rm-gray-600: #52525B;
  --rm-gray-700: #3F3F46;
  --rm-gray-800: #27272A;
  --rm-gray-900: #18181B;

  /* Typographie */
  --rm-font:      'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  --rm-font-mono: 'SF Mono', 'Cascadia Code', monospace;

  /* Rayons */
  --rm-r-sm: 4px;
  --rm-r:    8px;
  --rm-r-lg: 12px;
  --rm-r-xl: 16px;

  /* Ombres */
  --rm-shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --rm-shadow:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --rm-shadow-lg: 0 12px 32px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
  --rm-shadow-xl: 0 24px 64px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.08);
}

/* ── Reset global ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--rm-font); color: var(--rm-black); background: var(--rm-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ── Logo SVG inline ── */
.rm-logo-svg { display: inline-block; }

/* ── Topbar site ── */
.rm-topbar {
  height: 60px;
  background: var(--rm-black);
  border-bottom: 2px solid var(--rm-red);
  display: flex; align-items: center;
  padding: 0 40px; gap: 32px;
  position: sticky; top: 0; z-index: 1000;
}
.rm-topbar-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 800; color: var(--rm-white);
  letter-spacing: -0.5px; white-space: nowrap;
}
.rm-topbar-logo span { color: var(--rm-red); }
.rm-topbar-nav { display: flex; gap: 4px; flex: 1; }
.rm-topbar-link {
  padding: 6px 14px; border-radius: var(--rm-r);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.65);
  transition: all .15s; white-space: nowrap;
}
.rm-topbar-link:hover { color: var(--rm-white); background: rgba(255,255,255,.08); }
.rm-topbar-link.active { color: var(--rm-white); }
.rm-topbar-cta {
  height: 36px; padding: 0 18px;
  background: var(--rm-red); color: var(--rm-white);
  border: none; border-radius: var(--rm-r);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .15s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.rm-topbar-cta:hover { background: var(--rm-red-2); }

/* ── Boutons ── */
.rm-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: var(--rm-r);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s; border: none; white-space: nowrap;
}
.rm-btn-primary {
  background: var(--rm-black); color: var(--rm-white);
}
.rm-btn-primary:hover { background: var(--rm-gray-800); }
.rm-btn-red {
  background: var(--rm-red); color: var(--rm-white);
}
.rm-btn-red:hover { background: var(--rm-red-2); }
.rm-btn-outline {
  background: transparent; color: var(--rm-black);
  border: 1.5px solid var(--rm-gray-300);
}
.rm-btn-outline:hover { border-color: var(--rm-black); }
.rm-btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.rm-btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }

/* ── Cards ── */
.rm-card {
  background: var(--rm-white);
  border: 1px solid var(--rm-gray-200);
  border-radius: var(--rm-r-lg);
  box-shadow: var(--rm-shadow-sm);
  transition: all .2s;
}
.rm-card:hover {
  border-color: var(--rm-gray-300);
  box-shadow: var(--rm-shadow);
  transform: translateY(-2px);
}
.rm-card-red {
  border-top: 3px solid var(--rm-red);
}

/* ── Badge ── */
.rm-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}
.rm-badge-red { background: var(--rm-red-light); color: var(--rm-red); border: 1px solid var(--rm-red-mid); }
.rm-badge-black { background: var(--rm-black); color: var(--rm-white); }
.rm-badge-gray { background: var(--rm-gray-100); color: var(--rm-gray-600); border: 1px solid var(--rm-gray-200); }

/* ── Section hero ── */
.rm-hero {
  background: var(--rm-black);
  color: var(--rm-white);
  padding: 80px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.rm-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rm-red);
}
.rm-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900; letter-spacing: -2px; line-height: 1;
  margin-bottom: 20px;
}
.rm-hero-title .accent { color: var(--rm-red); }
.rm-hero-sub {
  font-size: 18px; color: rgba(255,255,255,.65);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}
.rm-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Grid utils ── */
.rm-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.rm-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ── Container ── */
.rm-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ── Section ── */
.rm-section { padding: 64px 0; }
.rm-section-title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--rm-black); margin-bottom: 8px;
}
.rm-section-sub { font-size: 16px; color: var(--rm-gray-500); margin-bottom: 40px; }
.rm-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--rm-red); margin-bottom: 12px; display: block;
}

/* ── Footer ── */
.rm-footer {
  background: var(--rm-black);
  color: rgba(255,255,255,.5);
  padding: 48px 40px 32px;
  border-top: 3px solid var(--rm-red);
}
.rm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.rm-footer-brand { margin-bottom: 16px; }
.rm-footer-brand img { height: 36px; width: auto; display: block; }
.rm-footer-desc { font-size: 13px; line-height: 1.7; }
.rm-footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rm-white); margin-bottom: 16px; }
.rm-footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.5); padding: 4px 0; transition: color .12s; }
.rm-footer-link:hover { color: var(--rm-white); }
.rm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.rm-footer-bottom a { color: rgba(255,255,255,.5); transition: color .12s; }
.rm-footer-bottom a:hover { color: var(--rm-white); }

/* ── Scrollbar ── */
* { scrollbar-width: thin; scrollbar-color: var(--rm-gray-300) transparent; }
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-thumb { background: var(--rm-gray-300); border-radius: 99px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Header : ligne unique 52px — logo fixe + liens défilables horizontalement */
  .rm-topbar {
    height: 52px;
    padding: 0 8px 0 14px;
    gap: 4px;
  }
  .rm-topbar-logo { flex-shrink: 0; gap: 8px; }
  .rm-topbar-logo img { height: 26px !important; }
  .rm-topbar-nav {
    display: flex;           /* était display:none */
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding: 0;
    min-width: 0;
  }
  .rm-topbar-nav::-webkit-scrollbar { display: none; }
  .rm-topbar-link { flex-shrink: 0; font-size: 11px; padding: 5px 8px; }
  .rm-topbar-cta  { flex-shrink: 0; height: 30px; padding: 0 10px; font-size: 11px; }

  /* Conteneurs et sections */
  .rm-container { padding: 0 16px; }
  .rm-section { padding: 40px 0; }
  .rm-hero { padding: 40px 16px; }
  .rm-hero-sub { font-size: 15px; }

  /* Footer */
  .rm-footer { padding: 32px 16px 24px; }
  .rm-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .rm-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
