/* =========================================================================
   Syrma Conseil — feuille de style principale
   Palette : bleu nuit dominant, un accent lumineux.
   Typographie : Montserrat (titres) / IBM Plex Sans (texte) / IBM Plex Mono (libellés)
   ========================================================================= */

:root {
  --ink-950: #08111E;
  --ink-900: #0B1524;
  --ink-800: #0D1828;
  --ink-700: #111F33;
  --line:    rgba(150, 178, 216, 0.16);
  --paper:   #EDF2F9;
  --soft:    #C4D2E6;
  --muted:   #93A7C3;
  --accent:    #7FA9FF;
  --accent-hi: #AEC6FF;

  --font-title: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body:  "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --wrap: 1120px;
}

/* --- Base ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-hi); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--ink-950); padding: 12px 18px;
  font-family: var(--font-title); font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* --- Éléments de texte récurrents ---------------------------------------- */

.eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.num {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.16em; color: var(--accent);
}
.lead { font-size: 19px; line-height: 1.6; color: var(--soft); }
.muted { color: var(--muted); }
.mono-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

.sec { padding: 118px 0; }
.sec--alt { background: var(--ink-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-title { margin-top: 20px; font-size: clamp(30px, 3.4vw, 42px); }
.sec-lead  { margin-top: 22px; max-width: 62ch; }

/* --- Logotype ------------------------------------------------------------ */

.lockup { display: flex; align-items: center; gap: 12px; }
.lockup svg { flex: none; color: var(--accent); }
.lockup-text { display: flex; flex-direction: column; line-height: 1; }
.lockup-name { font-family: var(--font-title); font-weight: 700; font-size: 19px; color: var(--paper); }
.lockup-sub  {
  margin-top: 5px; font-family: var(--font-title); font-weight: 500; font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}

/* --- En-tête ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 24, 40, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.navlink { color: var(--paper); font-size: 15px; }
.navlink--mobile { display: none; }
.navlink:hover { color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--paper); transition: transform .2s ease, opacity .2s ease; }

/* --- Boutons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-title); font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--accent); color: var(--ink-950); }
.btn--primary:hover { background: var(--accent-hi); color: var(--ink-950); }
.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--accent); color: var(--paper); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* --- Accroche ------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; background: var(--ink-900); }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px 420px at 82% 12%, rgba(127, 169, 255, 0.16), rgba(127, 169, 255, 0) 68%);
}
.hero-orbit { position: absolute; right: -180px; top: -160px; opacity: .28; color: var(--accent); pointer-events: none; }
.hero-inner { position: relative; padding: 132px 40px 124px; }
.hero-title { margin-top: 24px; font-size: clamp(38px, 5.2vw, 66px); max-width: 16ch; }
.hero-lead { margin-top: 30px; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  margin-top: 58px; padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}

/* --- Grilles ------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.split  { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.pair   { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* --- Cartes -------------------------------------------------------------- */

.card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--ink-700); border: 1px solid var(--line); border-radius: 6px;
  padding: 34px 30px; transition: border-color .2s ease;
}
.card:hover { border-color: rgba(127, 169, 255, 0.4); }
.card h3 { font-size: 23px; }
.card > p { font-size: 15.5px; line-height: 1.6; }

.ticks { display: flex; flex-direction: column; gap: 11px; margin-top: auto; padding-top: 8px; }
.ticks li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  background: var(--accent); transform: rotate(45deg); opacity: .9;
}

/* --- Méthode ------------------------------------------------------------- */

.steps { margin-top: 66px; border-top: 1px solid var(--line); }
.step { position: relative; padding-top: 36px; }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--ink-900);
}
.step h3 { margin-top: 12px; font-size: 19px; }
.step p  { margin-top: 12px; font-size: 15px; line-height: 1.6; }

/* --- Technologies -------------------------------------------------------- */

.tech-groups { display: flex; flex-direction: column; gap: 30px; }
.tech-label {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--soft);
  border: 1px solid var(--line); border-radius: 3px; padding: 8px 14px;
}

/* --- Références ---------------------------------------------------------- */

.quote {
  margin-top: 26px; max-width: 900px; color: var(--paper);
  font-family: var(--font-title); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(23px, 2.7vw, 34px); line-height: 1.34;
}
.audiences { margin-top: 58px; padding-top: 40px; border-top: 1px solid var(--line); }
.audiences h3 { font-size: 17px; }
.audiences p { margin-top: 12px; font-size: 15px; line-height: 1.6; }

/* --- À propos ------------------------------------------------------------ */

.about-card { gap: 22px; padding: 38px 34px; }
.about-card .about-name { font-family: var(--font-title); font-weight: 700; font-size: 20px; color: var(--paper); }
.about-facts {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}

/* --- Formulaire ---------------------------------------------------------- */

.form { padding: 34px 32px; gap: 0; }
.field + .field, .pair + .field { margin-top: 20px; }

label {
  display: block; margin-bottom: 9px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
label .optional { text-transform: none; letter-spacing: 0; }

input, textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--paper);
  background: var(--ink-950); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px;
}
textarea { resize: vertical; min-height: 150px; }
input::placeholder, textarea::placeholder { color: #5C7192; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #E8877C; }

/* Champ piège anti-robot : masqué visuellement, jamais rempli par un humain. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { margin-top: 26px; width: 100%; }
.form-note { margin-top: 16px; font-size: 13px; line-height: 1.55; }
.form-status { margin-top: 18px; font-size: 15px; line-height: 1.55; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { color: #8FD8B0; }
.form-status.is-error { color: #E8877C; }

/* --- Pied de page -------------------------------------------------------- */

.site-footer { background: var(--ink-950); border-top: 1px solid var(--line); padding: 46px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.site-footer .lockup-name { font-size: 15px; letter-spacing: 0.02em; font-weight: 600; }

/* --- Page Mentions légales ----------------------------------------------- */

.legal { max-width: 760px; padding-top: 76px; padding-bottom: 90px; }
.legal h1 { margin-top: 18px; font-size: 40px; }
.legal-block { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.legal-block h2 {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.legal-block p, .legal-block ul { margin-top: 16px; color: var(--soft); font-size: 15.5px; }
.legal-block li + li { margin-top: 4px; }
.legal-block p + p { margin-top: 14px; }

/* --- Adaptatif ----------------------------------------------------------- */

@media (max-width: 940px) {
  body { font-size: 16px; }
  .wrap { padding: 0 24px; }
  .sec { padding: 72px 0; }
  .hero-inner { padding: 56px 24px; }
  .hero-title { font-size: clamp(30px, 8.5vw, 40px); max-width: none; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-orbit { right: -170px; top: -130px; width: 480px; height: 480px; }
  .grid-3, .grid-4, .split, .pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps { border-top: none; border-left: 1px solid var(--line); padding-left: 22px; margin-top: 34px; gap: 28px; }
  .step { padding-top: 0; }
  .step::before { top: 7px; left: -27px; box-shadow: 0 0 0 4px var(--ink-900); }
  .sec-title { font-size: clamp(25px, 6.4vw, 30px); }
  .form { padding: 24px 20px; }
  .btn { min-height: 52px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .nav { gap: 0; }
  .nav > .btn--sm { display: none; }
  .navlink--mobile { display: block; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 78px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links .navlink { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links .navlink:last-child { border-bottom: none; }
  .legal { padding-top: 48px; padding-bottom: 64px; }
  .legal h1 { font-size: 30px; }
}

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