html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: #050505;
}

body {
  position: relative;
  min-height: 100vh;

  background: transparent !important;

  color: white;
  overflow-x: hidden;
}


/* =========================================================
   ARRIÈRE-PLAN
========================================================= */

.tarifs-bg {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  z-index: 0;

  overflow: hidden;

  pointer-events: none;
}

.tarifs-bg-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 1;
}


/* FILTRE SOMBRE */

.tarifs-overlay {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.38);

  z-index: 1;

  pointer-events: none;
}


/* CONTENU */

.tarifs-page {
  position: relative;

  z-index: 2;

  width: min(1200px, calc(100% - 40px));

  margin: 0 auto;

  padding-top: 155px;
  padding-bottom: 100px;
}


/* NAVBAR */

.navbar {
  z-index: 1000;
}

/* =========================================================
   PAGE
========================================================= */

.tarifs-page {
  position: relative !important;

  z-index: 2 !important;

  width: min(1200px, calc(100% - 40px));

  margin: 0 auto;

  padding-top: 155px;
  padding-bottom: 100px;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.tarifs-intro {
  max-width: 850px;

  margin: 0 auto 70px;

  text-align: center;
}

.eyebrow {
  display: inline-block;

  margin-bottom: 18px;

  color: #D62828;

  font-size: 0.78rem;
  font-weight: 700;

  letter-spacing: 0.22em;

  text-transform: uppercase;
}

.tarifs-intro h1 {
  margin: 0;

  font-size: clamp(2.7rem, 5vw, 5rem);

  line-height: 1.02;

  letter-spacing: -0.04em;
}

.tarifs-intro h1 span {
  display: block;

  color: #D62828;
}

.tarifs-intro p {
  max-width: 720px;

  margin: 28px auto 0;

  color: rgba(255, 255, 255, 0.78);

  font-size: 1.05rem;

  line-height: 1.7;
}


/* =========================================================
   CARTES
========================================================= */

.tarif-card {
  position: relative;

  background: rgba(15, 15, 15, 0.58);

  border: 1px solid rgba(255, 255, 255, 0.13);

  border-radius: 24px;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  overflow: hidden;
}


/* =========================================================
   NUMÉROS
========================================================= */

.card-number {
  display: block;

  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.35);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.2em;
}


/* =========================================================
   EXTINCTEURS
========================================================= */

.extincteurs-card {
  padding: 42px;

  margin-bottom: 25px;
}

.card-header {
  display: flex;

  justify-content: space-between;
  align-items: flex-end;

  gap: 30px;

  padding-bottom: 30px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3rem);

  letter-spacing: -0.03em;
}

.card-header > p {
  max-width: 350px;

  margin: 0;

  color: rgba(255, 255, 255, 0.62);

  line-height: 1.6;
}


/* =========================================================
   GRILLE DES EXTINCTEURS
========================================================= */

.extincteurs-content {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;

  margin-top: 30px;
}


/* =========================================================
   BULLES EXTINCTEURS
========================================================= */

.price-category {
  position: relative;

  padding: 25px;

  background: rgba(0, 0, 0, 0.32);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 18px;

  overflow: hidden;

  isolation: isolate;
}


/* =========================================================
   IMAGES DANS LES BULLES
========================================================= */

.category-background-image {
  position: absolute !important;

  display: block !important;

  top: 50% !important;
  left: 58% !important;

  width: 180px !important;
  height: 180px !important;

  max-width: none !important;

  object-fit: contain !important;

  transform: translate(-50%, -50%) !important;

  opacity: 0.16;

  z-index: 0 !important;

  pointer-events: none;

  user-select: none;
}


/* =========================================================
   CO2
========================================================= */

.category-co2 .category-background-image {
  top: 52% !important;
  left: 58% !important;

  width: 180px !important;
  height: 180px !important;

  opacity: 0.16;
}


/* =========================================================
   ABF
========================================================= */

