/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0F1117;
  --surface:  #1A1D2E;
  --surface2: #232740;
  --accent:   #6C63FF;
  --mint:     #00D4AA;
  --text:     #E8E6F0;
  --muted:    #8A87A8;
  --border:   #2A2D45;
  --header-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-initial {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #9B93FF);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  color: #fff;
}
.logo-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--text);
}
.logo-role {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* Nav desktop */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--surface2); color: var(--text); }
.nav-link.active { background: rgba(108,99,255,.15); color: var(--accent); }

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 10px 14px; }

/* ── MAIN ── */
.site-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 56px 32px 80px;
}

/* ── HERO (accueil) ── */
.hero { max-width: 700px; }
.hero-eyebrow {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 16px; line-height: 1.7;
  color: var(--muted); margin-bottom: 28px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.tag {
  padding: 5px 12px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--muted);
}

/* Cartes d'accueil */
.hero-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px;
  text-decoration: none; color: var(--text);
  transition: border-color .25s, transform .2s;
  min-width: 220px; flex: 1;
}
.hero-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero-card.mint-card:hover { border-color: var(--mint); }
.hc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.hc-icon.purple { background: rgba(108,99,255,.18); color: #9B93FF; }
.hc-icon.mint   { background: rgba(0,212,170,.15); color: var(--mint); }
.hc-icon.blue   { background: rgba(99,179,255,.15); color: #63B3FF; }
.hc-title { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; }
.hc-desc  { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── PAGE CONTENT (pages Dotclear) ── */
.page-content {
  max-width: 860px;
}
.page-content h1,
.page-content h2,
.page-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  margin-bottom: 16px;
}
.page-content h1 { font-size: 36px; font-weight: 700; margin-bottom: 24px; }
.page-content h2 { font-size: 22px; margin-top: 40px; }
.page-content p  { font-size: 15px; line-height: 1.75; color: var(--muted); margin-bottom: 16px; }
.page-content a  { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }
.page-content ul, .page-content ol {
  padding-left: 20px; color: var(--muted);
  font-size: 15px; line-height: 1.8; margin-bottom: 16px;
}

/* Reset des styles Dotclear qui pourraient interférer */
.page-content img { max-width: 100%; border-radius: 10px; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.status-dot { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 6px var(--mint);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .logo-role { display: none; }
  .site-main { padding: 36px 20px 60px; }
  .hero-cards { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
