/* =========================================================
   PAGE PACK THERMODURCISSABLES
   Fichier : assets/css/simulator.css
========================================================= */

.pack-page {
  overflow: visible;
  background: #ffffff;
}

.pack-page .section-inner {
  width: min(100% - 2rem, 1560px);
  max-width: 1560px;
}

.pack-title,
.section-kicker,
.tool-badge,
.sticky-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pack-title {
  margin-bottom: 1.3rem;
  border: 1px solid #feaa00;
  background: rgba(0, 88, 141, 0.14);
  color: #feaa00;
}

.section-kicker {
  border: 1px solid #00588d;
  background: rgba(0, 88, 141, 0.14);
  color: #00588d;
}

/* =========================
   HERO
========================= */

.pack-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(254, 170, 0, 0.2), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(0, 14, 32, 0.98), rgba(0, 88, 141, 0.92));
}

.pack-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -90px;
  height: 180px;
  background: #ffffff;
  border-radius: 50% 50% 0 0;
  transform: rotate(-3deg);
  opacity: 0.96;
}

.pack-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 3rem;
}

.pack-hero-content {
  max-width: 760px;
}

.pack-title .fa-solid {
  margin: 0;
  font-size: 0.85rem;
}

.pack-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.pack-hero-subtitle {
  max-width: 580px;
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.pack-hero-highlight {
  max-width: 720px;
  margin: 0 0 2rem;
  color: var(--color-accent-strong);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}

/* =========================
   HERO VISUAL AVEC VRAIES IMAGES
========================= */

.pack-hero-visual {
  position: relative;
  min-height: 500px;
  perspective: 1200px;
}

.hero-image {
  overflow: hidden;
  background: #ffffff;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-main {
  position: relative;
  z-index: 100;
  width: min(100%, 720px);
  margin-left: auto;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.hero-left {
  position: absolute;
  top: 130px;
  left: 0;
  z-index: 101;
  width: 280px;
  opacity: 0.88;
  transform: rotate(6deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-right {
  position: absolute;
  top: 40px;
  right: -40px;
  z-index: 103;
  width: 280px;
  opacity: 0.88;
  transform: rotate(8deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-image:hover {
  z-index: 104;
}

.hero-main:hover {
  transform: scale(1.015) rotate(0deg);
}

.hero-left:hover,
.hero-right:hover {
  opacity: 1;
  transform: scale(1.03) rotate(0deg);
}


/* =========================
   INTRO
========================= */

.pack-intro {
  position: relative;
  z-index: 3;
  background: #ffffff;
  color: #101828;
}

.pack-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 3rem;
  align-items: start;
}

.pack-intro h2 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.pack-intro p {
  margin: 2.4rem 0 0;
  color: #667085;
  line-height: 1.8;
}

/* =========================
   OUTILS
========================= */

.pack-tools-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 55%, #ffffff 100%);
  color: #101828;
}

.pack-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}

.pack-tools-list {
  display: grid;
  gap: 1.8rem;
}

.pack-tool-block {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.55fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.1rem;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.08);
}

.tool-primary {
  border-color: rgba(0, 88, 141, 0.2);
  box-shadow:
    0 24px 80px rgba(16, 24, 40, 0.1),
    0 0 0 1px rgba(254, 170, 0, 0.12);
}

/* =========================
   TABS AVEC VIGNETTES
========================= */

.tool-tabs {
  display: grid;
  grid-template-rows: auto minmax(520px, auto);
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
}

.tool-tabs-small {
  grid-template-rows: auto minmax(360px, auto);
}

.tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background: #ffffff;
}

.tool-tabs-small .tabs-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tab-btn {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 86px;
  padding: 0.65rem;
  border: none;
  border-right: 1px solid rgba(16, 24, 40, 0.06);
  background: #ffffff;
  color: #475467;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover,
.tab-btn.is-active {
  background: #f8faff;
  color: #00588d;
}

.tab-btn.is-active {
  box-shadow: inset 0 -3px 0 #feaa00;
}

.tab-thumb {
  position: relative;
  display: block;
  width: 72px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 20%, rgba(254, 170, 0, 0.12), transparent 45%),
    #f3f6ff;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.tab-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-thumb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00588d;
  font-size: 1.35rem;
}

.tab-thumb-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.22);
}

