/* ============================================================
   JEUXHUB THEME
   Gaming dark theme — orange-red primary, deep dark backgrounds.

   This file is loaded via <link rel="stylesheet" href="/themes/jeuxhub.css">
   from app/[locale]/layout.tsx when the resolved theme is "jeuxhub".

   It inherits all globals.css tokens and selectively overrides for the
   jeuxhub visual identity.

   PORTAL-OWNED — do NOT merge to next_template or default.css.
   ============================================================ */

/* ---------------------------------------------------------------
   1. ROOT TOKEN OVERRIDES
   --------------------------------------------------------------- */

/* Horizon — fuente display del legacy (titulares de sección y categorías).
   Servida desde el CloudFront de la compañía, misma URL que andromeda. */
@font-face {
  font-family: "Horizon";
  src: url("https://d2obs2d3lmpnq9.cloudfront.net/jeuxhub/horizon-bold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
}

:root {
  /* Primary — JeuxHub legacy red */
  --primary:            #e40c2b;
  --primary-foreground: #ffffff;
  --primary-300:        #ff6479;
  --primary-400:        #f52b48;
  --primary-500:        #e40c2b;
  --primary-600:        #bd0821;

  /* Secondary accent — deep red */
  --secondary-600: #cc2d1e;

  /* Backgrounds — gaming dark */
  --background:    #1d1d2c; /* legacy dark navy — matches www/be/nl.jeuxhub.com */
  /* Font — jeuxhub uses Archivo to match legacy portal */
  --font-bricolage: var(--font-archivo), Arial, Helvetica, sans-serif;
  --card:          #161616;
  --popover:       #1a1a1a;
  --secondary:     #242424;
  --muted:         #1e1e1e;
  --accent:        #2a2a2a;
  --border:        #2e2e2e;
  --input:         #1e1e1e;

  /* Foreground */
  --foreground:           #f7f4e9;
  --card-foreground:      #f7f4e9;
  --popover-foreground:   #f7f4e9;
  --secondary-foreground: #f7f4e9;
  --muted-foreground:     #888888;
  --accent-foreground:    #f7f4e9;
  --legal-link-color:     #ff4f68;

  /* Legacy semantic aliases consumed by webs-sdk forms. */
  --color-primary:          var(--primary);
  --color-primary-dark:     var(--primary-600);
  --color-bg-base:          var(--background);
  --color-bg-card:          var(--card);
  --color-text-base:        var(--foreground);
  --color-text-primary:     var(--foreground);
  --color-text-secondary:   var(--muted-foreground);
  --color-text-muted:       var(--muted-foreground);
  --color-text-inverse:     var(--primary-foreground);
  --color-border:           var(--border);
  --color-border-divider:   var(--border);
  --color-brand-accent-500: var(--primary);
  --neutral-100:            var(--input);

  /* Keep native contact selects visually consistent across browsers. */
  --contact-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f7f4e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  /* Gradient */
  --gradient-primary-secondary:
    linear-gradient(112deg, #e40c2b 0%, #9e071d 100%);

  /* Radius — slightly more rounded for gaming feel */
  --radius: 0.75rem;

  /* Neutral palette */
  --neutral-1000: #050505;
  --neutral-900:  #111111;
  --neutral-800:  #1c1c1c;
  --neutral-700:  #555555;
  --neutral-600:  #888888;

  /* Header */
  --header-bg:     #1d1d2c;  /* legacy exact match: rgb(29,29,44) — was rgba(10,10,10,.96) */
  --header-shadow: none;     /* legacy has no shadow */
  /* Header-specific colour tokens (header only — do NOT bleed into rest of UI) */
  --header-nav-color:          #e40c2b;  /* legacy accent red rgb(228,12,43) — borders/focus/search, NOT link text */
  --header-nav-color-hover:    #ff2a47;  /* brighter on hover                    */
  --header-auth-color:         #f7f4e9;  /* legacy cream rgb(247,244,233)         */
  --header-search-btn-bg:      #e40c2b;  /* red search submit button              */
  --header-search-input-bg:    #ffffff;
  --header-search-input-border:#e3e3e3;  /* legacy: 1px solid rgb(227,227,227)   */
  --header-dropdown-bg:        #242438;
  --header-dropdown-border:    rgba(228, 12, 43, 0.32);
  --header-dropdown-hover:     rgba(228, 12, 43, 0.14);
  --header-dropdown-text:      #f7f4e9;
  --header-dropdown-shadow:    0 18px 42px rgba(4, 4, 12, 0.48);

  /* For You — paleta oscura del portal (hub + features). Espejo en hex para el SDK
     (que concatena alfas) en src/lib/forYouTheme.ts → FOR_YOU_PALETTE. Mantener en sync.
     Contrastes AA sobre --foryou-bg/--foryou-surface: text 15.1/13.8, text-muted 7.1/6.5,
     accent-text 5.1/4.7, blanco sobre primary 4.8. */
  --foryou-primary:       #e40c2b;
  --foryou-primary-hover: #ff2a47;
  --foryou-text:          #f7f4e9;
  --foryou-text-muted:    #a8a8b8;
  --foryou-accent-text:   #ff4d63;
  --foryou-bg:            #1d1d2c;
  --foryou-card-bg:       #1d1d2c;
  --foryou-surface:       #242438;
  --foryou-surface-alt:   #161616;
  --foryou-disabled-bg:   #2e2e44;
  --foryou-button-text:   #ffffff;
  --foryou-tab-active:    #e40c2b;
  --foryou-tab-border:    #e40c2b;
  --foryou-tab-inactive:  #888888;
  --foryou-border:        #2e2e2e;

  /* Cookie consent — reuse JeuxHub surface and brand colours */
  --cookie-consent-bg:                var(--card);
  --cookie-consent-text:              var(--foreground);
  --cookie-consent-accent:            var(--header-nav-color);
  --cookie-consent-accent-foreground: #ffffff;
  --cookie-consent-border:            var(--border);
  --cookie-consent-radius:            var(--radius);

  /* Footer */
  --footer-bg:     #0d0d0d;
  --footer-border: rgba(255, 133, 70, 0.15);

  /* Input */
  --color-input-bg:     #1a1a1a;
  --color-input-border: #333333;

  /* Semantic */
  --color-bg-base:  #0a0a0a;
  --color-bg-card:  #161616;
  --color-text-base: #f5f5f5;
  --color-text-muted: rgba(245, 245, 245, 0.55);

  /* Hero section */
  --hero-overlay: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.7) 70%,
    rgba(10, 10, 10, 1) 100%
  );
}

