/*
 Theme Name:   Beuretteland
 Theme URI:    https://beurette.land
 Description:  Thème enfant GeneratePress optimisé pour la web performance et le SEO. Design glassmorphism avec navigation mobile floating pill.
 Author:       Panpan
 Author URI:   https://beurette.land
 Template:     generatepress
 Version:      2.0.0
*/

/* ------------------------
   Custom Properties
------------------------ */
:root {
  --brand-red: #e33922;
  --brand-red-dark: #c22d1a;
  --dark-bg: #212121;
  --darker-bg: #121212;
  --glass-bg: rgba(30, 30, 30, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px) saturate(180%);
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #888888;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 24px;
  --glass-light: rgba(255, 255, 255, 0.06);
}

/* ------------------------
   Performance Optimizations
   (lazy loading géré par WP Rocket)
------------------------ */
ins {
  min-height: 200px;
}

/* ------------------------
   Global
------------------------ */
body {
  background-color: var(--darker-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

html {
  -webkit-tap-highlight-color: transparent;
}

a {
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-red);
}

hr {
  height: 1px;
  margin: 0;
  border: none;
  flex-shrink: 0;
  background-color: var(--glass-border);
}

svg.icon {
  vertical-align: text-top;
}

ul.menu svg.icon {
  vertical-align: -.125em;
}

h3 svg.icon {
  vertical-align: top;
  width: 20px;
  height: 20px;
}

body.img-fullscreen {
  position: fixed;
}

/* Plugin "The Best Disclaimer" : bloquer le scroll derrière la popup */
body.eb-disclaimer-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.display-none {
  display: none !important;
}

.no-padding-bottom {
  padding-bottom: 0 !important;
}

.has-lightgray-color {
  color: #ccc;
}

.o50 {
  opacity: 50%;
  color: var(--text-muted);
}

.meta-item {
  color: var(--text-muted);
}

[data-goto]:hover {
  cursor: pointer;
}

[data-goto]:not(.block-accounts):not(.circle-ad-container):not(.button):not(.gb-button):hover {
  text-decoration: underline;
}

/* Glass shared styles */
.box-shadow,
.button:not(.button-noshadow),
.wp-block-button,
.submit,
textarea,
.generate-columns-container .inside-article,
.wp-block-latest-posts__list li,
.comment-content,
.alert,
.paging-navigation,
.send.menu-item a {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.rounded-corner,
.button,
.wp-block-button,
.submit,
textarea,
.generate-columns-container .inside-article,
.wp-block-latest-posts__list li,
.tags-links a,
.wp-block-tag-cloud a,
.comment-content,
.copyright-bar span,
.alert,
.paging-navigation,
.send.menu-item a {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* ------------------------
   Progress Bar
------------------------ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  max-width: 100%;
  z-index: 100;
  height: 4px;
  background: var(--brand-red);
  box-shadow: 0 0 8px rgba(227, 57, 34, 0.5);
}

/* ------------------------
   Header (hidden, custom replaces it)
------------------------ */
.site-header {
  display: none !important;
}

.inside-header {
  flex-direction: row !important;
  justify-content: space-between;
}

@media(max-width: 768px){
  .inside-header .gb-button .gb-button-text {
    display: none;
  }
  .inside-header .gb-button .gb-icon {
    padding-right: 0;
  }
}

.flags-selector {
  position: relative;
  width: 60px;
  height: 30px;
  overflow: hidden;
}

.flags-selector:hover {
  overflow: visible !important;
}

.flags {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  flex-direction: column;
  align-content: center;
  padding: 0 .3em .1em;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.flags a,
.flags span {
  display: flex;
  height: 30px;
  align-content: center;
  align-items: center;
  order: 1;
  color: var(--text-main);
}

.flags svg {
  margin-right: .5em;
}

/* ------------------------
   Layout
------------------------ */
@media (min-width: 900px) {
  .display-flex .gb-inside-container {
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 16px;
    justify-content: center;
    align-items: center;
  }
}

body.home #page .entry-content {
  display: flex;
  flex-direction: column;
}

/* ------------------------
   Article Card (Single)
------------------------ */
/* On listings (archives/home), no padding inside card */
.generate-columns-container .inside-article {
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  padding: 0 !important;
  overflow: hidden;
  position: relative;
}

/* On single posts, add padding */
.single .inside-article {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  padding: 16px !important;
}

/* ------------------------
   Media Container
------------------------ */
.media-description {
  margin: 0 0 12px 0;
  background: rgba(20, 20, 20, 0.7);
  border-radius: var(--radius-md);
  padding: 0;
}

.media-header {
  margin: 0.6em 0 0;
  padding: 0;
}

.media-header .entry-meta {
  font-weight: 500;
}

.media-header h1 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  margin: 0;
  line-height: 1.3;
}

.mejs-container,
.img-container {
  position: relative;
  padding-bottom: 56.25% !important;
  width: 100% !important;
  height: 0 !important;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  background-color: #000 !important;
  border-radius: var(--radius-md);
}

.mejs-container iframe,
.mejs-container object,
.mejs-container embed,
.mejs-container video,
.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
}

