/* =========================================================================
   CUSTOM-THEMES — section "Votre univers, imaginé pour vous" (19,95 €/mois)
   ========================================================================= */

.section.custom-themes {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0B14 0%, #14101F 50%, #0B0B14 100%);
  color: #F8FAFC;
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(80px, 10vw, 130px);
  isolation: isolate;
}

/* Décor de fond : étoiles + halos colorés */
.ctheme__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ctheme__star {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff;
  animation: cthemeTwinkle 3s ease-in-out infinite;
}
.ctheme__star--1 { top: 12%; left: 8%;  animation-delay: 0s;   }
.ctheme__star--2 { top: 22%; left: 78%; animation-delay: .8s;  width: 3px; height: 3px; }
.ctheme__star--3 { top: 60%; left: 4%;  animation-delay: 1.6s; width: 2px; height: 2px; }
.ctheme__star--4 { top: 75%; left: 92%; animation-delay: 2.2s; }
.ctheme__star--5 { top: 88%; left: 35%; animation-delay: .4s;  width: 3px; height: 3px; }
.ctheme__star--6 { top: 35%; left: 50%; animation-delay: 1.2s; width: 2px; height: 2px; }
@keyframes cthemeTwinkle {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.2); }
}
.ctheme__halo {
  position: absolute;
  width: clamp(360px, 40vw, 600px);
  height: clamp(360px, 40vw, 600px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.ctheme__halo--l {
  top: 10%; left: -10%;
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
}
.ctheme__halo--r {
  bottom: 5%; right: -10%;
  background: radial-gradient(circle, #F97316 0%, transparent 70%);
}

.section.custom-themes .container { position: relative; z-index: 1; }
.section.custom-themes .section__header { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.section.custom-themes .section__title { color: #FFFFFF; }
.section.custom-themes .section__title em {
  background: linear-gradient(90deg, #818CF8 0%, #A78BFA 50%, #F472B6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.section.custom-themes .section__sub {
  color: rgba(248, 250, 252, .72);
  max-width: 680px;
  margin: 0 auto;
}
.section.custom-themes .section__sub strong { color: #FFFFFF; }
.ctheme__label {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(90deg, rgba(99,102,241,.2), rgba(167,139,250,.2));
  border: 1px solid rgba(167, 139, 250, .35);
  border-radius: 100px;
  color: #C4B5FD;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: 18px;
}

/* GRILLE des univers — plus dense */
.ctheme__grid {
  list-style: none;
  padding: 0;
  margin: 0 auto clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 1180px;
}
.ctheme__grid li {
  list-style: none;
  /* Animation staggerée à l'apparition (déclenchée par .reveal sur le parent) */
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transition: opacity .55s cubic-bezier(.2, .8, .3, 1), transform .55s cubic-bezier(.2, .8, .3, 1);
}
.reveal.ctheme__grid li,
.ctheme__grid.is-revealed li,
.ctheme__grid li { /* fallback : visibles par défaut si pas de reveal */
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ctheme__grid li:nth-child(1)  { transition-delay: .03s; }
.ctheme__grid li:nth-child(2)  { transition-delay: .08s; }
.ctheme__grid li:nth-child(3)  { transition-delay: .13s; }
.ctheme__grid li:nth-child(4)  { transition-delay: .18s; }
.ctheme__grid li:nth-child(5)  { transition-delay: .23s; }
.ctheme__grid li:nth-child(6)  { transition-delay: .28s; }
.ctheme__grid li:nth-child(7)  { transition-delay: .33s; }
.ctheme__grid li:nth-child(8)  { transition-delay: .38s; }
.ctheme__grid li:nth-child(9)  { transition-delay: .43s; }
.ctheme__grid li:nth-child(10) { transition-delay: .48s; }
.ctheme__grid li:nth-child(11) { transition-delay: .53s; }

.ctheme-card {
  position: relative;
  width: 100%;
  padding: 16px 12px 12px;
  background: linear-gradient(135deg, var(--c1, #1A1A2E) 0%, var(--c2, #2A2A40) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform .4s cubic-bezier(.2, .8, .3, 1),
              border-color .35s ease,
              box-shadow .35s ease;
}
.ctheme-card:focus-visible {
  outline: 2px solid #A78BFA;
  outline-offset: 4px;
}
/* Petit hint "Discuter →" qui apparaît au hover */
.ctheme-card__hint {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(180deg, transparent, var(--c3, #6366F1) 70%);
  color: #FFFFFF;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.ctheme-card:hover .ctheme-card__hint,
.ctheme-card:focus-visible .ctheme-card__hint {
  opacity: 1;
  transform: translateY(0);
}
/* Feedback au clic */
.ctheme-card--clicked {
  transform: scale(.96) !important;
  transition: transform .15s ease !important;
}
.ctheme-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--c3, #818CF8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.ctheme-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c3, #818CF8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s ease;
}
.ctheme-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--c3, rgba(255, 255, 255, .25));
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4), 0 0 30px var(--c3, rgba(99, 102, 241, .35));
}
.ctheme-card:hover::before { opacity: .35; }
.ctheme-card:hover::after  { transform: scaleX(1); }
/* Icône SVG illustrée — remplace l'emoji */
.ctheme-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  color: var(--c3, #fff);
  filter: drop-shadow(0 0 8px var(--c3, #fff)) drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
  transition: transform .5s cubic-bezier(.2, 1.4, .3, 1), filter .35s ease;
}
.ctheme-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}
.ctheme-card:hover .ctheme-card__icon {
  transform: scale(1.18) rotate(-6deg);
  filter: drop-shadow(0 0 16px var(--c3)) drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}
/* Compat : si l'emoji est encore là, taille réduite */
.ctheme-card__emoji {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
  transition: transform .4s ease;
}
.ctheme-card:hover .ctheme-card__emoji { transform: scale(1.18) rotate(-6deg); }

.ctheme-card__name {
  font-family: var(--font-h, "Syne", sans-serif);
  font-size: .82rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.ctheme-card__tag {
  font-size: .68rem;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .01em;
  font-style: italic;
  line-height: 1.3;
}
/* Carte "et bien d'autres" — variante outline */
.ctheme-card--more {
  background: rgba(255, 255, 255, .02);
  border: 1.5px dashed rgba(167, 139, 250, .4);
}
.ctheme-card--more::before { display: none; }
.ctheme-card--more::after { display: none; }
.ctheme-card--more:hover {
  border-color: #A78BFA;
  background: rgba(167, 139, 250, .08);
  box-shadow: 0 14px 30px rgba(167, 139, 250, .2);
}
.ctheme-card--more .ctheme-card__emoji {
  color: #A78BFA;
  text-shadow: 0 0 14px rgba(167, 139, 250, .5);
}

/* CTA + Pricing card */
.ctheme__cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(99, 102, 241, .08) 0%, rgba(167, 139, 250, .08) 100%);
  border: 1px solid rgba(167, 139, 250, .25);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.ctheme__cta::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #A78BFA 30%, #F472B6 50%, #A78BFA 70%, transparent);
}
@media (max-width: 880px) {
  .ctheme__cta { grid-template-columns: 1fr; text-align: center; }
}

.ctheme__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}
.ctheme__price-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, .85);
}
.ctheme__price-num {
  font-family: var(--font-h, "Syne", sans-serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}
.ctheme__plus { font-size: .55em; vertical-align: .35em; opacity: .8; }
.ctheme__price-eur { font-size: .55em; vertical-align: .25em; }
.ctheme__price-tax {
  font-size: .42em;
  vertical-align: .55em;
  letter-spacing: .08em;
  font-weight: 600;
  opacity: .65;
  margin-left: 4px;
}
.ctheme__price-period {
  font-size: .82rem;
  color: rgba(248, 250, 252, .6);
  font-style: italic;
}

.ctheme__incl h3 {
  font-family: var(--font-h, "Syne", sans-serif);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 12px;
}
.ctheme__incl ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.ctheme__incl li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: rgba(248, 250, 252, .85);
  line-height: 1.5;
}
.ctheme__incl svg {
  color: #A78BFA;
  flex-shrink: 0;
}

.ctheme__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
@media (max-width: 880px) {
  .ctheme__action { align-items: center; }
}
.ctheme__action .btn--primary {
  background: linear-gradient(135deg, #6366F1 0%, #A78BFA 100%);
  border: 0;
  font-weight: 700;
  padding: 16px 28px;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(99, 102, 241, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ctheme__action .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, .6);
}
.ctheme__hint {
  font-size: .78rem;
  color: rgba(248, 250, 252, .55);
  margin: 0;
  font-style: italic;
}

/* Light theme adapté */
[data-theme="light"] .section.custom-themes {
  background: linear-gradient(180deg, #1A1A2E 0%, #2A1A4A 50%, #1A1A2E 100%);
}

/* Mobile : grille adaptée */
@media (max-width: 600px) {
  .ctheme__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ctheme-card { padding: 18px 12px 14px; }
  .ctheme-card__emoji { font-size: 2rem; }
  .ctheme-card__name { font-size: .82rem; }
  .ctheme-card__tag { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ctheme__star, .ctheme-card { animation: none; transition: none; }
  .ctheme-card:hover { transform: none; }
}

/* ─── Lien "Sur mesure" dans la nav (mise en avant) ─── */
.nav__link--custom {
  position: relative;
  color: #DDD6FE;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(99,102,241,.12), rgba(167,139,250,.12));
  border: 1px solid rgba(167, 139, 250, .35);
}
.nav__link--custom::before {
  content: '✦';
  display: inline-block;
  margin-right: 5px;
  font-size: .75em;
  color: #A78BFA;
  vertical-align: 1px;
  animation: cthemeNavStar 2.4s ease-in-out infinite;
}
@keyframes cthemeNavStar {
  0%, 100% { opacity: .65; transform: rotate(-8deg) scale(.9); }
  50%      { opacity: 1;   transform: rotate(8deg)  scale(1.15); }
}
.nav__link--custom:hover {
  background: linear-gradient(90deg, rgba(99,102,241,.22), rgba(167,139,250,.22));
  border-color: rgba(167, 139, 250, .65);
  color: #FFFFFF;
}
[data-theme="light"] .nav__link--custom {
  color: #5B21B6;
  background: rgba(167, 139, 250, .08);
  border-color: rgba(167, 139, 250, .35);
}
[data-theme="light"] .nav__link--custom:hover {
  background: rgba(167, 139, 250, .14);
  color: #4C1D95;
}

/* Sur mobile : retirer la pastille pour que ça s'aligne avec les autres liens */
@media (max-width: 768px) {
  .nav__link--custom,
  .nav__link--custom:hover,
  [data-theme="light"] .nav__link--custom,
  [data-theme="light"] .nav__link--custom:hover {
    background: transparent !important;
    border: none !important;
    color: #DDD6FE !important;
    padding: 14px 20px !important;
  }
  [data-theme="light"] .nav__link--custom,
  [data-theme="light"] .nav__link--custom:hover {
    color: #5B21B6 !important;
  }
  .nav__link--custom::before { display: none !important; }
}

/* ═════════════════════════════════════════════════════════════════════
   APERÇU LIVE — quand une carte est cliquée, la section se transforme
   ═════════════════════════════════════════════════════════════════════ */

/* Barre de preview au-dessus de la grille */
.ctheme-preview-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--active-c3, rgba(167, 139, 250, .35));
  border-radius: 14px;
  box-shadow: 0 0 30px var(--active-c3, rgba(167, 139, 250, .25));
  animation: previewBarIn .35s cubic-bezier(.2, .8, .3, 1);
  flex-wrap: wrap;
}
@keyframes previewBarIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ctheme-preview-bar__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--active-c3, #A78BFA);
  box-shadow: 0 0 10px var(--active-c3, #A78BFA);
  animation: previewDot 1.6s ease-in-out infinite;
}
@keyframes previewDot {
  0%, 100% { opacity: .6; transform: scale(.85); }
  50%      { opacity: 1;  transform: scale(1.2);  }
}
.ctheme-preview-bar__text {
  flex: 1;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  min-width: 220px;
}
.ctheme-preview-bar__text strong { color: #FFFFFF; font-weight: 700; }
.ctheme-preview-bar__text em {
  font-style: normal;
  font-weight: 700;
  color: var(--active-c3, #A78BFA);
  text-shadow: 0 0 8px var(--active-c3, #A78BFA);
}
.ctheme-preview-bar__hint {
  display: inline;
  font-style: italic;
  color: rgba(255,255,255,.5);
  font-size: .85em;
}
.ctheme-preview-bar__cta {
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--active-c3, #A78BFA);
  color: #0B0B14;
  border: 0;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ctheme-preview-bar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--active-c3, #A78BFA);
}
.ctheme-preview-bar__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #FFFFFF;
  border: 0;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.ctheme-preview-bar__close:hover { background: rgba(255,255,255,.18); }

/* SECTION TRANSFORMÉE selon le thème actif */
.section.custom-themes[data-active-theme] {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--active-c2, #14101F) 70%, #0B0B14) 0%,
    color-mix(in srgb, var(--active-c1, #14101F) 80%, #0B0B14) 50%,
    color-mix(in srgb, var(--active-c2, #14101F) 70%, #0B0B14) 100%);
  transition: background 1s ease;
}
/* Halos colorés repris de la couleur active */
.section.custom-themes[data-active-theme] .ctheme__halo--l {
  background: radial-gradient(circle, var(--active-c1) 0%, transparent 70%);
  opacity: .5;
  animation: haloPulse 4s ease-in-out infinite;
}
.section.custom-themes[data-active-theme] .ctheme__halo--r {
  background: radial-gradient(circle, var(--active-c3) 0%, transparent 70%);
  opacity: .5;
  animation: haloPulse 4s ease-in-out infinite reverse;
}
@keyframes haloPulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.1); }
}

/* Cards : la sélectionnée brille, les autres se faner */
.section.custom-themes[data-active-theme] .ctheme-card:not(.is-active) {
  opacity: .35;
  filter: saturate(.4);
  transform: scale(.96);
}
.section.custom-themes[data-active-theme] .ctheme-card.is-active {
  border-color: var(--active-c3);
  box-shadow:
    0 0 0 2px var(--active-c3),
    0 16px 40px var(--active-c3),
    0 0 60px var(--active-c3);
  transform: scale(1.05);
}
.ctheme-card.is-active::before { opacity: .55 !important; }
.ctheme-card.is-active::after  { transform: scaleX(1) !important; }

/* ═════════════ PARTICULES SPÉCIFIQUES PAR THÈME ═════════════ */

/* HORROR — Pluie de gouttes de sang */
.section.custom-themes[data-active-theme="horror"]::before,
.section.custom-themes[data-active-theme="horror"]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.section.custom-themes[data-active-theme="horror"]::before {
  background:
    radial-gradient(2px 8px at 8% 20%,  #D63030, transparent 50%),
    radial-gradient(2px 12px at 22% 8%, #D63030, transparent 50%),
    radial-gradient(2px 6px at 35% 35%, #D63030, transparent 50%),
    radial-gradient(3px 14px at 50% 12%, #D63030, transparent 50%),
    radial-gradient(2px 9px at 68% 28%, #D63030, transparent 50%),
    radial-gradient(2px 11px at 82% 18%, #D63030, transparent 50%),
    radial-gradient(2px 7px at 92% 40%, #D63030, transparent 50%);
  background-size: 100% 200vh;
  animation: bloodFall 5s linear infinite;
  opacity: .6;
}
@keyframes bloodFall {
  0%   { background-position: 0 -200vh; }
  100% { background-position: 0 0; }
}
/* Voile rouge sombre + vignette sang */
.section.custom-themes[data-active-theme="horror"]::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(58,0,0,.45) 100%),
    radial-gradient(circle at 20% 80%, rgba(214,48,48,.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(214,48,48,.15), transparent 40%);
}
/* Brouillard rampant */
.section.custom-themes[data-active-theme="horror"] .ctheme__bg::before {
  content: '';
  position: absolute;
  inset: auto 0 -10% 0;
  height: 50%;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(214,48,48,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(120,0,0,.2) 0%, transparent 60%);
  filter: blur(40px);
  animation: fogDrift 8s ease-in-out infinite;
}
@keyframes fogDrift {
  0%, 100% { transform: translateX(-5%); }
  50%      { transform: translateX(5%); }
}
/* Section scintille très légèrement (terreur) */
.section.custom-themes[data-active-theme="horror"] {
  animation: horrorShake 8s ease-in-out infinite;
}
@keyframes horrorShake {
  0%, 90%, 100% { transform: translate(0, 0); }
  92%           { transform: translate(-1px, 1px); }
  94%           { transform: translate(1px, -1px); }
  96%           { transform: translate(-1px, -1px); }
  98%           { transform: translate(1px, 1px); }
}

/* NOËL — Flocons qui tombent */
.section.custom-themes[data-active-theme="noel"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(3px 3px at 10% 20%, #fff, transparent),
    radial-gradient(2px 2px at 25% 15%, #fff, transparent),
    radial-gradient(3px 3px at 40% 35%, #fff, transparent),
    radial-gradient(2px 2px at 55% 25%, #fff, transparent),
    radial-gradient(4px 4px at 70% 45%, #fff, transparent),
    radial-gradient(2px 2px at 85% 30%, #fff, transparent),
    radial-gradient(3px 3px at 95% 55%, #fff, transparent),
    radial-gradient(2px 2px at 15% 60%, #fff, transparent);
  background-size: 100% 200vh;
  animation: snowFall 12s linear infinite;
  opacity: .7;
  z-index: 1;
}
@keyframes snowFall {
  from { background-position: 0 0; }
  to   { background-position: 0 200vh; }
}

/* CYBERPUNK — Scanlines + glitch */
.section.custom-themes[data-active-theme="cyber"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,245,255,.06) 0, rgba(0,245,255,.06) 1px, transparent 1px, transparent 4px);
  animation: scanlineMove 6s linear infinite;
  z-index: 1;
}
@keyframes scanlineMove { from { background-position: 0 0; } to { background-position: 0 100px; } }

/* SPACE — Étoiles qui défilent */
.section.custom-themes[data-active-theme="space"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 5% 10%, #fff, transparent),
    radial-gradient(1px 1px at 15% 30%, #22D3EE, transparent),
    radial-gradient(2px 2px at 25% 50%, #fff, transparent),
    radial-gradient(1px 1px at 40% 20%, #A78BFA, transparent),
    radial-gradient(1px 1px at 55% 70%, #fff, transparent),
    radial-gradient(2px 2px at 70% 35%, #22D3EE, transparent),
    radial-gradient(1px 1px at 85% 60%, #fff, transparent),
    radial-gradient(1px 1px at 95% 80%, #A78BFA, transparent);
  background-size: 600px 600px;
  animation: starsScroll 80s linear infinite;
  z-index: 1;
}
@keyframes starsScroll { from { background-position: 0 0; } to { background-position: 600px 600px; } }

/* OCEAN — Vagues bleues */
.section.custom-themes[data-active-theme="ocean"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,212,255,.18), transparent 60%);
  animation: waveBob 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes waveBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* JUNGLE — Vert dense humide */
.section.custom-themes[data-active-theme="jungle"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(31,139,76,.2), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255,143,163,.15), transparent 40%);
  animation: junglePulse 6s ease-in-out infinite;
  z-index: 1;
}
@keyframes junglePulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

/* DESERT — Soleil chaud */
.section.custom-themes[data-active-theme="desert"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(217,118,62,.3), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(59,31,26,.4), transparent 60%);
  z-index: 1;
}

/* HALLOWEEN — Brume orange */
.section.custom-themes[data-active-theme="halloween"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,106,0,.25), transparent 50%);
  animation: fogDrift 10s ease-in-out infinite;
  z-index: 1;
}

/* MEDIEVAL — Lueur de torche */
.section.custom-themes[data-active-theme="medieval"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 50%, rgba(201,169,97,.18), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(139,0,0,.15), transparent 40%);
  animation: junglePulse 5s ease-in-out infinite;
  z-index: 1;
}

/* APOC — Cendres qui tombent */
.section.custom-themes[data-active-theme="apoc"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 20% 10%, #D4A017, transparent),
    radial-gradient(1px 1px at 40% 30%, #A8541B, transparent),
    radial-gradient(2px 2px at 60% 20%, #D4A017, transparent),
    radial-gradient(1px 1px at 80% 40%, #A8541B, transparent);
  background-size: 100% 200vh;
  animation: snowFall 14s linear infinite;
  opacity: .6;
  z-index: 1;
}

/* MORE — Particules violettes magiques */
.section.custom-themes[data-active-theme="more"]::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 15% 25%, #A78BFA, transparent),
    radial-gradient(2px 2px at 50% 50%, #F472B6, transparent),
    radial-gradient(2px 2px at 85% 75%, #818CF8, transparent);
  background-size: 100% 200vh;
  animation: snowFall 10s linear infinite;
  opacity: .6;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .section.custom-themes[data-active-theme]::before,
  .section.custom-themes[data-active-theme]::after { animation: none !important; }
  .section.custom-themes[data-active-theme="horror"] { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   USA MODE — palette drapeau (navy + rouge + or) sur fond sombre
   La section "Votre univers, imaginé pour vous" a un fond sombre
   permanent, mais en USA le globalcolor passe en navy → tout
   devenait illisible. On force ici les couleurs claires + accents
   rouge/or USA pour une lisibilité maximale.
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="usa"] .section.custom-themes .section__title { color: #FFFFFF !important; }
html[data-theme="usa"] .section.custom-themes .section__title em {
  background: linear-gradient(90deg, #FFD700 0%, #FFFFFF 50%, #C8102E 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
html[data-theme="usa"] .section.custom-themes .section__sub { color: rgba(255, 255, 255, .85) !important; }
html[data-theme="usa"] .section.custom-themes .section__sub strong { color: #FFFFFF !important; }
html[data-theme="usa"] .ctheme__label {
  background: linear-gradient(90deg, rgba(200,16,46,.25), rgba(255,215,0,.25)) !important;
  border-color: rgba(255, 215, 0, .55) !important;
  color: #FFD700 !important;
}

/* Carte de prix "+ Création + Intégration / 14,95 €" */
html[data-theme="usa"] .ctheme__price-label { color: #FFD700 !important; }
html[data-theme="usa"] .ctheme__price-num {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
html[data-theme="usa"] .ctheme__price-tax,
html[data-theme="usa"] .ctheme__price-period {
  color: rgba(255, 255, 255, .8) !important;
}

/* Bloc "Ce qui est inclus" */
html[data-theme="usa"] .ctheme__incl h3 { color: #FFD700 !important; }
html[data-theme="usa"] .ctheme__incl li { color: rgba(255, 255, 255, .92) !important; }
html[data-theme="usa"] .ctheme__incl svg { color: #C8102E !important; }

/* Bouton CTA — gradient drapeau */
html[data-theme="usa"] .ctheme__action .btn--primary {
  background: linear-gradient(135deg, #C8102E 0%, #0A1F66 100%) !important;
  border: 2px solid #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 1px #C8102E, 0 14px 30px rgba(200, 16, 46, .35) !important;
}
html[data-theme="usa"] .ctheme__action .btn--primary:hover {
  box-shadow: 0 0 0 1px #C8102E, 0 20px 40px rgba(200, 16, 46, .55) !important;
  transform: translateY(-2px);
}
html[data-theme="usa"] .ctheme__hint { color: rgba(255, 215, 0, .75) !important; }

/* Overlay décor : ancrer les halos sur du rouge/bleu USA */
html[data-theme="usa"] .ctheme__halo--l {
  background: radial-gradient(circle, #0A1F66 0%, transparent 70%) !important;
}
html[data-theme="usa"] .ctheme__halo--r {
  background: radial-gradient(circle, #C8102E 0%, transparent 70%) !important;
}
