/* ============================================================
   THEME BUZZ2OUF (buzz-2-ouf-frfrv4)
   Sin Figma: skin heredado del legacy andromeda (www.buzz-2-ouf.com).
   Portal OSCURO: body rgb(15,31,53) = #0f1f35, texto blanco, acento rojo.
   (medido con getComputedStyle sobre el legacy, 2026-11-16)
   ============================================================ */

:root {
  --background: #0f1f35;
  --foreground: #ffffff;
  --card: #162a47;
  --card-foreground: #ffffff;
  --popover: #162a47;
  --popover-foreground: #ffffff;
  --muted: #1b3252;
  --muted-foreground: #aebbd0;
  --border: #2a4468;
  --input: #2a4468;
  --ring: #ff223d;
  --secondary: #1b3252;
  --secondary-foreground: #ffffff;
  --color-text-tertiary: #aebbd0;

  /* Marca: rojo del legacy (#ff223d dominante en CTA; #f00f00 en barras) */
  --primary-300: #ff7a8a;
  --primary-400: #ff4a5f;
  --primary-500: #ff223d;
  --primary-600: #e0112b;
  --primary: #ff223d;
  --primary-foreground: #ffffff;
  --accent: #ff223d;
  --accent-foreground: #ffffff;

  --color-bg-base: #0f1f35;
  --color-bg-card: #162a47;
  --color-text-base: #ffffff;
  --color-text-muted: #aebbd0;
  --color-text-inverse: #ffffff;
  --color-on-accent: #ffffff;
  --color-border: #2a4468;
  --color-input-bg: #162a47;
  --color-input-border: #2a4468;
  --color-error: #ff6b6b;
  --gradient-primary: #ff223d;
  --gradient-primary-secondary: #ff223d;
  --radius-card: 8px;

  --footer-bg: #0a1626;
  --footer-border: #2a4468;

  /* Widget SAC (SacChatbot): burbuja roja del legacy (rgb 240,15,0), cabecera del chat en el azul del portal
     y texto de acento oscurecido para contrastar sobre el panel claro (#f5f5f5). */
  --bz-accent: #f00f00;
  --bz-accent-text: #c20c00;
  --bz-footer-bg: #0f1f35;

  /* Chatbot SAC (SacChatbot de webs-sdk): mismo aspecto que la versión anterior del widget.
     Marca roja del legacy en cabecera/burbuja/lanzador; acento oscurecido en chips y enlaces. */
  --sac-chatbot-primary: var(--bz-accent);
  --sac-chatbot-chip-border: var(--bz-accent-text);
  --sac-chatbot-chip-text: var(--bz-accent-text);
  --sac-chatbot-chip-hover-background: var(--bz-accent-text);
  --sac-chatbot-link-color: var(--bz-accent-text);
  --sac-chatbot-launcher-dot: #0099ff;

  --font-family-base: var(--font-raleway), Arial, Helvetica, sans-serif;
  --font-family-display: var(--font-raleway), Arial, Helvetica, sans-serif;
}

/* Las variables de next/font viven en la clase del <body>, no en :root. */
.theme-buzz2ouf {
  --font-family-base: var(--font-raleway), Arial, Helvetica, sans-serif;
  --font-family-display: var(--font-raleway), Arial, Helvetica, sans-serif;
}

/* El template fija fuente y fondo en <body>; se sustituyen por los del legacy. */
body.theme-buzz2ouf {
  background-color: var(--background) !important;
  color: var(--foreground) !important;
  font-family: var(--font-family-base);
}

/* Legales: URLs largas del backend no deben desbordar en móvil. */
.theme-buzz2ouf .legal-content {
  overflow-wrap: anywhere;
}

/* Tablas legales (política de cookies, 5 columnas): con overflow-wrap:anywhere las celdas se
   encogían a 1 letra en móvil. Dentro de la tabla las palabras no se parten; la tabla
   (display:block + overflow-x:auto en la página legal) hace su propio scroll horizontal,
   sin desbordar el body. */
.theme-buzz2ouf .legal-content table th,
.theme-buzz2ouf .legal-content table td {
  overflow-wrap: normal;
  word-break: normal;
  min-width: 7.5rem;
}

/* ── Header / home (medidos en el legacy a 1280px con getComputedStyle, 2026-11-16) ── */
:root {
  --header-bg: #070f1a;            /* .inner-header rgb(7,15,26) */
  --header-shadow: none;
  --b2o-nav-hover: #e60e00;        /* legacy li.nav-item:hover rgb(240,15,0); oscurecido para contraste >= 4.5 con texto blanco (4.4 en el legacy) */
  --b2o-submenu-bg: #070f1a;       /* ul.sub-nav */
  --b2o-login: #07eae4;            /* "Connexion" rgb(7,234,228) */
  --b2o-card-panel: #233854;       /* .contenido-container de las cards de films */
  --b2o-card-border: rgba(7, 15, 26, 0.1);
  --b2o-link: #fe0000;             /* "Voir plus" rgb(254,0,0) */
  --b2o-contact-bg: rgba(255, 255, 255, 0.25); /* bloque "Une question ?" */
}

/* Baja (/unsubscribe, step "phone"): cartucho "numéro vert" del legacy (mc_unsubscribe|block_resilier_tlf):
   caja blanca 42px, número Arial Bold 24px verde y "Service & appel gratuits" (bg_service.jpg, 138x42) a la derecha. */
.theme-buzz2ouf a.b2o-numero-vert {
  display: flex;
  align-items: center;
  width: 370px;
  max-width: calc(100vw - 2rem);
  box-sizing: border-box;
  height: 42px;
  padding-right: 138px;
  border-radius: 2px;
  background: #ffffff url("https://cdn.smarthubtech.net/Francia/bg_service.jpg") no-repeat 100% 50% / 138px 42px;
  text-decoration: none;
}
.theme-buzz2ouf a.b2o-numero-vert span {
  flex: 1;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.71px;
  color: rgb(151, 190, 13);
  white-space: nowrap;
}
/* El legacy no lleva icono de teléfono junto al cartucho (el icono genérico del step desbordaba a 390px). */
.theme-buzz2ouf div:has(> div > a.b2o-numero-vert) > .flex-shrink-0 {
  display: none;
}
@media (max-width: 400px) {
  .theme-buzz2ouf a.b2o-numero-vert span { font-size: 20px; letter-spacing: 0; }
}

/* Formulario de contacto: el SDK pinta campos claros (#f5f5f5) que heredaban el texto BLANCO del
   portal oscuro (valores y opciones invisibles). Legacy: campos blancos con texto oscuro. */
.theme-buzz2ouf main form :is(input, select, textarea) {
  background-color: #ffffff;
  color: #0f1f35;
}
.theme-buzz2ouf main form :is(input, textarea)::placeholder {
  color: #878787;
}
.theme-buzz2ouf main form select option {
  background-color: #ffffff;
  color: #0f1f35;
}
