/* ==========================================================================
   Noxen IT — feuille de style
   Direction : grand typographique, sections plein écran, verre dépoli,
   alternance clair / sombre — dans l'esprit d'apple.com.
   ========================================================================== */

:root {
  --white: #ffffff;
  --black: #000000;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-on-dark: rgba(255, 255, 255, 0.62);
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --surface: #f5f5f7;
  --surface-raised: #ffffff;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-on-dark: #5b9bff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --nav-h: 52px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5882;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- révélation au scroll ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- navigation ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.is-scrolled { border-bottom-color: var(--hairline); }

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { display: flex; align-items: center; gap: 9px; }
.nav__logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}
.nav__logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.nav__logo-it { color: var(--accent); }
.nav__logo span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  gap: 34px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__links a {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }

.nav__cta {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.82;
}
.nav__cta:hover { opacity: 1; }

.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
}

/* ---- menu plein écran (mobile) -------------------------------------------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-overlay.is-open { transform: translateY(0); }

.menu-overlay__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

.menu-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-overlay__links a {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

/* ---- sections génériques --------------------------------------------------- */

.section {
  position: relative;
  padding: 120px 22px;
}

.section--tight { padding: 84px 22px; }
.section--white { background: var(--white); color: var(--ink); }
.section--surface { background: var(--surface); color: var(--ink); }
.section--dark { background: var(--black); color: var(--white); }

.section__inner { max-width: var(--max); margin: 0 auto; }
.section__inner--narrow { max-width: 760px; margin: 0 auto; }

.eyebrow {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.section--dark .eyebrow { color: var(--accent-on-dark); }

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  text-align: center;
  max-width: 16ch;
  margin: 0 auto 20px;
}

.section-sub {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
}

.section--dark .section-sub { color: var(--muted-on-dark); }

/* ---- héros ------------------------------------------------------------------ */

.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 22px 60px;
}

.hero__inner { max-width: 840px; }

.hero__logo {
  height: 64px;
  width: auto;
  margin: 0 auto 28px;
}

.hero__eyebrow {
  display: block;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--accent-on-dark);
  margin-bottom: 18px;
}

.hero--light .hero__eyebrow { color: var(--accent); }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--muted-on-dark);
  max-width: 46ch;
  margin: 0 auto 40px;
}

.hero--light p.lead { color: var(--muted); }

.hero__actions {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- boutons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn--link {
  padding: 13px 4px;
  color: var(--accent-on-dark);
}
.hero--light .btn--link, .section--white .btn--link, .section--surface .btn--link { color: var(--accent); }
.btn--link:hover { gap: 10px; }
.btn--link svg { transition: transform 0.15s ease; }
.btn--link:hover svg { transform: translateX(2px); }

.btn--outline {
  border-color: var(--hairline);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---- diagramme (svg) ----------------------------------------------------------- */

.diagram-card {
  max-width: 920px;
  margin: 64px auto 0;
  background: var(--surface-raised);
  border-radius: 28px;
  padding: 48px clamp(20px, 5vw, 56px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.18);
}

.diagram__line { stroke: var(--hairline); stroke-width: 1.5; fill: none; }
.diagram__line--active { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-dasharray: 5 6; }
.diagram__node-bg { fill: var(--surface); stroke: var(--hairline); stroke-width: 1.2; }
.diagram__node-bg--accent { fill: #e6efff; stroke: var(--accent); stroke-width: 1.2; }
.diagram__label { font-family: var(--font); font-size: 11.5px; fill: var(--muted); letter-spacing: 0.01em; }
.diagram__title { font-family: var(--font); font-weight: 600; font-size: 14.5px; fill: var(--ink); }
.diagram__title--accent { font-family: var(--font); font-weight: 600; font-size: 14.5px; fill: var(--accent-hover); }
.diagram__dot { fill: #2fa360; }

/* ---- grille de fonctionnalités --------------------------------------------------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.tile {
  background: var(--surface-raised);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e6efff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.tile h3 { font-size: 1.28rem; }
.tile p { color: var(--muted); font-size: 0.98rem; }

/* ---- lignes de service détaillées ------------------------------------------------ */

.feature-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}

.feature-row:first-of-type { border-top: none; padding-top: 0; }
.section--dark .feature-row { border-top-color: var(--hairline-dark); }

.feature-row__tag {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.section--dark .feature-row__tag { color: var(--accent-on-dark); }

.feature-row h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 18px;
}

.feature-row p { color: var(--muted); font-size: 1.06rem; margin-bottom: 14px; max-width: 46ch; }
.feature-row p:last-child { margin-bottom: 0; }
.section--dark .feature-row p { color: var(--muted-on-dark); }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.02rem;
  color: var(--ink);
}

.check-list li svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); }
.section--dark .check-list li { color: var(--white); }
.section--dark .check-list li svg { color: var(--accent-on-dark); }

/* ---- bandeau de statistiques ----------------------------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat {
  text-align: center;
  padding: 0 12px;
  border-left: 1px solid var(--hairline-dark);
}

.stat:first-child { border-left: none; }

.stat__num {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}

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

/* ---- pas / étapes ------------------------------------------------------------------ */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step {
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}

.step__num {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---- cta -------------------------------------------------------------------------- */

.cta {
  text-align: center;
  padding: 100px 22px;
}

.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta p { color: var(--muted); margin-bottom: 34px; font-size: 1.1rem; }

/* ---- contact ------------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  margin-top: 20px;
}

.info-card {
  background: var(--surface-raised);
  border-radius: 20px;
  padding: 26px 28px;
  margin-bottom: 14px;
}

.info-card__label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.info-card__value { font-size: 1.08rem; font-weight: 500; }

form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.9rem; color: var(--muted); }

.field input, .field select, .field textarea {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* ---- pied de page ---------------------------------------------------------------- */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 50px 22px 30px;
}

.footer__inner { max-width: var(--max); margin: 0 auto; }

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 20px;
}

.footer__col h4 { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.footer__col a { display: block; font-size: 0.88rem; color: var(--ink); opacity: 0.75; padding: 5px 0; }
.footer__col a:hover { opacity: 1; }

.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- responsive ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; align-items: center; justify-content: center; }
  .feature-row, .contact-grid, .split { grid-template-columns: 1fr; }
  .tile-grid, .step-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--hairline-dark); padding-top: 24px; }
  .stat:first-child { border-top: none; padding-top: 0; }
  .section { padding: 84px 20px; }
  .hero { min-height: unset; padding: calc(var(--nav-h) + 48px) 20px 48px; }
  .diagram-card { padding: 32px 20px; margin-top: 44px; }
  .footer__top { flex-direction: column; gap: 26px; }
}
