/* ─── FIX 1: HIDE DUPLICATE NAVBAR ─── */
.ast-header-break-point .main-header-bar,
.ast-primary-header-bar,
.site-header,
.elementor-nav-menu--main {
  display: none !important;
}

/* ─── FIX 2: HERO PADDING IMPROVEMENT ─── */
.pd-hero {
  padding: 100px 24px 80px !important;
}

/* ─── FIX 3: HERO WITH BLUE BACKGROUND ─── */
.pd-hero {
  background: var(--pd-primary) !important;
  color: white !important;
}

/* ─── FIX 4: SECTION BLUE (for usage section) ─── */
.pd-section--blue {
  background: var(--pd-primary);
  color: white;
  padding: 64px 24px;
  max-width: none;
}

.pd-section--blue .pd-section__title,
.pd-section--blue .pd-section__title--white {
  color: white;
}

.pd-usage-card {
  background: rgba(255,255,255,0.08);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
}

.pd-usage-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.pd-usage-card h3 {
  color: white;
  margin: 12px 0 8px;
}

.pd-usage-card p {
  color: rgba(255,255,255,0.7);
}

/* ─── FIX 5: CARDS MOBILE - FIX TITLE WRAPPING & HEIGHTS ─── */
.pd-card-offre,
.pd-offer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  min-width: 280px;
}

.pd-card-offre__name,
.pd-offer-card__name {
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  margin: 8px 0 12px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  max-height: 2.6em;
}

.pd-card-offre__badge,
.pd-offer-card__badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  display: inline-flex !important;
  white-space: nowrap !important;
  z-index: 5;
}

.pd-grid-3,
.pd-cards-row,
.pd-card-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

@media (max-width: 768px) {
  .pd-grid-3,
  .pd-cards-row,
  .pd-card-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ─── FIX 6: PAGE FIBRE SCROLLING FIX ─── */
body,
html {
  overflow: auto !important;
  height: auto !important;
}

.pd-comparator,
.pd-table-wrap,
.pd-page-fibre__table {
  max-height: none !important;
  overflow: visible !important;
  position: static !important;
  height: auto !important;
}

.pd-table {
  display: table !important;
  width: 100% !important;
  max-height: none !important;
}

/* ─── FIX 7: BUTTON STYLES ─── */
.pd-btn-view {
  background: white !important;
  border: 2px solid var(--pd-primary) !important;
  color: var(--pd-primary) !important;
}

.pd-btn-view:hover {
  background: var(--pd-primary) !important;
  color: white !important;
}

.pd-comparator-cta,
a.pd-section-cta {
  background: transparent !important;
  border: 2px solid var(--pd-orange) !important;
  color: var(--pd-orange) !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.pd-comparator-cta:hover {
  background: var(--pd-orange) !important;
  color: white !important;
}

/* ─── FIX 8: NAVBAR PHONE COLOR ─── */
.pd-navbar__phone {
  color: var(--pd-primary) !important;
}

.pd-navbar__phone svg {
  color: var(--pd-orange) !important;
}

/* ─── FIX 9: MOBILE CARDS EMPTY LOAD FIX ─── */
.pd-cards-grid--mobile,
.pd-cards-row {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* ─── FIX 10: CTA REMINDER SECTION ─── */
.pd-cta-rappel {
  margin: 64px auto;
  max-width: 1200px;
  padding: 48px;
  border-radius: 12px;
}

/* ─── FIX 11: HERO 2-COLUMN LAYOUT FOR FORMS ─── */
.pd-hero__inner--2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.pd-hero__form-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  color: var(--pd-text);
}

.pd-hero__form-card .pd-form-row {
  flex-direction: column;
}

.pd-hero__form-card .pd-input,
.pd-hero__form-card button {
  width: 100%;
}

@media (max-width: 768px) {
  .pd-hero__inner--2col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── FIX 12: TITLE DEDUPLICATION ─── */
h1:first-of-type {
  /* removed duplicate titles in post_content via SQL */
}

/* ─── RESPONSIVE ADJUSTMENTS ─── */
@media (max-width: 768px) {
  .pd-card-offre,
  .pd-offer-card {
    min-width: auto;
  }
}

/* ─── ENSURE TABLE ROWS HAVE LOGOS ─── */
.pd-operator-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-operator-badge {
  flex-shrink: 0;
}

.pd-operator-name {
  white-space: nowrap;
}
