* {
  margin: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

/* IMPORT DES POLICES */
@font-face {
  font-family: "Bungee";
  src: url("fonts/Bungee-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* BASE TYPOGRAPHIQUE */
body {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.h2,
h2 {
  font-size: 2rem !important;
}

.h1,
h1 {
  font-size: 2.2rem !important;
}

.h3,
h1 {
  font-size: 1.8rem !important;
}

.small,
small {
  font-size: 0.875em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-title {
  font-family: "Bungee", cursive;
  text-transform: uppercase;
  color: #111;
}

.navbar {
  background-color: #ffc107 !important;
}

/* ANIMATION DES TITRES */
@keyframes title-bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

h1,
.display-title {
  animation: title-bounce 1.2s ease-in-out;
}

/*--- NAV CSS ---*/
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1050;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.drawer-title {
  font-weight: 600;
}
.drawer-close {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 24px;
}
.drawer-link {
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}
.drawer-link:focus,
.drawer-link:hover {
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1040;
}
.drawer-backdrop.show {
  opacity: 1;
}
.no-scroll {
  overflow: hidden;
}

.navbar {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.navbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
}

.navbar .navbar-brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
}

.navbar .navbar-brand img.logo {
  height: 48px;
  max-width: 100%;
}

#drawerToggle {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: inherit;
}

#drawerToggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* BOUTONS GAMING */

.btn-green {
  background: linear-gradient(
    135deg,
    rgb(61, 197, 91) 0%,
    rgb(43, 170, 76) 100%
  );
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: normal;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.4);
}

.btn-green:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 128, 0, 0.6);
  color: #fff;
  background: linear-gradient(
    135deg,
    rgb(51, 180, 81) 0%,
    rgb(33, 150, 66) 100%
  );
}

.btn-red {
  background: linear-gradient(135deg, #ff4e50, #f44336);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: normal;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(255, 50, 50, 0.4);
}

.btn-red:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(255, 50, 50, 0.6);
  color: #fff;
}

.btn-grey {
  background: linear-gradient(135deg, #757575, #525252);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: normal;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.4);
}

.btn-grey:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(51, 51, 51, 0.6);
  color: #fff;
}

/* LOGO */
.logo {
  height: 60px;
  max-width: 100%;
}

/* LIENS FOOTER */
footer a {
  color: #007bff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/*--CSS NICO BOUTON SUR IFRAME--*/

.hero-block {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.hero-block img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;

  box-shadow: none;
}

/* === HERO BUTTONS AUTO-HEIGHT & ALWAYS COLUMN === */
.hero-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: stretch; /* same width */
  justify-content: center;
  gap: 1rem;
  width: min(95%, 500px);
}

/* Buttons automatically grow in height based on text */
.hero-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  width: 100%;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: clamp(0.9rem, 1vw + 0.4rem, 1.25rem);
  font-weight: 600;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.4;

  transition: all 0.25s ease;
  cursor: pointer;

  /* height adjusts dynamically */
  height: auto !important;
  min-height: 60px;
  flex: 0 0 auto;
}

/* Make sure text can wrap properly */
.hero-buttons .btn > * {
  min-width: 0;
  max-width: 100%;
}

.hero-buttons .btn svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* Text layout inside button with subtext */
.btn-with-subtext .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.btn-with-subtext .subtext {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 400;
  margin-top: 3px;
}

