/* VLAB Solutions — feuille de style principale
   Couleurs reprises du logo : bleu #1865b2, vert #1eae77, or #e0aa4a, noir #1c1c1c */

:root {
  --ink: #1c1c1c;
  --ink-2: #3a3d42;
  --muted: #5d636b;
  --faint: #8a9099;
  --line: #e6e8eb;
  --soft: #f6f7f9;
  --bg: #ffffff;

  --blue: #1865b2;
  --blue-dark: #124e8c;
  --blue-soft: #eaf2fb;
  --green: #1eae77;
  --green-text: #11764f;
  --green-soft: #e7f6ef;
  --gold: #e0aa4a;
  --gold-text: #8c5f10;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Outfit", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1120px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0; }

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

.blue { color: var(--blue); }
.green { color: var(--green-text); }

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 560px;
  margin-top: 20px;
}

.muted { color: var(--muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); color: #fff; }

.btn-line { border-color: #cfd3d8; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }

.arrow::after { content: "→"; }

.link-more {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
}
.link-more::after { content: " →"; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand span {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a:not(.btn) {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.nav .btn { padding: 9px 16px; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
  }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--soft); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Accueil : hero ---------- */

.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 10px;
  position: relative;
}
.facts::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--green) 50% 85%, var(--gold) 85%);
}
.facts-logo { width: 64px; height: 64px; margin-bottom: 14px; }
.facts dl { margin: 0; }
.facts dl div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.facts dt { color: var(--faint); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Accueil : liste des services ---------- */

.service-rows { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.3fr 28px;
  gap: 24px;
  align-items: start;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.15s;
}
.service-row:hover { background: var(--soft); color: var(--ink); }
.service-row .num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}
.service-row:nth-child(1) .num { color: var(--blue); }
.service-row:nth-child(2) .num { color: var(--green); }
.service-row:nth-child(3) .num { color: var(--gold); }
.service-row h3 { font-size: 1.25rem; }
.service-row .tag { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.service-row .desc { color: var(--ink-2); font-size: 0.97rem; }
.service-row .go { font-size: 1.2rem; color: var(--faint); transition: color 0.15s, transform 0.15s; }
.service-row:hover .go { color: var(--blue); transform: translateX(3px); }

@media (max-width: 760px) {
  .service-row { grid-template-columns: 44px 1fr; gap: 12px 16px; }
  .service-row .desc { grid-column: 2; }
  .service-row .go { display: none; }
}

/* ---------- Deux colonnes + points ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split > div > p { margin-top: 18px; color: var(--ink-2); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

.points { list-style: none; margin: 0; padding: 0; }
.points li {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue);
}
.points li + li { margin-top: 30px; }
.points li:nth-child(2) { border-left-color: var(--green); }
.points li:nth-child(3) { border-left-color: var(--gold); }
.points h3 { font-size: 1.05rem; }
.points p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

.points.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.points.cols li + li { margin-top: 0; }
@media (max-width: 860px) {
  .points.cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Bandeau d'appel ---------- */

.cta {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.cta p { margin-top: 8px; color: var(--muted); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta-actions .mail { font-weight: 600; }

/* ---------- En-tête des pages intérieures ---------- */

.page-head {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 760px; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head .lead { max-width: 620px; }

.page-head.with-aside .wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .page-head.with-aside .wrap { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */

.service-block {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: 0; padding-bottom: 0; }

.service-block .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.service-block:nth-child(2) .label { color: var(--green-text); }
.service-block:nth-child(3) .label { color: var(--gold-text); }
.service-block h2 { margin-top: 8px; font-size: 1.7rem; }
.service-block .tag { margin-top: 8px; color: var(--ink-2); font-weight: 500; }
.service-block .summary { margin-top: 16px; color: var(--muted); font-size: 0.97rem; }

.service-block h3 {
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; gap: 28px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-2);
  background: #fff;
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checks li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
@media (max-width: 600px) {
  .checks { grid-template-columns: 1fr; }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}
.steps p { margin-top: 8px; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

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

.id-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 0.93rem;
}
.id-card div + div { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.id-card span { display: block; font-size: 0.8rem; color: var(--faint); margin-bottom: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.timeline li {
  position: relative;
  padding: 0 0 36px 32px;
  border-left: 2px solid var(--line);
  margin-left: 6px;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
}
.timeline li:nth-child(2)::before { border-color: var(--green); }
.timeline li:nth-child(3)::before { border-color: var(--gold); }
.timeline .when { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.timeline h3 { margin-top: 4px; }
.timeline p { margin-top: 8px; color: var(--ink-2); font-size: 0.97rem; }

.toolbox { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.toolbox h3 { font-size: 1rem; }
.toolbox p { margin-top: 4px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 700px) { .toolbox { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd3d8;
  border-radius: var(--radius);
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 101, 178, 0.15);
}

.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--blue); }
.consent label { font-weight: 400; font-size: 0.83rem; color: var(--muted); margin: 0; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-size: 0.83rem; color: var(--faint); }

.form-status {
  display: none;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid #bfe6d5;
  background: var(--green-soft);
}
.form-status.show { display: block; }
.form-status h2 { font-size: 1.25rem; }
.form-status p { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }
.form-status button {
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--green-text);
  text-decoration: underline;
  cursor: pointer;
}
.form-status.error { border-color: #f1c9c9; background: #fdf1f1; }

.contact-info { margin: 0; }
.contact-info div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info div:first-child { padding-top: 0; }
.contact-info dt { font-size: 0.83rem; color: var(--faint); }
.contact-info dd { margin: 3px 0 0; font-weight: 500; }

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  font-size: 0.93rem;
  color: var(--ink-2);
}
.legal-grid h3 { font-size: 1rem; margin-bottom: 6px; }
.legal-grid a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .legal-grid { grid-template-columns: 1fr; } }

/* ---------- Pages légales ---------- */

.prose { max-width: 740px; }
.prose h2 { font-size: 1.2rem; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; }
.prose .part-title {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 24px;
}
.prose .small { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.83rem; color: var(--faint); }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  font-size: 0.92rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 56px 20px 44px;
}
.footer-main p { margin-top: 14px; color: var(--muted); max-width: 340px; }
.footer-main h4 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li + li { margin-top: 9px; }
.footer-main a { color: var(--ink-2); }
.footer-main a:hover { color: var(--blue); }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6d9de;
  border-radius: 50%;
  color: var(--ink-2);
  background: #fff;
}
.social a:hover { border-color: var(--blue); color: var(--blue); }
.social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid var(--line);
}
.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.8rem;
  color: var(--faint);
}

@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ---------- Bandeau cookies ---------- */

.cookie-note {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.cookie-note[hidden] { display: none; }
.cookie-note a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-note .btn { margin-top: 12px; padding: 8px 16px; font-size: 0.85rem; }
@media (max-width: 480px) {
  .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
