/*
 * general.css
 * Styles reutilisables du template Bookmaker2.
 * Un CSS de page ne doit pas redeclarer ces classes ; il peut seulement ajouter des variantes propres a sa page.
 */

/*
 * En-tetes, boutons et utilitaires partages.
 * Ces classes vivaient dans css/style.css ; elles sont centralisees ici pour que les CSS de page restent specifiques.
 */
.section-header {
    display: flex;
    /*justify-content: space-between;*/
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.view-all {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Cache les barres de défilement pour les scroll horizontaux */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.scroll-top-button {
    position: fixed;
    right: max(16px, calc(50vw - 207px + 16px));
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, box-shadow 0.22s ease, bottom 0.22s ease;
    z-index: 70;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-button:hover {
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.scroll-top-button:active {
    transform: translateY(1px) scale(0.98);
}

.scroll-top-button.is-lifted {
    bottom: calc(172px + env(safe-area-inset-bottom, 0px));
}

.scroll-top-button i {
    font-size: 16px;
}

/*
 * Structure commune des pages publiques.
 * Les pages qui les utilisent doivent seulement surcharger leurs variantes locales.
 */
.main-content {
  flex: 1;
  padding-bottom: 20px;
}

/*
 * Panneaux simples et catalogues de taxonomies.
 * Ces blocs sont partages par les pages payment-method, software, device,
 * owner, restricted-country, withdrawal-limit et established-year.
 */
.simple-page,
.taxonomy-page {
  display: grid;
  gap: 16px;
  padding: 12px 20px 28px;
}

.simple-page__panel,
.taxonomy-page__hero,
.taxonomy-page__panel {
  display: grid;
  gap: 12px;
  border: var(--card-border);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

.simple-page__panel,
.taxonomy-page__hero {
  padding: 18px;
}

.taxonomy-page__panel {
  padding: 14px;
}

.taxonomy-page__eyebrow {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-page h1,
.taxonomy-page h1,
.taxonomy-page h2 {
  margin: 0;
  color: var(--text-main);
  line-height: 1.16;
}

.simple-page p,
.taxonomy-page p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.taxonomy-card-grid {
  display: grid;
  gap: 10px;
}

.taxonomy-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--border-color) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-card) 94%, var(--primary) 6%);
  color: var(--text-main);
  text-decoration: none;
}

.taxonomy-card:hover,
.taxonomy-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border-color));
  color: var(--primary);
}

.taxonomy-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-app));
  color: var(--primary);
}

.taxonomy-card strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.25;
}

.taxonomy-card span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  text-align: center;
}

.section-title i {
  color: var(--primary);
  font-size: 0.95em;
}

/*
 * Notation etoilee et etats promo reutilises dans plusieurs templates.
 * Les pages qui les utilisent doivent seulement surcharger leurs variantes locales.
 */
.star-rating {
  --star-size: 12px;
  --star-spacing: 0.18em;
  display: inline-block;
  color: var(--star-color);
  line-height: 1.2em;
  font-size: var(--star-size);
}

.star-rating .star {
  position: relative;
  color: var(--star-color);
  display: inline-block;
  width: 1.1em;
  text-align: center;
  vertical-align: top;
  padding-right: var(--star-spacing);
  font-family: "Font Awesome 5 Free", "Font Awesome 7 Free", "Font Awesome 7 Brands", sans-serif !important;
  font-style: normal;
  font-size: 1em;
  line-height: 1em;
}

.star-rating .star::before {
  content: "\f005";
  display: inline-block;
}

.star-rating .star-full::before {
  font-weight: 900;
}

.star-rating .star-empty::before {
  font-weight: 400;
}

.star-rating .star-half::before {
  font-weight: 400;
}

.star-rating .star-half::after {
  content: "\f005";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  font-weight: 900;
  color: var(--star-color);
  white-space: nowrap;
}

.star-rating--small {
  --star-size: 11px;
  --star-spacing: 0.12em;
}

.star-rating--medium {
  --star-size: 13px;
  --star-spacing: 0.14em;
}

.star-rating--large {
  --star-size: 15px;
  --star-spacing: 0.2em;
}

.star-rating--hero {
  --star-size: 22px;
  --star-spacing: 0.22em;
}