.img-container img {
  object-fit: contain;
}

.img-container+.img-container {
  display: none;
}

.img-container .button-prev,
.img-container .button-next,
.img-container .button-fullscreen {
  display: none;
  position: absolute;
  width: 48px;
  height: 48px;
  line-height: 48px;
  top: 50%;
  -webkit-transform: translateY(-24px);
  transform: translateY(-24px);
  z-index: 999;
  text-align: center;
  background-color: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.img-container .button-prev:hover,
.img-container .button-next:hover,
.img-container .button-fullscreen {
  background-color: rgba(255, 255, 255, .2);
  cursor: pointer;
}

.img-container .button-prev {
  left: 16px;
}

.img-container .button-next {
  right: 16px;
}

.img-container:hover .button-prev,
.img-container:hover .button-next,
.img-container:hover .button-fullscreen {
  display: block;
}

.img-container .button-fullscreen {
  left: 50%;
  -webkit-transform: translate(-24px, -24px);
  transform: translate(-24px, -24px);
}

body.img-fullscreen .button-fullscreen {
  top: auto;
  bottom: 16px;
}

.mejs-controls {
  background-color: rgba(0, 0, 0, .5) !important;
}

body.img-fullscreen .img-container {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  height: 100% !important;
  padding-bottom: 0 !important;
  overflow-y: scroll;
}

body:not(.img-fullscreen) .button-fullscreen .decrease {
  display: none;
}

body.img-fullscreen .button-fullscreen .increase {
  display: none;
}

.wp-video {
  width: 100% !important;
  aspect-ratio: 16/9;
}

/* ------------------------
   Single Article Spacing
------------------------ */
.single .inside-article > .entry-meta {
  margin-top: 0.75em;
}

.single .banner-premium {
  margin-top: 0.75em;
  margin-bottom: 0;
}

.single .inside-article > h2.liketoo {
  margin: 1em 0 0.5em;
  font-size: 1rem;
}

/* ------------------------
   "Publié par pseudo" — flouté style tanahub
------------------------ */
.bl-published-by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin: 0.5em 0;
  color: var(--text-muted);
  order: -1;
  width: 100%;
}

.bl-published-by-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bl-published-by .bl-views-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bl-published-by .bl-views-count .bi {
  font-size: 0.75rem;
}

.bl-published-by-label {
  color: var(--text-muted);
  font-weight: 400;
}

.bl-published-by-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
}

.bl-published-by-link:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
  text-decoration: none;
}

.bl-published-by-link .bi {
  font-size: 0.9em;
}

.bl-published-by-pseudo {
  filter: blur(5px);
  user-select: none;
  transition: filter 0.3s ease;
  font-weight: 600;
}

.bl-published-by-link:hover .bl-published-by-pseudo {
  filter: blur(3px);
}

/* ------------------------
   Yoast Breadcrumb
------------------------ */
.bl-breadcrumb-wrap {
  padding: 1.5em 16px;
  border-top: 1px solid var(--glass-border);
}

.bl-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bl-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.bl-breadcrumb a:hover {
  color: var(--brand-red);
}

/* ------------------------
   Controls (Like, Share) - Glass pill buttons
------------------------ */
.entry-content .controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 0.4em 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.entry-content .controls::-webkit-scrollbar {
  display: none;
}

.entry-content .controls .button {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.entry-content .controls .button svg.icon {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.7);
  transition: fill 0.2s ease;
}

.entry-content .controls .send-ajax-likes-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.entry-content .controls .btn-share-link .share-label {
  font-size: 0.8rem;
}

.entry-content .controls .button:hover {
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.entry-content .controls .button:hover svg {
  fill: #fff;
}

.entry-content .controls .button:active {
  transform: scale(0.95);
}

/* Hide like/dislike buttons (replaced by emoji reactions) */
.entry-content .controls .send-ajax-likes {
  display: none !important;
}

.entry-content .controls .btn-share-link.copied {
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.3);
}

.entry-content .controls .btn-share-link.copied svg {
  fill: #4caf50;
}

.send-ajax-likes {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-share-link {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* ------------------------
   Content
------------------------ */
.display-last {
  order: 999;
}

.entry-content > p {
  margin-top: 0.4em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
}

.wp-block-image {
  position: relative;
}

#content .flowplayer a.button:hover {
  border-bottom: 1px solid var(--brand-red) !important;
}

#content .flowplayer a.button {
  border-bottom-width: 1px !important;
  border-bottom-style: solid !important;
}

.meks_ess {
  margin-top: 2em !important;
}

