section#welcome {
  justify-content: space-around;
  position: relative;
  margin-top: calc(-1 * var(--navbar-height-sticky));
  opacity: 1;
  min-height: 100vh;
}

section#welcome > div.container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
  gap: 3rem;
}

section#welcome > figure {
  display: none;
}

section#welcome h1 {
  line-height: 30px;
  margin-bottom: 20px;
  color: #fff;
  width: 660px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
  font-size: calc(var(--h1-font-size) + 40%);
}

section#welcome header {
  margin-bottom: 2rem;
}

section#welcome h1,
section#welcome header p {
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

section#welcome header p {
  font-size: var(--h4-font-size);
}

section#welcome header .welcome-block-container {
  display: flex;
  gap: 15px;
  flex-direction: column;
}

section#welcome div.ref-contact-now {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

section#welcome div.presentation {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

section#welcome .welcome-block-desc {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

section#welcome .welcome-block-desc p {
  font-weight: bold;
}

section#welcome .welcome-block-desc img {
  width: 18px;
  object-fit: contain;
}

section#welcome div.presentation > div a {
  color: #fff;
  font-weight: 700;
  font-size: x-large;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

section#welcome button.start {
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: #fff;
  color: #000;
}

section#welcome button.start:hover {
  background-color: var(--primary-color);
}

section#welcome button.tel {
  border: 1px solid #fff;
  display: flex;
  gap: 20px;
  align-items: center;
  color: #000000;
  background-color: #ffffff;
}

section#welcome .ref-contact-now a:hover {
  transition: var(--default-transition);
}

section#welcome .ref-contact-now a:hover {
  transform: var(--default-transform);
}

section#welcome div.service-form {
  background-color: white;
  border-radius: 3px;
  padding: 3rem 2rem 3rem 2rem;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  min-height: 350px;
  border-top: 6px solid var(--secondary-color);
}

section#welcome div.service-form h2 {
  font-size: 135%;
}

section#welcome div.service-form > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section#welcome div.service-form a {
  text-decoration: underline;
}

section#welcome div.service-form > div.part-1 {
  gap: 30px;
  margin-bottom: 4rem;
}

section#welcome div.service-form > div.part-2 {
  display: none;
}

section#welcome div.service-form > div.part-2 p {
  margin-top: 20px;
}

section#welcome div.service-form > div.part-2 form p {
  margin-top: 0px;
}

section#welcome div.service-form > div.part-2 > form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section#welcome div.service-form > div.part-2 > form a {
  text-align: center;
}

section#welcome div.service-form div.part-2 span#selected-service {
  text-decoration: underline;
}

section#welcome div.service-form div.part-2 select#id_service {
  display: none;
}

section#welcome .word {
  margin: auto;
  color: #00732c;
  font-size: var(--h2-font-size);
  height: 25px;
}

div.ban {
  position: absolute;
  bottom: 50px;
  display: flex;
  justify-content: center;
  flex-direction: row;
  width: 100%;
  gap: 30px;
}

div.ban figure {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  transition: var(--default-transition);
}

div.ban figure:hover {
  transform: var(--default-transform);
}

div.ban figure img {
  width: 56px;
  height: 56px;
  filter: invert(1);
}

div.ban figure figcaption {
  color: white;
}

.feature-item {
  text-align: center;
  padding: 25px 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-item:hover .feature-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-item:hover .feature-icon::before {
  opacity: 1;
}

.feature-icon svg {
  width: 35px;
  height: 35px;
  fill: black;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon svg {
  transform: scale(1.1);
}

.feature-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0.95;
  transition: all 0.3s ease;
  color: #ffffff;
}

.feature-item:hover .feature-text {
  opacity: 1;
  color: #ffffff;
}

.icon-radical {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0); /* blanc cassé */
}
.icon-local {
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8); /* gris très clair */
}
.icon-immediate {
  background: linear-gradient(135deg, #f2f2f2, #dcdcdc); /* gris doux */
}
.icon-region {
  background: linear-gradient(135deg, #f7f7f7, #e5e5e5); /* blanc doux */
}
.icon-vehicle {
  background: linear-gradient(135deg, #f6f6f6, #e3e3e3); /* gris clair */
}
.icon-satisfaction {
  background: linear-gradient(135deg, #f4f4f4, #dedede); /* gris léger */
}

.icon-satisfaction {
  animation: gentle-pulse 3s ease-in-out infinite;
}

.icon-immediate {
  animation: 2s ease-in-out infinite alternate;
}

@keyframes gentle-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 1196px) {
  section#welcome {
    align-items: center;
    padding: 0;
    flex-direction: column;
    text-align: center;
  }

  .ref-contact-now a {
    font-size: larger !important;
  }

  section#welcome .welcome-block-container {
    justify-self: center;
  }

  section#welcome .welcome-block-desc p {
    text-align: left;
  }

  section#welcome > div.container {
    padding: 7rem 2rem 1rem 2rem;
  }

  section#welcome > figure {
    width: 320px;
    margin: auto;
    padding-top: 1rem;
    display: flex;
    padding: var(--navbar-height-sticky) 0 0 0;
  }

  section#welcome > div.presentation {
    margin-top: 6rem;
  }

  section#welcome > div.presentation > div {
    gap: 20px;
  }

  div.ban {
    position: unset;
    bottom: unset;
    padding: unset;
    flex-wrap: wrap;
    gap: 70px;
    align-items: center;
    margin-top: 20px;
  }

  div.ban figure {
    flex: 0 0 45%;
  }

  div.ban figure img {
    filter: invert(22%) sepia(61%) saturate(1541%) hue-rotate(180deg)
      brightness(94%) contrast(92%);
  }

  div.ban figure figcaption {
    color: var(--secondary-color);
  }
}

@media (max-width: 699px) {
  section#welcome {
    justify-content: start;
    flex-direction: column;
    background-position: 14% top;
  }

  section#welcome img.hero {
    height: 100vh !important;
  }

  section#welcome > div.container {
    padding: 1rem;
  }

  section#welcome h1 {
    width: initial;
  }

  section#welcome > div.presentation {
    margin-top: unset;
  }

  section#welcome h1 {
    font-weight: bold;
    margin-top: var(--navbar-height-sticky);
  }

  section#welcome > figure {
    width: 200px;
    margin: unset;
    padding-top: 0;
    display: flex;
    padding: 0 0 0 0;
  }

  section#welcome button {
    width: 100%;
    justify-content: center;
  }

  section#welcome > div.presentation > div {
    margin-top: 2rem;
  }

  section#welcome div.service-form {
    width: 340px;
    min-height: unset;
  }
  .feature-text {
    color: #000000;
  }

  .feature-icon svg {
    fill: var(--secondary-color);
  }

  .feature-item:hover .feature-text {
    color: initial;
  }

  .feature-item:hover .feature-icon svg {
    transform: unset;
  }

  .feature-item:hover .feature-icon {
    transform: unset;
    box-shadow: unset;
  }

  .feature-item:hover {
    background: unset;
    transform: unset;
  }
}

@media (max-width: 605px) {
  section#welcome div.ref-contact-now {
    flex-direction: column;
    gap: 10px;
  }

  section#welcome div.ref-contact-now a {
    width: 100%;
  }
}

/* override default padding for welcome page */
@media (max-width: 599px) {
  button {
    padding: 1rem 3rem;
  }
}
