body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: rgb(58, 8, 133);
}

/* Conteneur global */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* === HEADER / NAVIGATION === */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 600;
  font-size: 1.3rem;
  color: rgb(58, 8, 133);
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand:hover {
  color: rgb(58, 8, 133);
}

.main-nav a {
  color:rgb(58, 8, 133);
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color:rgb(58, 8, 133);
}

.main-nav .active {
  color:rgb(58, 8, 133) ;
  border-bottom: 2px solid rgb(58, 8, 133);
  padding-bottom: 4px;
}


.main-nav .cta {
  background: rgb(58, 8, 133);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-weight: 500;
}
.main-nav .cta:hover {
  background-color:rgb(58, 8, 133);
}

/* Section compétences */
.section-contact {
  background: #f9f9f9;
  padding: 60px 0;
  font-family: 'Segoe UI', sans-serif;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: rgb(58, 8, 133);
  margin-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background:rgb(58, 8, 133);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.skill h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 15px;
}

.skill-bar {
  background: #eee;
  border-radius: 25px;
  overflow: hidden;
  height: 20px;
  position: relative;
}

.skill-level {
  height: 100%;
  background: linear-gradient(rgb(58, 8, 133));
  border-radius: 25px;
  width: 0;
  position: relative;
  transition: width 1.5s ease-in-out;
}

.skill-level::after {
  content: attr(data-percent);
  position: absolute;
  right: 10px;
  top: 0;
  height: 100%;
  line-height: 20px;
  font-size: 0.8rem;
  color: #fff;
  font-weight: bold;
}

/* Animation au chargement */
.skills-grid .skill-level {
  animation: fillBar 1.5s forwards;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--skill-width); }
}


/* === FOOTER === */
.site-footer {
  background-color: rgb(58, 8, 133);
  color: #f1f5f9;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}