/* Contact form select chevrons: fixed size and true vertical centering. */
.theme-jeuxhub .contact-form-shell select,
body.theme-jeuxhub .contact-form-shell select {
  padding-right: 2.75rem !important;
  appearance: none;
  background-image: var(--contact-select-chevron) !important;
  background-repeat: no-repeat !important;
  background-position: right 0.875rem center !important;
  background-size: 1rem 1rem !important;
}

/* ---------------------------------------------------------------
   2. TYPOGRAPHY
   The root :root override `--font-bricolage: var(--font-archivo)` is
   insufficient because Next.js injects --font-bricolage directly onto
   <body> with higher specificity than :root.  Override font-family on
   body directly so Archivo is always used as the body face.
   Bricolage Grotesque (also loaded) is kept for h1/h2/h3 at heavy weight.
   --------------------------------------------------------------- */

body.theme-jeuxhub,
.theme-jeuxhub body {
  font-family: var(--font-archivo), Arial, Helvetica, sans-serif;
  /* Display font (legacy Horizon). Definida aquí y no en :root porque
     --font-archivo solo existe en <body> (next/font). */
  --font-display: "Horizon", var(--font-archivo), Arial, Helvetica, sans-serif;
}

.theme-jeuxhub h1,
.theme-jeuxhub h2,
.theme-jeuxhub h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-jeuxhub [data-component="cards"] > h3,
.theme-jeuxhub [data-component="categories"] > h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 40px;
  text-align: center;  /* legacy: titulares de sección siempre centrados */
  letter-spacing: normal;
  text-transform: capitalize;
}

.theme-jeuxhub [data-component="cards"][data-variant="featured"] > h3 {
  text-transform: uppercase;
}

