:root {
  --bg: #02070b;
  --bg-soft: #06121d;
  --panel: rgba(5, 18, 30, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --text: #f5f9fc;
  --muted: #b7c8d6;
  --blue: #0097ff;
  --blue-light: #00c8ff;
  --border: rgba(0, 151, 255, 0.28);
  --border-strong: rgba(0, 200, 255, 0.58);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(0, 151, 255, 0.13), transparent 35%),
    linear-gradient(180deg, #010407 0%, #02070b 48%, #030b12 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(1, 5, 9, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  min-width: max-content;
}

.logo-main {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -3px;
}

.logo-sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-sub strong,
.hero h1 span,
.tag {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 15px;
  font-weight: 800;
  opacity: 0.92;
}

.nav a:hover {
  color: var(--blue-light);
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: white;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 24px;
  cursor: pointer;
}

.btn {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  box-shadow: 0 10px 35px rgba(0, 151, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(0, 151, 255, 0.35);
}

.btn-outline {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  background: rgba(0, 151, 255, 0.13);
}

.hero {
  position: relative;
  min-height: 640px;
  padding: 90px 6%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.98) 0%, rgba(2, 7, 11, 0.82) 42%, rgba(2, 7, 11, 0.35) 100%),
    url("assets/bg-altechrepair.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 151, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 151, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.tag {
  margin: 0 0 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -3px;
}

.hero-text {
  max-width: 590px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

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

.features {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
}

.features div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 78px 6%;
}

.section-title {
  margin-bottom: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.section-title span {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.section-title h2 {
  margin: 0;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-intro {
  max-width: 820px;
  margin: -18px auto 34px;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card {
  min-height: 230px;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(4, 16, 27, 0.94), rgba(3, 10, 18, 0.94));
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.icon {
  margin-bottom: 16px;
  font-size: 34px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dark-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at right, rgba(0, 151, 255, 0.15), transparent 35%),
    rgba(0, 0, 0, 0.3);
}

.two-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.two-cols h2 {
  margin: 8px 0 18px;
  font-size: 42px;
}

.two-cols p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.mini-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-list span {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.benefits div {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft);
}

.benefits strong {
  display: block;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.benefits span {
  color: var(--muted);
}

.sale-filters {
  margin: -12px 0 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  min-height: 420px;
  max-height: 650px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(4, 16, 27, 0.95), rgba(2, 7, 11, 0.95));
  box-shadow: var(--shadow);
}

.product-top {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-category,
.product-status {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.product-category {
  border: 1px solid rgba(0, 151, 255, 0.35);
  background: rgba(0, 151, 255, 0.18);
  color: var(--blue-light);
}

.product-status {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.product-card h3 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.2;
}

.product-condition {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.45;
}

.product-condition strong {
  color: var(--blue-light);
}

.product-description {
  margin: 0;
  padding-right: 6px;
  color: #d5e3ed;
  line-height: 1.55;
  overflow: auto;
}

.product-description::-webkit-scrollbar {
  width: 6px;
}

.product-description::-webkit-scrollbar-thumb {
  background: rgba(0, 151, 255, 0.45);
  border-radius: 999px;
}

.product-bottom {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-bottom strong {
  color: white;
  font-size: 18px;
}

.product-bottom a {
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 151, 255, 0.18);
  color: white;
  font-weight: 900;
}

.product-bottom a:hover {
  background: var(--blue);
}

.about-box {
  max-width: 1180px;
  margin: auto;
}

.about-box > p {
  max-width: 880px;
  margin: 0 auto 34px;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
}

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

.steps div {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.steps b {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
}

.steps h3 {
  margin: 0 0 8px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contact-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.contact-info,
.contact-form {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.contact-list a,
.contact-list span {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-list a:hover {
  border-color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(0, 151, 255, 0.25);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.35);
  color: white;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-light);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 28px 6%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #010407;
  color: var(--muted);
}

.footer strong {
  color: white;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.floating-actions a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 15px 35px rgba(0, 151, 255, 0.35);
  font-size: 22px;
}

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .two-cols,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header {
    padding: 12px 5%;
    flex-wrap: wrap;
  }

  .menu-btn {
    display: block;
  }

  .header-btn {
    display: none;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: auto;
    padding: 80px 5%;
    background:
      linear-gradient(180deg, rgba(2, 7, 11, 0.96), rgba(2, 7, 11, 0.82)),
      url("assets/bg-altechrepair.png") center / cover no-repeat;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero-text {
    font-size: 17px;
  }

  .features,
  .cards,
  .benefits,
  .steps,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 5%;
  }

  .section-title span {
    width: 40px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .sale-filters {
    justify-content: flex-start;
  }

  .product-card {
    max-height: none;
  }

  .product-description {
    max-height: none;
    overflow: visible;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Description produit propre */
.product-description-wrap {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 151, 255, 0.18);
}

.product-description-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue-light);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.product-description {
  color: #d5e3ed;
  line-height: 1.6;
  white-space: normal;
  overflow: auto;
  max-height: 320px;
  padding-right: 8px;
}

.product-description br {
  display: block;
  content: "";
  margin-bottom: 6px;
}

/* Fenêtre contact produit */
.product-request-btn {
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 151, 255, 0.18);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.product-request-btn:hover {
  background: var(--blue);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.product-modal.open {
  display: flex;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.product-modal-box {
  position: relative;
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(0, 151, 255, 0.14), transparent 40%),
    #06121d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.product-modal-close:hover {
  background: rgba(0, 151, 255, 0.25);
}

.product-modal-box h3 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.product-modal-product {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.product-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.product-modal-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.product-modal-note strong {
  color: white;
}

@media (max-width: 560px) {
  .product-modal-actions {
    grid-template-columns: 1fr;
  }
}

/* Icône produit */
.product-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.product-title h3 {
  margin: 0;
}

.product-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 151, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 151, 255, 0.10);
  font-size: 20px;
  flex: 0 0 38px;
}

/* Icône produit */
.product-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.product-title h3 {
  margin: 0;
}

.product-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border: 1px solid rgba(0, 151, 255, 0.35);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.20), transparent 45%),
    rgba(0, 151, 255, 0.10);
  box-shadow: 0 10px 25px rgba(0, 151, 255, 0.10);
  font-size: 22px;
}

/* Ordre produit : titre > état > visuel > description */
.product-title {
  margin: 0 0 10px;
}

.product-title h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.product-condition {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.45;
}

.product-condition strong {
  color: var(--blue-light);
}

.product-media {
  margin: 0 0 16px;
}

.product-media-box {
  position: relative;
}

.product-thumb {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(0, 151, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.product-thumb-fallback {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 151, 255, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.16), transparent 42%),
    rgba(0, 151, 255, 0.08);
}

.product-thumb-icon {
  font-size: 52px;
  line-height: 1;
}

.product-visual-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(2, 7, 11, 0.75);
  border: 1px solid rgba(255,255,255,0.1);
  color: #d9e8f2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Fix débordement description */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-description-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.product-description {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  white-space: normal;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.product-bottom {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-bottom strong {
  flex: 0 0 auto;
}

.product-request-btn {
  flex: 0 0 auto;
}

.product-description-label {
  margin-bottom: 10px;
}

/* Ajustement taille image + cartes plus grandes */
#productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  align-items: start;
}

.product-card {
  padding: 28px;
  min-height: 0;
}

.product-thumb,
.product-thumb-fallback {
  height: 95px;
}

.product-media {
  margin: 0 0 14px;
}

.product-title h3 {
  font-size: 22px;
}

.product-description {
  max-height: 300px;
}

@media (max-width: 1100px) {
  #productGrid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 700px) {
  #productGrid {
    grid-template-columns: 1fr;
  }

  .product-thumb,
  .product-thumb-fallback {
    height: 110px;
  }

  .product-card {
    padding: 22px;
  }
}

/* Image produit : plus grande sans être coupée */
.product-thumb {
  height: 140px !important;
  object-fit: contain !important;
  object-position: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.product-thumb-fallback {
  height: 140px !important;
}

/* Visuel produit : moins de bordures vides, même taille */
.product-thumb {
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: transparent !important;
}

.product-media-box {
  overflow: hidden;
  border-radius: 12px;
}

.product-media {
  margin-bottom: 16px;
}
