/* « L'app de garderie native à l'IA » (scripts/site-garderies-ia.mjs) */
.ai-hero { position: relative; overflow: hidden; color: #F4F2FA; background: radial-gradient(120% 90% at 80% 0%, #2B3570 0%, #161B38 52%, #0F1329 100%); padding: 28px 0 calc(var(--sect) * 1.1); }
.ai-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(244, 190, 69, .10)); pointer-events: none; }
.ai-hero a { color: #F4F2FA; }
.ai-hero .crumbs, .ai-hero .crumbs a { color: #C9C6DA; }
.ai-sky { position: absolute; inset: 0; pointer-events: none; }
.ai-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #FFFFFF; opacity: .55; }
.ai-top { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .ai-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.ai-hero .gb-k { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(244, 190, 69, .14); color: #F7CF6E; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ai-hero .gb-k .ai-ic { width: 16px; height: 16px; }
.ai-hero h1 { margin-top: 16px; font-size: clamp(2.5rem, 1.4rem + 3.8vw, 5rem); line-height: 1.02; letter-spacing: -.035em; color: #FFFFFF; }
.ai-hero h1 span { display: block; }
.ai-hero h1 span + span { color: #F7CF6E; }
:lang(ja) .ai-hero h1, :lang(zh) .ai-hero h1 { word-break: auto-phrase; letter-spacing: -.01em; line-height: 1.15; }
:lang(ko) .ai-hero h1 { word-break: keep-all; letter-spacing: -.01em; line-height: 1.15; }
.ai-hero .lead { margin-top: 20px; max-width: 38rem; color: #D6D3E6; }
.ai-sum { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 40rem; }
.ai-sum li { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); border-radius: 18px; padding: 12px 14px; backdrop-filter: blur(6px); }
.ai-sum b { display: block; font-family: var(--display); font-size: 1.1rem; line-height: 1.15; color: #FFFFFF; }
.ai-sum span { display: block; margin-top: 2px; font-size: 13px; color: #C9C6DA; }
@media (max-width: 600px) { .ai-sum { grid-template-columns: minmax(0, 1fr); } .ai-sum li { display: flex; gap: 10px; align-items: baseline; } .ai-sum span { margin: 0; } }
.ai-hero .gd-free { margin-top: 18px; }
.ai-hero .cta-actions .btn:not(.primary), .ai-hero .cta-actions a:not(.primary) { color: #FFFFFF; }
/* La réponse courte */
.ai-end { position: relative; }
.ai-answer { margin-top: calc(var(--sect) * -.5); position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line); border-left: 5px solid #F4BE45; border-radius: 20px; padding: 20px 24px; box-shadow: 0 30px 60px -44px rgba(19, 22, 48, .5); }
.ai-answer h2 { display: inline; font-size: 1.1875rem; letter-spacing: -.01em; }
.ai-answer p { display: inline; margin: 0; }
.ai-sec { margin-top: var(--sect); }
.ai-k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vert); }
.ai-h2 { margin-top: 10px; max-width: 22ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.04; letter-spacing: -.03em; }
:lang(ja) .ai-h2, :lang(zh) .ai-h2 { word-break: auto-phrase; letter-spacing: -.01em; line-height: 1.2; }
:lang(ko) .ai-h2 { word-break: keep-all; letter-spacing: -.01em; line-height: 1.2; }
.ai-sub { margin: 14px 0 0; max-width: 44rem; color: var(--ink2); }
/* Native, pas ajoutée */
.ai-vs { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 860px) { .ai-vs { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.ai-vs > div { border-radius: 28px; padding: 26px 24px; }
.ai-vs .old { background: var(--sunk, var(--paper)); border: 1px dashed var(--line); }
.ai-vs .new { background: linear-gradient(135deg, var(--vert-soft), var(--bleu-soft)); }
.ai-vs h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.ai-vs ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.ai-vs li { position: relative; padding-left: 36px; min-height: 28px; font-weight: 600; }
.ai-vs li::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.ai-vs .old li { color: var(--ink2); }
.ai-vs .old li::before { content: "–"; background: var(--line); color: var(--ink2); text-align: center; line-height: 26px; font-weight: 700; }
.ai-vs .new li::before { content: "✓"; background: var(--vert); color: var(--paper); text-align: center; line-height: 26px; font-size: 14px; font-weight: 700; }
.ai-vs .new li { font-size: 1.0625rem; }
/* La nuit de l'Assistant */
.ai-night { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 1000px) { .ai-night { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }
.ai-steps { list-style: none; margin: 0; padding: 0; position: relative; isolation: isolate; display: grid; gap: 18px; }
.ai-steps::before, .ai-steps::after { z-index: 0; }
.ai-steps::before { content: ""; position: absolute; left: 41px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--line); }
.ai-steps::after { content: ""; position: absolute; left: 41px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(#2F3263, #F4BE45); transform-origin: top; }
.ai-steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: start; }
.ai-steps .t { position: relative; z-index: 1; text-align: center; padding-top: 6px; }
.ai-steps .t b { display: inline-block; min-width: 72px; background: var(--card); border: 2px solid var(--vert); border-radius: 999px; padding: 4px 8px; font-size: 13px; line-height: 1.2; }
.ai-steps li:nth-child(-n+2) .t b { border-color: #2F3263; }
.ai-steps li:nth-child(n+3) .t b { border-color: #F4BE45; }
.ai-steps .c { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; }
.ai-steps h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.2; }
.ai-steps p { margin: 6px 0 0; color: var(--ink2); }
.ai-nightcopy .ai-sub { margin-top: 0; }
.ai-clock { margin-top: 24px; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; position: relative; background: linear-gradient(180deg, #161B38, #2B3570 60%, #F4BE45 140%); }
.ai-clock b { grid-area: 1 / 1; position: relative; z-index: 1; font: 700 clamp(3rem, 2rem + 4vw, 5.5rem)/1 var(--display); letter-spacing: -.04em; color: #FFFFFF; }
.ai-clock .ai-sky i { opacity: .5; }
.ai-clock .t1 { opacity: 0; }
.ai-clock .sun { position: absolute; left: 50%; bottom: -60%; width: 70%; aspect-ratio: 1; margin-left: -35%; border-radius: 50%; background: radial-gradient(circle, #FFE7A3, #F4BE45 50%, rgba(244, 190, 69, 0) 70%); opacity: .8; }
/* Les tuiles de la journée */
.ai-tiles { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ai-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ai-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ai-tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.ai-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(19, 22, 48, .55); }
.ai-tile .tx { padding: 16px 18px 8px; display: flex; flex-direction: column; flex: 1; }
.ai-tile h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.2; }
.ai-tile p.p { margin: 6px 0 0; color: var(--ink2); font-size: 15.5px; }
.ai-tile a { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; }
.ai-art { position: relative; height: 172px; overflow: hidden; display: grid; place-items: center; padding: 16px; }
.ai-tile:nth-child(4n+1) .ai-art { background: var(--vert-soft); }
.ai-tile:nth-child(4n+2) .ai-art { background: var(--bleu-soft); }
.ai-tile:nth-child(4n+3) .ai-art { background: var(--glow-soft); }
.ai-tile:nth-child(4n+4) .ai-art { background: var(--rose-soft); }
.ai-art p { margin: 0; }
.a-voice { align-content: center; gap: 10px; }
.ai-wave { display: flex; gap: 5px; align-items: center; height: 34px; }
.ai-wave i { width: 6px; height: 100%; border-radius: 3px; background: var(--vert); transform: scaleY(calc(.3 + var(--i) * .1)); }
.ai-said { background: var(--card); border-radius: 14px 14px 14px 4px; padding: 7px 11px; font-size: 13.5px; font-weight: 600; max-width: 100%; }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ai-chips span { padding: 3px 10px; border-radius: 999px; background: var(--vert); color: var(--paper); font-size: 12.5px; font-weight: 700; }
.a-live .ai-ring { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 2px solid var(--bleu, #2F3263); opacity: .35; }
.a-live .r2 { transform: scale(1.6); opacity: .22; }
.a-live .r3 { transform: scale(2.2); opacity: .12; }
.ai-mic { position: relative; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #2F3263; color: #FFFFFF; box-shadow: 0 0 0 6px rgba(244, 190, 69, .45); }
.ai-mic svg { width: 30px; height: 30px; }
.a-ask { align-content: center; justify-items: stretch; gap: 8px; width: 100%; }
.a-ask .q, .a-ask .a { position: relative; z-index: 1; }
.a-ask .q { justify-self: end; background: #2F3263; color: #FFFFFF; border-radius: 14px 14px 4px 14px; padding: 7px 11px; font-size: 13.5px; font-weight: 600; }
.a-ask .dots { position: absolute; left: 16px; bottom: 44px; display: inline-flex; gap: 4px; padding: 10px 12px; background: var(--card); border-radius: 14px; opacity: 0; }
.a-ask .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink2); }
.a-ask .a { justify-self: start; background: var(--card); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font: 700 1.05rem/1.2 var(--display); color: var(--ink); }
.a-portrait { align-content: center; justify-items: start; gap: 9px; width: 100%; background-clip: padding-box; }
.a-portrait .h { font-weight: 700; font-size: 13.5px; }
.a-portrait .ln { display: block; height: 9px; width: var(--w); border-radius: 5px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.a-portrait .tg { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--vert); }
.a-portrait .tg .ai-ic { width: 18px; height: 18px; }
.a-photos { gap: 8px; }
.a-photos .pic { position: relative; width: 150px; height: 100px; border-radius: 14px; overflow: hidden; background: linear-gradient(#BFD8F7, #E8F1FB); }
.a-photos .sun { position: absolute; right: 16px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: #F4BE45; }
.a-photos .hill { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 80px; border-radius: 50%; background: #7CC7A6; }
.a-photos .face { position: absolute; bottom: 14px; width: 26px; height: 26px; border-radius: 50%; background: #F2C9A6; box-shadow: 0 0 0 2px #FFFFFF; }
.a-photos .f1 { left: 40px; } .a-photos .f2 { left: 80px; background: #C99872; }
.a-photos .scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #F4BE45; box-shadow: 0 0 14px 3px rgba(244, 190, 69, .7); opacity: 0; }
.a-photos .ok { font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--card); padding: 3px 10px; border-radius: 999px; }
.a-tr .win { height: 2.6em; overflow: hidden; font: 700 1.25rem/2.6em var(--display); text-align: center; }
.a-tr ul { list-style: none; margin: 0; padding: 0; }
.a-tr li { height: 2.6em; white-space: nowrap; }
.a-cert .card { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: center; width: 210px; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: 0 18px 30px -24px rgba(19, 22, 48, .6); }
.a-cert .ph { flex: none; width: 44px; height: 54px; border-radius: 8px; background: linear-gradient(135deg, #F4BE45, #E58B5B); }
.a-cert .f { display: grid; gap: 2px; font-size: 12.5px; color: var(--ink2); }
.a-cert .f b { font-size: 14px; color: var(--ink); }
.a-cert .shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); }
.a-link { grid-template-columns: auto minmax(30px, 1fr) auto; gap: 6px; width: 100%; }
.a-link .node { padding: 9px 12px; border-radius: 14px; background: var(--card); font-weight: 700; font-size: 13px; text-align: center; }
.a-link .node.b { background: #2F3263; color: #FFFFFF; }
.a-link .wire { width: 100%; height: 20px; overflow: visible; }
.a-link .wire path { stroke: var(--ink2); stroke-width: 3; stroke-dasharray: 6 8; fill: none; }
/* Vous gardez la main */
.ai-keep { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ai-keep { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ai-keep { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.ai-keep li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.ai-keep .ai-ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--vert-soft); color: var(--vert); }
.ai-keep h3 { margin-top: 14px; font-size: 1.2rem; letter-spacing: -.015em; }
.ai-keep p { margin: 6px 0 0; color: var(--ink2); }
.ai-incl { margin-top: 22px; padding: 18px 22px; border-radius: 20px; background: var(--glow-soft); font-weight: 600; }
.ai-faq { margin-top: var(--sect); }
@media (max-width: 600px) { .ai-hero .cta-actions > * { width: 100%; } }

/* Le mouvement (seulement avec .ai-mo : sans JavaScript ou avec « réduire les animations », l'état final reste) */
@keyframes ai-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
@keyframes ai-rise { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ai-drop { 0% { opacity: 0; transform: translateY(-30px) scale(.96); } 12%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes ai-dawn { from { transform: translate(-40px, 160px) scale(.6); filter: grayscale(1) brightness(1.5) blur(2px); opacity: .5; } to { transform: none; filter: blur(2px); opacity: .85; } }
@keyframes ai-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ai-type { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ai-press { 0%, 100% { transform: none; } 50% { transform: scale(.94); box-shadow: 0 0 0 6px color-mix(in srgb, var(--vert) 30%, transparent); } }
@keyframes ai-pop { 0% { opacity: 0; transform: translateY(20px) scale(.9); } 60% { opacity: 1; transform: translateY(-3px) scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes ai-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ai-dim { to { opacity: .45; } }
@keyframes ai-check { 0% { opacity: 0; transform: translateX(-10px); } 100% { opacity: 1; transform: none; } }
@keyframes ai-bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes ai-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ai-chip { 0%, 30% { opacity: 0; transform: scale(.6); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ai-said { 0% { clip-path: inset(0 100% 0 0); } 30%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes ai-q { 0% { opacity: 0; transform: translateY(10px); } 10%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ai-dots { 0%, 14% { opacity: 0; } 17%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes ai-dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes ai-a { 0%, 39% { opacity: 0; transform: translateY(10px); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ai-ln { 0% { width: 0; } 60%, 100% { width: var(--w); } }
@keyframes ai-tg { 0%, 55% { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.15) rotate(10deg); } 80%, 100% { transform: none; } }
@keyframes ai-scan { 0% { top: 0; opacity: 0; } 5% { opacity: 1; } 55% { top: 97%; opacity: 1; } 60%, 100% { top: 97%; opacity: 0; } }
@keyframes ai-ok { 0%, 58% { opacity: 0; transform: scale(.8); } 66%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ai-face { 0%, 30% { box-shadow: 0 0 0 2px #FFFFFF; } 40%, 95% { box-shadow: 0 0 0 3px #F4BE45; } }
@keyframes ai-rot { 0.00%, 8.00% { transform: translateY(-0%); } 10.00%, 18.00% { transform: translateY(-100%); } 20.00%, 28.00% { transform: translateY(-200%); } 30.00%, 38.00% { transform: translateY(-300%); } 40.00%, 48.00% { transform: translateY(-400%); } 50.00%, 58.00% { transform: translateY(-500%); } 60.00%, 68.00% { transform: translateY(-600%); } 70.00%, 78.00% { transform: translateY(-700%); } 80.00%, 88.00% { transform: translateY(-800%); } 90.00%, 98.00% { transform: translateY(-900%); } 100.00%, 100.00% { transform: translateY(-1000%); } }
@keyframes ai-shine { 0%, 40% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
@keyframes ai-flow { to { stroke-dashoffset: -28; } }
@keyframes ai-sunup { 0%, 15% { transform: translateY(45%); opacity: .4; } 55%, 92% { transform: none; opacity: .8; } 100% { transform: translateY(45%); opacity: .4; } }
@keyframes ai-t1 { 0%, 40% { opacity: 1; transform: none; } 48%, 94% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; transform: none; } }
@keyframes ai-t2 { 0%, 44% { opacity: 0; transform: translateY(14px); } 52%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

.ai-mo .ai-sky i { animation: ai-twinkle 3.2s ease-in-out calc(var(--i) * -.6s) infinite; }
.ai-mo .ai-hero .copy > * { animation: ai-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.ai-mo .ai-hero .copy > :nth-child(2) { animation-delay: .08s; } .ai-mo .ai-hero .copy > :nth-child(3) { animation-delay: .16s; } .ai-mo .ai-hero .copy > :nth-child(4) { animation-delay: .24s; } .ai-mo .ai-hero .copy > :nth-child(n+5) { animation-delay: .32s; }
.ai-mo .ai-a:not(.seen), .ai-mo .ai-a:not(.seen) *, .ai-mo .ai-a:not(.seen)::after { animation-play-state: paused !important; }
.ai-mo .ai-a:not(.on) .ai-art *, .ai-mo .ai-clock:not(.on) * { animation-play-state: paused !important; }
.ai-mo .ai-vs .old li { animation: ai-dim .6s ease calc(.4s + var(--i, 0) * .25s) both; }
.ai-mo .ai-vs .new li { animation: ai-check .6s cubic-bezier(.2, .7, .2, 1) calc(.9s + var(--i, 0) * .3s) both; }
.ai-mo .ai-steps::after { animation: ai-fill 3s cubic-bezier(.4, 0, .2, 1) .2s both; }
.ai-mo .ai-steps li { animation: ai-rise .6s cubic-bezier(.2, .7, .2, 1) calc(.2s + var(--i, 0) * .7s) both; }
.ai-mo .ai-clock .sun { animation: ai-sunup 8s ease-in-out infinite; }
.ai-mo .ai-clock .t1 { animation: ai-t1 8s ease infinite; }
.ai-mo .ai-clock .t2 { animation: ai-t2 8s ease infinite; }
.ai-mo .ai-tiles > li, .ai-mo .ai-keep > li { animation: ai-rise .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .08s) both; }
.ai-mo .ai-wave i { animation: ai-bar 1s ease-in-out calc(var(--i) * -.13s) infinite; }
.ai-mo .ai-said { animation: ai-said 6s ease infinite; }
.ai-mo .ai-chips span { animation: ai-chip 6s ease infinite; }
.ai-mo .ai-chips span:nth-child(2) { animation-delay: .15s; } .ai-mo .ai-chips span:nth-child(3) { animation-delay: .3s; }
.ai-mo .a-live .ai-ring { animation: ai-ring 2.4s ease-out infinite; }
.ai-mo .a-live .r2 { animation-delay: .8s; } .ai-mo .a-live .r3 { animation-delay: 1.6s; }
.ai-mo .a-ask .q { animation: ai-q 6s ease infinite; }
.ai-mo .a-ask .dots { animation: ai-dots 6s ease infinite; }
.ai-mo .a-ask .dots i { animation: ai-dot .9s ease-in-out infinite; }
.ai-mo .a-ask .dots i:nth-child(2) { animation-delay: .15s; } .ai-mo .a-ask .dots i:nth-child(3) { animation-delay: .3s; }
.ai-mo .a-ask .a { animation: ai-a 6s ease infinite; }
.ai-mo .a-portrait .ln { animation: ai-ln 5s cubic-bezier(.4, 0, .2, 1) infinite; }
.ai-mo .a-portrait .ln:nth-of-type(2) { animation-delay: .25s; } .ai-mo .a-portrait .ln:nth-of-type(3) { animation-delay: .5s; } .ai-mo .a-portrait .ln:nth-of-type(4) { animation-delay: .75s; }
.ai-mo .a-portrait .tg { animation: ai-tg 5s ease infinite; }
.ai-mo .a-photos .scan { animation: ai-scan 4.5s ease-in-out infinite; }
.ai-mo .a-photos .ok { animation: ai-ok 4.5s ease infinite; }
.ai-mo .a-photos .face { animation: ai-face 4.5s ease infinite; }
.ai-mo .a-tr ul { animation: ai-rot 16s cubic-bezier(.6, 0, .2, 1) infinite; }
.ai-mo .a-cert .shine { animation: ai-shine 3.6s ease-in-out infinite; }
.ai-mo .a-link .wire path { animation: ai-flow 1s linear infinite; }
.ai-mo .ai-tile:hover .ai-art { filter: saturate(1.15); }

/* Le héros : la nuit en direct (scripts/site-garderies-ia-hero.mjs) */
.ad-con { --p: 1; position: relative; width: 100%; max-width: 560px; justify-self: center; border-radius: 28px; padding: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(10px); color: #F4F2FA; }
.ad-con::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(247, 207, 110, .9) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; pointer-events: none; }
.ad-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ad-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: #F4BE45; color: #161B38; }
.ad-av svg { width: 22px; height: 22px; }
.ad-ti { min-width: 0; flex: 1 1 10em; display: grid; }
.ad-ti b { font: 700 1.05rem/1.2 var(--display); color: #FFFFFF; }
.ad-ti span { font-size: 13px; color: #C9C6DA; }
.ad-st { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 700; color: #F4F2FA; }
.ad-st i { width: 8px; height: 8px; border-radius: 50%; background: #8E8AA8; }
.ad-st span { display: none; }
.ad-con[data-st="0"] .ad-st .s0, .ad-con[data-st="1"] .ad-st .s1, .ad-con[data-st="2"] .ad-st .s2 { display: inline; }
.ad-con[data-st="1"] .ad-st i { background: #F7CF6E; animation: ad-blink 1s ease-in-out infinite; }
.ad-con[data-st="2"] .ad-st { background: rgba(126, 214, 163, .16); color: #BDEFD1; }
.ad-con[data-st="2"] .ad-st i { background: #7ED6A3; }
.ad-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 18px 0 6px; font-size: 12.5px; font-weight: 700; color: #C9C6DA; }
.ad-bar .track { position: relative; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.ad-bar .fill { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, #5B63B7, #F4BE45); transition: transform 2.6s cubic-bezier(.4, 0, .2, 1); }
.ad-bar .orb { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #E7E4F5; box-shadow: inset -6px -2px 0 #9C98C4, 0 0 16px rgba(231, 228, 245, .5); transition: left 2.6s cubic-bezier(.4, 0, .2, 1), background .6s, box-shadow .6s; }
.ad-con[data-st="2"] .ad-bar .orb { background: #F7CF6E; box-shadow: 0 0 0 4px rgba(247, 207, 110, .25), 0 0 22px rgba(247, 207, 110, .8); }
.ad-log { list-style: none; margin: 12px 0 0; padding: 14px 16px; border-radius: 18px; background: rgba(8, 10, 26, .45); font: 500 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; display: grid; gap: 6px; }
.ad-log li { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; color: #E3E1EF; }
.ad-log time { color: #F7CF6E; white-space: nowrap; }
.ad-log li:last-child span { color: #BDEFD1; font-weight: 700; }
.ad-cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ad-cards li { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 16px 30px -22px rgba(0, 0, 0, .8); }
.ad-cards .tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ad-cards .k { justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--glow-soft); font-size: 11.5px; font-weight: 700; }
.ad-cards li:nth-child(3) .k { background: var(--bleu-soft); }
.ad-cards b { font: 700 15px/1.25 var(--display); }
.ad-cards .m { font-size: 13px; color: var(--ink2); }
.ad-cards .by { font-size: 11.5px; color: var(--ink2); }
.ad-cards li:nth-child(3) .by { display: none; }
.ad-cards .ok { flex: none; min-height: 44px; min-width: 112px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .15s; }
.ad-cards .ok:active { transform: scale(.96); }
.ad-cards .ok > span { grid-area: 1 / 1; transition: opacity .2s; }
.ad-cards .ok .d, .ad-cards .ok .u { opacity: 0; }
.ad-cards li.yes .ok { background: var(--vert-soft); color: var(--ink); }
.ad-cards li.yes .ok .a { opacity: 0; }
.ad-cards li.yes .ok .d { opacity: 1; }
@media (hover: hover) { .ad-cards li.yes .ok:hover .d { opacity: 0; } .ad-cards li.yes .ok:hover .u { opacity: 1; } }
.ad-cards li.yes { box-shadow: 0 0 0 2px var(--vert), 0 16px 30px -22px rgba(0, 0, 0, .8); }
.ad-replay { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: transparent; color: #F4F2FA; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ad-replay svg { width: 18px; height: 18px; }
.ad-con { display: grid; }
.ad-replay { justify-self: center; }
/* Le jeu : la classe play n'est posée que par le script (mouvement accepté). */
.ad-con.play .ad-log li, .ad-con.play .ad-cards li { opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.ad-con.play .ad-log li.in, .ad-con.play .ad-cards li.in { opacity: 1; transform: none; }
.ad-con.play .ad-cards li { transform: translateY(18px) scale(.97); }
.ad-con.play .ad-cards li.in { transform: none; }
.ad-con.play[data-st="1"]::before { opacity: 1; animation: ad-spin 2.4s linear infinite; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ad-spin { to { --ang: 360deg; } }
@keyframes ad-blink { 50% { opacity: .3; } }
@media (max-width: 999px) { .ad-con { max-width: none; } }
@media (max-width: 600px) {
  .ad-con { padding: 14px; border-radius: 22px; }
  .ad-st { padding: 6px 10px; font-size: 12px; }
  .ad-ti span { display: none; }
  .ad-log { font-size: 13px; padding: 12px; }
  .ad-log li { grid-template-columns: 4.2em 1fr; gap: 8px; }
  .ad-cards li { flex-wrap: wrap; }
  .ad-cards .ok { width: 100%; }
  .ad-replay { width: 100%; justify-content: center; }
}
