/* GENERAL */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 40px;
  flex-wrap: wrap;
}

/* PROFILE */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.name {
  font-size: 18px;
  font-weight: bold;
  color: #007acc;
}

/* NAVIGATION BAR */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-grow: 1;
}

.nav-links li a {
  text-decoration: none;
  color: #005f99;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: #e8f3ff;
  white-space: nowrap;
}

.nav-links li a:hover {
  background-color: #007acc;
  color: white;
}

.nav-links li a.active {
  background-color: #005f99;
  color: white;
  font-weight: bold;
}

/* ====== HAMBURGER ====== */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #005f99;
}

/* RESPONSIVE MENU */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  #navbar {
    display: none;
    width: 100%;
    background-color: #e3f2fd;
    padding: 15px 0;
  }

  #navbar.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-links li a {
    width: 80%;
    text-align: center;
    padding: 12px;
  }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background-color: #eee;
  border-top: 1px solid #ccc;
  margin-top: 40px;
}

/* PAGE WELCOME */
.welcome-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  height: calc(100vh - 120px);
}

.welcome-image-section {
  background-color: #e6f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.welcome-image img {
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.welcome-text-section {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding: 60px;
}

.welcome-text {
  max-width: 600px;
}

.welcome-text h2 {
  color: #0056b3;
  margin-bottom: 15px;
}

.welcome-text p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ====== BOUTONS ====== */
.contact-buttons {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.btn {
  width: 200px;
  padding: 14px 0;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  background: linear-gradient(90deg, #007BFF, #00C6FF);
  background-size: 200% 100%;
  transition: background-position 0.6s ease, transform 0.2s ease, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Mobile buttons */
@media (max-width: 900px) {
  .contact-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contact-buttons {
    grid-template-columns: 1fr;
  }
}

/* ENGINEERING PAGE */
.engineering-container {
  display: flex;
  min-height: calc(100vh - 80px);
}

.engineering-left {
  flex: 1;
  background-color: #d6ebff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engineering-photo {
  width: 70%;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.engineering-right {
  flex: 2;
  background-color: #f4f7fb;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.engineering-right h1 {
  color: #1e90ff;
  margin-bottom: 10px;
}

.engineering-right h2 {
  color: #0066cc;
  margin-top: 40px;
}

.course-list {
  list-style-type: "📘 ";
  padding-left: 20px;
  line-height: 1.8;
  font-size: 16px;
}

/* Responsive layout */
@media (max-width: 900px) {
  .engineering-container {
    flex-direction: column;
  }

  .engineering-left {
    height: 300px;
  }

  .engineering-right {
    padding: 30px;
  }

  .engineering-photo {
    width: 60%;
  }
}