.tab-thumb-video > i {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1rem;
}

.tab-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  line-height: 1.25;
}

.tab-label .fa-solid {
  margin: 0;
  font-size: 0.95rem;
}

.tab-btn.is-active .tab-label .fa-solid,
.tab-btn.is-active .tab-thumb-icon {
  color: #feaa00;
}

.tab-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  overflow: hidden;
  padding: 0;
  border: none;
  outline: none;
  background: #ffffff;
  cursor: pointer;
}

.tool-tabs-small .tab-preview {
  min-height: 380px;
}

.tab-preview img,
.tab-preview video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: contain;
  border: none;
  outline: none;
}

.tab-preview video {
  background: #000000;
}

.tool-tabs-small .tab-preview img,
.tool-tabs-small .tab-preview video {
  max-height: 380px;
}

.tab-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 520px;
  background:
    radial-gradient(circle at 15% 20%, rgba(254, 170, 0, 0.12), transparent 35%),
    #ffffff;
  color: #667085;
  font-weight: 700;
  text-align: center;
}

/* =========================
   CARTE TEXTE OUTILS
========================= */

.tool-info-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(0, 88, 141, 0.08), transparent 40%),
    #ffffff;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1rem;
  border-radius: 18px;
  color: #ffffff;
  aspect-ratio: 1/1;
}

.tool-icon img{
  width: 80%;
  aspect-ratio: 1/1;
}

.tool-icon .fa-solid {
  margin: 0;
  font-size: 1.75rem;
}

.tool-badge {
  margin-bottom: 1rem;
}

.tool-info-card h3 {
  margin: 0 0 0.5rem;
  color: #101828;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.tool-info-card h4 {
  margin: 0 0 1rem;
  color: #344054;
  font-size: 1.05rem;
  line-height: 1.5;
}

.tool-info-card p {
  margin: 0;
  color: #667085;
  line-height: 1.75;
}

.tool-info-card .highlight-list li {
  color: #475467;
}

