/* ==========================================================================
   L.I.B — Informatique, Bureautique & Solutions Intelligentes
   Feuille de style principale
   ========================================================================== */

:root {
  --navy: #0a2f63;
  --navy-dark: #082448;
  --navy-deep: #061a35;
  --ink: #1b2430;
  --muted: #5b6673;
  --muted-2: #8b95a3;
  --red: #c22a20;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-navy-tint: #eef2f8;
  --line: #e3e8ef;
  --line-strong: #ccd4de;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 3px 10px rgba(16, 24, 40, 0.06);
  --container: 1160px;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* ---------- Utilitaires ---------- */

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

.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-dark); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}
.section--navy .eyebrow { color: #a9c0e2; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.section--navy h2, .section--navy h3 { color: #fff; }

h1 { font-size: clamp(2.1rem, 4.5vw, 3.15rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }

.lead {
  font-size: 1.11rem;
  color: var(--muted);
  max-width: 640px;
}
.section--navy .lead { color: #c4d2e6; }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { margin-bottom: 14px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }

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

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--navy); }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #a52218; }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #e9eef6; }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost-light:hover { border-color: #fff; }

.btn--sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand__name em {
  font-style: normal;
  color: var(--red);
}
.brand__tag {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--navy); }
.nav a.is-active {
  color: var(--navy);
  border-bottom-color: var(--red);
}
.nav .btn { padding: 10px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 9px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  column-gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero__kicker span { color: var(--navy); }
.hero__kicker i {
  font-style: normal;
  color: var(--red);
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__note {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero__note svg { width: 16px; height: 16px; color: var(--navy); flex: none; }

/* Visuel héro : tableau de bord sobre */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel__bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  margin-right: 8px;
}
.panel__body { padding: 20px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-stat b {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Grille de services ---------- */

.grid {
  display: grid;
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.18s ease;
}
.card:hover {
  border-color: var(--navy);
}
.card__icon {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--muted); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.card__link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.card__link:hover svg { transform: translateX(3px); }

a.card { text-decoration: none; color: inherit; display: block; }

/* ---------- Bloc pôles (liste structurée, sans effet carte) ---------- */

.pole-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pole-col {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 30px 26px;
  border-left: 1px solid var(--line);
  transition: background-color 0.18s ease;
}
.pole-col:first-child { border-left: none; }
.pole-col:hover { background: var(--bg-soft); }
.pole-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.pole-col h3 svg { width: 19px; height: 19px; color: var(--navy); flex: none; }
.pole-col p { font-size: 0.93rem; color: var(--muted); margin-bottom: 14px; }
.pole-table--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Sections éditoriales (texte / visuel) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split .btn { margin-top: 12px; }

.checklist {
  list-style: none;
  margin: 22px 0 8px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--ink);
  font-size: 0.97rem;
}
.checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex: none;
  margin-top: 3px;
}
.section--navy .checklist li { color: #dbe5f2; }
.section--navy .checklist li svg { color: #ff9d94; }

.fineprint {
  font-size: 0.83rem;
  color: var(--muted-2);
  margin-top: 18px;
}

/* ---------- Bandeau confiance ---------- */

.trustbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.trustbar__item svg { width: 19px; height: 19px; color: var(--red); }

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.step__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Secteurs ---------- */

.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sector {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.sector svg { width: 19px; height: 19px; color: var(--navy); flex: none; }

/* ---------- Bande CTA ---------- */

.cta-band { background: var(--navy-dark); color: #fff; }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #c4d2e6; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Tableau de bord analytique (SVG habillé) ---------- */

.dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dash .panel__body { padding: 16px 18px; }
.dash__kpi b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}
.dash__kpi span { font-size: 0.8rem; color: var(--muted); }
.dash__kpi .delta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-navy-tint);
  border-radius: 4px;
  padding: 2px 8px;
}
.dash--wide { grid-column: 1 / -1; }

/* ---------- Page interne : bannière ---------- */

.page-hero {
  background: var(--navy-dark);
  color: #fff;
  padding: 72px 0;
  border-bottom: 4px solid var(--red);
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead { color: #c4d2e6; }
.page-hero .eyebrow { color: #a9c0e2; }

.breadcrumb {
  font-size: 0.85rem;
  color: #94a7c2;
  margin-bottom: 26px;
}
.breadcrumb a { color: #c4d2e6; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Listes de services détaillées ---------- */

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row__icon svg { width: 23px; height: 23px; }
.service-row h3 { margin-bottom: 8px; }
.service-row p { color: var(--muted); font-size: 0.97rem; max-width: 700px; }
.service-row ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.93rem;
}
.service-row ul li { margin: 4px 0; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.contact-card h3 svg { width: 18px; height: 18px; color: var(--red); }
.contact-card p { color: var(--muted); font-size: 0.95rem; }
.contact-card a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form h2 { font-size: 1.4rem; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 26px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 47, 99, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { margin-top: 24px; width: 100%; }
.form__status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--navy);
  display: none;
}
.form__status.is-visible { display: block; }

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

.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--muted); font-size: 0.97rem; }
.prose ul { padding-left: 20px; margin: 10px 0; }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: #b8c6da;
  padding: 64px 0 0;
  font-size: 0.93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer h4 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: #8fa2bd; }
.footer p { line-height: 1.75; }
.footer ul { list-style: none; }
.footer ul li { margin: 8px 0; }
.footer a { color: #b8c6da; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer__contact svg { width: 17px; height: 17px; margin-top: 3px; color: #ff9d94; flex: none; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #8fa2bd;
}
.footer__bottom a { color: #8fa2bd; }

/* ---------- Bouton flottant mobile ---------- */

.call-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(6, 26, 53, 0.25);
  align-items: center;
  gap: 8px;
}
.call-fab svg { width: 16px; height: 16px; }

/* ---------- Animations d'apparition ---------- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card__link svg { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pole-table { grid-template-columns: 1fr; }
  .pole-col { border-left: none; border-top: 1px solid var(--line); }
  .pole-col:first-child { border-top: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 2; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    display: none;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a.is-active { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .brand__tag { display: none; }
}

@media (max-width: 720px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band__inner { padding: 52px 0; }
  .dash { grid-template-columns: 1fr; }
  .call-fab { display: inline-flex; }
  .trustbar__inner { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .page-hero { padding: 44px 0; }
  .hero__inner { padding: 40px 0 48px; gap: 36px; }
  .section-head { margin-bottom: 36px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 1.7rem); }
  .lead { font-size: 1rem; }
  .card, .contact-card, .pole-col, .step { padding: 20px 18px; }
  .service-row { grid-template-columns: 40px 1fr; gap: 14px; padding: 24px 0; }
  .service-row__icon { width: 40px; height: 40px; }
  .hero__actions, .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .btn { padding: 13px 20px; }
  .form { padding: 22px 16px; }
  .contact-grid { gap: 28px; }
  .footer { padding: 48px 0 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
