/* SADCAR — site vitrine / showcase site — premium dark theme */

/* Plus Jakarta Sans, embarquée localement (police variable, graisses 200-800) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0a0d1c;
  --bg-2: #0e1226;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-solid: #12162c;
  --ink: #eef0fa;
  --muted: #9ba3c2;
  --soft: #c9cee3;
  --accent: #8b93ff;
  --accent-2: #b39dfc;
  --accent-strong: #6366f1;
  --accent-soft: rgba(129, 140, 248, 0.12);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 20px;
  --maxw: 1080px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 10px 32px rgba(99, 102, 241, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 85% -160px, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(1000px 560px at 8% -180px, rgba(79, 70, 229, 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(99, 102, 241, 0.08), transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-strong); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 13, 28, 0.72);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.09em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-block: 4px;
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--ink); }
.site-nav a.active:not(.lang-switch)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.lang-switch {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.3);
}
.site-nav a.lang-switch.active::after { content: none; }

/* Hero */
.hero {
  position: relative;
  padding-block: 100px 76px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40px -80px auto -80px;
  height: 360px;
  background:
    radial-gradient(460px 240px at 30% 40%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(460px 240px at 70% 30%, rgba(139, 92, 246, 0.18), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 147, 255, 0.35);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 26px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.18);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(139, 147, 255, 0.8);
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #c3c8e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 br + * { white-space: nowrap; }
.hero p.lead {
  max-width: 660px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.75;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 14px;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent-strong), #8b5cf6);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section.block { padding-block: 56px; }
.block h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #fff;
}
.block p.sub {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 640px;
  font-size: 1.02rem;
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.22s ease;
}
a.card { color: var(--ink); }
a.card:hover {
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 147, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(139, 147, 255, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}
a.card:hover::before { opacity: 1; }
a.card::after {
  content: "→";
  position: absolute;
  top: 26px;
  right: 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
a.card:hover::after { opacity: 1; transform: translateX(0); }
.card .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.card h3 { margin: 6px 0 0; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 147, 255, 0.25);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 4px;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: badge-pulse 2.2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* App icons — gradient identities */
.icon-aorela    { background: linear-gradient(135deg, #6366f1, #4338ca); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45); }
.icon-certyrium { background: linear-gradient(135deg, #22b8cf, #0e7490); box-shadow: 0 8px 24px rgba(34, 184, 207, 0.4); }
.icon-artfound  { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35); }
.icon-immutrium { background: linear-gradient(135deg, #34d399, #15803d); box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35); }

/* Highlight band — luminous premium panel */
.band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 320px at 90% -60%, rgba(139, 92, 246, 0.4), transparent 70%),
    radial-gradient(540px 280px at 0% 130%, rgba(79, 70, 229, 0.38), transparent 70%),
    linear-gradient(135deg, #171b3a, #10132b);
  border: 1px solid rgba(139, 147, 255, 0.22);
  border-radius: 24px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.band h2 { margin: 0 0 8px; color: #fff; }
.band p { margin: 0; color: #b6bad0; max-width: 560px; }
.band .btn-primary {
  background: #fff;
  color: #0f1222;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}
.band .btn-primary:hover { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }

/* Prose pages */
.page-head { padding-block: 68px 10px; }
.page-head h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}
.page-head p.lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin: 0; line-height: 1.75; }
.prose { max-width: 760px; padding-block: 26px 72px; }
.prose h2 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 8px;
  color: #fff;
}
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 8px; color: var(--ink); }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.meta-note {
  color: var(--muted);
  font-size: 0.88rem;
  border-left: 3px solid var(--line-strong);
  padding-left: 14px;
  margin-top: 28px;
}

/* App detail */
.app-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 68px 14px;
  flex-wrap: wrap;
}
.app-hero .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.app-hero h1 { margin: 0; font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.app-hero .tagline { margin: 6px 0 0; color: var(--muted); font-size: 1.02rem; }
.app-hero .badge { margin-left: 10px; vertical-align: middle; }

/* Footer */
.site-footer {
  background:
    radial-gradient(700px 300px at 85% -40%, rgba(139, 92, 246, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    #070912;
  color: #b6bad0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  padding-block: 52px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.site-footer h4 {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d829c;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #e6e8f4; font-size: 0.92rem; transition: color 0.15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; color: #b6bad0; font-size: 0.92rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 18px;
  color: #7d829c;
  font-size: 0.83rem;
}

@media (max-width: 560px) {
  .hero { padding-block: 60px 44px; }
  .band { padding: 34px 26px; }
  .page-head { padding-block: 48px 8px; }
  .app-hero { padding-block: 48px 10px; }
}

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