.primary-icon {
  background: linear-gradient(135deg, #feaa00, #ff7b00);
}

.secondary-icon {
  background: linear-gradient(135deg, #00588d, #3aa6d8);
}

.tertiary-icon {
  background: linear-gradient(135deg, #0b3763, #6f7cff);
}

.badge-primary {
  background: linear-gradient(90deg, #feaa00, #ffd35a);
  color: #0b1726;
}

.badge-secondary {
  background: rgba(0, 88, 141, 0.1);
  color: #00588d;
}

.badge-tertiary {
  background: rgba(11, 55, 99, 0.1);
  color: #0b3763;
}

/* =========================
   BLOC BASE DE DONNÉES
========================= */

.tool-extra-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.5rem;
  margin-top: 0.25rem;
  padding: 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(254, 170, 0, 0.12), transparent 40%),
    linear-gradient(135deg, #f8faff, #ffffff);
}

.tool-extra-content h4 {
  margin: 1rem 0 0.75rem;
  color: #101828;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
}

.tool-extra-content p {
  margin: 0 0 1rem;
  color: #667085;
  line-height: 1.7;
}

/* =========================
   STICKY
========================= */

.pack-sticky-summary {
  position: sticky;
  top: 7rem;
  padding: 1.4rem;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(254, 170, 0, 0.16), transparent 42%),
    #ffffff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}

.pack-sticky-summary h3 {
  margin: 0.8rem 0 1.1rem;
  color: #101828;
  font-size: 1.4rem;
}

.sticky-label {
  background: rgba(254, 170, 0, 0.14);
  color: #9a6200;
}

.sticky-tools-nav {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.sticky-tools-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: #f8faff;
  color: #475467;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.sticky-tools-nav a:hover {
  transform: translateX(3px);
  background: #eef4ff;
  color: #101828;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.dot.primary {
  background: #feaa00;
}

.dot.secondary {
  background: #00588d;
}

.dot.tertiary {
  background: #6f7cff;
}

.sticky-price {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #f8faff;
}

.sticky-price span {
  display: block;
  color: #667085;
  font-size: 0.85rem;
}

.sticky-price strong {
  display: block;
  margin-top: 0.2rem;
  color: #101828;
  font-size: 1.25rem;
}

/* =========================
   CTA FINAL
========================= */

.final-page {
  background: #ffffff;
  color: #101828;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 30%, rgba(254, 170, 0, 0.18), transparent 35%),
    linear-gradient(135deg, #f3f6ff, #ffffff);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.08);
}

.final-cta h2 {
  max-width: 680px;
  margin: 1rem 0 0.8rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
}

.final-cta p {
  max-width: 620px;
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(2, 8, 18, 0.92);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(100%, 1400px);
  max-height: 92vh;
}

.lightbox-media-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
}

.lightbox-media-wrap img,
.lightbox-media-wrap video {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-media-wrap video {
  width: 100%;
  background: #000000;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-weight: 700;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(254, 170, 0, 0.85);
  color: #0b1726;
}

.lightbox-close {
  top: -0.5rem;
  right: -0.5rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.15rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* =========================
   RESPONSIVE TABLETTE
========================= */

@media (max-width: 1200px) {
  .pack-hero-grid,
  .pack-intro-grid,
  .pack-content-layout,
  .pack-tool-block {
    grid-template-columns: 1fr;
  }

  .pack-sticky-summary {
    position: static;
    order: -1;
  }

  .pack-hero-visual {
    min-height: 420px;
  }

  .hero-main {
    margin: 0 auto;
  }

  .tool-tabs {
    grid-template-rows: auto minmax(460px, auto);
  }

  .tab-preview,
  .tab-placeholder {
    min-height: 460px;
  }

  .tab-preview img,
  .tab-preview video {
    max-height: 460px;
  }

  .tool-extra-block {
    grid-template-columns: 1fr;
  }
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 760px) {
  .pack-page .section-inner {
    width: min(100% - 1.5rem, 1560px);
  }

  .pack-hero {
    min-height: auto;
  }

  .pack-hero::after {
    display: none;
  }

  .pack-hero-grid {
    gap: 2rem;
  }

  .pack-hero-visual {
    min-height: auto;
  }

  .hero-main {
    width: 100%;
    margin: 0 auto;
    transform: none;
  }

  .hero-main:hover {
    transform: none;
  }

  .hero-left,
  .hero-right {
    display: none;
  }

  .tabs-nav,
  .tool-tabs-small .tabs-nav {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .tab-btn {
    grid-template-columns: 64px 1fr;
    width: 100%;
    min-width: 0;
    min-height: 78px;
    border-right: none;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  }

  .tab-btn:last-child {
    border-bottom: none;
  }

  .tab-thumb {
    width: 64px;
    height: 46px;
  }

  .tab-label {
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .tool-tabs,
  .tool-tabs-small {
    grid-template-rows: auto minmax(320px, auto);
  }

  .tab-preview,
  .tab-placeholder,
  .tool-tabs-small .tab-preview {
    min-height: 320px;
  }

  .tab-preview img,
  .tab-preview video,
  .tool-tabs-small .tab-preview img,
  .tool-tabs-small .tab-preview video {
    max-height: 320px;
  }

  .pack-tool-block {
    padding: 1rem;
    border-radius: 24px;
  }

  .tool-info-card {
    padding: 0.75rem;
  }

  .tool-extra-block {
    padding: 1rem;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}