/* ============================================================
   HENOQ — dsi.css
============================================================ */

/* ══ HERO ══ */
#dsi-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--offwhite);
}

.dsi-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 36px 32px 36px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 70%;
  text-align: left;
}

@media (min-width: 1100px) {
  .dsi-hero-content {
    padding-left: calc((100vw - 80vw) / 2);
  }
}

.dsi-hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.dsi-hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0;
  max-width: 52ch;
  margin-bottom: 2.4rem;
  color: rgba(47,47,47,.7);
  animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--d, 0s);
}

.dsi-hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  opacity: 0;
  animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--d, 0s);
}

@media (max-width: 768px) {
  .dsi-hero-content {
    padding: 80px 24px 24px;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    margin-top: -6rem;
  }
  .dsi-hero-title { align-items: flex-start; }
  .dsi-hero-content .l { font-size: clamp(3rem, 11vw, 4rem); }
  .dsi-hero-btns { justify-content: flex-start; flex-direction: column; width: 100%; }
  .dsi-hero-btns .btn-fill { width: 100%; text-align: center; }
  .dsi-hero-btns .btn-text { display: none; }
}

@media (min-width: 1100px) {
  .dsi-hero-content .l { font-size: clamp(4rem, 6.5vw, 6.2rem); }
  .dsi-hero-sub { font-size: 1.2rem; }
}

/* ══ LE PROBLÈME ══ */
#dsi-problem {
  padding: 100px 0;
  background: var(--offwhite);
  border-top: 1px solid var(--border);
}

.dsi-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.dsi-problem-right p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(47,47,47,.7);
  margin-bottom: 1.2rem;
}
.dsi-problem-right p:last-child { margin-bottom: 0; }

/* ══ COÛT ══ */
#dsi-cout {
  background: #242424;
  padding: 100px 0;
}

.dsi-cout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(246,244,241,.08);
  margin-top: 3rem;
}

.dsi-cout-item {
  background: #242424;
  padding: 2.4rem 2rem;
  transition: background .25s;
}
.dsi-cout-item:hover { background: rgba(246,244,241,.03); }

.dsi-cout-num {
  font-family: var(--condensed);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: var(--offwhite);
  line-height: 1;
  margin-bottom: .4rem;
}

.dsi-cout-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--offwhite);
  opacity: .6;
  margin-bottom: .8rem;
}

.dsi-cout-desc {
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(246,244,241,.45);
}

/* Tableau comparatif */
.dsi-table-wrap {
  margin-top: 6rem;
  overflow-x: auto;
}

.dsi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  table-layout: fixed;
}

.dsi-table thead th:first-child { width: 35%; }
.dsi-table thead th:not(:first-child) { width: 32.5%; }

.dsi-table thead tr {
  border-bottom: 1px solid rgba(246,244,241,.15);
}

.dsi-th {
  padding: 1.2rem 2rem;
  text-align: center;
  font-family: var(--condensed);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--offwhite);
  border-left: 1px solid rgba(246,244,241,.1);
}

.dsi-th span {
  display: block;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(246,244,241,.4);
  margin-top: .2rem;
}

.dsi-th--henoq {
  color: var(--offwhite);
  background: rgba(89,49,55,.15);
  border-top: 2px solid var(--maroon);
}

.dsi-table tbody tr {
  border-bottom: 1px solid rgba(246,244,241,.08);
  transition: background .2s;
}
.dsi-table tbody tr:hover { background: rgba(246,244,241,.03); }

.dsi-table td {
  padding: 1rem 1.5rem;
  color: rgba(246,244,241,.6);
  font-weight: 300;
}

.dsi-table td:first-child {
  font-weight: 500;
  color: var(--offwhite);
  padding-left: 0;
}

.dsi-table td:not(:first-child) {
  text-align: center;
  border-left: 1px solid rgba(246,244,241,.08);
}

.dsi-table td:last-child {
  background: rgba(89,49,55,.08);
}

/* Points colorés */
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--green  { background: #5cb85c; }
.dot--orange { background: #f0a500; }
.dot--red    { background: #d9534f; }

.dsi-table-legend {
  display: flex;
  gap: 2rem;
  margin-top: 1.2rem;
  font-size: .75rem;
  color: rgba(246,244,241,.35);
}
.dsi-table-legend span {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ══ CE QU'ON COUVRE ══ */
#dsi-scope {
  padding: 100px 0;
  background: var(--offwhite);
}

.dsi-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.dsi-scope-item {
  background: var(--offwhite);
  padding: 2.4rem 2rem;
  transition: background .25s;
  position: relative;
  overflow: hidden;
}
.dsi-scope-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--maroon);
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.76,0,.24,1);
  z-index: 0;
}
.dsi-scope-item:hover::before { transform: translateY(0); }
.dsi-scope-item > * { position: relative; z-index: 1; }

.dsi-scope-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(89,49,55,.2);
  margin-bottom: 1.2rem;
  color: var(--maroon);
  transition: border-color .3s, color .3s;
}
.dsi-scope-item:hover .dsi-scope-icon { border-color: rgba(246,244,241,.3); color: var(--offwhite); }

.dsi-scope-item h3 {
  font-family: var(--condensed);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: .6rem;
  letter-spacing: .3px;
  transition: color .3s;
}
.dsi-scope-item:hover h3 { color: var(--offwhite); }

.dsi-scope-item p {
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(47,47,47,.55);
  transition: color .3s;
}
.dsi-scope-item:hover p { color: rgba(246,244,241,.65); }

/* ══ CTA ══ */
#dsi-cta {
  background: var(--maroon);
  padding: 100px 0;
  text-align: center;
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
}

#dsi-cta p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(246,244,241,.7);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .dsi-problem-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dsi-cout-grid { grid-template-columns: repeat(2, 1fr); }
  .dsi-scope-grid { grid-template-columns: repeat(2, 1fr); }
  .dsi-vs { grid-template-columns: 1fr; }
  .dsi-vs-separator { display: none; }
}

@media (max-width: 768px) {
  #dsi-hero { padding: 100px 0 60px; min-height: auto; }
  .dsi-hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
  .dsi-cout-grid { grid-template-columns: 1fr; }
  .dsi-scope-grid { grid-template-columns: 1fr; }
  #dsi-cta { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); margin-top: -40px; }
}

@media (min-width: 1100px) {
  #dsi-hero { padding: 140px 0 100px; }
  .dsi-hero-title { font-size: clamp(5rem, 8vw, 7.5rem); }
}



/* ══ TABLEAU MOBILE — Option A : scroll horizontal ══ */
@media (max-width: 768px) {
  .dsi-table-wrap {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(89,49,55,.55) rgba(246,244,241,.1);
    padding-bottom: 1rem;
  }
  .dsi-table-wrap::-webkit-scrollbar {
    height: 5px;
    display: block;
  }
  .dsi-table-wrap::-webkit-scrollbar-track {
    background: rgba(246,244,241,.1);
    border-radius: 3px;
  }
  .dsi-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(89,49,55,.55);
    border-radius: 3px;
    min-width: 30px;
  }
  .dsi-table { min-width: 560px; }
}

.dsi-table-legend {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246,244,241,.08);
}