:root {
  --bg: #0b1020;
  --text: #e3e8f3;
  --accent: #00b4d8;
  --card: #141a2a;
  --muted: #7a8699;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

ul {
  list-style: none;
  padding-left: 1.2em;
}

ul li {
  position: relative;
  margin-bottom: 0.4em;
  padding-left: 1.2em;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4em;
  height: 0.4em;
  background-color: #4fa3ff;
  border-radius: 50%;
  box-shadow: 0 0 4px #4fa3ff;
}

.avatar-infos {
  line-height: 0.6;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

.header {
  background: rgba(20, 26, 42, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1e263a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 
.avatar {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  color: white;
}
  */

.subtitle {
  font-size: 14px;
  color: var(--accent);
}

.infos {
  font-size: 13px;
  color: var(--muted);
}

.navbar {
  display: flex;
  gap: 14px;
}

.navbar a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

a.gitlab {
  color: var(--text);
  text-decoration: none;
  color: #FC6D26;
  transition: color 0.3s;
}

a.gitlab:hover {
  color: #e65c20;
}

.navbar a:hover {
  background: var(--accent);
  color: #fff;
}

.navbar .nav-contact {
  color: #ffffff;
  font-weight: 600;
  border: 1px solid #1e3a8a; /* bleu nuit */
  background-color: #1a2238; /* fond bleu foncé */
  padding: 6px 16px;
  border-radius: 4px; /* angles légers, pas arrondis */
  transition: all 0.3s ease;
}

.navbar .nav-contact i {
  margin-right: 6px;
}

.navbar .nav-contact:hover {
  background-color: #2563eb; /* bleu plus clair au hover */
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
  transform: scale(1.04);
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid #1e263a;
}

section {
  scroll-margin-top: 254px; /* Ajuste selon la hauteur de ton header */
}

h2 {
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--card);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.skill-levels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill .label {
  flex: 0 0 100px;
  font-size: 14px;
  color: var(--text);
}

.gauge {
  position: relative;
  flex: 1;
  height: 10px;
  background: #1e263a;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 12px;
}

/* Jauge interne */
.gauge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 1s ease-in-out, background 0.4s;
}

/* Couleurs selon le niveau */
.gauge[data-level="1"].visible::before { width: 25%; background: #d9534f; }  /* faible */
.gauge[data-level="2"].visible::before { width: 50%; background: #f0ad4e; }  /* moyen */
.gauge[data-level="3"].visible::before { width: 75%; background: #5bc0de; }  /* bon niveau */
.gauge[data-level="4"].visible::before { width: 100%; background: #5cb85c; } /* expert */

.timeline .job {
  margin-bottom: 25px;
}

.timeline .job h3 {
  margin: 0 0 6px;
}

.date {
  color: var(--muted);
  font-size: 13px;
}

.education li {
  margin-bottom: 8px;
}

.interets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.footer {
  text-align: center;
  padding: 30px 0;
  font-size: 13px;
  color: var(--muted);
}

.close-btn {
  position: fixed;
  top: 15px;
  right: 30px;
  font-size: 40px;
  color: #5f5b59;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
  z-index: 1000;
}

.close-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #0A66C2; /* bleu LinkedIn */
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
  margin: 10px;
}

.linkedin-btn:hover {
  background-color: #084d92; /* bleu plus sombre au hover */
  transform: scale(1.1);
  box-shadow: 0 0 10px #fcfcfc; /* halo orange GitLab */
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #0A66C2; /* orange GitLab */
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
  margin: 10px;
}

.mail-btn:hover {
  background-color: #084d92; /* nuance plus foncée */
  transform: scale(1.1);
  box-shadow: 0 0 10px #fcfcfc; /* halo GitLab */
}

.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}

.avatar {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0A66C2; /* contour orange GitLab */
  box-shadow: 0 0 15px rgba(172, 160, 240, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(53, 72, 156, 0.7);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #ffffff;
  background: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.status i {
  color: #ffffff;
  font-size: 16px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #FC6D26; /* orange GitLab */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 4px rgba(252, 109, 38, 0.8);
}

.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 70px;
  height: 70px;
  background-color: #1e3a8a; /* bleu nuit */
  color: #ffffff;
  border: 1px solid #2563eb; /* contour bleu clair */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top:hover {
  background-color: #2563eb; /* bleu plus lumineux */
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  transform: translateY(-3px);
}

/* Rendre le bouton visible après un certain scroll */
.scroll-top.show {
  opacity: 1;
  pointer-events: all;
}