/* ------------------------
   Circle Ads (Instagram Stories Style)
------------------------ */
.circle-ads {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.circle-ads::-webkit-scrollbar {
  display: none;
}

.circle-ad-container {
  position: relative;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.circle-ad-container:hover {
  opacity: 0.85;
}

.circle-ad-container p {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70px;
  color: #ccc;
}

.circle-ad-container .ext {
  display: none;
  position: absolute;
  z-index: 10;
  top: -2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background-color: var(--dark-bg);
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.circle-ad-container .ext svg.icon {
  width: 12px;
  height: 12px;
  vertical-align: baseline;
}

.circle-ad-container:hover .ext {
  display: block;
}

.circle-ad {
  position: relative;
  border-radius: 50%;
  height: 66px;
  width: 66px;
  padding: 3px;
  background: linear-gradient(45deg, #e33922, #ff6b6b, #e33922);
  background-size: 200% 200%;
  animation: gradient-rotate 4s ease infinite;
  flex-shrink: 0;
}

.circle-ad::after {
  content: none;
}

.circle-ad img {
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border: 2px solid var(--darker-bg);
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (pointer: fine) {
  .circle-ad img {
    opacity: .9;
    transition: opacity .3s ease;
  }

  .circle-ad-container:hover img {
    opacity: 1;
  }
}

/* ------------------------
   Tags
------------------------ */
/* Tags: horizontal scroll, never truncated */
body .tags-links,
body footer.entry-meta .tags-links {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin-bottom: 0.75em;
  color: transparent;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  white-space: nowrap;
}

.tags-links::-webkit-scrollbar {
  display: none;
}

body .tags-links a,
body footer.entry-meta .tags-links a {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.tags-links a,
.wp-block-tag-cloud a {
  font-size: 0.8rem !important;
  text-transform: uppercase;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tags-links a::before,
.wp-block-tag-cloud a::before {
  content: "#";
}

.tags-links a:hover,
.wp-block-tag-cloud a:hover {
  background-color: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.tags-links .gp-icon {
  display: none;
}

/* ------------------------
   Pagination (both GP nav-previous/next AND numbered)
------------------------ */
.paging-navigation {
  margin: 1.5em 16px;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.paging-navigation .nav-previous a,
.paging-navigation .nav-next a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.paging-navigation .nav-previous a:hover,
.paging-navigation .nav-next a:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.paging-navigation .gp-icon {
  display: inline-flex;
}

.paging-navigation .gp-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Numbered pagination (if GP Premium generates it) */
.generate-pagination {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  display: inline-flex;
  gap: 2px;
}

/* Numbered pagination custom */
.bl-pagination {
  margin: 1.5em 16px;
  text-align: center;
}

.bl-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 4px 8px;
}

.bl-pagination li {
  margin: 0;
}

.bl-pagination a,
.bl-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}

.bl-pagination a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bl-pagination .current {
  background: var(--brand-red) !important;
  color: #fff !important;
}

.bl-pagination .dots {
  color: var(--text-muted);
  min-width: 20px;
}

.bl-pagination .prev,
.bl-pagination .next {
  font-size: 16px;
}

/* Hide GP default pagination when our custom one is shown */
.generate-columns-container .paging-navigation {
  display: none !important;
}

span.page-numbers.current {
  background-color: var(--brand-red);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

.nav-links .page-numbers {
  margin: 0 !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* ------------------------
   Related Articles
------------------------ */
.related-articles {
  margin-top: 1.5em;
  padding: 1em 16px;
  border: none;
  overflow: hidden;
}

.related-articles h3 {
  font-size: 1rem;
  margin-bottom: 0.75em;
  color: var(--text-main);
}

/* Fix text overflow in related article cards */
.related-articles .wp-block-latest-posts__list {
  padding: 0 !important;
}

.related-articles .wp-block-latest-posts__list li {
  overflow: hidden;
}

.related-articles .wp-block-latest-posts__list a {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ------------------------
   Related Tags ("Tu aimeras aussi")
------------------------ */
.bl-related-tags {
  margin: 1.5em 0;
  padding: 1.25em;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.bl-related-tags-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75em;
  padding-left: 12px;
  border-left: 3px solid var(--brand-red);
  color: var(--text-main);
}

.bl-related-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-related-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bl-related-tag:hover {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  text-decoration: none;
}

.bl-related-tag:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

/* ------------------------
   Comments
------------------------ */
.comment-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* ------------------------
   Alerts
------------------------ */
.alert {
  padding: .75em 1em;
  box-sizing: border-box;
  margin-bottom: 1.125rem;
  border: 1px solid transparent;
  color: var(--contrast);
}

.alert-warning {
  background-color: #ffeeba;
  border-color: #f1da95;
}

.alert-info {
  background-color: #dfebf5;
  border-color: #c9e3f9;
}

/* ------------------------
   ACF Fields
------------------------ */
.acf-fields>.acf-field {
  border-top: 1px solid var(--glass-border) !important;
}

.acf-basic-uploader {
  color: #000 !important;
}

@media (max-width: 768px) {
  .acf-basic-uploader input {
    max-width: 200px;
  }
}

/* ------------------------
   On-Image CTA
------------------------ */
.on_image_cta:hover {
  cursor: pointer;
}

.on_image_cta .button {
  background-color: var(--brand-red);
  color: #fff;
}

/* ------------------------
   Send Menu Item
------------------------ */
.send.menu-item a {
  color: var(--accent) !important;
  line-height: 40px !important;
  background-color: var(--contrast);
}

.send.menu-item a:hover {
  color: var(--contrast) !important;
  line-height: 40px !important;
  background-color: var(--accent);
}

.send.menu-item a:hover svg {
  fill: var(--contrast);
}

.send.menu-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  vertical-align: sub;
  transition: fill .1s ease-in-out;
}

/* ------------------------
   SEO Text Block (Homepage)
------------------------ */
.site-footer + .gb-container,
body.home .paging-navigation + .gb-container {
  border-top: 1px solid var(--glass-border);
  margin-top: 2em;
}

.site-footer + .gb-container .gb-inside-container,
body.home .gb-container .gb-inside-container {
  max-width: 800px;
}

.site-footer + .gb-container h1,
.site-footer + .gb-container h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 1.5em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--glass-border);
}

.site-footer + .gb-container p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------
   Footer
------------------------ */
.site-footer {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
}

.copyright-bar hr {
  display: inline-block;
  vertical-align: bottom;
  width: 1px;
  height: 28px;
  margin: 0 4px;
}

.copyright-bar span {
  text-transform: uppercase;
  line-height: 1.75;
  padding: 6px 8px;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.copyright-bar span:hover {
  text-decoration: none !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.site-footer+.gb-container ul {
  margin-left: 1em;
}

.footer-p p {
  margin-bottom: 0;
}

.footer-p svg.icon {
  vertical-align: baseline;
}

.footer-p .gb-grid-wrapper + .gb-grid-wrapper {
  margin-top: 1.25em;
}

/* ------------------------
   Tags Index Navigation
------------------------ */
.tags-index-nav {
  background-color: transparent;
  border: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  margin-bottom: 3em;
}

.tags-index-nav a,
.tags-index-nav span.disabled {
  font-weight: bold;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease-in-out;
}

.tags-index-nav a {
  color: #ccc;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.tags-index-nav a:hover {
  color: #fff;
  background-color: var(--brand-red);
  border-color: var(--brand-red);
}

.tags-index-nav span.disabled {
  color: var(--text-dim);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.04);
}

/* ------------------------
   Tags Letter Heading
------------------------ */
.tags-letter-heading {
  margin-top: 2em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--glass-border);
  scroll-margin-top: 120px;
}

/* ------------------------
   GP Search Form (native)
------------------------ */
.search-form,
.wp-block-search {
  display: flex;
  gap: 8px;
  max-width: 500px;
}

.search-form .search-field,
.wp-block-search__input {
  flex: 1;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-form .search-field:focus,
.wp-block-search__input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(227, 57, 34, 0.4);
}

.search-form .search-field::placeholder,
.wp-block-search__input::placeholder {
  color: var(--text-muted);
}

.search-form .search-submit,
.wp-block-search__button {
  height: 44px;
  padding: 0 20px;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-form .search-submit:hover,
.wp-block-search__button:hover {
  background: var(--brand-red-dark);
}

/* ------------------------
   Archive/Tag Page Header
------------------------ */
.page-header {
  padding: 0 16px;
  margin-bottom: 1em;
}

.page-header h1 {
  font-size: 1.5rem;
  border-left: 3px solid var(--brand-red);
  padding-left: 12px;
}

.page-header h1 .bi {
  color: var(--brand-red);
  margin-right: 4px;
}

.page-header-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25em 0 0;
  padding-left: 16px;
}

/* ------------------------
   Global content / layout fix
   GP uses display:flex on .site-content which causes width issues
------------------------ */
.site-content {
  display: block !important;
}

.site-content .content-area {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}

/* Pagination must span full width (it's inside .generate-columns-container) */
.generate-columns-container .paging-navigation {
  grid-column: 1 / -1;
}

/* Fix content collé aux bords */
.inside-article > *:not(.media-description) {
  padding-left: 0;
  padding-right: 0;
}

/* ========================
   Single post: reorder elements
   HTML order: header(0) → controls(1) → video(3) → text(5+)
   Visual order: video → header → controls → text
   ======================== */
.single .entry-content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.single .entry-content .media-description,
.single .entry-content .flowplayer,
.single .entry-content .mejs-container,
.single .entry-content .wp-video,
.single .entry-content .img-container,
.single .entry-content .wp-block-fv-player-gutenberg-basic,
.single .entry-content [class*="wp-block-fv-player"] {
  order: -2;
}

.single .entry-content .media-header {
  order: -1;
  margin-top: 0.75em;
}

/* Views badge (integrated in "Publié par" line) */

.single .entry-content .controls {
  order: 1;
  margin: 0.25em 0;
}

.single .entry-content > p {
  order: 2;
  margin: 0.5em 0;
}

/* Fix tags sur single post */
.single .tags-links {
  margin: 0.75em 0;
}

/* Fix banner premium order */
.single .banner-premium {
  order: 3;
}

/* ========================
   Sponsored Posts (grille)
   ======================== */
.bl-sponsored-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--brand-red) !important;
  background: #1a1a1a;
  min-width: 0 !important;
  box-shadow: 0 0 20px rgba(227, 57, 34, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.bl-sponsored-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(227, 57, 34, 0.3);
}

.bl-sponsored-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: #fff !important;
}

.bl-sponsored-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 5;
}

.bl-sponsored-img {
  aspect-ratio: 9/13;
  overflow: hidden;
  position: relative;
}

.bl-sponsored-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bl-sponsored-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  z-index: 3;
}

.bl-sponsored-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.bl-sponsored-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bl-sponsored-cta .bi {
  font-size: 12px;
  transition: transform 0.2s;
}

.bl-sponsored-card:hover .bl-sponsored-cta .bi {
  transform: translateX(3px);
}

/* ========================
   Ad Slots (sous les vidéos)
   ======================== */
.bl-ad-slot {
  margin: 1em 0;
  text-align: center;
}

.bl-ad-after-controls {
  order: 1;
  padding: 8px 0;
}

.bl-ad-after-content {
  order: 4;
  padding: 16px 0;
}

/* ========================
   Emoji Reactions (🔥 💦 😍 👀)
   Note: .bl-reactions order:0 and .bl-ad-* order values are independent —
   reactions are injected via generate_after_entry_title hook (priority 15),
   ad slots via the same hook at priority 99, so DOM order is correct.
   ======================== */
.bl-reactions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.3em 0;
  margin: 0;
  order: 0;
  width: 100%;
  border-bottom: 1px solid var(--glass-border);
}

.bl-reaction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bl-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.bl-reaction-btn:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.bl-reaction-btn:active {
  transform: scale(0.95);
}

.bl-reaction-btn.bl-reacted {
  background: rgba(227, 57, 34, 0.1);
  border-color: rgba(227, 57, 34, 0.3);
}

.bl-reaction-emoji {
  font-size: 18px;
  line-height: 1;
}

.bl-reaction-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 8px;
}

/* TikTok Live floating emoji animation */
.bl-floating-emoji {
  position: fixed;
  font-size: 28px;
  pointer-events: none;
  z-index: 999999;
  animation: bl-float-up 1.5s ease-out forwards;
  opacity: 1;
}

@keyframes bl-float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  30% {
    transform: translateY(-60px) scale(1.3);
    opacity: 1;
  }
  60% {
    transform: translateY(-120px) scale(1) translateX(20px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-200px) scale(0.6) translateX(-10px);
    opacity: 0;
  }
}

