/* Base Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section.pest-info a,
.description-block a,
.key-identification-section a {
  text-decoration: underline;
}

section .action-buttons a {
  text-decoration: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

/* Base Section Styles */
section {
  min-height: unset;
}

/* Typography & Common Elements */
h2 {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

h2:before,
.section-title:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #0e4f83;
}

.section-title {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

/* Description Block Section */
section.description-block {
  background-color: #004a80;
  color: white;
  padding: 2rem 7rem 4rem 7rem;
  border-radius: 0;
  margin: 0rem 2rem 0rem 0rem;
  line-height: 1.5;
}

section.description-block .container .breadcrum {
  margin-bottom: 2rem;
  font-size: 16px;
}

section.description-block .container .breadcrum a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

section.description-block .container .breadcrum a:hover {
  color: #ffffff;
  text-decoration: underline;
}

section.description-block p {
  margin-bottom: 1rem;
  color: #fff;
}

/* Introduction Section */
section.intro {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

section.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgb(0 0 0 / 3%), rgb(0 0 0 / 68%));
  z-index: 1;
}

section.intro .container {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 800px;
}

section.intro h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 25px;
  color: #ffffff;
  text-shadow:
    2px 2px 3px rgba(0, 0, 0, 0.7),
    0px 4px 6px rgba(0, 0, 0, 0.5),
    0px 8px 13px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

section.intro h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  z-index: -1;
  color: transparent;
}

.ref-contact-now {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ref-contact-now button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Contact Section */
section.contact_question {
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  padding: 1rem;
}

/* Info Sections */

.info-sections {
  background: #f8f9fa;
  padding: 60px 0;
  margin-bottom: 24px;
  position: relative;
}

.info-sections > .container > h2.section-title {
  text-align: center;
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 50px;
  color: #2c3e50;
}

.info-sections > .container > h2.section-title::before {
  content: none;
}

.info-section {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 25px;
}

.info-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.info-section h3.section-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  color: #2c3e50;
}

.info-section h3.section-title::before {
  width: 60px;
  height: 3px;
  background-color: var(--primary-1-color);
}

.info-section:nth-child(even) h3.section-title::before {
  background-color: var(--secondary-1-color);
}

.info-section .section-content {
  line-height: 1.8;
  color: #555;
}

.info-section .section-content p {
  color: #555;
}

.info-section .section-content .ql-align-center {
  text-align: center;
  justify-items: center;
}

.info-section .section-content p:last-child {
  margin-bottom: 0;
}

.info-section {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.info-section:nth-child(1) {
  animation-delay: 0.1s;
}

.info-section:nth-child(2) {
  animation-delay: 0.2s;
}

.info-section:nth-child(3) {
  animation-delay: 0.3s;
}

.info-section:nth-child(4) {
  animation-delay: 0.4s;
}

.info-section:nth-child(4n + 2) {
  background: #fafbfc;
}

.info-section:nth-child(4n + 4) {
  background: #f8f9fa;
}

/* Pest Info Section */
.pest-info {
  background-color: #f5f6f7;
  padding: 60px 0;
  overflow: hidden;
}

.col-image {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.col-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 30px;
}

.pest-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pest-description-primary,
.ql-editor {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  font-weight: 500;
  margin-bottom: 20px;
}

.pest-description-primary {
  line-height: 1.6;
  color: #000;
}

.ql-editor {
  height: max-content;
  white-space: unset;
}

.pest-description-secondary {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #666;
}

.pest-description-secondary > p {
  color: #666;
  line-height: 1.6;
}

.advertisement {
  margin-top: 25px;
}

.advertisement figure {
  text-align: center;
}

.advertisement figure > figcaption {
  margin-top: 1rem;
  font-style: italic;
}

.advertisement h2 {
  margin-bottom: 15px;
}

.advertisement h5 {
  margin-bottom: 25px;
  padding-bottom: 10px;
}

/* Buttons */
.action-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

/* Summary Section */
.summary-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.summary-section .container {
  width: 1200px;
}

.summary-dropdown {
  background-color: var(--secondary-color);
  border-radius: 4px;
  overflow: hidden;
  margin: 30px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.summary-title {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  padding: 20px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.summary-title:hover {
  background-color: var(--secondary-color);
}

.summary-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.summary-toggle svg {
  width: 16px;
  height: 16px;
}

.summary-dropdown.active .summary-toggle {
  transform: rotate(180deg);
}

.summary-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  background-color: #f5f6f7;
  border-top: 1px solid #8ebee5;
}

.summary-dropdown.active .summary-content {
  max-height: fit-content;
  padding: 20px 0;
}

.summary-list {
  list-style: none;
  padding: 0 20px;
  margin: 0;
}

.summary-list li {
  margin-bottom: 15px;
}

.summary-list li:last-child {
  margin-bottom: 0;
}

.summary-list a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  display: block;
  line-height: 1.5;
}

.summary-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Certification Section */
.certi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
}

.certi figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certi img {
  width: 100%;
  height: auto;
  max-width: 250px;
  object-fit: contain;
}

/* Rodent Identification Section */
.rodent-identification-section .section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 50px;
  color: #2c3e50;
}

.rodent-identification-section .section-title::before {
  content: none;
}

