/* ===== Djezzy Solutions — Fiche technique appareil ===== */
.dz-device-spec {
  --dz-spec-red: var(--djezzy-red, #E2001A);
  --dz-spec-title: var(--djezzy-title, #111);
  --dz-spec-text: var(--djezzy-text, #555);
  --dz-spec-text-dark: var(--djezzy-text-dark, #1a1a1a);
  --dz-spec-line: #e6e6e6;

  box-sizing: border-box;
  width: 100%;
  padding: 80px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 40%, #eaeaea 100%);
  font-family: var(--djezzy-font, "Gotham", "Montserrat", "Cairo", Arial, sans-serif);
  color: var(--dz-spec-text);
}

.dz-device-spec *,
.dz-device-spec *::before,
.dz-device-spec *::after {
  box-sizing: border-box;
}

.dz-device-spec__container {
  max-width: var(--djezzy-container-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--djezzy-container-padding, 24px);
}

/* En-tête */
.dz-device-spec__header {
  text-align: center;
  margin-bottom: 48px;
}

.dz-device-spec__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dz-spec-red);
}

.dz-device-spec__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--dz-spec-title);
  text-align: center;
}

.dz-device-spec__title h1,
.dz-device-spec__title h2,
.dz-device-spec__title h3,
.dz-device-spec__title h4,
.dz-device-spec__title p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: inherit;
  display: inline-block;
}

.dz-device-spec__title span {
  color: var(--dz-spec-red);
}

/* Carte */
.dz-device-spec__card {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--dz-spec-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  overflow: hidden;
}

.dz-device-spec__card--no-media {
  grid-template-columns: 1fr;
}

/* Visuel */
.dz-device-spec__media {
  margin: 0;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 40%, #eaeaea 100%);
  border-inline-end: 1px solid var(--dz-spec-line);
}

.dz-device-spec__img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.dz-device-spec__model {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dz-spec-red);
}

.dz-device-spec__model p {
  margin: 0;
  font-size: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.dz-device-spec__model strong,
.dz-device-spec__model b,
.dz-device-spec__model-name {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--dz-spec-title);
  letter-spacing: normal;
  text-transform: none;
}

.dz-device-spec__model-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dz-spec-red);
}

/* Tableau */
.dz-device-spec__table-wrap {
  width: 100%;
  overflow-x: auto;
  align-self: center;
}

.dz-device-spec__card table,
.dz-device-spec__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  align-self: center;
}

.dz-device-spec__card table tr,
.dz-device-spec__table tr {
  border-bottom: 1px solid var(--dz-spec-line);
}

.dz-device-spec__card table tr:last-child,
.dz-device-spec__table tr:last-child {
  border-bottom: 0;
}

.dz-device-spec__card table th,
.dz-device-spec__card table td,
.dz-device-spec__table th,
.dz-device-spec__table td {
  padding: 18px 24px;
  vertical-align: middle;
  text-align: start;
  font-size: 14px;
  line-height: 1.6;
  background: transparent;
  border: 0;
}

.dz-device-spec__card table p,
.dz-device-spec__table p {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Premier élément de la ligne (Libellé / Entête) */
.dz-device-spec__card table tr > *:first-child,
.dz-device-spec__table th {
  width: 32%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a94a6;
}

.dz-device-spec__card table tr > *:first-child strong,
.dz-device-spec__card table tr > *:first-child b,
.dz-device-spec__card table tr > *:first-child p {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a94a6;
}

/* Colonnes de valeurs (non-premier élément) */
.dz-device-spec__card table tr > *:not(:first-child),
.dz-device-spec__table td {
  color: var(--dz-spec-text-dark);
}

.dz-device-spec__card table tr > *:not(:first-child) strong,
.dz-device-spec__card table tr > *:not(:first-child) b,
.dz-device-spec__table td strong {
  font-weight: 600;
  color: var(--dz-spec-red);
}

.dz-device-spec__line {
  display: block;
}

.dz-device-spec__card table em,
.dz-device-spec__table em,
.dz-device-spec__line em {
  display: inline-block;
  min-width: 44px;
  margin-inline-end: 6px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #8a94a6;
  text-transform: uppercase;
}

.dz-device-spec__card table em strong,
.dz-device-spec__card table strong em {
  color: #8a94a6;
}

.dz-device-spec__chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dz-spec-text-dark);
  background: #f4f4f4;
  border: 1px solid var(--dz-spec-line);
  border-radius: 999px;
}

/* Texte pour lecteurs d'écran */
.dz-device-spec__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Tablette */
@media (max-width: 900px) {
  .dz-device-spec {
    padding: 64px 0;
  }

  .dz-device-spec__card {
    grid-template-columns: 1fr;
  }

  .dz-device-spec__media {
    border-inline-end: 0;
    border-bottom: 1px solid var(--dz-spec-line);
    padding: 32px 24px 28px;
  }

  .dz-device-spec__img {
    max-width: 220px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .dz-device-spec {
    padding: 48px 0;
  }

  .dz-device-spec__container {
    padding: 0 var(--djezzy-container-padding-mobile, 16px);
  }

  .dz-device-spec__header {
    margin-bottom: 32px;
  }

  .dz-device-spec__card table,
  .dz-device-spec__card table tbody,
  .dz-device-spec__card table tr,
  .dz-device-spec__card table th,
  .dz-device-spec__card table td,
  .dz-device-spec__table,
  .dz-device-spec__table tbody,
  .dz-device-spec__table tr,
  .dz-device-spec__table th,
  .dz-device-spec__table td {
    display: block;
    width: 100%;
  }

  .dz-device-spec__card table tr,
  .dz-device-spec__table tr {
    padding: 14px 0;
  }

  .dz-device-spec__card table tr > *:first-child,
  .dz-device-spec__table th {
    padding: 0 20px 4px;
    width: 100%;
  }

  .dz-device-spec__card table tr > *:not(:first-child),
  .dz-device-spec__table td {
    padding: 0 20px;
    width: 100%;
  }
}
