/* CSS related to the pricing page */

.text-black-bold {
  color: #000 !important;
  font-weight: 600 !important;
}

/* .tab-white-when-active:active, */
.tab-white-when-active.active,
.tab-white-when-active.show {
  color: #fff !important;
}

.pricing {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 3em;
  }
  
  .pricing-item {
    position: relative;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    text-align: center;
    -webkit-flex: 0 1 330px;
    flex: 0 1 330px;
  }
  
  .pricing-action {
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .pricing-action:focus {
    outline: none;
  }
  
  .pricing-feature-list {
    text-align: left;
  }
  
  .center-pricing {
    background: linear-gradient(135deg,#2C74DF,#0B225B) !important;
  }

  .pricing-palden .pricing-item {
    font-family: 'Open Sans', sans-serif;
    cursor: default;
    color: #84697c;
    background: #fff;
    box-shadow: 0 0 10px rgba(46, 59, 125, 0.23);
    border-radius: 20px 20px 10px 10px;
    margin: 1em;
  }
  
  @media screen and (min-width: 66.25em) {
    .pricing-palden .pricing-item {
        margin: 1em -0.5em;
    }
    .pricing-palden .pricing__item--featured {
        margin: 0;
        z-index: 10;
        box-shadow: 0 0 20px rgba(46, 59, 125, 0.23);
    }
  }
  
  .pricing-palden .pricing-deco {
    
    border-radius: 10px 10px 0 0;
    background: linear-gradient(135deg,#43adff,#0064ff); /* SIDE */
    /* background: linear-gradient(135deg,#2C74DF,#0B225B); BLEU foncé */
    /* background: linear-gradient(135deg,#4097f9,#0af0c7); ORIGINAL */
    padding: 4em 0 9em;
    position: relative;
  }


  
  .pricing-palden .pricing-deco-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
  }
  
  .pricing-palden .pricing-title {
    font-size: 0.75em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
  }
  
  .pricing-palden .deco-layer {
    -webkit-transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
  }
  
  .pricing-palden .pricing-item:hover .deco-layer--1 {
    -webkit-transform: translate3d(15px, 0, 0);
    transform: translate3d(15px, 0, 0);
  }
  
  .pricing-palden .pricing-item:hover .deco-layer--2 {
    -webkit-transform: translate3d(-15px, 0, 0);
    transform: translate3d(-15px, 0, 0);
  }
  
  .pricing-palden .icon {
    font-size: 2.5em;
  }
  
  .pricing-palden .pricing-price {
    font-size: 5em;
    font-weight: bold;
    padding: 0;
    color: #fff;
    margin: 0 0 0.25em 0;
    line-height: 0.75;
  }
  
  .pricing-palden .pricing-currency {
    font-size: 0.25em;
    vertical-align: top;
  }
  
  .pricing-palden .pricing-period {
    font-size: 0.15em;
    padding: 0 0 0 0.5em;
    font-style: italic;
  }
  
  .pricing-palden .pricing__sentence {
    font-weight: bold;
    margin: 0 0 1em 0;
    padding: 0 0 0.5em;
  }
  
  .pricing-palden .pricing-feature-list {
    margin: 0;
    padding: 0.25em 0 2.5em;
    list-style: none;
    text-align: center;
  }
  
  .pricing-palden .pricing-feature {
    padding: 0.5em 0;
  }
  
  /* Button */
  .pricing-palden .pricing-action {
    font-weight: bold;
    margin: auto 3em 2em 3em;
    padding: 1em 2em;
    color: #fff;
    border-radius: 30px;
    background: linear-gradient(135deg,#a93bfe,#584efd);
    /* background: linear-gradient(135deg,#2C74DF,#0B225B); */
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
  }

  .pricing-palden .btn-primary {
    margin: auto 3em 2em 3em;
  }

  .pricing-patate {
    margin: auto 3em 2em 3em;
    padding: 1em 2em;
    border-radius: 30px;
  }
  
  .pricing-palden .pricing-action:hover,
  .pricing-palden .pricing-action:focus {
    background: linear-gradient(135deg,#fd7d57,#f55d59);
  }
  
  .pricing-palden .pricing-item--featured .pricing-deco {
    padding: 5em 0 8.885em 0;
  }

  .pricing-list-title {
    color: black;
    padding-bottom: 20px;
  }

  .pricing-banner {
    position: relative;
    /* height: 200px; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

.half-dark {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 50%; */
    height: 100%;
    background: linear-gradient(135deg,#43adff,#0064ff);
    /* background-color: #2158B0; */
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
}

.half-white {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
}

.icon-inline {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 5px;
}

.section-mini {
  padding-bottom: 30px;
}


/* Changer l'ordre des plans sur mobile */
@media (max-width: 1060px) { 
  .pricing-item {
      order: 1;
  }
  
  .pricing__item--featured {
      order: 2;
  }
}

/***************************************/
/* PROMO SECTION */
/***************************************/ 

.promo-section {
  width: 100%;
  background: #2e7eed0f;
  padding: 40px 0;
}

  .promo-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the content */
    flex-wrap: wrap;
  }

  .promo-text {
    width: 50%;
    text-align: left; /* Center the text within the promo-text */
  }

.promo-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.promo-description {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.promo-button {
  font-size: 1rem;
  padding: 10px 20px;
}

  .promo-image {
    width: auto;
  }

  .promo-image img {
    height: 200px;
    display: block;
    margin: 0 auto; /* Center the image */
  }

.promo-modality {
  font-size: 0.75rem;
  margin-top: 25px;
  line-height: 15px;
}
/* Responsive layout for promo-content */
@media (max-width: 720px) {
  .promo-content {
    flex-direction: column;
  }

  .promo-text, .promo-image {
    width: 100%;
    text-align: center;
  }

  .promo-image img {
    margin-bottom: 20px;
  } 
}

.pricing-discount-tag {
  color: black;
  position: absolute; 
  top: 20px; 
  left: 50%; 
  transform: translateX(-50%); 
  font-size: 0.80rem; 
  font-weight: 600;
  background-color: #B3D6FC;
}

/* Vertically center the 150$ (2nd) and 125$ (3rd) lists within their cards */
.pricing.pricing-palden > .pricing-item:nth-child(2) .pricing-list-title,
.pricing.pricing-palden > .pricing-item:nth-child(3) .pricing-list-title {
  margin-top: auto;
}

.pricing.pricing-palden > .pricing-item:nth-child(2) .pricing-feature-list,
.pricing.pricing-palden > .pricing-item:nth-child(3) .pricing-feature-list {
  margin-bottom: auto;
}

/* Keep the title at the top, and center the list between title and button */
.pricing.pricing-palden > .pricing-item:nth-child(2) .pricing-list-title,
.pricing.pricing-palden > .pricing-item:nth-child(3) .pricing-list-title {
  margin-top: 0; /* override previous auto */
}

.pricing.pricing-palden > .pricing-item:nth-child(2) .pricing-feature-list,
.pricing.pricing-palden > .pricing-item:nth-child(3) .pricing-feature-list {
  margin-bottom: 0; /* override previous auto */
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-grow: 1;
  flex-grow: 1; /* take remaining space between title and button */
}

/* =============================== */
/* Compact Pricing Cards (new UI)  */
/* =============================== */
.pricing-section {
  /* soft brand-tinted background to reduce all-white look */
  background: linear-gradient(180deg, rgba(0,140,255,0.06), rgba(255,255,255,0.03));
}

:root {
  --brand-900: #003051;
  --brand-800: #044B84;
  --brand-700: #0367C6;
  --brand-600: #008CFF;
  --ink-900: #031016;
  --grey-300: #DCDCDC;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 992px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.plan-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: calc(3 * 360px + 2 * 18px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 992px) {
  .plan-grid-secondary { grid-template-columns: 1fr; }
}

/* .plan-grid-tertiary not used after moving Free Trial into secondary grid */

.plan-card {
  border: 1px solid #e5e7eb; /* pale grey border */
  border-radius: 14px;
  padding: 20px;
  background: #ffffff;
  /* background: linear-gradient(180deg, rgba(0,140,255,0.03), rgba(3,16,22,0.02)), #fff; */
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.card-accent {
  border-color: rgba(3, 103, 198, 0.25);
  box-shadow: inset 0 0 0 1px rgba(3, 103, 198, 0.25);
}

/* .plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: linear-gradient(90deg, var(--brand-800), var(--brand-600));
} */

.plan-price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--brand-800);
}

.plan-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-top: -6px;
  /* margin-bottom: 12px; */
}

/* Larger base price for standard plans; adjust titles on second row */
.plan-grid-secondary .plan-price {
  font-size: 36px;
}

.plan-period {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.plan-taxes {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.plan-cta {
  display: block;
  width: auto;
  border-radius: 999px;
  margin: 0 auto 16px;
  padding: 10px 18px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(0, 140, 255, 0.18);
  transition: all .2s ease;
}

.plan-cta:hover {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 140, 255, 0.22);
}

.plan-cta:focus {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  box-shadow: none;
  transform: none;
}

.plan-cta-outline {
  background: #fff;
  color: var(--brand-800) !important;
  border-color: var(--grey-300);
  box-shadow: none;
}

.plan-cta-outline:hover {
  background: rgba(0, 140, 255, 0.06);
  color: var(--brand-800) !important;
  border-color: var(--brand-700);
}

.plan-cta-outline:focus {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  box-shadow: none;
}

.plan-footnote {
  text-align: left;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  margin-bottom: 8px;
}

/* Special styling for Residents & Group */
.special-card {
  border-color: rgba(3, 103, 198, 0.35);
  background: linear-gradient(180deg, rgba(0,140,255,0.10), rgba(3,16,22,0.03)), #fff;
  box-shadow: 0 10px 28px rgba(0, 140, 255, 0.18);
}

.special-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 140, 255, 0.22);
}

/* Subtle hover for regular cards */
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 140, 255, 0.12);
}

