body {
  max-width: 1920px;
  margin: auto;
  background-color: #fdfaf0;
}

* {
  font-family: "Inter";
  font-style: normal;
}

img {
  max-width: 100%;
  height: auto;
}

.top-header {
  background-color: #fdfaf0;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  padding-inline: 100px;
  padding-block: 30px;
  align-items: center;
}

.top-header .name {
  font-size: 26px;
}

nav ul {
  display: flex;
  list-style-type: none;
  font-size: 14px;
  margin-bottom: 0;
}

nav li {
  padding-inline: 10px;
}

nav a {
  text-decoration: none;
  color: #000;
}

.social-link img {
  width: 20px;
  height: 20px;
}

#about {
  display: flex;
  background-color: #e2cacf;
  padding-inline: 100px;
  padding-block: 100px;
  position: relative;
}

.picture.left::before {
  content: " ";
  background-color: #c61c52;
  width: 374px;
  height: 329px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.picture {
  flex: 1;
  margin: 0 20px;
  z-index: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden[style] {
  opacity: 0 !important;
  color: inherit !important;
  background-color: transparent !important;
}

.picture img {
  width: 100%;
  height: fit-content;
}

#about-me {
  flex: 2;
}

.about-me__title {
  margin-top: 1em;
  margin-bottom: 60px;
  font-size: 30px;
}

.about-me__introduction {
  font-family: "Spectral";
  font-weight: 800;
  font-style: italic;
  width: 60%;
}

#about-me p {
  width: 80%;
  font-size: 14px;
}

.modal {
  text-align: center;
}

.modal::before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.modal-dialog {
  display: inline-block;
  vertical-align: middle;
  margin: auto;
  max-width: 100%;
  max-height: 90vh;
  text-align: left;
}

.modal-content {
  background-color: #fff;
  border: none;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.3);
  display: inline-block;
  padding: 0;
}

.modal-body {
  padding: 0;
  text-align: center;
  background-color: #fff;
}

.modal-body img.lightboxImage {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  width: auto;
  margin: auto;
}

.title {
  text-align: center;
  padding-block: 2em;
}

.gallery nav {
  justify-content: center;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #000;
  background-color: #d8d3a8;

  border-radius: 0;
}

.nav-pills .nav-link {
  color: #000;
}

.item-column {
  position: relative;
  margin-bottom: 0 !important;
  padding: 0;
}

.item-column::after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.gallery-item {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0.5em;
}

.mg-prev,
.mg-next {
  width: 30px;
  height: 30px;
  border-radius: 0%;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 24px;
}

.quote {
  font-family: "Spectral";
  font-style: italic;
  width: 70%;
  margin: auto;
  padding-block: 3em;
}

.quote__text {
  font-family: Spectral;
  font-style: italic;
  font-weight: 300;
}

.quote__author {
  font-family: Spectral;
  font-weight: 800;
  font-size: 22px;
}

#services {
  margin: auto;
  background-color: #a8d5d8;
  position: relative;
}

#services .container::before {
  content: " ";
  background-color: #1c6474;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  left: 0;
  z-index: 0;
}

#services .container {
  justify-content: space-between;
  display: flex;
  padding: 2em 0;
}

.service {
  background-color: #fff;
  max-width: 390px;
  width: 30%;
  height: 337px;
  padding: 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

#contact {
  margin: auto;
  background-color: #d8d3a8;
  position: relative;
  padding-inline: 100px;
  padding-block: 100px;
}

#contact .container {
  display: flex;
}

.picture.right::before {
  content: " ";
  background-color: #787c18;
  width: 374px;
  height: 329px;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
}

.form-container {
  flex: 2;
}

form {
  display: flex;
  flex-direction: column;
  width: 70%;
  align-items: flex-start;
}

form input {
  width: 100%;
  background-color: #fff0;
  border: solid 1px;
  height: 2.5em;
  margin-bottom: 20px;
}

form textarea {
  width: 100%;
  background-color: #fff0;
  border: solid 1px;
  height: 5em;
  line-height: 2.5em;
  font-size: 1.2em;
  margin-bottom: 20px;
}

input[type="submit"] {
  color: #fff;
  background-color: #787c18;
  padding: 0.5em 1em;
}

/* Bouton Submit – unifié pour button et input */
.form-container button[type="submit"],
.form-container input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border: none;
  border-radius: 9999px;
  /* style pill */
  background-color: #787c18;
  /* ta couleur d'accent */
  color: rgb(71, 70, 70);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
  text-decoration: none;
}

.form-container button[type="submit"]:hover,
.form-container input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  /* léger assombrissement sur hover */
  background-color: #6b6f16;
}

.form-container button[type="submit"]:active,
.form-container input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.form-container button[type="submit"]:focus-visible,
.form-container input[type="submit"]:focus-visible {
  outline: 3px solid rgba(120, 124, 24, .35);
  outline-offset: 2px;
}

.form-container button[type="submit"]:disabled,
.form-container input[type="submit"]:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

@media all and (max-width: 1180px) {
  .picture {
    flex: 2;
  }

  #about,
  #contact .container {
    align-items: center;
  }

  .about-me__title {
    margin-top: 0;
    margin-bottom: 1em;
  }

  #about-me h6,
  #about-me p {
    width: 100%;
  }
}

@media all and (max-width: 1000px) {
  #about {
    flex-direction: column;
  }

  .picture {
    width: 50%;
  }

  .picture.left::before {
    width: 100%;
    height: 30%;
    position: absolute;
    bottom: auto;
    top: 0;
    left: 0;
    z-index: -1;
  }

  .about-me__title {
    text-align: center;
    margin-top: 1em;
  }

  #services .container {
    flex-direction: column;
  }

  .service {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 2em 0;
  }

  .service__description {
    margin-bottom: 1em;
  }

  #services .container::before {
    width: 30%;
    height: 100%;
    bottom: 0;
    right: 0;
    left: auto;
    z-index: 0;
  }

  #contact .container {
    flex-direction: column;
  }

  #contact .picture.right {
    margin-top: 1em;
  }

  .picture.right::before {
    width: 100%;
    height: 30%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
  }
}

@media all and (max-width: 650px) {
  .top-header {
    flex-direction: column;
    padding-inline: 0;
  }

  .top-header .nav,
  .top-header .nav ul {
    width: 100%;
    padding: 0 0 0 0;
  }

  .top-header .nav li {
    flex: 1;
    padding-block: 1em;
    text-align: center;
  }

  .picture.left::before,
  .picture.right::before {
    height: 150px;
  }

  #services .container {
    align-items: center;
  }

  .service {
    max-width: 90%;
  }

  #about,
  #contact {
    padding-inline: 2em;
    padding-block: 2em;
  }

  form {
    width: 100%;
  }

  .picture {
    width: 80%;
  }
}