.theme-jeuxhub .jh-foryou-page > h1,
.theme-jeuxhub .jh-foryou-card h2 {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

/* Keep Creative Face Swap columns on the portal-owned dark For You surface. */
.theme-jeuxhub .faceswap-layout {
  --color-surface-base: var(--foryou-card-bg);
  --neutral-10: var(--foryou-card-bg);
}

/* ---------------------------------------------------------------
   3. NAV / HEADER
   Geometry goal (measured from live legacy www/be/nl.jeuxhub.com @ 1280
   and 390 px — figures used as design authority):

   Desktop (1280 px)

	 logo				 nav links					auth						─┐ pt-5
	 219 at 70px 		16px/400/cream		 16px/cream 					│ pb-[6px]
						[  search input 472px  ][btn 84px]						─┘

   Total measured header height: 157 px (nl) / 177 px (www/be includes
   extra padding-bottom on outer header). We target 157 px (~12rem).
   --------------------------------------------------------------- */

/* Active / hover link in header */
.theme-jeuxhub header a:hover,
.theme-jeuxhub header a[aria-current="page"] {
  color: var(--header-auth-color);
}

/* ── Desktop navigation built with webs-sdk/ui primitives ───────── */
.theme-jeuxhub .jh-middle-col [data-slot="navigation-menu"] {
  position: relative;
  z-index: 130;
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
}

.theme-jeuxhub .jh-middle-col [data-slot="navigation-menu-list"] {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.theme-jeuxhub .jh-middle-col [data-slot="navigation-menu-item"] {
  position: relative;
}

.theme-jeuxhub [data-nav-dropdown] {
  display: inline-flex;
  align-items: center;
}

.theme-jeuxhub [data-nav-dropdown] .jh-nav-chevron {
  margin-left: 0;
}

.theme-jeuxhub .jh-navlink,
.theme-jeuxhub .jh-middle-col [data-slot="navigation-menu-trigger"] {
  position: relative;
  display: inline-flex;
  height: auto;
  align-items: center;
  gap: 5px;
  padding: 14px 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--header-auth-color);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: color 150ms ease;
}

.theme-jeuxhub .jh-navlink:hover,
.theme-jeuxhub .jh-navlink:focus-visible,
.theme-jeuxhub .jh-navlink[aria-current="page"],
.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-trigger"]:hover,
.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-trigger"]:focus-visible,
.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-trigger"][data-active],
.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-trigger"][data-state="open"] {
  background: transparent;
  color: var(--header-auth-color);
}

.theme-jeuxhub .jh-navlink[aria-current="page"],
.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-trigger"][data-active] {
  color: var(--foreground);
}

.theme-jeuxhub .jh-navlink:focus-visible,
.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-trigger"]:focus-visible,
.theme-jeuxhub .jh-nav-dropdown-link:focus-visible {
  box-shadow: 0 0 0 2px var(--header-bg), 0 0 0 4px var(--header-nav-color);
}

.theme-jeuxhub .jh-nav-chevron {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-trigger"][data-state="open"]
  .jh-nav-chevron {
  transform: rotate(180deg);
}

.theme-jeuxhub .jh-middle-col [data-slot="navigation-menu-content"] {
  position: absolute;
  top: calc(100% - 2px);
  left: 8px;
  z-index: 140;
  width: max-content;
  min-width: 230px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--header-dropdown-border);
  border-top: 2px solid var(--header-nav-color);
  border-radius: 2px 2px 12px 12px;
  background: var(--header-dropdown-bg);
  color: var(--header-dropdown-text);
  box-shadow: var(--header-dropdown-shadow);
  transform-origin: top left;
}

.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-content"][data-state="open"] {
  animation: jh-nav-dropdown-in 160ms ease-out;
}

.theme-jeuxhub
  .jh-middle-col
  [data-slot="navigation-menu-content"][data-state="closed"] {
  animation: jh-nav-dropdown-out 120ms ease-in;
}

.theme-jeuxhub .jh-nav-dropdown-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-jeuxhub .jh-nav-dropdown-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 12px 9px 14px;
  border-left: 2px solid transparent;
  border-radius: 7px;
  color: var(--header-dropdown-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
  transition: background-color 140ms ease, border-color 140ms ease,
    color 140ms ease;
}

.theme-jeuxhub .jh-nav-dropdown-link:hover,
.theme-jeuxhub .jh-nav-dropdown-link:focus-visible,
.theme-jeuxhub .jh-nav-dropdown-link[aria-current="page"] {
  border-left-color: var(--header-nav-color);
  background: var(--header-dropdown-hover);
  color: #ffffff;
}

