/* Serveurs dédiés page overrides */

.page-serveur-dedie {
  --range-accent: #7c3aed;
  --vps-accent: #7c3aed;
  --dedie-eco: #16a34a;
  --dedie-eco-soft: rgba(22, 163, 74, 0.12);
  --dedie-eco-border: rgba(22, 163, 74, 0.42);
}

.page-serveur-dedie .vps-term__btn.is-active {
  background: #7c3aed;
}

/* Hero visual — image hors flux pour ne pas réduire le texte */
.page-serveur-dedie .vps-hero__inner {
  position: relative;
  padding-top: 11.5rem;
  padding-bottom: 7.5rem;
}

.page-serveur-dedie .vps-hero__content {
  flex: 1 1 auto;
  max-width: 42rem;
  position: relative;
  z-index: 1;
}

.page-serveur-dedie .vps-hero__visual {
  position: absolute;
  right: -10rem;
  top: 50%;
  transform: translateY(calc(-50% - 2.5rem));
  width: min(68vw, 1120px);
  flex: none;
  pointer-events: none;
  z-index: 0;
  justify-content: flex-end;
}

.page-serveur-dedie .vps-hero__visual picture {
  display: block;
  width: 100%;
}

.page-serveur-dedie .vps-hero__visual .dedie-hero__img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  animation: none;
}

@media (max-width: 1100px) {
  .page-serveur-dedie .vps-hero__visual {
    width: min(60vw, 900px);
    right: -6rem;
  }
}

@media (max-width: 900px) {
  .page-serveur-dedie .vps-hero {
    overflow-x: clip;
  }

  .page-serveur-dedie .vps-hero__visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    overflow: visible;
    margin: 0.25rem auto 0;
    pointer-events: auto;
    justify-content: center;
  }

  .page-serveur-dedie .vps-hero__visual picture {
    display: block;
    width: 100%;
  }

  .page-serveur-dedie .vps-hero__visual .dedie-hero__img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
}

.dedie-offers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-serveur-dedie #offres .section-head__intro {
  max-width: 72ch;
}

/* Évolutivité */
.dedie-scale {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.dedie-scale__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--section-title);
}

.dedie-scale__desc {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--section-muted);
}

.dedie-scale__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.dedie-scale__img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.18));
}

@media (max-width: 900px) {
  .dedie-scale {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dedie-scale__visual {
    justify-content: center;
    order: -1;
  }

  .dedie-scale__img {
    max-width: 520px;
  }
}

/* Alternatives */
.dedie-alts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.dedie-alt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--vps-card-border);
  background: var(--vps-card-bg);
  box-shadow: var(--vps-card-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.dedie-alt:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--vps-accent) 32%, var(--vps-card-border));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .dedie-alt:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.dedie-alt__icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  background: var(--vps-accent-soft);
  color: var(--vps-accent);
  flex-shrink: 0;
}

.dedie-alt__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.dedie-alt__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.dedie-alt__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--section-title);
}

.dedie-alt__text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--section-muted);
}

.dedie-alt__price {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
}

.dedie-alt__price strong {
  font-weight: 700;
  color: inherit;
}

.dedie-alt__arrow {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--vps-accent);
  transition: transform 0.2s ease;
}

.dedie-alt:hover .dedie-alt__arrow {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .dedie-alts {
    grid-template-columns: 1fr;
  }
}

.dedie-offer {
  display: grid;
  grid-template-columns: minmax(160px, 0.95fr) minmax(0, 2.4fr) auto;
  align-items: center;
  gap: 1.1rem 1.5rem;
  padding: 1.05rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--vps-card-border);
  border-left: 4px solid var(--range-accent);
  background: var(--vps-card-bg);
  box-shadow: var(--vps-card-shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.dedie-offer:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--vps-accent) 32%, var(--vps-card-border));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .dedie-offer:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dedie-offer--eco {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(34, 197, 94, 0.55);
  border-left: 5px solid var(--dedie-eco);
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(90deg, rgba(22, 163, 74, 0.1), transparent 42%),
    var(--vps-card-bg);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.12),
    0 10px 28px rgba(22, 163, 74, 0.14);
}

.dedie-offer--eco:hover {
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.2),
    0 14px 32px rgba(22, 163, 74, 0.22);
}

.dedie-offer__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.dedie-offer__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="light"] .dedie-offer__tag {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
}

.dedie-offer--eco .dedie-offer__name {
  color: #86efac;
}

[data-theme="light"] .dedie-offer--eco .dedie-offer__name {
  color: #166534;
}

.dedie-offer--eco .dedie-offer__amount {
  color: #86efac;
}

[data-theme="light"] .dedie-offer--eco .dedie-offer__amount {
  color: #166534;
}

.dedie-offer--eco .dedie-offer__cta {
  background: var(--dedie-eco);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}

.dedie-offer--eco .dedie-offer__cta:hover {
  background: #15803d;
}

.dedie-offer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.dedie-offer__cpu-logo {
  display: block;
  width: auto;
  height: 2.75rem;
  flex-shrink: 0;
  object-fit: contain;
}

.dedie-offer__brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.dedie-offer__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--section-muted);
}

.dedie-offer__flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #002395 0 33.333%,
    #fff 33.333% 66.666%,
    #ed2939 66.666% 100%
  );
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.dedie-offer__name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--section-title);
  letter-spacing: -0.02em;
}

.dedie-offer__specs {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: start;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
}

.dedie-offer__specs li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.dedie-offer__specs li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  right: -0.75rem;
  width: 1px;
  background: color-mix(in srgb, var(--section-muted) 28%, transparent);
  transform: none;
  height: auto;
}

.dedie-offer__label {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--section-muted);
}

.dedie-offer__value {
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--section-title);
}

.dedie-offer__value strong {
  font-weight: 700;
}

.dedie-offer__buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
  text-align: right;
}

.dedie-offer__from {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--section-muted);
}

.dedie-offer__price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.3rem;
  margin: 0 0 0.55rem;
}

.dedie-offer__amount {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.dedie-offer__currency {
  margin-right: 0.1rem;
}

[data-theme="light"] .dedie-offer__amount {
  color: var(--section-title);
}

.dedie-offer__period {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--section-muted);
}

.dedie-offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 8.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: var(--range-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.dedie-offer__cta:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .dedie-offer {
    grid-template-columns: 1fr auto;
    gap: 0.85rem 1rem;
  }

  .dedie-offer__specs {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dedie-offer__specs li:not(:last-child)::after {
    display: none;
  }

  .dedie-offer__buy {
    align-self: start;
  }
}

@media (max-width: 560px) {
  .dedie-offer {
    grid-template-columns: 1fr;
    padding: 1.15rem 1.2rem;
  }

  .dedie-offer__buy {
    align-items: stretch;
    text-align: left;
  }

  .dedie-offer__price {
    justify-content: flex-start;
  }

  .dedie-offer__cta {
    width: 100%;
  }
}
