/* Pixel-perfect styles for Forfait (deal family / prepaid catalogue) pages.
   Data comes from ACF fields on the Deal CPT and the Brand taxonomy term
   (see components/deals/forfait-card.php and template-parts/archive-deal.php). */

.forfait-hero * { box-sizing: border-box; }
.forfait-hero {
  font-family: "MTNBrighterSans-Regular", Arial, sans-serif;
  color: #1a1a1a;
  max-width: 1100px;
  margin: 0 auto;
}
.forfait-hero__layout {
  display: grid;
  grid-template-columns: 410px 1fr;
  align-items: start;
  gap: 0;
}
.forfait-hero__left {
  padding: 40px 32px 40px 0;
  background: #fff;
}
.forfait-hero__category {
  font-family: "MTNBrighterSans-Regular", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.forfait-hero__title {
  font-family: "MTNBrighterSans-Bold", Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #FFC200;
  line-height: 1.05;
  margin: 0 0 8px;
}
.forfait-hero__description {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin-bottom: 10px;
}
.forfait-hero__image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #1a2236;
}
.forfait-hero__image img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}
.forfait-hero__right {
  border: 1.5px solid #e2e2e2;
  border-radius: 5px;
}

/* Accordion (Avantages / Activation / Désactivation / Tarifs / Catalogue...)
   Dedicated markup (components/deals/forfait-accordion.php) so this exact
   look — pale yellow when open, plain chevron, no circular outline — never
   drifts if the shared FAQ/accordion component changes elsewhere. */
.forfait-accordion-item {
  border-bottom: 1px solid #ececec;
}
.forfait-accordion-item:last-child {
  border-bottom: none;
}
.forfait-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: #fff;
  cursor: pointer;
  list-style: none;
  transition: background .2s ease;
}
.forfait-accordion-toggle::-webkit-details-marker {
  display: none;
}
.forfait-accordion-item[open] > .forfait-accordion-toggle {
  background: #fffde8;
}
.forfait-accordion-title {
  font-family: "MTNBrighterSans-Bold", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.forfait-accordion-item[open] > .forfait-accordion-toggle .forfait-accordion-title {
  color: #052C65;
}
.forfait-accordion-chevron {
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.forfait-accordion-item[open] > .forfait-accordion-toggle .forfait-accordion-chevron {
  transform: rotate(180deg);
}
.forfait-accordion-panel {
  padding: 4px 24px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #1a1a1a;
}
.forfait-accordion-panel ul,
.forfait-accordion-panel ol {
  padding-left: 20px;
  margin: 8px 0;
}
.forfait-accordion-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.forfait-accordion-panel table th,
.forfait-accordion-panel table td {
  border: 1px solid #ececec;
  padding: 8px 10px;
  text-align: left;
}

/* Structured "acc_content_type = table" rendering (see forfait-accordion.php) */
.forfait-accordion-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #ececec;
}
.forfait-accordion-table thead th {
  background: #FFC200;
  color: #1a1a1a;
  font-family: "MTNBrighterSans-Bold", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 16px;
  text-align: left;
}
.forfait-accordion-table thead th:last-child {
  text-align: right;
}
.forfait-accordion-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  border-top: 1px solid #ececec;
}
.forfait-accordion-table tbody td:last-child {
  text-align: right;
}
.forfait-accordion-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* -------- Catalogue: tabs + card grid -------- */
.forfait-catalog {
  font-family: "MTNBrighterSans-Regular", Arial, sans-serif;
  color: #1a1a1a;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.deal-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.deal-period-tab {
  font-family: "MTNBrighterSans-Bold", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 11px 24px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.deal-period-tab:hover {
  border-color: #FFC200;
}
.deal-period-tab.is-active {
  background: #FFC200;
  border-color: #FFC200;
}

/* This grid has no filter sidebar next to it (unlike the deal archive's
   equivalent, narrower content column), so a fixed 3-column split would
   stretch each card noticeably wider than its deal-archive counterpart.
   auto-fill + a bounded card width keeps cards the same real size in both
   places; wider viewports just fit more columns instead of wider cards. */
.deals-archive--content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
  justify-content: center;
  gap: 24px;
}
@media (max-width: 900px) {
  .deals-archive--content { grid-template-columns: repeat(2, 1fr); }
  .forfait-hero__layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .deals-archive--content { grid-template-columns: 1fr; }
}

/* Card dimensions/type below are matched to components/deals/card-deal.php
   (the "devices" card) so all three deal/forfait/prestige card designs read
   as one consistent system. */
.forfait-card {
  background: #fff;
  border: 1px solid #B0B0B0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}
.forfait-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.forfait-card__body {
  padding: 24px 24px 18px;
}
.forfait-card__label {
  font-size: 12px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #606060;
  line-height: 1.25em;
  margin-bottom: 6px;
}
.forfait-card__amount {
  font-family: "MTNBrighterSans-Bold", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25em;
  margin-bottom: 22px;
}
.forfait-card__includes-label {
  font-size: 12px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #606060;
  line-height: 1.25em;
  margin-bottom: 12px;
}
.forfait-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.forfait-card__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #444;
  padding: 5px 0;
}
.forfait-card__chev {
  flex: 0 0 auto;
  color: #FFC200;
}
.forfait-card__foot {
  background: #FFCB05;
  padding: 16px 24px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}
.forfait-card__foot-txt {
  flex: 1;
}
.forfait-card__only {
  font-size: 14px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 3px;
}
.forfait-card__price {
  font-family: "MTNBrighterSans-Bold", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
}
.forfait-card__arrow {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: transform .25s ease;
}
.forfait-card:hover .forfait-card__arrow {
  transform: translateX(5px);
}

/* -------- Forfait hub pages (Explore / Data / Voice) -------- */
.forfait-hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.forfait-hub__section {
  margin-top: 40px;
}
.forfait-hub__heading {
  font-family: "MTNBrighterSans-Bold", Arial, sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
}
.forfait-hub__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 700px) {
  .forfait-hub__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .forfait-hub__grid { grid-template-columns: 1fr; }
}
.forfait-teaser-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1a2236;
  text-decoration: none;
  isolation: isolate; /* new stacking context so the z-index below is scoped to this card */
}
.forfait-teaser-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform .3s ease;
}
.forfait-teaser-card:hover img {
  transform: scale(1.05);
}
.forfait-teaser-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 55%, rgba(0,0,0,.92) 100%);
  pointer-events: none;
  z-index: 1;
}
.forfait-teaser-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2; /* above the image and the ::after gradient */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
}
.forfait-teaser-card__title {
  font-family: "MTNBrighterSans-Bold", Arial, sans-serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.2;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  max-width: 75%;
}
.forfait-teaser-card__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.forfait-teaser-card__arrow svg {
  width: 18px;
  height: 18px;
}
