/*
 * F4IOZ site — TellusMe in a few words (directhf/EncartTellusMe.kt): the home page's card (a phone, a short window),
 * its tile at the end of the tools' strip (one desktop screen), the popup in a corner. Colourful in both themes: a
 * night-to-dusk gradient, a stylised waterfall drifting down with CW traces in it, waves pulsing from the logo — all
 * still for who asks the system for less motion.
 */
.tlmp {
  --tlmp-a: #101A44; --tlmp-b: #2B37B8; --tlmp-c: #8B2FA6; --tlmp-d: #F0517A;
  --tlmp-teal: #5FF0E4; --tlmp-ambre: #FFC65C; --tlmp-rose: #FF8AB0;
  position: relative; overflow: hidden; isolation: isolate; color: #F4F7FF;
  background: linear-gradient(118deg, var(--tlmp-a) 0%, var(--tlmp-b) 42%, var(--tlmp-c) 74%, var(--tlmp-d) 100%);
  border: 0; box-shadow: 0 10px 30px rgba(20, 16, 70, .35);
}
:root[data-theme="light"] .tlmp { --tlmp-a: #1B2A78; --tlmp-b: #3646D6; --tlmp-c: #9A36C0; --tlmp-d: #FF5A86; box-shadow: 0 10px 26px rgba(54, 70, 214, .28); }

/* The sky behind: the waterfall on the right, fading toward the words; three waves from the logo. */
.tlmp-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tlmp-fond::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 0% 0%, rgba(95, 240, 228, .22), transparent 55%), radial-gradient(70% 80% at 100% 100%, rgba(255, 198, 92, .25), transparent 60%); }
.tlmp-chute { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
  background-image:
    repeating-linear-gradient(180deg, rgba(255, 198, 92, .95) 0 7px, transparent 7px 11px, rgba(255, 198, 92, .95) 11px 26px, transparent 26px 34px, rgba(255, 198, 92, .95) 34px 40px, transparent 40px 62px),
    repeating-linear-gradient(180deg, rgba(95, 240, 228, .9) 0 16px, transparent 16px 22px, rgba(95, 240, 228, .9) 22px 28px, transparent 28px 50px),
    repeating-linear-gradient(180deg, rgba(255, 138, 176, .85) 0 5px, transparent 5px 9px, rgba(255, 138, 176, .85) 9px 14px, transparent 14px 30px),
    linear-gradient(90deg, transparent 0 30%, rgba(255, 255, 255, .25) 30.6%, transparent 31.4%, transparent 71%, rgba(124, 227, 139, .5) 71.6%, transparent 72.6%),
    repeating-linear-gradient(180deg, rgba(160, 200, 255, .13) 0 2px, transparent 2px 5px, rgba(95, 240, 228, .08) 5px 6px, transparent 6px 9px);
  background-size: 3px 124px, 3px 100px, 2px 60px, 100% 100%, 100% 36px;
  background-repeat: repeat-y, repeat-y, repeat-y, no-repeat, repeat;
  background-position: 46% 0, 63% 0, 86% 0, 0 0, 0 0;
  animation: tlmp-chute 7s linear infinite; }
@keyframes tlmp-chute { to { background-position: 46% 124px, 63% 200px, 86% 120px, 0 0, 0 36px; } }
.tlmp-ondes { position: absolute; left: var(--tlmp-ox, 60px); top: var(--tlmp-oy, 50%); width: 0; height: 0; }
.tlmp-ondes i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%;
  border: 2px solid rgba(95, 240, 228, .55); opacity: 0; transform: scale(.35); animation: tlmp-onde 4.2s ease-out infinite; }
.tlmp-ondes i:nth-child(2) { border-color: rgba(255, 198, 92, .5); animation-delay: 1.4s; }
.tlmp-ondes i:nth-child(3) { border-color: rgba(255, 138, 176, .5); animation-delay: 2.8s; }
@keyframes tlmp-onde { 0% { opacity: .9; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.6); } }

