/* ═══════════════════════════════════════════════════════════════════════
   francoislankar.com — feuille de styles unique.
   Aucune dépendance externe : tout est servi par le serveur.
   Thème clair et sombre automatiques (préférence du système).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbfaf9;
  --bg-soft: #f2f1ef;
  --card: #ffffff;
  --text: #17181c;
  --text-soft: #45474f;
  --muted: #6b6e79;
  --border: #e6e4e1;
  --accent: #4f46e5;
  --accent-soft: #eef0fe;
  --accent-ink: #3730a3;
  --radius: 16px;
  --maxw: 760px;
  --shadow: 0 1px 2px rgba(16, 18, 24, 0.04), 0 12px 32px rgba(16, 18, 24, 0.06);
  --shadow-lift: 0 2px 4px rgba(16, 18, 24, 0.05), 0 18px 44px rgba(16, 18, 24, 0.11);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --bg-soft: #141821;
    --card: #161a23;
    --text: #edeef2;
    --text-soft: #c3c7d1;
    --muted: #8f95a3;
    --border: #262b37;
    --accent: #8b87f5;
    --accent-soft: #1e1f3a;
    --accent-ink: #b9b6fb;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 44px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

/* Lien d'évitement, visible uniquement au clavier. */
.skip {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

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

/* ── En-tête ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.2px;
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c6df2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex: none;
}

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); }

@media (max-width: 560px) {
  .nav-links a { padding: 8px 10px; font-size: 14px; }
}

/* ── Accroche ─────────────────────────────────────────────────────── */
.hero { padding: 84px 0 20px; }

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -1.4px;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.08rem, 2.4vw, 1.24rem);
  color: var(--text-soft);
  margin: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-lift); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 52px 0; }

.section h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  letter-spacing: -0.6px;
  margin: 0 0 18px;
  font-weight: 750;
}

.section p { color: var(--text-soft); margin: 0 0 18px; }
.section p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ── Petites cartes « ce que je fais » ────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}
.card h3 { margin: 0 0 6px; font-size: 1.03rem; font-weight: 700; letter-spacing: -0.2px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 19px; height: 19px; }

/* ── Contact ──────────────────────────────────────────────────────── */
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-box h2 { margin-bottom: 10px; }
.contact-box p { margin-bottom: 22px; }

/* ── Pied de page ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14.5px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ── Apparition au défilement ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Aucune animation imposée si l'utilisateur les a désactivées. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Pages de contenu (confidentialité, mentions…) ────────────────── */
.prose { max-width: 68ch; padding-top: 30px; }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -1px; margin: 0 0 8px; }
.prose h2 { margin: 36px 0 10px; font-size: 1.25rem; letter-spacing: -0.4px; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