.promo-info {
  text-align: center;
  margin-bottom: 15px;
}
.promo-info .label {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
}
.promo-info .code {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.promo-info--empty,
.list-promo--empty {
  visibility: hidden;
}

/*
 * Liste compacte des bookmakers utilisee en home, catalogue et details bonus.
 * Les pages qui les utilisent doivent seulement surcharger leurs variantes locales.
 */
/* Liste Bookmakers */
.list-container {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stars-list {
  font-size: 12px;
  letter-spacing: 1px;
}

.list-item {
  position: relative;
  --list-logo-size: 70px;
  display: grid;
  grid-template-columns: var(--list-logo-size) repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0px 15px 0px 0px;
  background-color: var(--bg-card);
  border: var(--card-border);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.list-item__floating {
  position: absolute;
  top: -10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 4;
}

.list-item__rank {
  width: 24px;
  height: 24px;
  background-color: var(--bg-app);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.list-item__first__rank {
  width: 24px;
  height: 24px;
  background-color: var(--bg-app);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.list-item__top-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0px 10px 0px 0px;
  border-top-left-radius: 999px;
  border-top-right-radius: 250px;
  border-bottom-left-radius: 999px;
  border-bottom-right-radius: 500px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.list-item__logo-column__div {
  display: flex;
  align-self: stretch;
}

.list-item__logo-column,
.bookie__identity,
.list-promo,
.list-item__actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-item__logo-column {
  width: var(--list-logo-size);
  align-self: stretch;
  justify-content: flex-start;
}

.list-item__logo-column__div .list-item__logo-column {
  width: 100%;
}

.bookie__details {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 8px 0px;
}

.list-logo {
  width: var(--list-logo-size);
  height: 100%;
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    color-mix(in srgb, var(--logo-accent, var(--primary)) 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--logo-accent, var(--primary)) 28%, var(--border-color));
  border-radius: 10px 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.list-logo span {
  max-width: 100%;
  color: var(--logo-accent, var(--primary));
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.list-logo i {
  color: var(--logo-accent, var(--primary));
  font-size: 24px;
  line-height: 1;
}

.bookie__identity {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: center;
}

.list-name {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.list-name:hover,
.list-name:focus-visible {
  color: var(--primary);
}

.list-promo {
  flex: 0 0 92px;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.list-promo span {
  font-size: 9px;
  color: var(--text-muted);
}
.list-promo strong {
  font-size: 12px;
  font-weight: 700;
}

.btn-primary.sm {
  width: min(100%, 120px);
  padding: 6px 15px;
  font-size: 12px;
  flex-shrink: 0;
}

.list-item__actions {
  flex-direction: column;
  gap: 5px;
}

.list-more-link {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.list-more-link:hover,
.list-more-link:focus-visible {
  color: var(--text-main);
}

@media (max-width: 520px) {
  .list-item {
    --list-logo-size: 65px;
    padding: 0px 12px 0px 0px;
    gap: 10px;
  }

  .bookie__details {
    gap: 10px;
  }

  .list-name {
    font-size: 13px;
  }

  .list-logo span {
    font-size: 10px;
  }

  .btn-primary.sm {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/*
 * Petits composants transverses de navigation et contenus courts.
 * Les pages qui les utilisent doivent seulement surcharger leurs variantes locales.
 */
.view-all-center {
  text-align: center;
  margin: 15px 0 25px 0;
}

.bonus-card {
  display: block;
}

.bonus-icon-large {
  font-size: 60px;
  text-align: center;
  margin-bottom: 10px;
}

.steps-list {
  margin: 20px 0;
  padding-left: 20px;
  color: var(--text-main);
}

.steps-list li {
  margin-bottom: 10px;
}

/*
 * Grille et carte de jeu/bonus communes.
 * Les pages catalogues ajoutent leurs filtres et leurs CTA dans leur propre CSS.
 */
/* Grilles pour Jeux et Bonus */
.grid-container {
  display: grid;
  /* Modification pour 3 colonnes exactes avec le gap du site */
  grid-template-columns: repeat(3, 1fr);
  gap: 6.25px;
  padding: 0 20px; /* Ajusté pour l'équilibre visuel */
}

.game-card {
  position: relative;
  display: block;
  /* Le ratio calculé sur le site est d'environ 1.35 (Largeur/Hauteur) */
  aspect-ratio: 1.35 / 1; 
  /*border-radius: 3px; /* Valeur exacte du site */
  border-radius: 6px;
 /* border-radius: var(--border-radius-md);*/
  overflow: hidden;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

body.theme-gold .game-card {
  border: 1px solid rgba(252, 189, 67, 0.18);
  box-shadow: 0 0 0 1px rgba(252, 189, 67, 0.04);
}

body.theme-blue .game-card {
  border: 1px solid rgba(1, 167, 243, 0.18);
  box-shadow: 0 0 0 1px rgba(1, 167, 243, 0.04);
}

/* On s'assure que l'image remplit tout l'espace sans déformation */
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.game-card__visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--game-bg);
}

.game-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  /* Le site utilise fill ou cover selon les images, cover est plus propre pour garder les proportions */
  object-fit: fill; 
}

.game-card__category {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  color: #ffffff;
  font-size: 8px; /* Taille réduite pour correspondre au ratio 3 colonnes */
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.game-card__icon {
  color: var(--game-accent, #ffffff);
  font-size: 2.25rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.game-card .game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Dégradé subtil pour la lisibilité du nom */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
  font-size: 11px;
  padding: 8px 4px 4px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*
 * Modales globales inscription et remerciement.
 * Elles restent ici car includes/header.php injecte les fragments HTML sur toutes les pages.
 */
/* Modal inscription */
body.modal-open {
  overflow: hidden;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 12px;
}

.promo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.68);
  backdrop-filter: blur(4px);
}

.promo-modal__dialog {
  position: relative;
  width: min(414px, calc(100% - 48px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  background: var(--bg-app);
  color: var(--text-main);
  /* Bordure colorée avec la couleur du bookmaker injectée par JS */
  border: 1.5px solid color-mix(in srgb, var(--modal-bk-color, var(--border-color)) 35%, var(--border-color));
  border-radius: 24px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    0 0 0 1px color-mix(in srgb, var(--modal-bk-color, transparent) 15%, transparent);
  padding: 18px;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.22s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-modal.is-open .promo-modal__dialog {
  transform: translateY(0) scale(1);
}

.promo-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-app);
  color: var(--text-muted);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  z-index: 2;
}

.promo-modal__close:hover {
  color: var(--text-main);
  transform: scale(1.04);
}

.promo-modal__hero {
  position: relative;
  border-radius: 18px;
  /* Fond teinté avec la couleur du bookmaker */
  background: color-mix(in srgb, var(--modal-bk-color, var(--primary)) 8%, var(--bg-app));
  padding: 24px 18px 18px;
  margin-bottom: 14px;
  border: 1.5px solid color-mix(in srgb, var(--modal-bk-color, var(--primary)) 25%, transparent);
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.promo-modal__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.promo-modal__brand-visual {
  position: relative;
  width: min(200px, 100%);
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  overflow: hidden;
  /* Fond = logo_background du bookmaker (injecté par JS) */
  background: var(--modal-bk-bg, linear-gradient(135deg, #111827, var(--primary)));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--modal-bk-color, var(--primary)) 40%, transparent);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.promo-modal__brand-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.promo-modal__brand-visual span {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 24px);
  overflow: hidden;
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-modal__verified {
  width: fit-content;
  margin: 0 auto 14px;
  border: 1px solid color-mix(in srgb, var(--modal-bk-color, var(--primary)) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--modal-bk-color, var(--primary)) 10%, transparent);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.promo-modal__title {
  margin: 0 auto 10px;
  color: var(--text-main);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  text-align: center;
}

.promo-modal__code-box {
  position: relative;
  margin: 0 0 12px;
  padding-top: 10px;
}

.promo-modal__code-label {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 16px;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.promo-modal__code-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 76px;
  padding: 16px 10px 10px 16px;
  border: 2px dashed var(--primary);
  border-radius: 16px;
  background: var(--bg-app);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.promo-modal__code-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 14px;
}

.promo-modal__code-content i {
  color: #0b0d11;
  font-size: 36px;
  flex: 0 0 auto;
}

.promo-modal__code {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--text-main);
  font-size: var(--promo-code-font-size, 28px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.promo-modal__copy {
  position: relative;
  flex: 0 0 auto;
  border: none;
  border-radius: 12px;
  background: #e6f4ff;
  color: #0788ee;
  min-height: 48px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.promo-modal.is-copy-step .promo-modal__copy:not([disabled]) {
  background: color-mix(in srgb, var(--modal-bk-color, var(--primary)) 12%, transparent);
  color: var(--modal-bk-color, var(--primary));
  border-color: var(--modal-bk-color, var(--primary));
  animation: copyGuidePulse 1.45s ease-in-out infinite;
}

body.theme-gold .promo-modal.is-copy-step .promo-modal__copy:not([disabled]),
body.theme-blue .promo-modal.is-copy-step .promo-modal__copy:not([disabled]) {
  animation-name: copyGuidePulseDark;
}

.promo-modal__copy:hover:not([disabled]) {
  background: color-mix(in srgb, var(--modal-bk-color, var(--primary)) 18%, transparent);
  transform: translateY(-1px);
}

.promo-modal__copy[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
}

.promo-modal__redeem {
  position: relative;
  min-height: 56px;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    var(--modal-bk-color, var(--primary)),
    color-mix(in srgb, var(--modal-bk-color, var(--primary)) 80%, #000)
  );
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.promo-modal__redeem.is-awaiting-copy {
  filter: grayscale(0.18);
  opacity: 0.68;
  pointer-events: none;
}

.promo-modal.is-redeem-step .promo-modal__redeem:not(.is-disabled) {
  animation: redeemGuidePulse 1.45s ease-in-out infinite;
}

.promo-modal__redeem:hover {
  background: color-mix(in srgb, var(--modal-bk-color, var(--primary)) 85%, #000);
  transform: translateY(-1px);
}

.promo-modal__redeem.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.promo-modal__redeem i {
  font-size: 18px;
}

.promo-modal__status {
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  line-height: 1.35;
}

.promo-modal__feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
}

.promo-modal__feedback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-modal__feedback button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  color: #41b860;
  background: var(--bg-app);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-modal__feedback button:last-child {
  color: #ff735a;
}

.promo-modal__feedback button:hover {
  background: var(--gray-transparent-light);
}

.promo-modal__divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 14px;
}

.promo-modal__details h4 {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.promo-modal__details p {
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.promo-modal__copy:focus-visible,
.promo-modal__close:focus-visible,
.promo-modal__redeem:focus-visible,
.promo-modal__feedback button:focus-visible {
  outline: 3px solid #1689ee;
  outline-offset: 2px;
}

@keyframes copyGuidePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(7, 136, 238, 0);
    transform: translateY(0);
  }
  45% {
    box-shadow: 0 0 0 7px rgba(7, 136, 238, 0.16);
    transform: translateY(-1px);
  }
}

@keyframes copyGuidePulseDark {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0);
    transform: translateY(0);
  }
  45% {
    box-shadow:
      0 0 0 7px rgba(125, 211, 252, 0.26),
      0 0 22px rgba(125, 211, 252, 0.34);
    transform: translateY(-1px);
  }
}

@keyframes redeemGuidePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent);
    transform: translateY(0);
  }
  45% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 24%, transparent);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-modal.is-copy-step .promo-modal__copy:not([disabled]),
  .promo-modal.is-redeem-step .promo-modal__redeem:not(.is-disabled),
  .bookmaker-detail__cta,
  .bookmaker-floatbar__cta {
    animation: none;
  }
}

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.thanks-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.thanks-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}

.thanks-modal__dialog {
  position: relative;
  width: min(340px, 100%);
  background: var(--bg-app);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 34px 24px 24px;
  text-align: center;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease;
}

.thanks-modal.is-open .thanks-modal__dialog {
  transform: translateY(0) scale(1);
}

.thanks-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  color: var(--text-muted);
  font-size: 22px;
}

.thanks-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gray-transparent-light);
  color: #41b860;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.thanks-modal h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.thanks-modal p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.thanks-modal__button {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.thanks-modal__close:focus-visible,
.thanks-modal__button:focus-visible {
  outline: 3px solid #1689ee;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .promo-modal {
    padding: 10px 20px;
  }

  .promo-modal__dialog {
    width: min(414px, calc(100% - 40px));
    border-radius: 22px;
    padding: 14px;
  }

  .promo-modal__close {
    top: 12px;
    right: 12px;
    font-size: 18px;
  }

  .promo-modal__hero {
    padding: 22px 16px 16px;
  }

  .promo-modal__brand-visual {
    width: min(166px, 100%);
  }

  .promo-modal__brand-visual span {
    font-size: 21px;
  }

  .promo-modal__title {
    font-size: 20px;
    line-height: 1.28;
  }

  .promo-modal__code-panel {
    min-height: 72px;
    padding: 10px 10px 10px 14px;
    gap: 10px;
  }

  .promo-modal__code-content {
    gap: 9px;
  }

  .promo-modal__code-content i {
    font-size: 28px;
  }

  .promo-modal__code {
    font-size: var(--promo-code-font-size, 24px);
  }

  .promo-modal__copy {
    min-height: 46px;
    padding: 0 12px;
    font-size: 13px;
    gap: 8px;
  }

  .promo-modal__redeem {
    min-height: 54px;
    font-size: 16px;
  }

  .promo-modal__feedback {
    gap: 10px;
    font-size: 13px;
  }

  .promo-modal__feedback button {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .promo-modal__details h4 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .promo-modal__details p {
    font-size: 14px;
  }
}

/* Logo image réel dans le modal promo */
.promo-modal__brand-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-modal__logo-img {
  max-width: 70%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  /* Contour blanc pour lisibilité sur fond coloré */
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}