/* ------------------------
   Toast "Lien copié" (TikTok/Instagram style)
------------------------ */
.bl-toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(20px);
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 999999;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bl-toast .bi {
  color: #4caf50;
  font-size: 18px;
}

.bl-toast-show {
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(0);
  transform: translateX(-50%) translateY(0);
}

/* ========================
   Page /send/ — Formulaire upload stylisé
   ======================== */
.page-template-page-send .inside-article,
.page-template-page-send .inside-article {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px !important;
  max-width: 700px;
  margin: 0 auto;
}

/* ACF Form styling */
#envoyer,
.acf-form {
  max-width: 100%;
}

#envoyer .acf-field,
.acf-form .acf-field {
  border-top-color: var(--glass-border) !important;
  padding: 16px 0 !important;
}

#envoyer .acf-label label,
.acf-form .acf-label label {
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

#envoyer input[type="text"],
#envoyer input[type="email"],
#envoyer input[type="url"],
#envoyer input[type="number"],
#envoyer textarea,
#envoyer select,
.acf-form input[type="text"],
.acf-form input[type="email"],
.acf-form textarea,
.acf-form select {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  color: #fff !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  width: 100% !important;
  transition: border-color 0.2s;
}

#envoyer input:focus,
#envoyer textarea:focus,
.acf-form input:focus,
.acf-form textarea:focus {
  border-color: rgba(227, 57, 34, 0.5) !important;
  outline: none !important;
}

#envoyer input::placeholder,
#envoyer textarea::placeholder {
  color: var(--text-muted) !important;
}

