/* ============================================================
   Auriane Mazuir — Personal Website
   Dracula theme (https://draculatheme.com)
   Font: JetBrains Mono + Fraunces
   ============================================================

   Dracula palette:
   Background  #282a36   Current Line #44475a
   Foreground  #f8f8f2   Comment      #6272a4
   Cyan        #8be9fd   Green        #50fa7b
   Orange      #ffb86c   Pink         #ff79c6
   Purple      #bd93f9   Red          #ff5555
   Yellow      #f1fa8c
   ============================================================ */

:root {
  --bg-base:       #282a36;   /* Dracula Background */
  --bg-sidebar:    #21222c;   /* légèrement plus sombre */
  --bg-card:       #44475a;   /* Dracula Current Line */
  --bg-card-hover: #4d5066;
  --bg-code:       #1e1f29;
  --border:        #44475a;
  --border-light:  #6272a4;   /* Dracula Comment */

  --accent:        #8be9fd;   /* Dracula Cyan  — liens, accents principaux */
  --accent2:       #bd93f9;   /* Dracula Purple — fonctions, titres */
  --accent3:       #ffb86c;   /* Dracula Orange — strings, tags */
  --accent4:       #f1fa8c;   /* Dracula Yellow — mots-clés */
  --accent-green:  #50fa7b;   /* Dracula Green  — commentaires */
  --accent-pink:   #ff79c6;   /* Dracula Pink   — accents secondaires */

  --text-primary:  #f8f8f2;   /* Dracula Foreground */
  --text-secondary:#c8c8d4;
  --text-muted:    #6272a4;   /* Dracula Comment */
  --text-bright:   #ffffff;

  --sidebar-width: 240px;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
  --font-serif:    'Fraunces', Georgia, serif;

  --radius:        6px;
  --radius-lg:     10px;
  --transition:    0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

code {
  font-family: var(--font-mono);
  background: var(--bg-code);
  color: var(--text-bright);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 0;
}

.profile {
  padding: 0 20px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
  margin-bottom: 4px;
}

.title {
  font-size: 11px;
  color: var(--accent-pink);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.status-dot {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50fa7b;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-mono);
  transition: all var(--transition);
  cursor: pointer;
}

.nav-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--bg-card);
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}

.nav-icon {
  color: var(--accent2);
  font-weight: 700;
  font-size: 13px;
}

.sidebar-footer {
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.r-version {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

/* ── Main ──────────────────────────────────────────────── */
.main {
  padding-left: 180px;
  flex: 1;
}

/* ── Sections ──────────────────────────────────────────── */
.section {
  padding: 60px 56px 60px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.15s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.25s; }
.section:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-intro {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.8;
  font-size: 13px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.code-comment {
  font-size: 12px;
  color: var(--accent4);
  margin-bottom: 10px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--accent-pink);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.inline-link:hover { opacity: 0.75; }

.hero-bio {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
  max-width: 500px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 28px;
}

/* ── Tags ──────────────────────────────────────────────── */
.tag {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--accent2);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.tag-sm {
  background: var(--bg-code);
  border: 1px solid var(--border);
  color: var(--accent-pink);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--text-muted);
  color: #282a36;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: #6dd8f0;
  color: #282a36;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--accent);
  color: #282a36;
}

/* ── Code window ───────────────────────────────────────── */
.code-window {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-window-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-red    { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: #ffbd2e; }
.dot-green  { width: 10px; height: 10px; border-radius: 50%; background: #27c93f; }

.code-filename {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 6px;
  font-family: var(--font-mono);
}

.code-body {
  padding: 20px 22px;
  font-size: 12px;
  line-height: 1.8;
  overflow-x: auto;
}

.c-comment { color: #6272a4; }   /* Dracula Comment */
.c-fn      { color: #bd93f9; }   /* Dracula Purple   */
.c-var     { color: #ffffff; }   /* Dracula Foreground */
.c-str     { color: #f1fa8c; }   /* Dracula Yellow  */
.c-op      { color: #ff79c6; }   /* Dracula Pink    */
.c-kw      { color: #8be9fd; }   /* Dracula Cyan    */

/* ── Stats row ─────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: border-color var(--transition);
}

.stat-card:hover {
  border-color: var(--accent);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Research cards ────────────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.research-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.research-icon {
  font-size: 28px;
  color: var(--accent2);
  margin-bottom: 12px;
  font-family: serif;
  line-height: 1;
}

.research-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.research-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ── Project highlight ─────────────────────────────────── */
.project-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.highlight-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.highlight-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.highlight-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.highlight-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Publications ──────────────────────────────────────── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-year {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  min-width: 70px;
  margin-top: 2px;
  font-family: var(--font-mono);
}

.pub-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-pink);
  margin-bottom: 6px;
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 5px;
  line-height: 1.4;
}

.pub-authors {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.pub-journal {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pub-links {
  display: flex;
  gap: 8px;
}

.pub-link {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--accent2);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 3px;
  transition: all var(--transition);
}

.pub-link:hover {
  background: var(--accent2);
  color: #282a36;
  border-color: var(--accent2);
}

/* ── CV ────────────────────────────────────────────────── */
.cv-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}

.cv-header-row .section-title {
  margin-bottom: 0;
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.cv-block {
  margin-bottom: 30px;
}

.cv-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  font-family: var(--font-mono);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-icon {
  font-size: 14px;
}

.cv-entry {
  padding: 12px 0 12px 14px;
  border-left: 2px solid var(--border);
  margin-bottom: 8px;
  position: relative;
}

.cv-entry::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -4px;
  top: 18px;
}

.cv-period {
  font-size: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 3px;
}

.cv-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 2px;
}

.cv-place {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.cv-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

.lang-level {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

/* ── Skill bars ────────────────────────────────────────── */
.skill-section {
  margin-bottom: 16px;
}

.skill-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-name {
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 54px;
  font-family: var(--font-mono);
}

.skill-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-code);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));  /* purple → cyan */
  border-radius: 2px;
  transition: width 1s ease;
}

.skill-pct {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 80px;
  text-align: right;
}

/* ── Contact ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: border-color var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
}

.contact-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 11px;
  color: var(--accent2);
  word-break: break-all;
  font-family: var(--font-mono);
}

/* ── Contact form ──────────────────────────────────────── */
.contact-form-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 640px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 12px;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  height: 120px;
  resize: vertical;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero           { grid-template-columns: 1fr; }
  .stats-row      { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: repeat(2, 1fr); }
  .cv-grid        { grid-template-columns: 1fr; }
}

.mobile-header {
  display: none;
}

@media (max-width: 800px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main { padding-left: 0; padding-top: 60px; }
  .section { padding: 40px 24px; }
  .research-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    z-index: 1000;
  }

  .mobile-name {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
  }

  .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 52px; left: 0; right: 0;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 8px 0;
  }
  .mobile-menu.open { display: flex; }

  .mobile-nav-link {
    padding: 12px 24px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav-link:last-child { border-bottom: none; }
  .mobile-nav-link:hover { color: var(--accent); }
}
