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

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --border:    #30363d;
  --green:     #39d353;
  --green-dim: #238636;
  --cyan:      #58a6ff;
  --yellow:    #e3b341;
  --red:       #f85149;
  --purple:    #bc8cff;
  --text:      #c9d1d9;
  --text-dim:  #8b949e;
  --prompt:    #79c0ff;
  --ubuntu:    #E95420;
  --debian:    #D70A53;
}

/* ── Neofetch block ── */
.neofetch {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin: 6px 0 4px;
  flex-wrap: wrap;
}
.neofetch-logo {
  color: var(--ubuntu);
  line-height: 1.25;
  font-size: 12px;
  flex-shrink: 0;
  user-select: none;
  white-space: pre;
}
.neofetch-logo .deb { color: var(--debian); }

.neofetch-info { flex: 1; min-width: 220px; }
.neofetch-user {
  color: var(--ubuntu);
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 2px;
}
.neofetch-user span { color: var(--text); }
.neofetch-sep { border: none; border-top: 1px solid var(--border); margin: 4px 0 6px; }

.nf-row { display: flex; gap: 0; font-size: 12px; margin: 2px 0; }
.nf-key   { color: var(--cyan); font-weight: bold; min-width: 110px; }
.nf-val   { color: var(--text); }

.nf-colors { display: flex; gap: 4px; margin-top: 8px; }
.nf-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
}

/* ── Ubuntu/Debian skill tags ── */
.skill-tag.ubuntu {
  border-color: var(--ubuntu);
  color: var(--ubuntu);
}
.skill-tag.debian {
  border-color: var(--debian);
  color: var(--debian);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 12px 60px;
}

/* ── Terminal window ── */
#terminal {
  width: 100%;
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  flex-direction: column;
  background: #2d2d2d;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

/* Ligne menus (style GNOME Terminal) */
.terminal-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px 2px;
  background: #3c3c3c;
  border-bottom: 1px solid #1a1a1a;
}

.terminal-menus {
  display: flex;
  gap: 2px;
}

.terminal-menu-item {
  color: #d0d0d0;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 3px;
  cursor: default;
}
.terminal-menu-item:hover { background: rgba(255,255,255,.1); }

/* ── Dropdown Aide ── */
.terminal-menu-dropdown {
  position: relative;
}
.terminal-menu-dropdown:hover .dropdown-content { display: block; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #3c3c3c;
  border: 1px solid #1a1a1a;
  border-top: none;
  min-width: 120px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.dropdown-content a {
  display: block;
  color: #d0d0d0;
  font-size: 12px;
  padding: 5px 14px;
  text-decoration: none;
  font-family: 'Courier New', monospace;
}
.dropdown-content a:hover { background: rgba(255,255,255,.1); color: #fff; }

.terminal-close {
  color: #aaa;
  font-size: 13px;
  padding: 0 6px;
  cursor: default;
  border-radius: 3px;
}
.terminal-close:hover { background: #c0392b; color: #fff; }

/* Ligne titre avec onglet */
.terminal-tabbar {
  display: flex;
  align-items: flex-end;
  padding: 4px 8px 0;
  gap: 2px;
}

.terminal-tab {
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  padding: 4px 16px 4px 12px;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-tab-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.terminal-tab-close {
  color: var(--text-dim);
  font-size: 11px;
  margin-left: 4px;
}
.terminal-tab-close:hover { color: var(--red); }

/* ── Output area ── */
#output {
  padding: 20px 24px 30px;
}

/* ── Lines ── */
.line { display: block; white-space: pre-wrap; word-break: break-word; }

.prompt {
  color: var(--prompt);
  font-weight: bold;
}
.prompt::before { content: 'florian@cv:~$ '; }

.cmd        { color: var(--green); }
.comment    { color: var(--text-dim); }

.blank { display: block; height: 10px; }

/* ── Header / whoami ── */
.ascii-name {
  color: var(--green);
  font-size: 13px;
  line-height: 1.3;
  margin: 4px 0 2px;
}

.title-line   { color: var(--cyan); font-size: 15px; font-weight: bold; }
.subtitle-line{ color: var(--text-dim); font-size: 13px; }

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.tag {
  background: var(--green-dim);
  color: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 12px;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px 20px;
  margin: 6px 0;
}
.contact-item { color: var(--text); }
.contact-item a { color: var(--cyan); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-icon { color: var(--yellow); margin-right: 6px; }

/* ── Section header ── */
.section-title {
  color: var(--yellow);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  margin: 2px 0 8px;
  font-size: 15px;
  letter-spacing: 1px;
}

/* ── Skills ── */
.skills-table { width: 100%; border-collapse: collapse; margin: 4px 0; }
.skills-table td { padding: 5px 10px; vertical-align: top; }
.skills-table td:first-child {
  color: var(--cyan);
  white-space: nowrap;
  width: 220px;
  font-weight: bold;
}
.skills-table tr:nth-child(even) td { background: rgba(255,255,255,.03); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tag {
  background: #1c2128;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 12px;
}

/* ── Experience ── */
.exp-block { margin: 12px 0 18px; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.exp-title { color: var(--green); font-weight: bold; font-size: 14px; }
.exp-period { color: var(--purple); font-size: 12px; }
.exp-company { color: var(--cyan); font-size: 13px; margin: 2px 0; }
.exp-context { color: var(--text-dim); font-style: italic; font-size: 12px; margin-bottom: 4px; }

.exp-list { list-style: none; padding: 0; }
.exp-list li {
  padding: 2px 0 2px 18px;
  position: relative;
  color: var(--text);
  font-size: 13px;
}
.exp-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green-dim);
}

.exp-env {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.exp-env span { color: var(--yellow); }

.exp-divider { border: none; border-top: 1px dashed var(--border); margin: 14px 0 0; }

/* ── Education ── */
.edu-block { margin: 8px 0 12px; }
.edu-title  { color: var(--green); font-weight: bold; font-size: 13px; }
.edu-period { color: var(--purple); font-size: 12px; }
.edu-detail { color: var(--text); font-size: 13px; }

/* ── Interests ── */
.interest-list { list-style: none; padding: 0; }
.interest-list li {
  padding: 2px 0 2px 18px;
  position: relative;
  font-size: 13px;
}
.interest-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ── Cursor ── */
.cursor {
  display: inline-block;
  width: 9px; height: 15px;
  background: var(--green);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Freelance box ── */
.freelance-box {
  border-left: 3px solid var(--yellow);
  background: rgba(227, 179, 65, 0.07);
  border-radius: 0 6px 6px 0;
  padding: 8px 14px;
  margin: 8px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}
.freelance-box a { color: var(--yellow); text-decoration: none; }
.freelance-box a:hover { text-decoration: underline; }
.freelance-title {
  display: block;
  color: var(--yellow);
  font-weight: bold;
  margin-bottom: 4px;
}

/* ── Summary box ── */
.summary-box {
  border-left: 3px solid var(--green-dim);
  padding: 8px 14px;
  margin: 6px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  body { padding: 0; }
  #terminal { border-radius: 0; border-left: none; border-right: none; }
  #output { padding: 14px 14px 24px; }
  .skills-table td:first-child { width: 140px; font-size: 12px; }
  .exp-header { flex-direction: column; }
}


