/* ==========================================================================
   Najma Studio, feuille de style globale
   ========================================================================== */

:root {
  --bg: #080c0a;
  --bg-elev: #0d1310;
  --bg-soft: #101815;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(212, 177, 95, 0.32);

  --gold: #d4b15f;
  --gold-bright: #e8cc8a;
  --gold-soft: rgba(212, 177, 95, 0.12);

  --text: rgba(255, 255, 255, 0.87);
  --heading: #ffffff;
  --muted: rgba(255, 255, 255, 0.54);
  --faint: rgba(255, 255, 255, 0.36);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shell: 1120px;
  --reading: 760px;

  --header-h: 68px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--gold-bright);
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #10130f;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Header et navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--heading);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #1d2b22, #0b1310);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.brand span em {
  font-style: normal;
  color: var(--gold);
}

/* Nav desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: var(--heading);
  background: var(--card);
}

.nav-link.is-current {
  color: var(--gold);
}

.nav-link .chev {
  width: 11px;
  height: 11px;
  transition: transform 0.22s var(--ease);
  opacity: 0.7;
}

.nav-link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.nav-cta {
  margin-left: 8px;
}

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(680px, calc(100vw - 48px));
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: 12px;
}

.mega-feature {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.mega-feature:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.mega-feature .app-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.mega-feature h4 {
  font-size: 15.5px;
  margin-bottom: 3px;
}

.mega-feature p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.mega-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.mega-link:hover {
  background: var(--card);
  color: var(--gold);
}

.mega-link svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
  flex-shrink: 0;
}

.mega-link:hover svg {
  color: var(--gold);
}

.mega-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 177, 95, 0.2);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Burger */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

.burger svg {
  width: 19px;
  height: 19px;
}

.burger .icon-close {
  display: none;
}

.burger[aria-expanded="true"] .icon-open {
  display: none;
}

.burger[aria-expanded="true"] .icon-close {
  display: block;
}

/* Panneau mobile */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 22px 24px 60px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-group + .mobile-group {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav .btn {
  display: flex;
  margin-top: 22px;
  padding: 14px 20px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #14170f;
}

.btn-primary:hover {
  color: #14170f;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(212, 177, 95, 0.22);
}

.btn-ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  color: var(--heading);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 92px 0;
}

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

.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

.section-head {
  max-width: 620px;
  margin-bottom: 46px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 108px 0 96px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(
    closest-side,
    rgba(212, 177, 95, 0.13),
    rgba(212, 177, 95, 0.03) 55%,
    transparent 72%
  );
  pointer-events: none;
}

.hero > .shell {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-badge b {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  font-weight: 600;
}

.hero h1 .accent {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Carte application
   -------------------------------------------------------------------------- */

.app-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #1e2d24, #0a1210);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  flex-shrink: 0;
}

.app-mark svg {
  width: 52%;
  height: 52%;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.app-card h3 {
  font-size: 23px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tag-muted {
  background: var(--card-hover);
  color: var(--muted);
}

.app-card > div > p {
  color: var(--muted);
  margin-bottom: 18px;
}

.app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Grilles
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 19px;
  height: 19px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* Liste de fonctionnalites */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}

.feature-list svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-list b {
  color: var(--heading);
  font-weight: 600;
  display: block;
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   Bloc CTA
   -------------------------------------------------------------------------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 56px 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-elev));
  border: 1px solid var(--border-strong);
}

.cta-panel h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-panel p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 26px;
}

/* --------------------------------------------------------------------------
   Pages legales
   -------------------------------------------------------------------------- */

.legal {
  padding: 60px 0 90px;
}

.legal .shell {
  max-width: var(--reading);
}

.legal-head {
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.legal-head h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 600;
  margin-bottom: 10px;
}

.legal-head .updated {
  color: var(--faint);
  font-size: 13.5px;
}

.legal h2 {
  font-size: 20px;
  margin: 44px 0 14px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.legal h2 .num {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.legal h3 {
  font-size: 16.5px;
  margin: 26px 0 10px;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal ul {
  padding-left: 22px;
  margin: 0 0 1em;
}

.legal li {
  margin: 9px 0;
}

.legal strong {
  color: var(--heading);
  font-weight: 600;
}

.toc {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 26px;
}

.toc li {
  margin: 5px 0;
  font-size: 14px;
  break-inside: avoid;
}

.toc a {
  color: var(--text);
}

.toc a:hover {
  color: var(--gold);
}

.identity-box {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border-strong);
  margin: 26px 0;
}

.identity-box .tag {
  margin-bottom: 12px;
}

.identity-box p {
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 177, 95, 0.22);
  margin: 24px 0;
  font-size: 14.5px;
}

.callout p {
  margin: 0;
}

/* Tableau */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 460px;
}

th,
td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--card);
  color: var(--heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 62px 0 34px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-about p {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 0;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-legal {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-legal p {
  margin: 0;
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 940px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav,
  .nav-cta {
    display: none;
  }

  .burger {
    display: grid;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 74px 0 66px;
  }

  .app-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 0 20px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .hero-meta {
    gap: 18px 26px;
  }

  .cta-panel {
    padding: 42px 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

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