/* poppins-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2');
}
/* poppins-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/poppins-v24-latin-500.woff2') format('woff2');
}
/* poppins-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/poppins-v24-latin-600.woff2') format('woff2');
}
/* poppins-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/poppins-v24-latin-700.woff2') format('woff2');
}

:root {
  --primary: #1f61ff;
  --primary-dark: #0f4be6;
  --primary-light: #f3f6fd;
  --bg: #fbfdff;
  --bg2: #f6f9ff;
  --muted: #6c6f76;
  --white: #ffffff;
  --text: #0f1720;
  --shadow: 0 8px 30px rgba(29, 39, 62, 0.06);
  --dark1: #0f1720;
  --primary-color: #1f61ff;
}

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

html {
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  transition: background 0.4s ease;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: transparent;
  transition: color 0.4s ease;
}

header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 18px rgba(31, 97, 255, 0.18);
}

.logo .txt {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  transition: color 0.3s;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(243, 246, 255, 0.85);
  border-radius: 42px;
  padding: 10px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 97, 255, 0.06);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

html.dark .nav-pill {
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-pill a {
  padding: 10px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-radius: 28px;
  transition: all 0.18s ease;
}

.nav-pill a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-pill .active {
  background: rgba(31, 97, 255, 0.08);
  color: var(--primary);
}

.action-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(31, 97, 255, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(31, 97, 255, 0.22);
}

.theme-toggle {
  cursor: pointer;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(31, 97, 255, 0.12);
  transition: background 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

html.dark .theme-toggle {
  background: #1e242f;
}

button.burger {
  border: none;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(31, 97, 255, 0.12);
  transition: all 0.25s ease;
  z-index: 1001;
}

html.dark .burger {
  background: #1e242f;
}

.burger span {
  position: absolute;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.burger span:nth-child(1) {
  top: 13px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 29px;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-only {
  display: none;
}

.nav-header {
  display: none;
}
@media (max-width: 820px) {
  .burger {
    display: flex;
  }
  .contact-cta {
    display: none !important;
  }
  .action-wrap {
    gap: 10px;
  }
  .nav-pill {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 40px 40px 56px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.6, 0.05, 0.28, 0.91), opacity 0.5s ease;
    z-index: 999;
    overflow-y: auto;
    border-radius: 0;
    gap: 0;
  }
  html.dark .nav-pill {
    background: #161b22;
  }
  .nav-pill.active {
    transform: translateX(0);
    opacity: 1;
  }
  .nav-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
  }
  .nav-header .logo .mark {
    width: 38px;
    height: 38px;
  }
  .nav-header .logo .txt {
    font-size: 17px;
    color: var(--text);
  }
  .nav-pill a {
    display: block;
    width: 100%;
    font-size: 17px;
    font-weight: 500;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 0;
  }
  .nav-pill.active a {
    opacity: 1;
    transform: translateX(0);
  }
  .nav-pill a:nth-child(n + 2) {
    transition-delay: 0.1s;
  }
  .mobile-only {
    display: block;
    width: 100%;
    margin-top: 28px;
  }
  .scrolled {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  header {
    top: 0;
  }
}

section {
  margin: 80px auto 0;
  max-width: 1200px;
  width: 100%;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
}

section p {
  color: var(--muted);
  text-align: center;
}

#about {
  max-width: 1200px;
  margin: 180px auto 0;
  padding: 0 40px;
}

#about h1 {
  font-size: 2em;
}

.about-container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.intro {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 32px;
  text-align: left;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin: 10px 0;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid var(--text);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.about-container img {
  max-width: 400px;
  width: 100%;
  border-radius: 16px;
}

.skills-pyramid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.skills-pyramid .row {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
}

.icon-card {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.icon-card img {
  width: 45px;
  height: 45px;
}

.icon-card .tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  white-space: normal;
  width: 220px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  pointer-events: none;
  text-align: center;
  z-index: 2;
}

.icon-card:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .skills-pyramid {
    gap: 18px;
    transform: scale(0.95);
  }
  .skills-pyramid .row {
    gap: 16px;
  }
  .icon-card {
    width: 58px;
    height: 58px;
  }
  .icon-card img {
    width: 30px;
    height: 30px;
  }
  .icon-card .tooltip {
    top: 110%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    white-space: normal;
    max-width: 140px;
    font-size: 11px;
    padding: 5px 7px;
  }
  .icon-card:hover .tooltip {
    transform: translateX(-50%) translateY(0);
  }
}
.projet-container {
  display: grid;
  gap: 25px;
  margin: 20px 0;
  flex-wrap: nowrap;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

#projets .card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: 100%;
  max-width: 500px;
}

#projets .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

#projets .card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

#projets .card:hover img {
  transform: scale(1.08);
}

.card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.1));
  transition: opacity 0.3s ease;
}

.card .infos {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: #fff;
  z-index: 2;
}

.card .infos .tags {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.card .infos .tags span {
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card .infos h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card .infos .year {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .projet-container {
    flex-wrap: wrap;
    grid-template-columns: repeat(1, 1fr);
    padding: 20px
  }
  .card .infos h3 {
    font-size: 1.1rem;
  }
}

footer {
  text-align: center;
  color: var(--muted);
  margin-top: 180px;
}

footer h2 {
  font-size: 14vw;
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
}

.experience-card {
  position: sticky;
  top: 130px;
  margin-bottom: 40px;
  z-index: 1;
}

.experience-card:nth-child(2) {
  top: 150px;
  z-index: 2;
}

.experience-card:nth-child(3) {
  top: 180px;
  z-index: 3;
}

.experience-card:nth-child(4) {
  top: 180px;
  z-index: 4;
}

.experience-card:nth-child(5) {
  top: 180px;
  z-index: 5;
}

.experience-body {
  width: 90%;
  margin: 0 auto;
  padding: 40px 48px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.experience-body:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.experience-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 18px;
}

.experience-title {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}

.experience-title h3 {
  margin: 0;
  font-weight: 700;
}

.experience-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.company {
  background-color: #fdeecb;
  color: #664200;
}

.badge.date {
  background-color: #e8efff;
  color: #1e4cd3;
}

.badge.type {
  background-color: #def8eb;
  color: #057e53;
}

.experience-details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.experience-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.experience-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 5px;
}

.experience-item h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.content {
  margin-bottom: 10px;
}

.content p,
.content li {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.3;
  margin-top: 5px;
  text-align: justify;
}

.content ul {
  padding: 0 20px;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.icon.red {
  background-color: #fee2e2;
}

.icon.blue {
  background-color: #dbeafe;
}

.icon.yellow {
  background-color: #fff2c6;
}

.icon.green {
  background-color: #dcfce7;
}

.icon-problem {
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23dc2626' stroke-width='2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/></svg>");
}

.icon-approach {
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%232563eb' stroke-width='2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/></svg>");
}

.icon-actions {
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23d97706' stroke-width='2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M13 10V3L4 14h7v7l9-11h-7z'/></svg>");
}

.icon-results {
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%2316a34a' stroke-width='2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/></svg>");
}
.impact-box {
  text-align: center;
  border-radius: 12px;
}

.impact-box h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.metrics > div {
  background: #fafafa;
  border-radius: 12px;
  padding: 24px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.metrics > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.metrics strong {
  display: block;
  font-size: 1.8rem;
  color: #664200;
  font-weight: 700;
}

.metrics span {
  display: block;
  font-size: 0.85rem;
  color: #374151;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .experience-title {
    flex-direction: row;
    justify-content: space-between;
  }
  .experience-meta {
    justify-content: space-between;
    align-items: center;
  }
  .badge.company {
    margin-left: 12px;
  }
  .experience-details {
    margin-left: auto;
  }
}

@media (max-width: 991px) {
  .experience-card:nth-child(2),
  .experience-card:nth-child(3),
  .experience-card:nth-child(4),
  .experience-card:nth-child(5) {
    top: -700px;
  }
  .experience-body {
    width: 94%;
    margin: 0 auto;
    padding: 20px;
    text-align: justify;
  }
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .impact-box.side {
    position: relative;
    top: 0;
  }
  .impact-box.side .metrics {
    flex-direction: row;
    justify-content: center;
  }
  .experience-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .experience-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .experience-details {
    flex-wrap: wrap;
  }
}

.footer {
  background: transparent;
  padding: 80px 20px 60px;
  text-align: center;
  color: var(--muted);
  position: relative;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 10px 18px;
  border-radius: 30px;
  background: rgba(31, 97, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-link:hover {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 97, 255, 0.25);
}

.contact-link .icon {
  font-size: 1.1rem;
  opacity: 0.8;
}

.footer-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--primary);
  margin-top: 10px;
}

.footer-signature {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.8;
}

html.dark {
  --bg: #0d1117;
  --bg2: #161b22;
  --white: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

html.dark .nav-pill,
html.dark .our-team-body,
html.dark .project-card,
html.dark .skills-section,
html.dark .minimal-footer,
html.dark .footer-signature {
  background: var(--bg2);
}

html.dark .scrolled {
  background-color: #161b22;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html.dark .metrics > div {
  background: #1e242f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html.dark .metrics strong {
  color: #ffd95b;
}

html.dark .metrics span {
  color: #c9d1d9;
}

html.dark .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 97, 255, 0.25);
}

html.dark .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 36px rgba(31, 97, 255, 0.35);
}

html.dark .btn-secondary {
  border: 2px solid var(--text);
  color: var(--text);
}

html.dark .btn-secondary:hover {
  background: var(--text);
  color: #0d1117;
}

html.dark .experience-body,
html.dark #projets .card,
html.dark .icon-card {
  background: #1e242f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html.dark .icon-card .tooltip {
  background: rgba(0, 0, 0, 0.9);
  color: #f0f6fc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

html.dark footer {
  color: var(--muted);
}

html.dark .nav-pill a {
  color: var(--text);
}

html.dark .nav-pill a:hover {
  color: var(--primary);
}

html.dark .nav-pill .active {
  background: rgba(31, 97, 255, 0.12);
  color: var(--primary);
}

html.dark .logo .txt {
  color: #e6edf3;
}

html.dark .intro {
  color: var(--muted);
}

html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: var(--text);
}

.d-flex {
  display: flex;
}

.d-inline-flex {
  display: inline-flex;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-center {
  align-items: center;
}

.align-items-stretch {
  align-items: stretch;
}

.align-items-baseline {
  align-items: baseline;
}

.gap-10 {
  gap: 10px;
}

html.dark .contact-link {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

html.dark .contact-link:hover {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
}
