/*
 * Chasseur Chaos - passe de finition visuelle
 * Ajustements non fonctionnels : rythme, alignements et responsive.
 */

:root {
  --cc-content-width: 1180px;
  --cc-section-space: clamp(4.75rem, 7vw, 6.5rem);
  --cc-card-radius: 20px;
}

html {
  scroll-padding-top: 0;
}

#presentation,
#chaos-plus,
#solo-access,
#temoignages {
  scroll-margin-top: 78px;
}

.container {
  width: 100%;
  max-width: var(--cc-content-width);
}

.section,
.solo-section,
.minecraft-section {
  padding-top: var(--cc-section-space);
  padding-bottom: var(--cc-section-space);
}

.section-title {
  line-height: 1.15;
  text-wrap: balance;
}

.section-subtitle {
  line-height: 1.65;
  text-wrap: balance;
}

/* Header : alignement plus stable entre le logo, le menu et le bouton. */
.header-content {
  min-height: 48px;
}

.nav-links {
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

/* Hero : statistiques de largeur identique et CTA plus réguliers. */
.hero-content {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

/* Logo d'arriere-plan : present, mais suffisamment contenu pour laisser respirer le hero. */
.hero-logo-bg {
  width: clamp(620px, 58vw, 840px);
  max-width: none;
  opacity: 0.3;
  filter: brightness(1.35) saturate(1.45) contrast(1.08)
    drop-shadow(0 0 76px rgba(255, 0, 51, 0.28));
}

.hero-description,
.hero-stats .stat-value,
.hero-stats .stat-label {
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.85);
}

.hero-title {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

.hero-stats {
  width: min(100%, 620px);
  margin-inline: auto;
}

.hero-stats .stat {
  flex: 1 1 0;
  min-width: 0;
}

.stat-label {
  max-width: 11rem;
  line-height: 1.45;
  text-align: center;
}

.hero-actions .btn {
  min-height: 50px;
}

/* Présentation : mêmes hauteurs et même rythme interne pour toutes les cartes. */
.features-grid {
  align-items: stretch;
}

.feature-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  border-radius: var(--cc-card-radius);
}

.feature-title {
  line-height: 1.35;
  text-wrap: balance;
}

.feature-description {
  max-width: 31rem;
  margin-inline: auto;
}

/* Chaos+ : cartes réellement alignées, y compris avec l'offre annuelle. */
.promo-code-bar {
  width: 100%;
  margin-bottom: 2.75rem;
  padding-inline: 0;
}

.promo-code-input {
  align-items: stretch;
  gap: 0.625rem;
}

.promo-code-input input,
.promo-apply-btn {
  min-height: 44px;
}

.promo-code-input input {
  min-width: 0;
}

.pricing-cards.pricing-cards-3 {
  gap: 1.5rem;
}

.pricing-card {
  height: 100%;
  padding: 2.25rem 2rem;
  border-radius: var(--cc-card-radius);
}

.pricing-header {
  display: flex;
  height: 240px;
  min-height: 224px;
  flex: 0 0 240px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.pricing-header h3 {
  max-width: calc(100% - 3rem);
  line-height: 1.3;
  text-wrap: balance;
}

.pricing-price {
  min-height: 72px;
  line-height: 1;
}

.pricing-card.featured .pricing-price {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.5rem;
  row-gap: 0.25rem;
}

.pricing-card.featured .pricing-price .price-original {
  grid-column: 1 / -1;
  line-height: 1.2;
}

.pricing-card.featured .pricing-price .price {
  grid-column: 1;
}

.pricing-card.featured .pricing-price .period {
  grid-column: 2;
}

.pricing-tagline {
  display: flex;
  min-height: 2.5em;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
}

.pricing-features {
  width: 100%;
}

.pricing-features li {
  align-items: flex-start;
  min-height: 50px;
  line-height: 1.45;
}

.pricing-features .check,
.pricing-features .cross {
  flex: 0 0 auto;
  margin-top: 0.08em;
}

.pricing-btn {
  min-height: 50px;
}

.pricing-card-icon {
  top: 1.35rem;
  right: 1.35rem;
}

/* Accès solo : une carte un peu mieux proportionnée et moins isolée. */
.solo-card {
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  border-radius: var(--cc-card-radius);
}

.solo-header h3 {
  line-height: 1.35;
  text-wrap: balance;
}

.solo-features li {
  align-items: flex-start;
  line-height: 1.5;
}

.solo-features li svg {
  margin-top: 0.25em;
}

.solo-btn {
  min-height: 54px;
}

/* Page Minecraft : équilibre plus net entre le descriptif et la carte. */
.mc-purchase-page {
  display: flex;
  align-items: center;
  padding-top: 7.5rem;
  padding-bottom: 3.5rem;
}

.mc-purchase-page > .container {
  width: 100%;
}

.mc-purchase-content {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
  gap: clamp(3rem, 6vw, 6rem);
}

.mc-purchase-info h1 {
  line-height: 1.15;
  text-wrap: balance;
}

.mc-purchase-subtitle {
  max-width: 36rem;
}

.mc-purchase-features li {
  align-items: flex-start;
  line-height: 1.5;
}

.mc-purchase-features li svg {
  flex: 0 0 auto;
  margin-top: 0.28em;
}

.mc-purchase-card {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  border-radius: var(--cc-card-radius);
}

.mc-submit-btn {
  min-height: 54px;
}

/* Témoignages / créateurs : restauration à partir des profils existants. */
.testimonials-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 0, 51, 0.12), transparent 42%),
    linear-gradient(180deg, var(--bg-dark), rgba(24, 0, 8, 0.88), var(--bg-dark));
}

