/*
 * XoXo × LapineRose — la fenêtre publicitaire (1.0.0, 24/11/2026).
 * Velours nuit, néon rose, anneau tournant, paillettes, révélation en serrure, bouton qui bat. Tout est rangé sous #xlrf : rien ne déborde
 * sur le thème. Sans défilement : le contenu tient dans l'écran, du téléphone (375 × 667) au grand écran ; les parties décoratives se
 * retirent quand la hauteur manque. « Réduire les animations » du système est respecté.
 */
@property --xlrf-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

#xlrf { --xlrf-rose: #ff2d95; --xlrf-rose-2: #ff7ab8; --xlrf-violet: #8b2cff; --xlrf-or: #ffd36e; --xlrf-nuit: #14031c; --xlrf-velours: #2b0838; --xlrf-texte: #fff4fa; --xlrf-doux: #f3c9e0;
  position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 12px; box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--xlrf-texte); line-height: 1.35; }
#xlrf[hidden] { display: none; }
#xlrf *, #xlrf *::before, #xlrf *::after { box-sizing: border-box; }
#xlrf p, #xlrf h2, #xlrf ul, #xlrf li { margin: 0; padding: 0; }
#xlrf ul { list-style: none; }

/* Le voile : nuit floutée, deux halos qui respirent. */
.xlrf-voile { position: absolute; inset: 0; background: radial-gradient(60% 55% at 30% 35%, rgba(255, 45, 149, .35), transparent 70%), radial-gradient(50% 50% at 75% 70%, rgba(139, 44, 255, .35), transparent 70%), rgba(10, 0, 18, .74);
  -webkit-backdrop-filter: blur(7px) saturate(1.2); backdrop-filter: blur(7px) saturate(1.2); opacity: 0; transition: opacity .5s ease; animation: xlrf-respire 7s ease-in-out infinite alternate; }
#xlrf.is-ouvert .xlrf-voile { opacity: 1; }
@keyframes xlrf-respire { to { filter: hue-rotate(-18deg) brightness(1.08); } }

/* La boîte : velours, anneau néon tournant, entrée en 3D avec rebond. */
.xlrf-boite { position: relative; display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); width: min(880px, 100%); min-height: min(500px, calc(100vh - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  border-radius: 28px; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 45, 149, .22), transparent 55%), linear-gradient(150deg, var(--xlrf-velours), var(--xlrf-nuit) 70%);
  box-shadow: 0 30px 90px rgba(255, 45, 149, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset; isolation: isolate; opacity: 0; transform: perspective(1200px) translateY(40px) scale(.72) rotateX(22deg); filter: blur(8px); }
#xlrf.is-ouvert .xlrf-boite { animation: xlrf-entree .95s cubic-bezier(.2, 1.4, .35, 1) forwards; }
#xlrf.is-ferme .xlrf-boite { animation: xlrf-sortie .45s cubic-bezier(.6, 0, .8, .4) forwards; }
@keyframes xlrf-entree { 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: none; } }
@keyframes xlrf-sortie { from { opacity: 1; transform: none; } to { opacity: 0; transform: perspective(1200px) translateY(30px) scale(.86) rotateX(-10deg); filter: blur(6px); } }

.xlrf-anneau { position: absolute; inset: -2px; border-radius: 30px; padding: 2px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--xlrf-angle), var(--xlrf-rose), var(--xlrf-violet), var(--xlrf-or), var(--xlrf-rose-2), var(--xlrf-rose));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: xlrf-tourne 5s linear infinite; filter: drop-shadow(0 0 10px rgba(255, 45, 149, .7)); }
.xlrf-anneau::after { content: ""; position: absolute; inset: -14px; border-radius: 40px; background: inherit; filter: blur(22px); opacity: .45; z-index: -1; }
@keyframes xlrf-tourne { to { --xlrf-angle: 360deg; } }