#envoyer textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit button */
#envoyer input[type="submit"],
#envoyer .acf-submit input[type="submit"],
.acf-form input[type="submit"] {
  background: var(--brand-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 8px;
}

#envoyer input[type="submit"]:hover,
.acf-form input[type="submit"]:hover {
  background: var(--brand-red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 57, 34, 0.3);
}

/* File upload area */
.acf-basic-uploader {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 2px dashed var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 20px !important;
  text-align: center;
  color: var(--text-muted) !important;
}

/* Send page content text */
.page-template-page-send .entry-content,
.page-template-page-send .entry-content {
  color: rgba(255, 255, 255, 0.85);
}

.page-template-page-send .entry-content strong,
.page-template-page-send .entry-content strong {
  color: #fff;
}

/* Report button text */
.entry-content .controls a[title="Report"],
.entry-content .controls a[title="Signaler"] {
  font-size: 0 !important;
}

.entry-content .controls a[title="Report"]::after,
.entry-content .controls a[title="Signaler"]::after {
  content: 'Signaler';
  font-size: 13px;
  margin-left: 4px;
}

/* ========================
   Page Tendance
   ======================== */
body.page-template-page-tendance .page-header {
  padding: 0 16px;
  margin-bottom: 1.5em;
}

.page-template-page-tendance .page-header h1 {
  font-size: 1.6rem;
  border-left: 3px solid var(--brand-red);
  padding-left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-template-page-tendance .page-header-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.3em 0 0;
  padding-left: 18px;
}

/* ========================
   Homepage — Sections structurées
   ======================== */
.bl-section {
  margin-bottom: 2em;
  padding: 0 8px;
}

@media (min-width: 800px) {
  .bl-section {
    padding: 0 16px;
  }
}

.bl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.bl-section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-left: 3px solid var(--brand-red);
  padding-left: 10px;
}

