/*
====================================================
Project : Société de Plomberie Ayouche
Page    : Désenfumage
Author  : AI + User
Version : 1.0.0
Notes   : Pixel-perfect reproduction of a supplied mockup. Reuses the
          site's shared design tokens (colors, buttons, navbar, footer
          from style.css). Every class below is prefixed `des-`.
====================================================
*/

/* --------------------------------------------------------------------------
   SHARED — eyebrow label
   -------------------------------------------------------------------------- */
.des-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.des-eyebrow--center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   HERO — background: assets/back/herodes.png
   -------------------------------------------------------------------------- */
.des-hero {
  position: relative;
  aspect-ratio: 2076 / 758;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  background-color: #000A17;
  background-image: url('../back/herodes.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.des-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 10, 23, .78) 0%, rgba(0, 10, 23, .35) 45%, rgba(0, 10, 23, .15) 70%);
}

.des-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.des-hero-content {
  max-width: 600px;
}

.des-hero-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.des-hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.22;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 18px;
}

.des-hero-content h1 .accent {
  color: var(--color-primary);
}

.des-hero-content p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
  max-width: 460px;
  margin: 0 0 30px;
}

.des-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   NOTRE EXPERTISE
   -------------------------------------------------------------------------- */
.des-expertise {
  background-color: var(--color-white);
}

.des-expertise-container {
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 120px;
  display: flex;
  align-items: center;
}

.des-expertise-text {
  flex: 0 0 34%;
  max-width: 34%;
}

.des-expertise-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.3;
  color: var(--color-primary-dark);
  margin: 0 0 20px;
}

.des-expertise-text h2 .accent {
  color: var(--color-primary);
}

.des-expertise-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-gray);
  margin: 0 0 26px;
  max-width: 480px;
}

.des-expertise-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.des-expertise-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-dark);
}

.des-expertise-list i {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 16px;
  margin-top: 2px;
}

/* exper.png is a pre-made graphic — the technician, the fan, the white
   geometric shape and the blue stroke border are already baked into the
   file. It is used purely as a CSS background (no <img> tag) filling the
   right-hand zone of the section, exactly as on the reference mockup. */
.des-expertise-visual {
  flex: 0 0 66%;
  max-width: 66%;
  align-self: stretch;
  min-height: 560px;
  background-image: url('../images/exper.png');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
}

/* --------------------------------------------------------------------------
   NOS SOLUTIONS (6 cards)
   -------------------------------------------------------------------------- */
.des-solutions {
  background-color: var(--color-bg-light);
}

.des-solutions-header {
  margin-bottom: 36px;
}

.des-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.des-solution-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-base), transform var(--transition-base);
}

.des-solution-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 16px 34px rgba(1, 41, 99, .1);
  transform: translateY(-4px);
}

.des-solution-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--color-primary);
  font-size: 38px;
  line-height: 1;
}

.des-solution-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}

.des-solution-card p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   POURQUOI CHOISIR PLA (dark band)
   -------------------------------------------------------------------------- */
.des-why {
  position: relative;
  background-color: #000A17;
  background-image: url('../images/plombier.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.des-why-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 10, 23, .88) 0%, rgba(0, 10, 23, .95) 100%);
}

.des-why-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.des-why-inner h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.3;
  color: #FFFFFF;
  margin: 0 0 48px;
}

.des-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.des-why-item {
  text-align: left;
}

.des-why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, .08);
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 20px;
}

.des-why-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.des-why-item p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}

/* --------------------------------------------------------------------------
   DOMAINES D'APPLICATION (8 cards)
   -------------------------------------------------------------------------- */
.des-domains {
  background-color: var(--color-white);
}

.des-domains-header {
  margin-bottom: 36px;
}

.des-domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 18px;
  row-gap: 44px;
}

.des-domain-card {
  text-align: left;
}

.des-domain-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  margin-bottom: 26px;
}

.des-domain-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.des-domain-card:hover .des-domain-media img {
  transform: scale(1.08);
}

.des-domain-icon {
  position: absolute;
  left: 14px;
  bottom: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(1, 41, 99, .18);
}

.des-domain-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   NOTRE PROCESSUS (7 steps)
   -------------------------------------------------------------------------- */
.des-process {
  background-color: var(--color-bg-light);
}

