/* CLIK.ma - the animated stage of a banner (__clik_stage.tpl, js/core/clik-stage.js from ts-src/stage). Round 69 (the owner, 29 Nov:
   « i will go with A B C each one goes on it's page that suit the animation more », « make sure no overlaps »): three animations
   around the banners' smooth 3D cube - net « Réseau » (500 x 220, compact 300 x 200), map « Maroc » (400 x 250), town « Cité »
   (420 x 240). Each is drawn at its own fixed size, every part at a fixed place clear of the others, and fitted by the script as
   big as the room beside the words and the logo allows (CSS zoom: sharp), centred in it, 8 px inside the banner. Only transform /
   opacity / stroke move; nothing moves with "less motion", off screen or in a hidden tab. Blue banners: white and light blue only. */
.clik-sg-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.clik-sg-art.is-none .clik-sg-stage { display: none; }
.clik-sg-stage { --sw: 500px; --sh: 220px; position: absolute; left: var(--cx, 75%); top: var(--cy, 50%); width: var(--sw); height: var(--sh); margin: calc(var(--sh) / -2) 0 0 calc(var(--sw) / -2); transform: scale(var(--k, 1)); transform-origin: center; opacity: 0; }
.clik-sg-art.is-map .clik-sg-stage { --sw: 400px; --sh: 250px; }
.clik-sg-art.is-town .clik-sg-stage { --sw: 420px; --sh: 240px; }
.clik-sg-art.is-net .clik-sg-stage.is-compact { --sw: 300px; --sh: 200px; }
.clik-sg-art.is-fit .clik-sg-stage { opacity: 1; }
@supports (zoom: 2) {
  .clik-sg-art.is-fit .clik-sg-stage { zoom: var(--k, 1); left: calc(var(--cx, 75%) / var(--k, 1)); top: calc(var(--cy, 50%) / var(--k, 1)); transform: none; }
}

/* the hub: the cube in its 128 px box, its rings, its shadow, the badge on its top end corner */
.clik-sg-hub { position: absolute; z-index: 4; width: 144px; height: 144px; display: grid; place-items: center; left: calc(var(--sw) / 2 - 72px); top: calc(var(--sh) / 2 - 72px); }
.clik-sg-art.is-map .clik-sg-hub { left: 244px; top: 53px; }
[dir="rtl"] .clik-sg-art.is-map .clik-sg-hub { left: 12px; }
.clik-sg-art.is-town .clik-sg-hub { top: 36px; }
.clik-sg-hub::before, .clik-sg-hub::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .62); opacity: 0; pointer-events: none; }
.clik-sg-cube { position: relative; z-index: 2; width: 128px; height: 128px; line-height: 0; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 14px 14px rgba(10, 16, 30, .3)); -webkit-tap-highlight-color: transparent; }
.clik-sg-shadow { position: absolute; z-index: 1; left: 22px; bottom: 2px; width: 84px; height: 12px; border-radius: 50%; background: rgba(4, 20, 70, .34); filter: blur(5px); }
.clik-sg-hub.is-ping .clik-sg-cube { animation: clik-sg-ping .5s ease; }