.bl-section-header h2 .bi {
  color: var(--brand-red);
}

.bl-section-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.bl-section-link:hover {
  opacity: 0.8;
  text-decoration: none;
  color: var(--brand-red);
}

/* ========================
   Homepage — Hero H1
   ======================== */
.bl-hero {
  text-align: center;
  padding: 1.5em 16px 0.5em;
}

.bl-hero h1 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 0.3em;
  color: #fff;
}

.bl-hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ========================
   Homepage — SEO Text Block
   ======================== */
.bl-seo-text {
  padding: 2em 16px;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
}

.bl-seo-text h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 1.5em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--glass-border);
}

.bl-seo-text h3 {
  font-size: 1rem;
  margin-top: 1.2em;
}

.bl-seo-text p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================
   Homepage — Scroll Row (Populaires carousel)
   ======================== */
.bl-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 8px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.bl-scroll-row::-webkit-scrollbar { display: none; }

@media (min-width: 800px) {
  .bl-scroll-row { padding: 0 16px 8px; }
}

.bl-scroll-card {
  flex: 0 0 140px;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  text-decoration: none !important;
  color: #fff !important;
  scroll-snap-align: start;
  transition: transform 0.2s;
}

@media (min-width: 490px) {
  .bl-scroll-card { flex: 0 0 160px; width: 160px; min-width: 160px; max-width: 160px; }
}

@media (min-width: 800px) {
  .bl-scroll-card { flex: 0 0 180px; width: 180px; min-width: 180px; max-width: 180px; }
}

.bl-scroll-card:hover { transform: scale(1.03); }

.bl-scroll-thumb {
  position: relative;
  aspect-ratio: 9/13;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--glass-border);
}

.bl-scroll-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bl-scroll-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge HOT */
.bl-badge-hot {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--brand-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(227, 57, 34, 0.4);
}

/* ========================
   Homepage — CTA Compacts (bandeaux)
   ======================== */
.bl-cta-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  margin: 12px 8px;
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

@media (min-width: 800px) {
  .bl-cta-compact { margin: 16px 16px; padding: 16px 24px; }
}

.bl-cta-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #fff !important;
}

.bl-cta-compact .bi:first-child {
  font-size: 22px;
  flex-shrink: 0;
}