.category-abf .category-background-image {
  top: 52% !important;
  left: 58% !important;

  width: 190px !important;
  height: 190px !important;

  opacity: 0.16;
}


/* =========================================================
   ABC POUDRE
========================================================= */

.category-poudre .category-background-image {
  top: 52% !important;
  left: 58% !important;

  width: 190px !important;
  height: 190px !important;

  opacity: 0.16;
}


/* =========================================================
   CONTENU DES BULLES
========================================================= */

.category-content {
  position: relative;

  z-index: 2;
}


/* =========================================================
   TITRES DES CATÉGORIES
========================================================= */

.price-category h3 {
  margin: 0 0 18px;

  color: #D62828;

  font-size: 1rem;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  line-height: 1.4;
}

.essentials h3 span {
  margin-right: 7px;

  color: #D62828;
}


/* =========================================================
   LIGNES DE PRIX
========================================================= */

.price-line {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;

  min-height: 46px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.price-line:last-child {
  border-bottom: none;
}

.price-line span {
  color: rgba(255, 255, 255, 0.82);
}

.price-line strong {
  white-space: nowrap;

  color: white;

  font-size: 1rem;
}

.price-line .quote {
  color: #D62828;

  font-size: 0.75rem;

  letter-spacing: 0.08em;
}


/* =========================================================
   INDISPENSABLES
========================================================= */

.essentials {
  position: relative;

  border-color: rgba(214, 40, 40, 0.35);

  background: linear-gradient(
    135deg,
    rgba(214, 40, 40, 0.12),
    rgba(0, 0, 0, 0.32)
  );

  overflow: hidden;
}


/* UNE SEULE IMAGE POUR LES INDISPENSABLES */

.essentials .category-background-image {
  position: absolute !important;

  top: 52% !important;
  left: 60% !important;

  width: 190px !important;
  height: 190px !important;

  max-width: none !important;

  object-fit: contain !important;

  transform: translate(-50%, -50%) !important;

  opacity: 0.16;

  z-index: 0 !important;

  pointer-events: none;
}


/* =========================================================
   AUTRES TARIFS
========================================================= */

.tarifs-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;

  margin-bottom: 25px;
}


/* =========================================================
   PETITES CARTES
========================================================= */

.small-card {
  min-height: 330px;

  padding: 35px;

  display: flex;

  flex-direction: column;
}

.icon {
  margin-bottom: 18px;

  font-size: 2.3rem;
}

.small-card h2 {
  margin: 0 0 14px;

  font-size: 1.65rem;

  letter-spacing: -0.02em;
}

.small-card > p {
  max-width: 500px;

  margin: 0;

  color: rgba(255, 255, 255, 0.65);

  line-height: 1.65;
}


/* =========================================================
   PRIX UNIQUE
========================================================= */

.single-price {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-top: auto;

  padding-top: 30px;
}

.single-price span {
  color: rgba(255, 255, 255, 0.55);

  font-size: 0.9rem;
}

.single-price strong {
  color: #D62828;

  font-size: 1.05rem;

  letter-spacing: 0.04em;
}


/* =========================================================
   MAINTENANCE
========================================================= */

.maintenance-card {
  border-color: rgba(214, 40, 40, 0.25);
}

.maintenance-card small {
  display: block;

  margin-top: 15px;

  color: rgba(255, 255, 255, 0.42);

  line-height: 1.5;
}


/* =========================================================
   PACK ERP
========================================================= */

.pack-section {
  margin-top: 25px;

  margin-bottom: 80px;
}

.pack-card {
  position: relative;

  padding: 50px;

  border-radius: 28px;

  background: linear-gradient(
    135deg,
    rgba(214, 40, 40, 0.18),
    rgba(15, 15, 15, 0.62)
  );

  border: 1px solid rgba(214, 40, 40, 0.4);

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.pack-top {
  display: flex;

  justify-content: space-between;
  align-items: flex-end;

  gap: 40px;
}

.pack-label {
  display: block;

  margin-bottom: 12px;

  color: #D62828;

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.18em;
}

.pack-card h2 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.5rem);

  letter-spacing: -0.04em;
}

