/* ───────────────────────── Page Tarifs ───────────────────────── */
/* Chargée après acceuil.css : réutilise header, footer, boutons, variables */

/* ── Hero ── */
.prices-hero {
  min-height: 44vh;
  padding: clamp(64px, 11vw, 110px) 20px clamp(46px, 8vw, 76px);
  text-align: center;
  background-image:
    linear-gradient(to bottom, rgba(15, 17, 21, 0.35), rgba(15, 17, 21, 0.95)),
    url("../img/Banner.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: grid;
  place-items: center;
}

.prices-hero h2 {
  max-width: 900px;
  margin: 0 auto 16px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.prices-hero-sub {
  max-width: 720px;
  margin: 0 auto;
  color: #d6dceb;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
}

.prices-updated {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.32);
  color: #e9edff;
  font-size: 0.82rem;
  font-weight: 600;
}

.prices-updated:empty {
  display: none;
}

/* Mention « mis à jour » : déplacée sous la grille de prix */
.prices-updated-wrap {
  text-align: center;
  margin: -34px 0 14px;
}

.prices-updated-wrap .prices-updated {
  margin-top: 0;
}

/* ── Conteneur ── */
.prices-wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 32px 0 92px;
}

/* ── Barre de catégories (sticky) ── */
.prices-pills {
  position: sticky;
  top: calc(var(--header-height) + 10px);
  z-index: 60;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 16, 21, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.prices-pills[hidden] {
  display: none;
}

.prices-pill {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.prices-pill:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.prices-pill.is-active {
  background: linear-gradient(110deg, var(--brand), var(--brand-2));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(140, 25, 152, 0.35);
}

/* ── Catégories ── */
.prices-category {
  scroll-margin-top: calc(var(--header-height) + 84px);
  margin-bottom: 54px;
}

.prices-category-head {
  text-align: center;
  margin-bottom: 26px;
}

.prices-category-head h3 {
  margin-bottom: 8px;
}

.prices-category-sub {
  margin: 0 auto;
  max-width: 640px;
  color: var(--text-soft);
}

/* ── Grille de cartes ── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.price-grid--1 {
  max-width: 520px;
  margin-inline: auto;
}

.price-grid--2 {
  max-width: 880px;
  margin-inline: auto;
}

.price-grid--3 {
  max-width: 1040px;
  margin-inline: auto;
}

.price-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #171d25, #1f2731);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.price-card.is-featured {
  border-color: rgba(196, 59, 226, 0.75);
  background: linear-gradient(165deg, #22142f, #1d1a2e);
  box-shadow: 0 16px 36px rgba(140, 25, 152, 0.28);
  transform: translateY(-4px);
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .price-card.is-featured {
    animation: featured-glow 3.2s ease-in-out infinite;
  }
}

@keyframes featured-glow {
  0%,
  100% {
    box-shadow: 0 16px 36px rgba(140, 25, 152, 0.28);
  }

  50% {
    box-shadow: 0 18px 44px rgba(196, 59, 226, 0.45);
  }
}

/* Badge « Le plus populaire » : étoile + halo discret */
.price-card.is-featured .price-badge {
  padding: 6px 14px;
  font-size: 0.76rem;
  box-shadow: 0 4px 14px rgba(196, 59, 226, 0.5);
}

.price-card.is-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.price-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(110deg, var(--brand), var(--brand-2));
}

/* Badge de carte : posé sous le titre, dans le bloc d'en-tête */
.price-card-head .price-badge {
  display: inline-block;
  margin-top: 8px;
}

.price-card-head {
  min-height: 58px;
}

.price-name {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.price-duration {
  margin: 7px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d88bff;
}

/* ── Prix ── */
/* (price-line / price-amount / price-unit / price-old vivent dans acceuil.css,
   partagés avec la section tarifs de l'accueil) */

.price-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Mention sous le prix : prix indicatif, variable selon les options */
.price-note {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.87rem;
  font-style: italic;
  line-height: 1.5;
}

/* ── Points inclus ── */
.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #dbe2ec;
  font-size: 0.94rem;
  line-height: 1.45;
}

.price-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
}

.price-card-cta {
  display: block;
  margin-top: auto;
  text-align: center;
  text-decoration: none;
}

/* ── Liste (layout "list") ── */
.price-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  display: grid;
  gap: 12px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #161c24, #1d242d);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.price-row:hover {
  border-color: rgba(196, 59, 226, 0.4);
  transform: translateY(-2px);
}