@keyframes jh-nav-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes jh-nav-dropdown-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-3px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-jeuxhub .jh-nav-chevron {
    transition: none;
  }

  .theme-jeuxhub
    .jh-middle-col
    [data-slot="navigation-menu-content"][data-state] {
    animation: none;
  }
}

/* ── Auth area ──────────────────────────────────────────────────── */
.theme-jeuxhub .jh-auth-btn {
  color: var(--header-auth-color);
  font-size: 16px;
  font-weight: 400;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}

.theme-jeuxhub .jh-auth-btn:hover {
  opacity: 0.8;
}

/* Legacy desktop header uses visible authentication labels. */
.theme-jeuxhub .jh-account-text-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--header-auth-color);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.71px;  /* legacy Archivo-Bold */
  line-height: 17px;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.theme-jeuxhub .jh-account-text-link:hover {
  opacity: 0.8;
}

/* Mobile header keeps its compact icon-only account control. */
.theme-jeuxhub .jh-account-link {
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--header-auth-color);
  cursor: pointer;
  transition: opacity 150ms ease;
}

.theme-jeuxhub .jh-account-link:hover {
  opacity: 0.8;
}

.theme-jeuxhub .jh-account-link svg {
  width: 23px;
  height: 23px;
}

/* ── Search form: white input + red button ───────────────────────── */
/* Wrapper: flex row, sits below the nav links in the middle column */
.theme-jeuxhub .jh-search-form {
  position: relative;
  display: flex;
  height: 41px;
  margin-top: 2px;
}