.testimonials-container {
  position: relative;
}

.testimonials-carousel {
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 0, 51, 0.55) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.testimonial-profile {
  display: flex;
  min-height: 245px;
  flex: 0 0 calc((100% - 4rem) / 5);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  scroll-snap-align: start;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--cc-card-radius);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.testimonial-profile:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255, 0, 51, 0.09), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 0, 51, 0.35);
}

.testimonial-avatar {
  width: 104px;
  height: 104px;
  margin-bottom: 1.15rem;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.testimonial-name {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.testimonial-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.testimonial-arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.testimonial-arrow:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: rgba(255, 0, 51, 0.45);
}

@media (max-width: 1024px) {
  .pricing-cards.pricing-cards-3 {
    gap: 2rem;
  }

  .pricing-header {
    height: auto;
    min-height: 0;
    flex-basis: auto;
  }

  .mc-purchase-content {
    max-width: 680px;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mc-purchase-card {
    justify-self: center;
  }

  .mc-purchase-info,
  .mc-purchase-subtitle {
    margin-inline: auto;
  }

  .testimonial-profile {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 768px) {
  :root {
    --cc-section-space: 4.5rem;
  }

  #presentation,
  #chaos-plus,
  #solo-access,
  #temoignages {
    scroll-margin-top: 69px;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .header {
    padding-block: 0.75rem;
  }

  .header.scrolled {
    padding-block: 0.65rem;
  }

  .header-content {
    min-height: 44px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo-img {
    height: 39px;
  }

  .section-title {
    font-size: clamp(2rem, 9vw, 2.35rem);
    margin-bottom: 0.875rem;
  }

  .section-subtitle {
    margin-bottom: 2.25rem;
    font-size: 1rem;
  }

  .hero {
    min-height: 100svh;
    padding: 6.25rem 0 2.5rem;
  }

  .hero-logo-bg {
    width: min(135vw, 540px);
    opacity: 0.22;
  }

  .hero-badge {
    margin-bottom: 1.5rem;
  }

  .hero-title {
    margin-bottom: 1.25rem;
  }

  .hero-description {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-stats {
    gap: 0.5rem;
    margin-bottom: 2.25rem;
  }

  .stat-value {
    font-size: clamp(1.55rem, 8vw, 1.85rem);
  }

  .stat-label {
    padding-inline: 0.15rem;
    font-size: 0.78rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: min(100%, 320px);
    min-height: 52px;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 1.75rem 1.5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-price {
    min-height: 0;
  }

  .solo-card {
    max-width: 520px;
    margin-inline: auto;
    padding: 2rem 1.5rem;
  }

  .solo-section .section-subtitle {
    margin-bottom: 2rem;
  }

  .mc-purchase-page {
    align-items: flex-start;
    padding: 6.5rem 0 3.5rem;
  }

  .mc-purchase-content {
    gap: 2.5rem;
  }

  .mc-purchase-info h1 {
    font-size: clamp(2.1rem, 10vw, 2.65rem);
  }

  .mc-purchase-subtitle {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
  }

  .mc-purchase-features li {
    font-size: 1rem;
  }

  .testimonial-profile {
    min-height: 225px;
    flex-basis: calc((100% - 1rem) / 2);
    padding: 1.5rem 0.875rem;
  }

  .testimonial-avatar {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 480px) {
  .promo-code-input {
    flex-direction: column;
  }

  .promo-apply-btn {
    width: 100%;
  }

  .pricing-card {
    padding: 1.75rem 1.25rem;
  }

  .pricing-card-icon {
    top: 1rem;
    right: 1rem;
  }

  .pricing-features li {
    min-height: 0;
  }

  .solo-card,
  .mc-purchase-card {
    padding: 1.5rem 1.25rem;
  }

  .mc-input-wrapper {
    gap: 0.75rem;
  }

  .testimonial-profile {
    flex-basis: 76%;
  }
}

/* Chaos+ : avertissement d'achat clairement visible sous chaque formule. */
.pricing-note .non-refundable-note,
.solo-note .non-refundable-note {
  display: block;
  margin-top: 0.4rem;
  color: #ff6b81;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Lien juridique discret, sans exposer les coordonnées dans le pied de page. */
.footer-bottom .legal-footer-link {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-bottom .legal-footer-link:hover,
.footer-bottom .legal-footer-link:focus-visible {
  color: #fff;
  text-decoration-color: #ff234e;
}