.bl-cta-compact span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl-cta-arrow {
  font-size: 16px;
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.bl-cta-compact:hover .bl-cta-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Telegram CTA */
.bl-cta-compact.bl-cta-tg {
  background: linear-gradient(135deg, #0077b5, #0099dd);
}

/* Plan Cul CTA */
.bl-cta-compact.bl-cta-meet {
  background: linear-gradient(135deg, #b22a18, #e33922);
}

/* Groupes Telegram CTA */
.bl-cta-compact.bl-cta-groups {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(0, 136, 204, 0.3);
}

/* Upload CTA (old compact — kept for fallback) */
.bl-cta-compact.bl-cta-upload {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 1px solid var(--glass-border);
}

/* ========================
   Premium CTA: Upload Sextape (REC style)
   ======================== */
.cta-premium-red {
  position: relative;
  width: auto;
  min-height: 80px;
  background: linear-gradient(135deg, #1a0505 0%, #0a0a0a 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 14px 28px;
  margin: 16px 8px;
  border: 1px solid rgba(227, 57, 34, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none !important;
  color: #fff !important;
}

@media (min-width: 800px) { .cta-premium-red { margin: 20px 16px; } }

.cta-premium-red::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(227, 57, 34, 0.05) 50%, transparent 100%);
  background-size: 200% 200%;
  animation: bl-glow-shift 8s ease infinite;
  z-index: 1;
}

.cta-premium-red::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
}

.cta-premium-red:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--brand-red);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(227, 57, 34, 0.15);
}

.bg-watermark {
  position: absolute;
  right: 12%;
  top: -20px;
  font-size: 140px;
  color: var(--brand-red);
  opacity: 0.04;
  transform: rotate(-15deg);
  z-index: 0;
  pointer-events: none;
}

.rec-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  flex-shrink: 0;
}

.rec-dot {
  width: 10px;
  height: 10px;
  background: var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-red);
  animation: bl-rec-blink 1.5s ease-in-out infinite;
}