.theme-jeuxhub .jh-search-input {
  flex: 1;
  height: 41px;
  background: var(--header-search-input-bg);
  border: 1px solid var(--header-search-input-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #222;
  outline: none;
}

.theme-jeuxhub .jh-search-input::placeholder {
  color: #999;
}

.theme-jeuxhub .jh-search-input:focus {
  border-color: var(--header-nav-color);
  box-shadow: none;
}

.theme-jeuxhub .jh-search-btn {
  flex-shrink: 0;
  width: 84px;
  height: 41px;
  background: var(--header-search-btn-bg);
  border: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
  color: #fff;
}

.theme-jeuxhub .jh-search-btn:hover {
  background: #b80920;
}

.theme-jeuxhub .jh-search-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

/* Legacy typeahead: dropdown follows input width, excluding submit button. */
.theme-jeuxhub .jh-search-suggestions {
  position: absolute;
  top: 100%;
  right: 84px;
  left: 0;
  z-index: 160;
  max-height: 220px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 1px solid #e3e3e3;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  list-style: none;
}

.theme-jeuxhub .jh-search-suggestion {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 9px 10px;
  overflow: hidden;
  border: 0;
  background: #ffffff;
  color: #222222;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.theme-jeuxhub .jh-search-suggestion:hover,
.theme-jeuxhub [role="option"][aria-selected="true"] .jh-search-suggestion,
.theme-jeuxhub .jh-search-suggestion:focus-visible {
  background: #f2f2f2;
  outline: none;
}

.theme-jeuxhub .jh-search-suggestions li + li {
  border-top: 1px solid #eeeeee;
}

.theme-jeuxhub .jh-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

/* ── Mobile search (inside mobile drawer) ───────────────────────── */
.theme-jeuxhub .jh-search-mobile {
  display: flex;
  width: 100%;
  height: 38px;
  margin: 4px 0;
}

.theme-jeuxhub .jh-search-mobile .jh-search-input {
  height: 38px;
}

.theme-jeuxhub .jh-search-mobile .jh-search-btn {
  height: 38px;
  width: 52px;
}

/* Header structure mirrors legacy's 25% / intrinsic nav / 25% rail. */
.theme-jeuxhub .jh-header {
  border-bottom: 0;
}

/* FR and BE-FR legacy desktop headers include a 20px bottom band. */
@media (min-width: 992px) {
  .theme-jeuxhub .jh-header[data-web-id="jeuxhubfrv4"],
  .theme-jeuxhub .jh-header[data-web-id="be-fr-jeux-hub-be-v4"] {
    padding-bottom: 20px;
  }
}

.theme-jeuxhub .jh-header-inner {
  display: grid;
  grid-template-columns: 25% auto 25%;
  min-height: 116px;
  align-items: start;
  justify-content: space-between;
  gap: 0;
  padding: 20px 0 6px;
}

.theme-jeuxhub .jh-logo-col {
  display: flex;
  min-width: 0;
  align-items: center;
  margin-top: 20px;
}

.theme-jeuxhub .jh-logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 70px;
  object-fit: contain;
}

.theme-jeuxhub .jh-middle-col {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.theme-jeuxhub .jh-auth-col {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  margin-top: 45px;
  padding-right: 26px;
}

.theme-jeuxhub .jh-search-row {
  display: flex;
  height: 41px;
  justify-content: center;
  padding: 0;
}

.theme-jeuxhub .jh-search-row .jh-search-form {
  width: 535px;
  margin: 0;
}

.theme-jeuxhub
  .jh-header[data-web-id="be-fr-jeux-hub-be-v4"]
  .jh-search-row
  .jh-search-form {
  width: 434px;
}

.theme-jeuxhub .jh-desktop-header {
  display: none;
}

.theme-jeuxhub .jh-mobile-header {
  display: none;
  min-height: 112px;
  flex-direction: column;
  padding: 0;
}

.theme-jeuxhub .jh-mobile-top-row {
  display: grid;
  width: 100%;
  height: 69.5px;
  grid-template-columns: 25px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 0 29px 0 16px;
}

.theme-jeuxhub .jh-mobile-top-row > .jh-auth-btn {
  transform: translateY(0.75px);
}

.theme-jeuxhub .jh-mobile-top-row > .jh-auth-btn svg {
  width: 25px;
  height: 16px;
  fill: #ffffff;
}

.theme-jeuxhub .jh-mobile-logo {
  align-self: start;
  justify-self: start;
  margin-top: 16px;
}

.theme-jeuxhub .jh-mobile-header .jh-logo-image {
  width: auto;
  max-width: 111px;
  height: 35.5px;
}

.theme-jeuxhub .jh-mobile-header .jh-account-link,
.theme-jeuxhub .jh-mobile-header .jh-account-link svg {
  width: 16px;
  height: 16px;
}

.theme-jeuxhub .jh-mobile-visible-search {
  position: relative;
  display: flex;
  width: 75%;
  height: 35px;
  margin: 0 auto 8px;
}

.theme-jeuxhub .jh-mobile-visible-search .jh-search-input,
.theme-jeuxhub .jh-mobile-visible-search .jh-search-btn {
  height: 35px;
}

.theme-jeuxhub .jh-mobile-visible-search .jh-search-input {
  color: #000000;
  font-size: 11px;
  line-height: normal;
}

.theme-jeuxhub .jh-mobile-visible-search .jh-search-input::placeholder {
  color: #939393;
}

.theme-jeuxhub .jh-mobile-visible-search .jh-search-btn {
  width: 58px;
}

.theme-jeuxhub .jh-mobile-visible-search .jh-search-btn svg {
  display: none;
}

.theme-jeuxhub .jh-mobile-visible-search .jh-search-btn::before {
  width: 15px;
  height: 15px;
  background: url("https://d2obs2d3lmpnq9.cloudfront.net/Collections/default/icons/lupa_blanca.svg") center / contain no-repeat;
  content: "";
}

.theme-jeuxhub .jh-mobile-visible-search .jh-search-suggestions {
  right: 58px;
}

@media (min-width: 992px) {
  .theme-jeuxhub .jh-desktop-header {
    display: block;
  }
}

@media (max-width: 991px) {
  .theme-jeuxhub .jh-mobile-header {
    display: flex;
  }

  .theme-jeuxhub .jh-header::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 6px;
    background: var(--header-bg);
    content: "";
  }

  .theme-jeuxhub .jh-header[data-web-id="jeuxhubfrv4"],
  .theme-jeuxhub .jh-header[data-web-id="be-fr-jeux-hub-be-v4"] {
    padding-bottom: 6px;
  }

  .theme-jeuxhub .jh-mobile-header .jh-account-link {
    display: none;
  }

  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-mobile-header
    .jh-account-link {
    display: inline-flex;
    transform: translateY(-1px);
  }

  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-mobile-top-row {
    grid-template-columns: 25px minmax(0, 1fr) 16px;
    padding-right: 29px;
  }

  .theme-jeuxhub .jh-mobile-top-row {
    grid-template-columns: 25px minmax(0, 1fr);
    padding-right: 16px;
  }
}

@media (min-width: 992px) and (max-width: 1090px) {
  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-header-inner {
    min-height: 164px;
  }

  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-middle-col
    [data-slot="navigation-menu-list"] {
    width: 409px;
    flex-wrap: wrap;
  }

  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-navlink,
  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-middle-col
    [data-slot="navigation-menu-trigger"] {
    color: var(--header-auth-color);
    font-size: 14px;
  }

  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-search-row
    .jh-search-form {
    width: 510px;
  }
}

@media (max-width: 1199px) and (min-width: 1091px) {
  .theme-jeuxhub .jh-header-inner {
    grid-template-columns: 150px minmax(0, 1fr) 110px;
    gap: 16px;
  }

  .theme-jeuxhub .jh-logo-image {
    height: 50px;
  }

  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-header-inner {
    grid-template-columns: 25% auto 25%;
    gap: 0;
  }

  .theme-jeuxhub
    .jh-header[data-web-id="be-du-jeuxhub-be-v4"]
    .jh-logo-image {
    height: 70px;
  }

  .theme-jeuxhub .jh-navlink,
  .theme-jeuxhub .jh-middle-col [data-slot="navigation-menu-trigger"] {
    padding-inline: 7px;
    font-size: 14px;
  }
}

/* ---------------------------------------------------------------
   4. FOOTER
   --------------------------------------------------------------- */

.theme-jeuxhub .jh-footer {
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  color: var(--foreground);
}

.theme-jeuxhub .jh-footer-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: color 150ms ease;
}