/* A - Réseau: the lines from the cube, the four sections at the stage's corners */
.clik-sg-wires { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.clik-sg-wires .w { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.4; }
.clik-sg-wires .p { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px #fff); }
.clik-sg-nt { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 44px; max-width: 148px; padding: 6px 12px 6px 6px; border-radius: 14px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36), 0 8px 18px rgba(4, 20, 70, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .25s ease, box-shadow .25s ease; }
[dir="rtl"] .clik-sg-nt { padding: 6px 6px 6px 12px; }
.clik-sg-nt.is-1 { inset-inline-start: 8px; top: 22px; }
.clik-sg-nt.is-2 { inset-inline-start: 8px; bottom: 22px; }
.clik-sg-nt.is-3 { inset-inline-end: 8px; top: 22px; }
.clik-sg-nt.is-4 { inset-inline-end: 8px; bottom: 22px; }
.clik-sg-nt-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #0A4DFF; background: #fff; box-shadow: 0 3px 8px rgba(4, 20, 70, .18); }
.clik-sg-nt-ic svg { width: 18px; height: 18px; }
.clik-sg-nt-t { display: block; max-width: 90px; font-size: 13px; font-weight: 700; line-height: 1.15; text-align: start; white-space: normal; overflow-wrap: normal; word-break: normal; }
.clik-sg-nt.is-bare { padding: 6px !important; }
a.clik-sg-nt { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a.clik-sg-nt:hover, .clik-sg-nt.is-hot { background: rgba(255, 255, 255, .32); box-shadow: inset 0 0 0 1.5px #fff, 0 0 18px rgba(168, 212, 255, .55), 0 8px 18px rgba(4, 20, 70, .24); }
.clik-sg-stage.is-compact .clik-sg-nt { padding: 6px !important; }
.clik-sg-stage.is-compact .clik-sg-nt-t { display: none; }

/* B - Maroc: the country, its cities, the arcs to the cube, the city's chip */
.clik-sg-map { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.clik-sg-land { fill: rgba(255, 255, 255, .2); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .45)); }
.clik-sg-landdots { fill: url(#clik-sg-dots); }
.clik-sg-map .a { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; stroke-dasharray: 3 5; }
.clik-sg-map .ap { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 3px #fff); }
.clik-sg-map .d { fill: #fff; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)); }
.clik-sg-map .r { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.clik-sg-map .is-on .r { animation: clik-sg-rip 1.4s ease-out; }
.clik-sg-chip { position: absolute; z-index: 6; left: 0; top: 0; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 5px; border-radius: 16px; white-space: nowrap; font-size: 13px; font-weight: 700; line-height: 1; color: #0b1f4d; background: #fff; box-shadow: 0 10px 22px rgba(0, 32, 128, .24); opacity: 0; transition: opacity .3s ease, transform .5s cubic-bezier(.3, .9, .3, 1); }
[dir="rtl"] .clik-sg-chip { padding: 0 5px 0 12px; }
.clik-sg-chip.is-on { opacity: 1; }
.clik-sg-chip i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #0A4DFF; background: #E7F0FF; font-style: normal; }
/* round 99: the city's name and count carry their own colour, never one inherited from the link (the name was blank on the
   owner's /partenaires banner while the count, which had its own colour, still showed) */
.clik-sg-chip:not(#_) .clik-sg-chip-n, .clik-sg-chip:not(#_) .clik-sg-chip-c { display: block; opacity: 1; visibility: visible; font-style: normal; font-size: 13px; letter-spacing: 0; text-indent: 0; text-shadow: none; unicode-bidi: isolate; }
.clik-sg-chip:not(#_) .clik-sg-chip-n { font-weight: 800; color: #0b1f4d; -webkit-text-fill-color: #0b1f4d; }
.clik-sg-chip:not(#_) .clik-sg-chip-c { font-weight: 700; color: #0A4DFF; -webkit-text-fill-color: #0A4DFF; }

/* C - Cité: the little glass cubes, the platform under the cube, the « Nouvelle annonce à … » bubble */
.clik-sg-town { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; -webkit-mask: radial-gradient(62% 74% at 50% 48%, #000 58%, transparent 100%); mask: radial-gradient(62% 74% at 50% 48%, #000 58%, transparent 100%); }
.clik-sg-town .mc { transition: transform .7s cubic-bezier(.3, 1.4, .4, 1); }
.clik-sg-town .mc polygon { stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-linejoin: round; transition: fill .5s ease; }
.clik-sg-town .mc .t { fill: rgba(255, 255, 255, .36); }
.clik-sg-town .mc .l { fill: rgba(255, 255, 255, .18); }
.clik-sg-town .mc .r { fill: rgba(0, 36, 128, .06); }
.clik-sg-town .mc.is-up .t { fill: #fff; }
.clik-sg-town .mc.is-up .l { fill: #D5E5FF; }
.clik-sg-town .mc.is-up .r { fill: #A9C8FF; }
.clik-sg-plat { position: absolute; z-index: 2; left: 110px; top: 160px; width: 200px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0)); }
.clik-sg-bub { position: absolute; z-index: 6; left: 0; top: 0; display: flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; white-space: nowrap; font-size: 12px; font-weight: 800; line-height: 1; color: #0A4DFF; background: #fff; box-shadow: 0 6px 16px rgba(0, 32, 128, .24); pointer-events: none; animation: clik-sg-bub 1.8s ease forwards; }

/* the burst of a click on the cube (blue only on a banner) */
.clik-sg-bit { position: absolute; z-index: 7; top: calc(var(--sh) / 2); left: calc(var(--sw) / 2); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 2px; pointer-events: none; }
/* the logo of a banner with a stage: on its top edge, 8 px from the top and the end (the owner, 24 Nov) */
.clik-sg-top { top: 8px !important; inset-block-start: 8px !important; inset-inline-end: 8px !important; }
.clik-sg-top > .clik-brand, .clik-sg-top > a.clik-brand { position: static !important; inset: auto !important; top: auto !important; }
.clik-sg-opts { display: none !important; }
.is-sg-folded .clik-sg-art { display: none; }
/* the Live list banner (24 Nov): tall enough for the stage to be seen */
.clik-lv-hero.has-stage { min-height: 230px; }

@media (prefers-reduced-motion: no-preference) {
  .clik-sg-art:not(.no-motion):not(.is-off) .clik-sg-hub::before { animation: clik-sg-ring 3.2s ease-out infinite; }
  .clik-sg-art:not(.no-motion):not(.is-off) .clik-sg-hub::after { animation: clik-sg-ring 3.2s ease-out 1.6s infinite; }
  .clik-sg-art:not(.no-motion):not(.is-off) .clik-sg-cube { animation: clik-sg-float 6.4s cubic-bezier(.45, 0, .55, 1) infinite; }
  .clik-sg-art:not(.no-motion):not(.is-off) .clik-sg-shadow { animation: clik-sg-shadow 6.4s cubic-bezier(.45, 0, .55, 1) infinite; }
  .clik-sg-art:not(.no-motion).is-fit .clik-sg-stage { animation: clik-sg-in .6s cubic-bezier(.2, .8, .2, 1) backwards; }
}
@media (prefers-reduced-motion: reduce) { .clik-sg-stage, .clik-sg-chip, .clik-sg-town .mc, .clik-sg-nt { transition: none; } .clik-sg-bub { animation: none; } }
@keyframes clik-sg-in { from { opacity: 0; } }
@keyframes clik-sg-ring { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes clik-sg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes clik-sg-shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.86); opacity: .62; } }
@keyframes clik-sg-ping { 40% { scale: 1.07; } }
@keyframes clik-sg-rip { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4); } }
@keyframes clik-sg-bub { 0% { opacity: 0; translate: 0 6px; } 15% { opacity: 1; translate: 0 0; } 78% { opacity: 1; translate: 0 -8px; } 100% { opacity: 0; translate: 0 -14px; } }
@keyframes clik-sg-bit { from { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); } to { opacity: 0; transform: translate(var(--bx), var(--by)) rotate(var(--br)) scale(.5); } }
/* round 69: a banner that keeps a column for its stage (data-col on the art, set by the script from a wide banner): its words end before it */
.is-sg-col > :not(.clik-sg-art):not(.clik-brand):not(.clik-sg-brand) { margin-inline-end: var(--sg-col, 0px); }

/* round 70 (the owner's extras 1-3) */
/* Maroc: a city is a link to its listings - a round target on its dot (it lights under the mouse), its chip a link too */
.clik-sg-map .hit { fill: transparent; pointer-events: all; cursor: pointer; transition: fill .2s ease; }
.clik-sg-map .hit-a:hover .hit, .clik-sg-map .hit-a:focus-visible .hit { fill: rgba(255, 255, 255, .22); }
.clik-sg-chip { text-decoration: none; }
.clik-sg-chip.is-link.is-on { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.clik-sg-chip.is-link:hover { color: #0b1f4d; text-decoration: none; box-shadow: 0 0 0 2px #A8D4FF, 0 10px 22px rgba(0, 32, 128, .28); }
/* Cité: the risen cube wears the newest listing's photo on its top face; its bubble carries the photo and opens the listing */
.clik-sg-town .ph { opacity: 0; animation: clik-sg-ph .45s ease .15s forwards; }
.clik-sg-town .ph.is-out { animation: clik-sg-ph-out .3s ease forwards; }
.clik-sg-bub.is-photo { height: 34px; gap: 6px; padding: 0 11px 0 3px; border-radius: 17px; animation-name: clik-sg-bubp; animation-duration: 2.7s; }
[dir="rtl"] .clik-sg-bub.is-photo { padding: 0 3px 0 11px; }
.clik-sg-bub img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #E7F0FF; }
.clik-sg-bub.is-photo > span { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.clik-sg-bub.is-photo small { font-size: 10px; font-weight: 700; color: #53607a; }
.clik-sg-bub.is-photo b { font-size: 12.5px; font-weight: 800; color: #0A4DFF; }
/* its short rise (6 px up, 3 px from below): the script keeps that whole path inside the stage */
@keyframes clik-sg-bubp { 0% { opacity: 0; translate: 0 3px; } 15% { opacity: 1; translate: 0 0; } 80% { opacity: 1; translate: 0 -4px; } 100% { opacity: 0; translate: 0 -6px; } }
.clik-sg-bub.is-link { pointer-events: auto; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.clik-sg-bub.is-link:hover { color: #0A4DFF; text-decoration: none; box-shadow: 0 0 0 2px #A8D4FF, 0 6px 16px rgba(0, 32, 128, .28); }
.clik-sg-bub.is-held { animation-play-state: paused; }
.clik-sg-bub.is-bye { animation: none; opacity: 0; transition: opacity .3s ease; }
/* Réseau: a tile's real number on its icon's corner - blue, red for unread notifications */
.clik-sg-nt-ic { position: relative; }
.clik-sg-nt-n { position: absolute; top: -6px; inset-inline-end: -8px; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-style: normal; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; color: #fff; background: #0A4DFF; box-shadow: 0 0 0 2px #fff; direction: ltr; unicode-bidi: isolate; pointer-events: none; }
.clik-sg-nt-n.is-red { background: #E41E3F; }
.clik-sg-nt-n[hidden] { display: none; }
.clik-sg-nt-n.is-pop { animation: clik-sg-npop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes clik-sg-ph { to { opacity: 1; } }
@keyframes clik-sg-ph-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes clik-sg-npop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .clik-sg-town .ph { animation: none; opacity: 1; } .clik-sg-nt-n.is-pop { animation: none; } }
.clik-sg-art.no-motion .clik-sg-nt-n.is-pop { animation: none; }

/* round 71 (the owner's extras 2-3) */
/* Maroc: a city glows brighter (and its dot grows) the more listings it has - the glow breathes slowly */
.clik-sg-map .gl { pointer-events: none; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .clik-sg-art:not(.no-motion):not(.is-off) .clik-sg-map .gl { animation: clik-sg-glow 3.2s ease-in-out infinite; }
}
@keyframes clik-sg-glow { 0%, 100% { scale: 1; } 50% { scale: 1.18; } }
/* Réseau: the card of a tile's three newest items (in <body>, beside the tile, inside the screen) */
.clik-sg-peek { position: fixed; z-index: 1060; box-sizing: border-box; width: 288px; max-width: calc(100vw - 16px); padding: 8px; border-radius: 14px; background: #fff; color: #050505; box-shadow: 0 0 0 1px rgba(10, 77, 255, .12), 0 16px 40px rgba(0, 32, 128, .26); display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.25; text-align: start; }
.clik-sg-peek:not(.is-still) { animation: clik-sg-pk-in .18s ease-out; }
.clik-sg-peek.is-up:not(.is-still) { animation-name: clik-sg-pk-up; }
.clik-sg-peek.is-out { opacity: 0; transition: opacity .15s ease; }
.clik-sg-pk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 6px; border-bottom: 1px solid #e4e6eb; }
.clik-sg-pk-h > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clik-sg-pk-h b { font-size: 14px; font-weight: 800; color: #0A4DFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clik-sg-pk-h small { font-size: 11.5px; color: #65676b; }
.clik-sg-pk-all { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12.5px; font-weight: 700; color: #0A4DFF; background: #EAF2FF; text-decoration: none; white-space: nowrap; }
.clik-sg-pk-all:hover { color: #fff; background: #0A4DFF; text-decoration: none; }
.clik-sg-pk-it { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; color: inherit; text-decoration: none; }
.clik-sg-pk-it:hover { color: inherit; text-decoration: none; background: #F0F5FF; }
.clik-sg-pk-ph { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #E7F0FF var(--clik-cube, none) center / 60% no-repeat; }
.clik-sg-pk-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clik-sg-pk-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.clik-sg-pk-tx b { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.clik-sg-pk-tx small { font-size: 12px; font-weight: 800; color: #0A4DFF; unicode-bidi: plaintext; }
body.night-mode .clik-sg-peek { background: #242526; color: #e4e6eb; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 40px rgba(0, 0, 0, .5); }
body.night-mode .clik-sg-pk-h { border-bottom-color: #3a3b3c; }
body.night-mode .clik-sg-pk-h b, body.night-mode .clik-sg-pk-all, body.night-mode .clik-sg-pk-tx small { color: #6aa8ff; }
body.night-mode .clik-sg-pk-h small { color: #b0b3b8; }
body.night-mode .clik-sg-pk-all { background: #233a5e; }
body.night-mode .clik-sg-pk-all:hover { color: #fff; background: #0A4DFF; }
body.night-mode .clik-sg-pk-it:hover { background: #3a3b3c; }
body.night-mode .clik-sg-pk-ph { background-color: #3a3b3c; }
@keyframes clik-sg-pk-in { from { opacity: 0; translate: 0 -6px; } }
@keyframes clik-sg-pk-up { from { opacity: 0; translate: 0 6px; } }
.clik-sg-bub.is-photo.no-pic { padding-inline-start: 12px; }

/* round 100: the ring a roll lands with (js/core/clik-stage.js) */
.clik-sg-land { position: absolute; inset: 18px; z-index: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .72); box-shadow: 0 0 18px rgba(168, 212, 255, .45); pointer-events: none; }
