/* =====================================================================
   SOKLIO — Site vitrine
   Design épuré, plat, contemporain (esprit Stripe / Linear / Vercel).
   Aucun dégradé, aucun relief. Un seul accent : le bleu du logo.
   ---------------------------------------------------------------------
   CONFIGURATION DES COULEURS ET TOKENS — tout se règle ici.
   ===================================================================== */
:root {
  /* --- Couleur de marque : bleu EXACT prélevé sur le logo --- */
  --brand:        #0350C1;   /* bleu Soklio (aplat uni) */
  --brand-hover:  #0343A2;   /* bleu légèrement assombri (survol) */
  --brand-tint:   #EAF1FB;   /* voile bleu très clair (icônes) */
  --brand-band:   #EEF2FB;   /* voile lavande (bande CTA, nav active) */

  /* --- Neutres : jamais de noir pur --- */
  --ink:          #131722;   /* texte principal (gris très foncé) */
  --ink-soft:     #4A5361;   /* texte secondaire */
  --ink-muted:    #6B7480;   /* texte tertiaire / légendes */
  --line:         #E7EAEF;   /* filets, bordures */
  --surface:      #FFFFFF;   /* fond principal */
  --surface-alt:  #F7F8FA;   /* fond des sections alternées */

  /* --- Accent d'état (uniquement dans la maquette produit) --- */
  --up:           #16A34A;   /* vert « en hausse » (interne au mock) */

  /* --- Rayons, ombres, typographie --- */
  --radius:       14px;
  --radius-sm:    10px;
  --shadow-soft:  0 1px 2px rgba(19,23,34,.04), 0 10px 30px rgba(19,23,34,.06);
  --shadow-mock:  0 2px 6px rgba(19,23,34,.05), 0 30px 60px rgba(19,23,34,.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Rythme --- */
  --container: 1160px;
  --gutter: 24px;
  --section-y: 100px;
}

/* ============================ RESET LÉGER ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ============================ LAYOUT ============================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-alt); }

.eyebrow {
  color: var(--brand);
  font-weight: 600; font-size: .82rem;
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.is-center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

/* ============================ BOUTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-arrow { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-muted); background: var(--surface-alt); }

/* ============================ EN-TÊTE ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 25px; width: auto; }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; transition: color .16s ease; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu .nav-cta a { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HÉRO ============================ */
.hero { padding-block: clamp(56px, 7vw, 100px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.15rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.hero-subtitle { margin-top: 22px; font-size: 1.18rem; color: var(--ink-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Maquette produit (fenêtre applicative) ---------- */
.hero-visual { min-width: 0; }
.app-mock {
  --mock-fs: 11px;                 /* échelle typographique de la maquette */
  font-size: var(--mock-fs);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-mock);
  overflow: hidden;
  line-height: 1.35;
}
.app-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.app-logo { height: 15px; width: auto; }
.app-search {
  display: flex; align-items: center; gap: 7px;
  flex: 1; max-width: 230px;
  color: var(--ink-muted);
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; margin-left: 6px;
}
.app-search svg { width: 13px; height: 13px; }
.app-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.app-bell { color: var(--ink-muted); display: inline-flex; }
.app-bell svg { width: 16px; height: 16px; }
.app-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 9px; letter-spacing: .02em;
}

.app-body { display: grid; grid-template-columns: 128px 1fr 150px; }
.app-side { border-right: 1px solid var(--line); padding: 12px 10px; display: grid; gap: 3px; align-content: start; }
.app-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 7px;
  color: var(--ink-soft); font-weight: 500; white-space: nowrap;
}
.an-dot { width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .55; }
.app-nav.is-active { background: var(--brand-band); color: var(--brand); font-weight: 600; }
.app-nav.is-active .an-dot { opacity: 1; }

.app-main { padding: 14px 16px; min-width: 0; }
.app-h { font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.app-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.app-stat { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.as-label { color: var(--ink-muted); display: block; }
.as-value { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin: 3px 0 5px; }
.as-delta { font-weight: 600; }
.as-delta.up { color: var(--up); }

.app-chart { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px 9px; }
.ac-title { color: var(--ink-soft); font-weight: 600; display: block; margin-bottom: 6px; }
.ac-svg { width: 100%; height: 92px; display: block; }
.ac-grid { stroke: var(--line); stroke-width: 1; }
.ac-area { fill: var(--brand-tint); }
.ac-line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ac-pt { fill: #fff; stroke: var(--brand); stroke-width: 2.4; }
.ac-x { display: flex; justify-content: space-between; color: var(--ink-muted); padding: 4px 4px 0 40px; }

.app-activities { border-left: 1px solid var(--line); padding: 14px 12px; display: grid; gap: 9px; align-content: start; }
.aa-title { font-weight: 700; }
.app-activities ul { display: grid; gap: 9px; }
.app-activities li { display: flex; gap: 8px; align-items: flex-start; }
.aa-ic { width: 20px; height: 20px; border-radius: 6px; background: var(--brand-tint); flex: none; margin-top: 1px; }
.aa-body { display: grid; }
.aa-body b { font-weight: 600; }
.aa-body i { color: var(--ink-muted); font-style: normal; }
.aa-more { color: var(--brand); font-weight: 600; border: 1px solid var(--line); border-radius: 7px; text-align: center; padding: 6px; margin-top: 2px; }

/* ============================ CARTES DOMAINES ============================ */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #DDE2E9; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: flex-start;
  color: var(--brand);
  margin-bottom: 22px;
}
.card-icon svg { width: 54px; height: 54px; stroke-width: 1.4; }
.card-title { font-size: 1.18rem; font-weight: 700; margin-bottom: 9px; }
.card-text { color: var(--ink-soft); font-size: .98rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; color: var(--brand); font-weight: 600; font-size: .95rem;
}
.card-link svg { width: 16px; height: 16px; transition: transform .16s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Section « Pourquoi » ---------- */
.features { text-align: center; }
.features .feature { padding: 8px 14px; display: flex; flex-direction: column; align-items: center; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  margin-bottom: 24px;
}
.feature-icon svg { width: 36px; height: 36px; stroke-width: 1.5; }
.feature-title { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.feature-text { color: var(--ink-soft); max-width: 34ch; }

/* ============================ BANDE CTA ============================ */
.cta-section { padding-block: 40px 88px; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  background: var(--brand-band);
  border-radius: 18px;
  padding: 44px 52px;
}
.cta-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.cta-text { margin-top: 10px; color: var(--ink-soft); font-size: 1.08rem; }

/* ============================ PIED DE PAGE (clair) ============================ */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-block: 56px 40px;
}
.footer-logo { height: 23px; width: auto; }
.footer-tagline { margin-top: 16px; color: var(--ink-muted); max-width: 30ch; font-size: .96rem; }
.footer-nav { display: contents; }
.footer-col-title { color: var(--ink); font-weight: 700; font-size: .95rem; margin-bottom: 15px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--ink-soft); font-size: .96rem; transition: color .16s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-col a.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-top: 16px;
  border-radius: 8px; background: var(--brand); color: #fff;
}
.footer-col a.footer-social:hover { background: var(--brand-hover); color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center; padding-block: 22px;
  color: var(--ink-muted); font-size: .9rem;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1000px) {
  :root { --section-y: 76px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-subtitle { max-width: none; }
  .app-mock { --mock-fs: 11px; max-width: 640px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-soft); display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .nav-menu .nav-cta { margin-top: 6px; }
  .nav-menu .nav-cta a { text-align: center; }

  /* La maquette : on masque la colonne activités pour rester lisible */
  .app-body { grid-template-columns: 108px 1fr; }
  .app-activities { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-4, .cards-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .app-mock { --mock-fs: 10px; }
  .app-body { grid-template-columns: 96px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
