.havven-cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.havven-cmp {
  --havven-cmp-accent: #ffc89a;
  --havven-cmp-border: rgba(255, 255, 255, 0.08);
  --havven-cmp-border-cell: rgba(255, 255, 255, 0.1);
  --havven-cmp-header-bg: #111;
  --havven-cmp-row-a: #0d0d0d;
  --havven-cmp-row-b: #111;
  --havven-cmp-havven-head: rgba(255, 200, 154, 0.06);
  --havven-cmp-havven-cell: rgba(255, 200, 154, 0.03);
  --havven-cmp-footer-bg: rgba(255, 200, 154, 0.07);
  --havven-cmp-footer-border: rgba(255, 200, 154, 0.2);
  border: 1px solid var(--havven-cmp-border);
  border-radius: 1.5rem;
  overflow: hidden;
  min-width: 0;
}

.havven-cmp__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.havven-cmp__grid--body {
  text-align: center;
}

.havven-cmp__head-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.35;
}

.havven-cmp__head-label--muted {
  color: rgba(255, 255, 255, 0.3);
}

.havven-cmp__head-label--solo {
  color: rgba(255, 255, 255, 0.4);
}

.havven-cmp__head-label--mid {
  color: rgba(255, 255, 255, 0.4);
}

.havven-cmp__head-label--accent {
  color: var(--havven-cmp-accent);
}

.havven-cmp__header .havven-cmp__cell:first-child .havven-cmp__head-label {
  text-align: left;
  width: 100%;
}

.havven-cmp__cell {
  padding: 1.25rem;
  border-right: 1px solid var(--havven-cmp-border-cell);
  display: flex;
  align-items: center;
  min-width: 0;
}

.havven-cmp__cell:last-child {
  border-right: none;
}

.havven-cmp__cell--head {
  justify-content: center;
  text-align: center;
}

.havven-cmp__header .havven-cmp__cell--head:first-child {
  justify-content: flex-start;
  text-align: left;
}

.havven-cmp__cell--head-accent {
  background: var(--havven-cmp-havven-head);
}

.havven-cmp__cell--criterion {
  justify-content: flex-start;
  text-align: left;
}

.havven-cmp__cell--solo {
  justify-content: center;
  text-align: center;
}

.havven-cmp__cell--havven {
  justify-content: center;
  text-align: center;
  background: var(--havven-cmp-havven-cell);
}

.havven-cmp__text-criterion {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  width: 100%;
}

.havven-cmp__text-solo {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.havven-cmp__text-col3 {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.havven-cmp__text-havven {
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--havven-cmp-accent);
  text-align: center;
}

.havven-cmp__header {
  background: var(--havven-cmp-header-bg);
}

.havven-cmp__body .havven-cmp__row:nth-child(odd) {
  background: var(--havven-cmp-row-a);
}

.havven-cmp__body .havven-cmp__row:nth-child(even) {
  background: var(--havven-cmp-row-b);
}

.havven-cmp__footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--havven-cmp-footer-bg);
  border-top: 1px solid var(--havven-cmp-footer-border);
}

.havven-cmp__footer .havven-cmp__cell {
  padding: 1.5rem;
  background: transparent;
}

.havven-cmp__text-footer-c1 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  width: 100%;
}

.havven-cmp__text-footer-c2 {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.havven-cmp__text-footer-c3 {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.havven-cmp__text-footer-c4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--havven-cmp-accent);
  text-align: center;
}

/* -------------------------------------------------------------------------
   Responsive (max 991px) : cartes empilées, labels via data-label, sans scroll horizontal
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .havven-cmp-wrap {
    overflow-x: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .havven-cmp {
    min-width: 0;
    border-radius: clamp(1rem, 3vw, 1.5rem);
  }

  /* En-tête tableau masqué : les titres de colonnes sont dans chaque cellule (::before) */
  .havven-cmp__header {
    display: none;
  }

  .havven-cmp__body .havven-cmp__row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    border: 1px solid var(--havven-cmp-border-cell);
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .havven-cmp__body .havven-cmp__row:last-child {
    margin-bottom: 0;
  }

  .havven-cmp__body .havven-cmp__cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid var(--havven-cmp-border-cell);
    padding: 0.75rem 1rem;
    min-height: 0;
  }

  .havven-cmp__body .havven-cmp__cell:last-child {
    border-bottom: none;
  }

  .havven-cmp__body .havven-cmp__cell::before {
    content: attr(data-label);
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.45);
  }

  .havven-cmp__body .havven-cmp__cell--havven::before {
    color: var(--havven-cmp-accent);
    opacity: 0.95;
  }

  .havven-cmp__body .havven-cmp__cell--criterion,
  .havven-cmp__body .havven-cmp__cell--solo,
  .havven-cmp__body .havven-cmp__cell--havven {
    text-align: left;
  }

  .havven-cmp__body .havven-cmp__text-criterion,
  .havven-cmp__body .havven-cmp__text-solo,
  .havven-cmp__body .havven-cmp__text-col3,
  .havven-cmp__body .havven-cmp__text-havven {
    text-align: left;
    width: 100%;
  }

  .havven-cmp__body .havven-cmp__cell--havven {
    background: rgba(255, 200, 154, 0.06);
  }

  .havven-cmp__footer {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    border-radius: 0 0 clamp(0.75rem, 2vw, 1rem) clamp(0.75rem, 2vw, 1rem);
  }

  .havven-cmp__footer .havven-cmp__cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-right: none;
    border-bottom: 1px solid var(--havven-cmp-border-cell);
    padding: 0.875rem 1rem;
  }

  .havven-cmp__footer .havven-cmp__cell:last-child {
    border-bottom: none;
  }

  .havven-cmp__footer .havven-cmp__cell::before {
    content: attr(data-label);
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.45);
  }

  .havven-cmp__footer .havven-cmp__cell--footer-accent::before {
    color: var(--havven-cmp-accent);
    opacity: 0.95;
  }

  .havven-cmp__text-footer-c1,
  .havven-cmp__text-footer-c2,
  .havven-cmp__text-footer-c3,
  .havven-cmp__text-footer-c4 {
    text-align: left;
    width: 100%;
  }

  .havven-cmp__footer .havven-cmp__cell--footer-accent {
    background: rgba(255, 200, 154, 0.08);
  }
}

/* Très petits écrans : un peu moins de padding */
@media (max-width: 479px) {
  .havven-cmp__body .havven-cmp__cell,
  .havven-cmp__footer .havven-cmp__cell {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
}
