/* home.css — Landing page RemoteWS (site Web Général)
   Thème sombre sécurité/institutionnel, cohérent avec la console et le wizard
   client : navy + vert validation, IBM Plex. Variables fournies par tokens.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep, #080d18);
  color: var(--text-1, #e9eef7);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Glow d'ambiance derrière le hero */
  background-image:
    radial-gradient(ellipse 60% 50% at 50% -8%, rgba(63, 212, 148, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 4%, rgba(91, 168, 255, 0.1), transparent 70%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
}

/* ── Conteneur ───────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Barre de navigation ─────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text-1, #e9eef7);
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ok-soft, rgba(63, 212, 148, 0.14));
  border: 1px solid var(--ok-line, rgba(63, 212, 148, 0.4));
  color: var(--ok, #3fd494);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ok, #3fd494);
  color: #07120c;
  box-shadow: 0 8px 24px -10px rgba(63, 212, 148, 0.7);
}

.btn--primary:hover {
  background: #54e0a4;
  box-shadow: 0 10px 30px -8px rgba(63, 212, 148, 0.8);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border, #232f54);
  color: var(--text-1, #e9eef7);
}

.btn--ghost:hover {
  background: var(--bg-hover, #1f2a4a);
  border-color: var(--border-strong, #344269);
}

.btn--lg {
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ok, #3fd494);
  background: var(--ok-soft, rgba(63, 212, 148, 0.14));
  border: 1px solid var(--ok-line, rgba(63, 212, 148, 0.4));
  border-radius: 999px;
  padding: 6px 14px;
}

.hero__title {
  margin: 22px auto 0;
  max-width: 720px;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero__title .accent {
  color: var(--ok, #3fd494);
}

.hero__lede {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 16px;
  color: var(--text-2, #a8b3d1);
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero__note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-3, #6e7ba0);
}

/* ── Cartes d'accès (opérateur / client) ─────────────────────────────── */
.entries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 8px 0 16px;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-elev, #131c33), var(--bg, #0d1424));
  border: 1px solid var(--border, #232f54);
  text-decoration: none;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.entry:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong, #344269);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.entry__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.entry__icon--op {
  background: var(--info-soft, rgba(91, 168, 255, 0.13));
  border: 1px solid var(--info-line, rgba(91, 168, 255, 0.38));
  color: var(--info, #5ba8ff);
}

.entry__icon--client {
  background: var(--ok-soft, rgba(63, 212, 148, 0.14));
  border: 1px solid var(--ok-line, rgba(63, 212, 148, 0.4));
  color: var(--ok, #3fd494);
}

.entry__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.entry__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2, #a8b3d1);
  flex: 1;
}

.entry__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ok, #3fd494);
}

.entry__icon--op + .entry__title + .entry__desc + .entry__cta {
  color: var(--info, #5ba8ff);
}

.entry:hover .entry__cta svg {
  transform: translateX(3px);
}

.entry__cta svg {
  transition: transform 0.16s ease;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border-soft, #1b2444);
}

.section__head {
  text-align: center;
  margin-bottom: 36px;
}

.section__title {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__sub {
  margin: 10px auto 0;
  max-width: 520px;
  font-size: 14.5px;
  color: var(--text-2, #a8b3d1);
}

.section__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3, #6e7ba0);
}

/* ── Étapes du principe ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 22px;
  border-radius: 14px;
  background: var(--bg-elev, #131c33);
  border: 1px solid var(--border, #232f54);
  position: relative;
}

.step__num {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--ok, #3fd494);
  letter-spacing: 0.08em;
}

.step__title {
  margin: 8px 0 6px;
  font-size: 15.5px;
  font-weight: 700;
}

.step__desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-2, #a8b3d1);
}

/* ── Grille de fonctionnalités ───────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  background: var(--bg-elev, #131c33);
  border: 1px solid var(--border, #232f54);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.feature:hover {
  border-color: var(--border-strong, #344269);
  background: var(--bg-card, #18223e);
}

.feature__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ok-soft, rgba(63, 212, 148, 0.14));
  color: var(--ok, #3fd494);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature__title {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
}

.feature__desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2, #a8b3d1);
  line-height: 1.55;
}

/* ── Bandeau d'appel final ───────────────────────────────────────────── */
.cta-band {
  margin: 56px 0;
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(63, 212, 148, 0.12), transparent 70%), var(--bg-elev, #131c33);
  border: 1px solid var(--border, #232f54);
}

.cta-band__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-band__sub {
  margin: 10px auto 24px;
  max-width: 460px;
  font-size: 14px;
  color: var(--text-2, #a8b3d1);
}

/* ── Pied de page ────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-soft, #1b2444);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3, #6e7ba0);
}

.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  text-decoration: none;
  transition: color 0.12s ease;
}

.footer a:hover {
  color: var(--text-1, #e9eef7);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .entries,
  .steps,
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .section {
    padding: 44px 0;
  }

  .nav__links .btn--ghost {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
