@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --bg0: #07090f;
  --bg1: #0d1117;
  --bg2: #131922;
  --bg3: #1a2332;
  --bg4: #1e2d42;
  --accent:  #00d4aa;
  --accent2: #0088ff;
  --accent3: #ff4d6d;
  --text1: #e8edf5;
  --text2: #8a9bb5;
  --text3: #4a5a72;
  --border:  #1e2d42;
  --border2: #2a3d58;
  --r:  8px;
  --r2: 14px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 135px;
}

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

html { height: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--text1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* scanlines subtiles */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,212,170,.012) 2px,
    rgba(0,212,170,.012) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }
img { max-width: 100%; display: block; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(7,9,15,.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 70px;
  width: auto;
  border-radius: 10px;
  margin-top:10px;
  /* légère ombre pour ressortir sur fond sombre */
  filter: drop-shadow(0 2px 8px rgba(0,212,170,.25));
  transition: filter .3s;
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 2px 16px rgba(0,212,170,.5));
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text1);
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text2);
  font-size: 16px;
  font-weight: 500;
  transition: all .2s;
  border: none;
  background: none;
  text-decoration: none;
  display: inline-block;
}
.nav-link:hover,
.nav-link.active { color: var(--text1); background: var(--bg3); }
.nav-link.current { color: var(--accent); }

.nav-cta {
  padding: 7px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { background: #00f0c2; transform: translateY(-1px); }

/* User area (dashboard) */
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #000;
  cursor: pointer;
}
.nav-avatar:hover { opacity: .85; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 48px 2rem 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img {
  height: 70px;
  margin-bottom: 14px;
  border-radius: 10px;
  filter: drop-shadow(0 2px 8px rgba(0,212,170,.2));
}
.footer-brand p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
  font-family: var(--font-mono);
}

/* ============================================================
   BOUTONS COMMUNS
   ============================================================ */
.btn-primary {
  padding: 13px 28px;
  border-radius: var(--r);
  background: var(--accent);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all .25s;
  letter-spacing: .3px;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background: #00f0c2;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,170,.3);
}
.btn-ghost {
  padding: 13px 28px;
  border-radius: var(--r);
  background: transparent;
  color: var(--text1);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border2);
  transition: all .25s;
  display: inline-block;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text1);
  z-index: 9000;
  display: none;
  font-family: var(--font-mono);
  max-width: 300px;
  line-height: 1.4;
}
.toast.show {
  display: block;
  animation: toastIn .3s ease;
}
@keyframes toastIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================================
   MODAL AUTH
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 430px;
  position: relative;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none; border: none;
  color: var(--text3); font-size: 18px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: all .2s;
}
.modal-close:hover { color: var(--text1); background: var(--bg3); }

.modal h2 {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  margin-bottom: 6px;
}
.modal-sub { font-size: 13px; color: var(--text2); margin-bottom: 28px; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px; font-family: var(--font-mono);
  color: var(--text2); letter-spacing: .5px;
  margin-bottom: 6px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--text1);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,.1);
}
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--text1);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  appearance: auto;
}
.form-select:focus { border-color: var(--accent); }
.form-select option { background: var(--bg2); }

.modal-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--r);
  background: var(--accent);
  color: #000;
  font-size: 14px; font-weight: 600;
  border: none;
  margin-top: 8px;
  transition: all .2s;
}
.modal-btn:hover { background: #00f0c2; }

.modal-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text2);
}
.modal-switch a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-notice {
  background: rgba(0,136,255,.06);
  border: 1px solid rgba(0,136,255,.18);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 11px;
  color: var(--text3);
  margin-top: 14px;
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section {
  padding: 100px 2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}
.section-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px,4vw,44px);
  font-weight: 800;
  color: var(--text1);
  line-height: 1.3;
  margin-bottom: 14px;
  padding-bottom: 8px;
  overflow: visible;
}
.section-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 500px;
  margin-bottom: 56px;
  font-weight: 300;
  line-height: 1.8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links .nav-link { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