.price-row.is-featured {
  border-color: rgba(196, 59, 226, 0.75);
  background: linear-gradient(165deg, #22142f, #1d1a2e);
}

.price-row-info {
  min-width: 0;
}

.price-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.price-row .price-name {
  font-size: 1.08rem;
}

.price-row .price-description {
  margin-top: 6px;
  font-size: 0.93rem;
}

.price-row-price {
  flex: 0 0 auto;
}

.price-row-price .price-line {
  justify-content: flex-end;
}

/* ── Actions (hero, CTA) ── */
.prices-hero-cta {
  margin-top: 26px;
}

.prices-hero-cta:empty {
  display: none;
}

.prices-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.prices-actions .btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.prices-action-note {
  margin: 16px 0 0;
  color: #cfd6e4;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Photo du forfait + lightbox (clic -> grand) ── */
.price-card-media {
  display: block;
  margin: -28px -24px -6px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  cursor: zoom-in;
}

.price-card-media img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.price-card-media:hover img {
  transform: scale(1.04);
}

.price-card.is-featured::before {
  z-index: 2;
}

.prices-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 9, 0.93);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.prices-lightbox[hidden] {
  display: none;
}

.prices-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.prices-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── Tableau comparatif ── */
.prices-comparison {
  margin-bottom: 48px;
}

.prices-comparison h3 {
  margin-bottom: 8px;
  text-align: center;
}

.prices-comparison-text {
  max-width: 680px;
  margin: 0 auto 22px;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Badge "En option" dans le tableau comparatif */
.cmp-chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.cmp-chip--option {
  border: 1px dashed rgba(196, 59, 226, 0.55);
  background: rgba(140, 25, 152, 0.14);
  color: #e6c9f2;
}

.cmp-footnote {
  max-width: 760px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.6;
  font-style: italic;
}

.cmp-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #161c24, #1d242d);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.cmp-scroll:focus-visible {
  outline: 2px solid rgba(140, 25, 152, 0.5);
  outline-offset: 2px;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}

.cmp-table th,
.cmp-table td {
  padding: 13px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmp-table thead th {
  background: #131821;
  color: #fff;
  vertical-align: bottom;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cmp-feature-col,
.cmp-feature-label {
  text-align: left !important;
  font-weight: 600;
  color: var(--text-soft);
  overflow-wrap: break-word;
}

.cmp-feature-label,
.cmp-feature-col {
  width: 24%;
}

.cmp-plan-name {
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
}

/* Colonne du forfait mis en avant (best seller) dans le tableau */
.cmp-table thead th.is-featured {
  background: linear-gradient(165deg, #2c1638, #1b1626);
  box-shadow: inset 0 -3px 0 var(--brand-2);
}

.cmp-table thead th.is-featured .cmp-plan-name::after {
  content: "\2605";
  margin-left: 6px;
  color: #f5b301;
}

.cmp-plan-price {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d88bff;
}

.cmp-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.cmp-yes .cmp-mark {
  color: #fff;
  background: linear-gradient(120deg, #1f9d55, #2ecc71);
}

.cmp-no .cmp-mark {
  color: #ffb9b9;
  background: rgba(231, 76, 60, 0.18);
}

.cmp-text {
  color: #e6ebf3;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cmp-empty {
  color: #6b7480;
}

.cmp-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 768px) {
  .cmp-feature-col,
  .cmp-feature-label {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #161c24;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
  }

  .cmp-table thead th.cmp-feature-col {
    z-index: 2;
    background: #131821;
  }
}

/* ── Bon à savoir ── */
.prices-notes {
  margin-top: 46px;
  padding: 24px clamp(18px, 3vw, 30px);
  border: 1px solid rgba(196, 59, 226, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(140, 25, 152, 0.1), rgba(29, 35, 44, 0.7));
}

.prices-notes h3 {
  margin-bottom: 12px;
  text-align: left;
  font-size: 1.25rem;
}

.prices-notes-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  line-height: 1.6;
}

.prices-notes-list strong {
  color: #fff;
}

/* ── FAQ ── */
.prices-faq {
  margin-top: 46px;
}

.prices-faq h3 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.price-faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #161c24;
  overflow: hidden;
}

.price-faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 18px;
  font-weight: 700;
  color: #f2f4f8;
}

.price-faq-item summary::-webkit-details-marker {
  display: none;
}

.price-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: #d88bff;
  transition: transform 0.2s ease;
}

.price-faq-item[open] summary::after {
  content: "\2212";
}

.price-faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── CTA final ── */
.prices-cta {
  margin-top: 50px;
  text-align: center;
  padding: clamp(28px, 5vw, 46px) clamp(20px, 4vw, 40px);
  border: 1px solid rgba(196, 59, 226, 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(196, 59, 226, 0.22), transparent 70%),
    linear-gradient(165deg, #171d25, #1f2731);
  box-shadow: var(--shadow-lg);
}

.prices-cta h3 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}

.prices-cta p {
  max-width: 640px;
  margin: 0 auto 20px;
  color: var(--text-soft);
  line-height: 1.65;
}

.prices-cta-btn {
  display: inline-block;
  text-decoration: none;
}

/* ── États : dans acceuil.css (partagés avec l'accueil) ── */

/* ── Responsive ── */
@media (max-width: 768px) {
  .prices-pills {
    top: calc(var(--header-height) + 6px);
    border-radius: var(--radius-md);
    padding: 6px;
    gap: 6px;
  }

  .prices-pill {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .price-row-price .price-line {
    justify-content: flex-start;
  }

  .price-card-head {
    min-height: 0;
  }

  /* ── Tableau comparatif en pile : plus aucun scroll horizontal ── */
  .cmp-scroll {
    overflow-x: visible;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table td {
    display: block;
    width: 100%;
  }

  .cmp-table thead {
    display: none;
  }

  .cmp-table tbody tr {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
  }

  .cmp-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .cmp-table td {
    height: auto;
    border-bottom: 0;
    padding: 0;
    text-align: left;
  }

  .cmp-table .cmp-feature-label {
    width: auto;
    margin-bottom: 10px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
  }

  .cmp-table td[data-plan] {
    margin-top: 8px;
    padding: 7px 0 7px 12px;
    border-left: 2px solid rgba(196, 59, 226, 0.45);
  }

  .cmp-table td[data-plan]::before {
    content: attr(data-plan);
    display: block;
    margin-bottom: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-soft);
  }

  .cmp-table td[data-plan] .cmp-chip {
    display: inline-block;
  }

  .cmp-table tbody tr:hover td {
    background: transparent;
  }
}

@media (max-width: 520px) {
  .price-card {
    padding: 24px 20px;
  }

  .price-card-media {
    margin: -24px -20px -6px;
  }

  .price-card-media img {
    height: 165px;
  }

  .price-grid--4 {
    grid-template-columns: 1fr;
  }

  .prices-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .prices-actions .btn {
    width: 100%;
  }

  .prices-notes h3 {
    font-size: 1.15rem;
  }
}