.theme-jeuxhub .jh-footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.theme-jeuxhub .jh-footer-link:focus-visible {
  border-radius: 2px;
  color: var(--primary);
  outline: 2px solid currentColor;
  outline-offset: 4px;
  text-decoration: underline;
}

.theme-jeuxhub .jh-footer #ksp-seals {
  margin: 24px auto 0;
  text-align: center;
}

/* ---------------------------------------------------------------
   5. CUSTOMER CARE
   --------------------------------------------------------------- */

.theme-jeuxhub .jh-customer-care {
  /* Banda a ancho completo, como .wrapper-text-block del legacy */
  width: 100%;
  margin-top: 0;
  padding: 60px 10px;
  background: rgba(255, 255, 255, 0.25);
  text-align: center;
}

.theme-jeuxhub .jh-customer-care-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.theme-jeuxhub .jh-customer-care h2 {
  color: var(--foreground);
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
}

.theme-jeuxhub .jh-customer-care p {
  margin-top: 24px;
  color: var(--foreground);
  font-size: 20px;
  line-height: 1.3;
}

.theme-jeuxhub .jh-customer-care-image {
  display: block;
  width: 200px;
  height: 200px;
  margin: 30px auto 0;
  border: 2px solid var(--foreground);
  border-radius: 100%;
  object-fit: cover;
}

.theme-jeuxhub .jh-customer-care-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

.theme-jeuxhub .jh-customer-care-link {
  text-decoration: none;
}

.theme-jeuxhub .jh-customer-care-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.71px;
  line-height: normal;
}

.theme-jeuxhub .jh-customer-care-email svg {
  flex: none;
  color: var(--foreground);
}

/* Teléfono: botón con la imagen "Service gratuit + prix appel" del legacy */
.theme-jeuxhub .jh-customer-care-phone {
  display: flex;
  width: min(468px, calc(100vw - 32px));
  height: 54px;
  align-items: center;
  margin: 0 auto 48px;
  padding: 0 4px;
  background: #fff;
  color: #91919b;
}

.theme-jeuxhub .jh-customer-care-phone-bg {
  display: flex;
  width: 100%;
  aspect-ratio: 460 / 68;
  align-items: center;
  background: url("https://cdn.smarthubtech.net/Francia/bg-service-nogratuito.png")
    100% 50% / contain no-repeat;
}

.theme-jeuxhub .jh-customer-care-phone-number {
  display: block;
  width: 63.5%;
  color: #91919b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 7vw, 32px);
  font-weight: 700;
  letter-spacing: 0.71px;
  text-align: center;
}

