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

:root {
  --bg:       #1c1f23;
  --surface:  #23272d;
  --surface2: #2a2f36;
  --line:     #333840;
  --text:     #d4d8de;
  --muted:    #6b7280;
  --light:    #f0f2f4;
  --accent:   #5b8dee;
  --sans:     'Barlow', sans-serif;
  --cond:     'Barlow Condensed', sans-serif;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.shell { display: flex; flex-direction: column; min-height: 100vh; }

header {
  position: sticky; top: 0; z-index: 100; background: var(--surface);
  border-bottom: 1px solid var(--line); padding: 15px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.header-profile { display: flex; flex-direction: column; gap: 2px; }
.profile-name { font-family: var(--cond); font-size: 20px; font-weight: 700; letter-spacing: 0.01em; color: var(--light); line-height: 1.15; display: flex; align-items: center; gap: 15px; text-transform: uppercase; }
.profile-role { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }
.avail { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #6dbf7e; font-family: var(--sans); font-weight: 500; text-transform: none; }
.avail::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6dbf7e; flex-shrink: 0; }

.nav-section { display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 5px; font-size: 13px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--surface2); color: var(--light); }
.nav-item .ni { font-size: 14px; opacity: .7; }

main { padding: 36px 40px; flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; }
.page { display: block; animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-title-main { font-family: var(--cond); font-size: 24px; font-weight: 600; color: var(--light); margin-bottom: 24px; letter-spacing: 0.05em; text-transform: uppercase; }

.hero-intro { max-width: 680px; font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 36px; font-weight: 300; }
.hero-intro strong { color: var(--light); font-weight: 500; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 28px; }
.info-cell { background: var(--surface); padding: 20px; }
.ic-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ic-val { font-family: var(--cond); font-size: 18px; font-weight: 600; color: var(--light); letter-spacing: 0.01em; }
.ic-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn { font-family: var(--cond); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 22px; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; transition: all .15s; border: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #4a7de0; }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--light); }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.block-header { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.block-title { font-family: var(--cond); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.block-body { padding: 20px; }

.bouton-ue { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px; font-size: 12px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; background: var(--surface2); margin-top: 12px;}
.bouton-ue:hover { background: var(--surface); color: var(--light); }

.tl { display: flex; flex-direction: column; gap: 0; }
.tl-row { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 14px 10px; border-bottom: 1px solid var(--line); margin-left: -10px; border-radius: 4px; }
.tl-row:last-child { border-bottom: none; }
.clickable-row { cursor: pointer; transition: background 0.15s; }
.clickable-row:hover { background: var(--surface2); }
.tl-y { font-size: 11px; color: var(--muted); font-weight: 400; padding-top: 2px; }
.tl-t { font-size: 13px; font-weight: 500; color: var(--light); margin-bottom: 2px; }
.tl-s { font-size: 12px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.acc-group { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.acc-header { padding: 14px 20px; background: var(--surface2); cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-family: var(--cond); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--light); transition: background 0.15s; }
.acc-header:hover { background: var(--line); }
.acc-arrow { font-size: 10px; transition: transform 0.3s ease; }
.acc-content { padding: 20px; display: none; border-top: 1px solid var(--line); }
.acc-group.open .acc-content { display: block; }
.acc-group.open .acc-arrow { transform: rotate(180deg); }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.comp-card { background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; padding: 18px; transition: border-color .15s; display: flex; flex-direction: column;}
.comp-card:hover { border-color: var(--accent); }
.comp-name { font-family: var(--cond); font-size: 17px; font-weight: 700; color: var(--light); letter-spacing: 0.02em; margin-bottom: 8px; }
.comp-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.comp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.comp-tag { font-size: 10px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; }

.tools-wrap { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.tool { font-size: 11px; color: var(--text); background: var(--surface2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 3px; transition: border-color .15s, color .15s; cursor: default; }
.tool:hover { border-color: var(--muted); color: var(--light); }

.filter-row { display: flex; gap: 0; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; width: fit-content; }
.pf { font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 16px; cursor: pointer; background: transparent; border: none; border-right: 1px solid var(--line); color: var(--muted); transition: background .15s, color .15s; }
.pf:last-child { border-right: none; }
.pf:hover { background: var(--surface2); color: var(--text); }
.pf.active { background: var(--accent); color: #fff; }
.proj-list { display: flex; flex-direction: column; gap: 10px; }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; transition: border-color .15s; }
.proj-card:hover { border-color: var(--muted); }
.proj-meta { display: flex; flex-direction: column; gap: 3px; }
.proj-type { font-family: var(--cond); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.proj-src { font-size: 11px; color: var(--muted); line-height: 1.4; }
.proj-title { font-size: 13px; font-weight: 500; color: var(--light); margin-bottom: 5px; }
.proj-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }
.proj-tags { margin-top: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 11px; color: var(--text); background: var(--surface2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 3px; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f-group { margin-bottom: 18px; }
.f-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.f-input { width: 100%; background: var(--surface2); border: 1px solid var(--line); border-radius: 4px; color: var(--light); font-family: var(--sans); font-size: 13px; font-weight: 300; padding: 9px 12px; outline: none; transition: border-color .15s; }
.f-input:focus { border-color: var(--accent); }
.f-input::placeholder { color: var(--muted); }
textarea.f-input { height: 90px; resize: none; }

.link-list { display: flex; flex-direction: column; gap: 0; }
.link-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .15s; color: var(--text); }
.link-row:first-child { border-top: 1px solid var(--line); }
.link-row:hover { padding-left: 6px; }
.link-row:hover .link-arr { color: var(--accent); }
.link-label { font-size: 13px; font-weight: 500; color: var(--light); margin-bottom: 1px; }
.link-val { font-size: 11px; color: var(--muted); }
.link-arr { color: var(--muted); font-size: 16px; transition: color .15s; }

.cv-wrapper { position: relative; display: block; margin: 0 auto; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; width: 100%; max-width: 420px; transition: border-color .15s; }
.cv-wrapper:hover { border-color: var(--muted); }
.cv-wrapper:hover .cv-overlay { opacity: 1; }
.cv-placeholder { width: 100%; height: 280px; background: var(--surface2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.cv-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; gap: 12px; opacity: 0; transition: opacity .2s; }
.cv-ov-btn { font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 16px; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.cv-ov-view { background: var(--light); color: var(--bg); }
.cv-ov-dl { background: var(--accent); color: #fff; }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 20px; right: 28px; font-size: 28px; color: #fff; cursor: pointer; background: none; border: none; line-height: 1; opacity: .7; transition: opacity .15s; }
.lb-close:hover { opacity: 1; }

.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 30px; max-width: 500px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.6); max-height: 85vh; overflow-y: auto; }
.modal-title { font-family: var(--cond); font-size: 20px; color: var(--light); margin-bottom: 12px; }
.modal-desc { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 24px; white-space: pre-wrap; }
.modal-desc strong { font-weight: 600; color: var(--light); }

.cv-mobile-actions { display: none; }
@media (max-width: 760px) {
  header { flex-direction: column; align-items: flex-start; padding: 15px 20px; }
  .nav-section { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none;}
  main { padding: 20px 15px; }
  .two-col, .contact-wrap { grid-template-columns: 1fr; }
  .proj-card { grid-template-columns: 1fr; }
  .nav-section::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; flex-shrink: 0; }
  .modal-box { padding: 25px 20px; width: 100%; }
  .cv-overlay { display: none !important; }
  .cv-mobile-actions { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
  .cv-mobile-actions .btn { flex: 1; max-width: 160px; padding: 12px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
}



.timeline-container { position: relative; max-width: 1000px; margin: 0 auto 50px auto; padding: 10px 0; }
.timeline-container::after { content: ''; position: absolute; width: 2px; background-color: var(--line); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-block { position: relative; width: 50%; padding: 12px 35px; }
.timeline-block::after { content: ''; position: absolute; width: 10px; height: 10px; right: -5px; background-color: var(--bg); border: 2px solid var(--accent); border-radius: 50%; top: 26px; z-index: 2; transition: background-color 0.15s; }
.timeline-block.right::after { left: -5px; right: auto; }
.timeline-block.left { left: 0; text-align: right; }
.timeline-block.right { left: 50%; text-align: left; }
.timeline-content { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; transition: border-color .15s, box-shadow .15s; }
.timeline-content:hover { border-color: var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.timeline-content:hover + .timeline-block::after, .timeline-content:hover::after { background-color: var(--accent); }
.timeline-date { font-family: var(--cond); font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.05em; margin-bottom: 4px; text-transform: uppercase; }
.timeline-title { font-size: 14px; font-weight: 500; color: var(--light); margin-bottom: 2px; }
.timeline-sub { font-size: 11px; color: var(--muted); margin-bottom: 8px; font-weight: 400; }
.timeline-desc { font-size: 12px; color: var(--text); line-height: 1.6; font-weight: 300; }


@media (max-width: 760px) {
  .timeline-container::after { left: 15px; }
  .timeline-block { width: 100%; padding-left: 35px; padding-right: 0; }
  .timeline-block.left { left: 0; text-align: left; }
  .timeline-block.right { left: 0; text-align: left; }
  .timeline-block::after { left: 10px; right: auto; top: 26px; }
}


.timeline-headers { display: flex; width: 100%; margin-bottom: 40px; font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); position: relative; z-index: 5;}
.th-left { width: 50%; text-align: right; padding-right: 35px; }
.th-right { width: 50%; text-align: left; padding-left: 35px; }


@media (max-width: 760px) {
  .timeline-headers { display: none; }
}