/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.nav {
  background-color: #333;
  color: white;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.right-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.right-nav .hamburger-menu {
  display: none;
}

.logo img {
  height: 50px;
}

.Name a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

.mobile {
  margin-left: 0;
  display: flex !important;
}
#hidden {
  display: none;
  width: 100%;
}
#visible {
  width: 100%;
}
.cross {
  display: flex !important;
}
.hide {
  display: none !important;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
}

.nav-items {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-items:hover {
  background-color: #555;
}

.header {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url(../image/Lesaffre36.png);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
  text-align: center;
  padding: 1rem;
  margin-top: 70px;
  position: relative;
}
.header-content {
  position: absolute;
  bottom: 10%;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}

.text-bg {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ==== Main Section ==== */
.main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.left {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.left img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.contact {
  width: 100%;
  padding: 1.5rem;
  background-color: #f5f7fa;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.5rem;
}

.contact .text {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.tel .text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tel .text i {
  color: #003366;
}

.tel .text a {
  color: #003366;
  text-decoration: none;
}

.tel .text a:hover {
  text-decoration: underline;
}

/* ==== Right section ==== */
.right-main {
  flex: 1 1 400px;
  height: 400px;
  background-color: #e6ecf1;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.informations {
  margin-top: 2rem;
  background-color: #fdfdfd;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.informations .title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #003366;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.informations .text {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

.social ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 1.5rem;
}

.social li {
  font-size: 1.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social li a {
  color: #555;
  text-decoration: none;
}

.social li:hover {
  transform: scale(1.2);
}

.social .linkedin a {
  color: #0077b5;
}
.social .facebook a {
  color: #1877f2;
}
.social .mail a {
  color: #d44638;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
    padding: 1rem;
  }

  .right-main {
    display: none;
  }

  .informations {
    margin-top: 1rem;
    padding: 1rem;
  }

  .social ul {
    justify-content: center;
    gap: 2rem;
  }

  .social li {
    font-size: 2.2rem;
  }
}

.social li a {
  color: #333;
  text-decoration: none;
}

.social li:hover {
  transform: scale(1.2);
}

.social li.linkedin a {
  color: #0077b5;
}

.social li.facebook a {
  color: #1877f2;
}

.social li.mail a {
  color: #ea4335;
}

.footer {
  z-index: 1000000000;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  position: fixed;
  width: 100%;
  bottom: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #333;
  }
  .header-content {
    width: 80%;
    bottom: 15%;
  }
  .hamburger-menu {
    display: flex !important;
    width: 3.75rem;
    height: 100%;
    position: absolute;
    right: 2%;
    cursor: pointer;
    z-index: 1;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-items {
    margin: 0.5rem;
  }

  .main {
    flex-direction: column;
  }

  .right-main {
    display: none !important;
  }
  .right-nav {
    position: relative;
  }
  .right-nav .Name {
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    position: absolute;
    left: 50%;
  }
  .informations {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .social ul {
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }
  .social i {
    font-size: 2.5rem;
  }
}
