/* ======================================
   BLOCK WRAPPER
====================================== */
.paragraph-block-devis {
  position: relative;
  background-color: var(--color-tertiary--dark);
  border-radius: 8px;
  overflow: visible;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.path-frontpage .paragraph-block-devis {
  margin-bottom: 6rem;
}

/* ======================================
   BACKGROUND EXTENDS
====================================== */
.paragraph-block-devis::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 210px;
  background-color: var(--color-tertiary);
  z-index: -1;
}

.path-frontpage .paragraph-block-devis::after {
  top: -10%;
  bottom: unset;
  height: 270px;
}

/* ======================================
   WRAPPER
====================================== */
.devis-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ======================================
   IMAGE
====================================== */
.devis-image {
  max-width: 300px;
  margin: 0 auto;
}

.devis-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ======================================
   CONTENT
====================================== */
.devis-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
  padding: 1rem;
}

/* ======================================
   TITLE
====================================== */
.devis-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.devis-title p {
  margin-bottom: 0;
}

/* ======================================
   SUBTITLE
====================================== */
.devis-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.9;
}

.devis-subtitle p {
  margin-bottom: 0;
}

/* ======================================
   TEXT
====================================== */
.devis-text {
  line-height: 1.6;
}

.devis-text p {
  margin-bottom: 0;
}

/* ======================================
   LINK
====================================== */
.devis-link a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: #fff;
  border: 2px solid var(--color-primary--1);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.devis-link a:hover {
  background-color: var(--color-primary--1);
}

/* ======================================
   TABLET (768px+)
====================================== */
@media (min-width: 768px) {
  .paragraph-block-devis {
    margin-top: 3rem;
  }
  .devis-image {
    max-width: 400px;
    margin: 0;
  }

  .devis-title {
    font-size: 1.5rem;
  }

  .devis-subtitle {
    font-size: 1.1rem;
  }
}

/* ======================================
   DESKTOP (1024px+)
====================================== */
@media (min-width: 1024px) {
  .devis-wrapper {
    flex-direction: row;
    align-items: center;
    max-width: none;
    margin: 0;
  }

  .devis-image {
    flex: 0 0 40%;
    max-width: none;
    margin-top: -4%;
  }

  .devis-content {
    flex: 0 0 60%;
    max-width: 660px;
    padding: 2rem 5rem 2rem 2rem;
  }

  .devis-title {
    font-size: 2.5rem;
  }

  .devis-subtitle {
    font-size: 1.2rem;
  }
}

/* ======================================
   DESKTOP XL (1400px+)
====================================== */
@media (min-width: 1400px) {
  .devis-content {
    padding-right: 2rem;
  }
}