.plan-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-800);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.plan-tag-outline {
  background: #fff;
  color: var(--brand-800);
  border: 1px solid rgba(3, 103, 198, 0.35);
}

/* Top-right variant for special labels (e.g., Free) */
.plan-tag-top-right {
  left: auto;
  right: 12px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  box-shadow: 0 8px 20px rgba(0, 140, 255, 0.25);
}

/* Left-aligned variant positioned just above footnote */
.plan-tag-left {
  position: static;
  display: inline-block;
  margin-bottom: 6px;
  left: 0;
  right: auto;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  box-shadow: 0 8px 20px rgba(0, 140, 255, 0.25);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 20px 0;
}

.plan-features li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0px 0;
  font-size: 14px; /* smaller font */
  color: #000; /* black text */
}

.plan-features li::before {
  content: "✓";
  color: var(--brand-700);
  font-weight: 800;
  line-height: 1;
}

.plan-features .incoming-title {
  margin-top: 8px;
  color: #6b7280;
  font-weight: 600;
}

.professions-title {
  margin: 6px 0 5px;
  font-size: 14px;
  font-weight: 600;
  color: #404142;
}

.plan-professions {
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

.plan-professions[data-expanded="true"] {
  max-height: none;
}

.plan-professions::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
  z-index: 1;
}