.rodent-identification-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-wrapper:hover {
  transform: scale(1.02);
}

.rodent-image {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
}

.image-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-color);
  font-size: 0.9rem;
  font-style: italic;
}

/* Key Identification Section */
.key-identification-section {
  background-color: var(--primary-color);
  padding: 2rem;
}

.identification-content {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
}

.indices-list {
  flex: 1;
}

.indices-list h2 {
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
}

.indice-item {
  margin-bottom: 1.5rem;
}

.indice-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.indice-item div,
.indice-item div p {
  line-height: 1.6;
}

.identification-image {
  flex: 1;
  position: relative;
  justify-items: center;
}

.identification-image-container {
  position: sticky;
  top: 5rem;
}

.identification-image img {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.identification-image-container .image-caption {
  margin-top: 1rem;
  font-style: italic;
  text-align: center;
}

/* Process Section */
section#process {
  min-height: unset;
}

section.treatment {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section.treatment div.container {
  max-width: unset;
}

section.treatment h2 {
  margin-left: 0;
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

section.treatment section#process > div.container {
  padding: unset;
  flex-wrap: unset;
}

/* FAQ Section */
.faq-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 15px;
}

.faq-section h2 {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.faq-section h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.faq-list {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0;
  padding: 20px;
  background-color: #f5f6f7;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-item h3:hover {
  background-color: #f8f9fa;
}

.faq-item h3:after {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E4F83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.faq-item.active h3 {
  border-bottom: 1px solid #d0e5f5;
  background-color: #e8f4fd;
}

.faq-item.active h3:after {
  transform: rotate(180deg);
}

.faq-item .acceptedAnswer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.faq-item.active .acceptedAnswer {
  max-height: 500px;
  padding: 20px 20px;
}

.faq-item .text p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* videos */
.videos .container {
  width: 100%;
  padding: 0 30px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Carte vidéo */
.video-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Conteneur responsive pour iframe */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.testimonials {
  margin: 2rem 0;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.review {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #4285f4;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 12px;
}

.reviewer-info {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.reviewer-name {
  display: inline-block;
  width: 44px;
}

.review-date {
  font-size: 12px;
  color: #777;
}

.stars {
  display: flex;
  margin-bottom: 10px;
}

.stars img {
  width: 14px;
}

.review-text {
  color: #555;
  line-height: 1.5;
  font-size: 14px;
}

.review-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
  margin-top: 5px;
}

.read-more-btn:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  background: none;
  border: none;
}

@media (max-width: 960px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Media Queries */
@media screen and (max-width: 1485px) {
  section.treatment section#process > div.container {
    flex-wrap: wrap;
  }
}

@media (max-width: 1200px) {
  .certi {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 800px) {
  .identification-content {
    flex-direction: column;
  }

  .indices-list h2 {
    font-size: 1.3rem;
  }

  .indice-item h3 {
    font-size: 1.1rem;
  }

  .identification-image img {
    position: static;
  }
}

@media screen and (max-width: 768px) {
  /* Summary responsive styles */
  .summary-title {
    font-size: 16px;
    padding: 15px;
  }

  .summary-list a {
    font-size: 14px;
  }

  .ref-contact-now {
    gap: 10px;
  }

  .ref-contact-now a,
  .ref-contact-now button {
    width: 100%;
  }

  /* Intro section responsive styles */
  section.intro {
    min-height: 300px;
  }

  section.intro h1 {
    font-size: 28px;
  }

  section.intro .intro-text {
    font-size: 16px;
  }

  .info-sections {
    padding: 40px 0;
  }

  .info-sections > .container > h2.section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .info-section {
    padding: 30px 25px;
  }

  .info-section h3.section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .info-section .section-content {
    font-size: 1em;
    line-height: 1.7;
  }

  .info-section .ql-editor img {
    width: 100%;
  }

  .info-section {
    animation-delay: 0s !important;
  }

  .certi {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .certi img {
    max-width: 200px;
  }
  /* Layout responsive styles */
  .row {
    flex-direction: column;
  }

  .col-image,
  .col-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-image {
    margin-bottom: 30px;
  }

  .col-content {
    padding: 0 15px;
  }

  /* Button responsive styles */
  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Rodent identification responsive styles */
  .rodent-identification-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .image-caption {
    font-size: 0.8rem;
  }
}

@media (max-width: 760px) {
  section.description-block {
    padding: 2rem;
  }

  section.intro {
    margin-top: unset;
  }
}

@media screen and (max-width: 480px) {
  /* Summary responsive styles */
  .summary-section {
    padding: 0 10px;
  }

  .summary-title {
    padding: 12px 15px;
  }

  .summary-list {
    padding: 0 15px;
  }

  /* Intro section responsive styles */
  section.intro {
    min-height: 250px;
  }

  section.intro h1 {
    font-size: 24px;
  }

  .info-sections {
    padding: 30px 0;
  }

  .info-sections > .container > h2.section-title {
    font-size: 1.5em;
  }

  .info-section {
    padding: 25px 20px;
  }

  .info-section h3.section-title {
    font-size: 1.3em;
  }

  .info-section .section-content {
    font-size: 0.95em;
  }

  .image-wrapper {
    padding: 0.75rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