.des-process-header {
  margin-bottom: 44px;
}

.des-process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.des-process-timeline::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  border-top: 2px dotted var(--color-primary);
  z-index: 0;
}

.des-process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.des-process-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  color: var(--color-text-gray);
  margin-bottom: 8px;
}

.des-process-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(0, 140, 209, .3);
}

.des-process-step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
}

.des-process-step p {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--color-text-gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   NOS RÉALISATIONS — slider
   -------------------------------------------------------------------------- */
.des-projects {
  background-color: var(--color-white);
}

.des-projects-header {
  margin-bottom: 32px;
}

.des-projects-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.des-projects-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  font-size: 16px;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.des-projects-arrow:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

.des-projects-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.des-projects-track::-webkit-scrollbar {
  display: none;
}

.des-project-card {
  position: relative;
  flex: 0 0 calc(20% - 17.6px);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 16px 34px rgba(1, 41, 99, .1);
  transition: transform var(--transition-base);
}

.des-project-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.des-project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.des-project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 10, 23, 0) 40%, rgba(0, 10, 23, .9) 100%);
}

.des-project-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
}

.des-project-caption h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
  margin: 0 0 3px;
  line-height: 1.3;
}

.des-project-caption p {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  margin: 0 0 8px;
}

.des-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  color: #FFFFFF;
  text-decoration: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.des-project-card:hover .des-project-link {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.des-faq {
  background-color: var(--color-bg-light);
}

.des-faq-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.des-faq-list {
  display: grid;
  gap: 14px;
}

.des-faq-item {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--color-white);
  transition: border-color var(--transition-fast);
}

.des-faq-item.is-open {
  border-color: var(--color-primary);
}

.des-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background-color: var(--color-white);
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.des-faq-question i {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 15px;
  transition: transform var(--transition-base);
}

.des-faq-item.is-open .des-faq-question i {
  transform: rotate(45deg);
}

.des-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.des-faq-answer p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-text-gray);
  margin: 0;
  padding: 0 22px 20px;
}

.des-faq-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(1, 41, 99, .14);
}

.des-faq-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* --------------------------------------------------------------------------
   CTA FINAL — background reuses herodes.png, dimmed
   -------------------------------------------------------------------------- */
.des-cta {
  position: relative;
  background-color: #000A17;
  background-image: url('../back/herodes.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.des-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 10, 23, .95) 0%, rgba(0, 10, 23, .88) 55%, rgba(0, 10, 23, .6) 100%);
}

.des-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.des-cta-inner h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.des-cta-inner p {
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 30px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .des-expertise-container {
    padding-block: 90px;
  }

  .des-solutions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .des-why-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .des-domains-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .des-process-timeline {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 36px;
  }

  .des-process-timeline::before {
    display: none;
  }

  .des-project-card {
    flex-basis: calc(33.333% - 14.7px);
  }

  .des-faq-grid {
    gap: 40px;
  }
}

@media (max-width: 991.98px) {
  .des-hero {
    aspect-ratio: auto;
    min-height: 560px;
  }

  .des-hero-content h1 {
    font-size: 30px;
  }

  .des-expertise-container {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding-block: 60px;
  }

  .des-expertise-text {
    flex-basis: auto;
    max-width: 100%;
  }

  .des-expertise-visual {
    order: -1;
    flex-basis: auto;
    max-width: 100%;
    min-height: 340px;
  }

  .des-solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .des-why-inner h2 {
    font-size: 26px;
  }

  .des-domains-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .des-process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .des-project-card {
    flex-basis: calc(50% - 11px);
  }

  .des-faq-grid {
    grid-template-columns: 1fr;
  }

  .des-faq-media {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .des-faq-media img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767.98px) {
  .des-hero {
    min-height: 500px;
    padding-top: calc(var(--navbar-height) + 24px);
  }

  .des-hero-content h1 {
    font-size: 24px;
  }

  .des-expertise-visual {
    min-height: 240px;
  }

  .des-solutions-grid {
    grid-template-columns: 1fr;
  }

  .des-why-grid {
    grid-template-columns: 1fr;
  }

  .des-domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .des-process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .des-project-card {
    flex-basis: 80%;
  }

  .des-cta-inner h2 {
    font-size: 26px;
  }
}