.pack-card > .pack-top > div:first-child > p {
  max-width: 650px;

  margin: 20px 0 0;

  color: rgba(255, 255, 255, 0.68);

  line-height: 1.65;
}

.pack-price {
  min-width: 160px;

  text-align: right;
}

.pack-price span {
  display: block;

  margin-bottom: 5px;

  color: rgba(255, 255, 255, 0.5);

  font-size: 0.8rem;
}

.pack-price strong {
  color: #D62828;

  font-size: 2rem;
}


/* =========================================================
   CONTENU DU PACK
========================================================= */

.pack-content {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;

  margin-top: 40px;
}

.pack-item {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 18px;

  background: rgba(0, 0, 0, 0.28);

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pack-item span {
  color: #D62828;

  font-weight: 700;
}

.pack-item p {
  margin: 0;

  color: rgba(255, 255, 255, 0.8);

  font-size: 0.92rem;
}

.pack-note {
  margin: 25px 0 0;

  color: rgba(255, 255, 255, 0.42);

  font-size: 0.8rem;

  line-height: 1.5;
}


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

.tarifs-cta {
  max-width: 800px;

  margin: 0 auto;

  padding: 60px 30px;

  text-align: center;
}

.tarifs-cta h2 {
  margin: 0;

  font-size: clamp(2.3rem, 5vw, 4rem);

  letter-spacing: -0.04em;
}

.tarifs-cta p {
  max-width: 650px;

  margin: 20px auto 30px;

  color: rgba(255, 255, 255, 0.65);

  line-height: 1.7;
}


/* =========================================================
   BOUTON
========================================================= */

.cta-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 15px 32px;

  border-radius: 999px;

  background: #D62828;

  color: white;

  font-weight: 700;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.cta-button:hover {
  background: #b91f1f;

  transform: translateY(-2px);
}


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

@media (max-width: 900px) {

  .tarifs-page {
    width: min(100% - 30px, 700px);

    padding-top: 130px;
  }

  .extincteurs-content {
    grid-template-columns: 1fr;
  }

  .tarifs-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;

    align-items: flex-start;
  }

  .pack-top {
    flex-direction: column;

    align-items: flex-start;
  }

  .pack-price {
    text-align: left;
  }

  .pack-content {
    grid-template-columns: 1fr;
  }
}


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

@media (max-width: 600px) {

  .tarifs-page {
    width: calc(100% - 20px);

    padding-top: 110px;
    padding-bottom: 60px;
  }

  .tarifs-intro {
    margin-bottom: 45px;
  }

  .tarifs-intro h1 {
    font-size: 2.5rem;
  }

  .tarifs-intro p {
    font-size: 0.95rem;
  }

  .extincteurs-card {
    padding: 25px 18px;
  }

  .price-category {
    padding: 20px 16px;
  }

  .category-background-image {
    width: 150px !important;
    height: 150px !important;

    opacity: 0.12;
  }

  .category-co2 .category-background-image,
  .category-abf .category-background-image,
  .category-poudre .category-background-image {

    width: 150px !important;
    height: 150px !important;
  }

  .essentials .category-background-image {
    top: 52% !important;
    left: 62% !important;

    width: 150px !important;
    height: 150px !important;

    opacity: 0.12;
  }

  .price-line {
    font-size: 0.9rem;
  }

  .small-card {
    min-height: auto;

    padding: 28px 22px;
  }

  .pack-card {
    padding: 30px 22px;

    border-radius: 22px;
  }

  .pack-card h2 {
    font-size: 2.2rem;
  }

  .pack-content {
    margin-top: 30px;
  }

  .tarifs-cta {
    padding: 40px 10px;
  }
}