/* ------------------ Global ------------------ */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #F4F7FA;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
  color: #222831;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ------------------ Navbar ------------------ */
#navbar {
  display: flex;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  background: #0D3B66;
  width: 100%;
  padding: 8px 20px;
  height: 60px;
  box-sizing: border-box;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#nav-title {
  margin: 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: #F4F7FA;
}

#list-nav {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-text {
  color: #F4F7FA;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-text:hover {
  color: #00A6ED;
  text-decoration: underline;
}

.nav-icons {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.nav-icons a {
  margin-right: 12px;
  font-size: 1.2rem;
  color: #F4F7FA;
}

.nav-icons a:hover {
  color: #00A6ED;
}

#nav-right-part {
  display: flex;
  align-items: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 32px;
  height: 32px;
}

.hamburger span {
  height: 4px;
  width: 100%;
  background: #F4F7FA;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.4s;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 59, 102, 0.98);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

#mobile-menu.active {
  display: flex;
}

#mobile-menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

#mobile-menu li {
  padding: 15px 0;
}

#mobile-menu .nav-text {
  color: #fff;
  font-size: 1.2rem;
}

/* ------------------ Main ------------------ */
#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 60px;
  text-align: center;
}

#main-img {
  width: 280px;
}

#main-title {
  color: #0D3B66;
  font-weight: bold;
  font-size: 2.5rem;
}

#main-desc {
  color: #333;
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 40vw;
  margin: auto;
}

.btn-main {
  display: inline-block;
  border-radius: 25px;
  padding: 12px 24px;
  background: #00A6ED;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 10px;
}

.btn-main:hover {
  background: #007BB5;
}

/* ------------------ Compétences ------------------ */

#tech-skills {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #F4F7FA 0%, #EAF0F6 100%);
  position: relative;
  overflow: hidden;
}

#tech-skills > * {
  position: relative;
  z-index: 2;
}

.section-title {
  color: #0D3B66;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#tech-skills > p {
  color: #555;
  font-size: 1.2rem;
  margin-bottom: 50px;
  font-weight: 400;
}

#skills-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skill-category {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 
    0 10px 30px rgba(13, 59, 102, 0.1),
    0 1px 8px rgba(13, 59, 102, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 166, 237, 0.1);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00A6ED 0%, #007BB5 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.skill-category:hover::before {
  transform: scaleX(1);
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(13, 59, 102, 0.15),
    0 5px 15px rgba(0, 166, 237, 0.1);
  border-color: rgba(0, 166, 237, 0.3);
}

.skill-category p {
  color: #0D3B66;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 25px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-category i {
  color: #00A6ED;
  font-size: 1.6rem;
  padding: 8px;
  background: rgba(0, 166, 237, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.skill-category:hover h3 i {
  transform: scale(1.1);
  background: rgba(0, 166, 237, 0.2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.skill {
  background: linear-gradient(135deg, #EAF0F6 0%, #E1ECF4 100%);
  border-radius: 25px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #0D3B66;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.skill:hover::before {
  left: 100%;
}

.skill:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #00A6ED 0%, #007BB5 100%);
  color: white;
  border-color: rgba(0, 166, 237, 0.3);
  box-shadow: 0 8px 25px rgba(0, 166, 237, 0.3);
}

/* ------------------ Formations ------------------ */
#formation-section {
  padding: 60px 20px;
  text-align: center;
}

.formation-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.formation-card {
 background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  transition: transform 0.3s ease;
  position: relative;
}

.formation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00A6ED 0%, #007BB5 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.formation-card:hover::before {
  transform: scaleX(1);
}

.formation-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(13, 59, 102, 0.15),
    0 5px 15px rgba(0, 166, 237, 0.1);
  border-color: rgba(0, 166, 237, 0.3);
}

.card-title {
  color: #00A6ED;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ------------------ Contact ------------------ */
#sec-contact {
  background: #EAF0F6;
  width: 50%;
  margin: 75px auto;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

#contact-div {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.infos-contact {
  max-width: 300px;
}

.vertical-bar {
  background: #222831;
  width: 2px;
}

.fa-phone,
.fa-envelope {
  font-size: 30px;
  color: #0D3B66;
  margin-bottom: 10px;
}

.fa-phone:hover,
.fa-envelope:hover {
  color: #00A6ED;
}

/* ------------------ Footer ------------------ */
#footer {
  background: #0D3B66;
  color: #F4F7FA;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
}

.footer-icons {
  margin-top: 10px;
}

.footer-icons a {
  color: #F4F7FA;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: #00A6ED;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 480px) {
  #tech-skills {
    padding: 60px 15px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }

  #nav-right-part {
    display: none;
  }

  #main-img {
    width: 220px;
  }

  #main-title {
    font-size: 2rem;
  }

  #main-desc {
    font-size: 1rem;
    max-width: 95vw;
  }

  .section-title {
    font-size: 1.5rem;
  }

  #sec-contact {
    width: 95%;
    margin: 30px auto;
  }

  .vertical-bar {
    display: none;
  }

  #skills-lists {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 10px;
  }

  .skill-category {
    padding: 25px 20px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .skill {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 18px;
  }

  #main-img {
    width: 250px;
  }

  #main-title {
    font-size: 2.2rem;
  }

  #main-desc {
    font-size: 1.2rem;
    max-width: 80vw;
  }

  .section-title {
    font-size: 2rem;
  }

  #sec-contact {
    width: 80%;
  }
}

@media (min-width: 1025px) {
  #main-desc {
    max-width: 40vw;
  }
}