@keyframes bl-rec-blink {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.rec-text {
  color: var(--brand-red);
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 16px;
}

.cta-content-center {
  flex: 1;
  text-align: center;
  z-index: 3;
  padding: 0 16px;
}

.cta-title-big {
  display: block;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-subtitle-sm {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.btn-premium-red {
  background: linear-gradient(to right, #e33922, #b02a1a);
  color: white !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(227, 57, 34, 0.4);
  transition: all 0.3s;
  z-index: 3;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
}

.cta-premium-red:hover .btn-premium-red {
  box-shadow: 0 8px 25px rgba(227, 57, 34, 0.6);
}

@keyframes bl-glow-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================
   Premium CTA: Telegram Vault
   ======================== */
.cta-premium-dark {
  position: relative;
  width: auto;
  min-height: 80px;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 14px 28px;
  margin: 16px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none !important;
  color: #fff !important;
}

@media (min-width: 800px) { .cta-premium-dark { margin: 20px 16px; } }

.animated-border {
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #6215c7, #136dfd, #14b8a6, #6215c7);
  background-size: 400% 400%;
  animation: bl-border-motion 12s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
}

.cta-premium-dark:hover .animated-border { opacity: 0.8; }

.cta-premium-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

@keyframes bl-border-motion {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.icon-vault {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  transform: rotate(45deg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  flex-shrink: 0;
}

.icon-vault i {
  transform: rotate(-45deg);
  font-size: 22px;
  color: #2ea6ff;
  filter: drop-shadow(0 0 6px rgba(46, 166, 255, 0.4));
}

.badge-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(227, 57, 34, 0.15);
  color: #ff4d4d;
  border: 1px solid rgba(227, 57, 34, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 4;
  text-transform: uppercase;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  z-index: 3;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
}

.cta-premium-dark:hover .btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-glass .bi-stars {
  color: #ffd700;
  animation: bl-sparkle 2s infinite;
}

@keyframes bl-sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Responsive premium CTA */
@media (max-width: 600px) {
  .cta-premium-red, .cta-premium-dark {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 24px 16px;
    min-height: auto;
  }
  .cta-content-center { padding: 0; }
  .rec-indicator { justify-content: center; }
  .btn-premium-red, .btn-glass { width: 100%; justify-content: center; }
  .bg-watermark { right: -20px; top: 10px; opacity: 0.02; font-size: 100px; }
  .badge-hot { top: 8px; right: 8px; }
  .cta-title-big { font-size: 1rem; }
}

/* ========================
   Anciens Gemini CTA Cards (gardés pour compatibilité)
   ======================== */
.bl-cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  margin: 12px 8px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 70px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  cursor: pointer;
  color: #fff !important;
}

@media (min-width: 800px) {
  .bl-cta-card { margin: 16px 16px; }
}

.bl-cta-card .bl-cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.bl-cta-card .bl-cta-text {
  display: flex;
  flex-direction: column;
}

.bl-cta-card .bl-cta-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.bl-cta-card .bl-cta-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* SEXTAPE UPLOAD CTA */
.cta-upload {
  background: linear-gradient(90deg, #181818, #1e1e1e);
  border: 1.5px dashed var(--brand-red);
}

.cta-upload:hover {
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 57, 34, 0.15);
}

.icon-recording-wrap {
  position: relative;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.recording-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-red);
  animation: bl-rec-pulse 1.2s infinite ease-in-out;
}

@keyframes bl-rec-pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

.btn-upload {
  background: var(--brand-red);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cta-upload:hover .btn-upload {
  transform: scale(1.05);
  background: #ff452c;
}

/* TELEGRAM GROUPS CTA */
.cta-telegram-groups {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-telegram-groups::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 1px, transparent 1px),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  z-index: 0;
}

.cta-telegram-groups .bl-cta-content,
.cta-telegram-groups .btn-telegram-groups {
  position: relative;
  z-index: 1;
}

.cta-telegram-groups:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 33, 62, 0.4);
}

.avatar-stack {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.avatar {
  width: 30px;
  height: 30px;
  background: #444;
  border: 2px solid #16213e;
  border-radius: 50%;
  margin-left: -10px;
}

.avatar:first-child { margin-left: 0; }
.avatar:nth-child(2) { background: #555; }
.avatar:nth-child(3) { background: #666; }

.lock-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #fff;
  color: #1a1a2e;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-telegram-groups:hover .lock-badge i {
  animation: bl-shake 0.4s ease-in-out;
}

@keyframes bl-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.btn-telegram-groups {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cta-telegram-groups:hover .btn-telegram-groups {
  background: #fff;
  color: #1a1a2e;
}

/* Responsive Gemini CTA */
@media (max-width: 600px) {
  .bl-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 12px;
  }
  .bl-cta-card .bl-cta-content {
    flex-direction: column;
    gap: 10px;
  }
  .btn-upload, .btn-telegram-groups {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile: texte plus petit */
@media (max-width: 600px) {
  .bl-cta-compact {
    font-size: 13px;
    padding: 12px 14px;
    gap: 10px;
  }
  .bl-cta-compact .bi:first-child { font-size: 18px; }
}

/* ========================
   Homepage — CTA Sections (anciens — gardés pour compatibilité)
   ======================== */
.bl-cta-section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 1.5em 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

@media (min-width: 800px) {
  .bl-cta-section { margin: 2em 16px; }
}

/* Telegram — fond bleu */
.bl-cta-tg {
  background: linear-gradient(135deg, #0077b5 0%, #0088cc 50%, #00a0e4 100%) !important;
  border: none !important;
  backdrop-filter: none !important;
}

.bl-cta-tg .bl-cta-subtitle { color: rgba(255,255,255,0.75); }

/* Plan Cul — fond rouge */
.bl-cta-meet {
  background: linear-gradient(135deg, #b22a18 0%, #e33922 50%, #ff4c35 100%) !important;
  border: none !important;
  backdrop-filter: none !important;
}

/* Icon circles */
.bl-cta-icon-wrapper {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 36px;
}

.bl-cta-tg .bl-cta-icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.bl-cta-meet .bl-cta-icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  animation: bl-fire-pulse 2s infinite ease-in-out;
}

.bl-cta-meet .bl-cta-subtitle { color: rgba(255,255,255,0.75); }

@keyframes bl-fire-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(227, 57, 34, 0.1); transform: scale(1); }
  50% { box-shadow: 0 0 35px rgba(227, 57, 34, 0.3); transform: scale(1.05); }
}

/* Content */
.bl-cta-content { flex-grow: 1; }

.bl-cta-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  display: block;
}

.bl-cta-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  display: block;
}

/* Buttons */
.bl-cta-btn {
  flex-shrink: 0;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter 0.3s ease, transform 0.2s ease;
  border: none;
  color: white !important;
  cursor: pointer;
  white-space: nowrap;
}

.bl-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: white !important;
}

.btn-tg {
  background: #fff !important;
  color: #0088cc !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-weight: 800;
}
.btn-tg:hover { color: #006699 !important; }

.btn-meet {
  background: #fff !important;
  color: #e33922 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-weight: 800;
  position: relative;
  overflow: hidden;
}
.btn-meet:hover { color: #c22d1a !important; }

/* Shimmer on Plan Cul button */
.btn-meet::after {
  content: "";
  position: absolute;
  top: -50%; left: -100%;
  width: 50%; height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(30deg);
  animation: bl-btn-shimmer 3s infinite;
}

@keyframes bl-btn-shimmer {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

/* Responsive CTA */
@media (max-width: 600px) {
  .bl-cta-section {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .bl-cta-btn { width: 100%; justify-content: center; }
  .bl-cta-icon-wrapper { width: 56px; height: 56px; font-size: 28px; }
}

/* ========================
   Homepage — Catégories populaires grid
   ======================== */
.bl-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 490px) {
  .bl-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) {
  .bl-categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bl-category-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--glass-border);
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bl-category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.bl-category-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.bl-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bl-category-info {
  padding: 10px 12px;
}

.bl-category-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
}

.bl-category-count {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Cinema mode removed */

.bl-cinema-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bl-cinema-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .bl-cinema-toggle {
    padding: 6px 10px;
  }

  /* More compact buttons on mobile */
  .entry-content .controls .button {
    padding: 6px 10px;
  }
}