.plan-professions[data-expanded="true"]::before {
  display: none;
}

.plan-professions::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.9));
  pointer-events: none;
  z-index: 1;
}

.plan-professions[data-expanded="true"]::after {
  display: none;
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #e0efff;
  border-radius: 999px;
  margin: 4px 6px 0 0;
  font-size: 12px;
  white-space: nowrap;
  background: #f7fbff;
  color: var(--brand-800);
}

.chips-toggle {
  background: transparent;
  border: none;
  color: var(--brand-700);
  font-weight: 600;
  padding: 6px 0;
  display: block;
  margin: 0 auto;
  width: fit-content;
}

/* =============================== */
/* Modern Segmented Toggle (tabs)  */
/* =============================== */
#pricing-switch {
  position: relative;
  display: -webkit-flex;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid #e6eaf0;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 6px 24px rgba(3, 16, 22, 0.06);
}

#pricing-switch .toggle-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  box-shadow: 0 8px 20px rgba(0, 140, 255, 0.25);
  transition: transform 240ms ease;
  z-index: 0;
}

#pricing-switch .nav-item {
  -webkit-flex: 1 1 0%;
  flex: 1 1 0%;
}

#pricing-switch .nav-link {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 999px !important;
  background: transparent !important;
  border: none !important;
  color: #0b2a3f !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  padding: 10px 14px;
  transition: color 160ms ease, transform 120ms ease;
}

#pricing-switch .nav-link:hover {
  color: var(--brand-700) !important;
  transform: translateY(-1px);
}

#pricing-switch .nav-link.active,
#pricing-switch .nav-link.show {
  color: #fff !important;
}

#pricing-switch .badge-success {
  background-color: #22c55e !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
}

