/* ============================================================
   EBIA TECH CORPORATION — Design System
   Tokens : papier chaud, encre profonde, bleu signature, corail rare
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Couleurs */
  --paper: #FAFAF8;
  --paper-dim: #F1F0EC;
  --ink: #12151C;
  --ink-soft: #2B2F38;
  --grey: #6B7280;
  --grey-light: #9CA3AF;
  --line: #E2E0D8;
  --line-strong: #CFCCC0;
  --navy: #1E3A5F;
  --navy-deep: #142A45;
  --navy-tint: #E8EEF4;
  --coral: #FF6B4A;
  --coral-deep: #E5532F;
  --coral-tint: #FFE9E2;
  --mint: #3DDC84;
  --mint-deep: #1FA968;
  --mint-tint: #E3FAEC;
  --white: #FFFFFF;

  /* Typo */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-w: 1200px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-soft: 0 2px 16px rgba(18,21,28,0.06);
  --shadow-card: 0 4px 24px rgba(18,21,28,0.08);
  --shadow-lift: 0 12px 40px rgba(18,21,28,0.14);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

::selection { background: var(--coral-tint); color: var(--navy-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
  .wrap { padding: 0 20px; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before { content: "//"; color: var(--grey-light); }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.55;
}

.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--navy-tint); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo .dot { color: var(--coral); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-coral { display: none; }
  .nav-actions [data-auth-slot] { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9CCD3;
  padding: 72px 0 32px;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; font-weight: 700; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #C9CCD3; font-size: 0.92rem; transition: color 0.15s; }
.site-footer a:hover { color: var(--coral); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 56px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid #2A2E38;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--grey-light);
}
.footer-logo { font-family: var(--font-display); color: var(--white); font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.footer-desc { font-size: 0.92rem; color: var(--grey-light); max-width: 280px; line-height: 1.6; }

@media (max-width: 768px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
}
.chip-mint { background: var(--mint-tint); color: var(--mint-deep); }
.chip-coral { background: var(--coral-tint); color: var(--coral-deep); }
.chip-navy { background: var(--navy-tint); color: var(--navy); }

/* ---------- Section heading pattern ---------- */
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--paper);
  z-index: 500;
  display: none;
  flex-direction: column;
  padding: 24px 28px;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-drawer a { font-family: var(--font-display); font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.close-btn { font-size: 1.8rem; line-height: 1; color: var(--ink); background: none; border: none; cursor: pointer; }
.nav-toggle { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--ink); }