/* Grey button */
.btn-grey {
  background: linear-gradient(135deg, #757575, #525252);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.4);
}
.btn-grey:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(51, 51, 51, 0.5);
  background: linear-gradient(135deg, #8a8a8a, #5e5e5e);
}

/* Green button */
.btn-green {
  background: linear-gradient(135deg, #3dc55b 0%, #2baa4c 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.4);
}
.btn-green:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 128, 0, 0.6);
  background: linear-gradient(135deg, #48d366 0%, #33b256 100%);
}

/* Press feedback */
.hero-buttons .btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .btn-real {
    min-height: 76px !important;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-buttons {
    width: 90%;
  }
  .hero-buttons .btn {
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
  }
  .hero-buttons .btn svg {
    width: 18px;
    height: 18px;
  }
  .btn-with-subtext .subtext {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .hero-buttons .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }
  .btn-with-subtext .subtext {
    font-size: 0.65rem;
  }
}

.hero-iframe iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.hero-iframe {
  display: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.hero-iframe.loading::after {
  content: "Loading game…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.05);
}

@media (min-width: 767px) {
  .btn-real {
    height: 54px;
  }
}

@media (max-width: 767px) {
  .btn-with-subtext,
  .btn-real {
    width: 366.5px;
    height: 45px;
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .btn-with-subtext,
  .btn-real {
    width: 311px;
    font-size: 0.85rem;
    height: 45px;
  }
}

.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  white-space: normal !important;
  flex-wrap: wrap;
  line-height: 1.3;

  overflow: visible;
}

.hero-buttons .btn .btn-text {
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.hero-buttons .btn svg {
  flex: 0 0 auto;
}

/*--FIN CSS NICO BOUTON SUR IFRAME--*/

/*---BOOTSTRAP---*/

/* === Layout === */

.gap-3 {
  gap: 1rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* === Display & Flex === */
.d-block {
  display: block !important;
}
.d-flex {
  display: flex !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.justify-content-center {
  justify-content: center !important;
}
.align-items-center {
  align-items: center !important;
}

/* === Spacing === */
.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}
.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}
.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}
.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}
.mt-4 {
  margin-top: 1.5rem !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
.pt-5 {
  padding-top: 3rem !important;
}
.pb-3 {
  padding-bottom: 1rem !important;
}
.me-2 {
  margin-right: 0.5rem !important;
}
.me-3 {
  margin-right: 1rem !important;
}
.ms-1 {
  margin-left: 0.25rem !important;
}
.w-auto {
  width: auto !important;
}

/* === Typography === */
.text-center {
  text-align: center !important;
}
.text-uppercase {
  text-transform: uppercase !important;
}
.text-dark {
  color: #212529 !important;
}
.text-light {
  color: #f8f9fa !important;
}
.text-white {
  color: #fff !important;
}
.text-success {
  color: #198754 !important;
}
.text-info {
  color: #0dcaf0 !important;
}
.text-muted {
  color: #6c757d !important;
}
.lead {
  font-size: 1.25rem;
  font-weight: 300;
}
.fw-bold {
  font-weight: 700 !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}
.text-decoration-none {
  text-decoration: none !important;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;

  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn:hover {
  text-decoration: none;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
}

/* === Form === */
.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  appearance: none;
}
.form-select-sm {
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

/* === Helpers === */
.bg-white {
  background-color: #fff;
}
.bg-dark {
  background-color: #212529 !important;
}
.border-bottom {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125) !important;
}
.rounded {
  border-radius: 0.375rem !important;
}
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* === Navbar === */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
.navbar-brand {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

/* === Icons (Bootstrap Icons support) === */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* === Links === */
a {
  color: #0d6efd;
  text-decoration: underline;
}
a:hover {
  color: #0a58ca;
}

/* IFRAME JEUX */
.play-block__box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-block__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.8);
}

.play-block__box-inner {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.play-block__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 10px;
  min-width: 180px;
}

.play-block__button--casino {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  border: none;
}

.play-block__button--casino:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.play-btn {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.play-block__iframe {
  display: none;
  margin-top: 20px;
  width: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.play-block__iframe.active {
  display: block;
}

.iframe-game {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
}

.demo-active .play-block__box-inner {
  display: none;
}

.demo-active .play-block__iframe {
  display: block;
}

.close-demo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

.demo-active .close-demo {
  display: flex;
}

.close-demo:hover {
  background: white;
}

/* Pour forcer l'adaptabilité du GIF */
#responsive-gif {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Évite tout débordement éventuel */
a {
  display: inline-block;
}

@keyframes bounceBtn {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.btn-bounce {
  animation: bounceBtn 1.6s infinite ease-in-out;
}

@media (max-width: 767px) {
  .btn.btn-green {
    font-size: 1rem;
  }

  .force-column-mobile {
    display: flex;
    flex-direction: column;
  }
}

/* quand on a scrollé >10% */

.footer-title {
  font-family: "Bungee", cursive !important;
  text-transform: uppercase !important;
  font-size: 1.5rem !important; /* équivalent H4 */
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

/* Center the logo on mobile, keep hamburger on the right */
@media (max-width: 991.98px) {
  .navbar > .container {
    position: relative; /* anchor absolute children */
    min-height: 64px; /* ensures enough height for the brand */
  }
  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    z-index: 1; /* below the toggler so it stays clickable */
  }

  /* (optional) slightly smaller logo on small screens */
  .navbar-brand .logo {
    height: 52px;
  }
}

@media (max-width: 991.98px) {
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff; /* fond blanc pour être lisible */
    z-index: 1050 !important; /* au-dessus du logo */
    position: relative;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse .btn-green {
    display: none !important; /* cache le bouton sur mobile */
  }
}
/* ===== Navbar mobile : logo centré + menu en dessous ===== */
@media (max-width: 991.98px) {
  .navbar-brand .logo {
    height: 52px;
  } /* adapte si besoin */

  /* 3) Hamburger à droite avec un peu d’air */

  /* 4) Le panneau s'ouvre SOUS le logo (plus d’empilement) */
  .navbar-collapse {
    position: static; /* retrouve le flux normal */
    background: #fff;
    margin-top: 0.25rem;
    border-top: 1px solid #eee;
  }

  /* 5) Dans le menu mobile : montrer seulement le sélecteur */
  .navbar-collapse .btn-green {
    display: none !important;
  }

  .navbar-collapse .d-flex {
    width: 100%;
    padding: 0.5rem 0;
  }

  .navbar-collapse .d-flex {
    justify-content: center !important; /* centre horizontalement */
  }

  .navbar .d-flex {
    justify-content: center !important;
    width: 100%;
  }

  .navbar-collapse {
    position: relative;
    z-index: 1;
  }
  .navbar .navbar-brand {
    grid-column: 1;
  }
}

/* === Simplified centered header (logo only) === */
.navbar .container {
  justify-content: center !important;
}
.navbar-brand {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Ensure the logo scales nicely on small screens */
@media (max-width: 576px) {
  .logo {
    height: 52px;
  }
}

/* === Footer language selector === */
.footer-language .form-select {
  min-width: 220px;
}
.footer-language label {
  opacity: 0.9;
}

.footer-cta {
  background-color: #e63946; /* rouge vif */
  color: #fff;
  padding: 15px;
  text-align: center;
}
.footer-cta .btn {
  background-color: #28a745; /* vert actuel */
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Réduction des textes "playing" et "country accepted" */
.footer-cta .playing-count,
.footer-cta .country-accepted {
  font-size: 7px !important; /* au lieu de 14-16px */
  line-height: 1.2 !important; /* plus compact */
}

/* Réduction des marges haut/bas de la barre sticky */
.footer-cta {
  padding-top: 8px !important; /* au lieu de ~18px */
  padding-bottom: 8px !important;
}

/* Bouton CTA inchangé, reste mis en avant */
.footer-cta .btn {
  font-size: 12px !important; /* optionnel : bouton un peu plus compact */
  padding: 8px 18px;
}

/* === Unified sticky bar (clean) === */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1030;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  background-color: #ffc107 !important;
}
.sticky-bar.visible {
  transform: translateY(0);
}

/* Ensure footer language selector is visible on dark background */
footer .footer-language .form-select,
footer .footer-language .form-select option {
  color: #212529 !important; /* override .text-light */
}

footer .footer-language .form-select {
  background-color: #ffffff !important; /* white background for contrast */
  border-color: #ced4da !important;
  -webkit-text-fill-color: #212529; /* iOS Safari */
}

/* Make it comfortably wide by default (desktop & mobile) */
footer #languageSelector {
  width: 100% !important;
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

/*--Reduction de taille du bouton CTA pour mobile >400px (nico)--*/

@media (max-width: 400px) {
  .btn-cta {
    padding: 15px;
    font-size: 1rem !important;
  }
}

/* --- FIX: prevent horizontal overflow on small devices --- */

/* 1) Make hero buttons fluid instead of fixed pixel widths */
@media (max-width: 767px) {
  .btn-with-subtext,
  .btn-real {
    width: min(100%, 366.5px); /* cap, but never exceed viewport */
  }
}
@media (max-width: 400px) {
  .btn-with-subtext,
  .btn-real {
    width: min(100%, 311px);
  }
}

html,
body {
  overflow-x: hidden;
}
img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

.container,
.navbar,
.hero-block,
.hero-content {
  overflow-x: clip;
}

.container,
.navbar,
.hero-block,
.hero-content {
  overflow-x: visible;
}

.container > * {
  max-width: 100%;
}

p,
h1,
h2,
h3,
a,
span {
  overflow-wrap: anywhere;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  line-height: 2;
  white-space: normal;
  word-break: break-word;
}

.hero-buttons {
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 500px);
  padding-inline: 12px;
}

.hero-buttons .btn {
  max-width: 100%;
}
​