/* Les paillettes : cœurs et étoiles qui montent, posées par le script. */
.xlrf-paillettes { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; pointer-events: none; z-index: 3; }
.xlrf-paillette { position: absolute; bottom: -24px; color: var(--xlrf-rose-2); text-shadow: 0 0 8px currentColor; opacity: 0; animation: xlrf-monte var(--d, 6s) ease-in var(--r, 0s) infinite; }
.xlrf-paillette:nth-child(3n) { color: var(--xlrf-or); }
.xlrf-paillette:nth-child(4n) { color: #fff; }
@keyframes xlrf-monte { 10% { opacity: .95; } 80% { opacity: .6; } to { transform: translate(var(--x, 20px), -620px) rotate(var(--t, 160deg)) scale(.4); opacity: 0; } }

/* La croix : en haut à droite, toujours visible. */
.xlrf-croix { position: absolute; top: 12px; right: 12px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(20, 3, 28, .55);
  color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .25s ease, background .25s ease; }
.xlrf-croix:hover, .xlrf-croix:focus-visible { transform: rotate(90deg) scale(1.08); background: var(--xlrf-rose); outline: none; }

/* L'image : révélée par une serrure qui s'ouvre, zoom lent, reflet qui passe, bulle « Psst… ». */
.xlrf-image { position: relative; overflow: hidden; border-radius: 28px 0 0 28px; min-height: 100%; background: #f6a6cf; }
.xlrf-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: scale(1.06); clip-path: circle(0% at 50% 38%); }
#xlrf.is-ouvert .xlrf-image img { animation: xlrf-serrure 1.4s cubic-bezier(.7, 0, .2, 1) .35s forwards, xlrf-zoom 16s ease-in-out 1.6s infinite alternate; }
@keyframes xlrf-serrure { 0% { clip-path: circle(0% at 50% 38%); } 45% { clip-path: circle(14% at 50% 38%); } to { clip-path: circle(150% at 50% 38%); } }
@keyframes xlrf-zoom { from { transform: scale(1.06); } to { transform: scale(1.18) translateY(-2%); } }
.xlrf-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 3, 28, 0) 55%, rgba(20, 3, 28, .85)), linear-gradient(90deg, rgba(20, 3, 28, 0) 70%, rgba(43, 8, 56, .9)); pointer-events: none; }
.xlrf-image__lueur { position: absolute; inset: -20%; z-index: 1; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%); transform: translateX(-120%); animation: xlrf-reflet 4.5s ease-in-out 2.2s infinite; pointer-events: none; }
@keyframes xlrf-reflet { 0%, 55% { transform: translateX(-120%); } to { transform: translateX(120%); } }
.xlrf-age { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: rgba(20, 3, 28, .7); border: 1px solid rgba(255, 255, 255, .35); }
.xlrf-bulle { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 2; font-size: 14px; font-weight: 700; text-wrap: balance; padding: 10px 12px; border-radius: 16px 16px 16px 4px;
  background: rgba(255, 45, 149, .88); box-shadow: 0 8px 24px rgba(255, 45, 149, .5); opacity: 0; transform: translateY(12px) scale(.9); }
#xlrf.is-ouvert .xlrf-bulle { animation: xlrf-pop .6s cubic-bezier(.2, 1.6, .4, 1) 1.9s forwards, xlrf-flotte 3.2s ease-in-out 2.6s infinite alternate; }
@keyframes xlrf-pop { to { opacity: 1; transform: none; } }
@keyframes xlrf-flotte { from { transform: translateY(0); } to { transform: translateY(-5px); } }

