* {
  margin: 0px;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

html {
  scroll-padding-top: 0;
}

/* HEADER */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background-color: white;
  color: black;
  padding-bottom: 3rem;
}

#header a {
  color: black;
}

/* LOGO */
.logo {
  display: block;
  width: 15vw;
  height: auto;
  margin-top: 1rem;
}

.logoicon {
  display: block;
  width: 5vw;
  height: auto;
  margin-top: 1rem;
}

/* NAV */
#navigation ul {
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

/* LIENS DU MENU */
#navigation a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

#navigation a:hover {
  text-decoration: underline;
}

#topbanner {
  display: flex;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  align-items: stretch;
  padding: 0 3rem;
  gap: 15px;
}

.banner-left {
  flex: 2;
  height: 100%;
}

.banner-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-right {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banner-right img {
  flex: 1;
  width: 100%;
  height: 45%;
  object-fit: cover;
  display: block;
}
#textbanner {
  flex: 1;
  max-width: 300px;
  align-self: flex-start;
  padding-left: 20px;
}

#textbanner h1 {
  margin-bottom: 0.5rem;
}

#textbanner p {
  line-height: 1.5;
}

.button {
  display: flex;
  padding: 10px;
  border-radius: 8px;
  background-color: black;
  color: white;
  margin: 20px auto 0 auto;
}
#centerbanner {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  align-items: center;
  padding-top: 50px;
  justify-self: center;
  gap: 10px;
  text-align: center;
  padding-bottom: 50px;
}

#bottombanner {
  display: flex;
  flex-direction: column;
  height: 250px;
  max-width: 100%;
  margin-bottom: 70px;
  object-fit: cover;
}

#bottombanner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* FOOTER LAYOUT */

#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
}

#footer-left ul {
  list-style: none;
  display: flex;
  gap: 5px;
  padding: 0;
  flex-direction: column;
}

#footer-left a {
  text-decoration: none;
  color: black;
}

#footer-left a:hover {
  text-decoration: underline;
}

#footer-center {
  text-align: center;
  font-style: italic;
  font-weight: 200;
}

#footer-right {
  display: flex;
  justify-content: flex-end;
}

main[id^="page-"] {
  padding: 0 3rem 4rem;
}

.page-hero {
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  margin-left: -50px;
}

.page-hero p {
  line-height: 1.6;
  color: #333;
  margin-left: -50px;
}

.page-section {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  color: #333;
}

.page-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  left: 30px;
}

.page-section p + p {
  margin-top: 0.5rem;
}

.page-section ul {
  list-style: disc;
  margin-left: 1.3rem;
  margin-top: 0.5rem;
}

.page-section li + li {
  margin-top: 0.25rem;
}

#page-projects .page-section {
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

#contact-form {
  max-width: 600px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #000;
  outline: none;
}

.form-note {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 0.85rem;
  color: #666;
}

#page-legal .page-section {
  max-width: 800px;
}

.mobile-only {
  display: none;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  transform: scale(1.8);
}

.hamburger span {
  height: 20px;
}

#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: flex-end;
  z-index: 999;
}

#mobile-menu.open {
  display: flex;
}

.mobile-menu-overlay {
  background: white;
  width: 70%;
  max-width: 320px;
  height: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.close-mobile {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-menu-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-menu-overlay a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
}

/* MOBILE */
@media (max-width: 768px) {
  main[id^="page-"] {
    padding: 0 1.5rem 3rem;
  }

  #navigation {
    display: none;
  }

  #lang-switch {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  #topbanner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
    justify-content: center;
    text-align: center;
  }

  .banner-right {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
  }

  .banner-right img {
    flex: 1;
    width: 45%;
    height: 50%;
    object-fit: cover;
    display: block;
  }

  #textbanner {
    max-width: 350px;
    align-items: center;
    justify-content: center;
  }

  #centerbanner {
    padding: 20px;
  }

  #footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  #footer-left ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logoicon {
    width: 15vw;
    margin-top: 0;
  }
}