.tlmp-logo { flex: none; display: block; border-radius: 22%; box-shadow: 0 6px 18px rgba(5, 8, 30, .45), 0 0 0 1px rgba(255, 255, 255, .18); }
.tlmp-sur { margin: 0; font: 700 11px/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tlmp-ambre); }
.tlmp-nom { margin: 0; font: 800 28px/1.1 var(--font-sans); letter-spacing: -.01em; color: #fff; }
.tlmp-me { color: var(--tlmp-teal); }
.tlmp-accroche { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: rgba(244, 247, 255, .92); max-width: 60ch; }
.tlmp-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.tlmp-points li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.tlmp-points .ico { width: 15px; height: 15px; fill: none; stroke: var(--tlmp-ambre); stroke-width: 2; }
.tlmp-points li:nth-child(2) .ico { stroke: var(--tlmp-teal); }
.tlmp-points li:nth-child(3) .ico { stroke: var(--tlmp-rose); }
.tlmp-btn { display: inline-flex; align-items: center; gap: 2px; padding: 9px 18px; border-radius: 999px; background: #fff; color: #1B1F5E; font-weight: 800; font-size: 14.5px;
  text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(10, 10, 50, .35); transition: transform var(--anim), box-shadow var(--anim); }
.tlmp-btn:hover, .tlmp-btn:focus-visible { text-decoration: none; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(10, 10, 50, .45); color: #1B1F5E; }
.tlmp a:focus-visible, .tlmp button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The home page's card: a phone or a short window. */
.home-grid > .tlmp-carte { padding: 0; animation: tlmp-entree .7s cubic-bezier(.2, .7, .3, 1) both; }
.home-grid > .tlmp-carte { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 4px 18px; padding: 16px 20px 16px 16px; }
.tlmp-carte .tlmp-corps { min-width: 0; }
.tlmp-tete { display: flex; align-items: center; gap: 12px; }
.tlmp-txt { min-width: 0; }
.tlmp-carte .tlmp-actions { margin-top: 14px; }
.tlmp-carte { --tlmp-ox: 75%; --tlmp-oy: 30%; }
@keyframes tlmp-entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .home-grid > .tlmp-carte { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 16px; gap: 12px; }
  .tlmp-carte .tlmp-logo { width: 52px; height: 52px; }
  .tlmp-carte .tlmp-actions .tlmp-btn { width: 100%; justify-content: center; }
  .tlmp-nom { font-size: 25px; }
}

/* Its tile in the tools' strip, on one desktop screen only. */
.tool-tiles .tuile-tlm { display: none; }
.outils-bande.seul-tlm { display: none; }
@media (min-width: 1100px) and (min-height: 640px) {
  body.ecran .home-grid > .tlmp-carte { display: none; }
  body.ecran .outils-bande.seul-tlm { display: block; }
  body.ecran .outils-bande .tool-tiles .tuile-tlm { --tlmp-ox: 24px; display: flex; flex: 0 0 auto; align-items: center; gap: 9px; position: relative; overflow: hidden; isolation: isolate;
    padding: 4px 14px 4px 5px; border: 0; border-radius: var(--r-m); color: #fff; text-decoration: none;
    background: linear-gradient(118deg, #101A44 0%, #2B37B8 45%, #8B2FA6 78%, #F0517A 100%); box-shadow: 0 4px 14px rgba(43, 55, 184, .35);
    animation: tlmp-entree .7s cubic-bezier(.2, .7, .3, 1) both; }
  :root[data-theme="light"] body.ecran .outils-bande .tool-tiles .tuile-tlm { background: linear-gradient(118deg, #1B2A78 0%, #3646D6 45%, #9A36C0 78%, #FF5A86 100%); }
  body.ecran .outils-bande .tool-tiles a.tuile-tlm:hover, body.ecran .outils-bande .tool-tiles a.tuile-tlm:focus-visible { filter: brightness(1.12) saturate(1.1); box-shadow: 0 6px 18px rgba(240, 81, 122, .4); }
  body.ecran .outils-bande .tool-tiles a.tuile-tlm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .tuile-tlm .tlmp-fond { z-index: -1; }
  .tuile-tlm .tlmp-chute { width: 70%; opacity: .45; }
  .tuile-tlm .tlmp-ondes i { left: -40px; top: -40px; width: 80px; height: 80px; }
  .tuile-tlm .tlmp-logo { width: 32px; height: 32px; border-radius: 8px; }
  body.ecran .outils-bande .tuile-tlm .tt-txt { display: flex; flex-direction: column; min-width: 0; }
  body.ecran .outils-bande .tuile-tlm b { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; color: #fff; -webkit-line-clamp: 1; line-clamp: 1; }
  body.ecran .outils-bande .tuile-tlm b .tlmp-me { display: inline; font-size: inherit; line-height: inherit; color: var(--tlmp-teal, #5FF0E4); }
  body.ecran .outils-bande .tuile-tlm .tt-txt > span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFC65C; white-space: nowrap; line-height: 1.3; }
  body.ecran .outils-bande .tuile-tlm .tt-fleche { font-weight: 800; font-size: 16px; color: #fff; margin-left: 2px; transition: transform var(--anim); }
  body.ecran .outils-bande .tool-tiles a.tuile-tlm:hover .tt-fleche { transform: translateX(3px); }
}

/* The popup: a small window in a corner (bottom right; bottom across on a phone), never in the way of the whole page. */
.tlmp-popup { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(400px, calc(100vw - 32px)); padding: 14px 16px 16px; border-radius: 18px;
  --tlmp-ox: 50px; --tlmp-oy: 50px; box-shadow: 0 18px 50px rgba(8, 6, 40, .55), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .25, 1.15); }
.tlmp-popup.on { opacity: 1; transform: none; }
.tlmp-popup[hidden] { display: none; }
.tlmp-popup .tlmp-tete { margin-top: 12px; }
.tlmp-popup .tlmp-affiche { margin: -4px -4px 0; }
.tlmp-popup .tlmp-nom { font-size: 26px; }
.tlmp-popup .tlmp-accroche { margin-top: 10px; }
.tlmp-actions { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; }
.tlmp-plus-tard { margin-left: auto; padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: 600 13.5px var(--font-sans); cursor: pointer; }
.tlmp-plus-tard:hover { background: rgba(255, 255, 255, .22); }
.tlmp-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 12, 40, .35); color: #fff;
  font: 400 22px/34px var(--font-sans); cursor: pointer; z-index: 1; }
.tlmp-x:hover { background: rgba(10, 12, 40, .6); }
@media (max-width: 640px) {
  .tlmp-popup { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px 16px 14px; }
  .tlmp-popup .tlmp-logo { width: 44px; height: 44px; }
  /* Discreet on a phone: a smaller poster, no points (the page says them). */
  .tlmp-popup .tlmp-affiche .tlma { height: min(150px, 22vh); }
  .tlmp-popup .tlmp-points { display: none; }
  .tlmp-popup .tlmp-tete { margin-top: 10px; }
  .tlmp-popup .tlmp-nom { font-size: 22px; }
  .tlmp-popup .tlmp-accroche { margin-top: 6px; font-size: 14px; }
  .tlmp-popup .tlmp-actions { margin-top: 10px; }
}
@media print { .tlmp-popup { display: none !important; } }

/* The poster (AfficheTellusMe.kt): a dark screen with the waterfall, the network and the text written out. */
.tlmp-affiche { min-width: 0; }
.tlma { display: block; width: 100%; height: auto; border-radius: 12px; background: rgba(6, 8, 30, .45); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 24px rgba(6, 6, 40, .35); }
.tlma-mono { font-family: var(--font-mono); }
.tlma-defile { animation: tlma-defile 14s linear infinite; }
@keyframes tlma-defile { to { transform: translateY(420px); } }
.tlma-bulle { animation: tlma-bulle 3.6s ease-in-out infinite; }
.tlma-b1 { animation-delay: -1.2s; } .tlma-b2 { animation-delay: -2.4s; }
@keyframes tlma-bulle { 50% { transform: translateY(-3px); } }
.tlma-flux { opacity: 0; animation: tlma-flux 2.4s linear infinite; }
.tlma-f1 { animation-delay: .8s; } .tlma-f2 { animation-delay: 1.6s; }
@keyframes tlma-flux { 0% { opacity: 0; transform: translateX(-14px); } 25% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(18px); } }
.tlma-halo { transform-box: fill-box; transform-origin: center; animation: tlma-halo 4.8s ease-in-out infinite; }
@keyframes tlma-halo { 50% { opacity: .65; transform: scale(.93); } }
.tlma-n { transform-box: fill-box; transform-origin: center; animation: tlma-n 2.4s ease-in-out infinite; }
.tlma-c1 { animation-delay: .4s; } .tlma-c2 { animation-delay: .8s; }
@keyframes tlma-n { 0%, 60%, 100% { opacity: .75; transform: scale(1); } 25% { opacity: 1; transform: scale(1.22); } }
.tlma-vif { stroke-dasharray: 8 140; animation: tlma-vif 2.4s linear infinite; filter: drop-shadow(0 0 3px currentColor); }
.tlma-v1 { animation-delay: .8s; } .tlma-v2 { animation-delay: 1.6s; }
@keyframes tlma-vif { from { stroke-dashoffset: 148; } to { stroke-dashoffset: 0; } }
.tlma-l { opacity: 0; animation: tlma-l 9.6s ease-out infinite; }
.tlma-l1 { animation-delay: 1.2s; } .tlma-l2 { animation-delay: 2.4s; } .tlma-l3 { animation-delay: 3.6s; }
@keyframes tlma-l { 0% { opacity: 0; transform: translateX(-6px); } 5%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.tlma-curseur { animation: tlma-curseur 1s steps(1) infinite; }
@keyframes tlma-curseur { 50% { opacity: 0; } }

/* TellusMe's page: the poster beside the head's words (directhf/PageTellusMe.kt). */
.tlm-hero-corps { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; }
.tlm-hero-affiche { width: 340px; }
/* Out of the encart's gradient: the poster brings its own, in both themes. */
.tlm-hero-affiche .tlma { background: linear-gradient(118deg, #101A44 0%, #2B37B8 45%, #8B2FA6 78%, #F0517A 100%); }
@media (max-width: 760px) {
  .tlm-hero-corps { grid-template-columns: minmax(0, 1fr); }
  .tlm-hero-affiche { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .tlma-defile, .tlma-bulle, .tlma-flux, .tlma-halo, .tlma-n, .tlma-vif, .tlma-l, .tlma-curseur { animation: none !important; }
  .tlma-flux, .tlma-l { opacity: 1; }
  .tlma-vif { stroke-dasharray: none; }
  .tlmp-chute, .tlmp-ondes i, .home-grid > .tlmp-carte, body.ecran .outils-bande .tool-tiles .tuile-tlm { animation: none !important; }
  .tlmp-ondes i:first-child { opacity: .35; transform: scale(.8); }
  .tlmp-popup, .tlmp-btn, .tt-fleche { transition: none !important; }
  .tlmp-popup { transform: none; }
}