/* Le contenu. */
.xlrf-corps { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 34px 22px 30px; min-width: 0; }
.xlrf-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--xlrf-or);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 211, 110, .45); background: rgba(255, 211, 110, .08); }
.xlrf-badge__point { width: 8px; height: 8px; border-radius: 50%; background: var(--xlrf-or); box-shadow: 0 0 0 0 rgba(255, 211, 110, .8); animation: xlrf-ping 1.8s ease-out infinite; }
@keyframes xlrf-ping { to { box-shadow: 0 0 0 10px rgba(255, 211, 110, 0); } }
.xlrf-surtitre { font-size: 15px; color: var(--xlrf-doux); letter-spacing: .02em; margin-top: 2px !important; }
.xlrf-titre { position: relative; font-size: clamp(38px, 5.4vw, 58px); line-height: 1 !important; font-weight: 900; letter-spacing: -.02em; margin-top: -6px !important; padding-top: 4px !important;
  background: linear-gradient(100deg, #fff 0%, var(--xlrf-rose-2) 25%, var(--xlrf-rose) 45%, var(--xlrf-or) 60%, #fff 75%, var(--xlrf-rose-2) 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 45, 149, .55)); animation: xlrf-brille 5s linear infinite; }
@keyframes xlrf-brille { to { background-position: -220% 0; } }
.xlrf-oreilles { display: inline-block; width: 34px; height: 26px; margin-right: 8px; vertical-align: 6px; }
.xlrf-oreilles svg { width: 34px; height: 26px; }
.xlrf-oreilles svg { display: block; fill: none; stroke: var(--xlrf-rose-2); stroke-width: 3; stroke-linecap: round; transform-origin: 50% 100%; animation: xlrf-oreilles 2.4s ease-in-out infinite; }
@keyframes xlrf-oreilles { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-9deg); } 86% { transform: rotate(7deg); } 94% { transform: rotate(-3deg); } }
.xlrf-accroche { min-height: 1.4em; font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: #fff; text-wrap: balance; }
.xlrf-curseur { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -2px; background: var(--xlrf-rose); animation: xlrf-clignote .9s steps(1) infinite; }
@keyframes xlrf-clignote { 50% { opacity: 0; } }
.xlrf-texte { font-size: 15px; line-height: 1.5 !important; color: var(--xlrf-doux); max-width: 46ch; text-wrap: pretty; }

/* Les trois secrets : verrouillés, ils se retournent l'un après l'autre (et au survol). */
.xlrf-secrets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 2px !important; perspective: 900px; }
.xlrf-secret { min-width: 0; }
.xlrf-secret__in { position: relative; display: block; height: 74px; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.xlrf-secret.is-vu .xlrf-secret__in, .xlrf-secret:hover .xlrf-secret__in { transform: rotateY(180deg); }
.xlrf-secret__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 8px; border-radius: 16px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 1px solid rgba(255, 255, 255, .14); }
.xlrf-secret__face--cache { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 8px, rgba(255, 255, 255, .02) 8px 16px), rgba(255, 45, 149, .12); color: var(--xlrf-rose-2); font-size: 12px; }
.xlrf-secret__face--cache b { font-size: 12px; letter-spacing: .04em; }
.xlrf-secret__face--vu { transform: rotateY(180deg); background: linear-gradient(140deg, rgba(255, 45, 149, .35), rgba(139, 44, 255, .35)); box-shadow: 0 6px 22px rgba(255, 45, 149, .3); }
.xlrf-secret__face--vu b { font-size: 13px; color: #fff; text-wrap: balance; line-height: 1.2; }
.xlrf-secret__face--vu small { font-size: 11.5px; color: var(--xlrf-doux); text-wrap: balance; line-height: 1.25; }

/* Le bouton : dégradé qui coule, halo qui bat, reflet, flèche qui pousse. */
.xlrf-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 30px; margin-top: 4px; border-radius: 999px; overflow: hidden;
  font-size: 18px; font-weight: 900; letter-spacing: .01em; color: #fff !important; text-decoration: none !important; background: linear-gradient(90deg, var(--xlrf-rose), var(--xlrf-violet), var(--xlrf-rose), var(--xlrf-or), var(--xlrf-rose));
  background-size: 300% 100%; box-shadow: 0 10px 30px rgba(255, 45, 149, .55); animation: xlrf-coule 6s linear infinite, xlrf-bat 2.6s ease-in-out 1.5s infinite; transition: transform .2s ease; }
.xlrf-cta::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); animation: xlrf-eclat 3s ease-in-out 2s infinite; }
.xlrf-cta:hover, .xlrf-cta:focus-visible { transform: translateY(-2px) scale(1.03); outline: none; }
.xlrf-cta__t { position: relative; white-space: nowrap; }
.xlrf-cta__fleche { position: relative; font-size: 22px; animation: xlrf-pousse 1.3s ease-in-out infinite; }
@keyframes xlrf-coule { to { background-position: -300% 0; } }
@keyframes xlrf-bat { 0%, 100% { box-shadow: 0 10px 30px rgba(255, 45, 149, .5), 0 0 0 0 rgba(255, 45, 149, .55); } 15% { transform: scale(1.04); } 30% { transform: scale(1); } 45% { transform: scale(1.03); box-shadow: 0 10px 34px rgba(255, 45, 149, .7), 0 0 0 14px rgba(255, 45, 149, 0); } 60% { transform: scale(1); } }
@keyframes xlrf-eclat { 0%, 50% { left: -60%; } to { left: 130%; } }
@keyframes xlrf-pousse { 50% { transform: translateX(5px); } }
.xlrf-sous-cta { font-size: 12.5px; color: var(--xlrf-doux); opacity: .85; margin-top: -4px !important; }

/* « Ne plus afficher » : en bas à droite. */
.xlrf-ne-plus { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--xlrf-doux); cursor: pointer; user-select: none; }
.xlrf-ne-plus input { margin: 0; width: 17px; height: 17px; accent-color: var(--xlrf-rose); cursor: pointer; }

