/* Enkadenn — Kit 72h · site vitrine / GitLab Pages
   Sans dépendance externe. Thème clair + sombre. */

:root {
  --brand: #26677a;
  --brand-dark: #1c4e5c;
  --brand-tint: #eef4f6;
  --bg: #f7f8f9;
  --surface: #ffffff;
  --surface-2: #f1f3f4;
  --text: #16211f;
  --muted: #5a6a70;
  --border: #e3e7e9;
  --ok: #1f8f4d;
  --warn: #d9822b;
  --danger: #d23b3b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 30, 34, .06), 0 8px 24px rgba(16, 30, 34, .06);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4aa6bd;
    --brand-dark: #6fc0d4;
    --brand-tint: #16242a;
    --bg: #0e1417;
    --surface: #161f23;
    --surface-2: #1c272c;
    --text: #eef2f3;
    --muted: #9fb0b6;
    --border: #263237;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 62px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--brand);
}
.brand .logo svg { width: 18px; height: 18px; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); line-height: 1; }
.nav .spacer { flex: 1; }
.nav .links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav .links a {
  color: var(--muted); font-size: .92rem; font-weight: 500;
  padding: 6px 10px; border-radius: 9px;
}
.nav .links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav .links a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.lang {
  display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden;
  font-size: .82rem; font-weight: 600;
}
.lang a { padding: 5px 9px; color: var(--muted); }
.lang a:hover { background: var(--surface-2); text-decoration: none; }
.lang a.active { background: var(--brand); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 24px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-tint); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); margin: 0 0 26px; max-width: 46ch; }
.phone-hero { justify-self: center; }
.phone-hero img {
  width: 270px; border-radius: 34px;
  box-shadow: 0 10px 40px rgba(16, 30, 34, .18);
  border: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) { .phone-hero img { box-shadow: 0 10px 40px rgba(0, 0, 0, .5); } }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  background: var(--brand); color: #fff; border: 1px solid transparent;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); }

/* ---------- Sections ---------- */
section { padding: 44px 0; }
section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; letter-spacing: -.01em; }
section .sub { color: var(--muted); margin: 0 0 30px; max-width: 60ch; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow);
}
.pill svg { width: 16px; height: 16px; color: var(--brand); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-tint);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--brand);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Alternating feature+screenshot rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 30px 0; }
.feature:nth-child(even) .txt { order: 2; }
.feature .shot { justify-self: center; }
.feature .shot img {
  width: 250px; border-radius: 30px; border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(16, 30, 34, .14);
}
@media (prefers-color-scheme: dark) { .feature .shot img { box-shadow: 0 8px 30px rgba(0, 0, 0, .45); } }
.feature h3 { font-size: 1.4rem; margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); }
.feature ul li { margin: 4px 0; }

.band { background: var(--brand-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Screenshot gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 2rem; margin: 0 0 6px; }
.prose .updated { color: var(--muted); font-size: .9rem; margin: 0 0 28px; }
.prose h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.08rem; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .88em; }

.note {
  background: var(--brand-tint); border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: 10px; padding: 14px 16px; margin: 20px 0; font-size: .93rem; color: var(--text);
}
.todo {
  background: color-mix(in srgb, var(--warn) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--border));
  border-radius: 10px; padding: 14px 16px; margin: 20px 0; font-size: .93rem;
}
.todo strong { color: var(--warn); }

/* ---------- Footer ---------- */
footer.site {
  margin-top: 40px; border-top: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: .9rem;
}
footer.site .wrap { padding: 34px 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
footer.site h4 { color: var(--text); font-size: .95rem; margin: 0 0 10px; }
footer.site a { color: var(--muted); display: block; padding: 3px 0; }
footer.site a:hover { color: var(--brand); }
footer.site .fine { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 16px; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .btns { justify-content: center; }
  .phone-hero { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .feature:nth-child(even) .txt { order: 0; }
  .feature ul { display: inline-block; text-align: left; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  footer.site .wrap { grid-template-columns: 1fr; }
}
