/* ==========================================================================
   Urgence PC — Design tokens (v2 : SaaS clair, univers Microsoft/Fluent)
   Palette : blanc/bleu-gris clair + bleu Fluent + teal + touche corail
   Type    : Space Grotesk (display) / Inter (texte) / JetBrains Mono (data)
   ========================================================================== */

:root {
  --bg: #f6f8fc;
  --bg-raised: #ffffff;
  --bg-raised-2: #eef3fb;
  --line: #e2e8f2;
  --text: #1b1f27;
  --text-muted: #5b6472;
  --text-dim: #8992a3;

  --amber: #0078d4;        /* accent principal (ex-ambre -> bleu Fluent) */
  --amber-soft: #0078d414;
  --cyan: #038387;          /* teal Microsoft, statut positif */
  --cyan-soft: #03838722;
  --danger: #d83b01;        /* rouge/orange Microsoft, alerte */

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1160px;
  --edge: clamp(20px, 5vw, 64px);
  --shadow: 0 1px 2px rgba(20,30,50,0.04), 0 12px 32px -16px rgba(20,30,50,0.10);
  --shadow-lg: 0 24px 60px -24px rgba(20,30,50,0.18);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 980px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber), #2aa4f4);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(0,120,212,0.55);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(0,120,212,0.65); }

.btn-ghost {
  background: var(--bg-raised);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--edge);
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--amber), #2aa4f4);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px; height: 2px;
  background: #ffffff;
  box-shadow: 0 -4px 0 #ffffff, 0 4px 0 #ffffff;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.tel-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  text-decoration: none;
  display: none;
}
.menu-toggle {
  display: none;
  background: var(--bg-raised); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px;
  width: 40px; height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (min-width: 860px) { .tel-link { display: inline; } }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 90px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 320px at 88% -10%, #0078d422, transparent 70%),
    radial-gradient(420px 260px at 100% 40%, #03838722, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--amber); }
.hero-sub { font-size: 1.1rem; max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim);
}
.hero-trust strong { color: var(--text); font-weight: 600; }

/* Signature: diagnostic monitor — line goes erratic then stabilizes */
.monitor {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.monitor-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.monitor-dots { display: flex; gap: 6px; }
.monitor-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.monitor-status { display: flex; align-items: center; gap: 8px; color: var(--cyan); }
.monitor-status span.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.monitor-body { padding: 22px 18px 26px; }
.monitor-svg { width: 100%; height: 130px; display: block; }
.pulse-path {
  fill: none;
  stroke: var(--danger);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-pulse 3.2s ease-out forwards;
}
@keyframes draw-pulse {
  0% { stroke-dashoffset: 900; stroke: var(--danger); }
  55% { stroke: var(--danger); }
  70% { stroke: var(--amber); }
  100% { stroke-dashoffset: 0; stroke: var(--cyan); }
}
.monitor-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.monitor-readout div { color: var(--text-dim); }
.monitor-readout strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 2px;
  font-weight: 600;
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head p { font-size: 1.02rem; }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Cards / grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { border-color: #c7d6ee; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Ticket (testimonial / process) ---------- */
.ticket {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--font-mono);
  box-shadow: var(--shadow);
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.ticket-status {
  color: var(--cyan);
  background: var(--cyan-soft);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.ticket-body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 0.96rem;
  margin-bottom: 12px;
}
.ticket-foot { font-size: 0.78rem; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
}
.price-card.highlight {
  border-color: var(--amber);
  background: linear-gradient(180deg, #eaf4ff, var(--bg-raised) 45%);
  box-shadow: var(--shadow-lg);
}
.price-tag {
  position: absolute; top: -12px; right: 24px;
  background: linear-gradient(135deg, var(--amber), #2aa4f4);
  color: #ffffff;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  font-family: var(--font-mono);
}
.price-card h3 { margin-bottom: 6px; }
.price-card .price {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 600;
  margin: 10px 0 6px;
  color: var(--text);
}
.price-card .price span { font-size: 0.95rem; color: var(--text-dim); font-weight: 400; }
.price-card ul {
  list-style: none; padding: 0; margin: 18px 0 26px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.92rem;
}
.price-card ul li { display: flex; gap: 10px; color: var(--text-muted); }
.price-card ul li::before { content: "→"; color: var(--cyan); flex-shrink: 0; }
.price-card .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  border-left: 2px solid var(--amber);
  padding-left: 18px;
}
.step .n {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.8rem;
  display: block; margin-bottom: 8px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0078d4, #03838a);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2, .cta-banner p { color: #ffffff; }
.cta-banner p { opacity: 0.88; margin: 0; }
.cta-banner .btn-primary { background: #ffffff; color: var(--amber); box-shadow: none; }
.cta-banner .btn-primary:hover { background: #eef6ff; }

/* ---------- Cross-promo (Microsoft 365 link) ---------- */
.promo-strip {
  background: var(--cyan-soft);
  border: 1px solid #03838744;
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 0.92rem;
}
.promo-strip strong { color: var(--cyan); }
.promo-strip a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: var(--bg-raised);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--text-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; border-top: 1px solid var(--line);
}

/* ---------- Utility page header (for sub pages) ---------- */
.page-head {
  padding: clamp(50px, 8vw, 80px) 0 clamp(30px, 5vw, 46px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 90% -20%, #0078d41c, transparent 70%);
}
.page-head .eyebrow { margin-bottom: 16px; }
.page-head p { font-size: 1.05rem; max-width: 60ch; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.contact-info-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-info-card .row {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row .label { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }
.contact-info-card .row .val { color: var(--text); font-weight: 500; }

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 3px;
  margin-right: 4px;
}
.lang-switch a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.lang-current {
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(20,30,50,0.08);
}
@media (max-width: 640px) {
  .lang-switch a span.lang-label { display: none; }
}