.theme-jeuxhub .jh-customer-care-link:hover,
.theme-jeuxhub .jh-customer-care-link:focus-visible {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .theme-jeuxhub .jh-customer-care h2 {
    font-size: 30px;
  }

  .theme-jeuxhub .jh-customer-care p {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------
   6. LOGIN
   The login is a portal page, not a generic modal. Keep the navy canvas,
   Archivo typography, white controls and red actions from the legacy site.
   --------------------------------------------------------------- */

.theme-jeuxhub .login-page {
  min-height: 620px;
  padding: 24px 16px 72px !important;
  background: var(--background);
}

.theme-jeuxhub .login-page-inner {
  max-width: 420px;
  gap: 54px;
}

.theme-jeuxhub .login-logo-image {
  width: 219px;
  height: 70px;
  object-fit: contain;
}

.theme-jeuxhub .login-card [data-slot="card"] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.theme-jeuxhub .login-card [data-slot="card-header"] {
  margin-bottom: 28px;
}

.theme-jeuxhub .login-card [data-slot="card-title"] {
  color: var(--header-auth-color);
  font-family: var(--font-archivo), Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.theme-jeuxhub .login-card .signup-form {
  gap: 20px;
}

.theme-jeuxhub .login-card [data-slot="field-label"] {
  padding-left: 0;
  color: var(--header-auth-color) !important;
  font-size: 16px;
  font-weight: 400;
}

.theme-jeuxhub .login-card [data-slot="field"] {
  gap: 10px;
}

.theme-jeuxhub .login-card .login-form-field + .login-form-field {
  margin-top: 10px;
}

.theme-jeuxhub .login-card [data-slot="input-group"] {
  min-height: 42px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
}

.theme-jeuxhub .login-card [data-slot="input-group"]:hover {
  opacity: 1;
}

.theme-jeuxhub .login-card [data-slot="input-group"]:focus-within {
  border-color: var(--header-nav-color);
  box-shadow: 0 0 0 2px var(--header-nav-color);
}

.theme-jeuxhub .login-card [data-slot="input-group-control"] {
  min-height: 42px;
  border-radius: 0;
  background: transparent !important;
  color: var(--background) !important;
  caret-color: var(--header-nav-color);
  font-family: var(--font-archivo), Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.theme-jeuxhub .login-card [data-slot="input-group-control"]::placeholder {
  color: #767676 !important;
  opacity: 1 !important;
}

.theme-jeuxhub .login-card [data-slot="input-group-addon"],
.theme-jeuxhub .login-card [data-slot="input-group-addon"] svg,
.theme-jeuxhub .login-card [data-slot="input-group-addon"] button {
  color: #767676 !important;
}

.theme-jeuxhub .login-card .btn-primary {
  height: 54px;
  margin-top: 13px;
  border-radius: 36px;
  background: #f75f75 !important;
  color: #ffffff !important;
  font-family: var(--font-archivo), Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.theme-jeuxhub .login-card .btn-primary:hover:not(:disabled),
.theme-jeuxhub .login-card .btn-primary:active:not(:disabled) {
  background: #dc4359 !important;
}

.theme-jeuxhub .login-card .btn-primary:disabled {
  background: #f75f75 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

.theme-jeuxhub .login-card a {
  color: var(--header-nav-color);
}

.theme-jeuxhub .login-card a:hover {
  color: var(--header-nav-color-hover);
}

.theme-jeuxhub .login-card .login-recovery-link,
.theme-jeuxhub .login-card .login-register-link,
.theme-jeuxhub .login-card .login-recovery-link:hover,
.theme-jeuxhub .login-card .login-register-link:hover {
  color: #ffffff;
}

.theme-jeuxhub .login-card .login-recovery-link,
.theme-jeuxhub .login-card .login-register-link {
  font-family: var(--font-archivo), Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.theme-jeuxhub .login-card .login-recovery {
  margin-top: 10px;
  margin-bottom: 8px;
}

.theme-jeuxhub .login-card .login-no-account {
  margin-top: 0;
  color: var(--header-nav-color);
  font-family: var(--font-archivo), Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 18px;
}

.theme-jeuxhub .login-card .login-hybrid-form {
  gap: 17px;
}

.theme-jeuxhub .login-card .login-hybrid-form .btn-primary,
.theme-jeuxhub .login-card .login-hybrid-form .login-register-link {
  font-weight: 400;
}

.theme-jeuxhub .login-card .login-hybrid-form .login-no-account {
  margin-top: 2px;
}

.theme-jeuxhub .login-card .login-hybrid-form .login-register-link,
.theme-jeuxhub .login-card .login-hybrid-form .login-register-link:hover {
  display: inline-block;
  color: var(--header-nav-color);
  font-size: 14px;
  line-height: 18px;
}

.theme-jeuxhub
  .login-page[data-web-id="be-du-jeuxhub-be-v4"]
  .login-hybrid-form
  .login-register-link,
.theme-jeuxhub
  .login-page[data-web-id="be-du-jeuxhub-be-v4"]
  .login-hybrid-form
  .login-register-link:hover {
  color: var(--header-auth-color);
}

@media (max-width: 991px) {
  .theme-jeuxhub .login-card [data-slot="field-label"] {
    font-size: 14px;
    line-height: 18px;
  }

  .theme-jeuxhub .login-card [data-slot="field"] {
    gap: 12px;
  }

  .theme-jeuxhub .login-card [data-slot="input-group-addon"] {
    display: none;
  }

  .theme-jeuxhub .login-card .btn-primary {
    height: 42px;
    font-weight: 400;
  }

  .theme-jeuxhub .login-card .login-recovery-link {
    font-weight: 400;
  }

  .theme-jeuxhub .login-card .login-register-link {
    font-size: 14px;
    font-weight: 400;
  }
}

@media (max-width: 767px) {
  .theme-jeuxhub .jh-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

  .theme-jeuxhub .login-page {
    min-height: 560px;
    padding: 24px 12px 56px !important;
  }

  .theme-jeuxhub .login-page-inner {
    gap: 36px;
  }

  .theme-jeuxhub .login-logo-image {
    width: 188px;
    height: 60px;
  }
}

/* ---------------------------------------------------------------
   7. BUTTONS
   --------------------------------------------------------------- */

.theme-jeuxhub .btn-primary,
.theme-jeuxhub button[data-variant="default"],
.theme-jeuxhub [role="button"][data-variant="default"],
.theme-jeuxhub [data-slot="button"][data-variant="default"] {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  border-radius: 999px;
}

.theme-jeuxhub .btn-primary:hover:not(:disabled),
.theme-jeuxhub button[data-variant="default"]:hover:not(:disabled),
.theme-jeuxhub [role="button"][data-variant="default"]:hover:not(:disabled),
.theme-jeuxhub [data-slot="button"][data-variant="default"]:hover:not(:disabled) {
  background: var(--primary-600);
}

/* ---------------------------------------------------------------
   8. CONTENT CARDS
   --------------------------------------------------------------- */

.theme-jeuxhub .content-card-thumbnail {
  border-radius: 12px;
  overflow: hidden;
}

.theme-jeuxhub .content-card-title {
  color: var(--foreground);
  font-weight: 600;
}

/* ---------------------------------------------------------------
   9. SDK COMPONENT OVERRIDES
   --------------------------------------------------------------- */

/* PasswordReset */
.pr-input:focus {
  border-color: var(--primary);
}

.pr-btn {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-radius: 999px;
  font-weight: 700;
}

/* CookieConsent is themed through the `--cookie-consent-*` tokens above.
   The SDK owns component structure; this portal only provides brand values. */

/* ---------------------------------------------------------------
   10. SCROLLBAR (webkit)
   --------------------------------------------------------------- */

.theme-jeuxhub ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.theme-jeuxhub ::-webkit-scrollbar-track {
  background: var(--neutral-900);
}

.theme-jeuxhub ::-webkit-scrollbar-thumb {
  background: var(--neutral-700);
  border-radius: 3px;
}

.theme-jeuxhub ::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------------------------------------------------------------
   11. SELECTION
   --------------------------------------------------------------- */

.theme-jeuxhub ::selection {
  background: rgba(255, 133, 70, 0.3);
  color: #fff;
}

/* Páginas de sección que empiezan con hero full-bleed: el hero va pegado al
   header como en el legacy (sin el padding superior genérico del layout).
   En móvil el header es fixed (118px), así que solo se deja ese hueco. */
.theme-jeuxhub
  main:has(
    > :first-child
      > :first-child
      > section:first-child
      > :first-child
      > [data-component="image"][data-variant="full_bleed"]
  ) {
  padding-top: 118px;
}

@media (min-width: 768px) {
  .theme-jeuxhub
    main:has(
      > :first-child
        > :first-child
        > section:first-child
        > :first-child
        > [data-component="image"][data-variant="full_bleed"]
    ) {
    padding-top: 0;
  }
}
