/* ALAMKAR — Alam sur la page d'accueil du site */
.aet-alam-home { max-width: 460px; margin: 6px auto 8px; text-align: center; color: #141A2E; }
.aet-alam-home-img { display: block; width: 120px; max-width: 40vw; min-height: 90px; margin: 0 auto 2px; }
.aet-alam-home-img svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(16, 32, 88, .25)); }
.aet-alam-home-bubble { position: relative; padding: 10px 14px; border-radius: 18px; background: #102058; color: #F7F3EA; text-align: left; line-height: 1.45; font-size: .9rem; }
.aet-alam-home-bubble::before { content: ''; position: absolute; top: -10px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-top: 0; border-bottom-color: #102058; }
.aet-alam-home-bubble p { margin: 0 0 5px; }
.aet-alam-home-bubble p:last-child { margin-bottom: 0; }
.aet-alam-home-hello { font-weight: 800; font-size: 1rem; color: #F8B838; }
.aet-alam-home-cheer { font-weight: 700; color: #fff; }
.aet-alam-home-quote { margin: 14px 0 0; padding: 14px 18px; border-radius: 18px; background: #F7F3EA; border-left: 4px solid #A0105A; text-align: left; }
.aet-alam-home-quote blockquote { margin: 0; padding: 0; border: 0; font-style: italic; font-size: 1.05rem; line-height: 1.45; color: #102058; }
.aet-alam-home-quote figcaption { margin-top: 6px; font-size: .9rem; font-weight: 700; color: #A0105A; }
.aet-alam-home-quote figcaption::before { content: '— '; }
.aet-alam-home-more { margin-top: 8px; padding: 6px 14px; border: 1.5px solid #A0105A; border-radius: 999px; background: transparent; color: #A0105A; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.aet-alam-home-more:hover, .aet-alam-home-more:focus { background: #A0105A; color: #fff; }
.aet-alam-home-more[hidden] { display: none; }

/* 0.33.0 — annonce compacte : Alam à gauche de la bulle, sur téléphone comme sur ordinateur */
.aet-alam-home { display: flex; align-items: center; gap: 10px; max-width: 560px; }
.aet-alam-home-img { flex: 0 0 84px; width: 84px; min-height: 0; margin: 0; }
.aet-alam-home-bubble { flex: 1 1 auto; min-width: 0; }
.aet-alam-home-bubble::before { top: 50%; left: -9px; margin: -9px 0 0; border: 9px solid transparent; border-left: 0; border-right-color: #102058; }
@media (max-width: 599px) {
	.aet-alam-home-bubble { font-size: .84rem; padding: 8px 12px; }
	.aet-alam-home-hello { font-size: .92rem; }
	.aet-alam-home-intro { display: none; }
}
@media (min-width: 600px) {
	.aet-alam-home-img { flex-basis: 110px; width: 110px; }
}

/* Alam bouge (les mêmes mouvements que dans l'appli) */
.aet-alam-home .aet-mascot.is-moving .al-bd { transform-origin: 150px 300px; animation: al-hop .7s ease-in-out infinite alternate; }
@keyframes al-hop { from { transform: translateY(2px) scaleY(.985); } to { transform: translateY(-7px) scaleY(1.01); } }
.aet-alam-home .aet-mascot.is-moving .al-hd { transform-origin: 150px 150px; animation: al-tilt 2.48s ease-in-out infinite; }
@keyframes al-tilt { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.aet-alam-home .aet-mascot.is-moving .al-tr { transform-origin: 150px 222px; animation: al-fan 1.86s ease-in-out infinite; }
@keyframes al-fan { 0%, 100% { transform: rotate(-2.5deg) scale(1); } 50% { transform: rotate(2.5deg) scale(1.03); } }
.aet-alam-home .aet-mascot.is-moving .al-rb { transform-origin: 200px 112px; animation: al-rib .5s ease-in-out infinite alternate; }
@keyframes al-rib { from { transform: rotate(-6deg) scaleX(.95); } to { transform: rotate(5deg) scaleX(1.05); } }
.aet-alam-home .aet-mascot.is-moving .al-ey { transform-origin: 150px 134px; animation: al-blink 4.4s infinite; }
@keyframes al-blink { 0%, 92%, 98%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.aet-alam-home .aet-mascot.is-moving .al-tw { transform-box: fill-box; transform-origin: center; animation: al-tw 2.2s ease-in-out infinite; }
.aet-alam-home .aet-mascot.is-moving .al-tw:nth-of-type(2n) { animation-delay: -1.1s; }
@keyframes al-tw { 0%, 100% { opacity: .3; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.aet-alam-home .aet-mascot.is-moving .al-ry { transform-origin: 150px 175px; animation: al-ray 18s linear infinite; }
@keyframes al-ray { to { transform: rotate(360deg); } }
.aet-alam-home .aet-mascot .al-st { display: none; }
.aet-alam-home .aet-mascot.is-moving .al-st { display: inline; }
.aet-alam-home .aet-mascot.is-moving .al-st path { stroke-dasharray: 34 60; animation: al-st .9s linear infinite; }
@keyframes al-st { from { stroke-dashoffset: 0; opacity: .1; } 30% { opacity: .55; } to { stroke-dashoffset: -94; opacity: 0; } }

/* Logo ALAMKAR de l'accueil : apparition, respiration et reflet lumineux (le fichier du logo n'est pas modifié). */
.alamkar-home-logo { position: relative; animation: aet-logo-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.alamkar-home-logo img { display: block; animation: aet-logo-breathe 5s ease-in-out 1s infinite; transform-origin: 50% 60%; }
@keyframes aet-logo-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes aet-logo-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.alamkar-home-logo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) no-repeat;
	background-size: 250% 100%; background-position: 150% 0;
	-webkit-mask: var(--aet-logo) center / 100% 100% no-repeat; mask: var(--aet-logo) center / 100% 100% no-repeat;
	animation: aet-logo-shine 6s ease-in-out 1.2s infinite; }
@keyframes aet-logo-shine { 0% { background-position: 150% 0; } 30%, 100% { background-position: -60% 0; } }
.alamkar-slogan { animation: aet-logo-in .9s .25s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
	.aet-alam-home .aet-mascot.is-moving *, .alamkar-home-logo, .alamkar-home-logo img, .alamkar-home-logo::after, .alamkar-slogan { animation: none !important; }
	.alamkar-home-logo::after { display: none; }
}