/* Entrée en cascade du contenu. */
#xlrf .xlrf-corps > * { opacity: 0; transform: translateY(14px); }
#xlrf.is-ouvert .xlrf-corps > * { animation: xlrf-arrive .6s cubic-bezier(.2, 1, .3, 1) forwards; }
#xlrf.is-ouvert .xlrf-corps > :nth-child(1) { animation-delay: .45s; }
#xlrf.is-ouvert .xlrf-corps > :nth-child(2) { animation-delay: .55s; }
#xlrf.is-ouvert .xlrf-corps > :nth-child(3) { animation-delay: .65s; }
#xlrf.is-ouvert .xlrf-corps > :nth-child(4) { animation-delay: .8s; }
#xlrf.is-ouvert .xlrf-corps > :nth-child(5) { animation-delay: .95s; }
#xlrf.is-ouvert .xlrf-corps > :nth-child(6) { animation-delay: 1.05s; }
#xlrf.is-ouvert .xlrf-corps > :nth-child(7) { animation-delay: 1.2s; }
#xlrf.is-ouvert .xlrf-corps > :nth-child(n+8) { animation-delay: 1.3s; }
@keyframes xlrf-arrive { to { opacity: 1; transform: none; } }
#xlrf.is-ouvert .xlrf-corps > .xlrf-cta { animation: xlrf-arrive .6s cubic-bezier(.2, 1, .3, 1) 1.2s forwards, xlrf-coule 6s linear infinite, xlrf-bat 2.6s ease-in-out 2.4s infinite; }

/* Téléphone et tablette en hauteur : l'image en bandeau, le contenu dessous, sans défilement. */
@media (max-width: 720px) {
  #xlrf { padding: 10px; }
  .xlrf-boite { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border-radius: 24px; }
  .xlrf-anneau { border-radius: 26px; }
  .xlrf-paillettes { border-radius: 24px; }
  .xlrf-image { border-radius: 24px 24px 0 0; min-height: 0; height: clamp(150px, 30vh, 240px); }
  /* Le bandeau est large et bas : on y garde le regard et la bouche. */
  .xlrf-image img { object-position: 50% 52%; }
  .xlrf-image::after { background: linear-gradient(180deg, rgba(20, 3, 28, 0) 45%, rgba(43, 8, 56, .95)); }
  .xlrf-bulle { font-size: 13px; padding: 8px 10px; right: 64px; bottom: 12px; }
  .xlrf-corps { padding: 6px 20px 16px; gap: 9px; align-items: stretch; }
  .xlrf-badge { align-self: flex-start; font-size: 11px; padding: 5px 10px; }
  .xlrf-surtitre { font-size: 13px; }
  .xlrf-titre { font-size: 38px; }
  .xlrf-oreilles, .xlrf-oreilles svg { width: 28px; height: 22px; }
  .xlrf-boite { min-height: 0; }
  .xlrf-accroche { font-size: 16.5px; }
  .xlrf-texte { font-size: 14px; }
  .xlrf-secret__in { height: 62px; }
  .xlrf-secret__face { padding: 6px 4px; border-radius: 12px; }
  .xlrf-secret__face--vu b { font-size: 11.5px; }
  .xlrf-secret__face--vu small { font-size: 10.5px; }
  .xlrf-cta { min-height: 54px; font-size: 17px; padding: 0 20px; }
  .xlrf-sous-cta { text-align: center; }
}
/* Écrans bas (téléphone couché, petit téléphone) : on retire ce qui décore avant de rétrécir. */
@media (max-width: 720px) and (max-height: 700px) {
  .xlrf-image { height: clamp(120px, 24vh, 170px); }
  .xlrf-texte { display: none; }
}
@media (max-width: 720px) and (max-height: 600px) {
  .xlrf-image { height: 110px; }
  .xlrf-bulle, .xlrf-surtitre { display: none; }
  .xlrf-secret__in { height: 52px; }
}
/* Téléphone couché : l'image revient sur le côté, le contenu se resserre. */
@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape) {
  .xlrf-boite { grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); grid-template-rows: none; min-height: 0; }
  .xlrf-image { height: auto; min-height: 100%; border-radius: 24px 0 0 24px; }
  .xlrf-image img { object-position: 50% 30%; }
  .xlrf-bulle, .xlrf-surtitre, .xlrf-texte, .xlrf-sous-cta { display: none; }
  .xlrf-corps { padding: 14px 18px 12px; gap: 7px; }
  .xlrf-titre { font-size: 30px; }
  .xlrf-accroche { font-size: 15px; }
  .xlrf-secret__in { height: 46px; }
  .xlrf-cta { min-height: 46px; font-size: 16px; }
}
@media (min-width: 721px) and (max-height: 640px) {
  .xlrf-texte { display: none; }
  .xlrf-corps { padding-top: 22px; gap: 9px; }
  .xlrf-secret__in { height: 60px; }
}

/* « Réduire les animations » : la fenêtre s'ouvre sans mouvement ni paillettes. */
@media (prefers-reduced-motion: reduce) {
  #xlrf *, #xlrf *::before, #xlrf *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .xlrf-paillettes, .xlrf-image__lueur { display: none; }
  #xlrf.is-ouvert .xlrf-image img { clip-path: none; }
}
